Comparing the Effectiveness of Machine Learning and Deep Learning Techniques for Feature Envy Detection in Software Systems

Rana S. Menshawy, A. Yousef, Ashraf Salem
{"title":"Comparing the Effectiveness of Machine Learning and Deep Learning Techniques for Feature Envy Detection in Software Systems","authors":"Rana S. Menshawy, A. Yousef, Ashraf Salem","doi":"10.1109/IMSA58542.2023.10217458","DOIUrl":null,"url":null,"abstract":"Code smells are common in poorly designed software that can hinder code maintainability. Automatic detection of design flaws assists developers in identifying code smells in theirsoftware programs to avoid low-quality delivery. However, the interpretation of code smells is subjective, and existing machine learning-based detection tools are limited in their ability to capture complex semantic relationships in textual code. To address this limitation, the paper proposes a detection system that exploits machine learning and deep learning techniques and compares their effectiveness in identifying the feature envy code smell. The study applies six deep learning techniques based on code semantics features extracted from abstract syntax trees, and eleven machine learning techniques based on code structural features. The results show that both approaches are effective in detecting code smells, with Random Forest achieving exceptional performance among the machine learning classifiers.","PeriodicalId":110239,"journal":{"name":"2023 Intelligent Methods, Systems, and Applications (IMSA)","volume":"56 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-07-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 Intelligent Methods, Systems, and Applications (IMSA)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IMSA58542.2023.10217458","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Code smells are common in poorly designed software that can hinder code maintainability. Automatic detection of design flaws assists developers in identifying code smells in theirsoftware programs to avoid low-quality delivery. However, the interpretation of code smells is subjective, and existing machine learning-based detection tools are limited in their ability to capture complex semantic relationships in textual code. To address this limitation, the paper proposes a detection system that exploits machine learning and deep learning techniques and compares their effectiveness in identifying the feature envy code smell. The study applies six deep learning techniques based on code semantics features extracted from abstract syntax trees, and eleven machine learning techniques based on code structural features. The results show that both approaches are effective in detecting code smells, with Random Forest achieving exceptional performance among the machine learning classifiers.
比较机器学习和深度学习技术在软件系统特征羡慕检测中的有效性
代码气味在设计糟糕的软件中很常见,它会阻碍代码的可维护性。设计缺陷的自动检测帮助开发人员识别软件程序中的代码气味,以避免低质量的交付。然而,对代码气味的解释是主观的,现有的基于机器学习的检测工具在捕获文本代码中复杂语义关系的能力方面受到限制。为了解决这一限制,本文提出了一种利用机器学习和深度学习技术的检测系统,并比较了它们在识别特征羡慕代码气味方面的有效性。该研究应用了六种基于从抽象语法树中提取的代码语义特征的深度学习技术,以及十一种基于代码结构特征的机器学习技术。结果表明,这两种方法在检测代码气味方面都是有效的,随机森林在机器学习分类器中取得了优异的性能。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
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学术官方微信
小红书