Abstract
The standard way to estimate the parameters $\Theta_\text{SEIR}$ (e.g., the transmission rate $\beta$) of an SEIR model is to use grid search, where simulations are performed on each set of parameters, and the parameter set leading to the least $L_2$ distance between predicted number of infections and observed infections is selected. This brute-force strategy is not only time consuming, as simulations are slow when the population is large, but also inaccurate, since it is impossible to enumerate all parameter combinations. To address these issues, in this paper, we propose to transform the non-differentiable problem of finding optimal $\Theta_\text{SEIR}$ to a differentiable one, where we first train a recurrent net to fit a small number of simulation data. Next, based on this recurrent net that is able to generalize SEIR simulations, we are able to transform the objective to a differentiable one with respect to $\Theta_\text{SEIR}$, and straightforwardly obtain its optimal value. The proposed strategy is both time efficient as it only relies on a small number of SEIR simulations, and accurate as we are able to find the optimal $\Theta_\text{SEIR}$ based on the differentiable objective. On two COVID-19 datasets, we observe that the proposed strategy leads to significantly better parameter estimations with a smaller number of simulations.
Introduction
The SEIR (Susceptible, Exposed, Infectious, Recovered) model is a cornerstone of epidemiological forecasting, particularly for diseases like COVID-19. However, its utility is constrained by the difficulty of estimating key parameters such as the transmission rate ($\beta$), infection rate ($\kappa$), and recovery rate ($\gamma$). The conventional approach, grid search, involves running numerous discrete simulations to find the parameter set that minimizes the $L_2$ distance to observed data. This method is computationally expensive—scaling with population size and simulation count—and inherently limited by the discrete nature of the search space. This paper proposes a novel framework that utilizes Recurrent Neural Networks (LSTMs) to transform parameter estimation into a differentiable optimization problem, enhancing both speed and accuracy.
Methodology
The proposed framework replaces the non-differentiable simulation process with a differentiable surrogate model. The process involves three key steps:
- Data Generation: A limited set of simulations ($M'$) is performed using random parameters to create a training dataset.
- Surrogate Training: An LSTM is trained to mimic the SEIR dynamics. It incorporates time-varying mobility networks, processed via DIFFPOOL graph pooling, to capture spatial transmission patterns.
- Differentiable Optimization: With the LSTM weights frozen, the SEIR parameters are treated as learnable inputs. Gradient descent is applied to optimize these parameters against real-world infection data.
The core innovation is the "differentiable bridge": while the SEIR simulation itself is non-differentiable, the neural network surrogate is. This allows for the application of Stochastic Gradient Descent (SGD) to find optimal parameters in a continuous space.
Experimental Results
The framework was evaluated using COVID-19 datasets from China and the United States. In the China dataset, the LSTM-based approach achieved a lower $L_2$ error (13.1) with only 100 simulations, compared to a vanilla grid search (13.5) requiring 5,000 simulations. The surrogate model effectively captures the underlying physics of disease spread, providing a smoother and more accurate fit to reported cases than traditional methods.
Conclusion
By bridging the gap between non-differentiable simulations and gradient-based optimization, this work offers a significant advancement in epidemiological modeling. The integration of mobility networks and the use of LSTMs as surrogates allow for precise parameter estimation with minimal computational overhead. Future research will explore the applicability of this differentiable surrogate approach to other complex simulation-based fields, such as climate science or macroeconomics.
Summary updated