Early Risk Stratification for 30-Day Mortality After In-Hospital Cardiac Arrest: SHAP Interpretable CatBoost Model with m-NUTRIC and Micronutrient Biomarkers
Abstract
1. Introduction
2. Materials and Methods
2.1. Ethical Approval
2.2. Study Design and Patient Population
2.3. Inclusion and Exclusion Criteria
2.4. Resuscitation Protocol
2.5. Endpoint
2.6. Statistical and Software Analyses
2.7. Management of Missing Data
2.8. Machine Learning Model and Internal Evaluation
2.9. Model Inputs, Decision Thresholds, and Performance Criteria
2.10. Baseline Model: Logistic Regression Analysis (LRA)
2.11. ROC-AUC and 95% CI
2.12. Model Explainability
3. Results
3.1. Characteristics of the Study Population
3.2. Performance of the CatBoost Model and Comparison with the Baseline Mortality Model (Internal Evaluation)
3.3. Feature Contribution and SHAP Analysis
3.4. Precision–Recall Analysis (Internal Test Set)
3.5. Probability Calibration and the Brier Score (Internal Test Set)
3.6. Decision Curve Analysis
3.7. Summary of the CatBoost Model Performance
4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| AP | Average precision |
| APACHE II | Acute Physiology and Chronic Health Evaluation II |
| AUC | Area under the curve |
| CCI | Charlson Comorbidity Index |
| CI | Confidence interval |
| CPR | Cardiopulmonary resuscitation |
| DCA | Decision curve analysis |
| EMR | Electronic medical record |
| GCS | Glasgow Coma Scale |
| ICU | Intensive care unit |
| IHCA | In-hospital cardiac arrest |
| LR | Logistic regression |
| m-NUTRIC | Modified Nutrition Risk in Patients with Critical Illness |
| MICU | Medical intensive care unit |
| ML | Machine learning |
| PR | Precision–recall |
| ROC | Receiver operating characteristic |
| ROSC | Return of spontaneous circulation |
| SD | standard deviation |
| SHAP | SHapley Additive ExPlanations |
| SOFA | Sequential Organ Failure Assessment |
References
- Andersen, L.W.; Holmberg, M.J.; Berg, K.M.; Donnino, M.W.; Granfeldt, A. In-Hospital Cardiac Arrest: A Review. JAMA 2019, 321, 1200–1210. [Google Scholar] [CrossRef]
- Girotra, S.; Nallamothu, B.K.; Spertus, J.A.; Li, Y.; Krumholz, H.M.; Chan, P.S. Trends in survival after in-hospital cardiac arrest. N. Engl. J. Med. 2012, 367, 1912–1920. [Google Scholar] [CrossRef]
- Stoltzfus, J.C. Logistic regression: A brief primer. Acad. Emerg. Med. 2011, 18, 1099–1104. [Google Scholar] [CrossRef]
- Christodoulou, E.; Ma, J.; Collins, G.S.; Steyerberg, E.W.; Verbakel, J.Y.; Van Calster, B. A systematic review shows no performance benefit of machine learning over logistic regression for clinical prediction models. J. Clin. Epidemiol. 2019, 110, 12–22. [Google Scholar] [CrossRef]
- Lapp, L.; Roper, M.; Kavanagh, K.; Bouamrane, M.M.; Schraag, S. Dynamic prediction of patient outcomes in the intensive care unit: A scoping review of the state-of-the-art. J. Intensive Care Med. 2023, 38, 575–591. [Google Scholar] [CrossRef]
- Rajkomar, A.; Dean, J.; Kohane, I. Machine learning in medicine. N. Engl. J. Med. 2019, 380, 1347–1358. [Google Scholar] [CrossRef]
- Salahuddin, Z.; Woodruff, H.C.; Chatterjee, A.; Lambin, P. Transparency of deep neural networks for medical image analysis: A review of interpretability methods. Comput. Biol. Med. 2022, 140, 105111. [Google Scholar] [CrossRef]
- Safaei, N.; Safaei, B.; Seyedekrami, S.; Talafidaryani, M.; Masoud, A.; Wang, S.; Li, Q.; Moqri, M. E-CatBoost: An efficient machine learning framework for predicting ICU mortality using the eICU collaborative research database. PLoS ONE 2022, 17, e0262895. [Google Scholar] [CrossRef] [PubMed]
- Lundberg, S.M.; Erion, G.; Chen, H.; DeGrave, A.; Prutkin, J.M.; Nair, B.; Katz, R.; Himmelfarb, J.; Bansal, N.; Lee, S.-I. From local explanations to global understanding with explainable AI for trees. Nat. Mach. Intell. 2020, 2, 56–67. [Google Scholar] [CrossRef] [PubMed]
- Rahman, A.; Hasan, R.M.; Agarwala, R.; Martin, C.; Day, A.G.; Heyland, D.K. Identifying critically-ill patients who will benefit most from nutritional therapy: Further validation of the “Modified NUTRIC” Nutritional Risk Assessment Tool. Clin. Nutr. 2016, 35, 158–162. [Google Scholar] [CrossRef] [PubMed]
- Lim, S.L.; Ling, R.R.; Lim, O.; Ueno, R.; Jones, D.; Low, C.; Ong, M.E.; Ridley, E.J.; Sundararajan, K.; Pilcher, D.; et al. Obesity and nutrition risk in patients admitted to intensive care after cardiac arrest: A multicenter cohort study. Resuscitation 2025, 216, 110773. [Google Scholar] [CrossRef]
- Frederiks, P.; Peetermans, M.; Wilmer, A. Nutritional support in the cardiac intensive care unit. Eur. Heart J. Acute Cardiovasc. Care 2024, 13, 373–379. [Google Scholar] [CrossRef]
- de Man, A.M.E.; Amrein, K.; Casaer, M.P.; Dizdar, O.S.; van Zanten, A.R.H.; Gundogan, K.; Lepp, L.; Rezzi, S.; Shenkin, A.; Berger, M.M.; et al. LLL 44-4: Micronutrients in acute disease and critical illness. Clin. Nutr. ESPEN 2024, 61, 437–446. [Google Scholar] [CrossRef]
- Liu, B.; Li, M.; Wang, J.; Zhang, F.; Wang, F.; Jin, C.; Li, J.; Wang, Y.; Sanderson, T.H.; Zhang, R. Role of magnesium in cardiac arrest. Front. Nutr. 2024, 11, 1387268. [Google Scholar] [CrossRef] [PubMed]
- Zhang, Y.P.; Wan, Y.D.; Sun, T.W.; Kan, Q.C.; Wang, L.X. Association between vitamin D deficiency and mortality in critically ill adult patients: A meta-analysis of cohort studies. Crit. Care 2014, 18, 684. [Google Scholar] [CrossRef]
- Collins, G.S.; Dhiman, P.; Ma, J.; Schlussel, M.M.; Archer, L.; Van Calster, B.; E Harrell, F.; Martin, G.P.; Moons, K.G.M.; van Smeden, M.; et al. Evaluation of clinical prediction models (Part 1): From development to external validation. BMJ 2024, 384, e074819. [Google Scholar] [CrossRef] [PubMed]
- Friedrich, S.; Groll, A.; Ickstadt, K.; Kneib, T.; Pauly, M.; Rahnenführer, J.; Friede, T. Regularization approaches in clinical biostatistics: Methods and applications. Stat. Methods Med. Res. 2023, 32, 425–440. [Google Scholar] [CrossRef]
- Collins, G.S.; Moons, K.G.M.; Dhiman, P.; Riley, R.D.; Beam, A.L.; Van Calster, B.; Ghassemi, M.; Liu, X.; Reitsma, J.B.; Van Smede, M.; et al. TRIPOD+AI statement: Updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ 2024, 385, e078378. [Google Scholar] [CrossRef] [PubMed]
- Yoo, W.; Jang, H.; Seong, H.; Kim, S.; Kim, S.H.; Jo, E.J.; Eom, J.S.; Lee, K. Modified NutriC Score’s Ability to Predict Mortality in Patients Requiring Short-Term versus Prolonged Acute Mechanical Ventilation: A Retrospective Cohort Study. Ther. Adv. Respir. Dis. 2024, 18. [Google Scholar] [CrossRef]
- Li, K.; Shi, Q.; Liu, S.; Xie, Y.; Liu, J. Predicting in-hospital mortality in patients with sepsis in the ICU using a gradient boosting decision tree. Medicine 2021, 100, e25813. [Google Scholar] [CrossRef]
- Saito, T.; Rehmsmeier, M. The precision-recall plot is more informative than the ROC plot for evaluating binary classifiers on imbalanced datasets. PLoS ONE 2015, 10, e0118432. [Google Scholar] [CrossRef] [PubMed]
- Allgaier, J.; Mulansky, L.; Draelos, R.L.; Pryss, R. How does the model make predictions? A systematic literature review on the explainability power of machine learning in healthcare. Artif. Intell. Med. 2023, 143, 102616. [Google Scholar] [CrossRef]
- Koekkoek, W.A.C.; Hettinga, K.; de Vries, J.H.M.; van Zanten, A.R.H. Micronutrient deficiency in critical illness. Clin. Nutr. 2021, 40, 3780–3786. [Google Scholar] [CrossRef] [PubMed]
- Koekkoek, K.W.A.C.; van Zanten, A.R.H. Nutrition in the ICU. Curr. Opin. Anaesthesiol. 2018, 31, 136–143. [Google Scholar] [CrossRef] [PubMed]
- Varayil, J.E.; Bielinski, S.J.; Mundi, M.S.; Bonnes, S.L.; Salonen, B.R.; Hurt, R.T. Artificial intelligence in clinical nutrition: Bridging data analytics and nutritional care. Curr. Nutr. Rep. 2025, 14, 91. [Google Scholar] [CrossRef]
- Vickers, A.J.; van Calster, B.; Steyerberg, E.W. A simple, step-by-step guide to interpreting decision curve analysis. Diagn. Progn. Res. 2019, 3, 18. [Google Scholar] [CrossRef]
- Adams, R.; Henry, K.E.; Sridharan, A.; Soleimani, H.; Zhan, A.; Rawat, N.; Johnson, L.; Hager, D.N.; Cosgrove, S.E.; Markowski, A.; et al. Prospective, multi-site study of patient outcomes after implementation of the TREWS machine learning-based early warning system for sepsis. Nat. Med. 2022, 28, 1455–1460. [Google Scholar] [CrossRef]
- Sendak, M.P.; Ratliff, W.; Sarro, D.; Alderton, E.; Futoma, J.; Gao, M.; Nichols, M.; Revoir, M.; Yashar, F.; Miller, C.; et al. Real-world integration of a sepsis deep learning technology into routine clinical care: Implementation study. JMIR Med. Inform. 2020, 8, e15182. [Google Scholar] [CrossRef]
- Wong, A.; Otles, E.; Donnelly, J.P.; Krumm, A.; McCullough, J.; DeTroyer-Cooley, O.; Pestrue, J.; Phillips, M.; Konye, J.; Penoza, C.; et al. External validation of a widely implemented proprietary sepsis prediction model in hospitalized patients. JAMA Intern Med. 2021, 181, 1065–1070. [Google Scholar] [CrossRef]









