Investigating the Effect of Class Imbalance on the Performance of Self-Admitted Technical Debt Prediction Models

Self-Admitted Technical Debt (SATD) refers to situations where developers explicitly acknowledge design or implementation compromises in source code comments. Although SATD detection has been extensively studied in recent years, most datasets are severely imbalanced, leading models to bias toward the majority class. This paper empirically investigates how class imbalance affects the performance and stability of SATD prediction models. We design a dataset generation algorithm to construct datasets with varying imbalance ratios and benchmark four representative approaches: unsupervised pattern matching (MAT), traditional text mining (TM), maximum-entropy-based natural language processing (NLP), and convolutional neural networks (CNN). We evaluate these approaches under both many-to-one (MTO) and one-to-one (OTO) prediction scenarios. Experimental results show that CNN achieves competitive performance and stability in cross-project (MTO) prediction, while MAT remains stable in single-project (OTO) settings and under highly imbalanced conditions. TM and NLP methods can reach local peaks under moderate-to-high imbalance ratios. These findings delineate the trade-offs among methods, offering actionable guidance for selecting SATD detection models under varying imbalance conditions.

Authors

Institutions

Publication Details

Journal
International Journal of Software Engineering and Knowledge Engineering
Published
2026-06-30
DOI
https://doi.org/10.1142/s0218194026500531
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
OCT
article

Investigating the Effect of Class Imbalance on the Performance of Self-Admitted Technical Debt Prediction Models

Zijie Huang, Xingguang Yang, Kai Shi, Zhenyu Shu et al.
International Journal of Software Engineering and Knowledge Engineering
Software Engineering Research
article

Investigating the Effect of Class Imbalance on the Performance of Self-Admitted Technical Debt Prediction Models

Zijie Huang, Xingguang Yang, Kai Shi, Zhenyu Shu, Gang Wang, Zedi Wu
article en

Abstract

Self-Admitted Technical Debt (SATD) refers to situations where developers explicitly acknowledge design or implementation compromises in source code comments. Although SATD detection has been extensively studied in recent years, most datasets are severely imbalanced, leading models to bias toward the majority class. This paper empirically investigates how class imbalance affects the performance and stability of SATD prediction models. We design a dataset generation algorithm to construct datasets with varying imbalance ratios and benchmark four representative approaches: unsupervised pattern matching (MAT), traditional text mining (TM), maximum-entropy-based natural language processing (NLP), and convolutional neural networks (CNN). We evaluate these approaches under both many-to-one (MTO) and one-to-one (OTO) prediction scenarios. Experimental results show that CNN achieves competitive performance and stability in cross-project (MTO) prediction, while MAT remains stable in single-project (OTO) settings and under highly imbalanced conditions. TM and NLP methods can reach local peaks under moderate-to-high imbalance ratios. These findings delineate the trade-offs among methods, offering actionable guidance for selecting SATD detection models under varying imbalance conditions.

International Journal of Software Engineering and Knowledge Engineering
Twitter (United States) (US)
Partnerships for the goals
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.