bioRxivBioinformaticsPreprint
Resolving Genome-to-Phenotype Links in Bacteria: Machine-Learned Inference from Downsampled k-mer Representations
Torbjoern Goebel Bak RegueiraiD, Carolina BarraiD, Ole LundiD
Abstract
Standard approaches to bacterial phenotyping often treat the entire genome as the fundamental unit of information, resulting in high-dimensional inputs that may contain significant redundancy. Consequently, current bacterial phenotyping techniques typically rely on the assumption that entire sequences are required for accurate predictions. While downsampling based on min-hashing or prefix filtering has been used for clustering, its utility as a direct input for predictive machine learning remains underexplored. Here, we show that a novel prefix-based downsampling algorithm can reduce the size of genomes while maintaining relatively high predictive accuracy on phenotype prediction tasks. By combining a prefix reduction strategy with the specificity of short k-mers, we developed a method to downsample entire genomes into k-mer frequency matrices and k-mer-on-a-string representations. We found that ensemble models, such as Random Forest and Gradient Boosting, trained on k-mer frequency matrices from downsampled genome representations outperformed more complex deep learning architectures with the same downsampled representation, particularly on datasets with limited data or highly similar genomes. We were able demonstrate explainability by tracing back the k-mers with the most impact on the models to genes coding for the specific phenotype. Our results demonstrate that downsampling genomic data can yield models with good predictive power thus establishing an alternative when using full genomes is infeasible. We present an approach that offers relatively high performance on bacterial phenotyping tasks and demonstrates a path forward towards lightweight Genome Language Models that will enable analysis of entire genomes.
- organism: bacteria (other)
- assay: whole-genome sequencing
- research focus: variant effect prediction
- approach: machine learning (classical)
- Citations
- 0
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
- Unsupervised Whole-Genome Representation Learning Captures Bacterial Phenotypes
Cameron Dufault, Alan M Moses·bioRxiv·Apr 1, 2025
- A k-mer-based method for the identification of phenotype-associated genomic biomarkers and predicting phenotypes of sequenced bacteria.
Erki Aun, Age Brauer, … Maido Remm·PLoS Computational BiologyPeer-reviewed·Oct 22, 2018
- Predicting bacterial phenotypic traits through improved machine learning using high-quality, curated datasets
Julia Koblitz, L.C. Reimer, … Jörg Overmann·Communications BiologyPeer-reviewed·Jun 7, 2025
- MicroPheno: Predicting environments and host phenotypes from 16S rRNA gene sequencing using a k-mer based representation of shallow sub-samples
Ehsaneddin Asgari, Kiavash Garakani, … Mohammad R. K. Mofrad·BioinformaticsPeer-reviewed·Apr 15, 2018
- Integrating natural language processing and genome analysis enables accurate bacterial phenotype prediction
Daniel Gómez‐Pérez, Alexander Keller·NAR Genomics and BioinformaticsPeer-reviewed·Oct 7, 2025
- Machine Learning-Driven Phenotype Predictions based on Genome Annotations
Janaka N. Edirisinghe, Samaksh Goyal, … Christopher S. Henry·bioRxiv·Aug 11, 2023