An explainable machine learning model using 12 routine clinical variables recorded within 24 hours of intensive care unit admission outperformed conventional severity scores in predicting in-hospital mortality among adults with urinary tract infections, according to a retrospective multicenter cohort study of 4,682 patients across three independent databases. Using LightGBM with a DART booster, termed LGBM-DART, the model reached an area under the receiver operating characteristic curve, or AUC, of 0.849 in internal validation and maintained strong discrimination in two external cohorts from the United States and China, achieving AUCs of 0.822 and 0.834. Across microbiological subgroups in the derivation cohort, LGBM-DART accurately predicted mortality for both bacterial and fungal infections and distinguished fungal from bacterial cases with an AUC of 0.703.
Urinary tract infections represent a major cause of infection-related deaths globally, and Global Burden of Disease Study data show rising mortality in recent years, particularly among older adults and patients undergoing genitourinary instrumentation or catheterization, where mortality reaches 15% to 30%. Clinicians commonly rely on severity scores such as the Sequential Organ Failure Assessment, or SOFA, yet prior studies show SOFA accuracy varies across infections and is suboptimal in urinary tract infections. Calculating SOFA also requires arterial blood gas testing for PaO2/FiO2, an invasive measurement. Individual biomarkers offer limited prognostic power, and earlier machine learning models were constrained by single-database training, opaque predictions, a narrow focus on monomicrobial cases, and a lack of pathogen-specific evaluation.
To address these gaps, the investigators assembled three retrospective adult cohorts with ethics approval from the Medical Ethics Committee of Sun Yat-sen Memorial Hospital, Sun Yat-sen University, and waived written informed consent under institutional and national rules. Model development and internal validation drew on the Medical Information Mart for Intensive Care IV, or MIMIC-IV, database, covering over 65,000 ICU admissions at Beth Israel Deaconess Medical Center from 2008 to 2022. External validation used the multicenter U.S. eICU Collaborative Research Database, or eICU-CRD, spanning over 200,000 admissions across 208 hospitals from 2014 to 2015, and a single-center Chinese cohort from Sun Yat-sen Memorial Hospital, or SYSMH, from January 2020 to December 2024. Cases were identified using ICD-9-CM codes 599.0, 595.9, and 590.10 and ICD-10 code N39.0, excluding patients under 18 years, ICU stays under 48 hours, and those missing over 20% of essential variables. MIMIC-IV also excluded absent or negative microbiological cultures, whereas external cohorts lacked systematic cultures, testing broader clinically diagnosed populations. Screening yielded 2,519 eligible patients from 25,432 in MIMIC-IV, 1,797 from 3,950 in eICU-CRD, and 366 from 749 reviewed records in SYSMH. Mortality did not differ significantly between patients excluded for missing data and final cohorts: 15.6% versus 17.3% in MIMIC-IV, 9.2% versus 8.7% in eICU-CRD, and 12.8% versus 14.3% in SYSMH.
From electronic health records, the team extracted 35 clinical variables within 24 hours of ICU admission, covering demographics, vital signs, complete blood counts, biochemical panels, coagulation tests, and the Acute Physiology Score III, or APS III, imputing missing values via multiple imputation by chained equations. In MIMIC-IV, 2,083 patients survived hospitalization (82.7%) and 436 died (17.3%). Hospital stay did not differ significantly (median 14.0 versus 15.0 days), whereas non-survivors were older (median 73 versus 69 years) and had significantly higher APS III, LODS, OASIS, SAPS II, and SOFA scores. After splitting MIMIC-IV into 70% training (1,763 patients) and 30% internal validation (756 patients) sets, the authors ran recursive feature elimination with a random forest estimator solely on the training data to prevent leakage. That process selected 12 predictors with pairwise correlations of at most 0.46 in absolute value: white blood cell count, lactate, diastolic blood pressure, platelet count, APS III, blood urea nitrogen, bicarbonate, systolic blood pressure, temperature, sodium, red blood cell distribution width, and anion gap. The Synthetic Minority Over-sampling Technique, or SMOTE, was applied exclusively to the training set before benchmarking nine machine learning algorithms.
Among the nine algorithms, LGBM-DART achieved the highest training discrimination at an AUC of 0.879 (95% confidence interval, 0.836 to 0.912) and maintained an internal validation AUC of 0.849 (95% confidence interval, 0.821 to 0.874). It reached a sensitivity of 0.824 and a specificity of 0.740, a trade-off the authors viewed as clinically acceptable because avoiding missed high-risk patients is prioritized when overall mortality is relatively low. Calibration aligned closely between predicted and observed mortality across low- and intermediate-risk ranges, with minor deviations at higher predicted probabilities, suggesting that SMOTE did not systematically bias estimates. Using DeLong’s test, LGBM-DART exceeded LODS, OASIS, SAPS II, and SOFA by 0.126 to 0.232 in absolute AUC (all p less than 0.0001) and yielded greater net benefit across all threshold probabilities in decision curve analysis. Performance remained steady for 7-day, 28-day, and 90-day mortality at AUCs of 0.842, 0.850, and 0.864, with significantly separated Kaplan-Meier survival curves.
External validation confirmed cross-cohort generalizability despite significant baseline differences between populations. In eICU-CRD, where APACHE II was the only systematically documented severity score, LGBM-DART achieved an AUC of 0.822 (95% confidence interval, 0.802 to 0.841), significantly surpassing APACHE II at 0.561 (95% confidence interval, 0.536 to 0.586; p less than 0.0001). In that cohort, the model also maintained stable performance across 7-day, 28-day, and 90-day mortality, with AUCs of 0.795, 0.816, and 0.827, alongside significantly divergent Kaplan-Meier survival curves between high-risk and low-risk groups. In the SYSMH cohort from China, LGBM-DART achieved an AUC of 0.834 (95% confidence interval, 0.791 to 0.870), though comparisons with conventional severity scores were precluded because those scores were not documented.
To provide transparency, the researchers applied SHapley Additive exPlanations, or SHAP, at both global and individual levels. Global rankings remained stable across MIMIC-IV and both external cohorts: white blood cell count consistently ranked first, while red blood cell distribution width, diastolic blood pressure, and lactate remained in the top five with unchanged effect directions. Dependence plots from internal validation revealed nonlinear thresholds shifting predictions toward mortality, including red blood cell distribution width at or above 16.2 fL, lactate at or above 3.5 mmol/L, diastolic blood pressure at or below 59 mmHg, and systolic blood pressure at or below 114 mmHg. Individual waterfall plots showed a 10.54% predicted mortality probability for a representative survivor and 88.79% for a non-survivor. The team deployed the model as a public Streamlit web application at https://mortality-pred-uti.streamlit.app/, pairing each mortality estimate with an interactive SHAP force plot. In a CLIX-M survey of 27 intensive care clinicians, most rated the outputs as relevant, coherent, and actionable, though the authors note that SHAP alone does not establish clinical actionability or intervention pathways.
In MIMIC-IV, pathogen-stratified analyses compared 1,909 monomicrobial infections with 610 polymicrobial infections involving two or more pathogens. Baseline characteristics and in-hospital mortality did not differ significantly between those groups, but polymicrobial cases had longer median hospital stays at 17.5 versus 13.0 days and higher APS III, LODS, and SOFA scores. Within monomicrobial cases, comprising 402 Gram-positive coccal, 1,063 Gram-negative bacillary, and 444 fungal infections, fungi accounted for 23.3%, well above the 1% to 3% reported in general urinary tract infection epidemiology, with yeast representing 97.5% overall and 99.3% of fatal cases. In-hospital mortality was highest for fungal infections at 28.6%, exceeding coccal infections at 16.2% and bacillary infections at 11.6%. Enterococcus species led Gram-positive cocci overall at 55.0% and among non-survivors at 61.5%, followed by coagulase-negative Staphylococcus at 11.4% and Staphylococcus aureus at 9.2%. Among Gram-negative bacilli, Escherichia coli fell from 49.5% overall to 36.6% in non-survivors, whereas Klebsiella pneumoniae rose from 14.8% to 25.2% and Pseudomonas aeruginosa rose from 8.6% to 9.8%.
Fungal infections diverged from bacterial infections across four domains: fewer male patients at 28.4% versus 56.5% in coccal and 36.4% in bacillary cases, greater hemodynamic instability, broader laboratory abnormalities, and higher severity scores. Multivariable logistic regression identified 12 independent mortality predictors, including seven fungal-associated factors: higher respiratory rate, heart rate, blood urea nitrogen, OASIS, and SOFA scores, plus lower diastolic blood pressure and calcium. Across all subgroups, LGBM-DART outperformed LODS, OASIS, SAPS II, and SOFA by 0.121 to 0.276 in absolute AUC, all significant at p less than 0.01, reaching AUCs of 0.861 for monomicrobial, 0.880 for polymicrobial, 0.847 for coccal, 0.876 for bacillary, and 0.861 for fungal infections. Without pathogen inputs, it distinguished fungal from bacterial cases at an AUC of 0.703 (95% confidence interval, 0.682 to 0.723), but did not significantly separate polymicrobial from monomicrobial cases at 0.560 or bacillary from coccal cases at 0.521, suggesting it captures the host’s systemic response.
The authors note six limitations. Comorbidities and disease categories were omitted, and standardized sample-size methods for machine learning remain lacking, requiring validation in broader populations. It predicts death occurrence rather than time-to-death, and relying on APS III requires multiple variables that may add intensive care workload unless simpler substitutes are identified. Finally, the web tool remains preliminary and retrospective. The team plans a prospective multicenter observational study to verify mortality predictions and fungal-versus-bacterial discrimination against confirmed microbiology before an interventional trial testing risk-guided treatment adjustments.
Subject of Research: Explainable machine learning for predicting in-hospital mortality in critically ill patients with urinary tract infections
Article Title: An explainable machine learning model for predicting in-hospital mortality in critically ill patients with urinary tract infection: A multicenter cohort study
Article References: Yang, X., He, J., Chen, H., Sang, K., Zhou, C., Wang, W., Mai, Y., & Tang, X. (2026). An explainable machine learning model for predicting in-hospital mortality in critically ill patients with urinary tract infection: A multicenter cohort study. PLOS Digital Health, 5(12), e0001847. https://doi.org/10.1371/journal.pdig.0001847
Image Credits: AI Generated
DOI: 10.1371/journal.pdig.0001847
Keywords: urinary tract infection, intensive care unit, in-hospital mortality, explainable machine learning, LGBM-DART, SHAP, clinical prediction model, MIMIC-IV, eICU-CRD, external validation, SOFA score, APACHE II, fungal urinary tract infection, polymicrobial infection, pathogen stratification, electronic health records, decision curve analysis, critical care
News Source: Kristina Jarvis. (December 2, 2026). Explainable machine learning outperforms severity scores in ICU urinary infection study. Scienmag.



