Narrated walkthrough

Antibiotic susceptibility testing can take up to five days, exactly when critically ill respiratory patients may need targeted treatment. This study asks whether machine learning can read resistance signals directly from simulated metagenomes instead.

paperi.ai
0:00 / 0:00

Machine learning prediction of antimicrobial resistance in respiratory metagenomes

Sy, M. A.; Prosperi, M.; Benos, P. V.; Marini, S.

Biochemistry, Genetics and Molecular Biology

14:42 AI
Read the paper
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 χ²-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.

Transcript

Antibiotic susceptibility testing can take up to five days, exactly when critically ill respiratory patients may need targeted treatment. This study asks whether machine learning can read resistance signals directly from simulated metagenomes instead. Traditional targeted therapy for suspected respiratory infections requires bacterial culture followed by phenotypic antimicrobial susceptibility testing, a process that can take up to five days.

In acute respiratory distress syndrome, 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 further complicates clinical decision-making by reducing effective treatment options and increasing the risk of inadequate initial therapy.

Culture-free, artificial-intelligence-driven computational metagenomic strategies have the potential to drastically shorten this window and enable more rapid targeted therapy prescription. Traditional diagnostics rely on culture-based antimicrobial susceptibility testing to isolate the pathogen and determine its resistance or susceptibility to specific antibiotics.

The usual workflow involves primary isolation followed by phenotypic methods such as disk diffusion, broth microdilution, or gradient procedures. Even under optimized laboratory conditions, these steps can require up to about sixty-two hours to finalize susceptibility results, leading to a total bed-to-bench turnaround of roughly three to five days.

During this interval, clinicians are forced to treat empirically, often with broad-spectrum regimens that may be unnecessarily aggressive. Metagenomic next-generation sequencing offers an attractive alternative by sequencing DNA directly from clinical specimens such as sputum or bronchoalveolar.

The key idea is to examine DNA directly from the clinical specimen, using metagenomic next-generation sequencing as an attractive alternative approach. This approach can, in principle, provide an unbiased view of the microbial community and its resistome, independent of culture conditions and pre-specified panels.

By leveraging both long-read and short-read sequencing technologies, metagenomic next-generation sequencing can capture extensive genomic diversity, including resistance genes encoded on mobile elements and chromosomal loci. Using metagenomics could therefore shorten the time to a biologically informed susceptibility profile and uncover resistance patterns invisible to conventional or targeted molecular tests.

The workflow combines simulated respiratory metagenomic sequencing with machine learning to predict antimicrobial resistance in bacterial respiratory infections. It simulates lung microbial communities containing clinically relevant pathogens across Oxford Nanopore Technologies, PacBio, and Illumina sequencing platforms.

The workflow also evaluates the effects of pathogen abundance and k-mer feature depth on prediction performance. Because no sufficiently large clinical respiratory metagenomic dataset with matched organism-level susceptibility phenotypes was readily available, the study is a simulation-based proof of concept rather than a clinical external-validation study.

To define the commensal background, the study used a publicly available dataset of bronchoalveolar lavage samples from healthy, never-smoker individuals. The dataset included twenty-eight samples and approximately two thousand seven hundred seventy-seven identified bacterial taxa.

From these sources, the study selected eighty-seven candidate commensal species for the simulation. Suitable NCBI reference genomes were available for only eighty-five species, which were included in the simulated microbial background. Antimicrobial-resistance phenotype data came from the Bacterial and Viral Bioinformatics Resource Center.

The included isolates had a human host, respiratory-related source annotations, and associated susceptibility testing from broth microdilution or disk diffusion. After filtering, the dataset retained one hundred eighty-four Acinetobacter baumannii, two thousand one hundred sixty-one Klebsiella pneumoniae, and five hundred thirty-three Pseudomonas aeruginosa genomes with paired susceptibility results.

Following selection and filtering, three respiratory pathogens were retained: Acinetobacter baumannii, Klebsiella pneumoniae, and Pseudomonas aeruginosa. The source dataset contained one hundred eighty-four Acinetobacter baumannii, two thousand one hundred sixty-one Klebsiella pneumoniae, and five hundred thirty-three Pseudomonas aeruginosa genome-antibiotic records.

The final panel consisted of eleven organism-antibiotic combinations across those three pathogens. The simulated lung microbial community contained a constant background of eighty-five commensal bacterial reference genomes and a single pathogen strain at five percent or ten percent of total microbial community reads.

Because clinical respiratory specimens can contain a large excess of host-derived DNA, the simulation modeled the effective microbial fraction after computational or experimental host-DNA removal rather than explicitly simulating human reads. Untreated bronchoalveolar lavage samples have been reported to contain a median of approximately ninety-nine point seven percent host reads.

Reads representing Oxford Nanopore Technologies, Pacific Biosciences, and Illumina were simulated. ONT and PacBio long reads were generated using PBSIM2. PBSIM2 uses hidden Markov models trained on empirical long-read data to reproduce non-uniform quality-score and sequencing-error patterns.

The primary analysis included eleven organism-antibiotic combinations representing three respiratory pathogens. The analytical panel included amikacin for Acinetobacter baumannii; six antibiotics for Klebsiella pneumoniae; and four antibiotics for Pseudomonas aeruginosa.

Each dataset included simulated metagenomes derived from isolates with resistant or susceptible phenotypes obtained from the Bacterial and Viral Bioinformatics Resource Center. Replicate simulations used independent simulator random seeds while retaining the phenotype and underlying pathogen genome of the source isolate.

To prevent replicate-level information leakage, all simulations originating from the same isolate were assigned to the same cross-validation fold. Each eligible isolate was represented across three sequencing platforms and two pathogen-abundance levels: five percent and ten percent.

