arXiv:2609.05970cs.LGSep 2026

Manuscript Offprint

arXiv:2609.05970

Machine Learning for Pre-Culture ESBL Risk Stratification to Guide Empiric Antibiotic Selection: A 12-Hospital Study of Enterobacteriaceae Cultures

Aravind V. Kuruvikkattil, Lalitha Pranathi Pulavarthy, Rashmita Kudamala, Saptarshi Purkayastha

Abstract

Empiric antibiotic therapy for suspected ESBL-producing Enterobacteriaceae must be selected 48-72 hours before culture results, forcing clinicians to choose between undertreating resistant infections and overusing carbapenems that drive further resistance. We developed a cost-sensitive XGBoost model predicting an ESBL phenotype (resistance to ceftriaxone, cefazidime, cefepime or piperacillin-tazobactam) at culture ordering using 45 pre-culture EHR features across 132,955 cultures from 72,217 patients at 12 hospitals (14.41% with the ESBL phenotype). Cultures were partitioned at the patient level. At 90% sensitivity, the model achieved 95.8% NPV, reducing post-test ESBL probability to 4.2%, a threshold that may support safe carbapenem-sparing in non-ICU settings, while sparing 307 of every 1,000 cultures an unnecessary broad-spectrum course at the cost of 14 missed ESBL cases per 1,000. SHAP analysis identified prior ESBL colonization as the dominant predictor, ahead of prior organism burden and neighborhood deprivation; removing deprivation features caused minimal performance loss (Δ\DeltaAUROC = -0.020), enabling equitable bedside deployment. Discrimination was unchanged under a strict IDSA ESBL-E definition (AUROC 0.766), with specimen type added as a predictor (0.764) and without any class-imbalance correction (0.762), and ranged from 0.71 to 0.78 across organism strata.

Introduction

Extended-spectrum beta-lactamase (ESBL)-producing Enterobacterales are among the fastest-growing antimicrobial resistance threats: in the United States, hospital-associated infections rose by about 50% between 2013 and 2017 to an estimated 197,400 cases annually.¹ These infections usually require carbapenems, and delayed or inadequate escalation increases 30-day mortality, length of stay, and cost.²,³

The fundamental clinical challenge is temporal: empiric antibiotic therapy must be prescribed immediately upon culture collection, while susceptibility results are unavailable for 48-72 hours. During this window, clinicians must balance two competing risks: prescribing narrow-spectrum agents that may fail against ESBL-producing organisms, or prescribing carbapenems unnecessarily and contributing to the selection pressure driving carbapenem-resistant Enterobacterales (CRE), which carry mortality rates exceeding 40-50%.⁴ Because carbapenems remain the recommended therapy for serious ESBL infections, and piperacillin-tazobactam proved inferior for ESBL bacteraemia in the MERINO trial,⁵,⁶ the stewardship opportunity lies in confidently identifying the majority of patients whose isolates are unlikely to be ESBL-producing and who can safely receive narrower empiric therapy.

Machine learning models predicting antibiotic resistance at the time of culture ordering have emerged as a promising decision-support strategy.⁷,⁸,⁹,¹⁰ Structured EHR features predict extended-spectrum cephalosporin resistance or ESBL production with moderate discrimination: gradient boosting reached AUROC 0.74 for ceftriaxone resistance in Enterobacterales bacteraemia,¹¹ 0.80 in an emergency-department ESBL model,¹² and 0.78–0.81 for extended-spectrum cephalosporin resistance in a multitask model across the Veterans Health Administration.¹⁰ Across these studies, personal culture history is consistently the strongest predictor.⁸,¹³ Separately, ecological and cohort studies link neighborhood deprivation to higher resistance prevalence and worse outcomes in Enterobacterales infections,¹⁴,¹⁵ and socioeconomic deprivation to elevated community antibiotic prescribing and AMR burden,¹⁶,¹⁷,¹⁸,¹⁹ but the Area Deprivation Index (ADI)²⁰ has rarely been tested as a patient-level predictor alongside clinical history.

However, gaps remain. Most ESBL models come from single health systems and target bloodstream infections exclusively;²¹,²²,²³,¹¹ the relative weight of neighborhood deprivation against clinical history has not been quantified within one model; and few studies report whether validation partitions were constructed at the patient level, even though repeat cultures make record-wise splits optimistic. 24,25^{24,25}

We address these gaps using the ARMD-MGB dataset, a de-identified, multi-hospital EHR-linked microbiology repository containing 225,000+ patients across 12 Mass General Brigham hospitals. 26^{26} We developed and validated an XG-Boost model predicting an ESBL phenotype at the moment of culture ordering across 132,955 Enterobacteriaceae cultures spanning all culture types and care settings. This study had three objectives: (1) develop a clinically actionable prediction model whose negative predictive value is sufficient to support safe empiric carbapenem-sparing; (2) quantify, via SHAP attribution, the relative contribution of prior colonization history and neighborhood deprivation against other clinical risk factors; and (3) demonstrate leakage-free performance under patient-level partitioning, organism-stratified stability, and clinical utility through decision curve analysis.

References (40)