Development and validation of an explainable artificial intelligence model to predict in-hospital adverse events for patients with acute myocardial infarction

In-hospital adverse events after acute myocardial infarction (AMI) can occur abruptly and adversely affect short-term prognosis. We developed and externally validated explainable machine learning models to predict a composite of in-hospital atrial fibrillation (AF), ventricular fibrillation (VF), cardiac arrest (CA), or death using routinely available admission data. We retrospectively analyzed 7,496 patients from the MIMIC-IV database as the development cohort and 2,776 patients from Xuanwu Hospital as the external validation cohort. Predictors included demographics, medical history, and admission laboratory tests. Logistic regression, random forest, extreme gradient boosting (XGBoost), multilayer perceptron, and TabNet models were evaluated using five-fold cross-validation. Performance was assessed using discrimination, classification, calibration, and decision curve analysis. Latent class analysis identified three outcome clusters with distinct event-probability profiles. XGBoost achieved the best performance for the composite outcome in the development cohort (AUROC, 0.798). Predictive performance was moderate to good for AF and in-hospital death, with AUROCs of up to 0.834 and 0.870 in the development cohort and 0.803 and 0.849 in the external validation cohort, respectively. Discrimination was lower for VF and CA. SHapley Additive exPlanations highlighted neutrophil and leukocyte counts, N-terminal pro-B-type natriuretic peptide, renal function, glucose, glycated hemoglobin A1c, and prior AF as important predictors. These explainable models may support early risk stratification and help guide monitoring intensity and timely intervention in patients with AMI.

Authors

Institutions

Publication Details

Journal
PLOS Digital Health
Published
2026-11-11
DOI
https://doi.org/10.1371/journal.pdig.0001812
Primary Topic
Artificial Intelligence in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Development and validation of an explainable artificial intelligence model to predict in-hospital adverse events for patients with acute myocardial infarction

夏经钢, Yu Gu, Honglei Liu, Xican Tian et al.
3 links
PLOS Digital Health
Artificial Intelligence in Healthcare
article

Development and validation of an explainable artificial intelligence model to predict in-hospital adverse events for patients with acute myocardial infarction

夏经钢, Yu Gu, Honglei Liu, Xican Tian, Mengyuan Ji, Pixian Yuan, Yingliang Yang, Tao Wang, Congmin Zhu, Yang Zhang
article en

Abstract

In-hospital adverse events after acute myocardial infarction (AMI) can occur abruptly and adversely affect short-term prognosis. We developed and externally validated explainable machine learning models to predict a composite of in-hospital atrial fibrillation (AF), ventricular fibrillation (VF), cardiac arrest (CA), or death using routinely available admission data. We retrospectively analyzed 7,496 patients from the MIMIC-IV database as the development cohort and 2,776 patients from Xuanwu Hospital as the external validation cohort. Predictors included demographics, medical history, and admission laboratory tests. Logistic regression, random forest, extreme gradient boosting (XGBoost), multilayer perceptron, and TabNet models were evaluated using five-fold cross-validation. Performance was assessed using discrimination, classification, calibration, and decision curve analysis. Latent class analysis identified three outcome clusters with distinct event-probability profiles. XGBoost achieved the best performance for the composite outcome in the development cohort (AUROC, 0.798). Predictive performance was moderate to good for AF and in-hospital death, with AUROCs of up to 0.834 and 0.870 in the development cohort and 0.803 and 0.849 in the external validation cohort, respectively. Discrimination was lower for VF and CA. SHapley Additive exPlanations highlighted neutrophil and leukocyte counts, N-terminal pro-B-type natriuretic peptide, renal function, glucose, glycated hemoglobin A1c, and prior AF as important predictors. These explainable models may support early risk stratification and help guide monitoring intensity and timely intervention in patients with AMI.

PLOS Digital HealthVol. 5(11)
Capital Medical University (CN)
Good health and well-being
Artificial Intelligence in Healthcare
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