Machine learning tool outperforms existing methods in detecting drug-resistant bacterial infections

Carbapenem-resistant Klebsiella pneumoniae causes serious infections with high mortality; improved diagnostic accuracy directly impacts patient treatment outcomes and survival.
A diagnostic miss that costs a patient's life to an antibiotic that should have worked.
The tool reduces Very Major Errors—cases where resistance is missed and wrong antibiotics are prescribed.
Mark

So this is a machine learning tool that predicts antibiotic resistance in a specific bacterium. What makes it different from what doctors are already using?

Mimi

The existing tools—ResFinder and AMRFinderPlus—miss resistance that's actually there. When that happens, a doctor prescribes an antibiotic the bacteria can defeat. PredKlebAMR catches those cases more often.

Luke

How much more often? The numbers show it made fewer errors, but I want to be clear about what "fewer" means in practice.

Mimi

In Thailand, ResFinder made 59 Very Major Errors across the test set. PredKlebAMR made seven. In Africa, ResFinder made eight; PredKlebAMR made two.

Mark

That's a significant difference. But how many samples are we talking about? Is this tested on hundreds of genomes or thousands?

Luke

The source doesn't specify the size of each regional cohort, only that they used "three-tiered datasets from NCBI." We know the training set was nearly 6,000 genomes, but the test sets aren't broken down by size.

Mimi

That's a fair point. What we do know is that the improvement in Africa reached statistical significance, which means it's unlikely to be random chance.

Mark

And the tool itself—how does a clinician actually use it?

Mimi

There's an interactive dashboard. You upload a bacterial genome, and it tells you what resistance genes are present and why the bacterium is resistant.

Luke

Is the dashboard actually being used in hospitals, or is this still a research prototype?

Mimi

The paper doesn't say. It's available online, but adoption is a separate question from whether the tool works.

Mark

So the hard part comes next—getting it into actual clinical practice.

Mimi

Exactly. The accuracy is there. Whether it changes how patients are treated is still unknown.

  • Carbapenem-resistant Klebsiella pneumoniae kills by dismantling last-resort antibiotics through multiple genetic strategies simultaneously, making it one of the most dangerous bacterial threats in modern hospitals.
  • Existing diagnostic tools like ResFinder and AMRFinderPlus miss resistance patterns at alarming rates — in one Thai cohort, ResFinder made 59 errors compared to PredKlebAMR's seven, each missed case a potential treatment failure.
  • PredKlebAMR was trained on nearly 6,000 genomes using a Random Forest approach, learning to recognize 38 genetic features that signal resistance, achieving 91.92% accuracy and 94.67% sensitivity on data it had never seen before.
  • The tool outperformed competitors across global, African, and Thai patient cohorts, with the improvement in African samples reaching statistical significance — a meaningful gain in a region where diagnostic resources are often most constrained.
  • An interactive dashboard now makes the tool publicly accessible, showing clinicians not just a prediction but the biological reasoning behind it, so that a life-or-death antibiotic decision can be made with greater confidence and clarity.

In hospitals around the world, a bacterium called carbapenem-resistant Klebsiella pneumoniae has learned to dismantle the antibiotics of last resort, leaving clinicians with narrowing options and patients with narrowing odds. A research team has answered this crisis with a machine learning model — PredKlebAMR — trained on nearly 6,000 bacterial genomes, capable of identifying resistant strains with greater accuracy than the diagnostic tools currently in clinical use. The system does not merely predict; it explains its reasoning, offering clinicians a window into the biological logic of resistance at the moment when treatment decisions carry the most weight. Whether this tool changes outcomes will depend not on its algorithms, but on whether the humans who need it choose to trust and use it.

Carbapenem-resistant Klebsiella pneumoniae has become one of the most feared pathogens in hospital medicine. The bacterium produces enzymes — KPC, NDM, and others — that break down the antibiotics reserved for infections that have resisted everything else. It also mutates the proteins in its outer membrane, blocking drugs from entering the cell, and trades genetic material with neighboring bacteria to accumulate new defenses. Against this moving target, a team of researchers has built a machine learning system designed to identify resistant strains faster and more reliably than the tools clinicians currently depend on.

