Rapid detection of carbapenem-resistant Escherichia coli and carbapenem-resistant Klebsiella pneumoniae in positive blood cultures via MALDI-TOF MS and tree-based machine learning models
- PMID: 39856543
- PMCID: PMC11760114
- DOI: 10.1186/s12866-025-03755-5
Rapid detection of carbapenem-resistant Escherichia coli and carbapenem-resistant Klebsiella pneumoniae in positive blood cultures via MALDI-TOF MS and tree-based machine learning models
Abstract
Background: Bloodstream infection (BSI) is a systemic infection that predisposes individuals to sepsis and multiple organ dysfunction syndrome. Early identification of infectious agents and determination of drug-resistant phenotypes can help patients with BSI receive timely, effective, and targeted treatment and improve their survival. This study was based on matrix-assisted laser desorption/ionization time-of-flight mass spectrometry (MALDI-TOF MS), Decision Tree (DT), Random Forest (RF), Gradient Boosting Machine (GBM), eXtreme Gradient Boosting (XGBoost), and Extremely Randomized Trees (ERT) models were constructed to classify carbapenem-resistant Escherichia coli (CREC) and carbapenem-resistant Klebsiella pneumoniae (CRKP). Bacterial species were identified by MALDI-TOF MS in positive blood cultures isolated via the serum isolation gel method, and E. coli and K. pneumoniae in positive blood cultures were collected and placed into machine learning models to predict susceptibility to carbapenems. The aim of this study was to provide rapid detection of CREC and CRKP in blood cultures, to shorten the turnaround time for laboratory reporting, and to provide a basis for early clinical intervention and rational use of antibiotics.
Results: The collected MALDI-TOF MS data of 640 E. coli and 444 K. pneumoniae were analysed by machine learning algorithms. The area under the receiver operating characteristic curve (AUROC) for the diagnosis of E. coli susceptibility to carbapenems by the DT, RF, GBM, XGBoost, and ERT models were 0.95, 1.00, 0.99, 0.99, and 1.00, respectively, and the accuracy in predicting 149 E. coli-positive blood cultures were 0.89, 0.92, 0.90, 0.92, and 0.86, respectively. The AUROC for the diagnosis of K. pneumoniae susceptibility to carbapenems by the DT, RF, GBM, XGBoost, and ERT models were 0.78, 0.95, 0.93, 0.90, and 0.95, respectively, and the accuracy in predicting 127 K. pneumoniae-positive blood cultures were 0.76, 0.86, 0.81, 0.80, and 0.76, respectively.
Conclusions: Machine learning models constructed by MALDI-TOF MS were able to directly predict the susceptibility of E. coli and K. pneumoniae in positive blood cultures to carbapenems. This rapid identification of CREC and CRKP reduces detection time and contributes to early warning and response to potential antibiotic resistance problems in the clinic.
Clinical trial number: Not applicable.
Keywords: Escherichia coli; Klebsiella pneumoniae; Blood cultures; MALDI-TOF MS; Machine learning.
© 2025. The Author(s).
Conflict of interest statement
Declarations. Ethical approval: Not applicable. Consent for publication: Not applicable. Competing interests: The authors declare no competing interests.
Figures




References
-
- Goto M, Al-Hasan MN. Overall burden of bloodstream infection and nosocomial bloodstream infection in North America and Europe[J]. Clin Microbiol Infect. 2013;19(6):501–9. 10.1111/1469-0691.12195. - PubMed
-
- Kern WV, Rieg S. Burden of bacterial bloodstream infection-a brief update on epidemiology and significance of multidrug-resistant pathogens[J]. Clin Microbiol Infect. 2020;26(2):151–7. 10.1016/j.cmi.2019.10.031. - PubMed
-
- Lawandi A. Bloodstream infections in Sepsis: better the Devil you Know[J]. Crit Care Med. 2023;51(9):1261–3. 10.1097/CCM.0000000000005918. - PubMed
MeSH terms
Substances
LinkOut - more resources
Full Text Sources
Medical