# Difference between revisions of "Influenza Forecasting Framework based on Gaussian Processes"

## Abstract

This paper presents a novel framework for seasonal epidemic forecasting using Gaussian process regression. Resulting retrospective forecasts, trained on a subset of the publicly available CDC influenza-like-illness (ILI) data-set, outperformed four state-of-the-art models when compared using the official CDC scoring rule (log-score).

## Background

Each year, the seasonal influenza epidemic affects public health at a massive scale, resulting in 38 million cases, 400 000 hospitalizations, and 22 000 deaths in the United States in 2019/20 alone ([1]). Given this, reliable forecasts of future influenza development are invaluable, because they allow for improved public health policies and informed resource development and allocation.

## Related Work

Given the value of epidemic forecasts, the CDC regularly publishes ILI data and has funded a seasonal ILI forecasting challenge. This challenge has lead to four state of the art models in the field; MSS, a physical susceptible-infected-recovered model with assumed linear noise [4]; SARIMA, a framework based on seasonal auto-regressive moving average models [2]; and LinEns, an ensemble of three linear regression models.

## Motivation

It has been shown that LinEns forecasts outperform the other frameworks on the ILI data-set. However, this framework assumes a deterministic relationship between the epidemic week and its case count, which does not reflect the stochastic nature of the trend. Therefore, it is natural to ask whether a similar framework that assumes a stochastic relationship between these variables would provide better performance. This motivated the development of the proposed Gaussian process regression framework, and the subsequent performance comparison to the benchmark models.

## Gaussian Process Regression

Consider the following set up: let $X = [\mathbf{x}_1,\ldots,\mathbf{x}_n]$ $(d\times n)$ be your training data, $\mathbf{y} = [y_1,y_2,\ldots,y_n]^T$ be your noisy observations where $y_i = f(\mathbf{x}_i) + \epsilon_i$, $(\epsilon_i:i = 1,\ldots,n)$ i.i.d. $\sim \mathcal{N}(0,{\sigma}^2)$, and $f$ is the trend we are trying to model (by $\hat{f}$). Let $\mathbf{x}^*$ $(d\times 1)$ be your test data point, and $\hat{y} = \hat{f}(\mathbf{x}^*)$ be your predicted outcome.

Instead of assuming a deterministic form of $f$, and thus of $\mathbf{y}$ and $\hat{y}$ (as classical linear regression would, for example), Gaussian process regression assumes $f$ is stochastic. More precisely, $\mathbf{y}$ and $\hat{y}$ are assumed to have a joint prior distribution. Indeed, we have

$$(\mathbf{y},\hat{y}) \sim \mathcal{N}(0,\Sigma(X,\mathbf{x}^*))$$

where $\Sigma(X,\mathbf{x}^*)$ is a matrix of covariances dependent on some kernel function $k$. In this paper, the kernel function is assumed to be Gaussian and takes the form

$$k(\mathbf{x}_i,\mathbf{x}_j) = \sigma^2\exp(-\frac{1}{2}(\mathbf{x}_i-\mathbf{x}^j)^T\Sigma(\mathbf{x}_i-\mathbf{x}_j)).$$

It is important to note that this gives a joint prior distribution of functions (Fig. 1 left, grey curves).

By restricting this distribution to contain only those functions (Fig. 1 right, grey curves) that agree with the observed data points $\mathbf{x}$ (Fig. 1 right, solid black) we obtain the posterior distribution for $\hat{y}$ which has the form

$$p(\hat{y} | \mathbf{x}^*, X, \mathbf{y}) \sim \mathcal{N}(\mu(\mathbf{x}^*,X,\mathbf{y}),\sigma(\mathbf{x}^*,X))$$

Figure 1. Gaussian process regression: Select the functions from your joint prior distribution (left, grey curves) with mean $0$ (left, bold line) that agree with the observed data points (right, black bullets). These form your posterior distribution (right, grey curves) with mean $\mu(\mathbf{x})$ (right, bold line). Red triangle helps compare the two images (location marker) [3].

## Data-set Description

Let $d_j^i$ denote the number of epidemic cases recorded in week $j$ of season $i$, and let $j^*$ and $i^*$ denote the current week and season, respectively. The ILI data-set contains $d_j^i$ for all previous weeks and seasons, up to the current season with a 1-3 week publishing delay. Note that a season refers to the time of year when the epidemic is prevalent (e.g. an influenza season lasts 30 weeks and contains the last 10 weeks of year k, and the first 20 weeks of year k+1). The goal is to predict $\hat{y}_T = \hat{f}_T(x^*) = d^{i^*}_{j* + T}$ where $T, \;(T = 1,\ldots,K)$ is the target week (how many weeks into the future that you want to predict).

