• Home
  • Search
  • Predicting Code Smells and Analysis of Predictions: Using Machine Learning Techniques and Software Metrics
  • Cite Icon70
  • https://doi.org/10.1007/s11390-020-0323-7Copy DOI Icon

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

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

Code smell detection is essential to improve software quality, enhancing software maintainability, and decrease the risk of faults and failures in the software system. In this paper, we proposed a code smell prediction approach based on machine learning techniques and software metrics. The local interpretable model-agnostic explanations (LIME) algorithm was further used to explain the machine learning model’s predictions and interpretability. The datasets obtained from Fontana et al. were reformed and used to build binary-label and multi-label datasets. The results of 10-fold cross-validation show that the performance of tree-based algorithms (mainly Random Forest) is higher compared with kernel-based and network-based algorithms. The genetic algorithm based feature selection methods enhance the accuracy of these machine learning algorithms by selecting the most relevant features in each dataset. Moreover, the parameter optimization techniques based on the grid search algorithm significantly enhance the accuracy of all these algorithms. Finally, machine learning techniques have high potential in predicting the code smells, which contribute to detect these smells and enhance the software’s quality.

Similar Papers
  • Conference Article
  • Citations6

Applying Machine Learning to Customized Smell Detection

  • Oct 21, 2020
  • Daniel Oliveira +5
  • 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
  • Research Article
  • Citations89

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

  • Jan 07, 2020
  • Arabian Journal for Science and Engineering
  • Ahmed Al-Shaaby +2
  • Conference Article
  • Citations7

Determining the Major Contributing Features to Predict Breast Cancer Imposing ML Algorithms with LIME and SHAP

  • Nov 16, 2023
  • Prakash Paudel +3
  • Conference Article
  • Citations15

Machine learning based code smell detection through WekaNose

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

Forecasting and Feature Analysis of Ship Fuel Consumption by Explainable Machine Learning Approaches

  • Mar 01, 2025
  • Polish Maritime Research
  • Nguyen Dang Khoa Pham +6
  • Conference Article
  • Citations15

Predicting software change-proneness with code smells and class imbalance learning

  • Sep 01, 2016
  • Arvinder Kaur +2
  • Conference Article

An Explainable AI-based Network Intrusion Detection System for Botnet Attacks

  • Jun 17, 2025
  • Dorieh Alomari +2
  • Research Article
  • Citations17

Achieving model explainability for intrusion detection in VANETs with LIME

  • Jun 22, 2023
  • PeerJ Computer Science
  • Fayaz Hassan +5
  • 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

Explainable artificial intelligence-driven ensemble learning for asthma risk prediction using machine and deep learning.

  • Apr 01, 2026
  • The Journal of international medical research
  • Md Mahbubur Rahman Druvo +3
  • 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
  • Research Article

Predictive modeling of consumer purchase behavior on social media: Integrating theory of planned behavior and machine learning for actionable insights

  • Dec 27, 2023
  • PLOS ONE
  • Md Shawmoon Azad +5
  • Research Article
  • Citations45

Machine Learning Approaches to Classify Primary and Metastatic Cancers Using Tissue of Origin-Based DNA Methylation Profiles

  • Jul 27, 2021
  • Cancers
  • Vijayachitra Modhukur +6
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.