Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Cell. Infect. Microbiol., 24 November 2025

Sec. Clinical and Diagnostic Microbiology and Immunology

Volume 15 - 2025 | https://doi.org/10.3389/fcimb.2025.1682764

This article is part of the Research TopicMachine Learning and AI-Driven Insights into Microbial Pathogenesis and Drug ResistanceView all articles

An interpretable machine learning model for early prediction of Escherichia coli infection in ICU patients

Shu Yang&#x;&#x;Shu Yang1†‡Laiyu Zou&#x;&#x;Laiyu Zou2†‡Huixin Liang&#x;Huixin Liang2‡Xiaohong Xu*&#x;Xiaohong Xu3*‡Xiaoling Chen*&#x;Xiaoling Chen2*‡
  • 1Institute of Hematology, Fujian Medical University Union Hospital, Fuzhou, China
  • 2Department of Infectious Disease, Fujian Medical University Union Hospital, Fuzhou, China
  • 3Department of Laboratory Medicine, Fujian Medical University Union Hospital, Fuzhou, China

Background: Early and accurate identification of Escherichia coli (E. coli) infection in intensive care unit (ICU) patients remains challenging butmay improve clinical outcomes if addressed effectively. This study aimed to develop and validate an interpretable machine learning model for early prediction of E. coli infection at ICU admission.

Methods: This retrospective study was conducted using the Medical Information Mart for Intensive Care IV (MIMIC-IV) database. Adult patients (aged 18–100 years) with their first ICU admission and a length of stay ≥24 hours were included. E. coli infection was identified based on microbiological results and diagnostic codes. Missing data were imputed using the missForest algorithm. Feature selection was performed with Boruta and least absolute shrinkage and selection operator (LASSO), and intersecting variables were used for model construction. Eight machine learning models, logistic regression, k-nearest neighbors, decision tree, random forest, extreme gradient boosting, light gradient boosting machine, support vector machine (SVM), and neural network, were developed. Model performance in the validation cohort was assessed using area under the receiver operating characteristic curve (AUC) with 95% confidence interval (CI), sensitivity, specificity, F1 score, calibration curves, decision curve analysis (DCA), and clinical impact curves (CIC). Model interpretability was evaluated with Shapley additive explanations (SHAP).

Results: A total of 52, 554 ICU patients were analyzed, of whom 4, 157 (7.9%) had E. coli infection. Twenty-eight intersecting variables were selected for modeling. Among all models, the SVM achieved the highest discrimination (AUC = 0.745, 95% CI: 0.726-0.764), followed by random forest (AUC = 0.742) and extreme gradient boosting (AUC = 0.739). Calibration and decision analyses indicated robust model calibration and clinical utility. SHAP analysis identified gender, age, sepsis, sedative use, and potassium level as the most influential predictors. A web-based tool was developed to enable real-time clinical risk estimation and individualized interpretability.

Conclusions: An interpretable SVM-based machine learning model was developed and validated for early prediction of E. coli infection in ICU patients, demonstrating good discrimination, calibration, and potential clinical benefit. The associated online tool provides transparent, individualized risk predictions and may facilitate timely clinical decision-making.

1 Introduction

Nosocomial infections represent a major clinical and public health challenge in intensive care units (ICUs) worldwide. Critically ill patients are especially vulnerable to hospital-acquired infections due to underlying comorbidities, invasive procedures, and prolonged exposure to antibiotics and hospital environments (Etemad et al., 2021; Kollef et al., 2021). Recent epidemiological studies reported that ICU-acquired infections were associated with significant morbidity and mortality, with overall in-hospital mortality rates for ICU-acquired infections approaching or exceeding 40% in some cohorts (Etemad et al., 2021). Among the pathogens responsible for ICU infections, Escherichia coli (E. coli) has consistently emerged as one of the most common and clinically significant organisms. Recent large-scale studies demonstrate that E. coli is a leading cause of ICU-associated urinary tract infections, intra-abdominal infections, and bloodstream infections, accounting for a substantial proportion of all Gram-negative isolates in both medical and surgical ICU settings (Yali et al., 2014; Koksal et al., 2017; Sommerstein et al., 2021; Le Goff et al., 2025). The increasing prevalence of antimicrobial-resistant E. coli, including ESBL- and carbapenemase-producing strains, has further complicated infection management and empirical therapy in ICU settings (Assawatheptawee et al., 2021; Zhang et al., 2023). The increasing frequency of E. coli-related sepsis, high mortality in vulnerable populations, and the growing threat of antibiotic resistance highlight the importance of accurate and early risk stratification for E. coli infection in critically ill patients.

Accurate risk assessment and early identification of ICU patients at high risk for E. coli infection are crucial for timely intervention and improved clinical outcomes. Recent studies have explored risk factors, prediction models, and laboratory indicators for E. coli infection and its outcomes in various clinical populations. For example, a large electronic health record-based machine learning study found that older age, frequent urinary tract infections, and recent hospital visits were significant predictors of invasive E. coli disease, highlighting the potential of data-driven approaches for individualized risk assessment (Clarke et al., 2024). In another study from Chang et.al., prior exposure to carbapenems, chronic liver disease, and regular dialysis were identified as independent risk factors for carbapenem-nonsusceptible E. coli bacteremia (Chang et al., 2011). Clinical characteristics and comorbidities also played important roles. In older adults, bile duct stone, kidney stone, and urinary tract infection have been shown to significantly increase the risk of E. coli bloodstream infection, while prior use of cephalosporins and invasive procedures were linked to ESBL-producing E. coli infection (Chen et al., 2021). Moreover, analysis of adult sepsis patients with E. coli infection revealed that elevated red cell distribution width (RDW) and hematocrit (HCT) were associated with higher in-hospital mortality, and their predictive value surpassed that of conventional scores such as SOFA and APACHE II (Song et al., 2022). However, robust, clinically interpretable machine learning models specifically tailored to predicting E. coli infection risk in ICU populations remain limited.

Machine learning methods offer significant advantages over traditional statistical approaches in handling high-dimensional, heterogeneous clinical data, uncovering complex non-linear relationships, and enabling individualized risk prediction. These data-driven algorithms can automatically learn from large-scale electronic health records, integrate diverse variables, and improve predictive accuracy beyond conventional scoring systems (Kim et al., 2022; Li et al., 2022). Machine learning methods have shown remarkable promise in clinical prediction tasks. Machine learning models have been successfully developed for predicting infection (Tabah et al., 2023), sepsis (Wang et al., 2021), and organ dysfunction (Fan et al., 2023) in critical care settings, offering improved accuracy compared to traditional approaches. Furthermore, in the field of microbiology, machine learning has been successfully applied to predict antimicrobial resistance (AMR) from whole-genome sequencing data (Ren et al., 2022; Zhang et al., 2025).

