Authors
Sami Dhahbi, Anas Bilal, Talha Mahboob Alam, Mouhebeddine Berrima, Amina Magdich, Hamdy Morsy
Published in
Virus research. Pages 199838. Nov 14, 2026. Epub Nov 14, 2026.
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.
PMID:
43033921
Bibliographic data and abstract were imported from PubMed on 15 Nov 2026.
Read full publication at:
Please sign in
to see all details.
Advertisement
Stats
- Recommendations n/a n/a positive of 0 vote(s)
- Views 7
- Comments 0