Local and Global Feature Based Explainable Feature Envy Detection

被引:11
|
作者
Yin, Xin [1 ]
Shi, Chongyang [1 ]
Zhao, Shuxin [1 ]
机构
[1] Beijing Inst Technol, Sch Comp Sci, Beijing, Peoples R China
基金
中国国家自然科学基金;
关键词
Feature Envy; Deep Learning; Software Refactoring; CODE; SMELLS;
D O I
10.1109/COMPSAC51774.2021.00127
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Code smell detection can help developers identify position of code smell in projects and enhance the quality of software system. Usually codes with similar semantic relationships have greater code dependencies, and most code smell detection methods ignore dependencies relationships within the source code. Thus, their detection results may be heavily influenced by inadequate code feature, which can lead to some code smell not being detected. In addition, existing methods cannot explain the correlation between detection results and code information. However, an explainable result can help developers make better judgments on code smell reconstruction. Accordingly, in this paper, we propose a local and global feature based explainable approach to detecting feature envy, one of the most common code smells. For the model to make the most of code information, we design different representation models for global code and local code respectively to extract different feature envy features, and automatically combine these features that are beneficial in terms of detection accuracy. We further design a code semantic dependency (CSD) to make the detection result easy to explain. The evaluation results of seven manual building code smell projects and three real projects show that the proposed approach improves on the state-of-the-art in detecting feature envy and boosting the explainability of results.
引用
收藏
页码:942 / 951
页数:10
相关论文
共 50 条
  • [31] Infrared Dim and Small Target Detection Based on Local-Global Feature Fusion
    Ling, Xiao
    Zhang, Chuan
    Yan, Zhijun
    Wang, Bo
    Sheng, Qinghong
    Li, Jun
    APPLIED SCIENCES-BASEL, 2024, 14 (17):
  • [32] A VIDEO COPY DETECTION ALGORITHM COMBINING LOCAL FEATURE'S ROBUSTNESS AND GLOBAL FEATURE'S SPEED
    Gu, Xiaoguang
    Zhang, Dongming
    Zhang, Yongdong
    Li, Jintao
    Zhang, Lei
    2013 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP), 2013, : 1508 - 1512
  • [33] FCLGYOLO: Feature Constraint and Local Guided Global Feature for Fire Detection in Unmanned Aerial Vehicle Imagery
    Ren, Dong
    Zhang, Yang
    Wang, Lu
    Sun, Hang
    Ren, Shun
    Gu, Jian
    IEEE JOURNAL OF SELECTED TOPICS IN APPLIED EARTH OBSERVATIONS AND REMOTE SENSING, 2024, 17 : 5864 - 5875
  • [34] Document Image Registration Based on Local Feature Image and Harris Feature Points Detection
    Niu, Lian-qiang
    He, Liu
    Zhang, Sheng-nan
    INTERNATIONAL CONFERENCE ON CONTROL AND AUTOMATION (ICCA 2016), 2016, : 240 - 245
  • [35] Towards Feature Envy Design Flaw Detection at Block Level
    Kiss, Arpad
    Mihancea, Petru Florin
    PROCEEDINGS 2018 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2018, : 544 - 548
  • [36] α-shapes for local feature detection
    Varytimidis, Christos
    Rapantzikos, Konstantinos
    Avrithis, Yannis
    Kollias, Stefanos
    PATTERN RECOGNITION, 2016, 50 : 56 - 73
  • [37] Quick Retrieval Method of Massive Face Images Based on Global Feature and Local Feature Fusion
    Yu, Wei
    Zhu, Qiuyu
    2017 10TH INTERNATIONAL CONGRESS ON IMAGE AND SIGNAL PROCESSING, BIOMEDICAL ENGINEERING AND INFORMATICS (CISP-BMEI), 2017,
  • [38] Feature Envy Detection based on Bi-LSTM with Self-Attention Mechanism
    Wang, Hongze
    Liu, Jing
    Kang, JieXiang
    Yin, Wei
    Sun, Haiying
    Wang, Hui
    2020 IEEE INTL SYMP ON PARALLEL & DISTRIBUTED PROCESSING WITH APPLICATIONS, INTL CONF ON BIG DATA & CLOUD COMPUTING, INTL SYMP SOCIAL COMPUTING & NETWORKING, INTL CONF ON SUSTAINABLE COMPUTING & COMMUNICATIONS (ISPA/BDCLOUD/SOCIALCOM/SUSTAINCOM 2020), 2020, : 448 - 457
  • [39] Deep semantic-Based Feature Envy Identification
    Guo, Xueliang
    Shi, Chongyang
    Jiang, He
    11TH ASIA-PACIFIC SYMPOSIUM ON INTERNETWARE (INTERNETWARE 2019), 2019,
  • [40] Lane Detection Algorithm based on Local Feature Extraction
    Liu, Guorong
    Li, Shutao
    Liu, Weirong
    2013 CHINESE AUTOMATION CONGRESS (CAC), 2013, : 59 - 64