SARS-CoV-2 variants classification and characterization

Sofia Borgato, Marco Antônıo Bottıno, Marta Lovino, Elisa FicarraEPiC 2022

Abstract

As of late 2019, the SARS-CoV-2 virus has spread globally, giving rise to several variants over time. These variants differ from the original sequence identified in Wuhan, risking the efficacy of developed vaccines. While software exists to recognize variants, many tools lack full automation or fail to provide detailed characterization of mutations, which is essential for biological understanding. This paper presents a Machine Learning (ML) approach to identify existing and new variants automatically. Our pipeline provides a detailed table of all alterations found in samples. Using sequences from the GISAID database and custom-designed features—such as mutation counts per gene—we trained a Random Forest classifier for known variants and employed the DBSCAN algorithm for identifying newly emerging lineages. Both techniques demonstrated high precision, successfully identifying the Delta variant during the testing phase. This approach offers researchers a significant benefit through automated detection and detailed mutation mapping.

Introduction

The rapid evolution of SARS-CoV-2 necessitates robust tools for genomic surveillance. As the virus mutates, new lineages emerge that may exhibit increased transmissibility or immune escape. Current bioinformatics tools often face two major hurdles: a lack of end-to-end automation and a "black box" approach that provides a classification label without explaining the underlying genomic changes. Biologists require a detailed breakdown of specific mutations (e.g., missense mutations in the Spike protein) to assess public health risks effectively. This study addresses these gaps by introducing a hybrid ML pipeline that classifies known variants and clusters novel ones while generating comprehensive mutation reports.

Methodology

Preprocessing and Alignment

Raw genomic sequences in FASTA or FASTQ formats are first aligned against the original Wuhan reference genome (NC_045512.2). The authors utilized a local alignment technique specifically optimized to handle ambiguous bases (represented as 'X') without compromising the algorithm's stability. This ensures that low-quality sequencing data does not derail the downstream analysis.

Feature Engineering

Rather than processing raw nucleotide strings, which are computationally expensive, the pipeline extracts high-level features into a Mutation Statistics Table. This table quantifies five types of mutations—silent, nonsense, and missense substitutions, along with insertions and deletions—across each viral gene.

The genomic structure of SARS-CoV-2, illustrating the specific genes (e.g., S, ORF1ab, N) analyzed for mutation statistics.

This transformation reduces the high-dimensional genomic data into a structured set of 39 variables, making the model both efficient and interpretable for clinical researchers.

Supervised and Unsupervised Learning

For the recognition of established Variants of Concern (VOC), a Random Forest (RF) classifier was implemented. The model's hyperparameters were optimized using Recursive Feature Elimination (RFE) to determine the ideal balance between tree count and depth.

To detect emerging variants not present in the training data, the pipeline employs DBSCAN (Density-Based Spatial Clustering of Applications with Noise). DBSCAN is particularly suited for this task because it does not require a predefined number of clusters, allowing it to discover an arbitrary number of new lineages. To ensure the tool remains accessible to non-experts, the authors automated the selection of the critical 'epsilon' parameter.

K-distance plot used to automatically identify the "elbow" point for setting the DBSCAN epsilon parameter.

Experimental Setup and Datasets

The study leveraged the GISAID database for its primary data source. The training set consisted of 6,000 sequences encompassing the original Wuhan strain and five variants (Alpha, Beta, Gamma, Epsilon, and Eta). A separate test set of 150 known samples was used for validation. Crucially, to test the discovery of new variants, 140 samples of the Delta variant were withheld from the training phase to see if the unsupervised component could correctly identify them as a novel cluster.

Results and Discussion

The hybrid approach yielded exceptional results:

  • Classification Accuracy: The Random Forest classifier achieved over 99% accuracy in identifying known variants during cross-validation.
  • Novel Variant Discovery: The DBSCAN algorithm successfully isolated the Delta variant samples into a distinct "Cluster 6," separate from all previously known variants and the reference strain.
  • Biological Interpretability: Beyond simple classification, the tool produces three detailed output tables: gene sequences, mutation statistics, and a key mutation description table. This allows researchers to pinpoint specific drivers of viral evolution, such as the D614G mutation in the S gene.

Conclusion and Future Work

While the pipeline is highly effective, the authors note that the initial sequence alignment remains computationally intensive. Additionally, DBSCAN requires a sufficient density of samples (approximately 100) to distinguish a new variant from background "noise." Future developments will focus on making the training dataset dynamic, allowing the supervised model to automatically incorporate new variants once they are identified by the clustering module. This automated, interpretable framework represents a significant step forward in real-time genomic surveillance.

Summary updated

BibTeX
@inproceedings{borgato2022sars,
  author = {Sofia Borgato and Marco Antônıo Bottıno and Marta Lovino and Elisa Ficarra},
  title = {{SARS-CoV-2 variants classification and characterization}},
  booktitle = {EPiC},
  year = {2022},
  doi = {10.29007/5qpk},
}
Figure