Predicting in-hospital mortality in ICU patients with Coronary heart disease and diabetes mellitus using machine learning models

G Guang Tu Z Zhonglan Cai L Ling Wu (State Key Lab of Photocatalysis on Energy and Environment, College of Chemistry) H Hang Yu (Beijing National Laboratory for Molecular Science, State Key Laboratory of Rare Earth Materials Chemistry and Applications, College of Chemistry and Molecular Engineering) H Hongke Jiang H Haijian Luo

Abstract

Background Coronary heart disease (CHD) and diabetes mellitus are highly prevalent in intensive care units (ICUs) and significantly contribute to high in-hospital mortality rates. Traditional risk stratification models often fail to capture the complex interactions among clinical variables, limiting their ability to accurately identify high-risk patients. Machine learning (ML) models, with their capacity to analyze large datasets and identify intricate patterns, provide a promising alternative for improving mortality prediction accuracy. Objective This study aims to develop and validate machine learning models for predicting in-hospital mortality in ICU patients with CHD and diabetes, and enhance model interpretability using SHapley Additive exPlanation (SHAP) values, thereby providing a more accurate and practical tool for clinicians. Methods We conducted a retrospective cohort study using data from the MIMIC-IV database, focusing on adult ICU patients with a primary diagnosis of CHD and diabetes. We extracted baseline characteristics, laboratory parameters, and clinical outcomes. The Boruta algorithm was employed for feature selection to identify variables significantly associated with in-hospital mortality, and 16 machine learning models, including logistic regression, random forest, gradient boosting, and neural networks, were developed and compared using receiver operating characteristic (ROC) curves and area under the curve (AUC) analysis. SHAP values were used to explain variable importance and enhance model interpretability. Results Our study included 2,213 patients, of whom 345 (15.6%) experienced in-hospital mortality. The Boruta algorithm identified 29 significant risk factors, and the top 13 variables were used for developing machine learning models. The gradient boosting classifier achieved the highest AUC of 0.8532, outperforming other models. SHAP analysis highlighted age, blood urea nitrogen, and pH as the most important predictors of mortality. SHAP waterfall plots provided detailed individualized risk assessments, demonstrating the model’s ability to identify high-risk subgroups effectively. Conclusions Machine learning models, especially the gradient boosting classifier, demonstrated superior performance in predicting in-hospital mortality in ICU patients with CHD and diabetes, outperforming traditional statistical methods. These models provide valuable insights for risk stratification and have the potential to improve clinical outcomes. Future work should focus on external validation and clinical implementation to further enhance their applicability and effectiveness in managing this high-risk population.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 20, Issue 8
Published August 14, 2025
Pages e0330381
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (6)

G

Guang Tu

Z

Zhonglan Cai

L

Ling Wu

State Key Lab of Photocatalysis on Energy and Environment, College of Chemistry

H

Hang Yu

Beijing National Laboratory for Molecular Science, State Key Laboratory of Rare Earth Materials Chemistry and Applications, College of Chemistry and Molecular Engineering

H

Hongke Jiang

H

Haijian Luo