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 条
  • [31] Research on a Feature Point Detection Algorithm for Weld Images Based on Deep Learning
    Kang, Shaopeng
    Qiang, Hongbin
    Yang, Jing
    Liu, Kailei
    Qian, Wenbin
    Li, Wenpeng
    Pan, Yanfei
    ELECTRONICS, 2024, 13 (20)
  • [32] Deep learning cigarette defect detection method based on saliency feature guidance
    Wang, Xiaoming
    Chen, Liyan
    Wu, Lei
    Yang, Longfei
    Liu, Benxue
    Yang, Zhen
    ELECTRONICS LETTERS, 2024, 60 (07)
  • [33] Deep Learning-Based Framework for the Detection of Cyberattack Using Feature Engineering
    Akhtar, Muhammad Shoaib
    Feng, Tao
    SECURITY AND COMMUNICATION NETWORKS, 2021, 2021
  • [34] Campus Network Security Intrusion Detection Based on Feature Segmentation and Deep Learning
    Chen Z.
    Journal of Cyber Security and Mobility, 2024, 13 (04): : 775 - 802
  • [35] A Deep Reinforcement Learning Malware Detection Method Based on PE Feature Distribution
    Liu Binxiang
    Zhao Gang
    Sun Ruoyin
    2019 6TH INTERNATIONAL CONFERENCE ON INFORMATION SCIENCE AND CONTROL ENGINEERING (ICISCE 2019), 2019, : 23 - 27
  • [36] Ensemble classification for intrusion detection via feature extraction based on deep Learning
    Maryam Yousefnezhad
    Javad Hamidzadeh
    Mohammad Aliannejadi
    Soft Computing, 2021, 25 : 12667 - 12683
  • [37] Surface Feature and Defect Detection Method for Shield Tunnel Based on Deep Learning
    Lin, Laikuang
    Zhu, Hanxuan
    Ma, Yingbo
    Peng, Yueyan
    Xia, Yimin
    JOURNAL OF COMPUTING IN CIVIL ENGINEERING, 2025, 39 (03)
  • [38] Research on Human Action Feature Detection and Recognition Algorithm Based on Deep Learning
    Wu, Zhipan
    Du, Huaying
    MOBILE INFORMATION SYSTEMS, 2022, 2022
  • [39] FDLM: An enhanced feature based deep learning model for skin lesion detection
    Shelly Garg
    Balkrishan Jindal
    Multimedia Tools and Applications, 2024, 83 : 36115 - 36127
  • [40] Deep belief network based statistical feature learning for fingerprint liveness detection
    Kim, Soowoong
    Park, Bogun
    Song, Bong Seop
    Yang, Seungjoon
    PATTERN RECOGNITION LETTERS, 2016, 77 : 58 - 65