In this study, we developed and validated an interpretable machine learning model for early prediction of E. coli infection in ICU patients using the large-scale MIMIC-IV database. A total of 52, 554 patients were analyzed, and 28 clinically relevant features were identified through Boruta and LASSO feature selection. Among all eight models, the SVM model demonstrated the best discrimination, with robust calibration and clinical utility supported by decision analyses. SHAP interpretability revealed key predictors such as gender, age, sepsis, sedative use, and potassium level. To facilitate clinical application, we further deployed the optimal model as an interactive web-based tool, enabling real-time individualized risk prediction and supporting early infection surveillance in ICU practice.

2 Data and methods

2.1 Data source

The data for this study were extracted from the Medical Information Mart for Intensive Care IV (MIMIC-IV) database (Johnson et al., 2023). MIMIC-IV is a large, publicly available, de-identified database comprising comprehensive clinical data of patients admitted to the intensive care units (ICUs) at the Beth Israel Deaconess Medical Center (Boston, MA, USA) from 2008 to 2022. The database includes demographic information, laboratory measurements, vital signs, medications, procedures, and detailed patient outcomes, providing a valuable resource for clinical research and model development. Access to the MIMIC-IV database was granted after completion of the required Collaborative Institutional Training Initiative (CITI) program (Record ID: 14220853). This study was conducted in accordance with the ethical standards laid down in the Declaration of Helsinki and was approved by the Institutional Review Boards (IRBs) of both the Massachusetts Institute of Technology (MIT) and Beth Israel Deaconess Medical Center. As the data in MIMIC-IV are fully de-identified, informed consent was waived for all participants.

2.2 Patient selection

The overall flowchart of this study is presented in Figure 1. Patients were identified from the MIMIC-IV database using structured query language (SQL) based on the following inclusion criteria: (1) first ICU admission; (2) length of ICU stay of at least 24 hours; and (3) age between 18 and 100 years at the time of ICU admission. Patients with Escherichia coli infection were identified according to microbiological test results and International Classification of Diseases (ICD) codes documented during their hospitalization.

Figure 1
Flowchart outlining a study using the MIMIC-IV database. Section 1 shows inclusion criteria, resulting in 52,554 patients, split into non-E. coli (48,397) and E. coli (4,157). Section 2 details data imputation, correlation analysis using Cramér's V and Spearman, and undersampling to equalize both groups. Section 3 focuses on model development (70% of data) using various algorithms like LR, KNN, and others. Section 4 involves model validation (30% of data) using metrics like ROC and calibration. Section 5 denotes online application development.

Figure 1. The flowchart of study design. ICU, Intensive Care Unit; LOS, Length of Stay; LR, Logistic Regression; KNN, K-Nearest Neighbors; DT, Decision Tree; RF, Random Forest; XGBoost, Extreme Gradient Boosting; LightGBM, Light Gradient Boosting Machine; SVM, Support Vector Machine; NNet, Neural Network; ROC, Receiver Operating Characteristic; DCA, Decision Curve Analysis; CIC, Clinical Impact Curve.

2.3 Variable extraction

Baseline data at ICU admission were extracted from the MIMIC-IV database using structured query language (SQL). The following variables were collected: (1) General and demographic information: age, gender, race, marital status, weight, height, input amount sum, output amount sum, liquid balance value, and urine output sum. (2) Vital signs: heart rate, systolic blood pressure (SBP), diastolic blood pressure (DBP), respiratory rate, and temperature. (3) Laboratory tests: white blood cell count (WBC), absolute neutrophil count, absolute monocyte count, absolute lymphocyte count, absolute eosinophil count, absolute basophil count, percentage of neutrophils, monocytes, lymphocytes, eosinophils, and basophils, C-reactive protein (CRP), red blood cell count (RBC), hemoglobin, hematocrit, red cell distribution width (RDW), platelet count, albumin, gamma-glutamyl transferase (GGT), alanine aminotransferase (ALT), alkaline phosphatase (ALP), aspartate aminotransferase (AST), total bilirubin, blood urea nitrogen (BUN), creatinine, lactate dehydrogenase (LDH), calcium, potassium, sodium, glucose, chloride, anion gap, D-dimer, fibrinogen, international normalized ratio (INR), prothrombin time (PT), partial thromboplastin time (PTT), partial pressure of oxygen (PO2), partial pressure of carbon dioxide (PCO2), PaO2/FiO2 ratio, oxygen saturation (SO2), lactate, pH, bicarbonate, and base excess. (4) Comorbidities: myocardial infarction, congestive heart failure, cerebrovascular disease, chronic pulmonary disease, liver disease, renal disease, diabetes, hypertension, malignant cancer, acquired immune deficiency syndrome (AIDS), acute kidney injury (AKI), AKI stage, sepsis, and delirium. (5) Clinical treatments: systemic glucocorticoids, inhaled corticosteroids (ICS), immunosuppressors, biological agents, vasopressors, proton pump inhibitors (PPIs), neuromuscular blocking agents (NMBA), sedatives, opioids, nonsteroidal anti-inflammatory drugs (NSAIDs), statins, invasive ventilation, noninvasive ventilation, continuous renal replacement therapy (CRRT), invasive lines, tubes, enteral nutrition, parenteral nutrition, antibiotic use, duration of invasive ventilation, duration of noninvasive ventilation, and days on CRRT. (6) Clinical scoring systems: Acute Physiology Score III (APS III), Logistic Organ Dysfunction Score (LODS), Oxford Acute Severity of Illness Score (OASIS), Systemic Inflammatory Response Syndrome (SIRS), Sequential Organ Failure Assessment (SOFA), Simplified Acute Physiology Score II (SAPS II), Glasgow Coma Scale (GCS), and Charlson comorbidity index. (7) Outcome information: length of hospital stay, hospital mortality, ICU stay and outcome at 14, 28, 30, 90, and 365 days.

2.4 Statistical analysis

Variables with more than 25% missing values in the total dataset were excluded from the analysis. The details of missing data were shown in Supplementary Table 1. And the total dataset was then randomly divided into a training set and a validation set at a 7:3 ratio. For variables with less than 25% missing data, the missForest algorithm, a non-parametric imputation method based on random forests, was used to impute missing values in both training and validation datasets.

In the training set, correlation analysis was performed. For continuous variables, Spearman’s rank correlation coefficients were calculated to assess the pairwise associations (Supplementary Figure 1). For any two continuous variables with a correlation coefficient greater than 0.6, the variable with the weaker association with the outcome (Escherichia coli infection) was excluded. For categorical variables, Cramér’s V was used to evaluate the strength of association between pairs of variables (Supplementary Figure 2). If two categorical variables had a Cramér’s V greater than 0.5, the variable less correlated with the outcome was removed.

Given the substantial class imbalance between the two outcome groups, an undersampling technique was employed to balance the training dataset. Undersampling involves randomly removing samples from the majority class to ensure that the number of cases in each class is comparable, thereby reducing potential bias and improving the robustness of model training.

