by Nathan Sesti, Juan Jose Garau-Luis
This paper was submitted and accepted to the ICML 2021 Time Series Workshop.
The spread of COVID-19 has coincided with the rise of Graph Neural Networks (GNNs), leading to several studies proposing this method to better forecast the evolution of the pandemic. Many of the models also include Long Short Term Memory (LSTM) networks, a common tool for time series forecasting. In this work, we further investigate their integration by implementing GNNs within the gates of an LSTM and exploiting spatial information. In addition, we introduce a skip connection which proves critical to jointly capture the spatial and temporal patterns in the data. We validate our model on data of daily COVID-19 cases in 37 European nations for the last 472 days and show superior performance compared to state-of-the-art graph time series models. This area of research has important applications to policy-making and we analyze its potential for pandemic resource control.
- Tweak the parameters in
parameters.py
. - Run
covid_recurrent.py
to train and predict. - A .json file containing losses and other relevant training data is saved under
results/
. - Use
reports.py
to convert one or more results files into a matplotlib graphic.
Run install_torch_geometric.sh
to install PyTorch Geometric. Install other dependencies using pip
. The code uses PyTorch Geometric and PyTorch Geometric Temporal modules.
Datasets used in this project include:
- Facebook Social Connectedness Index - Edge weight feature.
- Population-weighted european state centers - Used to calculate geodesic distance, an edge weight feature.
- Global Transnational Mobility Dataset - Edge weight feature
- John Hopkins COVID-19 Data Repository - Daily cases and other node features used in prediction
All of this repository's code is made available under the MIT license. See LICENSE
file for more detail.