Johnathan M Sheele, Ronna L Campbell, Derick D Jones
{"title":"Machine learning to predict urine culture antibiotic sensitivities in the emergency department.","authors":"Johnathan M Sheele, Ronna L Campbell, Derick D Jones","doi":"10.1016/j.heliyon.2025.e42737","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Urinary tract infections (UTIs) are among the most common bacterial infections diagnosed in the emergency department. Treatment of UTIs is largely empiric because urine culture results are not rapidly available.</p><p><strong>Objectives: </strong>We examined whether machine learning could predict antibiotic sensitivities of the urine cultures by using only data available during the clinical encounter.</p><p><strong>Methods: </strong>We used extreme gradient boosting (XGBoost) to examine 62,963 emergency department patient encounters from January 1, 2017, through December 31, 2021. All encounters included a urinalysis and urine culture. We included 1303 variables in the full model and examined 21 antibiotics. An antibiotic was characterized as <i>sensitive</i> only if all bacteria in the culture were susceptible; if ≥ 1 bacteria was not susceptible, then it was characterized as <i>intermediate or resistant</i>.</p><p><strong>Results: </strong>We predicted urine cultures to be sensitive vs intermediate or resistant with area under the receiver operating curve (AUROC) values ranging from 70 % (for amikacin) to 90 % (for linezolid) (median, 82 %) when negative urine cultures were characterized as antibiotic susceptible. AUROCs were as follows: nitrofurantoin (84 %); trimethoprim + sulfamethoxazole (80 %); ciprofloxacin (85 %); levofloxacin (85 %); first-generation cephalosporins (84 %); and third-generation cephalosporins (80 %). When models excluded urine cultures with no bacterial growth, AUROCs ranged from 66 % (for ampicillin) to 87 % (for amikacin) (median, 74 %). When models included only patients diagnosed with a UTI plus bacteriuria (≥10,000 colony-forming units per mL in urine culture), AUROCs ranged from 63 % (for ampicillin) to 85 % (for tetracycline) (median, 74 %).</p><p><strong>Conclusion: </strong>XGBoost can predict bacteriuria antibiotic sensitivities.</p>","PeriodicalId":12894,"journal":{"name":"Heliyon","volume":"11 4","pages":"e42737"},"PeriodicalIF":3.4000,"publicationDate":"2025-02-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11894297/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Heliyon","FirstCategoryId":"103","ListUrlMain":"https://doi.org/10.1016/j.heliyon.2025.e42737","RegionNum":3,"RegionCategory":"综合性期刊","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/2/28 0:00:00","PubModel":"eCollection","JCR":"Q1","JCRName":"MULTIDISCIPLINARY SCIENCES","Score":null,"Total":0}
引用次数: 0
Abstract
Background: Urinary tract infections (UTIs) are among the most common bacterial infections diagnosed in the emergency department. Treatment of UTIs is largely empiric because urine culture results are not rapidly available.
Objectives: We examined whether machine learning could predict antibiotic sensitivities of the urine cultures by using only data available during the clinical encounter.
Methods: We used extreme gradient boosting (XGBoost) to examine 62,963 emergency department patient encounters from January 1, 2017, through December 31, 2021. All encounters included a urinalysis and urine culture. We included 1303 variables in the full model and examined 21 antibiotics. An antibiotic was characterized as sensitive only if all bacteria in the culture were susceptible; if ≥ 1 bacteria was not susceptible, then it was characterized as intermediate or resistant.
Results: We predicted urine cultures to be sensitive vs intermediate or resistant with area under the receiver operating curve (AUROC) values ranging from 70 % (for amikacin) to 90 % (for linezolid) (median, 82 %) when negative urine cultures were characterized as antibiotic susceptible. AUROCs were as follows: nitrofurantoin (84 %); trimethoprim + sulfamethoxazole (80 %); ciprofloxacin (85 %); levofloxacin (85 %); first-generation cephalosporins (84 %); and third-generation cephalosporins (80 %). When models excluded urine cultures with no bacterial growth, AUROCs ranged from 66 % (for ampicillin) to 87 % (for amikacin) (median, 74 %). When models included only patients diagnosed with a UTI plus bacteriuria (≥10,000 colony-forming units per mL in urine culture), AUROCs ranged from 63 % (for ampicillin) to 85 % (for tetracycline) (median, 74 %).
Conclusion: XGBoost can predict bacteriuria antibiotic sensitivities.
期刊介绍:
Heliyon is an all-science, open access journal that is part of the Cell Press family. Any paper reporting scientifically accurate and valuable research, which adheres to accepted ethical and scientific publishing standards, will be considered for publication. Our growing team of dedicated section editors, along with our in-house team, handle your paper and manage the publication process end-to-end, giving your research the editorial support it deserves.