A systematic analysis of machine learning pipelines for robust antimicrobial resistance prediction
Alex Aselstyne, Enamundram Naga KarthikiD, Meriem El Azami, Romain Pogorelcnik, Quentin FournieriD, Sarath ChandariD
Abstract
MotivationAntimicrobial resistance (AMR) has been identified as a top global public health threat. Accurate AMR phenotype prediction from whole-genome sequencing data is an essential tool for accelerating clinical decision-making and mitigating resistance spread. Although many previous works have explored the use of tree-based machine learning (ML) models to predict resistance, the field lacks a systematic evaluation of the training pipeline across a variety of pathogenic species and antibiotics. ResultsUsing nine clinically relevant species-antibiotic combinations from the NCBI antimicrobial susceptibility testing database, we present a detailed analysis of the ML pipeline and identify key factors affecting model performance and evaluation. We begin by relabelling all isolates using current CLSI minimum inhibitory concentration breakpoints to resolve inconsistencies and increase available data, resulting in up to a 19% label swap and 56% data enlargement per species- antibiotic combination. We identify several key training parameters including k-mer length, which can increase classification F1 scores by over 20 points compared to commonly used k-values, feature matrix truncation, which can induce polynomial time reductions with limited performance reduction, and ML model class. By comparing 5-fold cross-validation with evaluation on an unseen clinical dataset, we show that random cross-validation splits--often criticized as overly optimistic--can act as a strong proxy for downstream clinical performance, yielding closer F1 scores than phylogeny-aware splits in all cases. We finally present an interpretability study which shows that over 95% of k-mers used by our models are associated with identifiable genomic features. Our results highlight the importance of feature design, evaluation protocol, and biological analysis in genomic AMR prediction, and support tree-based models as a robust and interpretable method. Availability and implementationPython code is made freely available: https://github.com/chandar-lab/amr-pred
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Biased sampling confounds machine learning prediction of antimicrobial resistance
Yanying Yu, Nicole E. Wheeler, Lars Barquist·bioRxiv·Jan 7, 2025
- Assessing computational predictions of antimicrobial resistance phenotypes from microbial genomes
Kaixin Hu, Fernando Meyer, … Alice Carolyn McHardy·Briefings in BioinformaticsPeer-reviewed·Mar 27, 2024
- From sequence to signature: Machine learning uncovers multiscale feature landscapes that predict AMR across ESKAPE pathogens
Abhirupa Ghosh, Evan Pierce Brenner, … Janani Ravi·bioRxiv·Jul 3, 2025
- Improved prediction of antimicrobial resistance in Klebsiella pneumoniae using machine learning
Jordi Sevilla, Fernando Gónzález‐Candelas, Neris García‐González·bioRxiv·Dec 10, 2024
- Minimal machine learning models of resistance identify novel antibiotic resistance discovery opportunities in Klebsiella pneumoniae
Kristina Kordova, Caitlin Collins, Julian Parkhill·bioRxiv·Apr 8, 2025
- Accessory genes define species-specific pathways to antibiotic resistance.
Lucy Dillon, Nicholas J Dimonaco, Christopher J. Creevey·bioRxiv·Aug 9, 2023