One email each morning — yesterday's AI, sortedGet it in your inbox

METAL LAB

GenEx: A Graph-Based Representational Paradigm for SARS-CoV-2 Variant Detection via Codon Co-occurrence Networks

arXiv:2608.182382026-08-20

Turning viral gene sequences into codon relationship maps to tell coronavirus variants apart

Older methods for distinguishing COVID-19 variants (Beta, Gamma, Delta, Omicron) treated gene sequences as flat strings and compared them letter by letter, missing complex internal relationships. The researchers built a pipeline called GenEx that splits gene sequences into codons (three-letter units) and builds a graph—a network of dots and connecting lines—showing how codons relate to their neighbors. From these graphs they extracted more than 25 structural features and trained 23 machine learning models, reaching up to 98.75% accuracy at telling the variants apart.

What they did

  1. Gene sequences were cut into codons, then turned into graphs two ways: LAPCG links each codon only to its immediate neighbor, while MSCG links codons that appear together across multiple distances.
  2. From each graph they pulled over 25 features, including basic structural measures like node count, shortest path length, and density, plus spectral (eigenvalue-based) properties.
  3. They used squared singular values (σ²) from singular value decomposition instead of standard eigenvalues, which made the differences between variants stand out more clearly.
  4. Tested across 23 machine learning models, the MSCG method performed best, hitting 98.75% accuracy while also running 1.88 times faster than the standard PMI-based approach.
  5. Each variant showed its own distinct graph fingerprint—for example Omicron's matching number was 18 times higher than other variants, while Delta had the most stable, consistent structure—revealing evolutionary patterns invisible to sequence-only phylogenetics.
