Predicting Carbapenem Resistance in Hospitalized Patients Using Machine Learning: A Retrospective Analysis of the MIMIC-III Database
de Alba Solis, A. U.; Ocampo Morales, I. S.; Gomez Sanchez, E.; Chavez Chavez, H. E.
Show abstract
Carbapenem-resistant Gram-negative bacteria (CR-GNB) represent a major health challenge due to limited therapeutic options, increased morbidity, and extended hospital stays (Ham et al., 2021). Early prediction of carbapenem resistance can optimize empirical antibiotic therapy and reduce unnecessary use of broad-spectrum antibiotics. This study developed and validated an artificial intelligence model to predict carbapenem resistance among hospitalized and ICU patients using clinical, demographic, laboratory, and antibiogram data. A retrospective analysis was performed on 94,000 hospitalized patients at Beth Israel Deaconess Medical Centre, utilizing the MIMIC-III (v1.4) database (Johnson et al., 2016). Predictor variables included were demographic characteristics, comorbidities, ICU admission, antibiotic exposure history, inflammatory and biochemical markers, and antibiotic susceptibility test results. Three artificial intelligence algorithms were evaluated: decision trees, random forests, and XGBoost. Model performance was assessed using AUC, precision, sensitivity, specificity, and confusion matrices. The XGBoost model demonstrated the highest performance, achieving an AUC of 0.95, precision of 0.98, sensitivity of 0.90, and specificity of 0.99. These results demonstrate strong discrimination ability and significant potential for integration into clinical workflows. The findings support the use of machine learning to enhance infection prevention, improve antibiotic stewardship, and inform early clinical decision-making. METHODSA retrospective study was performed using clinical and antibiotic-susceptibility test reports from hospitalized patients with confirmed bacterial infections, drawn from a cohort of 94,000 patients admitted to Beth Israel Deaconess Medical Centre in Boston, Massachusetts, USA, utilizing the MIMIC-III (v1.4) database. Three artificial intelligence algorithms were assessed: decision trees, random forests, and XGBoost. Data preprocessing ensured quality and completeness, followed by division into training and validation sets. Model performance was evaluated using accuracy, sensitivity, specificity, and confusion matrices. The study required access to electronic health records, computational servers for data processing and storage, specialized Python machine learning code, and a coding platform for prototyping on a multicore virtual machine. Python, along with libraries such as pandas, NumPy, scikit-learn, matplotlib, and seaborn, was used, primarily leveraging the collaborative development environment Google Colab. RESULTSThree models were trained using clinical, laboratory, and microbiological data from 94,000 hospitalized patients, with a subset of 3,277 patients with carbapenem-resistant infections. The analysis focused on patients with confirmed bacterial infections and antibiotic resistance, particularly within the ESKAPE group (Enterococcus faecium, Staphylococcus aureus, Klebsiella pneumoniae, Acinetobacter baumannii, Pseudomonas aeruginosa, and Enterobacter species), which cause most hospital-acquired infections (McGuire et al., 2021). The most favorable results were obtained using the XGBoost model, yielding: O_LIAUC: 0.955 C_LIO_LIPrecision: 0.989 C_LIO_LISensitivity: 0.909 C_LIO_LISpecificity: 0.993 C_LI The model demonstrated high reliability in predicting carbapenem before culture results were available, utilizing data accessible within the first hours of ICU admission. Early prediction enabled simulation of clinical scenarios in which the model recommended more timely antibiotic treatments, potentially reducing unnecessary exposure to broad-spectrum antibiotics when appropriately applied. CONCLUSIONThe predictive model demonstrated high accuracy and real-world clinical applicability for anticipating carbapenem resistance in critically ill patients, including, in some cases, septic patients. Its use in the first hours of hospitalization could: O_LIGuide the initial antibiotic selection more appropriately. C_LIO_LIReduce unnecessary carbapenem use to help contain antimicrobial resistance. C_LIO_LIDecrease the time to effective treatment to improve clinical outcomes. C_LIO_LIOptimize ICU resources by reducing complications associated with inadequate treatments. C_LI In clinical practice, this tool could be integrated into electronic health systems to automatically alert medical staff to a high risk of resistance, thereby streamlining critical decision-making in high-demand environments such as the ICU.
Matching journals
The top 10 journals account for 50% of the predicted probability mass.
Similar papers in this journal
- Comparison of OneChoice(R) AI-based clinical decision support recommendations with infectious disease specialists and non-specialists for bacteremia treatment in Lima, Peru 94%
- A Machine Learning-Based Prediction of Hospital Mortality in Mechanically Ventilated ICU Patients 94%
- An accurate and interpretable model for antimicrobial resistance in pathogenic Escherichia coli from livestock and companion animal species 94%
Similar papers in this journal
- MACI: A machine learning-based approach to identify drug classes of antibiotic resistance genes from metagenomic data 94%
- Improving irregular temporal modeling by integrating synthetic data to the electronic medical record using conditional GANs: a case study of fluid overload prediction in the intensive care unit 94%
- Machine Learning Interpretability Methods to Characterize the Importance of Hematologic Biomarkers in Prognosticating Patients with Suspected Infection 94%
Similar papers in this journal
- BacAnt: A Combination Annotation Server for Bacterial DNA Sequences to Identify Antibiotic Resistance Genes, Integrons, and Transposable Elements. 91%
- Low-Cost In-House Re-formulated Brain Heart Infusion Medium for Effective Planktonic Growth and Early Detection of Bloodstream Bacterial Pathogens 90%
- ProkBERT Family: Genomic Language Models for Microbiome Applications 89%
Similar papers in this journal
- Predicting the causative pathogen among children with pneumonia using a causal Bayesian network 93%
- Tracking Pseudomonas aeruginosa transmissions due to environmental contamination after discharge in ICUs using mathematical models 92%
- Speed, accuracy, sensitivity and quality control choices for detecting clinically relevant microbes in whole blood from patients. 91%
Similar papers in this journal
- Limitations of estimating antibiotic resistance using German hospital consumption data - A comprehensive computational analysis 95%
- Predicting bloodstream infection outcome using machine learning 94%
- Mitigating Machine Learning Bias Between High Income and Low-Middle Income Countries for Enhanced Model Fairness and Generalizability 93%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.