Skip to content
Open access

Machine Learning-Based Prediction of Antimicrobial Resistance in Escherichia coli from MALDI-TOF Mass Spectrometry Data

Jul 2026 · Diagnostics · Vol 16, pp. 2103 · 0 citations · 37 references
Medicine

TL;DR

Machine learning analysis of MALDI-TOF spectra enables reproducible AMR prediction for selected antibiotics in E. coli, with ciprofloxacin and ceftazidime showing the strongest signal.

Abstract

Objectives: To assess the feasibility and reproducibility of predicting antimicrobial resistance (AMR) in Escherichia coli from MALDI-TOF mass spectrometry data using a standardized, open-source machine learning (ML) workflow, we systematically compared four ML algorithms, evaluated the impact of culture conditions, extract storage, and spectral preprocessing on model performance, and validated results through nested cross-validation with statistical significance testing. Methods: A total of 282 clinical E. coli isolates were analyzed. Two MALDI-TOF MS datasets were generated from freshly cultured extracts (T1) and recultured isolates one year later (T3), yielding 4468 spectra. A third dataset from the T1 extracts stored at −20 °C for one year (T2) was evaluated for spectral stability but excluded from primary modeling likely due to storage-induced degradation. Protein spectra (m/z 2000–15,000) were preprocessed using an in-house developed MALDI-TOF preprocessing pipeline (MTPP) comprising variance stabilization, Savitzky–Golay smoothing, SNIP baseline correction, TIC normalization, LOWESS alignment, and MAD-based peak detection (SNR ≥ 3), yielding 121 m/z features. Four classifiers—Random Forest (RF), Logistic Regression, Support Vector Machine, and Gradient Boosting—were trained to predict resistance to 11 antibiotics using nested cross-validation: outer GroupShuffleSplit (5-fold, isolate-level) for evaluation and inner GroupKFold for recursive feature elimination (RFECV) and hyperparameter tuning (RandomizedSearchCV). Classification thresholds were optimized via the precision–recall curve. Model performance was assessed using AUROC, AUPRC, F1-score, Matthews Correlation Coefficient (MCC), and bootstrap 95% confidence intervals (1000 replicates). Pairwise model comparisons were tested with McNemar’s chi-squared test. Results: Among the 12 antibiotics included in the analysis (meropenem excluded for absence of resistance), resistance prevalence ranged from 1.1% (colistin) to 59.9% (amoxicillin). Colistin was subsequently also excluded from ML modeling due to insufficient resistant isolates (n = 3), leaving 11 antibiotics for prediction. The best predictive performance was observed for ciprofloxacin (AUROC 0.76 [95% CI 0.74–0.77]; F1 0.54; MCC 0.38) and ceftazidime (AUROC 0.68 [0.65–0.71]; F1 0.36; MCC 0.29), using 13 and 37 RFECV-selected features, respectively. Amoxicillin achieved the highest F1-score (0.76), driven by high recall (0.98) but modest AUROC (0.58). No meaningful predictive signal was detected for amikacin, cefepime, or tigecycline (AUROC ≤ 0.57, F1 ≤ 0.17), attributable to extreme class imbalance, and no robust multi-peak resistance signature was detected in this dataset. McNemar’s test confirmed that RF significantly outperformed Logistic Regression for all antibiotics (p < 0.01), while Gradient Boosting performed comparably to RF for ciprofloxacin (p = 0.17) and ceftazidime (p = 0.28). Frozen extracts (T2) produced lower spectral similarity and were excluded from model training; the aligned T1+3 dataset yielded the most stable performance across metrics. Conclusions: Machine learning analysis of MALDI-TOF spectra enables reproducible AMR prediction for selected antibiotics in E. coli, with ciprofloxacin and ceftazidime showing the strongest signal. Nested isolate-level cross-validation, multi-model comparison with statistical testing, and open-source code provide a transparent, reproducible foundation for integrating ML-assisted MALDI-TOF analysis into diagnostic AMR surveillance. Extract storage at −20 °C degrades spectral quality and should be avoided in ML training workflows.

Read PDF

Similar papers

Open access Jul 2026

Machine learning-guided discovery of a conserved plasmid proteomic signature enables MALDI-TOF MS detection of pOXA-48-carrying Enterobacterales

OXA-48 carbapenemases are among the most widespread and important resistance mechanisms in Enterobacterales. Yet detecting carbapenemases by conventional workflows necessitates additional testing, thus delaying optimization of therapy and implementation of infection control measures. Here, we present a machine learning approach that identifies the conserved pOXA-48 plasmid directly from routine MALDI-TOF spectra acquired for species identification. The model detects pOXA-48 carriers with an AUROC of 0.96–0.98 across two independent hospital cohorts and instrument platforms, indicating near-perfect discrimination. Using bottom-up proteomics, plasmid conjugation, and plasmid curing, we link the discriminative MALDI-TOF spectral features to proteins encoded on pOXA-48, with DUF1496 domain-containing protein producing the most discriminative spectral feature. Our approach reframes the resistance prediction task from inferring a resistance phenotype to detecting a conserved plasmid through its expressed proteomic signature and has the potential to enable rapid MALDI-TOF MS-based diagnostics for a wide range of plasmid-based resistance determinants.

