• Home
  • Search
  • Bad Smell Detection Using Machine Learning Techniques: A Systematic Literature Review
  • Cite Icon89
  • https://doi.org/10.1007/s13369-019-04311-wCopy DOI Icon

Bad Smell Detection Using Machine Learning Techniques: A Systematic Literature Review

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Code smells are indicators of potential problems in software. They tend to have a negative impact on software quality. Several studies use machine learning techniques to detect bad smells. The objective of this study is to systematically review and analyze machine learning techniques used to detect code smells to provide interested research community with knowledge about the adopted techniques and practices for code smells detection. We use a systematic literature review approach to review studies that use machine learning techniques to detect code smells. Seventeen primary studies were identified. We found that 27 code smells were used in the identified studies; God Class and Long Method, Feature Envy, and Data Class are the most frequently detected code smells. In addition, we found that 16 machine learning algorithms were employed to detect code smells with acceptable prediction accuracy. Furthermore, we the results also indicate that support vector machine techniques were investigated the most. Moreover, we observed that J48 and Random Forest algorithms outperform the other algorithms. We also noticed that, in some cases, the use of boosting techniques on the models does not always enhance their performance. More studies are needed to consider the use of ensemble learning techniques, multiclassification, and feature selection technique for code smells detection. Thus, the application of machine learning algorithms to detect code smells in systems is still in its infancy and needs more research to facilitate the employment of machine learning algorithms in detecting code smells.

Similar Papers
  • PDF
  • Research Article
  • Citations1

From code to insight: studying code representation techniques for ML-based God class detection to support intelligent IDEs

  • Jul 25, 2025
  • Automated Software Engineering
  • Elmohanad Haroon +2
  • Research Article

A Systematic Review on Code Smell Detection Approaches in Open Source Projects

  • Apr 21, 2026
  • Software: Practice and Experience
  • Sawsan Alodibat +1
  • Conference Article
  • Citations6

Applying Machine Learning to Customized Smell Detection

  • Oct 21, 2020
  • Daniel Oliveira +5
  • Research Article

Optimizing LSTM for Code Smell Detection: The Role of Data Balancing

  • Jan 01, 2024
  • Infocommunications journal
  • Alnor Adam Khleel Nasraldeen +1
  • Research Article
  • Citations19

Application of machine learning algorithms for code smell prediction using object-oriented software metrics

  • Jul 29, 2020
  • Journal of Statistics and Management Systems
  • Mansi Agnihotri +1
  • PDF
  • Research Article
  • Citations13

The problem of conceptualization in god class detection: agreement, strategies and decision drivers

  • Sep 18, 2014
  • Journal of Software Engineering Research and Development
  • José Amancio M Santos +3
  • Research Article
  • Citations70

Predicting Code Smells and Analysis of Predictions: Using Machine Learning Techniques and Software Metrics

  • Nov 01, 2020
  • Journal of Computer Science and Technology
  • Mohammad Y Mhawish +1
  • Research Article

Editorial for the special issue on software refactoring: Application breadth and technical depth

  • Sep 18, 2024
  • Journal of Software: Evolution and Process
  • Zhenchang Xing
  • Conference Article
  • Citations15

Machine learning based code smell detection through WekaNose

  • May 27, 2018
  • Umberto Azadi +2
  • Research Article
  • Citations6

Unsupervised Machine Learning for Effective Code Smell Detection: A Novel Method

  • Jan 01, 2024
  • Journal of Communications Software and Systems
  • Ruchin Gupta +3
  • Research Article
  • Citations8

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

  • May 15, 2024
  • Science of Computer Programming
  • Shivani Jain +1
  • Supplementary Content
  • Citations231

Review of Machine Learning Algorithms for Diagnosing Mental Illness

  • Apr 01, 2019
  • Psychiatry Investigation
  • Gyeongcheol Cho +4
  • Research Article
  • Citations59

Are you smelling it? Investigating how similar developers detect code smells

  • Sep 06, 2017
  • Information and Software Technology
  • Mário Hozano +3
  • Research Article
  • Citations10

Study of Code Smells: A Review and Research Agenda

  • Jun 01, 2024
  • International Journal of Mathematical, Engineering and Management Sciences
  • Stuti Tandon +2
  • Research Article
  • Citations1

Cross-Language Code Smell Detection via Transfer Learning

  • Aug 24, 2025
  • Applied Sciences
  • Rana Sandouka +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.