Hostname: page-component-7b7567c8c-kwt9d Total loading time: 0 Render date: 2026-11-14T18:38:25.284Z Has data issue: false hasContentIssue false

Evaluation of large language models for antimicrobial classification: implications for antimicrobial stewardship programs

Published online by Cambridge University Press:  01 December 2025

Tan Vo
Affiliation:
College of Pharmacy, Ferris State University, 220 Ferris Dr., Big Rapids, MI, 49307, USACollaborative to Advance Pharmacy Enterprises (CAPE), Grand Rapids, MI, USA
Kushal Dahal
Affiliation:
College of Pharmacy, Ferris State University, 220 Ferris Dr., Big Rapids, MI, 49307, USACollaborative to Advance Pharmacy Enterprises (CAPE), Grand Rapids, MI, USA
Michael Klepser
Affiliation:
College of Pharmacy, Ferris State University, 220 Ferris Dr., Big Rapids, MI, 49307, USACollaborative to Advance Pharmacy Enterprises (CAPE), Grand Rapids, MI, USA
Benjamin Pontefract
Affiliation:
College of Pharmacy, Ferris State University, 220 Ferris Dr., Big Rapids, MI, 49307, USACollaborative to Advance Pharmacy Enterprises (CAPE), Grand Rapids, MI, USA
Kaylee E. Caniff
Affiliation:
College of Pharmacy, Ferris State University, 220 Ferris Dr., Big Rapids, MI, 49307, USACollaborative to Advance Pharmacy Enterprises (CAPE), Grand Rapids, MI, USA
Minji Sohn*
Affiliation:
College of Pharmacy, Ferris State University, 220 Ferris Dr., Big Rapids, MI, 49307, USACollaborative to Advance Pharmacy Enterprises (CAPE), Grand Rapids, MI, USA
*
Corresponding author: Minji Sohn; Email: MinjiSohn@ferris.edu

Abstract

Objective:

To evaluate the ability of large language models (LLMs) with targeted feedback to classify medications as antimicrobial or non-antimicrobial and their implication in antimicrobial stewardship.

Design:

Cross-sectional evaluation using a two-phase process: initial unguided classification and feedback-informed reclassification.

Setting:

Medication-level analysis of health system prescribing data.

Participants:

A data set of 7,239 unique medication entries from health systems in the Collaboration to Harmonize Antimicrobial Registry Measures (CHARM) project.

Methods:

Four LLMs, including ChatGPT-3.5, Copilot GPT-4o, Claude Sonnet 4, and Gemini 2.5 Flash, classified all entries against a manual reference standard. Models then received feedback on 20% of misclassified cases for reclassification. Metrics included accuracy, macro F1-score (95% confidence intervals via bootstrap resampling), positive predictive value, negative predictive value, processing time, and error reduction rates (ERRs). McNemar’s test assessed accuracy between phases and model differences.

Results:

Baseline accuracy varied among LLMs. Postfeedback, all accuracies improved significantly (P < .001) to Gemini (99.6%), Claude Sonnet 4 (99.4%), ChatGPT-3.5 (81.0%), and Copilot (79.7%). Gemini achieved the highest macro-F1 (98.9%, 95% CI: 98.4–99.3) and ERR (69.2%). Processing time were fastest for Copilot (42 s), followed by ChatGPT-3.5 (47 s), Gemini (1,080 s), and Claude (3,475 s). Manual classification of this task is estimated to take 18 hours without LLM. Misclassification was most common among antiseptics, antiparasitics, and drugs with antimicrobial components for non-infectious uses (eg, sulfasalazine).

Conclusions:

Top-performing LLMs achieved accuracy levels suitable for automating initial antimicrobial classification in stewardship workflows. Performance variability underscores the need for careful selection and continued human oversight in clinical applications.

Summary:

Four LLMs were evaluated for antimicrobial classification using 7,239 medications. Claude Sonnet 4 and Gemini achieved>99% accuracy, while ChatGPT-3.5 and Copilot showed substantial limitations. Top performers could automate stewardship workflows with appropriate oversight.

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.Summary of LLMs evaluated in this study

Figure 1

Table 2.Performance comparison of LLMs in antimicrobial classification: phase 1 (Unguided) vs phase 2 (Feedback-informed)

Figure 2

Figure 1.Performance comparison of LLMs in antimicrobial classification: phase 1 (Unguided). Bar charts showing difference in performance metrics among 4 LLMs (ChatGPT-3.5, Claude Sonnet 4, Copilot, and Gemini) in phase 1. Left chart shows accuracy (as percentage and error bar), middle chart shows macro-F1 (as percentage and error bar), and right chart shows processing time (in seconds).

Figure 3

Figure 2.Performance comparison of LLMs in antimicrobial classification: phase 2 (Feedback-informed). Bar charts showing difference in performance metrics among 4 LLMs (ChatGPT-3.5, Claude Sonnet 4, Copilot, and Gemini) in phase 2. Left chart shows accuracy (as percentage and error bar), middle chart shows macro-F1 (as percentage and error bar), and right chart shows error reduction rate (as percentage).

Figure 4

Table 3.Pairwise comparison of LLMs in antimicrobial classification accuracy: phase 2 (Feedback-informed)

Figure 5

Table 4.Confusion matrix for best-performing LLM (Gemini) in antimicrobial classification: phase 2 (Feedback-informed)

Supplementary material: File

Vo et al. supplementary material 1

Vo et al. supplementary material
Download Vo et al. supplementary material 1(File)
File 20.9 KB
Supplementary material: File

Vo et al. supplementary material 2

Vo et al. supplementary material
Download Vo et al. supplementary material 2(File)
File 52 KB