A machine learning-driven and explainable prediction model for in-hospital mortality in patients with diabetes mellitus and congestive heart failure: integrating XGBoost and SHAP approaches.
- 1Department of Acupuncture and Massage, The Third People's Hospital of Henan Province, Zhengzhou, China.
- 2Intensive Care Unit, The Third People's Hospital of Henan Province, Zhengzhou, China.
- 3Department of Anesthesia and Surgery, The Third People's Hospital of Henan Province, Zhengzhou, China.
Abstract
Background
Patients with congestive heart failure (CHF) and type 2 diabetes mellitus (T2DM) are at elevated risk of in-hospital mortality, particularly in intensive care units (ICUs). Conventional scoring systems may not fully capture the clinical complexity of such comorbidities. This study aimed to construct an interpretable machine learning model to predict in-hospital mortality in this high-risk group.Methods
A retrospective study included 573 ICU patients with CHF and T2DM admitted to three hospitals in Henan, China (Jan 2025-Jun 2026). Seven predictors-body mass index (BMI), myocardial infarction, mild liver disease, SOFA score, LODS score, white blood cell (WBC) count, and serum creatinine-were identified via stepwise logistic regression. XGBoost and four other machine learning algorithms (KNN, SVM, CatBoost, AdaBoost) were trained and evaluated. Model performance was assessed using AUC, accuracy, sensitivity, specificity, and F1-score. SHAP (SHapley Additive exPlanations) was used to interpret XGBoost predictions.Results
XGBoost achieved the best performance (AUC 0.917, sensitivity 86.8%, specificity 96.6%, accuracy 74.8%). SHAP analysis indicated that mild liver disease, LODS score, BMI, WBC count, and SOFA score were the top contributors, jointly explaining over 77% of the predictive power. Myocardial infarction, liver disease, elevated WBC, and higher SOFA/LODS scores increased mortality risk, while higher BMI and serum creatinine were protective-supporting the obesity paradox and sarcopenia hypothesis.Conclusion
An XGBoost model with SHAP interpretation provides accurate, explainable prediction of in-hospital mortality in ICU patients with CHF and T2DM, offering a valuable tool for early risk stratification and clinical decision-making.
Related
- Explainable machine learning integrating CT-derived intratumoral heterogeneity for histological subtype prediction in pure ground-glass lung adenocarcinoma: multicenter validation and transcriptomic characterization
- Mortality prediction in patients with acute myocardial infarction and prior ischemic stroke: a prospective cohort study with explainable machine learning and SHAP analysis
- Evidence synthesis on sex differences in mortality after traumatic brain injury: Systematic review integrating meta-analysis and explainable machine learning
- Explainable machine learning for breast cancer prediction in resource-constrained settings: A multi-algorithmic framework integrating shap-based transparency with clinical decision support
- "Mortality Prediction in Heart Failure using Explainable AI: Development and Validation of the EXACT-HF Model in a Nationwide Multi-Ethnic Asian Cohort"
BibTeX
@article{hu2026machine,
title = {{A machine learning-driven and explainable prediction model for in-hospital mortality in patients with diabetes mellitus and congestive heart failure: integrating XGBoost and SHAP approaches.}},
author = {Jingru Hu and Shiqiong Su and Dongdong Liu},
journal = {Frontiers in public health},
year = {2026},
month = oct,
doi = {10.3389/fpubh.2026.1951635},
url = {https://europepmc.org/article/MED/42908818},
note = {CC BY},
}
RIS
TY - JOUR
TI - A machine learning-driven and explainable prediction model for in-hospital mortality in patients with diabetes mellitus and congestive heart failure: integrating XGBoost and SHAP approaches.
AU - Jingru Hu
AU - Shiqiong Su
AU - Dongdong Liu
PY - 2026
DA - 2026/10/07
JO - Frontiers in public health
DO - 10.3389/fpubh.2026.1951635
UR - https://europepmc.org/article/MED/42908818
AB - Background Patients with congestive heart failure (CHF) and type 2 diabetes mellitus (T2DM) are at elevated risk of in-hospital mortality, particularly in intensive care units (ICUs). Conventional scoring systems may not fully capture the clinical complexity of such comorbidities. This study aimed to construct an interpretable machine learning model to predict in-hospital mortality in this high-risk group.Methods A retrospective study included 573 ICU patients with CHF and T2DM admitted to three hospitals in Henan, China (Jan 2025-Jun 2026). Seven predictors-body mass index (BMI), myocardial infarction, mild liver disease, SOFA score, LODS score, white blood cell (WBC) count, and serum creatinine-were identified via stepwise logistic regression. XGBoost and four other machine learning algorithms (KNN, SVM, CatBoost, AdaBoost) were trained and evaluated. Model performance was assessed using AUC, accuracy, sensitivity, specificity, and F1-score. SHAP (SHapley Additive exPlanations) was used to interpret XGBoost predictions.Results XGBoost achieved the best performance (AUC 0.917, sensitivity 86.8%, specificity 96.6%, accuracy 74.8%). SHAP analysis indicated that mild liver disease, LODS score, BMI, WBC count, and SOFA score were the top contributors, jointly explaining over 77% of the predictive power. Myocardial infarction, liver disease, elevated WBC, and higher SOFA/LODS scores increased mortality risk, while higher BMI and serum creatinine were protective-supporting the obesity paradox and sarcopenia hypothesis.Conclusion An XGBoost model with SHAP interpretation provides accurate, explainable prediction of in-hospital mortality in ICU patients with CHF and T2DM, offering a valuable tool for early risk stratification and clinical decision-making.
SN - 2296-2565
ER -