Abstract
The COVID-19 pandemic has been driven by the emergence and spread of SARS-CoV-2 variants that confer a selective advantage over previously circulating strains. Estimating these selective advantages typically involves analyzing a large number of positive test samples through genomic sequencing. In this study, we present Covvfit, a statistical model and software package for estimating the fitness advantages of multiple competing variants using sequencing data derived from wastewater samples from different locations. We use our model to reconstruct the dynamics of variant competition across successive waves of the pandemic using over 5,000 samples from wastewater sequencing data collected between 2021 and 2025. We show through a comparison with clinical data that wastewater-based estimates of fitness advantages are efficient and accurate. Furthermore, we demonstrate that once variants surpass a low detection threshold, Covvfit can accurately predict their future dynamics over long prediction horizons.
Introduction
To manage an evolving pandemic, public health officials must identify which viral variants possess a selective advantage—or "fitness"—driven by increased transmissibility or immune evasion. Historically, tracking these dynamics required the genomic sequencing of thousands of individual clinical samples. However, clinical sequencing is resource-intensive and has seen a significant global decline since the end of the public health emergency.
Wastewater-based epidemiology (WBE) provides a promising alternative by offering a pooled view of an entire population's viral landscape from a single sample. Despite its potential, wastewater data is inherently noisy and complex to interpret when multiple variants circulate simultaneously. Covvfit was developed to bridge this gap, providing a specialized computational framework to systematically estimate multi-strain competition and forecast variant dynamics directly from wastewater sequencing data.
Methodology: The Covvfit Framework
Covvfit utilizes a multistrain selection model rooted in the principles of evolutionary dynamics. The framework is built on several key technical innovations:
- Deterministic Modeling: The tool employs a system of ordinary differential equations (ODEs) to describe how variant frequencies evolve over time based on their relative fitness advantages.
- Quasi-Likelihood Approach: To account for the noise in sequencing and deconvolution (the process of identifying variants from pooled genetic material), Covvfit uses a quasi-likelihood method. This links idealized variant abundances to the actual data produced by deconvolution tools like Freyja or Lollipop.
- Joint Multi-Location Modeling: A core strength of the model is its ability to process data from multiple locations simultaneously. It assumes that a variant’s biological fitness advantage remains constant across different cities while allowing for unique "introduction times" in each location, which significantly enhances the model's robustness against local sampling artifacts.
- High-Performance Computing: Built in Python using the JAX library, Covvfit leverages automatic differentiation and high-speed optimization. This allows the model to process years of national-scale data—nearly 95,000 data points—in approximately 10 seconds on a standard laptop.
Experimental Validation
The researchers validated Covvfit using a comprehensive dataset from the Swiss Wastewater Monitoring Program, comprising 5,266 samples collected from six Swiss cities (including Zurich and Geneva) between 2021 and 2025. This period covered the emergence of 18 major variants. To verify the accuracy of the wastewater-derived estimates, the results were compared against genomic sequences from the LAPIS public database, which served as the clinical "gold standard."
Key Results and Insights
Efficiency and Accuracy
Wastewater-based estimates generated by Covvfit reached the same statistical conclusions as clinical data while requiring orders of magnitude fewer samples. Specifically, the model achieved comparable accuracy using only 29 wastewater samples per week, compared to the 1,250 clinical samples per week required by traditional methods. During major transitions, such as the shift from BA.1 to BA.2, the fitness advantage curves derived from wastewater were nearly identical to those from clinical sources.
The 5% Predictive Threshold
The model demonstrates remarkable predictive power once a new variant reaches a relative abundance of approximately 5%. At this threshold, the fitness estimate stabilizes, allowing Covvfit to accurately forecast the variant's trajectory for horizons of up to 90 days. Even before a variant can be perfectly quantified, the model is highly effective at ranking competing strains, correctly identifying which variant will eventually become dominant.
Limitations and Future Directions
While Covvfit represents a significant advancement in genomic surveillance, it currently has some limitations:
- Clinical Dependency: The deconvolution of wastewater data still relies on mutational "fingerprints" defined by clinical sequencing. Therefore, WBE currently complements rather than entirely replaces clinical surveillance for identifying novel mutations.
- Deterministic Constraints: The model may struggle with very small populations where random genetic drift outweighs selective advantage.
- Static Fitness: The model assumes fitness is fixed over the observation period, meaning it does not currently account for sudden shifts in population immunity, such as those caused by new vaccine rollouts.
Future work aims to adapt Covvfit for other pathogens with high genomic diversity, such as influenza, potentially establishing a more sustainable and permanent infrastructure for global public health monitoring.
Summary updated