Machine Learning Predicts Multidrug Resistance in Surgical ICU: Insights from a Resource-Limited Setting

Antimicrobial resistance threatens surgical ICU outcomes. In our BMC Infectious Diseases study, we analyzed 106 postoperative patients in southern Iran and used XGBoost to predict MDR/XDR infections from routine clinical data, supporting stewardship in resource-limited settings.
Machine Learning Predicts Multidrug Resistance in Surgical ICU: Insights from a Resource-Limited Setting

Share this post

Choose a social network to share with, or copy the URL to share elsewhere

This is a representation of how your post may appear on social media. The actual post will vary between social networks

Explore the Research

BioMed Central
BioMed Central BioMed Central

Evaluating antimicrobial resistance and clinical outcomes in surgical ICU using a machine learning perspective: a retrospective observational study

Background Antimicrobial resistance (AMR) poses a critical threat to patient outcomes in intensive care units (ICUs), complicating treatment regimens and elevating mortality. This study aimed to assess the prevalence and patterns of AMR, antibiotic utilization, and clinical outcomes among postoperative patients in a surgical ICU in southern Iran, and developed predictive models for clinically significant resistance (MDR/XDR). Methods We conducted a retrospective study; 106 postoperative patients admitted to the surgical ICU between January 2022 and December 2023 were evaluated. Demographic and clinical data, antibiotic usage metrics (including Days of Therapy [DOT], Length of Therapy [LOT], and Antimicrobial-Free Days [AFD]), and microbial culture results were extracted from electronic health records. Resistance patterns were classified as minor, multidrug-resistant (MDR), extensively drug-resistant (XDR), or pan-drug-resistant (PDR). Predictive modeling was performed using an XGBoost classifier and a logistic regression (LR) baseline, with hyperparameter tuning, fivefold cross-validation, and SHAP (SHapley Additive exPlanations) analysis for feature importance. This exploratory, single-center study in a resource-limited setting highlights hypothesis-generating insights but is constrained by sample size and generalizability. Results In this cohort of 106 postoperative surgical ICU patients (median age, 66 years; 63.2% male), hypertension (33.7%) and diabetes mellitus (26.9%) were the most common comorbidities. The median ICU stay was 14.5 days, with an all-cause in-hospital mortality rate of 91.5%. Extensive antibiotic exposure was observed, with median DOT and LOT of 29.5 and 14.5 days, respectively, and broad-spectrum antibiotics were administered in 96% of cases. Among 175 microbial entries, 145 (83.82%) were culture-positive, predominantly Gram-negative bacteria (71.72%), with E. coli (20%), Acinetobacter (17.24%), and Klebsiella (16.55%) as leading pathogens. Notably, 62.07% of isolates were MDR and 3.45% were XDR, while no pan-drug resistant strains were identified. The XGBoost model achieved a test ROC-AUC of 0.786 and mean cross-validation AUC of 0.896 ± 0.05, with 70% accuracy and a macro F1-score of 0.70. The LR baseline yielded a test AUC of 0.743 and 77% accuracy, showing higher sensitivity but lower specificity. SHAP analysis identified Gram-negative infection type, Gram-positive infection type, LOT, and age as the most influential predictors of resistance. Conclusion Surgical ICU patients experienced high rates of MDR infections, prolonged antibiotic exposure, and elevated mortality. Machine learning, particularly XGBoost, showed promising potential in this exploratory context for early identification of high-risk patients, highlighting its role in guiding antimicrobial stewardship and empirical therapy in critical care settings, pending further validation.

The Clinical Challenge

Postoperative patients in surgical ICUs represent a uniquely vulnerable population. They face heightened infection risks from surgical wounds, indwelling devices, and compromised immune function, often requiring broad-spectrum empirical antibiotics. When multidrug-resistant (MDR) organisms emerge, treatment options narrow dramatically, and mortality rises. In resource-constrained environments, clinicians must make critical decisions without the benefit of rapid molecular diagnostics, relying instead on clinical judgment and delayed culture results.

Our retrospective study at Namazi Hospital, a tertiary referral center, analyzed 106 postoperative surgical ICU patients admitted between January 2022 and December 2023. The cohort was critically ill: median age was 66 years, 63.2% were male, and the all-cause in-hospital mortality rate reached 91.5%. Patients experienced prolonged ICU stays (median 14.5 days) and extensive antibiotic exposure, with median Days of Therapy (DOT) of 29.5 days and Length of Therapy (LOT) of 14.5 days. Alarmingly, the median Antimicrobial-Free Days (AFD) was zero, indicating continuous antibiotic exposure throughout ICU admission.

