Hostname: page-component-7b7567c8c-fvjsw Total loading time: 0 Render date: 2026-11-14T22:08:43.168Z Has data issue: false hasContentIssue false

A machine learning model to predict optimal antibiotic use in hospital medicine patients

Published online by Cambridge University Press:  29 September 2025

Nathan Radakovich
Affiliation:
Department of Medicine, University of California, San Francisco, CA, USADivision of Infectious Diseases, Department of Medicine, University of California, San Francisco, CA, USA
Priya Prasad
Affiliation:
Department of Medicine, University of California, San Francisco, CA, USA
Daniel Escobar
Affiliation:
Division of Infectious Diseases, Department of Medicine, University of California, San Francisco, CA, USA
Ripal Jariwala
Affiliation:
Division of Infectious Diseases, Department of Medicine, University of California, San Francisco, CA, USA
Allison Bond
Affiliation:
Department of Medicine, University of California, San Francisco, CA, USADivision of Infectious Diseases, Department of Medicine, University of California, San Francisco, CA, USA
Sandra Oreper
Affiliation:
Department of Medicine, University of California, San Francisco, CA, USA
Junghwan Lee
Affiliation:
Georgia Institute of Technology, Atlanta, GA, USA
Xiao Hu
Affiliation:
Emory University, Center for Data Science, Atlanta, GA, USA
Sarah Doernberg*
Affiliation:
Division of Infectious Diseases, Department of Medicine, University of California, San Francisco, CA, USA
*
Corresponding author: Sarah Doernberg; Email: sarah.doernberg@ucsf.edu

Abstract

Objective:

Unnecessary and suboptimal antibiotic use causes adverse outcomes at both the level of individuals and health systems. Prospective audit and feedback, a core aspect of antibiotic stewardship program (ASP) efforts, reduces such use, but is inefficient in the absence of a pre-screening process. To address this, we used a machine learning approach to stratify antibiotic orders based on the likelihood of benefiting from ASP review, and to identify the factors most influential in the model’s predictions.

Design:

Machine learning model developed using expert-labeled point-prevalence data.

Setting:

Single-center adult academic hospital.

Participants:

Hospitalized patients 18 years or older on internal medicine services between May 2021 and August 2022.

Methods:

Infectious disease experts assessed antibiotic orders for necessity and optimal use to create labels which were used as ground truth to train a machine learning model that uses automatically queried data from the electronic health record including vital signs, laboratory values, microbiological data, and medication administration records.

Results:

Our model achieved an area under the receiver operating characteristic curve of 0.89 for antibiotic necessity and 0.80 for optimal use. Model predictions were driven largely by markers of clinical instability, inflammation, and infection. Simpler clinical indices of infection had no predictive ability.

Conclusions:

We describe a model that predicts antibiotic necessity and optimal use using routinely available data that can be automatically aggregated from medical records. This makes it a promising option for early identification and intervention on orders most likely to benefit from ASP review.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of The Society for Healthcare Epidemiology of America
Figure 0

Table 1.Cohort characteristics

Figure 1

Figure 1.Feature selection and optimization. 1a and 1b show AUROC trend as non-informative features are iteratively removed; trend lines represent a rolling average of AUROC, with 95% confidence interval (CI) depicted by shading.

Figure 2

Table 2.Model performance

Figure 3

Figure 2.global feature performance. The x axis depicts the relative contribution of a feature as determined by SHAP values, normalized to a total of 100%.

Figure 4

Figure 3.illustrative feature-prediction relationships for optimal use. Each dot represents a single prediction by the model (red dots represent orders in need of review based on ASP staff review; blue dots those which do not). The y axis represents a given value’s impact on model predictions as determined by SHAP. Negative values predict suboptimal/non-indicated orders in need for review, and vice versa.

Supplementary material: File

Radakovich et al. supplementary material

Radakovich et al. supplementary material
Download Radakovich et al. supplementary material(File)
File 1.7 MB