Virus research

Viro-BERT: Whole-Genome Attention for Robust Viral Pathogen Classification from Next-Generation Sequencing Data.

Sami Dhahbi, Anas Bilal, Talha Mahboob Alam, Mouhebeddine Berrima, Amina Magdich, Hamdy Morsy

Applied College of Mahail Aseer, King Khalid University, Muhayil Aseer 62529, Saudi Arabia. · School of Artificial Intelligence, Hainan Normal University, Haikou, China.

Key points

From the paper's conclusion
  • These results indicate that whole-genome context is needed for viral classifiers that remain reliable on noisy clinical data.

Abstract

Classifying viral pathogens from next-generation sequencing (NGS) data is central to diagnosis and genomic surveillance. Most deep learning classifiers, however, read only a fixed window at the start of each genome, typically a few hundred to a few thousand base pairs, and so ignore more than 95% of the sequence of large DNA viruses such as monkeypox virus (MPV) and herpes simplex virus 1 (HSV-1). We refer to this problem as Truncation Blindness. Here we present Viro-BERT, which splits a complete genome into overlapping 512-token windows, encodes each window with a shared DistilBERT encoder, and averages the window-level class probabilities in a Late Fusion Consensus layer. Because the windows are processed independently, memory use does not grow with genome length. We compared Viro-BERT with one-dimensional convolutional neural network (1D-CNN), bidirectional long short-term memory (Bi-LSTM) and RoBERTa baselines on 14 viral classes, using the same segmentation and training protocol for all models. Viro-BERT reached 96.79% accuracy and a macro-F1 score of 96.17%. We then added random substitution noise to the test genomes. At 5% noise, the accuracy of the 1D-CNN fell by 5.57 percentage points, whereas Viro-BERT still classified 93.68% of genomes correctly. Positional and attention analyses on HSV-1 showed that Viro-BERT uses diagnostic signal from across the genome rather than from its 5' end alone. These results indicate that whole-genome context is needed for viral classifiers that remain reliable on noisy clinical data.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers