A computational framework integrating symbolic k-mer frequency representations, dimensionality reduction, and unsupervised clustering has successfully classified 3,642 complete SARS-CoV-2 viral genomes into four distinct, biologically coherent clusters that closely mirror established global evolutionary lineages. Developed by researchers investigating regional viral diversity across Spain, Italy, and the United States, the unsupervised analytical pipeline demonstrated that high-dimensional viral sequence data can be categorized into natural evolutionary groupings without relying on computationally intensive phylogenetic tree reconstructions. Across multiple internal and external mathematical validation benchmarks, an analytical configuration pairing three-nucleotide substring frequencies with non-linear t-distributed Stochastic Neighbor Embedding achieved the highest clustering quality, yielding an optimal Silhouette Score of 0.648, a Calinski-Harabasz Index of 2443.3, and a Davies-Bouldin Index of 0.325. External evaluation against curated PANGO lineage annotations corroborated these mathematical partitions, demonstrating an Adjusted Rand Index of 0.83 and a Normalized Mutual Information value of 0.86 across all examined geographic regions.
The study addresses fundamental computational and epidemiological challenges that emerged during the global coronavirus disease pandemic following the identification of SARS-CoV-2 in late 2019. The single-stranded viral RNA genome spans approximately 30 kilobases in length, encoding multiple structural and non-structural proteins responsible for viral replication, cellular entry, and pathogenicity. Owing to the elevated mutation rates inherent to RNA viruses, the genomic architecture of SARS-CoV-2 has evolved continuously, driving the emergence of multiple variants of concern, including the Alpha, Beta, Delta, and Omicron lineages. These diverging variants exhibit marked phenotypic differences in secondary transmissibility, immune escape capacity, and clinical presentation, necessitating continuous genomic surveillance to trace transmission pathways and guide public health interventions. However, the accumulation of hundreds of thousands of full-length consensus sequences within public repositories has created severe computational bottlenecks. Standard phylogenetic inference techniques scale poorly when applied to massive sequence cohorts, creating an urgent operational need for scalable machine learning methodologies capable of rapidly characterizing genomic variance and lineage differentiation.
To establish a balanced and representative experimental foundation, the investigators retrieved 3,642 complete, high-coverage SARS-CoV-2 genome sequences from the public GISAID repository and NCBI GenBank. The curated dataset comprised 1,214 sequences collected from Spain, 1,186 sequences from Italy, and 1,242 sequences from the United States, capturing divergent epidemic trajectories and pandemic waves spanning from early 2020 through late 2022. Rigorous data filtering criteria were enforced prior to downstream processing to eliminate sequencing noise and incomplete records. Every included genome was required to possess a sequence length of at least 29,000 base pairs and contain no more than 1% ambiguous nucleotide characters denoted by N. Viral sequences exhibiting fragmented coverage, extensive alignment gaps, or apparent laboratory assembly artifacts were systematically discarded, ensuring that downstream numerical transformations captured genuine biological mutations rather than technical inconsistencies.
Prior to numerical encoding, the curated viral genomes underwent multiple sequence alignment using the MAFFT version 7 software suite utilizing its automated strategy selection. Under this automated protocol, the progressive FFT-NS-2 algorithmic alignment was applied with a default gap opening penalty of 1.53 and an offset parameter of 0.123. The authors emphasized that within their analytical framework, sequence alignment did not serve as a feature extraction step, as k-mer representations are inherently alignment-free. Instead, multiple sequence alignment functioned strictly as an essential biological normalization and quality-control filter. Public viral consensus sequences frequently exhibit variable coordinate boundaries, terminal truncations, and localized insertion-deletion artifacts resulting from disparate sequencing pipelines. Directly calculating k-mer frequencies from unaligned, raw inputs would introduce artificial mathematical distortions. Performing coordinate-level normalization ensured that subsequent substring counts reflected true mutational events across homologous genomic positions without relying on rigid positional correspondence during feature extraction.
The normalized nucleotide sequences were subsequently converted into machine-readable numerical feature vectors through k-mer frequency encoding. In computational genomics, a k-mer represents an uninterrupted substring of length k extracted from a sequence of length L, generating a total of L minus k plus 1 overlapping substrings. For an alphabet composed of the four canonical DNA bases—adenine, cytosine, guanine, and thymine—the complete vocabulary size equals four raised to the power of k. In this study, both 2-mer and 3-mer representations were systematically evaluated. For 3-mer encoding, the vocabulary comprises 64 distinct trinucleotide combinations, ranging from AAA and AAC through TTT. Each genome was mapped into a normalized frequency vector within 64-dimensional space, where each individual component represented the observed count of that specific triplet divided by the total sum of all k-mers in the sequence. This proportional scaling ensured that feature vectors remained scale-invariant, allowing objective comparisons across genomes exhibiting minor length variations.
To overcome the curse of dimensionality and extract meaningful structural patterns from the high-dimensional feature space, the research team deployed two contrasting dimensionality reduction techniques: linear Principal Component Analysis and non-linear t-Distributed Stochastic Neighbor Embedding. Principal Component Analysis was implemented by centering the data matrix, computing the sample covariance matrix, and projecting the samples onto the leading eigenvectors to capture primary linear axes of variance. For 2-mer feature representations, Principal Component Analysis retained 85% of the total sequence variance, while retaining 78% of the variance for 3-mer vectors. Concurrently, t-Distributed Stochastic Neighbor Embedding was applied to map the high-dimensional vectors into an interpretable two-dimensional manifold by modeling pairwise point similarities as conditional probabilities and minimizing the Kullback-Leibler divergence. Reflecting its superior capacity to preserve local non-linear geometric structures, t-Distributed Stochastic Neighbor Embedding achieved a lower Kullback-Leibler divergence of 0.742 on the 3-mer dataset compared to 0.891 on the 2-mer representations, indicating significantly enhanced neighborhood preservation.
Following dimensionality reduction, unsupervised clustering was conducted to partition the viral genomes into discrete groups based on shared sequence characteristics. Agglomerative Hierarchical Clustering was selected as the primary grouping mechanism, utilizing Ward’s minimum-variance linkage criterion alongside Euclidean and cosine distance metrics. Under Ward’s linkage formulation, pairs of clusters are iteratively merged to produce the smallest possible increase in total within-cluster sum of squared deviations, generating a hierarchical dendrogram that visualizes fine-grained evolutionary relationships. The optimal number of clusters was determined by analyzing Within-Cluster Sum of Squares via the Elbow Method alongside Average Silhouette profiles across candidate cluster counts from four to six. Both the Elbow Method inflection point and the Average Silhouette score trajectories consistently demonstrated an optimal partition at four clusters. Supplementary evaluations utilizing K-means and Partitioning Around Medoids confirmed this convergence, with K-means on 3-mer features reaching a peak Silhouette Score of 0.648 at four clusters.
To ensure structural validity and reproducibility, the resulting partitions were subjected to exhaustive internal metrics and stability evaluations. Internal cohesion and separation were verified through the Davies-Bouldin Index and the Calinski-Harabasz Index, where the 3-mer representation combined with t-Distributed Stochastic Neighbor Embedding achieved the lowest Davies-Bouldin score of 0.325 and the highest Calinski-Harabasz score of 2443.3, confirming compact, well-separated boundaries. Cluster stability was assessed using bootstrap resampling coupled with the Jaccard similarity coefficient across iterative perturbations. Furthermore, because SARS-CoV-2 accumulates mutations over time, the researchers addressed potential temporal confounding through time-controlled stratification. Genomes spanning early 2020 to late 2022 were divided into discrete temporal windows reflecting ancestral, Alpha and Delta, and Omicron waves, with balanced geographic representation. Independent clustering within each temporal stratum yielded Adjusted Rand Index and Normalized Mutual Information values comparable to full-dataset evaluations, proving that the four clusters reflected true underlying genomic architecture rather than temporal collection artifacts.
Biological interpretation of the four clusters was achieved by extracting representative sequences, performing multiple alignments with the MUSCLE tool, and mapping dominant mutations across viral open reading frames. Cluster 1, comprising 1,000 sequences, was dominated by key spike glycoprotein substitutions D614G (present in 215 sequences, or 21.5%) and P681H (present in 198 sequences, or 19.8%), mutations historically associated with Alpha and Delta lineages that enhance viral infectivity and cellular entry. Cluster 2 contained 560 sequences characterized by ORF1ab replicase mutations T1001I (165 sequences, 29.5%) and A1708D (142 sequences, 25.4%), reflecting early pandemic evolutionary lineages with minimal spike alterations. Cluster 3 encompassed 360 sequences defined by structural and accessory alterations, specifically Q57H in ORF3a (180 sequences, 50.0%) and R203K in the nucleocapsid gene (170 sequences, 47.2%). Cluster 4 constituted the largest partition with 1,722 sequences, aligning with Omicron-related genomes marked by spike receptor-binding domain mutations N501Y (142 sequences, 8.2%) and E484A (130 sequences, 7.5%), known to confer substantial immune evasion. Computational sensitivity analyses confirmed that computationally removing these single-point mutations altered inter-sequence Euclidean distances by 5% to 8%, proving that 64-dimensional k-mer vectors remain sensitive to individual functionally critical substitutions.
Geographic analysis revealed distinct regional transmission dynamics, highlighting clear differences between European and American outbreak patterns. Genome sequences originating from Spain and Italy demonstrated tight cohesion and reduced within-cluster variance, predominantly coalescing within Clusters 1 and 3. This compact spatial clustering reflects shared epidemiological timelines and interconnected transmission chains during overlapping European infection waves. In contrast, viral isolates from the United States displayed broader dispersion across the four clusters, consistent with decentralized travel introductions, variable regional interventions, and multiple independent lineage establishments. Despite this heterogeneity, significant genomic overlap was detected between American genomes and European sequences within Cluster 2, corroborating documented transatlantic viral dissemination during early pandemic phases. External validation against PANGO annotations confirmed strong concordance, proving that pairing 3-mer frequency vectors with non-linear dimensionality reduction and hierarchical clustering delivers an accurate, scalable framework for monitoring viral divergence and detecting emergent pathogen variants.
Subject of Research: Unsupervised machine learning and dimensionality reduction for comparative genomic clustering of regional SARS-CoV-2 variants
Article Title: Integrative PCA–t-SNE clustering framework for comparative genomic analysis of regional SARS-CoV-2 variants
Article References: Umamaheswari, S., Hemalatha, K., Thamizhazhagan, P., & Feroz Khan, A. B. (2026). Integrative PCA–t-SNE clustering framework for comparative genomic analysis of regional SARS-CoV-2 variants. Journal of Analytical Science and Technology, 17(1), Article 29. https://doi.org/10.1186/s40543-026-00551-2
Image Credits: AI Generated
DOI: 10.1186/s40543-026-00551-2
Keywords: SARS-CoV-2, Genomic Epidemiology, Unsupervised Clustering, k-mer Encoding, t-SNE, Principal Component Analysis, Hierarchical Clustering, Ward's Linkage, PANGO Lineages, Spike Protein Mutations, D614G Mutation, Silhouette Score, Davies-Bouldin Index, Calinski-Harabasz Index, Viral Evolution, Bioinformatics, GISAID, Genomic Surveillance
Cite Scienmag News
Teresa Odom. (December 2, 2026). Machine Learning Framework Clusters SARS-CoV-2 Genomes Into Four Lineage Groups. Scienmag. https://scienmag.com/machine-learning-framework-clusters-sars-cov-2-genomes-into-four-lineage-groups/
Teresa Odom. "Machine Learning Framework Clusters SARS-CoV-2 Genomes Into Four Lineage Groups." Scienmag, 2 December 2026, https://scienmag.com/machine-learning-framework-clusters-sars-cov-2-genomes-into-four-lineage-groups/. Accessed 2 December 2026.
Teresa Odom. "Machine Learning Framework Clusters SARS-CoV-2 Genomes Into Four Lineage Groups." Scienmag. December 2, 2026. https://scienmag.com/machine-learning-framework-clusters-sars-cov-2-genomes-into-four-lineage-groups/








