An explainable machine learning model for predicting in-hospital mortality in critically ill patients with urinary tract infection: A multicenter cohort study
Urinary tract infections (UTI) are prevalent in intensive care units (ICU) and pose significant mortality risk, yet conventional severity scores (e.g., SOFA) and single biomarkers lack accuracy for personalized management. We aimed to create a machine learning (ML) model with post hoc explainability and cross-pathogen generalizability for predicting in-hospital mortality in UTI patients. We conducted a retrospective analysis of 4,682 ICU patients from three independent cohorts: MIMIC-IV (n = 2,519), eICU-CRD (n = 1,797), and SYSMH (n = 366). Thirty-five clinically obtainable variables within 24 hours of ICU admission trained nine ML models. Multiple established performance metrics, including the area under the receiver operating characteristic curve (AUC), were employed to benchmark predictive performance against conventional clinical scores. The SHapley Additive exPlanations (SHAP) framework quantified feature importance and generated post hoc decision visualizations for the final model. Pathogen-specific subgroup analyses were conducted to assess clinical utility. The resulting LGBM-DART model, incorporating 12 features identified through recursive feature elimination, demonstrated superior predictive performance in internal validation (AUC: 0.849) and external validation (eICU-CRD: 0.822; SYSMH: 0.834). Notably, it maintained robust performance across pathogen subtypes: monomicrobial (AUC: 0.861), polymicrobial (0.880), coccal (0.847), bacillary (0.876), and fungal infections (0.861), significantly outperforming traditional severity scores (all p < 0.0001). The model additionally enabled fungal versus bacterial UTI discrimination (AUC: 0.703). Furthermore, a clinician-friendly web interface was deployed for real-world implementation. In conclusion, this ML model surpasses traditional scores in mortality prediction while providing transparency through SHAP-based explanations. Its cross-pathogen generalizability and fungal-bacterial discriminatory capacity could position it as a potential decision-support tool for ICU management of UTI.
Authors
- Kanru Sang
- Xi-Kang Tang (ORCID: https://orcid.org/0000-0002-9354-9128)
- Xia Yang (ORCID: https://orcid.org/0000-0003-1668-8121)
- Yougang Mai
- Jingyi He
- Congcong Zhou
- Han Chen
- Weidong Wang
Institutions
- Sun Yat-sen University (CN)
- New York University (US)
- The University of Tokyo (JP)
Publication Details
- Journal
- PLOS Digital Health
- Published
- 2026-12-01
- DOI
- https://doi.org/10.1371/journal.pdig.0001847
- Primary Topic
- Sepsis Diagnosis and Treatment
- Type
- article
- Field-Weighted Citation Impact
- 0.00