[Paper Review] The harm of class imbalance corrections for risk prediction models: illustration and simulation using logistic regression
This study investigates the impact of class imbalance correction methods—random undersampling, oversampling, and SMOTE—on logistic and ridge logistic regression models in risk prediction. It demonstrates that these corrections consistently worsen calibration by overestimating minority class probabilities, despite improving sensitivity and specificity, which can be achieved more reliably by adjusting the probability threshold instead.
Methods to correct class imbalance, i.e. imbalance between the frequency of outcome events and non-events, are receiving increasing interest for developing prediction models. We examined the effect of imbalance correction on the performance of standard and penalized (ridge) logistic regression models in terms of discrimination, calibration, and classification. We examined random undersampling, random oversampling and SMOTE using Monte Carlo simulations and a case study on ovarian cancer diagnosis. The results indicated that all imbalance correction methods led to poor calibration (strong overestimation of the probability to belong to the minority class), but not to better discrimination in terms of the area under the receiver operating characteristic curve. Imbalance correction improved classification in terms of sensitivity and specificity, but similar results were obtained by shifting the probability threshold instead. Our study shows that outcome imbalance is not a problem in itself, and that imbalance correction may even worsen model performance.
Motivation & Objective
- To evaluate the effects of class imbalance correction techniques on risk prediction model performance in logistic regression.
- To assess whether methods like SMOTE, undersampling, and oversampling improve discrimination, calibration, and classification metrics.
- To determine whether the benefits of imbalance correction outweigh the risks in real-world clinical prediction modeling.
- To compare the performance of imbalance-corrected models with simple threshold shifting for optimizing sensitivity and specificity.
- To provide empirical and simulation-based evidence on the unintended consequences of imbalance correction in low-prevalence outcome settings.
Proposed method
- Conducted Monte Carlo simulations using synthetic datasets with varying degrees of class imbalance and outcome prevalence.
- Applied standard and ridge logistic regression models to both original and imbalance-corrected datasets.
- Employed three imbalance correction techniques: random undersampling, random oversampling, and SMOTE (Synthetic Minority Over-sampling Technique).
- Evaluated model performance using discrimination (AUC-ROC), calibration (calibration plots and calibration slope), and classification (sensitivity, specificity, F1-score).
- Performed a case study using real ovarian cancer diagnosis data to validate simulation findings in a clinical context.
- Compared model outputs across correction methods and assessed the impact of threshold shifting on classification performance.
Experimental results
Research questions
- RQ1Does correcting for class imbalance improve the discrimination ability of logistic regression models as measured by AUC-ROC?
- RQ2How do different imbalance correction techniques affect the calibration of risk prediction models?
- RQ3Can the same classification performance gains (e.g., sensitivity and specificity) be achieved without imbalance correction by adjusting the probability threshold?
- RQ4What is the impact of imbalance correction on the estimation of minority class probabilities in low-prevalence outcomes?
- RQ5Is the use of SMOTE or sampling methods justified in risk prediction modeling when they lead to overestimation of risk in minority outcomes?
Key findings
- All imbalance correction methods—undersampling, oversampling, and SMOTE—resulted in poor calibration, with strong overestimation of the probability of belonging to the minority class.
- No improvement in discrimination was observed, as the area under the ROC curve (AUC) remained unchanged or slightly reduced after correction.
- While sensitivity and specificity improved with imbalance correction, equivalent or better performance was achieved by simply shifting the probability threshold without any data manipulation.
- The case study on ovarian cancer diagnosis confirmed simulation results, showing that imbalance correction led to overconfident and poorly calibrated predictions.
- Ridge logistic regression did not mitigate the negative calibration effects of imbalance correction, indicating that regularization alone does not resolve the issue.
- The study concludes that class imbalance is not a problem per se, and that imbalance correction may actively harm model performance in risk prediction contexts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.