To do this, a design matrix $X$ is constructed where each element $X_{ji} = d_j^i$ corresponds to the number of cases in week (row) j of season (column) i. The training outcomes $y_{i,T}, i = 1,\ldots,n$ correspond to the number of cases that were observed in target week $T,\; (T = 1,\ldots,K)$ of season $i, (i = 1,\ldots,n)$.

## Proposed Framework

To compute $\hat{y}$, the following algorithm is executed.

1. Let $J \subseteq \{j^*-4 \leq j \leq j^*\}$ (subset of possible weeks).
2. Assemble the Training Set $\{X_J, \mathbf{y}_{T,J}\}$
3. Train the Gaussian process
4. Calculate the distribution of $\hat{y}_{T,J}$ using $p(\hat{y}_{T,J} | \mathbf{x}^*, X_J, \mathbf{y}_{T,J}) \sim \mathcal{N}(\mu(\mathbf{x}^*,X,\mathbf{y}_{T,J}),\sigma(\mathbf{x}^*,X_J))$
5. Set $\hat{y}_{T,J} =\mu(x^*,X_J,\mathbf{y}_{T,J})$
6. Repeat steps 2-5 for all sets of weeks $J$
7. Determine the best 3 performing sets J (on the 2010/11 and 2011/12 validation sets)
8. Calculate the ensemble forecast by averaging the 3 best performing predictive distribution densities i.e. $\hat{y}_T = \frac{1}{3}\sum_{k=1}^3 \hat{y}_{T,J_{best}}$

## Results

To demonstrate the accuracy of their results, retrospective forecasting was done on the ILI data-set. In other words, the Gaussian process model was trained assuming a previous season (2012/13) was the current season. In this fashion, the forecast could be compared to the already observed true outcome.

To produce a forecast for the entire 2012/13 season, 30 Gaussian processes were trained (each influenza season has 30 test points $\mathbf{x^*}$) and a curve connecting the predicted outputs $y_T = \hat{f}(\mathbf{x^*)}$ was plotted (Fig.2, blue line). As shown in Fig.2, this forecast (blue line) was reliable for both 1 (left) and 3 (right) week targets, given that the 95% prediction interval (Fig.2, purple shaded) contained the true values (Fig.2, red x's) 95% of the time.

Figure 2. Retrospective forecasts and their uncertainty: One week retrospective influenza forecasting for two targets (T = 1, 3). Red x’s are the true observed values, and blue lines and purple shaded areas represent point forecasts and 95% prediction intervals, respectively.

Moreover, as shown in Fig.3, the novel Gaussian process regression framework outperformed all benchmarks for four different targets $(T = 1,\ldots, 4)$ , including LinEns, when compared using the official CDC scoring criterion log-score. Log-score describes the logarithmic probability of the forecast being within in an interval around the true value.

Figure 3. Average log-score gain of proposed framework: Each bar shows the mean seasonal log-score gain of the proposed framework vs. the given state-of-the-art model, and each panel corresponds to a different target week $T = 1,...4$.

## Conclusion

This paper presented a novel framework for forecasting seasonal epidemics using Gaussian process regression that outperformed multiple state-of-the-art forecasting methods on the CDC's ILI data-set. Hence, this work may play a key role in future influenza forecasting and as result, the improvement of public health policies and resource allocation.

## Critique

The proposed framework provides a computationally efficient method to forecast any seasonal epidemic count data that is easily extendable to multiple target types. In particular; one can compute key parameters such as the peak infection incidence ($\hat{y} = max_{0 \leq j \leq 52} d^i_j$), the timing of the peak infection incidence ($\hat{y} = argmax_{0 \leq j \leq 52} d^i_j$) and the final epidemic size of a season ($\hat{y} = \sum_{j=1}^{52} d^i_j$). However, given it is not a physical model, it cannot provide insights on parameters describing the disease spread. Moreover, the framework requires training data and hence, is not applicable for non-seasonal epidemics.

## References

[2] Ray, E. L., Sakrejda, K., Lauer, S. A., Johansson, M. A.,and Reich, N. G. (2017).Infectious disease prediction with kernel conditional densityestimation.Statistics in Medicine, 36(30):4908–4929.

[3] Schulz, E., Speekenbrink, M., and Krause, A. (2017).A tutorial on gaussian process regression with a focus onexploration-exploitation scenarios.bioRxiv.

[4] Zimmer, C., Leuba, S. I., Cohen, T., and Yaesoubi, R.(2019).Accurate quantification of uncertainty in epidemicparameter estimates and predictions using stochasticcompartmental models.Statistical Methods in Medical Research,28(12):3591–3608.PMID: 30428780.