Sample size determines the algorithm: a two-cohort study of preoperative prediction models for postoperative acute kidney injury after noncardiac surgery
Background Postoperative acute kidney injury (AKI) complicates 5 to 10% of noncardiac surgery. Whether machine learning outperforms logistic regression remains unsettled, yet nearly all comparisons use a single sample size. We tested whether algorithm performance depends on sample size. Methods Using an identical protocol, KDIGO outcome definition and pipeline (paired logistic regression vs XGBoost, bootstrap testing, out-of-fold recalibration, decision curves), we modelled preoperative AKI in two same-institution cohorts differing 37-fold in size: VitalDB (n = 3,408) and INSPIRE (n = 125,587). Within INSPIRE we drew a five-point subsampling learning curve; transportability and robustness (seeds, hyperparameter grid, inverse-probability weighting) were examined. Results Rankings reversed. VitalDB favoured logistic regression (AUROC 0.845 vs 0.741; paired difference 0.104 [0.050 to 0.165]); INSPIRE favoured XGBoost (0.866 vs 0.832; 0.034 [0.029 to 0.038]). The learning curve showed logistic regression plateauing by about 30,000 patients while XGBoost overtook it at 2,000 to 5,000 and kept rising. Small-sample models needed recalibration (slope 0.78 to 0.99); the large-sample model was nearly self-calibrated (slope 1.014). Transport failed (AUROC 0.6175) owing to unstable small-stratum coefficients; local re-estimation on INSPIRE recovered performance (AUROC 0.832). Rankings were preserved under a prespecified stringent outcome definition in both cohorts. Conclusions Algorithm choice should follow the volume of local data: a parsimonious model sufficed at routine single-centre sample sizes, whereas gradient boosting paid off at large scale. Small-sample models did not transport across databases; because transport broke ranking itself, recovery required full local re-estimation rather than intercept-and-slope updating alone.
Authors
- Shujiang Xia
- Zhen Dai
- Xiaoyu Zhao
Institutions
- Fourth Affiliated Hospital of Anhui Medical University (CN)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-27
- DOI
- https://doi.org/10.21203/rs.3.rs-11777639/v1
- Primary Topic
- Acute Kidney Injury Research
- Type
- preprint