Correlation Feature Mining Model Based on Dual Attention for Feature Envy Detection

Shuxin Zhao, Chongyang Shi*, Shaojun Ren, Hufsa Mohsin

*此作品的通讯作者

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

1 引用 (Scopus)

摘要

Feature Envy is a code smell due to the abnormal calling relationships between methods and classes, which adversely affects software scalability and maintainability. Existing methods mainly use various technologies to model abnormal relationships to detect feature envy. However, these methods only rely on local features such as entity names, which is not robust enough. Moreover, the mining depth of correlation features between entities involved in feature envy is limited. In this paper, we propose a correlation feature mining model based on dual attention to detect feature envy. Firstly, we propose a multi-view-based entity representation strategy, which enhanced the robustness of the model while improving the suitability of the correlation feature and model. Secondly, we add attention mechanism to the channel dimension and spatial dimension of CNN to control the flow of information and capture the correlation features between entities more accurately. Finally, the evaluation results on projects both with and without feature envy injected show that our proposed approach outperforms the state-of-the-art methods.

源语言英语
主期刊名SEKE 2022 - Proceedings of the 34th International Conference on Software Engineering and Knowledge Engineering
出版商Knowledge Systems Institute Graduate School
634-639
页数6
ISBN(电子版)1891706543, 9781891706547
DOI
出版状态已出版 - 2022
活动34th International Conference on Software Engineering and Knowledge Engineering, SEKE 2022 - Pittsburgh, 美国
期限: 1 7月 202210 7月 2022

出版系列

姓名Proceedings of the International Conference on Software Engineering and Knowledge Engineering, SEKE
ISSN(印刷版)2325-9000
ISSN(电子版)2325-9086

会议

会议34th International Conference on Software Engineering and Knowledge Engineering, SEKE 2022
国家/地区美国
Pittsburgh
时期1/07/2210/07/22

指纹

探究 'Correlation Feature Mining Model Based on Dual Attention for Feature Envy Detection' 的科研主题。它们共同构成独一无二的指纹。

引用此