Amino Acid k-mer Feature Extraction for Quantitative Antimicrobial Resistance (AMR) Prediction by Machine Learning and Model Interpretation for Biological Insights

Taha ValizadehAslani, Zhengqiao Zhao, Bahrad A. Sokhansanj, Gail RosenBiology 2020

TL;DR

This paper introduces a novel machine learning approach using amino acid k-mers to predict antimicrobial resistance (AMR) in bacteria. This method offers a more interpretable and computationally efficient way to identify AMR mechanisms compared to existing techniques, achieving comparable or better prediction accuracy.

What Problem Does This Paper Address?

Antimicrobial resistance (AMR) is a critical global health threat, making infections harder to treat and increasing healthcare costs. Traditional methods for detecting AMR are slow and expensive. While genome sequencing and machine learning offer faster alternatives, existing methods often struggle with interpretability, computational complexity, or require prior knowledge of resistance mechanisms. This paper aims to develop a machine learning approach that can accurately predict AMR, identify the underlying genetic factors, and be easily interpreted by researchers to gain biological insights into AMR.

Methods

The core innovation of this paper is the amino acid k-mer feature extraction method. Instead of analyzing raw DNA sequences (nucleotide k-mers) or relying on known genetic determinants, the authors propose converting protein sequences into k-mers of amino acids. This approach leverages the biological redundancy of codons (three nucleotides encoding one amino acid) to create a more compact representation of genetic information. They also employed other feature extraction methods for comparison: nucleotide k-mers, gene content (presence/absence and count of genes), single nucleotide polymorphisms (SNPs), and a combination of gene content and SNPs.

For machine learning, they utilized Extreme Gradient Boosting (XGBoost) regression due to its strong performance and computational efficiency. A key contribution is also a feature selection pipeline that uses SHAP values to identify the most important features, allowing for the construction of more concise and interpretable models. This pipeline aims to discover novel AMR determinants without prior knowledge.

Datasets

The study utilized genomic and antimicrobial resistance data for four bacterial species:

  • Campylobacter jejuni
  • Neisseria gonorrhoeae
  • Klebsiella pneumoniae
  • Salmonella enterica

MIC (Minimum Inhibitory Concentration) values and genome sequences were obtained from the PATRIC database and published studies.

Key Insights and Ideas

  • Amino acid k-mers offer a sweet spot: They provide a more compact and interpretable representation of genetic information compared to nucleotide k-mers, while achieving similar or better AMR prediction accuracy. This is because amino acid k-mers are less prone to the exponential increase in feature size seen with longer nucleotide k-mers.
  • Interpretability is crucial for discovery: By using amino acid k-mers and a feature selection pipeline, the models can identify specific genetic features (like gene variants or k-mers) that are strongly associated with AMR. This allows researchers to investigate the biological mechanisms behind resistance, potentially uncovering new AMR determinants.
  • Canonical vs. non-canonical k-mers matter: Converting non-canonical nucleotide k-mers to their canonical form significantly improved prediction accuracy, likely due to reduced redundancy and correlation between features.
  • SNP-based methods can miss key information: While SNPs are useful for detecting specific mutations, they may not capture resistance mechanisms mediated by entire genes or gene presence/absence, where k-mer and gene content methods excel.
  • Feature selection leads to better models: Building models with a reduced set of important features identified by the SHAP-based pipeline often resulted in better accuracy and significantly reduced computational complexity compared to using all features.

Key Results

  • The proposed amino acid k-mer feature extraction method, combined with XGBoost and a feature selection pipeline, achieved comparable or better AMR prediction accuracy than existing methods across multiple species and antibiotics.
  • The feature selection pipeline successfully identified important AMR determinants, some of which were novel or provided new insights into known resistance mechanisms (e.g., a truncated tet(D) gene variant associated with lower MICs).
  • Amino acid k-mers demonstrated better interpretability as their top features aligned unambiguously to known genes or gene regions using BLAST searches, unlike some nucleotide k-mers.
  • The number of features required for amino acid k-mers was significantly lower than for nucleotide k-mers of equivalent predictive power, leading to reduced computational complexity.
  • In many cases, models built using only the selected top features achieved better accuracy than models trained on all features.

Limitations and Future Work

  • Gene assembly requirement: Amino acid k-mer and gene content methods require gene assembly, which adds a pre-processing step. This might be a limitation in scenarios demanding real-time AMR prediction from raw sequencing data.
  • Nucleotide k-mers for specific scenarios: While amino acid k-mers are generally preferred, nucleotide k-mers might be a viable alternative when gene assembly is not feasible or computational resources are extremely limited, especially when combined with feature selection.
  • Further exploration of k-mer lengths: The study explored specific k-mer lengths due to memory constraints. Future work could investigate longer k-mers or more advanced feature engineering techniques.
  • Broader antibiotic and species coverage: While the study covered four species and various antibiotics, expanding to a wider range could further validate the generalizability of the approach.

Summary updated

Abstract

Machine learning algorithms can learn mechanisms of antimicrobial resistance from the data of DNA sequence without any a priori information. Interpreting a trained machine learning algorithm can be exploited for validating the model and obtaining new information about resistance mechanisms. Different feature extraction methods, such as SNP calling and counting nucleotide <i>k</i>-mers have been proposed for presenting DNA sequences to the model. However, there are trade-offs between interpretability, computational complexity and accuracy for different feature extraction methods. In this study, we have proposed a new feature extraction method, counting amino acid <i>k</i>-mers or oligopeptides, which provides easier model interpretation compared to counting nucleotide <i>k</i>-mers and reaches the same or even better accuracy in comparison with different methods. Additionally, we have trained machine learning algorithms using different feature extraction methods and compared the results in terms of accuracy, model interpretability and computational complexity. We have built a new feature selection pipeline for extraction of important features so that new AMR determinants can be discovered by analyzing these features. This pipeline allows the construction of models that only use a small number of features and can predict resistance accurately.
BibTeX
@inproceedings{valizadehaslani2020amino,
  author = {Taha ValizadehAslani and Zhengqiao Zhao and Bahrad A. Sokhansanj and Gail Rosen},
  title = {{Amino Acid k-mer Feature Extraction for Quantitative Antimicrobial Resistance (AMR) Prediction by Machine Learning and Model Interpretation for Biological Insights}},
  booktitle = {Biology},
  year = {2020},
  doi = {10.3390/biology9110365},
}
Figure