God Class Detection using Thresholds of Software Code Metrics Derived from Metaheuristic Optimization

The detection of God Class code smells is necessary for maintaining the quality, maintainability, and evolution of the software. Traditional code smell detection methods often rely on static and developer intuition-based thresholds of the software metrics, which may not be applicable to projects of different sizes and domains. This study proposes a new methodology for God Class detection by calculating thresholds of software metrics (Chidamber and Kemerer (CK) metrics suite) WMC, RFC, CBO, LCOM, and LOC for more accurate detection of God Class smells. The optimal thresholds for these metrics were derived using four metaheuristic algorithms: Genetic Algorithm (GA), Particle Swarm Optimization (PSO), Differential Evolution (DE), and Artificial Bee Colony (ABC), with the objective of maximizing the harmonic mean of sensitivity and specificity. Experimental findings compare the proposed approach with existing methods of thresholds derivation, using evaluation parameters including Accuracy, AUC, and the harmonic mean of sensitivity and specificity. Universal thresholds were also derived using weighted clustering for the software where project specific tuning is not possible. These results highlight the importance of metaheuristic optimization for improved detection of God Class code smells.

Authors

Institutions

Publication Details

Journal
Sakarya University Journal of Computer and Information Sciences
Published
2026-09-30
DOI
https://doi.org/10.35377/saucis...1797149
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

God Class Detection using Thresholds of Software Code Metrics Derived from Metaheuristic Optimization

Jitender Kumar Chhabra, Kapil Sharma
Sakarya University Journal of Computer and Information Sciences
Software Engineering Research
article

God Class Detection using Thresholds of Software Code Metrics Derived from Metaheuristic Optimization

Jitender Kumar Chhabra, Kapil Sharma
article en

Abstract

The detection of God Class code smells is necessary for maintaining the quality, maintainability, and evolution of the software. Traditional code smell detection methods often rely on static and developer intuition-based thresholds of the software metrics, which may not be applicable to projects of different sizes and domains. This study proposes a new methodology for God Class detection by calculating thresholds of software metrics (Chidamber and Kemerer (CK) metrics suite) WMC, RFC, CBO, LCOM, and LOC for more accurate detection of God Class smells. The optimal thresholds for these metrics were derived using four metaheuristic algorithms: Genetic Algorithm (GA), Particle Swarm Optimization (PSO), Differential Evolution (DE), and Artificial Bee Colony (ABC), with the objective of maximizing the harmonic mean of sensitivity and specificity. Experimental findings compare the proposed approach with existing methods of thresholds derivation, using evaluation parameters including Accuracy, AUC, and the harmonic mean of sensitivity and specificity. Universal thresholds were also derived using weighted clustering for the software where project specific tuning is not possible. These results highlight the importance of metaheuristic optimization for improved detection of God Class code smells.

Sakarya University Journal of Computer and Information SciencesVol. 9(4)
National Institute of Technology Kurukshetra (IN)
Openalex Percentile: Top 4%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

God Class Detection using Thresholds of Software Code Metrics Derived from Metaheuristic Optimization — Jitender Kumar Chhabra, Kapil Sharma · Sakarya University Journal of Computer and Information Sciences (2026) | TGRS Research Map | TGRS