Feature selection and model development were performed on the training set. Two methods, least absolute shrinkage and selection operator (LASSO) regression and the Boruta algorithm, were used for variable selection, and only variables identified by both methods were retained for model construction. Eight machine learning algorithms were developed using the selected features: logistic regression (LR), K-nearest neighbors (KNN), decision tree (DT), random forest (RF), extreme gradient boosting (XGBoost), light gradient boosting machine (LightGBM), support vector machine (SVM), and neural network (NNet). For each model, hyperparameter tuning was conducted using grid search in conjunction with k-fold cross-validation (typically 5- or 10-fold, depending on model type) to optimize predictive performance and prevent overfitting. The detailed hyperparameter settings and optimal configurations for all eight models were summarized in Supplementary Table 2. Model performance was evaluated on the validation set using several metrics: the area under the receiver operating characteristic curve (AUC) with confidence interval (CI), sensitivity, specificity, F1 score, balance accuracy, area under the precision-recall curve (AUPRC)calibration curves, decision curve analysis (DCA), and clinical impact curves (CIC). The interpretability of the optimal model was assessed using Shapley additive explanations (SHAP). A web-based clinical decision support application was developed using the Shiny framework to facilitate clinical application of the predictive model.

Descriptive statistics were used to summarize baseline characteristics of the study population. Continuous variables were reported as mean ± standard deviation (SD) for normally distributed data or median (interquartile range, IQR) for non-normally distributed data. Categorical variables were presented as frequencies and percentages. Group comparisons were performed using the Student’s t-test or the Mann-Whitney U test for continuous variables, as appropriate, and the chi-square test or Fisher’s exact test for categorical variables. All hypothesis tests were two-tailed, and a p-value < 0.05 was considered statistically significant. Statistical analyses and model development were performed using R software (version 4.4.2).

3 Results

3.1 Baseline characteristics of patients between non-E. coli group and E. coli group

A total of 52, 554 ICU patients were included, with 4, 157 (7.9%) diagnosed with Escherichia coli infection. Detailed baseline characteristics for the non-E. coli and E. coli groups were presented in Supplementary Table 3.

Compared to the non-E. coli group, patients in the E. coli group were older (mean age 70.1 vs. 65.1 years), more likely to be female, and had a higher proportion of widowed individuals. The E. coli group exhibited greater disease severity, with higher rates of congestive heart failure, cerebrovascular disease, liver and renal disease, diabetes, malignant cancer, delirium, and sepsis. Laboratory findings indicated that E. coli patients had higher levels of WBC, RDW, BUN, creatinine, anion gap, and INR, but lower hemoglobin, hematocrit, and calcium. They also had higher SOFA, SAPSII, APSIII, OASIS, and Charlson comorbidity index scores, indicating increased clinical complexity. Clinically, the E. coli group experienced longer hospital stays (median 16.2 vs. 10.5 days), higher rates of hospital mortality (13.0% vs. 10.4%), and increased use of vasopressors, PPIs, CRRT, enteral and parenteral nutrition, and antibiotics. Notably, short- and long-term ICU mortality (14, 30, 90, and 365-day) were consistently greater among E. coli patients.

3.2 Feature selection

Feature selection was conducted using both the LASSO regression (Figure 2) and Boruta algorithm (Figure 3). A total of 28 variables were consistently identified by both Boruta and LASSO as robust predictors: Gender, Sepsis, Age, Sedative use, RDW, Enteral nutrition, Heart rate, Statins, Temperature, Glucocorticoids (systemic), Potassium, WBC, SBP, Anion gap, Calcium, Liver disease, Invasive lines, Respiratory rate, Liquid balance value, Delirium, BUN, NSAIDs, Sodium, Cerebrovascular disease, Noninvasive ventilation, PPIs, PTT, and CRRT. These intersecting variables were retained for subsequent model development.

Figure 2
Panel A shows coefficient paths against Log Lambda, where lines converge towards zero. Panel B displays binomial deviance against Log Lambda, with red dots indicating deviance, and a dashed line marking a threshold. Panel C is a bar chart of Lasso-identified variables with coefficients, ranging from -0.4 to 0.2, using a color gradient from blue to red.

Figure 2. Lasso regression-based variable screening. (A) LASSO coefficient profiles of candidate variables. (B) Ten-fold cross-validation plot for selecting the optimal penalty parameter (λ) in the LASSO model. (C) Bar plot of variables selected by LASSO regression with their corresponding coefficients.

Figure 3
Box plot showing the Boruta variable importance analysis. Variables are arranged along the x-axis with importance values on the y-axis. Variables are color-coded: blue for shadow variables, red for less important, yellow for tentative, and green for important. Importance increases from left to right, with “Gender” and “Age” being the most significant.

Figure 3. Variable importance ranking using the Boruta algorithm. Boxplots show the distribution of importance scores for each predictor variable assessed by the Boruta feature selection algorithm. Green boxplots indicate variables confirmed as important, red indicate variables rejected as unimportant, and yellow represent tentative variables. Blue boxplots correspond to shadow features created by Boruta for statistical comparison.

3.3 Model performance

Eight machine learning models were constructed to predict the risk of Escherichia coli infection in ICU patients. Discriminative performance, as assessed by AUC, was shown in Figure 4. Among all models, the SVM achieved the highest AUC (0.745, 95% CI: 0.726-0.764), followed by RF (AUC = 0.742, 95% CI: 0.723-0.761) and XGBoost (AUC = 0.739, 95% CI: 0.720-0.758). The DT model yielded the lowest AUC (0.674, 95% CI: 0.654-0.695), while the remaining models, including LR, KNN, LightGBM, and NNet, demonstrated moderate discrimination (AUCs ranging from 0.719 to 0.739). In terms of sensitivity, the LightGBM and NNet models showed the highest values (0.711 and 0.703, respectively), whereas the KNN and LR models had the highest specificity (0.678 and 0.654, respectively). F1 scores were comparable across models (range: 0.662-0.688). Full details of performance metrics were provided in Table 1. Calibration curves for each model were displayed in Figure 5, demonstrating good agreement between predicted probabilities and observed outcomes. Decision curve analysis (Figure 6A) further confirmed the clinical utility of the models, with SVM, RF, and XGBoost consistently showing superior net benefit across a wide range of risk thresholds. Clinical impact curves of SVM (Figure 6B) indicated that, across a range of risk thresholds, the SVM model accurately identified a substantial number of patients at high risk for E. coli infection, with a considerable proportion of true positive cases among those classified as high risk. Overall, the SVM model exhibited the best balance between discrimination, calibration, and clinical utility for predicting E. coli infection in the validation cohort. We also explored the use of recursive feature elimination (RFE) for further variable reduction. However, as shown in Supplementary Figure 3, reducing the number of variables led to a notable decrease in model performance. Therefore, all 28 selected variables were retained for the final model development.

Figure 4
Receiver Operating Characteristic (ROC) curve plot comparing multiple machine learning models. Sensitivity is plotted against one minus specificity. Models include Logistic Regression, Decision Tree, Random Forest, KNN, SVM, Neural Network, XGBoost, and LightGBM. The x-axis is labeled “1 - Specificity (False Positive Rate)” and the y-axis “Sensitivity.” Each model curve is color-coded, with corresponding Area Under the Curve (AUC) and Confidence Interval (CI) values provided in the legend.

Figure 4. Receiver operating characteristic (ROC) curves for eight machine learning models in the validation cohort.

