arrow
Return

Code smell detection by exploiting parameter tuning techniques for sustainable software evolution

delete2025-09-01
delete0
PRE
AI
S
Shrasti Mourya
V
V. B. Singh *
DOI:10.1007/s13198-025-02951-wdelete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Sustainable software development involves effective techniques to preserve code quality as systems grow in complexity. Current techniques may have trouble with unbalanced data or be unreliable in detecting smells. However, to the best of our knowledge about the literature towards the field, experimental evaluation is carried out in the direction that the impact of parameter tuning on machine learning models is not significant. To address these challenges, we empirically experimented all possible combinations of 22 feature selection techniques, 14 imbalance handling methods, for AdaBoost classifier, applying 5 parameter tuning techniques and evaluating models with 7 performance metrics on 3 types of code smells (God Class, Feature Envy, Long Method) by considering standard code smell datasets. 4620 models were generated and evaluated to determine which combinations had the best performance in detecting each of the aforementioned code smells. In particular, 909 models exceeded 57.88% accuracy for Feature Envy, 533 models surpassed 80.84% for God Class, and 1,001 models outperformed 76.40% for Long Method. By optimizing AdaBoost for varied feature selection, imbalance handling and parameter tuning scenarios, we provide a replicable framework for improving code quality assessment and supporting sustainable software development practices.
Keywords:
Code smells
Code smell detection
Machine learning algorithms
Parameter tuning
Software quality
Software sustainability
Software evolution

Journal

I
International Journal of System Assurance Engineering and Management
IF:
1.4
Papers:
370
Citations:
3.0K

Organization

No organization information available
Cited Papers

Cited Papers

Automatic detection of Long Method and God Class code smells through neural source code embeddings
err2022-10-01
err25
errOAAI
errKovacevic, Aleksandar; Slivka, Jelena; Vidakovic, Dragan; Grujic, Katarina-Glorija; Luburic, Nikola; Prokic, Simona; Sladic, Goran
errShare
errSave
Code Smell Detection Using Ensemble Machine Learning Algorithms
err2022-10-13
err0
errOAAI
errSeema Dewangan; Rajwant Singh Rao; Alok Mishra; Manjari Gupta
errShare
errSave
Comparing and experimenting machine learning techniques for code smell detection
err2015-06-06
err277
PREAI
errFontana, Francesca Arcelli; Mantyla, Mika V.; Zanoni, Marco; Marino, Alessandro
errShare
errSave
errShare
errSave
researcher View more