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.
Jingru Hu, Shiqiong Su, Dongdong Liu
Department of Acupuncture and Massage, The Third People's Hospital of Henan Province, Zhengzhou, China. · Intensive Care Unit, The Third People's Hospital of Henan Province, Zhengzhou, China.
Key points
From the paper's conclusion- This study aimed to construct an interpretable machine learning model to predict in-hospital mortality in this high-risk group.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Establishment and validation of a machine learning-based predictive model for in-hospital mortality risk in acute myocardial infarction patients complicated with diabetes mellitusFrontiers in Cardiovascular Medicine · 2026
- Development and external validation of an explainable machine learning model for in-hospital mortality risk stratification in intensive care unit patients with heart failure.Frontiers in cardiovascular medicine · 2026
- Early prediction of in-hospital mortality in ICU patients with heart failure using an interpretable machine learning model: a retrospective study based on MIMIC-IVBMC Cardiovascular Disorders · 2026
- Interpretable Machine Learning for In-Hospital Mortality Prediction in Patients With Diabetes and ARDS: Development and External Validation.Shock (Augusta, Ga.) · 2026
- Application of machine learning prediction models for in-hospital mortality in diabetic sepsis patients: a study based on the MIMIC IV databaseBMC Medical Informatics and Decision Making · 2026
- Machine learning-based prediction model for 30-day readmission risk in elderly patients with type 2 diabetes mellitus and heart failure: a retrospective cohort study with SHAP interpretability analysisFrontiers in Cardiovascular Medicine · 2026