ResearchWestern Journal of Emergency Medicine · Apr 8, 2026

XGBoost (eXtreme Gradient Boosting) Can Predict Organisms Growing in Urine Culture from the Emergency Department

Sheele JM, Campbell RL, Jones DD
Emergency MedicineAdult
Read the full paper free at PubMed Central ↗

Abstract

Introduction Urinary tract infections are common in the emergency department (ED) but are frequently misdiagnosed and mismanaged. We sought to determine whether eXtreme Gradient Boosting (XGBoost), an open-source machine-learning library, could predict the organisms growing in urine cultures ordered from the ED. Methods We developed XGBoost algorithms to retrospectively examine 62,963 Mayo Clinic ED encounters between January 1, 2017-December 31, 2021, during which a urinalysis and urine culture were performed. The model used 1,303 patient variables. All patient ages were included. Data were from the electronic health record and available to the clinician during the patient encounter. Results For the most common bacteria growing in urine culture, XGBoost was able to predict the presence of a member of the Enterobacteriaceae family with an area under the receiver operating curve (AUC) of 0.90 and an accuracy of 0.79. The model predicted the presence of 10 different bacterial genera with an AUC of 0.70-0.88 and an accuracy of 0.87-0.99. Furthermore, XGBoost was able to predict whether the urine culture would report Gram-positive or Gram-negative bacteria with an AUC of 0.81 and 0.90, respectively, and an accuracy of 0.85 and 0.86, respectively. The model predicted whether yeast would be reported with an AUC of 0.84 and an accuracy of 1.00. Discussion XGBoost can predict the bacterial genus and Gram-staining results of the bacteria growing in urine cultures.

More on this topic

AI in medicine

Subject terms

Humans; Boosting Machine Learning Algorithms; Emergency Service, Hospital; Urinary Tract Infections; Retrospective Studies; Urinalysis

DOI: 10.5811/westjem.48715 · PubMed: 42258867

Cite this article

Sheele JM, Campbell RL, Jones DD. XGBoost (eXtreme Gradient Boosting) Can Predict Organisms Growing in Urine Culture from the Emergency Department. West J Emerg Med. 2026;27(3):759-765. doi:10.5811/westjem.48715

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

Top Emergency Medicine studies every Monday

The week’s key trials and guidelines, free to read, in one short email. No account; unsubscribe in one click.

Choose specialties and topics

Similar articles

Research · West J Emerg Med · Apr 2, 2026 · Emergency Medicine, Infectious Disease

Assessment of Inter-rater Variability in the Diagnosis of Urinary Tract Infections in the Emergency Department

Research · West J Emerg Med · Jul 16, 2026 · Emergency Medicine

The Impact of Urinalysis Turnaround Times on Patient Disposition in the Emergency Department

Research · BMC Emerg Med · Apr 24, 2026 · Emergency Medicine, Digital Health & AI

Comparative performance of manual triage systems and ML models in predicting clinical outcomes among patients transported to the emergency department by emergency medical services

Research · BMC Emerg Med · Jan 5, 2026 · Emergency Medicine, Digital Health & AI

Early prediction of in-hospital deterioration after emergency department admission using machine learning models

Research · BMC Emerg Med · Mar 10, 2026 · Pediatric · Emergency Medicine, Digital Health & AI

AI-powered surveillance of bronchiolitis in the Nirsevimab era: comparative performance of machine learning, deep learning, and large language models on free-text ED records