Performance Overfitting Trade-Offs: Analysis of Under-Sampling Techniques for Imbalanced Classification
Abstract
Class imbalance is a persistent challenge in supervised learning, where the under-representation of minority classes can compromise classifier generalization. Although prior research has explored overfitting and class imbalance independently, the impact of under-sampling algorithms on overfitting under imbalanced conditions remains underexamined. This study provides a systematic empirical comparison of five under-sampling techniques which include Random Under-Sampling (RUS), Tomek Links, Edited Nearest Neighbours (ENN), Condensed Nearest Neighbour (CNN), Near-Miss, with an additional DBSCAN-based under-sampling variant against a non-sampled imbalanced baseline. This study does not propose a new resampling algorithm. Its novelty lies in providing the first controlled, statistically rigorous comparison of under-sampling techniques through the joint lens of predictive performance (F-measure/G-mean) and overfitting (test-to-train error gap), a combination not previously examined together. Experiments employ Random Forest classifiers and evaluate performance using out-of-bag (OOB) error, test error, overfitting margin, and average ranking across 15 benchmark datasets spanning 214 to 10,992 instances with imbalance ratios ranging from 1.3:1 to 92.1:1. Results indicate that No Sampling and Tomek Links achieve the highest F-measure and G-mean scores, often reaching perfect values of 1.0, while RUS remains competitive across diverse settings. Regarding overfitting mitigation, ENN consistently reduces the test-to-train error gap (mean difference, $\Delta = 0.065$ ). However, as Random Forest classifiers exhibit near-zero training error, this gap is interpreted as a relative indicator across sampling schemes rather than a standalone overfitting measure, highlighting the role of boundary-focused majority-class removal as an implicit stabilizing mechanism. The results reveal that boundary-cleaning algorithms (ENN and Tomek Links) and RUS perform consistently well compared to other prototype-selection algorithms. Surprisingly, the baseline often performed competitively or better, particularly on large datasets with well-separated features. The findings also show that DBSCAN-based under-sampling frequently degraded classifier performance and is considered the least reliable baseline among the evaluated methods.