Table 1
www.frontiersin.org

Table 1. Performance metrics of different machine learning models for predicting E. coli infection in the validation cohort.

Figure 5
Calibration curves comparing various models such as Decision Tree, LightGBM, Neural Network, SVM, KNN, Logistic Regression, Random Forest, and XGBoost. The curves show observed proportion versus actual probability, with a diagonal reference line indicating perfect calibration. Each model is represented by a different colored line.

Figure 5. Calibration curves for eight machine learning models in the validation cohort.

Figure 6
Panel A shows a decision curve analysis with standardized net benefit on the y-axis and high-risk threshold on the x-axis, comparing various machine learning models like logistic regression and random forest. Panel B displays the number of high-risk cases versus the high-risk threshold, with solid and dashed lines representing total high risk and high risk with event occurrences, respectively.

Figure 6. Decision curve analysis (A) for eight machine learning models and clinical impact curve (B) for the best prediction model (SVM) in the validation cohort. The solid black line in (A) represents the “treat-none” strategy (no patients are predicted as positive), which yields zero net benefit across all thresholds, and the dashed black line in (A) represents the “treat-all” strategy (all patients are predicted as positive), which corresponds to the expected net benefit if every patient were treated regardless of risk. Colored curves indicate the performance of each model, with higher curves suggesting greater clinical utility.

3.4 Model interpretability with SHAP

To enhance interpretability and clinical credibility of the SVM model, we utilized SHAP to provide both global and local explanations for model predictions. Globally, the SHAP summary plot (Figure 7A) displayed the mean absolute SHAP value for each feature, ranking variables according to their overall contribution to E. coli infection prediction. Gender, Age, Sepsis, Sedative use, and Potassium were identified as the most influential predictors in the SVM model, followed by Liquid balance value, Glucocorticoids systemic use, Temperature, and RDW. These features had the largest impact on the model’s output, underlining their importance for clinical risk stratification. At the individual level, SHAP waterfall plot and force plot were used to decompose model predictions for specific patients (Figures 7B, C). For instance, in a representative patient, Gender=1 (male) and Age=80 substantially shifted the risk prediction, with additional contributions from Sedative use, Invasive lines, and other variables. Positive SHAP values indicated features that increased the predicted risk, while negative values indicated risk-reducing factors. We further explored the impact of each selected variable on the SVM model predictions by visualizing the relationship between feature values and their corresponding SHAP values. Supplementary Figure 4 presented SHAP dependence plots for all 28 intersecting variables, ranked in descending order of importance. The SHAP decision process visually quantified how each variable contributed to the final probability, making the model’s reasoning transparent for clinicians.

Figure 7
Panel (A) displays a bar chart showing the mean SHAP values for various features impacting an SVM model's predictions, with “Gender” and “Age” having the highest influence. Panel (B) is a waterfall plot showing the contributions of features like “Gender” and “Age” to a prediction value of 0.347. Panel (C) presents another waterfall plot detailing feature contributions, illustrating a similar prediction process.

Figure 7. Interpretation of the SVM model using SHAP values. (A) Bar plot showing the mean absolute SHAP values for each variable. (B) SHAP force plot illustrating the impact of individual predictors on the model output for a representative patient. (C) SHAP decision plot visualizing the cumulative effect of key variables on the predicted outcome for a single case. SHAP, Shapley additive explanation.

3.5 Model application

