Da-cheng Wang, Yan-pin Liu, Yu-ting Wang, Xiao-huan Zhuang, Xiao-peng Yin, Xin-yuan Zhang, Yan Zhuang
Abstract
Sepsis-related myocardial injury (SRMI) is associated with high mortality, but the transportability of prediction models across heterogeneous cohorts remains uncertain. We developed and externally validated a machine learning model for in-hospital mortality prediction in SRMI and evaluated its discrimination, calibration, interpretability, and distributional shift across cohorts. Using MIMIC-IV for development and MIMIC-III and a local cohort for external validation (n = 1,226, 962, and 280, respectively), we compared eight classification algorithms.
Introduction
Sepsis is a life-threatening organ dysfunction caused by a dysregulated host response to infection, and it remains a major global public health challenge [1,2]. Recent epidemiological estimates indicate that approximately 49 million cases of sepsis occur annually worldwide, resulting in more than 11 million deaths that account for nearly 20% of all-cause mortality [2,3]. Among the organ systems affected during sepsis, the cardiovascular system is particularly vulnerable, and cardiac involvement is closely associated with adverse clinical outcomes [4,5].
Methods
Ethics statement
This study was conducted using data from the publicly available, de-identified MIMIC-III and MIMIC-IV databases, as well as a local retrospective cohort from the Affiliated Hospital of Nanjing University of Chinese Medicine. Access to the MIMIC databases was obtained after completion of the required Collaborative Institutional Training Initiative (CITI) training (Certificate ID: 55981932).
Results
Baseline characteristics of the study population
A total of 2,468 patients with SRMI were included across the three cohorts, comprising 1,226 patients in the development cohort (MIMIC-IV), 962 patients in the external validation cohort (MIMIC-III), and 280 patients in the local cohort. The detailed patient selection process is illustrated in Fig 1. Significant differences in baseline characteristics were observed among the three cohorts (Table 1).
Discussion
In this multicohort study, we evaluated a parsimonious machine-learning framework for in-hospital mortality prediction in SRMI across two independent external cohorts. The contribution is not the novelty of the individual algorithms; rather, it is the joint evaluation of discrimination, probability calibration, distributional shift, and model interpretation in settings with differing case mix. This approach allows performance differences across cohorts to be interpreted in relation to both distributional heterogeneity and probability miscalibration.
Conclusion
In this multicohort study, we developed and externally evaluated a parsimonious machine-learning model for in-hospital mortality in SRMI. Using two-stage feature selection and systematic model comparison, an eight-variable random forest model showed moderate discrimination in two external cohorts. The smaller single-center local cohort provided an independent but imprecise evaluation rather than proof of broad generalizability.
Acknowledgments
The authors thank Wen-jing Du, Yan Yang, and Qing-fang Nie for assistance with data collection. We also thank Lin-feng Dai for his constructive comments during the writing process.
Citation: Wang D-c, Liu Y-p, Wang Y-t, Zhuang X-h, Yin X-p, Zhang X-y, et al. (2026) A machine learning model for in-hospital mortality prediction in patients with sepsis-related myocardial injury. PLOS Digit Health 5(10): e0001758. https://doi.org/10.1371/journal.pdig.0001758
Editor: Henry Horng-Shing Lu, National Yang Ming Chiao Tung University, TAIWAN
Received: May 11, 2026; Accepted: September 15, 2026; Published: October 12, 2026
Copyright: © 2026 Wang et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The analysis framework, variable dictionary, generic cohort-query template, and scripts supporting feature selection, model development, recalibration, visualization, and SHAP interpretation are publicly available at https://github.com/zxinyuan20-hue/srmi-reproducibility-framework and in the archived version 1.0.0 Zenodo release (https://doi.org/10.5281/zenodo.21786891). MIMIC-III and MIMIC-IV are third-party controlled-access datasets available through PhysioNet to credentialed users who complete the applicable training and data-use agreements. The local cohort data are not publicly available because of institutional and privacy restrictions but may be available from the corresponding authors on reasonable request and with appropriate ethical approval. No patient-level data are deposited in the public code repository.
Funding: This work was supported by the Postgraduate Research & Practice Innovation Program of Jiangsu Province (SJX25-1001 to XYZ); the Natural Science Foundation of Nanjing University of Chinese Medicine (XZR2023002 to DCW); the Science and Technology Program of the Bureau of Traditional Chinese Medicine of Jiangsu Province (MS2021008 to YZ); and the Department-level Project of Jiangsu Provincial Hospital of Traditional Chinese Medicine (K25092 to DCW). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. No authors received salary from any of the funders.
Competing interests: The authors have declared that no competing interests exist.
https://journals.plos.org/digitalhealth/article?id=10.1371%2Fjournal.pdig.0001758