• Home
  • Search
  • Unsupervised Machine Learning for Effective Code Smell Detection: A Novel Method
  • Cite Icon6
  • https://doi.org/10.24138/jcomss-2024-0083Copy DOI Icon

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

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

The quality of source code is negatively impacted by code smells. Since the term "code smell" originated, numerous attempts have been made to comprehend it by identifying it using various techniques, such as metric-based, heuristic-based, optimization-based, machine learning (ML)-based, etc. Among these, supervised machine learning (SML) has shown effectiveness in detecting code smells. However, SML techniques have significant limitations, including the dependency on expensive and high-quality labeled data, the need for representative training datasets, and the risk of introducing biases in labeled examples that lead to skewed predictions. To overcome these challenges, this study introduces a method that leverages unsupervised machine learning (UnML) along with feature engineering. Unlike SML, UnML does not require labeled data and minimizes potential biases. The proposed method was evaluated using four datasets containing different types of code smells and was compared with a previous study that used SML techniques. The results indicate that the UnML-based method is effective, achieving outcomes closely aligned with those from the SML approach. This method is especially beneficial in situations where labeled data is scarce or unavailable and can be used to identify new code smells, generate labeled data for SML and detect multiple code smells simultaneously within a codebase.

Similar Papers
  • 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
  • Conference Article
  • Citations9

Code Smells Incidence: Does It Depend on the Application Domain?

  • Sep 01, 2016
  • Jose Pereira Dos Reis +2
  • Conference Article
  • Citations6

Applying Machine Learning to Customized Smell Detection

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

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

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

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

  • Sep 01, 2016
  • Arvinder Kaur +2
  • 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
  • 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
  • Research Article
  • Citations1

Exploring Transfer Learning for Multilingual Software Quality: Code Smells, Bugs, and Harmful Code

  • Apr 08, 2025
  • Journal of Software Engineering Research and Development
  • Rodrigo Lima +7
  • Research Article

HSHEP: An Optimization-Based Code Smell Refactoring Sequencing Technique

  • Jul 10, 2024
  • Journal of Computational and Cognitive Engineering
  • Ritika Maini +2
  • 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
  • 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
  • Conference Article
  • Citations15

Machine learning based code smell detection through WekaNose

  • May 27, 2018
  • Umberto Azadi +2
  • Conference Article
  • Citations8

Using Supervised Machine Learning Algorithms for Automated Lithology Prediction from Wireline Log Data

  • Nov 23, 2021
  • Marian Popescu +7
  • Conference Article
  • Citations75

Landfill: An Open Dataset of Code Smells with Public Evaluation

  • May 01, 2015
  • Fabio Palomba +6
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.