Development and external validation of an interpretable stacking ensemble model for new-onset atrial fibrillation in critically ill patients

Background New-onset atrial fibrillation (NOAF) is a frequent cardiovascular complication of critical illness associated with worse outcomes. Existing prediction models are usually built on a single algorithm and are rarely validated across independent critical-care databases. We developed and externally validated an interpretable stacking ensemble model for NOAF prediction in critically ill patients. Methods Retrospective cohort study using two public critical-care databases: MIMIC-IV (34,384 ICU admissions; split 70:30 before imputation) and the eICU Collaborative Research Database (eICU-CRD; 32,067 patients, reserved entirely for external validation). Thirty-nine harmonised first-24-hour variables were screened by univariable logistic regression and reduced by least absolute shrinkage and selection operator (LASSO) regression, both steps re-run inside every cross-validation fold so that out-of-fold predictions carried no selection leakage; a random-forest imputer was fitted on the training set only. Nine algorithms were developed on the training set (n = 24,068; internal test n = 10,316), and the three best, ranked by out-of-fold area under the receiver operating characteristic curve (AUC), were combined with a LASSO meta-learner into a single frozen predictor. Discrimination, calibration, clinical utility and SHapley Additive exPlanations (SHAP) were assessed. Results NOAF occurred in 9,535 patients (27.7%) in MIMIC-IV and 2,457 (7.7%) in eICU-CRD; 26 of 39 variables were retained by LASSO. The stacking ensemble achieved an AUC of 0.843 (95% CI 0.835–0.851) internally and 0.753 (0.743–0.762) externally, with average precisions of 0.668 and 0.201. Internal discrimination exceeded each base learner (DeLong P < 0.001); externally the advantage was detectable against the multilayer perceptron and random forest but not XGBoost. Calibration was better internally than externally (slope 1.14, 95% CI 1.10–1.19 versus 0.72, 0.69–0.75; expected-to-observed ratio 3.02), indicating threefold overestimation of absolute risk. Decision curve analysis showed positive net benefit internally at 0.10–0.50 but externally not above 0.10. SHAP identified age, maximum heart rate, congestive heart failure and vasopressor exposure as dominant predictors, reproduced across repeated subsamples. Conclusions An interpretable stacking ensemble predicted NOAF from first-day data with consistent discrimination across two independent critical-care databases, but absolute risk estimates were poorly calibrated externally and require recalibration before use. Prospective, multicentre validation is required before clinical deployment.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-12-02
DOI
https://doi.org/10.21203/rs.3.rs-11735757/v1
Primary Topic
Atrial Fibrillation Management and Outcomes
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Development and external validation of an interpretable stacking ensemble model for new-onset atrial fibrillation in critically ill patients

Meiyu Liu, Ding Huaiyu, Zhenxuan Xu
Research Square
Atrial Fibrillation Management and Outcomes
preprint

Development and external validation of an interpretable stacking ensemble model for new-onset atrial fibrillation in critically ill patients

Meiyu Liu, Ding Huaiyu, Zhenxuan Xu
preprint en

Abstract

Background New-onset atrial fibrillation (NOAF) is a frequent cardiovascular complication of critical illness associated with worse outcomes. Existing prediction models are usually built on a single algorithm and are rarely validated across independent critical-care databases. We developed and externally validated an interpretable stacking ensemble model for NOAF prediction in critically ill patients. Methods Retrospective cohort study using two public critical-care databases: MIMIC-IV (34,384 ICU admissions; split 70:30 before imputation) and the eICU Collaborative Research Database (eICU-CRD; 32,067 patients, reserved entirely for external validation). Thirty-nine harmonised first-24-hour variables were screened by univariable logistic regression and reduced by least absolute shrinkage and selection operator (LASSO) regression, both steps re-run inside every cross-validation fold so that out-of-fold predictions carried no selection leakage; a random-forest imputer was fitted on the training set only. Nine algorithms were developed on the training set (n = 24,068; internal test n = 10,316), and the three best, ranked by out-of-fold area under the receiver operating characteristic curve (AUC), were combined with a LASSO meta-learner into a single frozen predictor. Discrimination, calibration, clinical utility and SHapley Additive exPlanations (SHAP) were assessed. Results NOAF occurred in 9,535 patients (27.7%) in MIMIC-IV and 2,457 (7.7%) in eICU-CRD; 26 of 39 variables were retained by LASSO. The stacking ensemble achieved an AUC of 0.843 (95% CI 0.835–0.851) internally and 0.753 (0.743–0.762) externally, with average precisions of 0.668 and 0.201. Internal discrimination exceeded each base learner (DeLong P < 0.001); externally the advantage was detectable against the multilayer perceptron and random forest but not XGBoost. Calibration was better internally than externally (slope 1.14, 95% CI 1.10–1.19 versus 0.72, 0.69–0.75; expected-to-observed ratio 3.02), indicating threefold overestimation of absolute risk. Decision curve analysis showed positive net benefit internally at 0.10–0.50 but externally not above 0.10. SHAP identified age, maximum heart rate, congestive heart failure and vasopressor exposure as dominant predictors, reproduced across repeated subsamples. Conclusions An interpretable stacking ensemble predicted NOAF from first-day data with consistent discrimination across two independent critical-care databases, but absolute risk estimates were poorly calibrated externally and require recalibration before use. Prospective, multicentre validation is required before clinical deployment.

Research Square
First Affiliated Hospital of Dalian Medical University (CN)
Atrial Fibrillation Management and Outcomes
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon