Biased sampling driven by bacterial population structure confounds machine learning prediction of antimicrobial resistance
Yanying Yu, Nicole E. Wheeler, Lars Barquist
Boston Children's Hospital · University of Birmingham
Key points
From the paper's conclusion- Here, we demonstrate the confounding effects of sample structure by analyzing over 24,000 whole genome sequences and AMR phenotypes from five diverse pathogens, using pathological training data where resistance is confounded with phylogeny.
Abstract
Antimicrobial resistance (AMR) poses a growing threat to human health. Increasingly, genome sequencing is being applied for the surveillance of bacterial pathogens, producing a wealth of data to train machine learning (ML) applications to predict AMR and identify resistance determinants. However, bacterial populations are highly structured, and sampling is biased towards human disease isolates, violating ML assumptions of independence between samples. This is rarely considered in applications of ML to AMR. Here, we demonstrate the confounding effects of sample structure by analyzing over 24,000 whole genome sequences and AMR phenotypes from five diverse pathogens, using pathological training data where resistance is confounded with phylogeny. We show the resulting ML models perform poorly and that increasing the training sample size fails to rescue performance. A comprehensive analysis of 6,740 models identifies species- and drug-specific effects on model accuracy. These findings highlight the limitations of current ML approaches in the face of realistic sampling biases and underscore the need for population structure-aware methods and more diverse datasets to improve AMR prediction and surveillance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Bridging generalizability and reproducibility in machine learning-based antimicrobial resistance prediction.mSphere · 2026
- A One Health scoping review of genomic and machine learning approaches for predicting antimicrobial resistance in low- and middle-income countriesDiscover Public Health · 2026
- Data heterogeneity and algorithmic bias in AI-based antimicrobial resistance prediction: a systematic review and mitigation framework.BMC medical informatics and decision making · 2026
- Uncovering species- and drug-class-specific antimicrobial resistance mechanisms from large-scale whole-genome sequencing data using discordance analysis and machine learning.Briefings in bioinformatics · 2026
- Artificial intelligence approaches to resistome profiling and predictive antimicrobial resistance surveillanceDiscover Artificial Intelligence · 2026
- Predicting antimicrobial resistance in Africa using machine learning: a systematic reviewEuropean Journal of Public Health · 2026