Janko Sattler, J. Mueller-Reif, Dexiong Chen et al. · 0 citations
Open access Aug 2026

Evaluation of an adapted relative growth method by MALDI-TOF MS for rapid determination of the susceptibility of Escherichia coli to levofloxacin

ABSTRACT Antimicrobial resistance (AMR) poses a critical global health threat. Conventional antimicrobial susceptibility testing (AST) requires 12–24 h, delaying targeted treatment. Although rapid AST approaches exist, their reliance on static measurements and single-colony analysis limits diagnostic accuracy by overlooking intrasample heterogeneity, which can produce misleading results when resistant subpopulations are present. Here, we present a novel analytical framework that integrates dynamic MALDI-TOF MS spectral analysis, the robust dynamic relative growth (RBD-RG) algorithm, and machine learning. This framework decodes the mass spectral evolution of Escherichia coli exposed to levofloxacin, enabling the rapid determination of levofloxacin susceptibility. AI MedLab MS was developed and validated using 60 clinical E. coli isolates, achieving robust classification performance across resistance phenotypes. Prospective validation with 50 independent isolates confirmed clinical utility: AI MedLab MS delivered AST results within 2 h, with an overall accuracy of 84.0% and a precision of 95.8% for resistant isolates. By shifting the analytical paradigm from single-timepoint detection to dynamic trajectory modeling, this study demonstrates a precise and interpretable methodology for rapid AST. The platform addresses key limitations of conventional methods by analyzing the overall bacterial population rather than individual colonies, thereby improving classification accuracy for complex resistance phenotypes, and has the potential to provide actionable clinical decision-making within a 2-h window. IMPORTANCE Rapid determination of antimicrobial susceptibility is critical for the management of severe bacterial infections, yet conventional culture-based assays require up to 24 h. While emerging rapid diagnostic tools offer shorter turnaround times, their accuracy is frequently limited by a reliance on static phenotypic endpoint measurements. Here, we report AI MedLab MS, a machine-learning-enabled diagnostic platform that captures the real-time, dynamic response profiles of Escherichia coli exposed to levofloxacin. By longitudinally tracking these continuous phenotypic transitions, our method differentiates drug-resistant strains within 2 h. This rapid profiling capability may provide actionable diagnostic insights to guide targeted therapy, with the potential to optimize clinical decision-making and support antimicrobial stewardship. Rapid determination of antimicrobial susceptibility is critical for the management of severe bacterial infections, yet conventional culture-based assays require up to 24 h. While emerging rapid diagnostic tools offer shorter turnaround times, their accuracy is frequently limited by a reliance on static phenotypic endpoint measurements. Here, we report AI MedLab MS, a machine-learning-enabled diagnostic platform that captures the real-time, dynamic response profiles of Escherichia coli exposed to levofloxacin. By longitudinally tracking these continuous phenotypic transitions, our method differentiates drug-resistant strains within 2 h. This rapid profiling capability may provide actionable diagnostic insights to guide targeted therapy, with the potential to optimize clinical decision-making and support antimicrobial stewardship.

Yulong Liu, Niqi Xie, Weiwei Hu et al. · 0 citations
#protein folding Open access Aug 2026

Enhanced classification and identification of bacterial and viral microorganisms by integration of MALDI-TOF mass spectrometry with artificial intelligence

The Extra Trees Classifier consistently achieved the highest average accuracy and F1-score in both Gram type classification and species-level identification, demonstrating superior generalization across datasets.

Georgios Dolias, O. Bragina, Andres Udal et al. · 0 citations
Open access Aug 2026

Machine Learning Prediction and Experimental Validation of Antimicrobial Peptide Activity Differences against Gram-Positive and Gram-Negative Bacteria

Antimicrobial peptides (AMPs) are primary candidates for addressing bacterial resistance. Although their target spectrum specificity varies significantly between Gram-positive and Gram-negative bacteria, current predictive models generally lack experimental validation. In this study, we constructed various machine learning models based on known sequences to systematically evaluate the performance of k-mer frequencies, physicochemical properties, and hybrid features in distinguishing the AMP target specificity. Results indicated that the random forest model based on eight key physicochemical properties performed best, achieving a test set accuracy of 82.09% with balanced classification and robust generalization. Feature importance analysis revealed that hydrophilicity and isoelectric point (pI) are the core physicochemical factors determining the target spectrum differences. The model was rigorously validated through a dual-track approach: first, via the synthesis and in vitro testing of 18 novel protozoan-derived AMPs (overall accuracy 66.67%) and, second, through a blind test on 55 independent external sequences, achieving a robust accuracy of 81.82%. Furthermore, the framework successfully identified candidates with potent activity against multidrug-resistant pathogens including Pseudomonas aeruginosa and Klebsiella pneumoniae. This experimentally validated predictive framework provides a reliable computational tool for the high-throughput screening and rational design of targeted antimicrobial peptides.

Peicheng Lu, Wenhao Li, Muhammad Zubair et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.