页面简介
A research team from the Hebrew University of Jerusalem has proposed BBERT, a nucleotide large language model optimized for short-read analysis. The researchers conducted tests on large-scale soil metagenomic datasets and found that BBERT can identify grammatical features of bacterial sequences with...
正文摘录
HyperAIToggle Sidebar⌘KCommand PaletteSearch for a command to run...Sign InBBERT Unearths Taxonomic and Functional Clues From 100bp Short Reads to Tackle the Challenge of Annotating Massive Soil Microbiome Datalast monthResearchGenomicsLLMMicrobial ecosystems possess extremely complex compositional structures. Understanding this complexity is crucial for elucidating the various processes that sustain the biosphere, and this work relies on the analysis of massive sequencing datasets. Today, such data resources are abundant: thousands of publicly available metagenomic datasets covering diverse biomes on Earth can be freely accessed and downloaded. Among these data, soil metagenomics holds particularly important research value. Shotgun metagenomic sequencing in complex environments such as soil can reveal exceptionally rich biodiversity. However, due to the lack of sufficiently comprehensive reference databases, most short reads generated by shotgun sequencing cannot obtain accurate taxonomic or functional annotations, making it difficult to comprehensively elucidate the true structure and function of microbial communities. Against this backdrop, a research team from the Hebrew University of Jerusalem proposed BBERT, a nucleotide large language model optimized for short-read analysis. Researchers conducted tests on large-scale soil metagenomic datasets and found that BBERT can identify grammatical features of bacterial sequences without relying on reference databases, and accurately determine their taxonomic domain, coding potential, and reading frame directly from short reads as short as 100 bp. Furthermore, the BBERT model can directly convert short metagenomic reads into bacterial amino acid sequences, providing support for subsequent research and applications. BBERT also demonstrates advantages in de novo metagenomic assembly: it reduces mismatches and gaps during the assembly process while shortening runtime. Researchers further validated these findings using metagenomic data from root nodules of wild legumes, demonstrating that data filtering via BBERT not only significantly improves binning quality but also dramatically accelerates de novo assembly speed. The related research results have been published in Nucleic Acids Research under the title "Fast and accurate taxonomic domain assignment of short metagenomic reads using BBERT." Research Highlights: BBERT simultaneously overcomes the limitations of previous large language model-based methods in terms of throughput and accuracy. Using BBERT for pre-filtering prior to metagenomic analysis can improve functional annotation speed and de novo assembly quality, reduce assembly errors, and enhance binning quality. BBERT provides a rapid, reference-database-free taxonomic method for short reads, potentially unlocking the research value of existing large archives of metagenomic data. Paper Link: https://academic.oup.com/nar/article/54/19/gkag1002/8971853?login=false Dataset: From Training on Bacterial Genomes to Validation in Complex Metagenomic Environments During the development and evaluation of BBERT, researchers curated and constructed two types of datasets. The first type was used for model pre-training and includes genomic data from 1,416 bacterial species. To ensure the data adequately covered the bacterial phylogenetic tree, two genomes were randomly sampled from each bacterial family in the RefSeq database. The second type was used for model calibration and evaluation, comprising 899 bacterial species from 396 different genera, and 1,200 eukaryotic species from 823 different genera. Notably, these two datasets are completely separated at the genus taxonomic level, with no overlap in genera between them. Simultaneously, to construct a curated reference genome dataset representative of eukaryotic diversity in soil environments, researchers first determined a target taxon list by reviewing 18S rRNA and ITS amplicon metabarcoding studies of soil microbial communities. Relevant studies included the Earth Microbiome Project, the pan-European LUCAS soil survey, and surveys of global soil protist and fungal diversity. Through a comprehensive analysis of the aforementioned literature, eight major eukaryotic lineages consistently exhibiting high abundance in soil microbial communities were identified, namely: Cercozoa Ciliophora Oomycota (heterokonts) Glomeromycota (arbuscular mycorrhizal fungi) Mucoromycota Ascomycota Free-living Nematoda Amoebozoa Additionally, the dataset included the Chlorophyta (green algae) relevant to soil environments, as well as terrestrial plant taxa for which genome sequencing data were already available. To account for potential randomness during species grouping, all genome accessions in the calibration and evaluation datasets were divided into 20 equal groups at the genus taxonomic level, with 20 groups each for bacteria and eukaryotes. Within each group, species abundances were randomly assigned according to a log-normal distribution. Subsequently, groups from the two datasets were paired to form 20 combined subsets. Each subset possessed independent bacterial and eukaryotic genus compositions. Among these 20 subsets, the first 10 (Datasets 1–10) were used for model fine-tuning, while the remaining 10 (Datasets 11–20) were reserved for model evaluation. BBERT Framework: Enabling Large Language Models to Learn Bacterial Features from DNA Sequences BBERT is a model developed based on the BERT architecture, designed for out-of-distribution (OOD) detection of nucleotide sequences derived from bacterial genomes. Its core concept involves training exclusively on bacterial sequences to determine whether a given sequence is of bacterial origin. To construct a large language model capable of OOD detection for bacterial genomes based on nucleotide sequences, researchers adopted a three-stage development workflow: Pre-training the BERT architecture using only bacterial genome reads; Fine-tuning for the bacterial/non-bacterial classification task; Evaluating model performance on bacterial read classification tasks and comparing it with BERTax, Tiara, and REMME. ① Model Pre-training The pre-training of BBERT utilized a bacterial dataset containing synthetic short nucleotide sequences generated through sampling, with each sequence being 100 bp in length, aimed at simulating metagenomic sequencing reads and potential sequencing errors. During training, researchers employed masked language modeling as the optimization objective, masking 30% of the tokens in the input sequences and optimizing the model's ability to infer these masked tokens based on context. Through this process, the model learned to represent missing nucleotides based on existing read information. The optimization process for pre-training proceeded in stages of 5–10 epochs per stage until optimal results were achieved, while saving all intermediate checkpoints (model weights). Typically, a continuous decrease in training loss was observed alongside steadily improving classification accuracy. Training was terminated when progress plateaued and no significant improvement in model performance was observed. ② Model Fine-tuning Next, to enable BBERT to perform bacterial read classification tasks, researchers added a lightweight classification head to the model: a linear layer was added on top of the token embeddings generated by the BBERT encoder, used to directly predict whether a read is of bacterial origin. The classification head was trained via supervised learning. During training, the pre-trained BBERT model weights were not frozen; instead, the encoder and classification head were jointly fine-tuned, allowing the feature representations learned by the encoder to adapt to the current classification task. To prevent unstable impacts on the pre-trained weights, different learning rates were set for the classification head and the encoder: the encoder learning rate was 1×10⁻⁶, and the classification head learning rate was 1×10⁻⁵, using the AdamW optimizer. The study found that the strategy of freezing the bottom two layers of the Transformer encoder while fine-tuning the remaining layers yielded better results. The model finally outputs the probability that a read is of bacterial origin, denoted as bact_prob; when bact_prob exceeds 0.5, the read is classified as bacterial. ③ Model Evaluation and Comparison Finally, researchers calculated and reported overall classification performance metrics on the datasets, comparing the benchmark results with BERTax, Tiara, and REMME. Results: BBERT’s Classification Accuracy, Functional Annotation, and Assembly Efficiency Were Verified ① BBERT Outperforms State-of-the-Art Deep Learning Classification Tools First, in the bacterial and non-bacterial read classification task, BBERT demonstrated strong recognition capabilities—as shown in the figure below, BBERT outperformed BERTax, Tiara, and optimized REMME on standard classification metrics including accuracy, precision, recall (comparable to REMME), and AUROC. The average domain classification accuracy of BBERT across 10 test sets was 89.7% ± 1.7%, compared to 86.8% ± 1.7% for REMME, 79.2% ± 4.7% for BERTax, and 72.6% ± 3.4% for Tiara. Classifiers trained using BBERT embeddings, BERTax, Tiara, and fine-tuned REMME performing bacterial/non-bacterial classification tasks, respectively In terms of identifying coding sequences and their reading frames, BBERT’s performance surpassed REMME, which was the only comparable tool with this functionality (Figure E below, coding accuracy: BBERT 88.1% ± 0.9%, REMME 74.4% ± 2.1%; Figure F below, reading frame accuracy: BBERT 96.3% ± 0.3%, REMME 45.4% ± 0.4%). (Left) Performance comparison of BBERT and REMME in the coding/non-coding read identification task; (Right) Performance comparison of BBERT and REMME in the coding read frame identification task In terms of computational performance, BBERT also demonstrates good practicality. On a compute node equipped wi