Improving and comparing performance of machine learning classifiers optimized by swarm intelligent algorithms for code smell detection

被引:1
|
作者
Jain, Shivani [1 ]
Saha, Anju [1 ]
机构
[1] GGS Indraprastha Univ, USIC&T, Sect 16 C, Delhi 110078, India
关键词
Code Smell Detection; Machine Learning; Meta-heuristic Algorithms; Optimization; Support Vector Machine; PRICE;
D O I
10.1016/j.scico.2024.103140
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In complex systems, the maintenance phase engenders the emergence of code smells due to incessant shifts in requirements and designs, stringent timelines, and the developer's relative inexperience. While not conventionally classified as errors, code smells inherently signify flawed design structures that lead to future bugs and errors. It increases the software budget and eventually makes the system hard to maintain or completely obsolete. To mitigate these challenges, practitioners must detect and refactor code smells. However, the theoretical interpretation of smell definitions and intelligent establishment of threshold values pose a significant conundrum. Supervised machine learning emerges as a potent strategy to address these problems and alleviate the dependence on expert intervention. The learning mechanism of these algorithms can be refined through data pre-processing and hyperparameter tuning. Selecting the best values for hyperparameters can be tedious and requires an expert. This study introduces an innovative paradigm that fuses twelve swarm-based, meta-heuristic algorithms with two machine learning classifiers, optimizing their hyperparameters, eliminating the need for an expert, and automating the entire code smell detection process. Through this synergistic approach, the highest post-optimization accuracy, precision, recall, F-measure, and ROC-AUC values are 99.09%, 99.20%, 99.09%, 98.06%, and 100%, respectively. The most remarkable upsurge is 35.9% in accuracy, 53.79% in precision, 35.90% in recall, 44.73% in F-measure, and 36.28% in ROC-AUC. Artificial Bee Colony, Grey Wolf, and Salp Swarm Optimizer are the top-performing swarm-intelligent algorithms. God and Data Class are the most readily detectable smells with optimized classifiers. Statistical tests underscore the profound impact of employing swarm-based algorithms to optimize machine learning classifiers, corroborated by statistical tests. This seamless integration enhances classifier performance, automates code smell detection, and offers a robust solution to a persistent software engineering challenge.
引用
收藏
页数:31
相关论文
共 50 条
  • [21] Intelligent Classifiers for Football Player Performance Based on Machine Learning Models
    Merzah, Baydaa M.
    Croock, Muayad S.
    Rashid, Ahmed N.
    INTERNATIONAL JOURNAL OF ELECTRICAL AND COMPUTER ENGINEERING SYSTEMS, 2024, 15 (02) : 173 - 183
  • [22] Comparison of Machine Learning Methods for Code Smell Detection Using Reduced Features
    Karaduzovic-Hadziabdic, Kanita
    Spahic, Rialda
    2018 3RD INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND ENGINEERING (UBMK), 2018, : 670 - 672
  • [23] On the Role of Data Balancing for Machine Learning-Based Code Smell Detection
    Pecorelli, Fabiano
    Di Nucci, Dario
    De Roover, Coen
    De Lucia, Andrea
    PROCEEDINGS OF THE 3RD ACM SIGSOFT INTERNATIONAL WORKSHOP ON MACHINE LEARNING TECHNIQUES FOR SOFTWARE QUALITY EVALUATION (MALTESQUE '19), 2019, : 19 - 24
  • [24] Improving passive acoustic target detection using machine learning classifiers
    Bhardwaj, Ananya
    Somaan, Nizar
    Galloway, Tillson
    Sabra, Karim G.
    JOURNAL OF THE ACOUSTICAL SOCIETY OF AMERICA, 2023, 153 (03):
  • [25] Quantum particle Swarm optimized extreme learning machine for intrusion detection
    Qi, Han
    Liu, Xinyu
    Gani, Abdullah
    Gong, Changqing
    JOURNAL OF SUPERCOMPUTING, 2024, 80 (10): : 14622 - 14644
  • [26] Phishing Website Detection Using Machine Learning Classifiers Optimized by Feature Selection
    Mehanovic, Dzelila
    Kevric, Jasmin
    TRAITEMENT DU SIGNAL, 2020, 37 (04) : 563 - 569
  • [27] Comparing the Performance of Machine Learning Algorithms for Groundwater Mapping in Delhi
    Zainab Khan
    Mohammad Mohsin
    Sk Ajim Ali
    Deepika Vashishtha
    Mujahid Husain
    Adeeba Parveen
    Syed Kausar Shamim
    Farhana Parvin
    Rukhsar Anjum
    Sania Jawaid
    Zeba Khanam
    Ateeque Ahmad
    Journal of the Indian Society of Remote Sensing, 2024, 52 : 17 - 39
  • [28] Comparing the performance of machine learning algorithms using estimated accuracy
    Gupta S.
    Saluja K.
    Goyal A.
    Vajpayee A.
    Tiwari V.
    Measurement: Sensors, 2022, 24
  • [29] Comparative Analysis of Machine Learning Algorithms along with Classifiers for Network Intrusion Detection
    Choudhury, Sumouli
    Bhowal, Anirban
    2015 INTERNATIONAL CONFERENCE ON SMART TECHNOLOGIES AND MANAGEMENT FOR COMPUTING, COMMUNICATION, CONTROLS, ENERGY AND MATERIALS (ICSTM), 2015, : 89 - 95
  • [30] Intelligent Intrusion Detection System Through Combined and Optimized Machine Learning
    Shah, Syed Ali Raza
    Issac, Biju
    Jacob, Seibu Mary
    INTERNATIONAL JOURNAL OF COMPUTATIONAL INTELLIGENCE AND APPLICATIONS, 2018, 17 (02)