Taiwan’s AI reads a test hospitals already run to warn of drug-resistant bacteria, but its skill fades within a year

National Taiwan University Hospital researchers trained deep-learning models on 89,026 routine MALDI-TOF records to name bacteria and predict antibiotic resistance. Species identification held up; resistance prediction fell to near chance on the following year’s samples.

Abstract illustration of a spiky mass spectrum line over a petri dish, with a fading arrow showing a model losing accuracy over time
Illustration: Crazyhombres. A conceptual image of a mass spectrum fingerprint of bacteria with an accuracy curve fading over time. Drawn in code; not a photograph and not a figure from the study.

Between 2017 and 2023, the microbiology laboratory at National Taiwan University Hospital’s Yunlin branch did what clinical laboratories everywhere do every day. It took bacteria grown from patients’ samples, fired a laser at them in a MALDI-TOF mass spectrometer, and used the resulting pattern of protein signals to name the species within minutes. It kept the raw files: 89,026 of them.

A team led by Chien-Chang Lee, a professor of emergency medicine at National Taiwan University Hospital, with emergency physician Chih-Hung Wang as first author, has used that archive to ask whether the same routine test could also warn doctors which antibiotics are likely to fail. Their answer, published in npj Digital Medicine and publicised this week, is a qualified yes, together with an unusually candid warning about how fast such AI goes stale.

Why it matters

When a patient arrives with a serious infection, the laboratory report showing which antibiotics still work usually takes one to three days. Until it arrives, doctors prescribe broad-spectrum drugs and educated guesses, which can mean the wrong treatment and more pressure towards resistance. MALDI-TOF instruments are already installed in many hospital laboratories, so extracting a resistance estimate from data they already produce would cost little extra.

Earlier work, including the Swiss study that produced the public DRIAMS dataset used here, has shown that MALDI-TOF spectra carry resistance signals. The Taiwanese study is notable for testing what happens over time.

How it works

The team combined its hospital dataset with DRIAMS, a public Swiss dataset from 2015 to 2018. It built 26 machine-learning models to identify the most common disease-causing bacteria and 248 models, one for each bacterium and antibiotic combination, to predict resistance. These were linked to a chatbot built on a large language model that reads current treatment guidelines. 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.

What the numbers show

Species identification worked very well: a median area under the curve (AUC), a standard accuracy measure where 0.5 is a coin toss and 1.0 is perfect, of 0.99 internally and 0.96 on samples from the following year. Resistance prediction was a different story. Median AUC was 0.94 on samples from the training period but fell to 0.55 on the following year’s samples. Retraining with eight months of newer data lifted it only to 0.61, with wide variation between bacteria and drugs. A test on data from a Spanish hospital showed the models did not transfer without local retraining.

Bacteria evolve, hospital antibiotic use changes and instruments drift, the authors note. Their conclusion is that resistance models need scheduled updates tailored to each bacterium and antibiotic pair, “like a vaccine or an antivirus program” in the words of the university’s release. “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,” Lee says.

Who could gain, and who could lose

Hospital laboratories and makers of MALDI-TOF systems and microbiology software stand to gain if resistance prediction can be added to existing instruments, and the team has released its de-identified data, code and trained models openly. Developers of rapid phenotypic susceptibility tests, which measure bacterial growth directly in hours, can point to this study as evidence that spectrum-only AI is not yet a substitute. Regulators, who often approve AI medical software as a fixed product, face a harder question: how to oversee a model that must be retrained every few months to stay useful.

Caveats

This is a retrospective study at one main hospital; the authors say a prospective trial and multi-hospital data sharing are the next steps. The system is designed to support, not replace, the laboratory’s susceptibility report. The paper appeared online on 8 June 2026; the news is the university’s English release this week. We read the open-access paper’s abstract and the release.

Listing check

No listed company is a party to this work. National Taiwan University and its hospital are public institutions, so no Trading 212 check applies.

Sign up to our newsletter

Scroll to Top