The Harms of Class Imbalance Corrections for Machine Learning Based Prediction Models: A Simulation Study

Alex Carriero*, Kim Luijken, Anne de Hond, Karel G.M. Moons, Ben van Calster, Maarten van Smeden

*Corresponding author for this work

Research output: Contribution to journalArticleAcademicpeer-review

1 Downloads (Pure)

Abstract

Introduction: Risk prediction models are increasingly used in healthcare to aid in clinical decision-making. In most clinical contexts, model calibration (i.e., assessing the reliability of risk estimates) is critical. Data available for model development are often not perfectly balanced with the modeled outcome (i.e., individuals with vs. without the event of interest are not equally prevalent in the data). It is common for researchers to correct for class imbalance, yet, the effect of such imbalance corrections on the calibration of machine learning models is largely unknown. Methods: We studied the effect of imbalance corrections on model calibration for a variety of machine learning algorithms. Using extensive Monte Carlo simulations we compared the out-of-sample predictive performance of models developed with an imbalance correction to those developed without a correction for class imbalance across different data-generating scenarios (varying sample size, the number of predictors, and event fraction). Our findings were illustrated in a case study using MIMIC-III data. Results: In all simulation scenarios, prediction models developed without a correction for class imbalance consistently had equal or better calibration performance than prediction models developed with a correction for class imbalance. The miscalibration introduced by correcting for class imbalance was characterized by an over-estimation of risk and was not always able to be corrected with re-calibration. Conclusion: Correcting for class imbalance is not always necessary and may even be harmful to clinical prediction models which aim to produce reliable risk estimates on an individual basis.

Original languageEnglish
Article numbere10320
JournalStatistics in Medicine
Volume44
Issue number3-4
DOIs
Publication statusPublished - 10 Feb 2025

Keywords

  • calibration
  • class imbalance
  • machine learning
  • prediction modeling

Fingerprint

Dive into the research topics of 'The Harms of Class Imbalance Corrections for Machine Learning Based Prediction Models: A Simulation Study'. Together they form a unique fingerprint.

Cite this