Resistance Patterns: A Concerning Landscape

Analysis of 175 microbial entries revealed 145 culture-positive isolates, with Gram-negative bacteria predominating (71.72%). Escherichia coli (20%), Acinetobacter species (17.24%), and Klebsiella species (16.55%) emerged as the leading pathogens. Among these isolates, 62.07% exhibited multidrug resistance, and 3.45% were extensively drug-resistant (XDR). No pan-drug-resistant strains were identified, but the high MDR prevalence signals a critical need for targeted interventions.

Distribution of antibiotic resistance patterns in micro-organisms isolated from post-operative ICU patients. This pie chart illustrates the distribution of antibiotic resistance patterns among all microbial isolates (n = 145) in patients admitted to the surgical ICU after operation. The chart categorizes the micro-organisms into no-or-minimal antibiotic resistant, multidrug-resistant (MDR), extensively drug-resistant (XDR), and pan-drug-resistant (PDR) infections
The chart categorizes the micro-organisms into no-or-minimal antibiotic resistant, multidrug-resistant (MDR), extensively drug-resistant (XDR), and pan-drug-resistant (PDR) infections

Resistance rates varied significantly across antibiotic classes. Fluoroquinolones and third-generation cephalosporins demonstrated the highest resistance rates (68.27% and 71.72%, respectively), followed by folate pathway inhibitors (62.76%) and aminoglycosides (53.10%). Carbapenem resistance showed notable variation, with imipenem resistance at 22.76% compared to meropenem at 4.83%. These patterns underscore the importance of local antibiogram data in guiding empirical therapy decisions.

Machine Learning: A Promising Frontier

A key innovation of our study was the development of machine learning models to predict MDR/XDR infections using routinely available clinical data. We employed an XGBoost classifier with hyperparameter optimization via Optuna (100 trials), comparing its performance against a logistic regression baseline.

The ROC curves demonstrate the performance of each model in predicting antibiotic resistance (MDR or XDR) on test set.

The XGBoost model achieved a test ROC-AUC of 0.786 and a mean fivefold cross-validation AUC of 0.896 ± 0.05, demonstrating robust discriminative ability. While the logistic regression model showed higher accuracy (77% vs. 70%), XGBoost exhibited superior balanced performance with a macro F1-score of 0.70. SHAP (SHapley Additive exPlanations) analysis identified Gram-negative infection type (mean absolute SHAP value: 1.76), Gram-positive infection type (1.36), length of therapy (1.31), and age (1.14) as the most influential predictors of resistance.

Critically, we implemented a deliberate feature selection strategy to prevent data leakage, excluding variables that directly indicate outcomes (such as specific microbial isolates) and focusing instead on patient demographics, comorbidities, surgical history, and antibiotic utilization metrics. This approach ensures clinical applicability by relying on data available at the point of care.

Clinical Implications and Future Directions

Our findings have several important implications for antimicrobial stewardship in critical care:

First, the prolonged antibiotic exposure observed—with median AFD of zero—reflects the challenges of managing critically ill postoperative patients in resource-limited settings. Implementing antibiotic timeout protocols and prospective audit-feedback mechanisms could help optimize prescribing practices.

Second, the high prevalence of MDR Gram-negative infections highlights the need for strengthened infection prevention and control measures, including enhanced hand hygiene, contact precautions, and environmental cleaning.

Third, machine learning models like XGBoost could serve as clinical decision support tools, helping clinicians identify high-risk patients who might benefit from escalated empirical therapy or alternative treatment strategies. This is particularly valuable in settings where rapid diagnostics are unavailable, and culture results require 48–72 hours.

A Call for Collaboration

This exploratory, single-center study provides hypothesis-generating insights but has inherent limitations, including sample size and generalizability. External validation across diverse patient populations and healthcare settings is essential before widespread implementation. I invite fellow researchers, clinicians, and data scientists interested in AMR surveillance, machine learning applications in medicine, and global health to connect and explore collaborative opportunities. Together, we can develop more robust, externally validated predictive models that support evidence-based antimicrobial stewardship worldwide.

Follow the Topic

Antimicrobial Resistance
Life Sciences > Health Sciences > Biomedical Research > Medical Microbiology > Antimicrobials > Antimicrobial Resistance
Machine Learning
Mathematics and Computing > Statistics > Statistics and Computing > Machine Learning
Intensive Care Medicine
Life Sciences > Health Sciences > Clinical Medicine > Intensive Care Medicine
Global Health
Humanities and Social Sciences > Society > Sociology > Health, Medicine and Society > Global Health

