🤖 AI Summary
This study addresses the adverse impact of resampling methods—such as SMOTE and random undersampling—on the calibration of tree-based ensemble models under class imbalance. While these techniques improve classification performance, they degrade probability calibration, thereby compromising the reliability of decisions that depend on predicted probabilities. The work systematically evaluates this effect and quantifies, for the first time, that SMOTE increases the expected calibration error (ECE) by an average of 0.009, whereas random undersampling under high imbalance elevates ECE to as much as 0.395. It further demonstrates that standard prior-probability correction is ineffective for SMOTE, necessitating data-driven post-hoc calibration. Experiments show that applying Platt or isotonic regression reduces ECE by up to 66% with negligible AUC degradation (only 0.002), underscoring the necessity and efficacy of post-calibration in imbalanced learning scenarios.
📝 Abstract
Resampling methods such as SMOTE and random under/over-sampling are standard tools for class-imbalanced classification, almost always evaluated by minority-class accuracy or F1. Prior work has established that undersampling degrades probability calibration by distorting the training prior [1]. We extend this lens to synthetic oversampling (SMOTE) and provide a practical, evidence-based guide to when calibration damage matters and how to fix it. Across five public datasets (imbalance ratio 1.9-70) and two ensemble models (random forest, gradient boosting), with ten seeds and paired statistics, we find: (1) SMOTE's calibration cost is real but small (ECE +0.009; Cliff's delta = +0.27, small-to-moderate) across the studied imbalance range (IR 1.9-70) and its discrimination gains typically outweigh the calibration penalty; (2) random undersampling is the genuine danger -- its damage grows sharply with imbalance, inflating ECE from 0.008 to 0.395 on a dataset with ratio 70, largely because the resulting training sets are too small to estimate probabilities reliably; (3) a single post-hoc recalibration step (Platt or isotonic) eliminates the damage, reducing ECE by up to 66% at a negligible ranking-power cost (AUC -0.002, Cliff's delta = -0.07); and (4) the analytic prior-shift correction that repairs undersampling does not transfer to SMOTE, because SMOTE distorts the class-conditional density rather than only the prior -- so data-driven recalibration remains necessary. We recommend that imbalanced-learning studies report calibration alongside discrimination, and that practitioners recalibrate after resampling whenever predicted probabilities drive decisions.