Predicting Carbapenem Resistance in Hospitalized Patients Using Machine Learning: A Retrospective Analysis of the MIMIC-III Database

preprint OA: closed
📄 Open PDF Full text JSON View at publisher
AI-generated deep summary by claude@2026-06, 2026-06-24 · read from full text

This retrospective study used the MIMIC-III (v1.4) database to develop and validate machine-learning models (decision trees, random forests, and XGBoost) for predicting carbapenem resistance in 94,000 hospitalized patients, with a subset of 3,277 patients having carbapenem-resistant infections, focusing on ESKAPE Gram-negative pathogens. Predictor variables included demographics, comorbidities, ICU admission, antibiotic exposure history, inflammatory and biochemical markers, and antibiotic susceptibility test results; performance was evaluated with AUC, precision, sensitivity, specificity, and confusion matrices. The XGBoost model achieved the best discrimination (AUC 0.955; precision 0.989; sensitivity 0.909; specificity 0.993), using data available within the first hours of ICU admission to predict resistance before culture results. The paper explicitly notes the use of retrospective, single-source EHR data as its basis for development/validation. The paper does not explicitly discuss endometriosis or adenomyosis; it was included in the corpus via a keyword match in the upstream search index.

Read from the paper's body, not the abstract. Not a substitute for reading the paper. No clinical advice. How this works

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.
Full text 39,497 characters · extracted from preprint-html · click to expand
Predicting Carbapenem Resistance in Hospitalized Patients Using Machine Learning: A Retrospective Analysis of the MIMIC-III Database | medRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P4HH5NV'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search Predicting Carbapenem Resistance in Hospitalized Patients Using Machine Learning: A Retrospective Analysis of the MIMIC-III Database View ORCID Profile Addiel Ulises de Alba Solis , View ORCID Profile Ivette Sarahi Ocampo Morales , View ORCID Profile Eduardo Gómez Sánchez , View ORCID Profile Hugo Enrique Chávez Chávez doi: https://doi.org/10.1101/2025.11.24.25340702 Addiel Ulises de Alba Solis 1 Centro Universitario de Ciencias de la Salud, Universidad de Guadalajara , Guadalajara, México 3 División de Disciplinas Clínicas, Centro Universitario de Ciencias de la Salud, Universidad de Guadalajara , Guadalajara, México Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Addiel Ulises de Alba Solis For correspondence: addiel.dealba{at}alumnos.udg.mx Ivette Sarahi Ocampo Morales 2 Universidad Autónoma de México , CDMX, México Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Ivette Sarahi Ocampo Morales Eduardo Gómez Sánchez 1 Centro Universitario de Ciencias de la Salud, Universidad de Guadalajara , Guadalajara, México 3 División de Disciplinas Clínicas, Centro Universitario de Ciencias de la Salud, Universidad de Guadalajara , Guadalajara, México 4 División de Disciplinas Básicas para la Salud, Cuerpo Académico de Ciencias Morfológicas en el Diagnóstico y Tratamiento de la Enfermedad, Centro Universitario de Ciencias de la Salud, Universidad de Guadalajara , Guadalajara, México Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Eduardo Gómez Sánchez Hugo Enrique Chávez Chávez 5 División de Medicina Interna , Hospital General Regional 180, IMSS, Guadalajara, México Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Hugo Enrique Chávez Chávez Abstract Full Text Info/History Metrics Data/Code Preview PDF 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. METHODS A 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. RESULTS Three 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, S taphylococcus aureus, K lebsiella pneumoniae, A cinetobacter baumannii, P seudomonas aeruginosa, and E nterobacter species), which cause most hospital-acquired infections ( McGuire et al., 2021 ). The most favorable results were obtained using the XGBoost model, yielding: AUC: 0.955 Precision: 0.989 Sensitivity: 0.909 Specificity: 0.993 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. CONCLUSION The 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: Guide the initial antibiotic selection more appropriately. Reduce unnecessary carbapenem use to help contain antimicrobial resistance. Decrease the time to effective treatment to improve clinical outcomes. Optimize ICU resources by reducing complications associated with inadequate treatments. 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. Introduction Antimicrobial resistance (AMR) is widely recognized as one of the most urgent public health threats in current medical practice ( Ham et al., 2021 ). Among resistant organisms, carbapenem-resistant Gram-negative bacteria pose a particular danger because they often affect critically ill patients and are associated with high mortality. The resistance mechanisms of these pathogens, including carbapenemase production, efflux pump overexpression, and porin loss confer broad protection against β-lactam antibiotics, leaving physicians with limited treatment options ( Raman et al., 2018 ). The prevalence of CR-GNB has increased the complexity of managing infections in intensive care units and higher specialized hospitals ( X. Li et al., 2024 ). These microorganisms disproportionately affect patients with prolonged hospital stays, invasive catheter contamination, correlated immunosuppression, or extensive prior antibiotic exposure ( Salomão et al., 2020 ). Consequently, delayed recognition of carbapenem resistance can lead to inappropriate empiric therapy, septic deterioration, and extended hospitalization ( Zilberberg et al., 2017 ). Optimizing and correctly choosing initial therapy remains a crucial step in reducing mortality and preventing the further spread of resistant strains and their mutation rates. Machine learning and artificial intelligence have emerged as promising methods for predicting patient outcomes using large, multivariable clinical datasets such as the MIMIC-III database ( Li et al., 2025 ). Unlike traditional statistical models, machine learning algorithms such as XGBoost can detect nonlinear relationships, variable interactions, and non-documented patterns that may be difficult for health professionals to correlate and interpret ( Enguehard et al., 2022 ). Prior research has demonstrated that these types of models can improve the prediction of sepsis, hospital mortality, and adverse drug reactions, but their application to antimicrobial resistance prediction remains relatively underexplored ( Rosnati et al., 2019 ). The MIMIC-III database offers a comprehensive source of anonymized clinical data, including laboratory results, vital signs, demographics, ICD diagnoses, medication administration records, and microbiology reports (Kim & J., 2024). This dataset supports the development of predictive models based on real-world clinical data. In this study, the dataset was used to construct a machine learning model capable of predicting carbapenem resistance at the point of clinical suspicion, before culture and susceptibility results are available. The objective is to assist clinicians in selecting more precise empiric antibiotic therapy, thereby reducing unnecessary carbapenem use and improving patient outcomes. This manuscript details the methodology, development, validation, and clinical relevance of an artificial intelligence model designed to predict carbapenem resistance among hospitalized and ICU-admitted patients. Materials and Methods Study Design, Data Source, and Inclusion Criteria We conducted a retrospective observational study using the MIMIC-III v1.4 dataset, a comprehensive, curated database of de-identified health records from hospitalized patients, including ICU patients at the Beth Israel Deaconess Medical Centre in Boston, Massachusetts, USA, from 2001 to 2012. The study population included all adult patients with available microbiological cultures and positive carbapenem-susceptibility test results. After applying inclusion and exclusion criteria, 3,277 unique admissions were included. To narrow the target population, the criteria stipulated that patients should have available antibiotic resistance testing results showing Carbapenem-resistant Gram-negative bacteria and that they had had any fluid or blood samples collected at admission or during hospitalization. This filtering and inclusion criteria yielded a sample of 3,277 patients who tested positive for carbapenem resistance. Image 1 illustrates the study’s design and data sources, modelling effort, and the future application of the software solution. Download figure Open in new tab Image 1. Study and prototype design of the flow of information and machine learning modelling applied to a clinical setting. Download figure Open in new tab Image 2. Process of model selection. Download figure Open in new tab Image 3. AUC-ROC curve for our XGBoost model. Download figure Open in new tab Image 4. Confusion Matrix Results. Performance of the Carbapenem Resistance Predictive Model. This model achieved excellent discriminative ability. It showed high sensitivity (90.9%) and specificity (99.3%), demonstrating its clinical usefulness in anticipating carbapenem resistance. Download figure Open in new tab Image 5. Feature Importance. Feature Selection and Data Preprocessing The data extracted included: Demographics: age, sex, ethnicity Clinical factors: vital signs, ICU admission, severity of illness Comorbidities: diabetes, chronic kidney disease, malignancy, cardiovascular disease and more Antibiotic history: prior exposure, previous antibiotic administered Laboratory biomarkers: White Blood Cell count, hemoglobin, creatinine, lactate, CRP protein Microbiological-related variables: microorganism identification, culture source, susceptibility pattern Admission factors: emergency vs. elective, hospital service, length of stay Outcome Definition The primary outcome for this predictive model is the presence of carbapenem resistance. This crucial predicted variable, labelled ‘RESISTANT’ in the database, used as the prediction (y) in the computer model, was meticulously derived from the ‘MICROBIOLOGYEVENTS’ dataset. Patients were classified as ‘resistant’ if at least one microbiology event indicated a positive culture with an INTERPRETATION of ‘R’ (resistant) to any of the specified carbapenem antibiotics, mainly meropenem, imipenem, or ertapenem. This approach enabled the creation of a clear binary target variable that distinguished between patients with carbapenem resistance and those without, thereby providing the basis for the model’s classification task. Preprocessing We performed meticulous data preparation for the carbapenem resistance prediction model. The process involved several key steps: initially, diagnostics, admission date, and numerical clinical and laboratory features such as age, ICU admission status, time to ICU entry, and various blood test results (blood tests, leukocytes, hemoglobin, creatinine, glucose, and C-Reactive Protein (CRP)) were selected. Missing values meant a discarded data point in our model. Concurrently, categorical demographic and admission-related variables, including primary diagnosis, admission type, admission location, insurance, ethnicity, and marital status, were scrutinized during hyperparameter optimization of our modelling state. The ‘DIAGNOSIS’ variable’s high cardinality was addressed by extracting its initial component, then encoding all categorical features with a flag set to ‘drop_first=True’ to convert them to numerical values while avoiding multicollinearity. Furthermore, a binary flag, ‘HAD_ANTIBIOTIC’, was included from the ‘MICROBIOLOGY EVENTS’ dataset to indicate prior antibiotic exposure, recognizing its significance in resistance prediction. Finally, all processed numerical and encoded categorical features, along with the antibiotic exposure flag, were concatenated to construct the comprehensive input dataset ‘x’, with ‘RESISTANT’ (carbapenem resistance) as the binary target variable. These comprehensive preprocessing steps were essential for transforming raw, heterogeneous data into a structured and analyzable format suitable for machine learning. Careful handling of missing values, encoding of categorical variables, and engineering of relevant features such as prior antibiotic exposure optimized the dataset ‘x’ to provide the model with informative inputs. This preparation minimized noise, addressed potential biases, and ensured that the predictive model for carbapenem resistance was built on a robust foundation, thereby enhancing its ability to learn meaningful patterns and generalize effectively to unseen patient data. Modeling We evaluated three supervised learning algorithms: Decision Trees Random Forests Extreme Gradient Boosting (XGBoost) The model development phase included a rigorous comparative analysis to identify the most effective predictive algorithm for carbapenem resistance. This systematic approach, utilizing multiple supervised learning techniques, ensured that the selected model was robust and generalizable. Initially, an 80/20 train-test split created a distinct set for unbiased evaluation, preventing memorization of the training data. Hyperparameter optimization using a 5-fold cross-validation grid search was applied to all candidate models to fine-tune performance and mitigate overfitting, resulting in the selection of XGBoost for its superior predictive performance. This selection process aligns with best practices in machine learning, ensuring a reliable and high-performing solution for clinical prediction. Code Availability The complete source code and accompanying resources for this project are publicly available on GitHub. You can access the repository at: https://github.com/SDCUCS/ML-Carbapenemic-Resistance-MIMIC-III Variables Impacts Assessing the impact of individual variables on the model’s predictions is essential for clinical interpretability and for identifying key factors associated with carbapenem resistance. This section elucidates which clinical, demographic, and laboratory features most significantly influence the model’s decision-making process. Techniques such as feature importance from tree-based models (XGBoost being the best performing). This analysis pinpoints the most influential predictors, providing insights into the mechanisms of resistance and informing future clinical interventions or research. Results Model Evaluation, Evaluation metrics proposed Key performance metrics included: AUC-ROC Precision Sensitivity Specificity Confusion matrix analysis Metrics were computed on the testing dataset to prevent optimistic bias. Model Performance Among the evaluated algorithms, Extreme Gradient Boosting (XGBoost) demonstrated superior predictive performance for carbapenem resistance, achieving an AUC of 0.955. Detailed analysis revealed a precision of 0.989, sensitivity of 0.909, and specificity of 0.993. These robust metrics, particularly the high true-negative and true-positive rates observed in the confusion matrix and a minimal false-positive rate, confirm the model’s ability to accurately discriminate between resistant and non-resistant infections. These characteristics highlight their potential for clinical implementation as a reliable early detection tool. Interpretability analysis identified several critical predictors that align with established clinical mechanisms of antibiotic resistance, including prior carbapenem exposure, ICU admission at the time of culture, elevated lactate levels, abnormal creatinine levels, white blood cell count abnormalities, recent severe bacterial infection, and prior hospitalization within 90 days. These insights enhance the model’s credibility and provide valuable guidance for clinical decision-making. XGBoost demonstrated the highest predictive performance: AUC: 0.955 Precision: 0.989 Sensitivity: 0.909 Specificity: 0.993 These results indicate that the model accurately discriminates between resistant and non-resistant infections with minimal false positives. Confusion Matrix Interpretation The confusion matrix revealed: High true-negative rate High true-positive rate Low false-positive rate Incorporation of multiple clinically relevant variables These characteristics make the model a strong candidate for clinical implementation. Feature Importance Additionally, a diagnosis of recent severe bacterial infection and prior hospitalization within 90 days emerged as critical predictive factors. These findings are consistent with established biological and clinical mechanisms underlying antibiotic resistance, providing valuable insights into the multifactorial nature of this challenge and reinforcing the model’s clinical relevance. The permutation feature importance analysis of the Extreme Gradient Boosting (XGBoost) model revealed critical predictors of carbapenem resistance, albeit with nuances that diverged from initial clinical hypotheses. The most prominent features were largely dominated by highly specific diagnostic categories, such as ‘DIAGNOSIS_SHORTNESS OF BREATH’, ‘DIAGNOSIS_ASTHMA/COPD EXACERBATION’, and ‘DIAGNOSIS_HYPERGLYCEMIA’, among others. This suggests that the model leveraged granular diagnostic information as primary indicators of resistance within the dataset. Notably, among the general biochemical markers, only ‘GLUCOSE’ (glucose levels) ranked within the top 15 most important features. Conversely, several clinically anticipated predictors, including ‘previous carbapenem exposure’, ‘ICU admission at culture time’, and other key laboratory values such as lactate and creatinine, did not appear among the highest-ranking features. This discrepancy highlights the data-driven nature of the model’s insights, emphasizing the predictive power of detailed diagnostic contexts captured in the dataset, and warrants further investigation into the interplay between these diagnoses and carbapenem resistance mechanisms. Discussion This work demonstrates the viability and reliability of applying machine learning techniques to predict carbapenem resistance using routinely collected clinical data. The high discriminative performance of XGBoost indicates that machine learning models can integrate diverse predictors and identify at-risk patients earlier than standard clinical approaches. Early prediction is essential, as delays in effective therapy are strongly associated with increased mortality in patients with resistant infections. Conversely, unnecessary carbapenem exposure accelerates the spread of resistance. Therefore, accurate predictive tools may improve both individual patient outcomes and institutional antibiotic stewardship. Previous studies on antimicrobial resistance prediction have often been limited by small sample sizes, narrow clinical settings, or a lack of external validation ( Pinto de Moura et al., 2022 ). In contrast, our dataset includes a large number of patients, a diverse range of clinical variables, and robust methodological steps to minimize bias. Limitations Despite its robust performance, this study has several limitations that warrant consideration. The retrospective design, while valuable for initial exploration, introduces potential biases and dependencies on the quality of historical data. Additionally, the model may be susceptible to unmeasured confounders not captured within the available dataset, which could influence the observed associations. To approach and address these limitations and enhance the model’s generalizability and predictive accuracy, future research should prioritize multi-center external validation. Integrating advanced genetic resistance markers could also provide a more comprehensive understanding of antibiotic resistance mechanisms, further refining predictive capabilities and supporting more precise clinical interventions. Intelligence and programming in cloud-based infrastructure platforms offer a promising avenue for enhancing early detection of carbapenem resistance in hospitalized patients. By integrating multidimensional, multivariate, clinical, laboratory and microbiological data, the XGBoost model developed in this study demonstrates strong predictive accuracy and practical utility for antimicrobial stewardship programs. Real-time implementation in hospital systems may improve clinical outcomes, reduce inappropriate antibiotic use, and contribute to global efforts to combat antimicrobial resistance. Moreover, we could also update the study reported here using the newly released MIMIC-IV database. Data Availability Data Availability Statement: The data that support the findings of this study are available in the MIMIC-III Clinical Database (version 1.4), hosted on the PhysioNet repository. Access to the data is restricted and requires successful completion of the mandated human subjects research training (e.g., CITI training) and signing a Data Use Agreement. The MIMIC-III Clinical Database is available here: https://doi.org/10.13026/C2XW26 (PhysioNet). All code and derived data used for this analysis are available from the corresponding author upon reasonable request. https://doi.org/10.13026/C2XW26 References 1. Alwakeel , Y. , Yarrington , M. , Wrenn , M. E. , Fang , R. H. , Pei , E. , Chowdhury , J. , Wong , A. , & Ian , A. ( 2025 ). Predicting antibiotic resistance patterns using Sentence-BERT: A machine learning approach [Preprint] . arXiv . doi: 10.48550/arXiv.2509.14283 OpenUrl CrossRef 2. Baer , D. , Azrad , M. , Saleh , N. , & Peretz , A. ( 2021 ). Detection of carbapenem-resistant Enterobacterales in simulated blood culture in 15 minutes . Life , 11 ( 2 ), 145 . doi: 10.3390/life11020145 OpenUrl CrossRef PubMed 3. Dalmolin , T. V. , Bianchini , B. V. , Picoli , T. M. , & da Silva , J. A. ( 2017 ). Detection and analysis of different interactions between resistance mechanisms and carbapenems using in vitro checkerboard assays against clinical Gram-negative bacteria . Brazilian Journal of Microbiology , 48 ( 4 ), 751 – 758 . doi: 10.1016/j.bjm.2017.03.007 OpenUrl CrossRef 4. ↵ Enguehard , J. , Keriven , N. , & Birol , I. ( 2022 ). Continuous-time probabilistic models for longitudinal electronic health records [Preprint] . arXiv . doi: 10.48550/arXiv.2201.03675 OpenUrl CrossRef 5. Guh , A. Y. , Limbago , B. M. , Kallen , A. J. , Wendt , J. M. , Gluck , L. P. , Gentry , T. , Taffner , S. L. , Harrison , L. H. , & Farley , M. M. ( 2015 ). Epidemiology of carbapenem-resistant Enterobacteriaceae in 7 US communities, 2012–2013 . JAMA Internal Medicine , 175 ( 8 ), 1338 – 1347 . doi: 10.1001/jamainternmed.2015.2630 OpenUrl CrossRef 6. Gupta , R. , Ghafari , M. , Yang , S. , & Briese , T. ( 2021 ). Deep learning for prediction of antimicrobial resistance . Nature Machine Intelligence , 3 , 991 – 1002 . doi: 10.1038/s42256-021-00417-6 OpenUrl CrossRef 7. ↵ Ham , D. C. , Walters , M. S. , Kallen , A. , & Guh , A. ( 2021 ). Understanding the impact of health care exposure on carbapenem-resistant Enterobacteriaceae transmission . JAMA Network Open , 4 ( 10 ), e2130311 . doi: 10.1001/jamanetworkopen.2021.30311 OpenUrl CrossRef 8. Huse , H. ( 2017 ). Laboratory detection of carbapenem resistance in Gram-negative bacteria [Pearl of Laboratory Medicine] . Association for Diagnostics & Laboratory Medicine . https://www.myadlm.org/science-and-research/clinical-chemistry/clinical-chemistry-trainee-council/pearls-of-laboratory-medicine-in-english/2017/laboratory-detection-of-carbapenem-resistance-in-gram-negative-bacteria 9. ↵ Johnson , A. E. W. , Pollard , T. J. , & Mark , R. G. ( 2016 ). MIMIC-III Clinical Database (Version 1.4) [Data set] . PhysioNet . doi: 10.13026/C2XW26 OpenUrl CrossRef 10. Kim , J. ( 2024 ). Development and validation of a clinical alert prediction model using MIMIC-IV database . Journal of Medical Internet Research , 26 ( 1 ), e62890 . doi: 10.2196/62890 OpenUrl CrossRef PubMed 11. ↵ Li , C. , Chen , T. , Fan , S. , Pishgar , J. , Alaei , E. , Placencia , K. , Pishgar , G. , & Maryam. ( 2025 ). Predicting postoperative stroke in elderly SICU patients: An interpretable machine learning model using MIMIC data [Preprint] . arXiv . doi: 10.48550/arXiv.2506.03209 OpenUrl CrossRef 12. ↵ Li , X. , Wang , X. , Wang , H. , Wang , Y. , & Zhang , H. ( 2024 ). Development and validation of machine learning models to predict MDRO colonization or infection on ICU admission by using electronic health record data . Antimicrobial Resistance & Infection Control , 13 , 74 . doi: 10.1186/s13756-024-01428-y OpenUrl CrossRef PubMed 13. Liang , Q. , Zhao , Q. , Xu , X. , Zhou , Y. , & Huang , M. ( 2022 ). Early prediction of carbapenem-resistant Gram-negative bacterial carriage in intensive care units using machine learning . Journal of Global Antimicrobial Resistance , 29 , 225 – 231 . doi: 10.1016/j.jgar.2022.03.019 OpenUrl CrossRef PubMed 14. Liu , R. , Li , X. , Yang , J. , Peng , Y. , Liu , X. , & Tian , C. ( 2025 ). Risk factors and prediction model for carbapenem-resistant organism infection in sepsis patients . European Journal of Medical Research , 30 , 201 . doi: 10.1186/s40001-025-02448-z OpenUrl CrossRef PubMed 15. Liu , X. , DuMontier , C. , Hu , P. , Mao , Z. , Kuo , P. C. , Li , P. , … & Mark , R. G. ( 2023 ). Clinically interpretable machine learning models for early prediction of mortality in older patients with Multiple Organ Dysfunction Syndrome: An international multicenter study . The Journals of Gerontology: Series A , 78 ( 4 ), 718 – 726 . doi: 10.1093/gerona/glac222 OpenUrl CrossRef 16. McCann , E. , Srinivasan , A. , DeRyke , C. A. , Ye , G. , DePestel , D. D. , Murray , J. , & Gupta , V. ( 2018 ). Carbapenem-nonsusceptible Gram-negative pathogens in ICU and non-ICU settings in US hospitals in 2017: A multicenter study . Open Forum Infectious Diseases , 5 ( 10 ), ofy241 . doi: 10.1093/ofid/ofy241 OpenUrl CrossRef 17. ↵ McGuire , R. J. , Yu , S. C. , Payne , P. R. O. , Lai , A. M. , Vazquez-Guillamet , M. C. , Kollef , M. H. , & Michelson , A. P. ( 2021 ). A pragmatic machine learning model to predict carbapenem resistance . Antimicrobial Agents and Chemotherapy , 65 ( 8 ), e00305 – 21 . doi: 10.1128/AAC.00305-21 OpenUrl CrossRef 18. ↵ Pinto de Moura , F.A. , de Santana , D. M. , Siqueira , A. S. , Godoy , F. V. L. , de Sá-Carvalho , L. R. , & Siqueira , A. D. ( 2022 ). Methodological quality of machine learning-based clinical prediction models in oncology: A systematic review . BMC Medical Research Methodology , 22 ( 1 ), 1577 . doi: 10.1186/s12874-022-01577-x OpenUrl CrossRef 19. ↵ Raman , G. , Avendano , E. E. , Berger , S. , & Menon , V. ( 2018 ). A systematic review of the association between delayed appropriate therapy and mortality among patients hospitalized with infections due to Klebsiella pneumoniae or Escherichia coli: How long is too long? BMC Infectious Diseases , 18 ( 1 ), 3524 . doi: 10.1186/s12879-018-3524-8 OpenUrl CrossRef 20. Rhee , C. , Dantes , R. , Kallen , A. , See , I. , Dantes , R. , & Epstein , L. ( 2021 ). Incidence of carbapenem-resistant Enterobacteriaceae and carbapenemase-producing Enterobacteriaceae in 4 US hospitals . Infection Control & Hospital Epidemiology , 42 ( 1 ), 29 – 35 . doi: 10.1017/ice.2020.354 OpenUrl CrossRef 21. ↵ Rosnati , M. , Fortuin , V. , & Briese , T. ( 2019 ). MGP-AttTCN: An interpretable machine learning model for the prediction of sepsis [Preprint] . arXiv . doi: 10.48550/arXiv.1909.12637 OpenUrl CrossRef 22. Sakagianni , A. , Koufopoulou , C. , Feretzakis , G. , Kalles , D. , Verykios , V. S. , Myrianthefs , P. , & Fildisis , G. ( 2023 ). Using machine learning to predict antimicrobial resistance—A literature review . Antibiotics , 12 ( 3 ), 452 . doi: 10.3390/antibiotics12030452 OpenUrl CrossRef 23. ↵ Salomão , M. C. , Freire , M. P. , Boszczowski , I. , Raymundo , S. F. , Grio , D. D. S. , & Levin , A. S. ( 2020 ). Increased risk for carbapenem-resistant Enterobacteriaceae colonization in intensive care units after hospitalization in emergency department . Emerging Infectious Diseases , 26 ( 6 ), 1195 – 1202 . doi: 10.3201/eid2606.190965 OpenUrl CrossRef 24. Shortliffe , E. H. ( 2018 ). Artificial intelligence in medicine: Opportunities and challenges . Journal of Clinical and Translational Science , 2 ( 3 ), 138 – 140 . doi: 10.1017/cts.2018.31 OpenUrl CrossRef 25. Sorbello , M. , Gevaert , O. , Giraud , B. , & Giraud , N. ( 2024 ). Large language models in healthcare: A comprehensive review . Journal of Medical Internet Research . 26. Stobbe , M. ( 2025 , September 23). ‘Nightmare bacteria’ cases driven by NDM gene are increasing, CDC says . AP News . https://apnews.com/article/95c40aae486e82a54efb16b965ee88b3 27. Tang , R. , Luo , R. , Tang , S. , Song , H. , & Chen , X. ( 2022 ). Machine learning in predicting antimicrobial resistance: A systematic review and meta-analysis . International Journal of Antimicrobial Agents , 60 ( 5–6 ), 106684 . doi: 10.1016/j.ijantimicag.2022.106684 OpenUrl CrossRef PubMed 28. Van Dongen , L. , van der Heijden , P. , van de Sande-Bruins , L. F. , & Neijens , N. B. ( 2021 ). Prediction of carbapenem resistance in Enterobacteriaceae using machine learning . Clinical Infectious Diseases , 73 ( 11 ), e4045 – e4052 . doi: 10.1093/cid/ciab468 OpenUrl CrossRef 29. Wang , Z. , Li , Y. , Chen , W. , & Zhang , Y. ( 2023 ). A machine learning approach for predicting antibiotic resistance in Klebsiella pneumoniae . Frontiers in Microbiology , 14 , 1162468 . doi: 10.3389/fmicb.2023.1162468 OpenUrl CrossRef 30. World Health Organization . ( 2024 , June 20). Antimicrobial resistance . https://www.who.int/europe/news-room/fact-sheets/item/antimicrobial-resistance 31. ↵ Zilberberg , M. D. , Shorr , A. F. , Micek , S. T. , & Kollef , M. H. ( 2017 ). Carbapenem resistance, inappropriate empiric treatment and outcomes among patients hospitalized with Enterobacteriaceae urinary tract infection, pneumonia and sepsis . BMC Infectious Diseases , 17 ( 1 ), 279 . doi: 10.1186/s12879-017-2383-z OpenUrl CrossRef PubMed View the discussion thread. Back to top Previous Next Posted November 27, 2025. Download PDF Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Predicting Carbapenem Resistance in Hospitalized Patients Using Machine Learning: A Retrospective Analysis of the MIMIC-III Database Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Predicting Carbapenem Resistance in Hospitalized Patients Using Machine Learning: A Retrospective Analysis of the MIMIC-III Database Addiel Ulises de Alba Solis , Ivette Sarahi Ocampo Morales , Eduardo Gómez Sánchez , Hugo Enrique Chávez Chávez medRxiv 2025.11.24.25340702; doi: https://doi.org/10.1101/2025.11.24.25340702 Share This Article: Copy Citation Tools Predicting Carbapenem Resistance in Hospitalized Patients Using Machine Learning: A Retrospective Analysis of the MIMIC-III Database Addiel Ulises de Alba Solis , Ivette Sarahi Ocampo Morales , Eduardo Gómez Sánchez , Hugo Enrique Chávez Chávez medRxiv 2025.11.24.25340702; doi: https://doi.org/10.1101/2025.11.24.25340702 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Pathology Subject Areas All Articles Addiction Medicine (568) Allergy and Immunology (863) Anesthesia (300) Cardiovascular Medicine (4435) Dentistry and Oral Medicine (444) Dermatology (382) Emergency Medicine (608) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1509) Epidemiology (15229) Forensic Medicine (30) Gastroenterology (1124) Genetic and Genomic Medicine (6600) Geriatric Medicine (668) Health Economics (997) Health Informatics (4538) Health Policy (1368) Health Systems and Quality Improvement (1613) Hematology (541) HIV/AIDS (1264) Infectious Diseases (except HIV/AIDS) (15916) Intensive Care and Critical Care Medicine (1103) Medical Education (623) Medical Ethics (146) Nephrology (667) Neurology (6599) Nursing (346) Nutrition (998) Obstetrics and Gynecology (1144) Occupational and Environmental Health (957) Oncology (3333) Ophthalmology (974) Orthopedics (369) Otolaryngology (420) Pain Medicine (436) Palliative Medicine (130) Pathology (663) Pediatrics (1693) Pharmacology and Therapeutics (691) Primary Care Research (711) Psychiatry and Clinical Psychology (5447) Public and Global Health (9232) Radiology and Imaging (2198) Rehabilitation Medicine and Physical Therapy (1370) Respiratory Medicine (1196) Rheumatology (593) Sexual and Reproductive Health (712) Sports Medicine (530) Surgery (712) Toxicology (99) Transplantation (289) Urology (265) (function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a00cd8583c2f06db',t:'MTc3OTYzMTQyMA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00