EUVIMEDEUVIMED entdecken
Crossref

Unearthing Code Smells: An In‐Depth Exploration of Machine Learning Techniques in Code Smell Detection

Ishita Kheria, Dhruv Gada, Vijay Harkare, Ruhina Karani

Journal of Software: Evolution and Process · 2026-06 · 38 (6)

DOI: 10.1002/smr.70144 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Software: Evolution and Process, online erschienen am 03.06.2026. Verfasst von Ishita Kheria und 3 weiteren Autor:innen. Die Arbeit nennt 55 Literaturangaben.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Code smells are clear indicators of design flaws that compromise maintainability, reliability, and overall performance in software systems. As systems become complex, traditional detection methods become inadequate, prompting the need for automated approaches. In this study, we evaluate the potential of conventional machine learning algorithms for detecting critical code smells. Specifically, we examine Classification and Regression Trees (CART), Gradient Boosting Classifiers, Extreme Gradient Boosting (XGBoost), RuleFit, Adaptive Boosting (AdaBoost), K ‐Nearest Neighbors (KNN), Stochastic Gradient Descent (SGD), and Random Forest to identify six key code smell categories: Large Class, Long Parameter List, Switch Statements, God Class, Data Class, and Long Method. Advanced resampling techniques such as SMOTE–ENN and SMOTE–Tomek are employed to mitigate dataset imbalances alongside tree‐based feature extraction for effective dimensionality reduction. Systematic experimentation demonstrates that SMOTE‐based strategies significantly enhance detection performance, yielding robust results across multiple evaluation metrics. By focusing on the core challenges of code smell detection, this study provides a cost‐effective alternative to deep learning methods, which often demand extensive computational resources and large labeled datasets.

Zitieren

APA

Kheria, I., Gada, D., Harkare, V., & Karani, R. (2026). Unearthing Code Smells: An In‐Depth Exploration of Machine Learning Techniques in Code Smell Detection. Journal of Software: Evolution and Process, 38(6). https://doi.org/10.1002/smr.70144

Vancouver

Kheria I, Gada D, Harkare V, Karani R. Unearthing Code Smells: An In‐Depth Exploration of Machine Learning Techniques in Code Smell Detection. Journal of Software: Evolution and Process. 2026;38(6). doi:10.1002/smr.70144

BibTeX
@article{Kheria2026,
  author = {Kheria, Ishita and Gada, Dhruv and Harkare, Vijay and Karani, Ruhina},
  title = {Unearthing Code Smells: An In‐Depth Exploration of Machine Learning Techniques in Code Smell Detection},
  journal = {Journal of Software: Evolution and Process},
  year = {2026},
  volume = {38},
  number = {6},
  doi = {10.1002/smr.70144}
}
Kostenlos starten →