An Evaluation of Multi-Label Classification Approaches for Method-Level Code Smells Detection

代码气味 计算机科学 编码(集合论) 人工智能 数据挖掘 机器学习 模式识别(心理学) 程序设计语言 软件 软件质量 集合(抽象数据类型) 软件开发
作者
Pravin Singh Yadav,Rajwant Singh Rao,Alok Mishra
出处
期刊:IEEE Access [Institute of Electrical and Electronics Engineers]
卷期号:12: 53664-53676 被引量:5
标识
DOI:10.1109/access.2024.3387856
摘要

(1) Background: Code smell is the most popular and reliable method for detecting potential errors in code. In real-world circumstances, a single source code may have multiple code smells. Multi-label code smell detection is a popular research study. However, limited studies are available on it, and there is a need for a standardized classifier for reliably identifying various multi-label code smells that belong to the method-level code smell category. The primary goal of this study is to develop a rule-based method for detecting multi-label code smells. (2) Methods: Binary Relevance, Label Powerset, and Classifier Chain methods are utilized with tree based single-label algorithms, including some ensemble algorithms in this research paper. The chi-square feature selection technique is applied to select relevant features. The proposed model is trained using 10-fold cross-validation, Random Search cross-validation parameter tuning, and different performance measures are used to evaluate the model. (3) Results: The proposed model achieves 99.54% of the best jaccard accuracy for detecting method-level code smells using the Classifier Chain method with the Decision Tree. The Decision Tree model incorporating a multi-label classifier outperforms alternative approaches to multi-label classification. Single-label classifiers produced better results after considering the correlation factor. (4) Conclusion: This study will facilitate scientists and programmers by providing a systematic method for detecting various code smells in software projects and saving time and effort during code reviews by detecting multiple problems simultaneously. After detecting multi-label code smell, programmers can create more organized, easier-to-understand, and trustworthy programs.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
独孤忙发布了新的文献求助10
刚刚
刚刚
隐形曼青应助lululala采纳,获得10
刚刚
ws完成签到,获得积分10
1秒前
朝天椒发布了新的文献求助10
1秒前
小曹完成签到 ,获得积分10
2秒前
3秒前
丘比特应助Mushiyu采纳,获得10
3秒前
4秒前
4秒前
高大草莓完成签到,获得积分10
4秒前
月儿完成签到,获得积分10
5秒前
研友_VZG7GZ应助鳗鱼颖采纳,获得10
6秒前
6秒前
可爱的函函应助别烦我采纳,获得10
6秒前
6秒前
8秒前
whutyoyo完成签到,获得积分10
9秒前
9秒前
9秒前
FashionBoy应助Yy采纳,获得10
10秒前
nice发布了新的文献求助10
11秒前
11秒前
赘婿应助科研通管家采纳,获得10
12秒前
慕青应助科研通管家采纳,获得10
12秒前
进击的硕士完成签到,获得积分10
12秒前
爆米花应助科研通管家采纳,获得10
12秒前
李健应助科研通管家采纳,获得10
12秒前
12秒前
领导范儿应助科研通管家采纳,获得10
12秒前
Lumen应助科研通管家采纳,获得50
12秒前
无花果应助科研通管家采纳,获得10
12秒前
CodeCraft应助科研通管家采纳,获得10
12秒前
bkagyin应助科研通管家采纳,获得10
12秒前
12秒前
12秒前
12秒前
12秒前
12秒前
英俊的铭应助科研通管家采纳,获得10
12秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Chemistry and Physics of Carbon Volume 18 800
The Organometallic Chemistry of the Transition Metals 800
Leading Academic-Practice Partnerships in Nursing and Healthcare: A Paradigm for Change 800
The formation of Australian attitudes towards China, 1918-1941 640
Signals, Systems, and Signal Processing 610
Research Methods for Business: A Skill Building Approach, 9th Edition 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6424534
求助须知:如何正确求助?哪些是违规求助? 8242462
关于积分的说明 17523544
捐赠科研通 5478671
什么是DOI,文献DOI怎么找? 2893672
邀请新用户注册赠送积分活动 1870020
关于科研通互助平台的介绍 1707906