Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
Multicenter Study
. 2021 Mar 1;4(3):e213460.
doi: 10.1001/jamanetworkopen.2021.3460.

Development of a Machine Learning Model Using Electronic Health Record Data to Identify Antibiotic Use Among Hospitalized Patients

Affiliations
Multicenter Study

Development of a Machine Learning Model Using Electronic Health Record Data to Identify Antibiotic Use Among Hospitalized Patients

Rebekah W Moehring et al. JAMA Netw Open. .

Abstract

Importance: Comparisons of antimicrobial use among hospitals are difficult to interpret owing to variations in patient case mix. Risk-adjustment strategies incorporating larger numbers of variables haves been proposed as a method to improve comparisons for antimicrobial stewardship assessments.

Objective: To evaluate whether variables of varying complexity and feasibility of measurement, derived retrospectively from the electronic health records, accurately identify inpatient antimicrobial use.

Design, setting, and participants: Retrospective cohort study, using a 2-stage random forests machine learning modeling analysis of electronic health record data. Data were split into training and testing sets to measure model performance using area under the curve and absolute error. All adult and pediatric inpatient encounters from October 1, 2015, to September 30, 2017, at 2 community hospitals and 1 academic medical center in the Duke University Health System were analyzed. A total of 204 candidate variables were categorized into 4 tiers based on feasibility of measurement from the electronic health records.

Main outcomes and measures: Antimicrobial exposure was measured at the encounter level in 2 ways: binary (ever or never) and number of days of therapy. Analyses were stratified by age (pediatric or adult), unit type, and antibiotic group.

Results: The data set included 170 294 encounters and 204 candidate variables from 3 hospitals during the 3-year study period. Antimicrobial exposure occurred in 80 190 encounters (47%); 64 998 (38%) received 1 to 6 days of therapy, and 15 192 (9%) received 7 or more days of therapy. Two-stage models identified antimicrobial use with high fidelity (mean area under the curve, 0.85; mean absolute error, 1.0 days of therapy). Addition of more complex variables increased accuracy, with largest improvements occurring with inclusion of diagnosis information. Accuracy varied based on location and antibiotic group. Models underestimated the number of days of therapy of encounters with long lengths of stay.

Conclusions and relevance: Models using variables derived from electronic health records identified antimicrobial exposure accurately. Future risk-adjustment strategies incorporating encounter-level information may make comparisons of antimicrobial use more meaningful for hospital antimicrobial stewardship assessments.

PubMed Disclaimer

Conflict of interest statement

Conflict of Interest Disclosures: Dr Moehring reported grants from the Centers for Disease and Prevention (CDC) during the conduct of the study, grants from the Agency for Healthcare Research and Quality (AHRQ), and royalties from UpToDate outside the submitted work. Dr Lofgren reported receiving grants from the CDC during the conduct of the study. Dr Nelson reported receiving grants from the CDC during the conduct of the study and a salary from Duke University outside the submitted work. Dr Dodds Ashley reported receiving grants from the CDC during the conduct of the study and personal fees from The Joint Commission, University of Maryland, and American College of Clinical Pharmacy outside the submitted work. Dr Anderson reported receiving grants from the AHRQ, the CDC, and the National Institutes of Health and personal fees from UpToDate outside the submitted work and is the owner of Infection Control Education for Major Sports, LLC. No other disclosures were reported.

Figures

Figure 1.
Figure 1.. Model Performance When Identifying Ever Receiving an Antimicrobial During the Encounter by Age, Location, Antimicrobial Group, and Input Variable Feasibility Tier
A, Model output for adult encounters. B, Model output for pediatric and neonatal encounters. Each data point represents a unique model built based on location, feasibility tier of variables used, antimicrobial group, and adult or pediatric populations. The closer the AUC value is to 1, the better the model was at classifying whether antimicrobials were administered. Some location strata in the analysis of pediatric encounters were too small to fit a model. In these scenarios, only estimates for the “all locations” category were reported. Antimicrobial groups and agents are listed in eTable 1 in the Supplement. AUC indicates area under the curve; BL, beta-lactam; CDI, Clostridioides difficile infection risk agents; CO, community onset; and ICU, intensive care unit.
Figure 2.
Figure 2.. Model Performance When Identifying Days of Therapy of Antimicrobials During the Encounter by Age, Location, Antimicrobial Group, and Input Variable Feasibility Tier
A, Model output for adult encounters. B, Model output for pediatric and neonatal encounters. Each data point represents a unique model built based on location, feasibility tier of variables used, antimicrobial group, and adult or pediatric populations. The closer the mean absolute error is to 0, the better the model was at estimating the number of days of antimicrobial therapy. Some location strata in the analysis of pediatric encounters were too small to fit a model. In these scenarios, only estimates for the “all locations” category were reported. Antimicrobial groups and agents are listed in eTable 1 in the Supplement. BL indicates beta-lactam; CDI, Clostridioides difficile infection risk agents; CO, community onset; and ICU, intensive care unit.

Similar articles

Cited by

References

    1. Ibrahim OM, Polk RE. Antimicrobial use metrics and benchmarking to improve stewardship outcomes: methodology, opportunities, and challenges. Infect Dis Clin North Am. 2014;28(2):195-214. doi:10.1016/j.idc.2014.01.006 - DOI - PubMed
    1. Fridkin SK, Srinivasan A. Implementing a strategy for monitoring inpatient antimicrobial use among hospitals in the United States. Clin Infect Dis. 2014;58(3):401-406. doi:10.1093/cid/cit710 - DOI - PMC - PubMed
    1. Fridkin SK. Advancing metrics for benchmarking in stewardship research: is perfection our enemy? Paper presented at: SHEA Antimicrobial Stewardship Research Workshop; November 2016; San Diego, CA.
    1. van Santen KL, Edwards JR, Webb AK, et al. . The Standardized Antimicrobial Administration Ratio: a new metric for measuring and comparing antibiotic use. Clin Infect Dis. 2018;67(2):179-185. doi:10.1093/cid/ciy075 - DOI - PubMed
    1. van Santen KL. National Healthcare Safety Network (NHSN) Antimicrobial Use and Resistance (AUR) Options. Centers for Disease Control and Prevention. Accessed June 15, 2019. https://www.cdc.gov/nhsn/acute-care-hospital/aur/index.html

Publication types

Substances