EUVIMEDEUVIMED entdecken
Open Access · CC BY-NC-SA 4.0

Analysis of Code Smells Detection Using Machine Learning and Deep Learning Approaches

Enrique Alejandro Chim Mex, Antonio Armando Aguileta Güemez, Raúl Antonio Aguilar Vera

Revista Científica · 19.06.2026 · 53 (1) · e24617

DOI: 10.14483/23448350.24617 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Revista Científica, online erschienen am 19.06.2026. Verfasst von Enrique Alejandro Chim Mex und 2 weiteren Autor:innen. Die Arbeit nennt 32 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY-NC-SA 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Detecting Code Smells (CS) is important for preventing future problems in software development. It also helps improve software quality and save time on maintenance. This study contributes with a systematic experiment that integrates Data Leakage control, rigorous preprocessing, and the comparison of Machine Learning (ML) and Deep Learning (DL) models, contributing with a replicable methodology for CS detection. To this end, an experiment was designed that focused on CS analysis using artificial intelligence approaches. ML and DL models were applied to the dataset based on method-level software metrics. The methodological process included comprehensive processing, which addressed variable cleaning and normalization, transformations, and feature reduction. In addition, the problem of data leakage was controlled to ensure the validity of the results. Multiple ML models (Random Forest, Support Vector Machine, Decision Tree, K-Nearest Neighbors, Naive Bayes, and Logistic Regression) and a DL model based on a MLP were trained and evaluated. The results showed remarkable performance in most models, achieving accuracy between 94\% and 98\% after cross-validation with 10 folds. However, the MLP stood out with an accuracy close to 99\%, positioning it as the best-performing classifier for CS detection.

Zitieren

APA

Mex, E. A. C., Güemez, A. A. A., & Vera, R. A. A. (2026). Analysis of Code Smells Detection Using Machine Learning and Deep Learning Approaches. Revista Científica, 53(1), e24617. https://doi.org/10.14483/23448350.24617

Vancouver

Mex EAC, Güemez AAA, Vera RAA. Analysis of Code Smells Detection Using Machine Learning and Deep Learning Approaches. Revista Científica. 2026;53(1):e24617. doi:10.14483/23448350.24617

BibTeX
@article{Mex2026,
  author = {Mex, Enrique Alejandro Chim and Güemez, Antonio Armando Aguileta and Vera, Raúl Antonio Aguilar},
  title = {Analysis of Code Smells Detection Using Machine Learning and Deep Learning Approaches},
  journal = {Revista Científica},
  year = {2026},
  volume = {53},
  number = {1},
  pages = {e24617},
  doi = {10.14483/23448350.24617}
}
Kostenlos starten →