The models were evaluated using the top two thousand five hundred and five thousand fold-specific chi-square-ranked thirteen-mer features. That created twelve primary simulation settings per organism-antibiotic combination. Across eleven combinations, the complete factorial analysis comprised one hundred thirty-two Random Forest model settings, each evaluated using five strain-grouped held-out folds.

ResFinder and KARGA were evaluated as reference-based metagenomics benchmarks across ONT, PacBio, and Illumina, at both five percent and ten percent pathogen abundance. Their predictions were evaluated using the same five strain-grouped held-out test partitions as the corresponding Random Forest models.

Because these methods do not require model training, the fold structure evaluated matched test sets rather than cross-validation during model fitting. Each simulated metagenomic sample was represented using k-mers, all contiguous nucleotide subsequences of a fixed length extracted from a DNA sequence.

These fixed-length sequence patterns can capture resistance-associated genes, mutations, and broader genomic backgrounds without requiring prior alignment to a reference genome. The approach uses k-mers for antimicrobial-resistance prediction, while existing algorithms are designed for cultured samples or environmental metagenomics.

Pathogen-specific k-mer databases were extracted from the Bacterial and Viral Bioinformatics Resource Center genomes for the three pathogens using KMC3. For each pathogen, the resulting sets contained approximately ten to fifteen million unique thirteen-mers.

Feature selection used chi-square tests, performed only on training data within each fold before applying selected k-mers to held-out test data. The top two thousand five hundred and five thousand ranked thirteen-mers were evaluated as separate feature sets.

A Random Forest classifier was trained to predict antimicrobial-resistance status from the selected k-mer features. Each of the eleven pathogen-antibiotic models included simulated metagenomic samples from resistant and susceptible simulations at five percent and ten percent pathogen abundance.

Because resistant and susceptible genome counts differed across pathogen-antibiotic pairs, the total number of samples per model varied accordingly. Figure one summarizes ONT prediction performance across three pathogens, their antibiotic combinations, pathogen abundance levels, feature depths, and two reference-based benchmarks.

Random forest accuracy is shown using two thousand five hundred or five thousand selected thirteen-mers, while KARGA and ResFinder report benchmark classification accuracy at five and ten percent abundance. The chart shows especially strong and consistent values for many Klebsiella pneumoniae combinations, while performance varies across Pseudomonas aeruginosa antibiotics, making species and antibiotic context important.

Figure two shows PacBio performance across species–antibiotic combinations, comparing random-forest models using two thousand five hundred or five thousand selected thirteen-mers at five and ten percent pathogen abundance with KARGA and ResFinder benchmarks. The chart reports particularly strong random-forest accuracies for several Klebsiella pneumoniae combinations, including zero point nine six for ceftazidime at both abundance levels with five thousand features.

It matters because it shows how prediction depends on antibiotic, pathogen abundance, feature depth, and whether the approach uses learned sequence patterns or reference-based classification. Figure 3 compares Illumina performance across species–antibiotic combinations, pathogen abundance, feature depth, and the reference methods KARGA and ResFinder.

The random-forest results vary by combination: at ten percent abundance and five thousand features, values range from zero point fifty-eight for K. pneumoniae cefepime to zero point eighty-six for ceftazidime, while P. aeruginosa ciprofloxacin reaches zero point eighty-seven.

The reference-based scores generally occupy the lower ranges shown, including KARGA values from zero point forty-three to zero point fifty-five at ten percent abundance. Across all three sequencing platforms, the Random Forest models generally outperformed the reference-based approaches, particularly for Klebsiella pneumoniae and Acinetobacter baumannii.

Increasing selected k-mers from two thousand five hundred to five thousand generally produced only modest performance changes, while the effect of increasing pathogen abundance from five percent to ten percent varied by organism and antibiotic. KARGA and ResFinder performance was typically concentrated near zero point five, with relatively little improvement at higher pathogen abundance.

Random Forest performance varied substantially across species, antibiotics, and sequencing platforms. The strongest and most consistent results were observed for Klebsiella pneumoniae, with accuracy reaching approximately zero point ninety-six for ceftazidime, zero point ninety-three for amikacin, and zero point ninety-two for ciprofloxacin.

Pseudomonas aeruginosa performance was more heterogeneous: long-read models reached zero point eighty-nine with PacBio and zero point eighty-eight with Nanopore for amikacin. Across most organism-antibiotic combinations, Random Forest accuracy was numerically higher than KARGA and ResFinder classification accuracies, which generally remained near zero point fifty.

Across the three sequencing technologies, Random Forest performance depended more strongly on the organism-antibiotic combination than on pathogen abundance or feature-selection depth. PacBio produced the strongest results for most Klebsiella pneumoniae combinations, including a maximum accuracy of zero point ninety-six for ceftazidime.

ONT also performed strongly for Klebsiella pneumoniae. Illumina showed the strongest performance for Pseudomonas aeruginosa ciprofloxacin, reaching zero point eighty-seven at both pathogen-abundance levels with five thousand selected features. Genome-wide k-mer machine learning can recover phenotype-associated antimicrobial-resistance signals from simulated respiratory metagenomes.

Performance depends strongly on the organism, antibiotic, and sequencing platform. These results represent a simulation-based proof of concept. Genome-wide k-mer machine learning recovered antimicrobial-resistance signals from simulated respiratory metagenomes, but performance depended strongly on the organism, antibiotic, and sequencing platform.

It is promising proof of concept, not yet clinical validation.

CC BY 4.0 · A derivative work by Paperi · AI-generated script, voice and captions · pages and figures unaltered

Made with Paperi.

Drop in a research PDF — get a narrated video walkthrough like this one, with highlights that follow the narration. Free to start.

Try it with your paper →