• Home
  • Search
  • Applying Machine Learning to Customized Smell Detection
  • Cite Icon6
  • https://doi.org/10.1145/3422392.3422427Copy DOI Icon

Applying Machine Learning to Customized Smell Detection

  • Oct 21, 2020
  • Daniel Oliveira +5 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Code smells are considered symptoms of poor implementation choices, which may hamper the software maintainability. Hence, code smells should be detected as early as possible to avoid software quality degradation. Unfortunately, detecting code smells is not a trivial task. Some preliminary studies investigated and concluded that machine learning (ML) techniques are a promising way to better support smell detection. However, these techniques are hard to be customized to promote an early and accurate detection of specific smell types. Yet, ML techniques usually require numerous code examples to be trained (composing a relevant dataset) in order to achieve satisfactory accuracy. Unfortunately, such a dependency on a large validated dataset is impractical and leads to late detection of code smells. Thus, a prevailing challenge is the early customized detection of code smells taking into account the typical limited training data. In this direction, this paper reports a study in which we collected code smells, from ten active projects, that were actually refactored by developers, differently from studies that rely on code smells inferred by researchers. These smells were used for evaluating the accuracy regarding early detection of code smells by using seven ML techniques. Once we take into account such smells that were considered as important by developers, the ML techniques are able to customize the detection in order to focus on smells observed as relevant in the investigated systems. The results showed that all the analyzed techniques are sensitive to the type of smell and obtained good results for the majority of them, especially JRip and Random Forest. We also observe that the ML techniques did not need a high number of examples to reach their best accuracy results. This finding implies that ML techniques can be successfully used for early detection of smells without depending on the curation of a large dataset.

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
  • 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
  • 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
  • Conference Article
  • Citations15

Machine learning based code smell detection through WekaNose

  • May 27, 2018
  • Umberto Azadi +2
  • 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

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
  • 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

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

  • Jan 01, 2024
  • Infocommunications journal
  • Alnor Adam Khleel Nasraldeen +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
  • 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
  • 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
  • Research Article
  • Citations5

OCL을 이용한 자동화된 코드스멜 탐지와 리팩토링

  • Dec 31, 2008
  • The KIPS Transactions:PartD
  • Tae-Woong Kim +1
  • Research Article
  • Citations11

Predictive Six Sigma for Turkish manufacturers: utilization of machine learning tools in DMAIC

  • Nov 09, 2022
  • International Journal of Lean Six Sigma
  • Meryem Uluskan +1
  • Conference Article
  • Citations15

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

  • Sep 01, 2016
  • Arvinder Kaur +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.