Fig. 1: Overview of the GenEx framework for SARS-CoV-2 variant detection using a graph-based approach. The pipeline begins with genome sequence acquisition from NCBI GenBank, followed by preprocessing steps including quality filtering, codon segmentation into triplets, and sequence alignment. Codon co-occurrence graphs are then constructed using two methods—LAPCG (linear-time adjacency-based) and MSCG (multi-scale co-occurrence)—to form weighted undirected graphs. From these graphs, both topological and spectral features are extracted to create high-dimensional feature vectors. These features are used to train and evaluate multiple machine learning models for variant classification. The framework outputs include high-accuracy variant predictions, feature importance analysis, statistical validation, structural graph insights, and evolutionary pattern comparisons.
Fig. 1: Overview of the GenEx framework for SARS-CoV-2 variant detection using a graph-based approach. The pipeline begins with genome sequence acquisition from NCBI GenBank, followed by preprocessing steps including quality filtering, codon segmentation into triplets, and sequence alignment. Codon co-occurrence graphs are then constructed using two methods—LAPCG (linear-time adjacency-based) and MSCG (multi-scale co-occurrence)—to form weighted undirected graphs. From these graphs, both topological and spectral features are extracted to create high-dimensional feature vectors. These features are used to train and evaluate multiple machine learning models for variant classification. The framework outputs include high-accuracy variant predictions, feature importance analysis, statistical validation, structural graph insights, and evolutionary pattern comparisons.
TABLE I: Comparison of Prior Work and Proposed Method
AspectPrior WorkOur Method
Biological unitNucleotide / segmentCodon
RepresentationSequence / static graphCo-occurrence graph
Temporal modelingNoYes
Learning frameworkCNN / Transformer / rulesML on graph features
ExplainabilityPost-hocIntrinsic (graph-based)
Multi-task reuseLimitedYes
Fig. 2: Individual and Combined structural profiles for Beta, Gamma, Delta, and Omicron
Fig. 2: Individual and Combined structural profiles for Beta, Gamma, Delta, and Omicron
TABLE II: Benchmark summary: accuracy and runtime across graph construction methods.
MethodBest Model(s)AccuracyRuntime (s)
PMI baselineCatBoost96.25%272.3
LAPCGLightGBM, Grad. Boost96.25%196.2
MSCGMLP, Bagging Classifier98.75%144.6
Fig. 3: Parallel-coordinate comparison of ten structural graph features across four SARS-CoV-2 variants of concern (Beta, Oct 2020; Gamma, Nov 2020; Delta, Apr 2021; Omicron, Nov 2021). Each polyline represents one variant; color encodes variant class. The ten axes correspond to: second eigenvalue (sev), average shortest path length (aspl), Wiener index (wi), top eigenvalue (tev), radius (r), graph energy (ge), diameter (d), average clustering coefficient (aclu), average closeness centrality (aclo), and transitivity (t). All values are min–max normalised to [0,1]. Omicron consistently occupies the highest band across spectral and centrality axes (ge, aclu, aclo), while Delta remains near the minimum on most features, highlighting a sharp structural divergence between these two variants.
Fig. 3: Parallel-coordinate comparison of ten structural graph features across four SARS-CoV-2 variants of concern (Beta, Oct 2020; Gamma, Nov 2020; Delta, Apr 2021; Omicron, Nov 2021). Each polyline represents one variant; color encodes variant class. The ten axes correspond to: second eigenvalue (sev), average shortest path length (aspl), Wiener index (wi), top eigenvalue (tev), radius (r), graph energy (ge), diameter (d), average clustering coefficient (aclu), average closeness centrality (aclo), and transitivity (t). All values are min–max normalised to [0,1]. Omicron consistently occupies the highest band across spectral and centrality axes (ge, aclu, aclo), while Delta remains near the minimum on most features, highlighting a sharp structural divergence between these two variants.
TABLE III: Comparison of GenEx with gene annotation tools and SARS-CoV-2 variant classification methods. Gene annotation accuracies reflect nucleotide-level sensitivity; variant classification accuracies reflect multi-class accuracy. † Whole-genome support assumes availability of a closely related reference.
MethodTypeTaskAccuracy (reported)Whole GenomeReference
GENSCANAb initio HMMGene annotation∼70 - 80% (protein-level)[2]
GeneMark-ES/ETAb initio (self-train)Gene annotation35.7 – 75.8% (nucleotide)[10]
SNAPAb initio HMMGene annotation77 - 80% (nucleotide)[9]
GlimmerHMMAb initio HMMGene annotation∼9 – 43% (some datasets)[11]
MAKER2Annotation pipelineGene annotation68.60% (nucleotide)[8]
AUGUSTUSAb initio + evidenceGene annotation82–92% (gene-level)[14]
BRAKER2Hybrid (RNA-seq + HMM)Gene annotation>AUGUSTUS (+2–3%)[7]
Helixer (DL)Deep learningGene annotation86.8% (reported)[15]
k-mer + SVMTraditional MLVariant classification∼92.01%Various
CNN-LSTMDeep learningVariant classification∼95–97%PartialVarious
GenEx LAPCG (Ours)Graph + ML (O⁡(n))Variant classification96.25%This work
GenEx MSCG (Ours)Graph + ML (multi-scale)Variant classification98.75%This work
Fig. 4: Hierarchical Clustering of SARS-CoV-2 Variants by Graph Features. The ten features in x-axis correspond to: second eigenvalue (sev), average shortest path length (aspl), Wiener index (wi), top eigenvalue (tev), radius (r), graph energy (ge), diameter (d), average clustering coefficient (aclu), average closeness centrality (aclo), and transitivity (t). All values are min–max normalised to [0,1]. Omicron consistently occupies the highest band across spectral and centrality axes (ge, aclu, aclo), while Delta remains near the minimum on most features, highlighting a sharp structural divergence between these two variants.
Fig. 4: Hierarchical Clustering of SARS-CoV-2 Variants by Graph Features. The ten features in x-axis correspond to: second eigenvalue (sev), average shortest path length (aspl), Wiener index (wi), top eigenvalue (tev), radius (r), graph energy (ge), diameter (d), average clustering coefficient (aclu), average closeness centrality (aclo), and transitivity (t). All values are min–max normalised to [0,1]. Omicron consistently occupies the highest band across spectral and centrality axes (ge, aclu, aclo), while Delta remains near the minimum on most features, highlighting a sharp structural divergence between these two variants.

Why it matters

This approach can classify large-scale viral genome data quickly without needing a reference sequence or alignment step, making it practical for near real-time surveillance of new variants as they emerge. It also offers a framework that could extend beyond COVID-19 to other viruses and organisms, adding a structural lens to genomic analysis.

Terms in this paper

  • Codon · a set of three nucleotide letters that encodes one amino acid
  • PMI (Pointwise Mutual Information) · a measure of how much more often two items appear together than expected by chance
  • Singular Value Decomposition (SVD) · a mathematical technique that breaks a matrix into components to reveal its core structure
  • ANOVA · a statistical test for whether differences between group averages are significant
  • Matching number · the size of the largest set of non-overlapping connections in a graph

Original abstract (English)

Genomic analysis on viruses such as SARS-CoV-2 variants: Beta, Gamma, Delta, and Omicron is heavily dominated by classical bioinformatics methods, including Sequence Alignment, Phylogenetic Analysis, and Mutation Frequency Statistics. These approaches use pairwise codon or nucleotide distance matrices to analyze gene sequences, treating them as linear strings rather than capturing their complex contextual interdependencies. We proposed GenEx, a pip

Authors · Arefin Amin, Labiba Faiza Karim, M. Monir Uddin

Read on arXiv

Latest papers

All papers →

Latest from METAL LAB

Figures: Arefin Amin et al., arXiv:2608.18238, CC BY 4.0