Related Collections

With Collections, you can get published faster and increase your visibility.

Personalized medicine in infectious diseases

BMC Infectious Diseases invites submissions for a Collection on Personalized medicine in infectious diseases.

The field of personalized medicine is rapidly advancing, particularly among infectious diseases, where the traditional ‘one-size-fits-all’ treatment approaches are increasingly inadequate. As our understanding of the genetic, environmental, and lifestyle factors influencing disease susceptibility and treatment response grows, this Collection aims to explore innovative strategies and technologies that can enhance the application of personalized medicine in combating infections.

Recent advancements in genomics, pharmacogenomics, and bioinformatics are transforming the application of personalized approaches for infectious diseases. These developments have enabled the identification of specific biomarkers that inform individualized treatment strategies, improving patient outcomes and minimizing adverse effects. In parallel, advances in molecular diagnostics and tailored antimicrobial therapies offer new opportunities to address the escalating challenge of antimicrobial resistance.

Improved understanding of host-pathogen interactions and the genetic determinants of infections may support the development of targeted antiviral and antimicrobial strategies that enhance their effectiveness, while limiting the emergence of resistance. Research in this area may also enable personalized antimicrobial dosing and optimized treatment guidelines that balance individual patient benefits with broader public health considerations.

This Collection welcomes original research articles on topics including but not limited to:

  • Tailored antimicrobial therapy in infectious diseases
  • Patient-specific interventions to improve clinical outcomes
  • Personalized strategies to address antimicrobial resistance
  • Precision medicine approaches in antiviral therapy
  • Novel methodologies for disease modelling and therapeutic targeting
  • Precision diagnostics, including biomarker validation and metagenomic sequencing
  • Model-informed personalized dosing in infectious diseases
  • Therapeutic drug monitoring in anti-infective therapy

This Collection supports and amplifies research related to SDG 3 (Good Health and Well-being).

All manuscripts submitted to this journal, including those submitted to collections and special issues, are assessed in line with our editorial policies and the journal’s peer review process. Reviewers and editors are required to declare competing interests and can be excluded from the peer review process if a competing interest exists.

Publishing Model: Open Access

Deadline: Dec 16, 2026

Tuberculosis and co-infections: diagnostics, management, and treatment

BMC Infectious Diseases invites submissions for a Collection on Tuberculosis and co-infections: diagnostics, management, and treatment.

Tuberculosis (TB) remains a leading cause of morbidity and mortality worldwide, particularly in regions with high prevalence rates and co-infections. The interplay between TB and various co-infections (including bacterial, viral, parasitic and fungal), complicates diagnosis and treatment strategies. Advances in molecular diagnostics and imaging techniques have improved our understanding of how these co-morbidities affect TB pathogenesis and treatment outcomes. However, the challenge of managing drug-resistant TB adds an additional layer of complexity, necessitating a comprehensive approach that integrates the latest research findings with clinical practice.

Research into TB of all stages and its co-infections is crucial for addressing the rising incidence of drug resistance and improving patient outcomes. Recent studies have identified critical biomarkers for early detection and prognosis, highlighting the role of rapid diagnostic tools in the clinical setting. Additionally, understanding the mechanisms of co-infections has led to tailored treatment regimens that maximize efficacy while minimizing adverse effects. Nonetheless, gaps remain in our knowledge of optimal management strategies for these complex cases, emphasizing the need for ongoing research in this field.

Future research endeavors should focus on the development of more effective diagnostic techniques and treatment protocols that consider the multifaceted interactions between TB and its co-infections. Innovations in personalized medicine may lead to targeted therapies that address specific pathogen interactions, ultimately enhancing patient recovery rates. Moreover, collaborative efforts between public health entities and research organizations could pave the way for comprehensive TB surveillance systems, fostering the identification of emerging trends in co-infection patterns.

This Collection welcomes original research articles on topics including but not limited to:

  • Diagnostic innovations for Tuberculosis and co-infections
  • Management strategies for drug-resistant Tuberculosis
  • Interaction between Tuberculosis and HIV
  • Tuberculosis and diabetes comorbidity
  • Tuberculosis in the context of viral hepatitis and COVID-19

This Collection supports and amplifies research related to SDG 3 (Good Health and Well-being).

All manuscripts submitted to this journal, including those submitted to collections and special issues, are assessed in line with our editorial policies and the journal’s peer review process. Reviewers and editors are required to declare competing interests and can be excluded from the peer review process if a competing interest exists.

Publishing Model: Open Access

Deadline: Jan 27, 2027