The harm of class imbalance corrections for risk prediction models: Illustration and simulation using logistic regression

103Citations
Citations of this article
207Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

Objective: Methods to correct class imbalance (imbalance between the frequency of outcome events and nonevents) are receiving increasing interest for developing prediction models. We examined the effect of imbalance correction on the performance of logistic regression models. Material and Methods: Prediction models were developed using standard and penalized (ridge) logistic regression under 4 methods to address class imbalance: No correction, random undersampling, random oversampling, and SMOTE. Model performance was evaluated in terms of discrimination, calibration, and classification. Using Monte Carlo simulations, we studied the impact of training set size, number of predictors, and the outcome event fraction. A case study on prediction modeling for ovarian cancer diagnosis is presented. Results: The use of random undersampling, random oversampling, or SMOTE yielded poorly calibrated models: The probability to belong to the minority class was strongly overestimated. These methods did not result in higher areas under the ROC curve when compared with models developed without correction for class imbalance. Although imbalance correction improved the balance between sensitivity and specificity, similar results were obtained by shifting the probability threshold instead. Discussion: Imbalance correction led to models with strong miscalibration without better ability to distinguish between patients with and without the outcome event. The inaccurate probability estimates reduce the clinical utility of the model, because decisions about treatment are ill-informed. Conclusion: Outcome imbalance is not a problem in itself, imbalance correction may even worsen model performance.

Cite

CITATION STYLE

APA

Van Den Goorbergh, R., Van Smeden, M., Timmerman, D., & Ben Van Calster. (2022). The harm of class imbalance corrections for risk prediction models: Illustration and simulation using logistic regression. Journal of the American Medical Informatics Association, 29(9), 1525–1534. https://doi.org/10.1093/jamia/ocac093

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free