MetagenBERT: a Transformer-based Architecture using Foundational genomic Large Language Models for novel Metagenome Representation
Authors:
Preprint
Abstract
Metagenomic disease prediction commonly relies on species abundance tables derived from large, incomplete reference catalogs, constraining resolution and discarding valuable information contained in DNA reads. To overcome these limitations, we introduce MetagenBERT, a Transformer based framework that produces end to end metagenome embeddings directly from raw DNA sequences, without taxonomic or functional annotations. Reads are embedded using foundational genomic language models (DNABERT2 and the microbiome specialized DNABERTMS), then aggregated through a scalable clustering strategy based on FAISS accelerated KMeans. Each metagenome is represented as a cluster abundance vector summarizing the distribution of its embedded reads. We evaluate this approach on five benchmark gut microbiome datasets (Cirrhosis, T2D, Obesity, IBD, CRC). MetagenBERT achieves competitive or superior AUC performance relative to species abundance baselines across most tasks. Concatenating both representations further improves prediction, demonstrating complementarity between taxonomic and embedding derived signals. Clustering remains robust when applied to as little as 10% of reads, highlighting substantial redundancy in metagenomes and enabling major computational gains. We additionally introduce MetagenBERT Glob Mcardis, a cross cohort variant trained on the large, phenotypically diverse MetaCardis cohort and transferred to other datasets, retaining predictive signal including for unseen phenotypes, indicating the feasibility of a foundation model for metagenome representation. Robustness analyses (PERMANOVA, PERMDISP, entropy) show consistent separation of different states across subsamples. Overall, MetagenBERT provides a scalable, annotation free representation of metagenomes pointing toward future phenotype aware generalization across heterogeneous cohorts and sequencing technologies.Keywords
All Related Versions
This publication has 25 references indexed in Scilit:
- Rapid species-level metagenome profiling and containment estimation with sylphNature Biotechnology, 2024
- Ultrafast one‐pass FASTQ data preprocessing, quality control, and deduplication using fastpiMeta, 2023
- Extending and improving metagenomic taxonomic profiling with uncharacterized species using MetaPhlAn 4Nature Biotechnology, 2023
- Multimodal deep learning applied to classify healthy and disease states of human microbiomeScientific Reports, 2022
- Combinatorial, additive and dose-dependent drug–microbiome associationsNature, 2021
- A unified catalog of 204,938 reference genomes from the human gut microbiomeNature Biotechnology, 2020
- DeepMicro: deep representation learning for disease prediction based on microbiome dataScientific Reports, 2020
- Alterations of the human gut microbiome in liver cirrhosisNature, 2014
- A metagenome-wide association study of gut microbiota in type 2 diabetesNature, 2012
- A human gut microbial gene catalogue established by metagenomic sequencingNature, 2010