bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.11.20.768127

Machine learning prediction of antimicrobial resistance in respiratory metagenomes

Abstract

Background: Targeted therapy for patients with suspected respiratory infections traditionally requires bacterial culture followed by phenotypic antimicrobial susceptibility testing (AST), a process that can take up to 5 days. In acute respiratory distress syndrome (ARDS), delays in identifying the causative pathogen and its resistance profile may be especially harmful because patients are critically ill and often receive broad-spectrum empiric antibiotics. The growing burden of antimicrobial resistance (AMR) further complicates clinical decision-making by reducing effective treatment options and increasing the risk of inadequate initial therapy. Culture-free, AI-driven computational metagenomic strategies have the potential to drastically shorten this window, enabling more rapid targeted therapy prescription. To show the feasibility of such approaches, we develop a proof-of-concept framework based on clinical metagenomics. Methods: We simulated respiratory metagenomes using real-world bacterial genomes with associated antimicrobial susceptibility phenotypes. Each simulated metagenome contained a fixed commensal background and one clinically important respiratory pathogen, Acinetobacter baumannii, Klebsiella pneumoniae, or Pseudomonas aeruginosa, at 5% or 10% bacterial read abundance. Realistic reads were simulated for Oxford Nanopore, PacBio, and Illumina sequencing platforms. Random Forest (RF) classifiers were trained and evaluated using five-fold, strain-grouped cross-validation with fold-specific {chi}2-ranked 13-mer features. ResFinder and KARGA were included as reference-based metagenomics benchmarks and evaluated using the same five held-out folds across the three sequencing platforms and two pathogen-abundance conditions. Results: RF performance varied substantially across species, antibiotics, and sequencing platforms. The strongest and most consistent results were observed for K. pneumoniae, with accuracy reaching approximately 0.96 for ceftazidime, 0.93 for amikacin, and 0.92 for ciprofloxacin. Performance for P. aeruginosa was more heterogeneous: long-read models performed well for amikacin, reaching 0.89 with PacBio and 0.88 with Nanopore, whereas Illumina performed substantially better for ciprofloxacin, ceftazidime, and levofloxacin, reaching accuracies of approximately 0.87, 0.77, and 0.70, respectively. Across most organism-antibiotic combinations, RF accuracy was numerically higher than the classification accuracies obtained with KARGA and ResFinder, which generally remained near 0.50. Increasing pathogen abundance from 5% to 10% and increasing the number of selected features from 2,500 to 5,000 generally produced modest improvements in classification accuracy, although the magnitude of improvement varied across organism-antibiotic combinations and sequencing platforms. Conclusions: Genome-wide k-mer machine learning can recover phenotype-associated antimicrobial resistance signals from simulated respiratory metagenomes, although performance depends strongly on the organism, antibiotic, and sequencing platform. These results represent a simulation-based proof of concept.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Sy, M. A., Prosperi, M., Benos, P. V., Marini, S.. 2026-11-23. Machine learning prediction of antimicrobial resistance in respiratory metagenomes. https://doi.org/10.64898/2026.11.20.768127. https://biorxiv.science/record/biorxiv%3A10.64898%2F2026.11.20.768127/machine-learning-prediction-of-antimicrobial-resistance-in-respiratory-metagenomes

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite bioRxiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related preprints

Multi-level Prediction and Landscape Characterization of Human γδ T Cells Across Single-Cell and Spatial Transcriptomic Atlases

Human{gamma}{delta} T cells contribute to tissue immunity and tumour responses, but their identification in single-cell transcriptomic data is limited by incomplete T-cell receptor (TCR) recovery and transcriptional overlap with {beta} T cells and NK cells. Here we present gdTProfiler, a transcriptome-based framework for{gamma}{delta} T-cell identification, V{delta}1/V{delta}2 subtype prediction and cell-state characterization. A joint classifier distinguished{gamma}{delta} T, {beta} T and NK cells with an average precision of 0.99 in donor-held-out and external datasets, and predicted V{delta}1/V{delta}2 subtype from non-TCR gene expression. In NK-annotated atlas populations, the model recovered all 25 cells with linked TRG/TRD sequences as{gamma}{delta} T cells, and these cells showed higher cytotoxic programme usage. Consensus non-negative matrix factorization identified eight transcriptional programmes that captured stimulus-associated variation and organized a cross-dataset atlas of 182,638{gamma}{delta} T-cell records. Applied to colorectal cancer spatial transcriptomics data, gdTProfiler identified candidate{gamma}{delta} T-cell-associated regions for follow-up. gdTProfiler provides an integrated framework and reusable reference for studying{gamma}{delta} T-cell identity and heterogeneity across single-cell and spatial datasets.

bioinformatics↗

CreatiPhage-1.6: Scaling an autoregressive DNA language model for bacteriophages

We present CreatiPhage 1.6, a 299.06M parameter autoregressive DNA language model for bacteriophages pretrained exclusively on 918,726 viral records spanning 39.90 billion bases. Built on the stabilized training recipe of CreatiPhage 1.5, CreatiPhage 1.6 expands the backbone to 16 layers and hidden width 1,024 over 43,562 training steps. On 7,500 held out phage genomes, CreatiPhage 1.6 lowers test perplexity to 2.7939, improving over CreatiPhage 1.5 at 2.9753, CreatiPhage 1 at 3.3550, megaDNA at 3.5491, and the 7B parameter Evo 1 model at 2.9628, and approaching Evo 2 7B at 2.7412 with 4% of its parameters. Despite never seeing bacterial genomes during pretraining, frozen embeddings from CreatiPhage 1.6 improve over CreatiPhage 1.5 on E. coli infA fitness with Spearman rho of 0.7873, on Ryu with 0.6349, and on DH10B with 0.6758, reach 0.9960 AUROC on three domain classification, and exceed Evo 2 7B on three of four bacterial translation efficiency benchmarks. Across 1,024 de novo generated sequences, CreatiPhage 1.6 raises median ESMFold marker pLDDT from 36.06 to 52.12, raises Phold functional coverage from 7.18% to 10.81%, and recovers 109 high quality and 316 medium quality CheckV records. Canonical codirectional terminase portal major head packaging modules of up to 20 kb appear in 103 sequences, versus 72 for CreatiPhage 1.5 and one for CreatiPhage 1, and a generated major head protein with mean pLDDT of 84.27 aligns across 92.2% of the experimental bacteriophage Chi capsid structure, with TM scores of 0.809 and 0.834, RMSD of 2.50 Angstrom, and 34.0% sequence identity.

bioinformatics↗

On the Approximation Ratio of the Neighbor-Joining Algorithm

Motivation: Nearly four decades after the introduction of the Neighbor-Joining (NJ) algorithm quantifying how close its phylogeny is to the optimum of the Balanced Minimum Evolution Problem (BMEP) on a given dissimilarity matrix remains an open problem. Results: We close this gap with computable, instance-speci[fi]c certi[fi]cates of the NJ approximation ratio, without solving the BMEP to optimality. We combine a hierarchy of lower bounds, including a new quartet-based peeling bound, with a certi[fi]cate based on additive [fi]tting error. We prove that the excess BME length of any phylogeny is at most n times its additive [fi]tting error, and derive a su[ffi]cient condition for exact BME optimality. On nine biological benchmarks with 12 to 500 taxa, a row-wise bound computable in O(n2 log n) time certi[fi]es an excess of at most 43.7%. Peeling improves this bound on eight of the nine datasets; the best available bounds certify approximation ratios from 1.002 to 1.409.

bioinformatics↗