• Home
  • Search
  • From code to insight: studying code representation techniques for ML-based God class detection to support intelligent IDEs
  • Cite Icon1
  • https://doi.org/10.1007/s10515-025-00534-4Copy DOI Icon

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

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

Abstract In the realm of software development, detecting code smells is a critical task for ensuring good code quality. God class code smell specifically has a specific nature associated with a great deal of subjectivity due to the levels of coupling and cohesion associated to it. Automated techniques for code smell detection aim to resolve this subjectivity. Machine learning techniques have shown promising results that tend to improve accuracy and reduce the bias associated with other techniques for God class identification. This is due to their pattern recognition capabilities making them more objective in identifying patterns that indicate code smells. However, current results need to be further improved in terms of both accuracy and generalizability. The challenge in the use of machine learning is not only in selecting the most appropriate technique but also lies in effectively representing source code as input patterns fed to Machine Learning (ML) classifier(s). Code representation plays a pivotal role in encoding source code for ML algorithms. This study aims improving the accuracy and generalizability of God class code smell detection via exploring the effect of using various code representation techniques, namely, tree-based, metric-based, code embedding, and token-based code representation techniques on the ML detection results. The study is conducted on the MLCQ dataset, and applies various ML algorithms (specifically: Logistic Regression, Random Forest, SVM, Decision Tree, Naive Bayes, Gradient Boosting, XGBoost). The evaluation results show how different code representation techniques influence ML detection outcomes and the comparative performance of ML algorithms. The study findings reveal that the F1-score achieved outperforms prior studies on the MLCQ dataset, indicating the effectiveness of the proposed approach. The presented results reveal how the code representation technique used makes a significant impact on the ML classifier results. This paves the way for developing intelligent IDE plugins for just in time God Class code smell detection among other code smells.

Loading PDF

Similar Papers
  • 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
  • Citations6

Applying Machine Learning to Customized Smell Detection

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

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

  • Apr 21, 2026
  • Software: Practice and Experience
  • Sawsan Alodibat +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
  • Supplementary Content
  • Citations231

Review of Machine Learning Algorithms for Diagnosing Mental Illness

  • Apr 01, 2019
  • Psychiatry Investigation
  • Gyeongcheol Cho +4
  • 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
  • Citations1

Prioritization of Software Bugs Using Entropy‐Based Measures

  • Nov 26, 2024
  • Journal of Software: Evolution and Process
  • Madhu Kumari +2
  • Abstract
  • Citations1

1106 Predicting adverse pregnancy outcomes in women with systemic lupus erythematosus: a comparison of machine learning methods

  • Nov 01, 2021
  • Lupus Science & Medicine
  • Melissa Fazzari +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
  • PDF
  • Research Article
  • Citations7

Comparison and Evaluation of Machine Learning-Based Classification of Hand Gestures Captured by Inertial Sensors

  • Sep 14, 2022
  • Computation
  • Ivo Stančić +4
  • PDF
  • Research Article
  • Citations49

Machine Learning-Based Prediction of Lymph Node Metastasis Among Osteosarcoma Patients

  • Apr 20, 2022
  • Frontiers in Oncology
  • Wenle Li +13
  • 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

P3819Machine learning for predicting early left ventricular abnormalities in the general population

  • Oct 01, 2019
  • European Heart Journal
  • T Kuznetsova +4
  • Research Article
  • Citations3

ABDpred: Prediction of active antimicrobial compounds using supervised machine learning techniques.

  • Jan 01, 2024
  • The Indian journal of medical research
  • Tanmoy Jana +5
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.