The model, called PredKlebAMR, was trained on nearly 6,000 bacterial genomes drawn from public databases. Using a Random Forest algorithm — which constructs many decision trees and synthesizes their outputs — and 38 genetic features extracted by a tool called Kleborate, the system learned to recognize the genomic signatures of resistance: fluoroquinolone mutations, high-risk bacterial lineages, and the specific porin mutations that seal the cell against antibiotic entry. On genomes it had never encountered, it achieved 91.92% accuracy, 94.67% sensitivity, and 89.47% specificity.

The comparison against existing tools revealed how much the stakes matter. A "Very Major Error" — when a diagnostic tool fails to detect resistance that is actually present — can lead a clinician to prescribe an antibiotic the bacteria will simply defeat. In a Thai cohort, ResFinder made 59 such errors; PredKlebAMR made seven. In African samples, ResFinder made eight errors to PredKlebAMR's two, a difference that reached statistical significance. Across every cohort tested, the new model reduced the diagnostic failures most likely to cost patients their lives.

What distinguishes PredKlebAMR is not only its accuracy but its transparency. The interactive dashboard built around it shows clinicians which genes are present, which mutations matter, and what the full resistance profile looks like — giving the reasoning, not just the verdict. The tool is now publicly available online. The harder question is whether laboratories and hospital systems will integrate it into their workflows before the next resistant infection demands an answer.

Carbapenem-resistant Klebsiella pneumoniae has become a fixture in hospital infections worldwide, and it kills with a particular ruthlessness: the bacteria produce enzymes that break down the last-resort antibiotics doctors reach for when everything else has failed. A team of researchers has now built a machine learning system that can identify these resistant strains faster and more reliably than the diagnostic tools currently in use, potentially changing how clinicians choose treatment for patients facing these infections.

The bacterium develops resistance through several mechanisms. It manufactures carbapenemases—enzymes with names like KPC and NDM that dismantle the antibiotics meant to kill it. It also thickens its outer membrane by mutating the proteins that normally allow drugs to pass through, a change in structures called OmpK35 and OmpK36. And it shuffles its genetic material, copying genes or trading plasmids with other bacteria to accumulate new defenses. This combination of strategies has made K. pneumoniae a moving target for antibiotic therapy.

The researchers trained their model, called PredKlebAMR, on nearly 6,000 bacterial genomes pulled from public databases. They used a technique called Random Forest, which builds many decision trees and combines their predictions, and they fed it 38 genetic features extracted using a tool called Kleborate. The system learned to recognize patterns in the genome that signal resistance—fluoroquinolone mutations, high-risk bacterial lineages, and the specific porin mutations that wall off the cell. When tested on a held-out set of genomes the model had never seen, it achieved 91.92 percent accuracy, with sensitivity of 94.67 percent and specificity of 89.47 percent.

But the real test came when researchers compared PredKlebAMR to two existing diagnostic tools: ResFinder 4.1 and AMRFinderPlus 4.2.7. They used three separate cohorts—a global dataset, samples from Africa, and samples from Thailand—to see how each tool performed. The stakes here matter: a "Very Major Error" (VME) occurs when a diagnostic tool misses resistance that is actually present, leading a clinician to prescribe an antibiotic the bacteria can defeat. In the global cohort, PredKlebAMR caught resistance in 95.45 percent of cases and made only one VME, compared to two VMEs for AMRFinderPlus and three for ResFinder. In the African cohort, the advantage was starker: PredKlebAMR achieved 95.56 percent sensitivity with two VMEs, while ResFinder made eight errors. In Thailand, PredKlebAMR identified resistance in 95.62 percent of samples and made seven VMEs; ResFinder made 59. The improvement in Africa reached statistical significance.

What makes this tool different is not just its accuracy but how it communicates that accuracy to the people who need it. The researchers built an interactive dashboard that shows clinicians not just a prediction but the biological reasoning behind it—which genes are present, which mutations matter, what the resistance profile actually is. This transparency matters when a doctor is deciding whether to use a particular antibiotic or switch to something else, knowing that the choice could mean the difference between a patient recovering and a patient dying from an infection that should have been treatable.

The tool is now available online, accessible to any laboratory or hospital system that wants to use it. The real work ahead is adoption—whether clinicians will integrate it into their workflows, whether laboratories will run genomes through it before reporting results, whether the speed and accuracy it offers will actually change how patients are treated. For now, the system exists as a proof that machine learning can outperform human-designed diagnostic algorithms at a task where the cost of failure is measured in lives.

The tool will support clinicians in making life-changing decisions while managing patients with resistant infections.
— Study authors, Nature
Contact Us FAQ