Deep learning based feature envy detection

Hui Liu*, Zhifeng Xu, Yanzhen Zou

*此作品的通讯作者

科研成果: 书/报告/会议事项章节会议稿件同行评审

86 引用 (Scopus)
Plum Print visual indicator of research metrics
  • Citations
    • Citation Indexes: 85
  • Captures
    • Readers: 77
see details

摘要

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.

源语言英语
主期刊名ASE 2018 - Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering
编辑Christian Kastner, Marianne Huchard, Gordon Fraser
出版商Association for Computing Machinery, Inc
385-396
页数12
ISBN(电子版)9781450359375
DOI
出版状态已出版 - 3 9月 2018
活动33rd IEEE/ACM International Conference on Automated Software Engineering, ASE 2018 - Montpellier, 法国
期限: 3 9月 20187 9月 2018

出版系列

姓名ASE 2018 - Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering

会议

会议33rd IEEE/ACM International Conference on Automated Software Engineering, ASE 2018
国家/地区法国
Montpellier
时期3/09/187/09/18

指纹

探究 'Deep learning based feature envy detection' 的科研主题。它们共同构成独一无二的指纹。

引用此

Liu, H., Xu, Z., & Zou, Y. (2018). Deep learning based feature envy detection. 在 C. Kastner, M. Huchard, & G. Fraser (编辑), ASE 2018 - Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering (页码 385-396). (ASE 2018 - Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering). Association for Computing Machinery, Inc. https://doi.org/10.1145/3238147.3238166