| Variable | Value |
|---|---|
| Age (years) * | 64.84 ± 16.93 |
| Male ** | 490 (55.5) |
| Chronic renal disease ** | 133 (15.1) |
| Diabetes mellitus ** | 284 (32.2) |
| Hypertension ** | 321 (36.4) |
| COPD ** | 55 (6.2) |
| Cancer ** | 174 (19.7) |
| Glasgow Coma Scale score *** | 4 (3–5) |
| APACHE II score * | 25 ± 3.16 |
| Charlson Comorbidity Index * | 4.5 ± 1.12 |
| Zinc (µg/dL) * | 54.85 ± 24.05 |
| Magnesium (mg/dL) *** | 2.1 (0.8–2.4) |
| Vitamin D (ng/mL) *** | 10 (0.45–110) |
| Vitamin B12 (pg/mL) *** | 345 (50–1525) |
| m-NUTRIC score * | 5.19 ± 1.86 |
| 30-day all-cause mortality rate ** | 526 (59.6) |
| Dataset | Class | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|---|
| Training | Dead | 0.829 | 0.800 | 0.814 | 419 |
| Training | Alive | 0.720 | 0.758 | 0.738 | 285 |
| Internal test | Dead | 0.847 | 0.790 | 0.817 | 119 |
| Internal test | Alive | 0.615 | 0.702 | 0.656 | 57 |
| Model | Class | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|---|
| CatBoost | Dead | 0.847 | 0.790 | 0.817 | 119 |
| CatBoost | Alive | 0.615 | 0.702 | 0.656 | 57 |
| Logistic Regression | Dead | 0.838 | 0.739 | 0.786 | 119 |
| Logistic Regression | Alive | 0.563 | 0.702 | 0.625 | 57 |
| Metric | CatBoost | Logistic Regression | Δ |
|---|---|---|---|
| ROC-AUC | 0.827 | 0.797 | 0.030 |
| ROC-AUC 95% CI | (0.760–0.887) | (0.720–0.861) | — |
| Accuracy | 0.761 | 0.727 | 0.034 |
| Sensitivity (Dead) | 0.790 | 0.739 | 0.051 |
| Specificity (Alive) | 0.702 | 0.702 | 0.000 |
| F1-Score (Dead) | 0.817 | 0.786 | 0.031 |
| F1-Score (Alive) | 0.656 | 0.625 | 0.031 |
| Performance Metric | Training Set | Internal Test Set |
|---|---|---|
| Sample size (n) | 704 | 176 |
| ROC-AUC (95% CI) | 0.850 (0.822–0.879) | 0.827 (0.760–0.887) |
| Overall Accuracy | 0.783 | 0.761 |
| Precision (dead class) | 0.829 | 0.847 |
| Recall/sensitivity (dead class) | 0.800 | 0.790 |
| F1 score (dead class) | 0.814 | 0.817 |
| Precision (Alive class) | 0.720 | 0.615 |
| Recall/Specificity (Alive class) | 0.758 | 0.702 |
| F1 score (Alive class) | 0.738 | 0.656 |
| PR-AUC (average precision) | — | 0.909 |
| Brier Score | — | 0.186 |
| Classification Threshold | 0.482 (Youden J) | 0.482 (frozen) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Elay, G.; Güven, A. Early Risk Stratification for 30-Day Mortality After In-Hospital Cardiac Arrest: SHAP Interpretable CatBoost Model with m-NUTRIC and Micronutrient Biomarkers. J. Clin. Med. 2026, 15, 2310. https://doi.org/10.3390/jcm15062310
Elay G, Güven A. Early Risk Stratification for 30-Day Mortality After In-Hospital Cardiac Arrest: SHAP Interpretable CatBoost Model with m-NUTRIC and Micronutrient Biomarkers. Journal of Clinical Medicine. 2026; 15(6):2310. https://doi.org/10.3390/jcm15062310
Chicago/Turabian StyleElay, Gülseren, and Aytaç Güven. 2026. "Early Risk Stratification for 30-Day Mortality After In-Hospital Cardiac Arrest: SHAP Interpretable CatBoost Model with m-NUTRIC and Micronutrient Biomarkers" Journal of Clinical Medicine 15, no. 6: 2310. https://doi.org/10.3390/jcm15062310
APA StyleElay, G., & Güven, A. (2026). Early Risk Stratification for 30-Day Mortality After In-Hospital Cardiac Arrest: SHAP Interpretable CatBoost Model with m-NUTRIC and Micronutrient Biomarkers. Journal of Clinical Medicine, 15(6), 2310. https://doi.org/10.3390/jcm15062310

