# Machine Learning Model for Predicting Multidrug Resistance in Clinical Klebsiella pneumoniae Isolates

**Authors:** Yuksel Akkaya, Irfan Aydin, Handan Tanyildizi-Kokkulunk, Ayse Erturk, Ibrahim Halil Kilic

PMC · DOI: 10.3390/diagnostics16040555 · Diagnostics · 2026-02-13

## TL;DR

This paper introduces a machine learning model that can quickly predict antibiotic resistance in Klebsiella pneumoniae, helping doctors choose effective treatments faster.

## Contribution

The study introduces a novel application of random forest machine learning for rapid multidrug resistance prediction in Klebsiella pneumoniae.

## Key findings

- The random forest model achieved an average AUC of 0.96 in predicting resistance to 22 antibiotics.
- High accuracy was observed for critical antibiotics like Ertapenem (100%), Imipenem (93%), and Meropenem (95%).
- Machine learning models outperformed conventional methods in speed and accuracy of resistance prediction.

## Abstract

Background/Objectives: Klebsiella pneumoniae is an opportunistic pathogen increasingly resistant to carbapenems and broad-spectrum antibiotics, complicating timely infection management. In critical cases like septic shock, where initiating effective antibiotics within 3 h improves survival, culture-based resistance testing is often too slow. This study evaluates machine learning (ML) algorithms for faster antimicrobial resistance prediction than conventional methods. Methods: In this retrospective study, antibiogram results of 607 Klebsiella pneumoniae isolates collected between 2017 and 2024 were combined with demographic and clinical information of the patients from whom the isolates were obtained. Four different ML algorithms, namely Decision Tree (DT), Support Vector Classifier (SVC), K-Nearest Neighbors (KNN) and Random Forest (RF), were applied to classify the resistance status for 22 antibiotics. Model performances were evaluated using accuracy, precision, recall, F-score, AUC and feature importance metrics. Results: The RF model showed the highest overall performance in accurately predicting resistance to 22 antibiotics, achieving an average AUC value of 0.96. In particular, it predicted resistance to treatment-critical antibiotics such as Ertapenem (100%), Imipenem (93%) and Meropenem (95%) with high accuracy. Conclusions: ML models, especially RF, offer a powerful tool for rapid antibiotic resistance prediction, supporting accurate empirical treatment decisions and antimicrobial stewardship.

## Linked entities

- **Chemicals:** Ertapenem (PubChem CID 150610), Imipenem (PubChem CID 104838), Meropenem (PubChem CID 441130)
- **Species:** Klebsiella pneumoniae (taxon 573)

## Full-text entities

- **Genes:** SLC17A5 (solute carrier family 17 member 5) [NCBI Gene 26503] {aka AST, ISSD, NSD, SD, SIALIN, SIASD}
- **Diseases:** ML (MESH:D007859), antibiotic (MESH:D004761), respiratory and urinary tract infections (MESH:D012141), Disease (MESH:D004194), injury to (MESH:D014947), meningitis (MESH:D008580), AMR (MESH:D060467), Klebsiella pneumoniae (MESH:D007710), infectious diseases (MESH:D003141), BSIs (MESH:D018805), septic (MESH:D001170), septic shock (MESH:D012772), death (MESH:D003643), urinary tract infections (MESH:D014552), joint and gastrointestinal infections (MESH:D005767), infection (MESH:D007239)
- **Chemicals:** Meropenem (MESH:D000077731), Cefepime (MESH:D000077723), Carbapenem (MESH:D015780), Ertapenem (MESH:D000077727), Gentamicin (MESH:D005839), Tazobactam (MESH:D000078142), Piperacillin (MESH:D010878), aminoglycosides (MESH:D000617), Cefoxitin (MESH:D002440), Tigecycline (MESH:D000078304), Ciprofloxacin (MESH:D002939), Trimethoprim/Sulfamethoxazole (MESH:D015662), Cefazolin (MESH:D002437), Cefixime (MESH:D020682), Ampicillin (MESH:D000667), nitrofurans (MESH:D009581), Imipenem (MESH:D015378), beta-lactams (MESH:D047090), nitrofurantoin (MESH:D009582), Fosfomycin (MESH:D005578), Cefuroxime (MESH:D002444), ceftazidime-avibactam (MESH:C000595613), Sulfamethoxazole (MESH:D013420), lactamase (-), Amikacin (MESH:D000583), Ceftriaxone (MESH:D002443), cephalosporin (MESH:D002511), Trimethoprim (MESH:D014295)
- **Species:** Streptococcus pneumoniae (species) [taxon 1313], Escherichia coli (E. coli, species) [taxon 562], Klebsiella pneumoniae (species) [taxon 573], Pseudomonas aeruginosa (species) [taxon 287], Acinetobacter baumannii (species) [taxon 470], Enterobacteriaceae (enterobacteria, family) [taxon 543], Homo sapiens (human, species) [taxon 9606], Staphylococcus aureus (species) [taxon 1280]

## Full text

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

## Figures

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

## References

42 references — full list in the complete paper: https://tomesphere.com/paper/PMC12939074/full.md

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