Digital twins based on bidirectional LSTM and GAN for modelling COVID-19

César Quilodrán Casas, Vinicius L. S. Silva, Rossella Arcucci, Claire E. Heaney, Yike Guo, Christopher C. Pain

TL;DR

This paper introduces two machine learning-based "digital twins"—a data-corrected Bidirectional LSTM and a Predictive GAN—to serve as fast, accurate surrogates for computationally heavy spatial epidemiological models. By compressing high-dimensional simulation data, these models drastically reduce computation time, enabling interactive exploration of pandemic control measures and real-time forecasting.

What Problem Does This Paper Address?

Traditional epidemiological models, such as agent-based or differential equation-based SEIR models, are vital for understanding how diseases spread. However, when scaled to large populations with high spatial resolution (e.g., tracking millions of individuals moving across a city), these models become computationally intractable due to massive degrees of freedom and strict time-step constraints.

To bridge this gap, the authors explore non-intrusive reduced-order models (NIROMs), or "digital twins." The goal is to build a machine learning surrogate that can accurately mimic complex, localized disease dynamics at a fraction of the computational cost, allowing researchers and policymakers to interactively test intervention strategies.

Methods

The authors first extend the classic SEIRS framework to account for spatial variation via diffusion terms and categorize the population into two behavioral groups: "Home" (stationary, lower risk) and "Mobile" (capable of traveling to riskier regions).

Figure 1: Key variables and parameters in the SEIRS model representing the compartments Susceptible (S),

To handle the high-dimensional output of this spatial simulation (800 variables per time step across a grid), they use Principal Component Analysis (PCA) to compress the data into 15 principal components, capturing over 99.9% of the variance. They then evaluate two distinct deep learning approaches to predict time-series evolution within this compressed latent space:

  1. BDLSTM+BLUE: A Bidirectional Long Short-Term Memory network paired with a Best Linear Unbiased Estimator (BLUE) data-assimilation step. The BLUE step constantly corrects the network's trajectory using incoming simulation data.
  2. Predictive GAN: A Generative Adversarial Network that treats time-series prediction as an image-generation problem. It optimizes a latent noise vector to match past known states and project future dynamics without needing continuous external data correction.

Datasets

The models are trained and evaluated on synthetic spatiotemporal data generated by the authors' extended SEIRS model. The simulation tracks an idealized 100km × 100km town mapped onto a 10×10 grid over a 45-day period. Crucially, the underlying biological parameters—such as the 4.5-day median incubation rate—are calibrated using official UK government COVID-19 data.

Key Insights and Ideas

  • LSTMs Need a Chaperone: Standard BDLSTMs suffer from error accumulation and diverge quickly (within ~30 iterations) when forced to predict future states auto-regressively. Integrating the BLUE data-correction loop is essential to keep the forecasts stable and aligned with reality.
  • GANs Can Fly Solo: Unlike the BDLSTM, the Predictive GAN can generate highly realistic long-term dynamics using only the first 8 time steps as an initial constraint, completely eliminating the need for a continuous stream of ground-truth data.
  • Complementary Strengths: The two architectures excel at different things. The GAN is significantly better at predicting the remaining Susceptible population, while the data-corrected BDLSTM is superior at tracking the active Exposed, Infectious, and Recovered compartments.

Key Results

  • Massive Speedups: The BDLSTM+BLUE framework achieved a 28x speedup over the original SEIRS simulation, executing a 9-step forecast in just $1.6 \times 10^{-2}$ seconds.
  • Inference Efficiency: BDLSTM+BLUE proved to be two orders of magnitude faster during inference than the Predictive GAN ($1.9 \times 10^0$ seconds), because the GAN requires an active online optimization loop to find the correct latent vector for each step.
  • Baseline Comparison: Both digital twins vastly outperformed a standard Feed-Forward Network (FFN) baseline, which completely failed to generalize to later stages of the pandemic (yielding an unviable RMSE of $\sim 10^9$ people compared to $\sim 10^1$ for the digital twins).

Limitations and Future Work

A primary limitation of the BDLSTM+BLUE model is its dependency on a continuous stream of simulation data for trajectory correction. Conversely, while the Predictive GAN is autonomous, its online optimization step makes it computationally slower during inference.

Future work will focus on combining these two approaches—embedding time-series information from an LSTM directly into a GAN framework—to eliminate the online optimization bottleneck. The authors also plan to scale these frameworks to larger, real-world urban datasets with more complex epidemiological compartments.

Summary updated

Abstract

The outbreak of the coronavirus disease 2019 (COVID-19) has now spread throughout the globe infecting over 150 million people and causing the death of over 3.2 million people. Thus, there is an urgent need to study the dynamics of epidemiological models to gain a better understanding of how such diseases spread. While epidemiological models can be computationally expensive, recent advances in machine learning techniques have given rise to neural networks with the ability to learn and predict complex dynamics at reduced computational costs. Here we introduce two digital twins of a SEIRS model applied to an idealised town. The SEIRS model has been modified to take account of spatial variation and, where possible, the model parameters are based on official virus spreading data from the UK. We compare predictions from a data-corrected Bidirectional Long Short-Term Memory network and a predictive Generative Adversarial Network. The predictions given by these two frameworks are accurate when compared to the original SEIRS model data. Additionally, these frameworks are data-agnostic and could be applied to towns, idealised or real, in the UK or in other countries. Also, more compartments could be included in the SEIRS model, in order to study more realistic epidemiological behaviour.
BibTeX
@article{casas2022digital,
  author = {César Quilodrán Casas and Vinicius L. S. Silva and Rossella Arcucci and Claire E. Heaney and Yike Guo and Christopher C. Pain},
  title = {{Digital twins based on bidirectional LSTM and GAN for modelling COVID-19}},
  journal = {Neurocomputing},
  year = {2022},
  doi = {10.1016/j.neucom.2021.10.043},
}
Figure