Abstract
Machine learning methods are increasingly being used to predict clinical outcomes. Optimism is the difference in model performance between derivation and validation samples. The term “data hungriness” refers to the sample size needed for a modelling technique to generate a prediction model with minimal optimism. Our objective was to compare the relative data hungriness of different statistical and machine learning methods when assessed using calibration. We used Monte Carlo simulations to assess the effect of number of events per variable (EPV) on the optimism of six learning methods when assessing model calibration: unpenalized logistic regression, ridge regression, lasso regression, bagged classification trees, random forests, and stochastic gradient boosting machines using trees as the base learners. We performed simulations in two large cardiovascular datasets each of which comprised an independent derivation and validation sample: patients hospitalized with acute myocardial infarction and patients hospitalized with heart failure. We used six data-generating processes, each based on one of the six learning methods. We allowed the sample sizes to be such that the number of EPV ranged from 10 to 200 in increments of 10. We applied six prediction methods in each of the simulated derivation samples and evaluated calibration in the simulated validation samples using the integrated calibration index, the calibration intercept, and the calibration slope. Across all 12 scenarios, penalized logistic regression displayed very low optimism even when the number of EPV was very low. Random forests and bagged trees tended to be the most data hungry and displayed the greatest optimism. When assessed using calibration, penalized logistic regression was substantially less data hungry than methods from the machine learning literature.
Introduction
In clinical medicine, a prediction model needs to do more than just rank patients from highest to lowest risk (discrimination); it needs to provide accurate absolute risk percentages (calibration). If a model tells a patient they have a 20% risk of a heart attack, that number needs to be true. However, complex models often suffer from optimism—they look great on the data used to build them but perform poorly on new patients. This study investigates "data hungriness": the minimum sample size (measured in Events Per Variable, or EPV) a modeling technique needs to reach a stable, low-optimism state. While previous research looked at this for discrimination, this paper tackles the often-neglected but critical area of calibration.
Methods
The researchers used a robust Monte Carlo simulation framework to compare six modeling techniques: unpenalized logistic regression, ridge regression, lasso regression, bagged classification trees, random forests, and stochastic gradient boosting machines (GBM). The study varied the sample size from 10 to 200 EPV. Performance was evaluated using the Integrated Calibration Index (ICI), calibration intercepts, and slopes. The study utilized data from the EFFECT Study, focusing on two distinct cardiovascular patient populations: an AMI Cohort (9,484 patients) and an HF Cohort (8,240 patients). These datasets allow for temporal validation, testing models on patients from a later time period than the training set.
Results
Across 12 different scenarios, penalized logistic regression showed the lowest optimism. In many cases, Ridge regression had essentially zero optimism at just 10 EPV. For unpenalized logistic regression, optimism generally stabilized once the sample size reached 50 EPV.
In contrast, random forests and bagged trees were the most data-hungry. Even at 200 EPV, these models often displayed higher optimism than logistic regression did at 20 EPV. The results suggest that modern ML methods may require over 10 times as much data as classical statistical techniques to achieve the same level of calibration stability.
Discussion and Conclusion
There is a clear trade-off between model complexity and data requirements. While Random Forests are powerful, they are "ravenous" for data. In many clinical settings where sample sizes are modest, the "black box" approach leads to significant over-optimism. Ridge and Lasso regression emerged as the most efficient methods, achieving near-zero optimism even at the lowest data levels (10 EPV). Among the tree-based ensemble methods, Gradient Boosting was significantly less data-hungry than Random Forests or Bagging, though it still couldn't match the efficiency of penalized regression.
The study focused exclusively on binary outcomes (death vs. survival). The data hungriness for continuous or time-to-event data remains an open question. The researchers encourage a shift in the ML literature toward reporting calibration metrics more rigorously, especially in small-sample clinical studies where the risk of "optimistic" but inaccurate models is highest.
Summary updated