Image 1. The ANTIBIOTIC system in four steps. Bacteria grown from a patient’s sample are run through the laboratory’s routine MALDI-TOF mass spectrometer, which records the microbe’s protein “fingerprint” within minutes. Deep-learning models read that fingerprint to name the species and estimate which antibiotics are likely to fail, and an AI assistant turns the result into a treatment suggestion. The estimate arrives long before conventional susceptibility testing, which takes one to three days.
When a patient arrives at the emergency department with a serious infection, doctors must choose an antibiotic right away. But the laboratory report that says which antibiotics can still kill the bacteria usually takes one to three days. Until then, physicians rely on broad-spectrum drugs and educated guesswork, which can mean the wrong drug for the patient and more pressure driving antibiotic resistance.
A team led by Prof. Chien-Chang Lee at National Taiwan University (NTU) and National Taiwan University Hospital (NTUH), with emergency physician Dr. Chih-Hung Wang as first author, has shown that part of this waiting time can be bridged using a test that hospital laboratories already run every day. The test, called MALDI-TOF mass spectrometry, fires a laser at a bacterial sample and records a pattern of protein signals, a kind of molecular fingerprint, that the laboratory uses to name the species within minutes. The fingerprint, however, contains far more information than current software uses.
The study is published in npj Digital Medicine.
Drawing on 89,026 fingerprint records collected at NTUH Yunlin Branch between 2017 and 2023, together with a public dataset from Switzerland, the researchers trained 26 deep-learning models to name the most common disease-causing bacteria and 248 models to predict whether a given bacterium would resist a given antibiotic.
They then linked these models to a chatbot built on a large language model that reads current treatment guidelines, so that uploading a raw instrument file returns the likely species, its predicted resistance pattern, suggested antibiotics, advice on stepping treatment up or down, and dose adjustments for patients with reduced kidney function. The team calls the system ANTIBIOTIC.
Naming the bacteria worked remarkably well: the models scored a median accuracy (AUC) of 0.99 on samples from the training period and 0.96 on samples collected the following year. Predicting resistance was a different story. The models were highly accurate on samples from the same period (AUC 0.94) but fell to 0.55, close to a coin toss, when tested on the following year’s samples. Bacteria evolve, hospital antibiotic use shifts, and the instruments themselves drift over time.
Image 2. Median accuracy of the models (area under the curve, AUC; 0.5 = coin toss, 1.0 = perfect). Naming bacterial species stayed near-perfect even on the following year’s samples. Predicting antibiotic resistance was highly accurate on samples from the training period but fell close to chance on the following year’s samples, recovering only partly after the models were updated with eight months of new data (112 and 118 of the 248 resistance models had enough 2023 samples for these two comparisons).
Giving the models a “refresher” with eight months of new data lifted their accuracy to 0.61, with the gain varying widely between bacteria and drugs. A separate test on data from a Spanish hospital confirmed that the models do not transfer to another site without local retraining.
The researchers argue that this is the real lesson of the study. AI tools for antibiotic resistance cannot be built once and left alone; like a vaccine or an antivirus program, they need scheduled updates, and the schedule has to be tailored to each bacterium–antibiotic pair.
They also stress that the system is designed to support, not replace, the laboratory report, serving as a “personalized antibiogram” during the critical first days of treatment. To help other hospitals adapt the approach to their own patients, the team has released the de-identified data, code and trained models openly.
“Hospitals everywhere already own the instrument that generates this data. Our goal was to show that, with deep learning, the same test can give physicians an early warning about resistance, and to be honest about how quickly such models go stale. The next step is to validate the system prospectively and to build the multi-hospital data sharing that keeps it current,” says corresponding author Chien-Chang Lee, professor in the Department of Emergency Medicine at National Taiwan University Hospital.
Prof. Chien-Chang Lee’s email address: [email protected]
Reference
Wang, C.-H., Tsao, S.-Y., Hsieh, Y.-C., Liao, P.-C., Pan, Y.-C., Ma, M. H.-M., Sheng, W.-H., Chen, L.-Y. & Lee, C.-C. A deep learning system for bacterial identification and resistance prediction from MALDI-TOF data. npj Digital Medicine 9, 708 (2026). https://doi.org/10.1038/s41746-026-02879-w
Advertisement