To enhance the clinical utility of our prediction model, we developed an online application based on the final SVM algorithm using the Shiny platform (Figure 8). This user-friendly tool enabled clinicians to rapidly assess the risk of E. coli infection by entering key patient variables available at ICU admission. Upon inputting patient data, the application could instantly calculate the individualized risk probability for E. coli infection and visually display the result in a straightforward format. Furthermore, to improve transparency and interpretability, the app provided a SHAP waterfall plot for each individual prediction, highlighting the contribution of each feature to the risk estimate. The online application can be visited through the website (Yang et al., 2025) (https://predicti.shinyapps.io/ecoli_predictor/).

Figure 8
Patient information form filled with gender as female, presence of sepsis, age 69.38, sedative use, RDW at 14.4, no enteral nutrition, and heart rate of 87. Prediction results show high risk of Escherichia coli infection with 58.83% probability. A SHAP waterfall plot displays feature contributions to the prediction, highlighting gender and sepsis as significant factors.

Figure 8. Web-based clinical decision support tool for individualized prediction of E. coli infection.

4 Discussion

In this study, we developed and validated a suite of machine learning models for individualized risk prediction of Escherichia coli infection among ICU patients. The SVM model demonstrated the best overall performance, achieving robust discrimination and calibration in the validation cohort. The use of SHAP analysis enhanced interpretability, enabling both global and individualized insights into feature contributions and model decision-making. Furthermore, our development of an online risk calculator provides a practical tool for real-time clinical implementation.

While machine learning methods have been increasingly applied in infection prediction and risk stratification, there remains a notable absence of validated models specifically targeting the risk of Escherichia coli infection in ICU populations. Previous studies have primarily addressed risk factors for infection (Qi et al., 2024) or focused on antimicrobial resistance (Yu et al., 2018; Xu et al., 2025), but not on E. coli infection risk prediction in the intensive care setting. Our study addressed this critical gap by providing a validated and interpretable tool for individualized risk stratification in this high-risk population. In contrast to previous work such as Clarke et al., which leveraged extensive historical health records and outpatient data to predict invasive E. coli disease in a general adult population (Clarke et al., 2024), our approach was tailored to the ICU context. We focused on variables available at ICU admission, emphasizing acute clinical, laboratory, and treatment characteristics, as ICU patients differed markedly from the general population in terms of disease acuity, clinical complexity, and risk exposure. By centering on immediately available and actionable data, our model was well suited for real-time risk assessment and clinical decision-making in critically ill patients. Notably, both our study and that of Clarke et al. identified advanced age and female sex as key risk factors, consistently demonstrating that older adults, particularly women, are at substantially increased risk. This heightened susceptibility is attributable to a combination of physiological, anatomical, and clinical factors. Aging is associated with immunosenescence, which impairs the host’s ability to mount an effective immune response against bacterial pathogens, as well as reduced organ reserve that limits resilience to acute stressors. Older adults often present with multiple chronic comorbidities, such as diabetes and chronic kidney disease, further predisposing them to infection (Fuchs et al., 2012; Brunker et al., 2023). In the ICU setting, elderly patients are more likely to undergo invasive procedures like urinary catheterization and experience prolonged hospitalization, both of which increase the opportunity for nosocomial E. coli infection. Additionally, frequent exposure to broad-spectrum antibiotics in this population promotes colonization with resistant organisms. Female sex confers added vulnerability, primarily due to anatomical differences. In our study, the majority of Escherichia coli infections in ICU patients originated from the urinary tract, as illustrated in Supplementary Figure 5. The female urethra is shorter and in closer proximity to the perianal area, facilitating the ascent of enteric bacteria such as E. coli into the urinary tract. Hormonal changes, particularly reduced estrogen levels in postmenopausal women, may further compromise mucosal defenses. Under critical illness, these age- and sex-related risks are magnified, underscoring the importance of targeted infection prevention and surveillance strategies in older female ICU patients.

Sepsis significantly increased the risk of secondary infections such as Escherichia coli among ICU patients. Sepsis was associated with dysfunction of the intestinal barrier, resulting in increased permeability that facilitated bacterial translocation from the gut into the systemic circulation (Haussner et al., 2019). Recent studies have demonstrated that, following sepsis and broad-spectrum antibiotic therapy, there was a marked reduction in gut microbiota diversity, with enrichment of antibiotic-resistant bacteria such as E. coli. Genomic analyses have shown a high degree of homology between gut-dominant bacteria and pathogens isolated from secondary infection sites, indicating that intestinal colonization was a major source of subsequent systemic infection in septic patients (Mu et al., 2022). Furthermore, sepsis induced profound immune dysregulation, including the reprogramming of granulocytes to a hyper-inflammatory yet functionally compromised state, which paradoxically impaired effective clearance of new infections and increased susceptibility to opportunistic pathogens (Wang et al., 2023). Collectively, these alterations in mucosal barrier integrity, microbiome composition, and immune function converged to create a highly permissive environment for secondary E. coli infections in the ICU setting.

Previous studies have consistently shown that the use of sedative agents, particularly benzodiazepines, in critically ill patients was associated with an increased risk of healthcare-associated infections, including ventilator-associated pneumonia and bloodstream infections (Caroff et al., 2016). This elevated risk was believed to result from the suppression of protective airway reflexes, impaired gastrointestinal and urinary tract motility, and the immunomodulatory effects of sedatives, especially when used at greater depth or duration. However, in our study, the use of sedative medications was paradoxically associated with a decreased risk of Escherichia coli infection. Several factors may explain this counterintuitive finding. First, sedated patients often receive more intensive nursing care, including rigorous infection prevention measures and frequent monitoring, which may reduce the risk of nosocomial infections. Second, in modern ICU practice, the indication for sedation often correlates with early invasive management, such as mechanical ventilation and the use of indwelling devices. However, current care bundles prioritize prompt weaning and timely removal of invasive devices whenever possible. This strategy shortens the duration of exposure to potential infection sources, such as urinary or vascular catheters, thus potentially reducing the risk of device-associated infections, including urinary tract colonization. Interestingly, there is also some in vitro evidence that certain sedatives, such as midazolam, possessed direct antimicrobial activity against E. coli and other clinically relevant pathogens, while other agents like propofol and dexmedetomidine do not exhibit such effects (Keleş et al., 2006). Lastly, it is possible that our machine learning model may have captured correlations influenced by clinical practices unique to our cohort, rather than direct causal effects. These findings underscore the complexity of infection risk stratification in ICU populations and highlight the need for further large-scale, prospective studies to clarify the relationship between sedative use and pathogen-specific infection risk.

The clinical application of our predictive model provides actionable insights for infection prevention in ICU patients. By highlighting the most influential variables, such as female sex, advanced age, and sepsis, our model enables clinicians to identify patients at particularly high risk for Escherichia coli infection. For these individuals, interventions should include heightened surveillance and prompt management of modifiable risk factors. Strict adherence to aseptic technique, frequent assessment of catheter necessity, and timely removal are essential to reduce urinary tract infection risk. For prevention of extra-urinary E. coli infections, such as respiratory or bloodstream infections, measures include minimizing the duration of mechanical ventilation, employing subglottic suctioning, ensuring proper oral care, and maintaining strict asepsis for vascular lines with early removal when feasible. Meticulous daily hygiene care, early mobilization, and nutritional and immune support can further enhance host defenses across infection sites. Abnormal electrolyte levels and positive fluid balance should be corrected promptly. Cautious use of sedatives is warranted, with preference for light sedation and regular reassessment to avoid unnecessary exposure and associated complications. Importantly, our findings underscore the need for a personalized and comprehensive approach, that integrating risk predictions into clinical workflows allows for tailored prevention, targeted device management, and broad infectious surveillance, ultimately reducing the burden and adverse outcomes of E. coli infection in vulnerable ICU populations.

This study has several limitations. First, although our model achieved an acceptable level of discrimination, the AUC was relatively modest compared with some previously published infection prediction models. This may be partly attributable to the increased difficulty of predicting infection by a specific pathogen (E. coli) at an early stage, rather than broader categories such as hospital-acquired or multidrug-resistant infections. Moreover, the predictors used in this study were limited to those available at or shortly after ICU admission to ensure timeliness of prediction. While this design enhances the model’s clinical applicability for early warning, it inevitably restricts the number and depth of predictive features, which may constrain performance. Second, this work was based on a single-center retrospective dataset, which may limit the generalizability of our findings across different institutions and patient populations. Another methodological limitation lies in the handling of class imbalance. Although E. coli infection accounted for only 7.9% of the cohort, the absolute number of positive cases (n = 4, 157) was sufficiently large to support robust model training even after undersampling. We selected undersampling as the primary balancing strategy because it preserves the authenticity of real-world data and avoids introducing synthetic samples that may generate artificial patterns or amplify noise. This approach has also been adopted in recent ICU-based machine learning studies with similar imbalance ratios (Guan et al., 2024). However, undersampling inevitably reduces the number of negative cases used for training, which may lead to information loss and limit the model’s ability to capture rare but clinically relevant patterns in the majority class. Compared with oversampling methods such as SMOTE (Alkhawaldeh et al., 2023), undersampling provides a simpler and more conservative approach that reduces computational burden and the risk of overfitting from synthetic data, but at the expense of potential data inefficiency. Alternative resampling or hybrid approaches, including SMOTE-Tomek or adaptive ensemble methods, may help achieve a better trade-off between data integrity and model performance, and will be considered in future research. Additionally, although k-fold cross-validation and an independent validation set were employed to mitigate overfitting, the possibility of overfitting cannot be completely excluded. Finally, while SHAP analysis improves model interpretability, it cannot establish causal relationships, and some observed associations may reflect residual confounding or institution-specific practices.

Future research should focus on several directions to further strengthen and extend this work. First, multi-center and prospective validation is needed to evaluate the model’s generalizability and robustness across different healthcare systems, patient populations, and clinical environments. Second, incorporating more granular and longitudinal data, such as serial physiological measurements, detailed microbiological results, prior infection history, and antibiotic exposure, may enhance predictive accuracy and enable dynamic risk monitoring during ICU stay. In addition, employing more advanced hyperparameter-tuning approaches, such as Bayesian optimization, randomized search, or genetic algorithms, together with ensemble-learning frameworks (e.g., stacking or blending multiple base learners), may further refine model calibration and stability. Furthermore, as the size and diversity of available ICU datasets continue to grow, deep learning approaches, such as artificial neural networks (ANNs), convolutional neural networks (CNNs), and recurrent neural networks (RNNs), could be leveraged to automatically learn high-order nonlinear relationships among complex clinical and microbiological variables. These architectures may provide enhanced representational capacity and predictive performance compared with traditional machine learning algorithms, while techniques such as attention mechanisms and integrated gradient analysis could further improve interpretability. Finally, interventional and implementation studies are warranted to determine whether integrating this prediction model into routine ICU workflows can effectively support early identification of high-risk patients, improve preventive decision-making, and ultimately reduce the incidence and adverse outcomes of E. coli infections.

5 Conclusions

In summary, our study demonstrates that machine learning-based prediction models can provide accurate, interpretable, and actionable risk assessment for E. coli infection in ICU patients. The deployment of such tools in clinical practice has the potential to improve infection prevention, patient outcomes, and healthcare resource utilization in the intensive care setting.

Data availability statement

Publicly available datasets were analyzed in this study. This data can be found here: https://physionet.org/content/mimiciv/3.1/.

Ethics statement

The studies involving humans were approved by Institutional Review Boards (IRBs) of both the Massachusetts Institute of Technology (MIT) and Beth Israel Deaconess Medical Center. The studies were conducted in accordance with the local legislation and institutional requirements. The ethics committee/institutional review board waived the requirement of written informed consent for participation from the participants or the participants’ legal guardians/next of kin because As the data in MIMIC-IV are fully de-identified, informed consent was waived for all participants. Written informed consent was not obtained from the individual(s) for the publication of any potentially identifiable images or data included in this article because As the data in MIMIC-IV are fully de-identified, informed consent was waived for all participants.

Author contributions

SY: Methodology, Formal Analysis, Data curation, Conceptualization, Writing – original draft, Visualization. LZ: Formal Analysis, Visualization, Data curation, Writing – original draft, Conceptualization, Methodology. HL: Visualization, Data curation, Writing – review & editing. XX: Supervision, Writing – review & editing, Conceptualization. XC: Supervision, Writing – review & editing, Conceptualization.

Funding

The author(s) declare financial support was received for the research and/or publication of this article. This research is supported by Fujian Provincial Natural Science Foundation of China (Grant No. 2023J01679).

Acknowledgments

The authors would like to acknowledge the MIT Laboratory for Computational Physiology for providing access to the MIMIC-IV database. We sincerely appreciate the efforts of the MIMIC-IV development team in maintaining and curating this valuable critical care dataset, which has significantly contributed to advancements in clinical research.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declare that no Generative AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fcimb.2025.1682764/full#supplementary-material

Glossary

AIDS: Acquired Immune Deficiency Syndrome

AKI: Acute Kidney Injury

ALP: Alkaline Phosphatase

ALT: Alanine Aminotransferase

AMR: Antimicrobial Resistance

ANNs: Artificial Neural Networks

APS III: Acute Physiology Score III

AST: Aspartate Aminotransferase

AUC: Area Under the Curve

AUPRC: Area Under the Precision-Recall Curve

BUN: Blood Urea Nitrogen

CI: Confidence Interval

CIC: Clinical Impact Curve

CITI: Collaborative Institutional Training Initiative

CNNs: Convolutional Neural Networks

CRP: C-Reactive Protein

CRRT: Continuous Renal Replacement Therapy

DCA: Decision Curve Analysis

DBP: Diastolic Blood Pressure

DT: Decision Tree

E. coli: Escherichia coli

GCS: Glasgow Coma Scale

GGT: Gamma-Glutamyl Transferase

ICD: International Classification of Diseases

ICS: Inhaled Corticosteroids

ICU: Intensive Care Unit

INR: International Normalized Ratio

IQR: Interquartile Range

KNN: K-Nearest Neighbors

LASSO: Least Absolute Shrinkage and Selection Operator

LDH: Lactate Dehydrogenase

LightGBM: Light Gradient Boosting Machine

LODS: Logistic Organ Dysfunction Score

MIMIC-IV: Medical Information Mart for Intensive Care IV

MIT: Massachusetts Institute of Technology

NNet: Neural Network

NMBA: Neuromuscular Blocking Agents

NSAIDs: Nonsteroidal Anti-inflammatory Drugs

OASIS: Oxford Acute Severity of Illness Score

PaO₂/FiO₂: Ratio of Arterial Oxygen Partial Pressure to Fraction of Inspired Oxygen

PCO₂: Partial Pressure of Carbon Dioxide

PF: Pulmonary Fibrosis

PO₂: Partial Pressure of Oxygen

PPIs: Proton Pump Inhibitors

PT: Prothrombin Time

PTT: Partial Thromboplastin Time

RBC: Red Blood Cell

RDW: Red Cell Distribution Width

RF: Random Forest

RNNs: Recurrent Neural Networks

ROC: Receiver Operating Characteristic

SAPS II: Simplified Acute Physiology Score II

SBP: Systolic Blood Pressure

SD: Standard Deviation

SHAP: Shapley Additive Explanations

SIRS: Systemic Inflammatory Response Syndrome

SMOTE: Synthetic Minority Over-Sampling Technique

SO₂: Oxygen Saturation

SOFA: Sequential Organ Failure Assessment

SQL: Structured Query Language

SVM: Support Vector Machine

WBC: White Blood Cell

XGBoost: Extreme Gradient Boosting.

Abbreviations

AIDS, Acquired Immune Deficiency Syndrome; AKI, Acute Kidney Injury; ALP, Alkaline Phosphatase; ALT, Alanine Aminotransferase; AMR, Antimicrobial Resistance; ANNs, Artificial Neural Networks; APS III, Acute Physiology Score III; AST, Aspartate Aminotransferase; AUC, Area Under the Curve; AUPRC, Area Under the Precision-Recall Curve; BUN, Blood Urea Nitrogen; CI, Confidence Interval; CIC, Clinical Impact Curve; CITI, Collaborative Institutional Training Initiative; CNNs, Convolutional Neural Networks; CRP, C-Reactive Protein; CRRT, Continuous Renal Replacement Therapy; DCA, Decision Curve Analysis; DBP, Diastolic Blood Pressure; DT, Decision Tree; E. coli, Escherichia coli; GCS, Glasgow Coma Scale; GGT, Gamma-Glutamyl Transferase; ICD, International Classification of Diseases; ICS, Inhaled Corticosteroids; ICU, Intensive Care Unit; INR, International Normalized Ratio; IQR, Interquartile Range; KNN, K-Nearest Neighbors; LASSO, Least Absolute Shrinkage and Selection Operator; LDH, Lactate Dehydrogenase; LightGBM, Light Gradient Boosting Machine; LODS, Logistic Organ Dysfunction Score; MIMIC-IV, Medical Information Mart for Intensive Care IV; MIT, Massachusetts Institute of Technology; NNet, Neural Network; NMBA, Neuromuscular Blocking Agents; NSAIDs, Nonsteroidal Anti-inflammatory Drugs; OASIS, Oxford Acute Severity of Illness Score; PaO2/FiO2, Ratio of Arterial Oxygen Partial Pressure to Fraction of Inspired Oxygen; PCO2, Partial Pressure of Carbon Dioxide; PF, Pulmonary Fibrosis; PO2, Partial Pressure of Oxygen; PPIs, Proton Pump Inhibitors; PT, Prothrombin Time; PTT, Partial Thromboplastin Time; RBC, Red Blood Cell; RDW, Red Cell Distribution Width; RF, Random Forest; RNNs, Recurrent Neural Networks; ROC, Receiver Operating Characteristic; SAPS II, Simplified Acute Physiology Score II; SBP, Systolic Blood Pressure; SD, Standard Deviation; SHAP, Shapley Additive Explanations; SIRS, Systemic Inflammatory Response Syndrome; SMOTE, Synthetic Minority Over-Sampling Technique; SO2, Oxygen Saturation; SOFA, Sequential Organ Failure Assessment; SQL, Structured Query Language; SVM, Support Vector Machine; WBC, White Blood Cell; XGBoost, Extreme Gradient Boosting.

References

Alkhawaldeh, I. M., Albalkhi, I., and Naswhan, A. J. (2023). Challenges and limitations of synthetic minority oversampling techniques in machine learning. World J. Methodol. 13, 373–378. doi: 10.5662/wjm.v13.i5.373

PubMed Abstract | Crossref Full Text | Google Scholar

Assawatheptawee, K., Kiddee, A., Na-Udom, A., Wangteeraprasert, A., Treebupachatsakul, P., and Niumsup, P. R. (2021). Acquisition of extended-spectrum β-lactamase-producing escherichia coli and klebsiella pneumoniae in intensive care units in Thailand. J. Infect. Chemother. Off J. Jpn Soc. Chemother. 27, 401–405. doi: 10.1016/j.jiac.2020.10.017

PubMed Abstract | Crossref Full Text | Google Scholar

Brunker, L. B., Boncyk, C. S., Rengel, K. F., and Hughes, C. G. (2023). Elderly patients and management in intensive care units (ICU): Clinical challenges. Clin. Interv Aging. 18, 93–112. doi: 10.2147/CIA.S365968

PubMed Abstract | Crossref Full Text | Google Scholar

Caroff, D. A., Szumita, P. M., and Klompas, M. (2016). The relationship between sedatives, sedative strategy, and healthcare-associated infection: A systematic review. Infect. Control Hosp Epidemiol. 37, 1234–1242. doi: 10.1017/ice.2016.129

PubMed Abstract | Crossref Full Text | Google Scholar

Chang, H.-J., Hsu, P.-C., Yang, C.-C., Kuo, A.-J., Chia, J.-H., Wu, T.-L., et al. (2011). Risk factors and outcomes of carbapenem-nonsusceptible escherichia coli bacteremia: A matched case-control study. J. Microbiol. Immunol. Infect. Wei Mian Yu Gan Ran Za Zhi. 44, 125–130. doi: 10.1016/j.jmii.2010.06.001

PubMed Abstract | Crossref Full Text | Google Scholar

Chen, Q., Ma, G., Cao, H., Yang, X., and Jiang, Y. (2021). Risk factors and diagnostic markers for escherichia coli bloodstream infection in older patients. Arch. Gerontol Geriatr. 93, 104315. doi: 10.1016/j.archger.2020.104315

PubMed Abstract | Crossref Full Text | Google Scholar

Clarke, E., Chehoud, C., Khan, N., Spiessens, B., Poolman, J., and Geurtsen, J. (2024). Unbiased identification of risk factors for invasive escherichia coli disease using machine learning. BMC Infect. Dis. 24, 796. doi: 10.1186/s12879-024-09669-3

PubMed Abstract | Crossref Full Text | Google Scholar

Etemad, M., Khani, Y., Hashemi-Nazari, S. S., Izadi, N., Eshrati, B., and Mehrabi, Y. (2021). Survival rate in patients with ICU-acquired infections and its related factors in Iran’s hospitals. BMC Public Health 21, 787. doi: 10.1186/s12889-021-10857-y

PubMed Abstract | Crossref Full Text | Google Scholar

Fan, Z., Jiang, J., Xiao, C., Chen, Y., Xia, Q., Wang, J., et al. (2023). Construction and validation of prognostic models in critically ill patients with sepsis-associated acute kidney injury: Interpretable machine learning approach. J. Transl. Med. 21, 406. doi: 10.1186/s12967-023-04205-4

PubMed Abstract | Crossref Full Text | Google Scholar

Fuchs, L., Chronaki, C. E., Park, S., Novack, V., Baumfeld, Y., Scott, D., et al. (2012). ICU admission characteristics and mortality rates among elderly and very elderly patients. Intensive Care Med. 38, 1654–1661. doi: 10.1007/s00134-012-2629-6

PubMed Abstract | Crossref Full Text | Google Scholar

Guan, C., Gong, A., Zhao, Y., Yin, C., Geng, L., Liu, L., et al. (2024). Interpretable machine learning model for new-onset atrial fibrillation prediction in critically ill patients: a multi-center study. Crit. Care 28, 349. doi: 10.1186/s13054-024-05138-0

PubMed Abstract | Crossref Full Text | Google Scholar

Haussner, F., Chakraborty, S., Halbgebauer, R., and Huber-Lang, M. (2019). Challenge to the intestinal mucosa during sepsis. Front. Immunol. 10. doi: 10.3389/fimmu.2019.00891

PubMed Abstract | Crossref Full Text | Google Scholar

Johnson, A. E., Bulgarelli, L., Shen, L. W., Gayles, A., Shammout, A., Horng, S., et al. (2023). MIMIC-IV (medical information mart for intensive care IV) (PhysioNet). Available online at: https://physionet.org/content/mimiciv/3.1/ (Accessed August 9, 2025).

Google Scholar

Keleş, G. T., Kurutepe, S., Tok, D., Gazi, H., and Dinç, G. (2006). Comparison of antimicrobial effects of dexmedetomidine and etomidate-lipuro with those of propofol and midazolam. Eur. J. Anaesthesiol. 23, 1037–1040. doi: 10.1017/S0265021506000949

PubMed Abstract | Crossref Full Text | Google Scholar

Kim, J. I., Maguire, F., Tsang, K. K., Gouliouris, T., Peacock, S. J., McAllister, T. A., et al. (2022). Machine learning for antimicrobial resistance prediction: Current practice, limitations, and clinical perspective. Clin. Microbiol. Rev. 35, e0017921. doi: 10.1128/cmr.00179-21

PubMed Abstract | Crossref Full Text | Google Scholar

Koksal, I., Yilmaz, G., Unal, S., Zarakolu, P., Korten, V., Mulazimoglu, L., et al. (2017). Epidemiology and susceptibility of pathogens from SMART 2011–12 Turkey: Evaluation of hospital-acquired versus community-acquired urinary tract infections and ICU- versus non-ICU-associated intra-abdominal infections. J. Antimicrob. Chemother. 72, 1364–1372. doi: 10.1093/jac/dkw574

PubMed Abstract | Crossref Full Text | Google Scholar

Kollef, M. H., Torres, A., Shorr, A. F., Martin-Loeches, I., and Micek, S. T. (2021). Nosocomial infection. Crit. Care Med. 49, 169–187. doi: 10.1097/CCM.0000000000004783

PubMed Abstract | Crossref Full Text | Google Scholar

Le Goff, M., Martino, F., Rossi, G., Toussaint, A., Moncomble, E., Reuter, D., et al. (2025). Prognosis of liver abscess in the intensive care unit (POLAIR), a multicentre observational study. Crit. Care Lond Engl. 29, 146. doi: 10.1186/s13054-025-05376-w

PubMed Abstract | Crossref Full Text | Google Scholar

Li, R., Li, L., Xu, Y., and Yang, J. (2022). Machine learning meets omics: Applications and perspectives. Brief Bioinform. 23, bbab460. doi: 10.1093/bib/bbab460

PubMed Abstract | Crossref Full Text | Google Scholar

Mu, S., Xiang, H., Wang, Y., Wei, W., Long, X., Han, Y., et al. (2022). The pathogens of secondary infection in septic patients share a similar genotype to those that predominate in the gut. Crit. Care Lond Engl. 26, 68. doi: 10.1186/s13054-022-03943-z

PubMed Abstract | Crossref Full Text | Google Scholar

Qi, Z., Dong, L., Lin, J., and Duan, M. (2024). Development and validation a nomogram prediction model for early diagnosis of bloodstream infections in the intensive care unit. Front. Cell Infect. Microbiol. 14. doi: 10.3389/fcimb.2024.1348896

PubMed Abstract | Crossref Full Text | Google Scholar

Ren, Y., Chakraborty, T., Doijad, S., Falgenhauer, L., Falgenhauer, J., Goesmann, A., et al. (2022). Prediction of antimicrobial resistance based on whole-genome sequencing and machine learning. Bioinforma Oxf Engl. 38, 325–334. doi: 10.1093/bioinformatics/btab681

PubMed Abstract | Crossref Full Text | Google Scholar

Sommerstein, R., Damonti, L., Marschall, J., Harbarth, S., Gasser, M., Kronenberg, A., et al. (2021). Distribution of pathogens and antimicrobial resistance in ICU-bloodstream infections during hospitalization: A nationwide surveillance study. Sci. Rep. 11, 16876. doi: 10.1038/s41598-021-95873-z

PubMed Abstract | Crossref Full Text | Google Scholar

Song, K., Guo, C., Zeng, Z., Li, C., and Ding, N. (2022). Factors associated with in-hospital mortality in adult sepsis with escherichia coli infection. BMC Infect. Dis. 22, 197. doi: 10.1186/s12879-022-07201-z

PubMed Abstract | Crossref Full Text | Google Scholar

Tabah, A., Buetti, N., Staiquly, Q., Ruckly, S., Akova, M., Aslan, A. T., et al. (2023). Epidemiology and outcomes of hospital-acquired bloodstream infections in intensive care unit patients: The EUROBACT-2 international cohort study. Intensive Care Med. 49, 178–190. doi: 10.1007/s00134-022-06944-2

PubMed Abstract | Crossref Full Text | Google Scholar

Wang, D., Li, J., Sun, Y., Ding, X., Zhang, X., Liu, S., et al. (2021). A machine learning model for accurate prediction of sepsis in ICU patients. Front. Public Health 9. doi: 10.3389/fpubh.2021.754348

PubMed Abstract | Crossref Full Text | Google Scholar

Wang, B., Zhu, L., Jia, B., Zhao, C., Zhang, J., Li, F., et al. (2023). Sepsis induces non-classic innate immune memory in granulocytes. Cell Rep. 42, 113044. doi: 10.1016/j.celrep.2023.113044

PubMed Abstract | Crossref Full Text | Google Scholar

Xu, X., Wang, Z., Lu, E., Lin, T., Du, H., Li, Z., et al. (2025). Rapid detection of carbapenem-resistant escherichia coli and carbapenem-resistant klebsiella pneumoniae in positive blood cultures via MALDI-TOF MS and tree-based machine learning models. BMC Microbiol. 25, 44. doi: 10.1186/s12866-025-03755-5

PubMed Abstract | Crossref Full Text | Google Scholar

Yali, G., Jing, C., Chunjiang, L., Cheng, Z., Xiaoqiang, L., and Yizhi, P. (2014). Comparison of pathogens and antibiotic resistance of burn patients in the burn ICU or in the common burn ward. Burns J. Int. Soc. Burn Inj. 40, 402–407. doi: 10.1016/j.burns.2013.07.010

PubMed Abstract | Crossref Full Text | Google Scholar

Yang, S., Zou, L., Liang, H., Xu, X., and Chen, X. E. (2025). coli infection risk prediction tool (E. coli Predictor). Available online at: https://predicti.shinyapps.io/ecoli_predictor/ (Accessed August 9, 2025).

Google Scholar

Yu, Y., Shen, H., Zhu, C., Guo, R., Gao, Y., and Lu, L. (2018). Infections caused by extended-spectrum β-lactamase producing escherichia coli in systemic lupus erythematosus patients: Prevalence, risk factors, and predictive model. BioMed. Res. Int. 2018, 8296720. doi: 10.1155/2018/8296720

PubMed Abstract | Crossref Full Text | Google Scholar

Zhang, X., Hu, Y., Cheng, Z., and Archibald, J. M. (2025). AMRLearn: Protocol for a machine learning pipeline for characterization of antimicrobial resistance determinants in microbial genomic data. STAR Protoc. 6, 103733. doi: 10.1016/j.xpro.2025.103733

PubMed Abstract | Crossref Full Text | Google Scholar

Zhang, R., Li, Y., Chen, J., Liu, C., Sun, Q., Shu, L., et al. (2023). Population genomic analysis reveals the emergence of high-risk carbapenem-resistant escherichia coli among ICU patients in China. J. Infect. 86, 316–328. doi: 10.1016/j.jinf.2023.02.004

PubMed Abstract | Crossref Full Text | Google Scholar

Keywords: Escherichia coli infection, machine learning, support vector machine, predictive model, intensive care unit

Citation: Yang S, Zou L, Liang H, Xu X and Chen X (2025) An interpretable machine learning model for early prediction of Escherichia coli infection in ICU patients. Front. Cell. Infect. Microbiol. 15:1682764. doi: 10.3389/fcimb.2025.1682764

Received: 09 August 2025; Accepted: 14 October 2025;
Published: 24 November 2025.

Edited by:

Zhi-Kai Yang, Guangzhou Medical University, China

Reviewed by:

Hao Luo, Tianjin University, China
Xi Zhang, Dalhousie University, Canada

Copyright © 2025 Yang, Zou, Liang, Xu and Chen. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Xiaohong Xu, dmFuY3kxOTg4QDE2My5jb20=; Xiaoling Chen, MTMzNjU5MTc5NzNAMTYzLmNvbQ==

These authors have contributed equally to this work and share first authorship

ORCID: Shu Yang, orcid.org/0009-0002-1511-2243
Laiyu Zou, orcid.org/0000-0002-1047-6868
Huixin Liang, orcid.org/0009-0009-5493-3811
Xiaohong Xu, orcid.org/0009-0003-5393-1976
Xiaoling Chen, orcid.org/0000-0003-2707-9524

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.