Abstract
Early administration of effective antimicrobial treatments is critical for the outcome of infections. Antimicrobial resistance testing enables the selection of optimal antibiotic treatments, but current culture-based techniques take up to 72 hours. We have developed a novel machine learning approach to predict antimicrobial resistance directly from MALDI-TOF mass spectra profiles of clinical samples. We trained calibrated classifiers on a newly-created publicly available database of mass spectra profiles from clinically most relevant isolates with linked antimicrobial susceptibility phenotypes. The dataset combines more than 300,000 mass spectra with more than 750,000 antimicrobial resistance phenotypes from four medical institutions. Validation against a panel of clinically important pathogens, including Staphylococcus aureus, Escherichia coli, and Klebsiella pneumoniae, resulting in AUROC values of 0.8, 0.74, and 0.74 respectively, demonstrated the potential of using machine learning to substantially accelerate antimicrobial resistance determination and change of clinical management. Furthermore, a retrospective clinical case study found that implementation of this approach would have resulted in a beneficial change in the clinical treatment in 88% (8/9) of cases. MALDI-TOF mass spectra based machine learning may thus be an important new tool for antibiotic stewardship.
Introduction
In the treatment of severe infections, every hour counts. Currently, clinicians can identify bacterial species within minutes using Matrix-Assisted Laser Desorption/Ionization Time-of-Flight Mass Spectrometry (MALDI-TOF MS). However, determining the antimicrobial resistance (AMR) profile—essential for selecting the correct antibiotic—requires phenotypic testing, which involves culturing bacteria in the presence of drugs. This process typically takes 24 to 72 hours. During this window, patients are often treated with broad-spectrum antibiotics, which can lead to adverse effects and contribute to the global rise of "superbugs."
This research presents a machine learning framework designed to predict AMR directly from the initial MALDI-TOF protein "fingerprint." By bypassing the lengthy culture phase, this approach could reduce the time to targeted therapy to under 24 hours, significantly improving patient outcomes and antibiotic stewardship.
Methods and Data
The core of this approach treats the MALDI-TOF mass spectrum as a high-dimensional feature vector. The pipeline involves three primary stages: data collection and filtering, spectra processing, and AMR prediction.
Data Processing Pipeline
- Preprocessing: Raw mass spectra (2,000 to 20,000 Daltons) undergo variance stabilization, smoothing, baseline removal, intensity calibration, and trimming.
- Binning: The processed spectra are binned into 6,000 fixed-size bins (3 Da each) to create a consistent feature vector for modeling.
- Modeling: Three architectures were evaluated: Logistic Regression (LR) as a baseline, LightGBM (gradient-boosted decision trees), and Multi-layer Perceptron (MLP) neural networks.
- Interpretation: SHAP (Shapley Additive exPlanations) values were employed to identify the specific protein peaks driving resistance predictions, providing transparency into the model's decision-making.
The DRIAMS Dataset
The study introduced the DRIAMS (Database of ResIstance against Antimicrobials with MALDI-TOF Mass Spectrometry) dataset. This massive, publicly available resource contains over 300,000 mass spectra linked to 750,000 AMR phenotypes. Collected between 2016 and 2018 from four Swiss medical institutions (DRIAMS-A through -D), it covers 803 bacterial and fungal species and 71 antimicrobial drugs.
Key Results and Insights
The models demonstrated robust predictive performance across high-priority pathogens. As shown in the results table and performance curves, LightGBM and MLP generally outperformed standard Logistic Regression.
Predictive Performance
- Staphylococcus aureus: Achieved an AUROC of 0.80 for predicting oxacillin resistance (MRSA).
- Escherichia coli: Achieved an AUROC of 0.74 for ceftriaxone resistance.
- Klebsiella pneumoniae: Achieved an AUROC of 0.74 for ceftriaxone resistance.
Clinical Impact and Biological Insights
A retrospective study of 63 invasive infection cases indicated that the algorithm would have recommended a treatment change for 9 patients. In 88% (8/9) of these instances, the change would have been clinically beneficial, primarily by enabling earlier de-escalation to narrower-spectrum antibiotics.
Several key insights emerged from the analysis:
- Species Specificity: Models trained on single species outperformed general ensemble models, suggesting that resistance signatures are highly specific to individual biological machineries.
- Temporal and Site Effects: Performance slightly declined when using older data or data from different hospitals ("batch effects"), indicating that models must be "living systems" that are regularly retrained on local, contemporary data.
- Systemic Proteomic Changes: Rather than relying on a single "magic" protein peak, the models utilize the entire spectrum, capturing broad proteomic shifts associated with resistance.
Discussion and Future Directions
While the results are promising, several challenges remain. The DRIAMS dataset is currently focused on Switzerland, a region with relatively low resistance rates; validation in high-resistance regions is essential. Furthermore, technical variability between different MALDI-TOF instruments necessitates strategies to mitigate batch effects for universal deployment.
Future work will focus on prospective clinical trials to confirm real-world efficacy and exploring semi-supervised learning to leverage the vast amounts of unlabeled MALDI-TOF data generated daily in clinical labs. Ultimately, this machine learning framework represents a significant step toward rapid, data-driven antibiotic selection.
Summary updated