Deep Learning Based Feature Envy Detection

被引:63
|
作者
Liu, Hui [1 ]
Xu, Zhifeng [1 ]
Zou, Yanzhen [2 ,3 ]
机构
[1] Beijing Inst Technol, Sch Comp Sci & Technol, Beijing, Peoples R China
[2] Peking Univ, Minist Educ, Key Lab High Confidence Software Technol, Beijing, Peoples R China
[3] Peking Univ, Sch Elect Engn & Comp Sci, Beijing, Peoples R China
基金
中国国家自然科学基金;
关键词
Feature Envy; Deep Learning; Software Refactoring; Code Smells; SMELLS; REFACTORINGS;
D O I
10.1145/3238147.3238166
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software refactoring is widely employed to improve software quality. A key step in software refactoring is to identify which part of the software should be refactored. To facilitate the identification, a number of approaches have been proposed to identify certain structures in the code (called code smells) that suggest the possibility of refactoring. Most of such approaches rely on manually designed heuristics to map manually selected source code metrics to predictions. However, it is challenging to manually select the best features, especially textual features. It is also difficult to manually construct the optimal heuristics. To this end, in this paper we propose a deep learning based novel approach to detecting feature envy, one of the most common code smells. The key insight is that deep neural networks and advanced deep learning techniques could automatically select features (especially textual features) of source code for feature envy detection, and could automatically build the complex mapping between such features and predictions. We also propose an automatic approach to generating labeled training data for the neural network based classifier, which does not require any human intervention. Evaluation results on open-source applications suggest that the proposed approach significantly improves the state-of-the-art in both detecting feature envy smells and recommending destinations for identified smelly methods.
引用
收藏
页码:385 / 396
页数:12
相关论文
共 50 条
  • [41] Malware Detection Using Deep Learning and Correlation-Based Feature Selection
    Alomari, Esraa Saleh
    Nuiaa, Riyadh Rahef
    Alyasseri, Zaid Abdi Alkareem
    Mohammed, Husam Jasim
    Sani, Nor Samsiah
    Esa, Mohd Isrul
    Musawi, Bashaer Abbuod
    SYMMETRY-BASEL, 2023, 15 (01):
  • [42] Vehicle Detection Method Based On Deep Learning and Multi -Layer Feature Fusion
    Zhao Min
    Jia Jian
    Sun Dihua
    Tang Yi
    PROCEEDINGS OF THE 30TH CHINESE CONTROL AND DECISION CONFERENCE (2018 CCDC), 2018, : 5862 - 5867
  • [43] Location distribution detection of urban drainage pipeline based on deep learning feature
    Chen W.
    Zhou Z.
    International Journal of Reasoning-based Intelligent Systems, 2023, 15 (01) : 48 - 53
  • [44] Deep Learning-Based Feature Silencing for Accurate Concrete Crack Detection
    Billah, Umme Hafsa
    La, Hung Manh
    Tavakkoli, Alireza
    SENSORS, 2020, 20 (16) : 1 - 26
  • [45] A Deep Feature Fusion of Improved Suspected Keratoconus Detection with Deep Learning
    Al-Timemy, Ali H.
    Alzubaidi, Laith
    Mosa, Zahraa M.
    Abdelmotaal, Hazem
    Ghaeb, Nebras H.
    Lavric, Alexandru
    Hazarbassanov, Rossen M.
    Takahashi, Hidenori
    Gu, Yuantong
    Yousefi, Siamak
    DIAGNOSTICS, 2023, 13 (10)
  • [46] Learning deep feature fusion for traffic light detection
    Hassan, Ehtesham
    Khalil, Yasser
    Ahmad, Imtiaz
    JOURNAL OF ENGINEERING RESEARCH, 2024, 12 (01): : 100 - 106
  • [47] Feature Importance and Deep Learning for Android Malware Detection
    Talbi, A.
    Viens, A.
    Leroux, L-C
    Francois, M.
    Caillol, M.
    Nguyen, N.
    PROCEEDINGS OF THE 8TH INTERNATIONAL CONFERENCE ON INFORMATION SYSTEMS SECURITY AND PRIVACY (ICISSP), 2021, : 453 - 462
  • [48] Learning deep feature fusion for traffic light detection
    Hassan, Ehtesham
    Khalil, Yasser
    Ahmad, Imtiaz
    JOURNAL OF ENGINEERING RESEARCH, 2023, 11 (03): : 94 - 99
  • [49] Deep learning feature exploration for Android malware detection
    Zhang, Nan
    Tan, Yu-an
    Yang, Chen
    Li, Yuanzhang
    APPLIED SOFT COMPUTING, 2021, 102
  • [50] Unsupervised Feature Learning For Bootleg Detection Using Deep Learning Architectures
    Buccoli, Michele
    Bestagini, Paolo
    Zanoni, Massimiliano
    Sarti, Augusto
    Tubaro, Stefano
    2014 IEEE INTERNATIONAL WORKSHOP ON INFORMATION FORENSICS AND SECURITY (WIFS'14), 2014, : 131 - 136