基于深度学习和快照集成的特征嫉妒检测

Minnan Zhang, Jingdong Jia
{"title":"基于深度学习和快照集成的特征嫉妒检测","authors":"Minnan Zhang, Jingdong Jia","doi":"10.1109/DSA56465.2022.00037","DOIUrl":null,"url":null,"abstract":"Code Smell is a code symptom of deep-seated quality problems caused by design defects or improper coding habits in software. It may not directly affect the operation of program, but it affects the readability, understandability and maintainability of code. Therefore, the identification, location and reconstruction of code smell are becoming increasingly significant. Combined with the deep learning methods, based on the existing model for detecting Feature Envy, this paper optimizes it from three aspects: introducing the attention mechanism, expanding and modifying the model structure, and applying the snapshot ensemble. The experimental results show that compared with the standard results, the model proposed in this paper gets a better performance on four evaluation metrics: precision, recall, F1 measure and AUC. Based on the research results of this experiment, we can see the effectiveness of deep learning in the field of code smell detection and the prospect of theories in natural language processing to be utilized in code smell detection, which provides a practical cornerstone for the research of deep learning based smell detection methods in the future.","PeriodicalId":208148,"journal":{"name":"2022 9th International Conference on Dependable Systems and Their Applications (DSA)","volume":"9 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"Feature Envy Detection with Deep Learning and Snapshot Ensemble\",\"authors\":\"Minnan Zhang, Jingdong Jia\",\"doi\":\"10.1109/DSA56465.2022.00037\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Code Smell is a code symptom of deep-seated quality problems caused by design defects or improper coding habits in software. It may not directly affect the operation of program, but it affects the readability, understandability and maintainability of code. Therefore, the identification, location and reconstruction of code smell are becoming increasingly significant. Combined with the deep learning methods, based on the existing model for detecting Feature Envy, this paper optimizes it from three aspects: introducing the attention mechanism, expanding and modifying the model structure, and applying the snapshot ensemble. The experimental results show that compared with the standard results, the model proposed in this paper gets a better performance on four evaluation metrics: precision, recall, F1 measure and AUC. Based on the research results of this experiment, we can see the effectiveness of deep learning in the field of code smell detection and the prospect of theories in natural language processing to be utilized in code smell detection, which provides a practical cornerstone for the research of deep learning based smell detection methods in the future.\",\"PeriodicalId\":208148,\"journal\":{\"name\":\"2022 9th International Conference on Dependable Systems and Their Applications (DSA)\",\"volume\":\"9 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-08-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 9th International Conference on Dependable Systems and Their Applications (DSA)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/DSA56465.2022.00037\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 9th International Conference on Dependable Systems and Their Applications (DSA)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/DSA56465.2022.00037","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

摘要

代码气味是由软件设计缺陷或不正确的编码习惯引起的深层次质量问题的一种代码症状。它可能不会直接影响程序的运行,但会影响代码的可读性、可理解性和可维护性。因此,代码气味的识别、定位和重建变得越来越重要。结合深度学习方法,在现有特征嫉妒检测模型的基础上,从引入注意机制、扩展和修改模型结构、应用快照集成三个方面对模型进行优化。实验结果表明,与标准结果相比,本文提出的模型在精度、召回率、F1测度和AUC四个评价指标上取得了更好的性能。通过本实验的研究结果,我们可以看到深度学习在代码气味检测领域的有效性,以及自然语言处理理论在代码气味检测中应用的前景,为未来基于深度学习的气味检测方法的研究提供了实践基石。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Feature Envy Detection with Deep Learning and Snapshot Ensemble
Code Smell is a code symptom of deep-seated quality problems caused by design defects or improper coding habits in software. It may not directly affect the operation of program, but it affects the readability, understandability and maintainability of code. Therefore, the identification, location and reconstruction of code smell are becoming increasingly significant. Combined with the deep learning methods, based on the existing model for detecting Feature Envy, this paper optimizes it from three aspects: introducing the attention mechanism, expanding and modifying the model structure, and applying the snapshot ensemble. The experimental results show that compared with the standard results, the model proposed in this paper gets a better performance on four evaluation metrics: precision, recall, F1 measure and AUC. Based on the research results of this experiment, we can see the effectiveness of deep learning in the field of code smell detection and the prospect of theories in natural language processing to be utilized in code smell detection, which provides a practical cornerstone for the research of deep learning based smell detection methods in the future.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信