# Supervised Machine Learning to Identify Hospital Inpatients Needing a Change of Antibiotic Therapy in Real Time: Preclinical Diagnostic Evaluation and Feasibility Study

**Authors:** P F Dutey-Magni, M Brown, S Harris, C Curtis, R Dobson, H Chowdhury, A Cawthorn, S De, N Stone, J Cooper, L Shallcross

PMC · DOI: 10.1093/ofid/ofaf721 · Open Forum Infectious Diseases · 2025-11-25

## TL;DR

This study shows that machine learning can help prioritize patients needing antibiotic changes, improving hospital antibiotic management.

## Contribution

A supervised machine learning approach for real-time prioritization of antibiotic therapy reviews in hospitals.

## Key findings

- The random forest classifier achieved an AUC of 0.70 in prospective validation.
- Targeted review of top 30% of patients identified 68 needed changes, compared to 43 with random selection.
- The method is feasible and moderately accurate in real-world hospital settings.

## Abstract

Postprescription review (PPR) by clinical microbiology/infectious diseases specialists is a proven intervention for optimizing antibiotic management in hospitals. However, hospitals lack sufficient staff to conduct PPR at scale. This study investigated the feasibility and diagnostic performance of supervised machine learning to monitor electronic medical records and prioritize PPR in real time.

Over 2 years, infection specialists categorized PPR recommendations as recommendations to “stop,” “change,” or “continue” therapy at an acute hospital in London, United Kingdom. These labels (n = 2625) were linked to features generated from electronic patient records. Random forest, XGBoost, and C5 classifiers were trained before undergoing prospective evaluation in an unseen representative validation dataset (446 PPR decisions). The prespecified minimum predictive performance target was an area under the curve (AUC) of 0.75, with statistical power to detect an AUC <0.68 or >0.82. We then aggregated the validation dataset at the patient level (n = 358) and compared the clinical utility of targeted PPR using the classifier against unprioritized (random) PPR.

In the prospective validation set, 145 of 358 patients (41%) were recommended to change or stop treatment. The best-fitting classifier (random forest, cross-validation AUC, 0.74) achieved an AUC of 0.70 (95% confidence interval, .65–.75). If just the top 30% of patients receiving antibiotics could be reviewed, the classifier would help stop or change treatment in 68 of 145 patients requiring a change, compared with 43 of 145 if patients were selected at random.

The prospective clinical evaluation demonstrated that the approach is feasible and achieves moderate predictive performance in real-world conditions.

This study evaluated the diagnostic performance of a supervised machine learning classifier prioritizing hospital inpatients for antibiotic therapy review. It found moderate predictive accuracy and clinical utility to enhance antimicrobial stewardship in hospitals equipped with electronic health records.

## Full-text entities

- **Diseases:** infection (MESH:D007239), infectious diseases (MESH:D003141)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12817996/full.md

## Figures

2 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12817996/full.md

## References

52 references — full list in the complete paper: https://tomesphere.com/paper/PMC12817996/full.md

---
Source: https://tomesphere.com/paper/PMC12817996