Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

A scalable variational method for estimating the latent infection-rate field of an outbreak

  • Wyatt H. Bridgman,

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Writing – original draft, Writing – review & editing

    Affiliation Sandia National Laboratories, Livermore, California‌‌, United States of America

  • Cosmin Safta,

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Supervision, Validation, Writing – review & editing

    Affiliation Sandia National Laboratories, Livermore, California‌‌, United States of America

  • Jaideep Ray

    Roles Conceptualization, Formal analysis, Funding acquisition, Supervision, Validation, Writing – review & editing

    jairay@sandia.gov

    Affiliation Sandia National Laboratories, Livermore, California‌‌, United States of America

Abstract

In this paper, we explore whether the infection-rate of a disease can serve as a robust monitoring variable in epidemiological surveillance algorithms. The infection-rate is dependent on population mixing patterns that do not vary erratically day-to-day; in contrast, daily case-counts used in contemporary surveillance algorithms are corrupted by reporting errors. The technical challenge lies in estimating the latent infection-rate from case-counts. Here we devise a Bayesian method to estimate the infection-rate across multiple adjoining areal units, and then use it, via an anomaly detector, to discern a change in epidemiological dynamics. We extend an existing model for estimating the infection-rate in an areal unit by incorporating a Markov random field model, so that we may estimate infection-rates across multiple areal units, while preserving spatial correlations observed in the epidemiological dynamics. To carry out the high-dimensional Bayesian inverse problem, we develop an implementation of mean-field variational inference specific to the infection model and integrate it with the random field model to incorporate correlations across counties. The method is tested on estimating the COVID-19 infection-rates across all 33 counties in New Mexico using data from the summer of 2020, and then employing them to detect the arrival of the Fall 2020 COVID-19 wave. We perform the detection using a temporal algorithm that is applied county-by-county. We also show how the infection-rate field can be used to cluster counties with similar epidemiological dynamics.

1 Introduction

There have been many attempts to estimate the infection-rate of an outbreak [13], especially for the COVID-19 pandemic, including our own work [46]. In these studies, the infection-rate is modeled as a time-varying function, which is estimated by fitting a disease model to observed data, e.g., case-counts of symptomatic (diagnosed) individuals per day. The infection-rate is used to forecast the outbreak over a small time horizon, e.g., two weeks, and then compared with the data from that period. This ability to compare observed case-counts with model forecasts can be used to fashion an outbreak detector for disease surveillance – if the model forecasts and reported case-counts do not match, it could indicate a change in the epidemiological dynamics, either due to a change in human mixing patterns, e.g., due to lock-downs [6] or due to a new variant of the pathogen [4]. A shortcoming of these studies is that they do not contain any spatial information on the variation of the infection-rate, which impairs their usefulness in disease surveillance – public health policy is determined globally (e.g., for a nation) and then adapted and applied locally (e.g., in a county). Being able to estimate an infection-rate field, defined over multiple areal units (e.g., counties), can thus be very helpful. However, the task is challenging, as the problem now requires one to use epidemiological data, e.g., case-counts, collected from each areal unit, which could have a small population. Such data, gathered from small populations, tends to be contaminated with high-variance noise (reporting errors) and has to be compensated for by imposing the spatial patterns extant in epidemiological dynamics caused by mixing of humans between neighboring areal units. In addition, the estimation procedure will need to smoothen the noisy case-count data.

In this paper, we develop a method to estimate the latent infection-rate field of an outbreak. Though general, we demonstrate it on COVID-19 data from the 33 counties of New Mexico (NM). It consists of two parts (1) an epidemiological model that employs a parametrized spatio-temporal model of the infection-rate field and (2) a scalable, if approximate, mean-field variational inference (MFVI) algorithm that allows us to estimate the parameters of the infection-rate field, the noise and the spatial variation over all of NM. The epidemiological model, which will be derived in § 3.1, is an extension of an older model [4,6] with a Gaussian Markov Random Field (GMRF) model to represent spatial correlations. This model has been tested for a small problem consisting of three adjoining NM counties using adaptive Markov chain Monte Carlo (AMCMC [7]) as the estimation procedure. AMCMC does not make any assumptions regarding the nature of the posterior distributions of the parameters being estimated. This small study is available as a preprint [8] and has been published [9].

AMCMC will not scale to all 33 NM counties, necessitating the use of MFVI. In MFVI, one imputes a parametrized posterior distribution for the infection-rate field; in our case, we model the posterior distribution of (transformations of) our parameters as independent Gaussians of unknown means and standard deviations. These means and standard deviations are estimated by minimizing an objective function using an iterative, gradient-based algorithm. We will test our method by reconstructing the time-dependent infection-rate field over all 33 counties of NM, with case-count data of diverse qualities, collected during 2020. During that year, the COVID-19 outbreak in NM consisted of 3 waves, of which the “Fall 2020” wave that started around September 15th was the largest; these are plotted in Fig 1 (left). We will use the observational data from the “Summer 2020” wave, spanning June 1st to September 15th, to estimate the infection-rate field, and fashion a detector for the Fall 2020 wave with it. Briefly, we will use the infection-rate field, as it was computed on September 15th to forecast two weeks ahead, and compare with the data. They will not agree, as the infection-rate field has no information about the Fall 2020 wave; being able to isolate this disagreement quickly is the figure of merit for the detector. This detection was performed for Bernalillo, Santa Fe and Valencia counties in Ref. [8,9] and the Fall 2020 wave was detected within a week of September 15th.

thumbnail
Fig 1. Left: The three COVID-19 waves in NM in 2020.

We see the Spring wave, ending around June 1st, followed by the Summer wave and the Fall wave that started around September 15th. Our aim is to estimate the infection-rate field during the Summer wave and detect the Fall 2020 wave. The solid vertical line denotes September 15th and the dashed one is placed at August 15th. Right: Plots of case-counts from three counties. While Bernalillo and Santa Fe show reasonably smooth variation, the two large peaks from Cibola are clearly erroneous.

https://doi.org/10.1371/journal.pone.0350090.g001

The research questions of this study are:

  • How can MFVI be used to solve the estimation problem efficiently, given that many of the parameters are non-negative? Can transformations be used to render this a problem of unconstrained optimization?
  • How does the approximate posterior distribution employed in MFVI compare against the “true” one computed using AMCMC? By necessity, this comparison will be limited to the three counties included in it.
  • The spatial correlations embedded in the field estimation problem allow an areal unit to “borrow information” from its neighbors and compensate for poor-quality data. How robust is this correlation, i.e., when it fails due to poor quality data, does it do so catastrophically (i.e., the estimation process stops) or gracefully, with a non-informative (or erroneous) estimate?
  • How does the approximate infection-rate field estimated by MFVI affect the accuracy of the outbreak detector? Is MFVI sufficiently accurate to be useful, despite its inherent approximations? Further, does the infection-rate field, estimated over all NM counties, reveal anomalous spatial structures during the start of the Fall 2020 wave?

We state the modeling premises employed for this paper:

  • Our aim is to estimate the latent infection-rate field of the outbreak; it is not just to forecast accurately.
  • We do not use a proper conditional auto-regressive space-time model (pCAR-ST) to model the infection-rate across multiple areal units. This is intentional. It is partly motivated by the studies of Lawson and collaborators [1012] who found that a model similar to a pCAR-ST worked well in some cases and in others [10], it did not. Instead, we extend an older model of ours [6] with a pCAR, as it had performed well for single areal units.
  • Unlike a pCAR-ST model, our model allows the imposition of smoothing time-scales (in the form of priors) that are exogenous to the data. In our case, they arise from the incubation period of the disease and the time profile of the outbreak. The necessity for doing so (which arises from low quality data from an areal unit) will be discussed in § 5.

The paper has three main contributions. Our first contribution is the determination of the degree to which the predictive skill of the disease model forecast is affected by the use of an imputed and approximate posterior distribution; we find that it is not much vis-à-vis the AMCMC solution. Our second contribution is the discovery that despite the approximations inherent in MFVI, the infection-rate field so estimated retains sufficient information on the outbreak to detect epidemiological anomalies. Note that we will not attempt to make a proper outbreak detector in this paper; that is left to future work. Our third contribution is of a numerical nature. Our disease model includes a convolutional integral making it difficult (and expensive) to compute the gradient of the objective function, analytically or by finite differences. Our innovations lie in how the convolution and the gradient are computed numerically via quadrature and the reparametrization of the objective function that allows us to use an unconstrained optimization method, despite the need to preserve non-negativity of parameters being estimated.

The paper is structured as follows. In § 2, we review relevant literature. In § 3 we formulate the inverse problem and the MFVI adaptation, and results are presented in § 4. Outbreak detection is explored § 5. We conclude in § 6.

2 Literature review

In this section, we review some of the literature that undergird our spatiotemporal epidemiological model, as well as work on variation inference algorithms that will be used to scale our model to high-dimensional inverse problems involved in estimating infection-rate fields.

2.1 Spatial modeling in epidemiology‌‌

Epidemiological dynamics show spatial auto-correlation because of human mixing, as well as the dependence of some outbreaks on socioeconomic and demographic covariates which do not change erratically in space or time. The COVID-19 pandemic was observed and recorded with fine spatiotemporal granularity, and the data has been subjected to much spatiotemporal modeling. Many such studies found that the spread of the disease was mediated mostly by human mixing, rather than by socioeconomic factors; Huang et al. [13] found it to be so in Hubei province in China. Geng et al. [14] analyzed US data and found that spatial patterns’ length-scales ranged from the county-level to the nation; similar results were found by Schuler et al. [15] for Germany. McMahon et al. [16] analyzed data at the county-level and found that the correlation length-scales for spatial variability changed during the course of the pandemic; further, the correlation in epidemiological dynamics between urban centers were stronger than elsewhere. Indika et al. [17] analyzed data from the counties of Virginia and found that spatial auto-correlation of case-counts, as quantified by Moran test statistics, were impacted by, and linked to, executive orders at the state level. Thus, COVID-19 has presented us with much evidence of spatial auto-correlation in epidemiological dynamics.

The incorporation of spatial auto-correlation in the modeling and estimation of infection-rate fields is rare; however, it has been extensively used in disease mapping. In disease maps, one develops a field, called relative risk rk, that is used to adjust an expected value of morbidity ek to the locally observed case-counts in an areal unit (e.g., county) k, often via a Poisson or Negative Binomial link, i.e., . The expected value ek is usually obtained from a regional average. The relative risk rk is modeled using covariates of disease activity, e.g., socioeconomic conditions , where zk are co-variate risk factors for areal unit k, are regression weights and captures auto-correlated random effects in space using a random field model. The simplest random field model is iCAR (intrinsic Conditional AutoRegressive [18]), a specific type of Gaussian Markov Random Field (GMRF). Thus

where W is the adjacency matrix of the areal units (i.e., if areal units i and j share a boundary). The object of estimation from data is . The precision matrix Q tends to be sparse. Another common model is the Besag-York-Mollie (BYM) model [19] which decomposes as and . An adaptation of the BYM is used in this paper. More details on spatial models is available in our preprint [4,6], where we also test the spatial model employed in the current paper on a smaller problem with three counties.

The method described in this paper is a spatial extension of a method in our previous paper [6] which was designed to provide short-term forecasts of an outbreak, conditional on daily case-counts data. One starts with a parameterized model of the time-varying (latent) infection-rate (finf) and convolves it with the cumulative distribution of the incubation period (Finc) to obtain an integral equation for the for the case-counts (very similar to Eq. 2). finf and Finc are fashioned as Gamma functions/distributions. This model was used to forecast COVID-19 case-counts in a number of countries and US states, each of them treated as a single areal unit. This method was then extended to multi-wave epidemics [4] and used to forecast outbreaks in California, New Mexico and Florida after multiple waves. These were high-dimensional estimation problems, as each wave had its own infection-rate parameters, and were solved using AMCMC. The spatial model for forecasting and detecting the “Fall 2020” wave on multiple areal units was developed in Refs. [8,9]. One of the innovation in Refs. [8,9] was the method used to model the spatial correlations in disease dynamics., driven by case-count data; it was found that, in NM, this was limited to nearest-neighbors among NM counties. Note that this will not hold true for other states with differently-sized areal units, population densities and mixing patterns. Refs. [8,9] also contain details on the GMRF model and how it was selected; the same GMRF is used in this paper. This infection-rate estimation was performed using AMCMC; due to its limited scalability, the estimation was limited to three adjoining counties in Ref. [8]. The estimation and the forecasts were very accurate and detection of the Fall 2020 wave was feasible within about a week’s worth of data. It was this study that motivated us to extend our work to all 33 NM counties by developing a scalable, if approximate, MFVI method that is described in this paper. It adapts the method in Refs. [8,9], via transforms, to be amenable for MVFI and unconstrained optimization.

The work done by Lawson and collaborators [1012] is the closest to our own. Fundamentally we extend an older model of ours [4,6], meant for a single areal unit, to encompass multiple areal units. Each areal unit contains its own parametrized infection-rate representation, but are “stitched” together using a BYM model. The parameters are estimated by solving an inverse problem, conditioned on case-count data from areal units. Our model also includes a model for the incubation period. In contrast, Lawson and co-workers model case-counts directly; the clearest exposition of the model in in Ref. [10], and it has been used with COVID-19 data from South Carolina [20] and the UK [21]. Lawson and co-workers, much like us, have used the disagreement between calibrated model forecasts and data as signs of epidemiological anomalies and devised metrics such as the Surveillance Kullback-Liebler [22] (SKL) and Surveillance Conditional Predictive ordinate [23] (SCPO) to detect them.

2.2 Variational inference

Inverse problems for model calibration often require the approximation of intractable probability densities arising from Bayesian inference. A standard approach based on sampling is Markov Chain Monte Carlo (MCMC) [24] but suffers from scalability issues due to slow convergence rates for high-dimensional and/or multi-modal distributions [25,26]. Variational inference (VI) [27] provides an alternative to sampling techniques where approximate inference is recast as seeking a member of a family of approximating densities which minimizes a discrepancy measure such as KL-divergence. Originally developed for probabilistic graphical models [28] where some degree of analytical tractability is maintained, it has more recently been extended to many-parameter models, such as those seen in deep learning, through gradient-based iterative schemes adapted to a probabilistic setting [2931]. These techniques are often termed Stochastic Variational Inference (SVI) and can exploit the automatic differentiation available in large ML models. They offer significantly improved scalability over MCMC while potentially sacrificing some approximation quality depending on the set of approximating distributions used. VI has seen successful applications to a number high-dimensional inverse problems in areas including medical classification [32,33] and segmentation [34,35], computer vision and image processing [36], natural language processing [37,38], and physics-based models [39,40].

In addition to this broad range of application spaces, VI has more recently been adopted in a growing number of epidemiological modeling challenges. Neural ODEs have been extended to a Bayesian setting where they can be calibrated with VI and applied to state space epidemiological models [41]. Model selection and dynamic causal modeling based on evolving real-world time series using VI have been applied to COVID-19 outbreaks [42,43] to provide online forecasting tools. Dynamical system inference for spatio-temporal modeling of infectious diseases using ODE and PDE formulations has been carried out at the state scale and combined with Bayesian neural networks [2]. Model calibration with VI has also been explored using alternatives to standard state-space models such as graph-coupled Hidden Markov Models [44]. Hassan et al. [45] developed a modified SEIR mathematical model to forecast COVID-19 trends. This study combined deterministic modeling with a Continuous-Time Markov Chain (CTMC) approach to calculate outbreak probability, emphasizing the critical need for coordinated public health measures. Kamrujjaman et al. [46] developed a modified SEIR mathematical model for COVID-19 that combines exposed and asymptomatic populations into a single compartment and includes the effects of panic, tension, and anxiety on mortality rates across susceptible, exposed, and infected classes. They identified disease transmission rates and panic-related mortality as the most sensitive parameters. In addition to predictive model calibration, generative probabilistic modeling using VI-based approximations of distributions has also been explored to generate mission information about disease spread [47].

3 Formulation

Here we propose an epidemiological model to forecast infection-rates across adjacent geographical regions and use these forecasts to detect emergent outbreaks. The geographical regions / areal units can have data of very diverse qualities. Fig 1 (right) shows case-count data from three counties of NM during the Summer wave. Cibola clearly shows anomalies in the data with two peaks in late-July 2020 that do not admit any epidemiological explanations. The model that we construct will need to be robust to such erroneous data, which can be achieved via spatial and temporal smoothing. The “usual” method for smoothing such a field would be via a space-time proper Conditional AutoRegressive (pCAR-ST; [48]) model. Such an approach, using a pCAR model and a one-step-ahead-in-time (as in AR(1)) was explored by Lawson and collaborators [10,12] who found that the method was not much better than a purely temporal model [10], though later results with COVID-19 data showed otherwise [20,21]. In order to avoid this uncertainty, we extend an older (temporal) method of ours [4,6] with a GMRF model to enable the estimation of an infection-rate field and perform multi-region outbreak detection. This older model has been tested on COVID-19 data from NM [4,6].

3.1 Epidemiological model

The epidemiological model is defined by a spatio-temporally varying infection-rate model and an incubation model given by

(1)

where the infection-rate finf is a Gamma distribution with shape and scale parameters kr and , respectively. Note that 1 ≤ r ≤ R indexes the spatial region. is the cumulative distribution of the incubation period for COVID-19, taken from Lauer et al. [49]; further details to the temporal model are in [4,6]. The parameter represents the start of the outbreak and will be inferred along with the infection-rate parameters. The number of people that turn symptomatic over the time interval [ti−1, ti] is given by

(2)

so that and i represents the time-dependence of the predictions. Here, Nr is the fourth and final region-dependent parameter and represents the total number of people infected during the entire epidemic wave in spatial region r normalized by the population of region r.

In the discussion above, finf was chosen to be a Gamma distribution, primarily for simplicity of parameterization. For more complex temporal behavior of the latent infection-rate, more involved parameterizations may be required, e.g., the parameterization for multi-wave outbreaks, as described in Ref. [4].

The noisy model predictions are defined as

(3)

Here , where , are the region-specific model parameters for and is an epidemiological / disease model that uses . In addition, is the vector of observed case-counts on day i for all R regions, is the vector of R case-count predictions for the same day using the model and is the “noise” observed case-counts on day i that cannot be explained by (mostly reporting errors). To account for spatial correlations and heteroscedastic noise seen in case-counts, the noise is assumed to be composed of two terms where the first is given by a Gaussian Markov Random Field (GMRF) model while the second represents temporally-varying, independent Gaussian noise. Letting and represent the data and parameters, respectively, the likelihood then takes the form

(4)

where is given by

(5)

The first term in Eq. (5) forms the precision matrix of a GMRF component of the noise where the strength of correlations induced by adjacent regions is governed by . The relative topology of regions is encoded by W, the county adjacency matrix, defined as

(6)

Here, where gi is the number of regions adjacent to region i. Note that this formulation assumes that the R spatial regions are self-contained with negligible population mixing with the region around them. The derivation of the adjacency matrix W and its subsequent inclusion in is presented in detail in Refs. [8,9], and we reproduce a summary here. In Refs. [8,9], we plotted the population-normalized case-counts, summed over 90-day periods, for all the NM counties and noticed a spatial correlation between counties along the populated Rio Grande valley; furthermore, the spatial correlation persisted over a moving 90-day period. We examined the spatial correlation between a county and its neighborhood, where a neighborhood was defined as the set of counties that shared a border with the county in question, i.e., “one-hop” neighbors. A two-sided Moran’s I-statistic test revealed that the spatial correlation was supported by the evidence. We also considered a neighborhood of one- and two-hop neighbors and the same test found no evidence for it. This allowed us to design an adjacency matrix consisting of immediate neighbors only and formulate a simple precision matrix for the GMRF model for the correlated errors (defined as the difference between observed case-counts on a day i in a given county and model predictions ). We also add a heteroscedastic reporting error to the diagonal of the GMRF’s covariance matrix equal to . For the purposes of this paper, we have modeled NM in isolation, i.e., the adjacency matrix W does not contain terms that link counties along the NM border to the neighboring counties in adjoining states. This is an approximate boundary condition of no population mixing outside NM which is necessary to limit the scope of the problem, else W would grow unbounded. Note that the counties along the NM boundary are large, sparsely-populated, mountainous or desert regions with little mixing with the population outside, making feasible this approximation.

The second term captures prediction-dependent, uncorrelated noise with additive and multiplicative components governed by and , respectively. The relative contribution between the correlated GMRF noise and the uncorrelated noise is controlled by . Full details of the development of P can be found in Refs. [8,9]. Using Bayes’ rule, one can obtain an expression for the posterior density of , the parameters to be estimated from data, as:

where is defined in § 3.2 and . For low-dimensional problems, the density can be obtained by sampling directly. This was performed in Ref. [8,9] for three adjoining NM counties (Bernalillo, Santa Fe and Valencia) using AMCMC [7] as a test of the correctness of the formulation. Using data from the Summer wave, we developed PDFs of , and and forecast the case-counts for two weeks beyond September 15th, 2020, in order to detect the arrival of the Fall 2020 wave (the forecasts beyond September 15 and the observed case-counts would disagree). We could detect the arrival of the Fall wave with a week’s worth of observations. We also tested the method using data gathered till August 15th to check the detector’s susceptibility to false positives. However, due to the lack of scalability of AMCMC (in terms of parameters being estimated and parallel computing), we cannot use it to estimate the infection-rate field in all 33 counties of NM and therefore take recourse to a mean-field variational inference techniques that, though approximate, will scale to the 126 parameters that the NM-wide estimation will require.

3.2 Statistical inference

The set of parameters defining the likelihood in Eq. (4) is given by

(7)

where are the global noise parameters. Inference consists of forming the posterior distribution over uncertain parameters . As the posterior is intractable, we instead look to approximate it using VI. Hence, the following sections describe how VI is formulated carried out to approximate the posterior for the outbreak model as well as how the prior is defined to regularize the inverse problem.

3.2.1 Variational inference.

We will compare the Bayesian posterior sampled with AMCMC with posterior models obtained using MFVI which recasts approximate inference as an optimization problem. In particular, as the exact posterior is intractable, we consider a family of approximating densities and seek to find a density that minimizes the KL-divergence with respect to the posterior

(8)

This can be re-expressed as minimizing the objective function based on the evidence lower bound (ELBO) [30]

(9)

where the first term in Eq. (9) is the entropy of the surrogate posterior and the second, data-dependent term is an expectation with respect to the surrogate posterior that reflects both the expected data-fit and the prior. Here we take to be the set of mean-field Gaussian distributions, i.e.,

(10)

where , . We arrive at an optimization problem over 2d parameters where d is the number of parameters defining the epidemiological model . To carry out the above minimization problem, we aim to use a gradient-based iterative scheme as the expectation in Eq. (9) cannot be evaluated explicitly due to the nonlinearity of the forward model. Furthermore, is potentially a non-convex objective. Note that the gradient and expectation operators do not commute, i.e.,

so some care has to be taken to arrive at a Monte Carlo estimator for the gradient . Two widely used approaches are: (a) the score function estimator, described in § A.1 (in the Appendix), which forms the basis of black-box VI and requires only evaluations of the log-likelihood, and (b) the reparametrization approach which requires gradients of the log-likelihood. The score function estimator typically displays much larger variance as seen in Kucukelbir et al. [50] where two orders of magnitude more samples were needed to arrive at the same variance as a reparametrization estimator. A similar trend was confirmed for the outbreak problem (Fig 9) suggesting that the reparametrization approach would lead to superior scalability. Reparametrization proceeds by expressing as a differentiable transformation of a -independent random variable such that . This allows the gradient to be expressed as

(11)

where gradients of the entropy term in Eq. (11) are available analytically for the Gaussian surrogate posterior and the second term can now be approximated with Monte Carlo given a method to compute the required gradients. For many machine learning models, automatic differentiation can be exploited to calculate the gradient of the log-likelihood with respect to parameters . Here, the objective function involves the log of the likelihood (Eq. (4)) where derivatives of matrix inverses and determinants with respect to parameters are required to compute the gradient. Gradients such as these are not available using most automatic differentiation libraries. Instead, matrix calculus and quadrature were used to compute the derivatives of the log-likelihood with respect to model predictions and to approximate the derivatives of the model predictions with respect to parameters, respectively. For details, see § A (in the Appendix).

Note that some of the parameters comprising are required to satisfy constraints for the noise and epidemiological models to be well-defined. For example, noise parameters , , and as well as model parameters Nr, kr and for should be positive while should satisfy . Sampling from the mean-field Gaussian (Eq. (10)) during the Monte Carlo estimation of the gradient (Eq. (11)) may result in violations of these constraints. To maintain the required properties without resorting to constrained optimization, we express a constrained parameter as an invertible, differentiable transformation of an unconstrained . Hence, the distribution governing is the push-forward density of through fi, i.e., the components of the mean-field surrogate posterior (Eq. (10)) have modified probability densities

(12)

where . This results in mean-field approximation where some of the factors are Gaussian and others non-Gaussian. Each factor is still defined by a and parameter. The transformations are listed in Table 2.

The initial motivation for using Gaussian distributions can be seen in Fig 5 where the posterior approximations from AMCMC display negligible skew and kurtosis suggesting a variational distribution with vanishing higher-order moments is sufficient to capture the behavior of interest. Second, as the goal was to produce a method for efficient high-dimensional inference, scalability and analytical tractability had to be balanced with accuracy tradeoffs. Note that MFVI also has a tendency to underestimate the uncertainty / variance in the estimated parameters [51] and in § 4, we will check if this poses a limitation on the usefulness of the approximate solution, especially in the predictive skill of model and therefore the detection of the start of outbreaks.

3.2.2 Prior distribution.

The COVID-19 case count data exhibits significant noise due to inaccurate case counting reported by hospitals. Furthermore, counties with small populations exhibit sparse data in the sense that not many positive daily case counts were reported. Hence, we expect the inverse problem to be ill-posed and require regularization in the form of a prior over the parameters.

Because of push-forward formulation described by Eq. (12), a number of the parameters are already constrained by transformations . In particular, the parameters for and each of the noise parameters comprising are all constrained by transformations to take on values in some restricted interval. For example, is constrained to lie within , for some so that Eq. (5) defines a valid covariance matrix, i.e., it remains symmetric, positive definite. The parameters are the only unconstrained variables. Hence, we take Gaussian priors over that incorporate diffuse assumptions about when it is reasonable for a wave to occur.

3.2.3 Posterior predictive tests.

The mean-field variational inference (MFVI) described in § 3.2.1 results in a multivariate Gaussian posterior distribution (Eq. (12)) that then needs to be verified against data . To do so, we take samples , and using Eq. (3), generate predictions . For this paper, J = 100. The time-series Yj result in a “fantail” of predictions for each areal unit r which should statistically reproduce , e.g., the inter-quartile range of the samples Yj should bound 50% of the observations and the 5th and 95th percentiles should bound 90% of the individual data points in . This test is called a posterior predictive test (PPT) which we will use extensively in § 4. In addition, we define a score to summarize the agreement of Yj with . Predictive distributions constituted out of samples are called “push-forward“ (PF) predictions.

Define to be the model prediction for region r for day i by combining Eq. (3) and Eq. (7). Let be the prediction corresponding to a sample drawn from the posterior. Let be the corresponding observation (from ). Let be the cumulative distribution function (CDF) for the model predictions arising from the posterior distribution . The Continuous Ranked Predictive Score (CRPS [52]) is defined as

(13)

The CRPS has units of case-counts and will be larger for areal units with larger total case-counts , and we will use the ratio to compare across areal units in § 4. In practice, the empirical CDF computed using J samples of Yj is used to approximate . This score function has been used in judge the quality of the model to capture the spread in the data used for calibration. [6,53,54] We use the implementation in the R Statistical Software [55] (R version 4.3.2 (2023-10-31)) package verification [56], specifically the function crpsDecomposition(), to compute the CRPS.

4 Results

In this section, the calibration of the outbreak model, using the formulation presented in § 3, is studied across several cases. The COVID-19 pandemic arrived in NM in March 2020; Fig 1 (left) plots the detected cases in NM over 2020. We see three clear “waves“ - the Spring wave, the Summer wave which spanned June 1st to September 15th, and the Fall wave that arrived after that. Unless specified otherwise, data from the Summer wave (i.e., June 1, 2020 to September 15, 2020) is used to perform the estimation and the estimated infection-rate is used to forecast two weeks ahead, into the Fall wave. The COVID-19 dataset of case-counts that we use covers the duration from 2020-01-22 to 2022-05-13, and consists of daily (new) case-counts of COVID-19 from each of the 33 counties of NM; the data is available online. [57,58]. The sudden change in epidemiological dynamics around September 15th implies that that the infection-rate profile from the Summer wave will not be able to forecast the Fall wave; therefore any disagreement between the observed data and forecasts is a sign of the arrival of the Fall wave.

First, we consider three populated counties that are adjacent to each other and display a large number of cases. These counties present less noise and clearer trends resulting in a more well-posed inversion task. W is limited to these three counties, implying that there is no population mixing outside them. This is an approximation and will likely affect the estimated infection-rate’s accuracy. The aim of the study is to compare the effect of calibrating multiple areal units jointly using MFVI, as well as to compare against the calibration performed using AMCMC [8,9]. Next, the coupled outbreak model is calibrated across all 33 New Mexico counties. This represents a more challenging task given the dimensionality of the problem as well as a multitude of counties displaying sparse and noisy case-counts. We then evaluate the final posterior approximation using PPT runs. The convergence of the MVFI procedure for both the outbreak model and noise parameters is investigated and discussed last. We next discuss anomaly detection using the MFVI-calibrated outbreak model is carried out using COVID-19 spread-rates across all 33 counties in New Mexico using data from the summer of 2020 to detect the arrival of the Fall 2020 COVID-19 wave. In this study, all the counties of NM are included in W, implying that there is negligible cross-border mixing of the population with the adjoining states. This is approximately true, as the border counties of NM are remote, sparsely-populated deserts and mountains.

When estimating the infection-rate field in the 3-counties, we infer parameters – 4 parameters for each county and 4 noise parameters . For all of NM, with its 33 counties, the dimensionality of the inverse problem is independent parameters. This is too large for AMCMC and was the motivation for developing MFVI.

The MFVI procedure follows § 3 where the stochastic gradient descent iteration is carried out using the Adaptive Moment Estimation (ADAM) algorithm [60]. MFVI is well-known to display mode-seeking behavior due properties of the KL-divergence. Hence, to facilitate the convergence of MFVI, we initialize the mean parameters for MFVI from a Maximum Likelihood Estimate (MLE) which is readily available using gradients of the log-likelihood. During calibration via stochastic gradient descent, samples were used in the Monte Carlo estimates of the ELBO gradient Eq. (11).

4.1 Three-county inversion

In this section we investigate the effect of using an approximate MFVI inversion by comparing against AMCMC solution [8,9]. We also check the effect of estimating the infection-rate across multiple areal units vis-à-vis independently.

4.1.1 Joint versus independent calibrations.

First, we perform an infection-rate estimation for three adjoining counties – Bernalillo, Santa Fe and Valencia – using MFVI independently and jointly using the spatial (GMRF) model (Eq. (5)); see Fig 2 for their positions. In Fig 3, the results of a PPT for all three counties are displayed in both the joint and independently calibrated cases. The case-count data were smoothed with a 7-day running average. The median prediction is plotted with the red line and the dashed lines denote the 5th and 95th percentiles. We see that most of the observations (filled symbols) are within these bounds. We also see the 2-week-ahead forecast beyond September 15th and the unfilled symbols showing the observed data from that period. The forecasts and the data do not match for any of the three counties, indicating a change in the epidemiological dynamics. This change is due to the arrival of the Fall 2020 wave of COVID-19 in NM, and the figure shows that the wave arrived approximately simultaneously in all three counties (see Fig 1 (left) for a clearer picture of the three COVID-19 waves encountered in 2020 in NM). Observe that the jointly calibrated predictive distribution displays less uncertainty in the predictions (i.e., small ) than the independently calibrated version. This is likely due to a combination of two factors. The first is that incorporated spatial correlations between counties regularizes the calibration and results in more certainty about the true underlying model parameters. The second is that the uncorrelated MFVI approximation is known to underestimate uncertainty for highly correlated distributions. Note also that uncertainty is largest in the predictive distribution for Santa Fe consistent with the markedly noisier behavior of the case-counts for this county. The infection-rate profiles for these counties are in Fig 14 in the Appendix. There is not much difference between them indicating that the infection-rate parameter estimates in the two cases might be similar, whereas the estimate of the noise, which affects PPT results, vary between the two formulations due to the fact that the spatial noise model has to accommodate all the noise, across all the areal units, together. These findings echo what we observed when the same study was performed using AMCMC as the estimation procedure [8,9].

thumbnail
Fig 2. The counties of New Mexico.

The shaded ones are where we will present results. Abbreviations: B = Bernalillo; CI = Cibola; CU = Curry; DA = Doña Ana; RA = Rio Arriba SF = Santa Fe and V = Valencia. The shapefiles of the counties were downloaded from the US Census Bureau website [59].

https://doi.org/10.1371/journal.pone.0350090.g002

thumbnail
Fig 3. Comparison of the predictive distribution for the MFVI inversions of Bernalillo (left), Santa Fe (middle), and Valencia (right) done jointly using the GMRF model and independently for each county.

The solid lines show median predictions and the dashed lines bound the 5th–95th quantile interval. Case-count data was smoothed with a 7-day running average. The filled symbols are the data used in the inversion. The unfilled symbols are the observations beyond September 15th and are used to compare with the two-week forecasts.

https://doi.org/10.1371/journal.pone.0350090.g003

4.1.2 AMCMC versus MFVI estimation.

Next, we study the effect of using our approximate MFVI method versus the estimates computed using AMCMC [8,9]. In Fig 4 we plot the PPT results from the joint MFVI (top) and AMCMC (bottom) for the same three counties. Here we see that the MFVI estimates a larger – the 5th and 95th percentile bounds (dashed lines) are far wider for MFVI results vis-à-vis AMCMC results below. By dint of having wider bounds, the MFVI estimate is also better at bounding the data used to compute the infection-rate field for the three counties. Again the arrival of the Fall 2020 wave is clearly discerned in the figure. The infection-rate profiles for these counties are in Fig 15 in the Appendix and there is not much difference between them.

thumbnail
Fig 4. Comparison of the predictive distribution for the joint inversion of Bernalillo (left), Santa Fe (middle), and Valencia (right) done jointly using MFVI and AMCMC.

The solid lines show median predictions and the dashed lines bound the 5th–95th quantile interval. Case-count data (filled and unfilled circles) are the same as in Fig 3. The AMCMC results are taken from Refs. [8,9].

https://doi.org/10.1371/journal.pone.0350090.g004

In Fig 5, we summarize the marginalized posteriors for the infection-rate parameters for Bernalillo, Santa Fe, and Valencia computed using MFVI and AMCMC, jointly and independently. assumes negative values as it is measured from June 10th, 2020; the PDFs peak around −20 (for AMCMC results) and imply that the infections for the Summer wave started in late May, about 20 days before June 10th. The MFVI results also agree approximately with this estimation. We see that apart from Nr, the MFVI and AMCMC posteriors do not match. The MFVI posteriors are extremely narrow, providing a spurious degree of certainty in the estimates; this arises from the form of the posterior distribution – independent Gaussians – that we postulate in Eq. 10. In addition, as is clear from the AMCMC results, the “true” posteriors are not Gaussian. The marginalized posteriors computed via AMCMC, for joint and independent estimation, do match (sometimes very well, as in the case of Valencia), but they are wide apart for the MFVI, showing the effect of the Gaussian approximation. Yet the infection-rate profiles in Fig 14 (in the Appendix) do not show much of a difference, nor do the PPT results in Fig 3, leading us to conjecture that the influence of some of these parameter on the infection-rate may be muted. This can also be surmised from the marginal distributions computed from AMCMC – they are quite wide.

thumbnail
Fig 5. Comparison of the posterior over model parameters t0, N, k, and for 3-county inference of Bernalillo (left), Santa Fe (middle), and Valencia (right) using both MCMC (orange) and MFVI (blue).

Both joint (solid lines) and independent calibration (dashed lines) are results are displayed. t0 values are negative as it is measured from June 10th, 2020, and the PDFs imply that infections for the Summer wave started in late May. ’VI indep.’ in the legend implies an estimate obtained for each county independently using MFVI.

https://doi.org/10.1371/journal.pone.0350090.g005

The difference in the posterior densities of the parameters (Fig 4, joint estimation only) deserves an explanation. They arise from the assumptions of independence inherent in MFVI. In reality, the posterior density is strongly correlated, and these can be computed using AMCMC (see Refs. [8,9]). The Gaussian assumption in MFVI also plays a role, but it is of lower consequence as the AMCMC posteriors are not excessively skewed, and a Gaussian is an acceptable approximation.

Finally, we summarize the predictive skill of the joint estimates computed using MFVI and AMCMC in Table 1 using CRPS. The CRPS, computed over data between June 1st and September 15th, 2020, summarizes the agreement of the PPTs with observations for each of the counties. We see that the CRPS (a measure of the error between predictions and data) is about 10 cases per day, for Bernalillo (where case-counts peaked at about 100 cases/day; see Fig 3) and 2.5 cases a day for Valencia and Santa Fe (which peaked at about 12 cases a day). What is remarkable is the difference in the CRPS as computed using MFVI and AMCMC – it is less than a case-count per day. This small change in the predictive skill leads us to believe that the scalable, but approximate, MFVI approach might be sufficiently accurate to allow us to detect the arrival of the Fall 2020 wave in an automated manner.

thumbnail
Table 1. Predictive skill of PPTs generated using infection-rate estimates computed using different procedures. All estimations are performed using the joint formulation, using the spatial model. The PPTs are scored using CRPS. They have units of “case-counts”.

https://doi.org/10.1371/journal.pone.0350090.t001

To summarize, from Figs 35 it is clear that:

  • Joint estimation performed with a GMRF model leads to more certain forecasts compared to independent estimation of infection-rates in areal units (i.e., counties).
  • Marginalized posterior obtained from MFVI shows spuriously low levels of uncertainty compared to AMCMC.
  • Despite the difference in the posterior densities computed using MFVI and AMCMC, the forecasts are not very sensitive to them; this is because the differences in the infection-rate are compensated by the reporting errors’ parameters and . However, the forecasts performed using MFVI’s posterior densities are slightly more uncertain. Therefore anomaly detection with them will also be a little less accurate.

4.2 Joint inversion of all NM counties

Next, calibration of the full 33-county model using MFVI was carried out, followed by PPT runs which were then summarized using CRPS computed for each NM county. In Fig 6, we plot the CRPS normalized by the total number T of cases a function of T, for all counties. Data between June 1st and September 15th was used in the infection-rate estimation as well as the computation of CRPS is a measure of the “goodness of model fit” to data. We see that the CRPS, as a ratio of the total cases, decreases with increasing number of total cases, as the disease model fits larger outbreaks in counties like Bernalillo. Others, like Cibola, do not agree with model predictions, due to flaws in the data, as we will see later in Fig 12. The straight line fit to data has the form

thumbnail
Fig 6. CRPS/T plotted as a function of total number of cases T.

Both the axes are log-axes. We see, as expected, that the predictive skill of the disease model, post calibration, is better for counties with larger case-counts T where noise variance is low. The horizontal dashed lines are the first and third quartiles of .

https://doi.org/10.1371/journal.pone.0350090.g006

This equation shows that scales (approximately) as the fourth root of the total number of cases, a slow reduction indeed.

The horizontal lines in Fig 6 show the first and third quartiles of . The three counties studied in § 4.1, Bernalillo, Santa Fe and Valencia, are marked and fall in the lowest quartile, i.e., their data is good and the calibrated disease model is predictive. We will use the county of Doña Ana as another member of the “good” class, while Curry and Rio Arriba, which fall in the inter-quartile range of , will serve as exemplars of the “middling” class of calibration. Cibola, which falls in the last quartile, will be an exemplar of the “bad” class of calibration. We now examine the quality of the inversion in each of these counties. In Fig 7 we plot the infection-rate parameters, as estimated from the Summer wave case-count data, for 7 counties marked in Fig 6. We see that the standard deviations are spuriously tiny, in line with what was observed in Fig 5; thus MFVI consistently underestimates the uncertainty in the parameter estimates. Further, this spuriously low uncertainty is pervasive – counties with high CRPS such as Cibola and Rio Arriba show much the same estimation uncertainties as counties such as Bernalillo and Santa Fe with CRPSs a factor of three smaller. Thus the uncertainty in the parameters’ estimates do not seem credible and we will omit them from further discussion. However, despite the quality of the case-count data, the inversion completes stably and provides plausible results. However, as Fig 6 shows, the infection-rate may not be estimated very accurately in some counties and this might hamper the task of detecting the Fall 2020 wave reliably.

thumbnail
Fig 7. Means (light gray) and standard deviation (dark gray) of various infection-rate parameters, for select counties marked in Fig 6.

Top left: The start time of the Summer wave t0. Top right: The total size of the Summer outbreak N. Bottom left: k, the shape parameter of the Gamma profile of the infection-rate. Bottom right: θ, the scale parameter of the Gamma profile.

https://doi.org/10.1371/journal.pone.0350090.g007

In Fig 8 we compare some infection-rate parameters for Bernalillo, Santa Fe and Valencia, in the 3-county (as plotted in Fig 5) and 33-county inversions. MFVI was used for both the computations. We see that the parameters are not the same and there does not seem to be a clear trend, except that increases when we include counties (some with poor quality data) in the estimation. This implies that the PPTs for the “good” counties will likely be wider than what could be achieved with AMCMC and this might have repercussions regarding detecting the Fall 2020 wave.

thumbnail
Fig 8. Select infection-rate and noise parameters, estimated jointly among three counties, compared with their counterparts from a 33-county inversion.

The noise parameter is markedly larger in the 33-county inversion.

https://doi.org/10.1371/journal.pone.0350090.g008

To summarize, the uncertainty in the estimated parameters, computed using MFVI, are not very credible. However, the MFVI inversion is stable, though the uncertainty in the PPTs will be larger because of an inflated , required to accommodate counties with very noisy data.

4.3 Algorithmic results

Finally, we investigate the numerical aspects of the reparametrized algorithm described in § 3.2.1. The convergence of MFVI is depicted in Fig 9 where the ELBO and the norm of its gradient are shown as a function of gradient descent iterations.

thumbnail
Fig 9. (Top) Convergence of the ELBO for the 33-county inversion along with the norm of the ELBO gradient as a function of gradient descent iterations for the reparametrized gradient formulation of MFVI.

(Bottom) Convergence of the ELBO for a 1-county inverse problem along with the norm of the ELBO gradient for the black box formulation of MFVI. In both cases, samples were used for the MC estimators of the gradient.

https://doi.org/10.1371/journal.pone.0350090.g009

The top of Fig 9 shows the ELBO and gradient for the 33-county calibration using the reparametrization formulation while the bottom provides a comparison to using black box VI for 1-county calibration of Bernalillo. In both cases, samples were used for the reparametrization and score function MC estimators of the gradient. Note that even for a single county, black box VI shows significantly higher variance in the gradient leading to poor convergence in comparison to the much larger 33-county problem calibrated with reparametrization. The convergence of the ELBO in the top row is also quite smooth suggesting that significantly less samples could be used to obtain good estimates of the gradient with the reparametrization approach. Hence, it is clear that reparametrization is necessary to scale the calibration to the 33-county inversion despite the added complexity of obtaining gradients of the log-likelihood. Note that the ELBO shows a sudden drop-off in Fig 9. High-dimensional, nonlinear objective functions tend to be non-convex and such sharp drop offs are common. This is not seen as often with lower-dimensional problems which explains why we see it only in the 33-county inversion.

The top two rows of Fig 10 display convergence information from two counties, Bernalillo and Rio Arriba, taken from the 33-county inversion. Bernalillo and Rio Arriba were chosen as they have larger and smaller populations, respectively. The mean of the initial condition for MFVI is given by a MLE solution shown in red. Intermediate solutions are shown in blue along with the final solution in green. Observe that while similar to the MLE, MFVI subtly expands the shape of the wave to better cover the tail of the outbreak. This is potentially an effect of the tendency of the KL-divergence to increase the overlap of the surrogate and true posterior distributions at some expense of the mean prediction fitting the data less accurately. Comparing Figs 310, we can see that the coupled, 33-county inversion introduces a bias in the parameter estimates for Bernalillo. This is due to the multitude of NM counties that are sparsely populated and display significant noise in their daily case counts. Despite this effect, the outbreak detection performs well on the 33-county inversion data suggesting that the predictive uncertainties provided by the calibration remain informative.

thumbnail
Fig 10. (Top) Convergence information corresponding to 33-county inversion using MFVI.

Results corresponind to Bernalillo (left) and Rio Arriba (right). (Top) The MFVI mean initial condition is the MLE solution shown in red. Intermediate solutions are shown in blue and the final mean solution in green. (Middle) Corresponding convergence of the model parameters. (Bottom) The ELBO objective (left) and its gradient (right) as a function of iteration for the full 33 county inversion.

https://doi.org/10.1371/journal.pone.0350090.g010

To summarize, reparametrization provided us with the scalability needed to solve the high-dimensional inverse problem conditioned on data from all 33 NM counties.

5 Discussion

The results in § 4 show that MFVI can estimate an infection-rate field and the posterior distribution can be used to produce PPT runs. The MFVI parameter estimates do not quite agree with the AMCMC estimates [8,9], but their effect on the PPT runs is muted, as seen in the comparison in Fig 4 and the CRPS summaries in Table 1. Given that the inversion is a smoothing operation, i.e., we learn the infection-rate from historical data, any forecast produced with the estimated infection-rate will be predictive only if the epidemiological dynamics do not change. Consequently, if the forecast and data disagree, it could indicate the arrival of a new wave of infection. Since § 4 showed that MFVI and MCMC PPT results were similar, we henceforth use MFVI PPT runs to implement our outbreak detector. There does not seem to be a way to detect the discrepancy between MFVI and AMCMC posteriors without computing both.

5.1 Temporal detection

The argument above is used to fashion an outbreak detector using PPT runs. The detector works as follows. We sample the posterior in the same manner as for PPT runs, and use Y to compute an “outlier boundary”; we define it as the percentile of the forecasts. Y is computed using data from June 1st to an end date (usually August 15th or September 15th) where we test for a change in the epidemiological dynamics. The actual test consists of comparing a two-week-ahead forecast with the data that was observed during that period. Any day with case-counts above the “outlier boundary” is deemed an outlier. Three consecutive outlier days cause an “alarm”, corresponding to an anomalous change in the disease dynamics. Using this detector, when solving the problem with AMCMC [8,9], we found that we could detect the arrival of the Fall 2020 wave correctly, when tested using data up to September 15th. In Fig 11 we repeat the same test, but the infection-rate is estimated using MFVI. The top row depicts the outbreak detector being applied beyond September 15th, 2020. We see outliers and alarms for all three counties with a week of September 15th, i.e., the Fall 2020 wave was easily detected within a week’s worth of data. The bottom row repeats the test, but applied to August 15th. We see that Santa Fe and Valencia incur false positives, whereas Bernalillo does not. This implies that the approximations in MFVI may lead to erroneous detections for borderline cases (i.e., counties with small-count data and high variance noise) but areal units with large case-counts might be unaffected. The reason for the false positives is simple – the data is very noisy and the outbreak detector makes no attempt to reduce the variance in the noise. Comparing the correct detection on the top row of Fig 11 with the false positives in the bottom row, we see that outliers and alarms are plentiful after September 15th and sporadic after August 15th. A slightly more sophisticated detector that performed temporal averaging could eliminate such false positives. We will address this below, using a simple spatio-temporal method.

thumbnail
Fig 11. The infection-rate detector implemented using the infection-rate from the joint MFVI estimation of three counties (corresponding to Fig 4 for Bernalillo (left column), Santa Fe (middle column), and Valencia (right column).

The symbols are the case-counts, the solid blue line the median forecast with the infection-rate, post-calibration and the solid red line is the alarm boundary. Outliers are circled and an alarm, corresponding to three consecutive outliers, is encased in a square. The vertical line is the point beyond which we forecast and thus test for the arrival of the Fall 2020 wave. Top row: Testing for arrival after September 15th, 2020. Bottom row: Testing for arrival after August 15th, 2020.

https://doi.org/10.1371/journal.pone.0350090.g011

In Fig 12, we demonstrate the outbreak detector on a “good” (Doña Ana), two “middling” (Curry and Rio Arriba) and one “bad” county (Cibola), as determined using CRPS in Fig 6. The plotting conventions are the same as in Fig 11. We see that we correctly detect the Fall 2020 wave when testing on September 15th and do not incur any false positive on August 15th. This performance is rather fortuitous for Rio Arriba and Cibola, which have unexplained case-count peaks in mid-July (Rio Arriba) and in late July (Cibola). It would be difficult to estimate an infection-rate profile for either of these counties independently (this is especially true for Cibola, where the reported case-counts show no wave-like structure); however, our spatial GMRF model regularizes the inversion and constructs an infection-rate stably. This also shows the necessity of smoothing in time guided by a process immune to flaws in the data – in our case, this is achieved via the incubation period distribution (Finc) and the infection-rate profile finf (see Eq. 1). (This smoothing would be far more difficult with a purely data-driven approach such as a pCAR-ST, which would attempt to accommodate the July peaks in the two counties.) Forecasts using this infection-rate do not match the case-count data at all, as is clear in the plots for Cibola, but provides us with stable PPT results and a perhaps meaningless detection. However, numerical and algorithmic stability in the face of poor quality data encourage us to believe that the MFVI algorithm and outbreak detection can be automated.

thumbnail
Fig 12. Performance of the outbreak detector for a “good” (Doña Ana), two “middling” (Curry and Rio Arriba) and one “bad” county (Cibola), as determined using CRPS in Fig 6.

Left column: Testing for Fall 2020 wave arrival on September 15th, 2020. Right column: The same, but detection performed on August 15th. We do not see any false positives in the right column.

https://doi.org/10.1371/journal.pone.0350090.g012

5.2 Detecting spatial patterns

The results above show that the MFVI estimates of the infection-rate have the ability to detect the Fall 2020 wave, especially for the counties in the first quartile (plotted in Fig 6), though our crude detector, which does not smooth / de-noise the data, might suffer from false positives due to high variance noise in observed case-count. However, the MFVI infection-rate field allows prediction in space and time, which allows spatio-temporal assimilation of data. We address this next.

Define “exceedance” for region r and day i. Here is the observed case-counts and is the alarm boundary (the 99th percentile computed from Y). would denote an outlier. Let

where Nsmooth is a time-period over which we will average out the temporal noise and detect spatial patterns. Fig 13 (top row) shows a map of computed over a two-week period after August (on the left) and a two-week period after September (on the right) when the Fall 2020 wave had arrived. We see from the colormap that the before the arrival in all counties except one; specifically, the false positives seen in Fig 11 for Santa Fe and Valencia are no longer visible. After the arrival, we see clear spatial structures on the right. Thus simply averaging the data in time provides a more robust detection, though with a loss of timeliness. However, we see two adjacent counties (in shades of yellow) with very high .

thumbnail
Fig 13. Top: Plot of mean exceedance for NM, where is averaged over August 15th and August 31st (left) before the arrival of the Fall 2020 wave and September 16th and October 1st (right), when the Fall 2020 wave had arrived.

Bottom left: Dendrogram from hierarchical clustering, with the cut at a height of 0.6, resulting in clustering of counties. Bottom right: Disease clusters from the dendrogram.

https://doi.org/10.1371/journal.pone.0350090.g013

Epidemiological activity spreads due to population mixing and is largely between adjoining NM counties because of their large spatial expanse. Therefore adjacent counties are expected to have similar epidemiological behavior. If the epidemiological activity is represented using a derived / inferred / estimated quantity, and adjoining areal units differ greatly, it is either a consequence of erroneous estimation or an artifact of noise in data, i.e., spatial auto-correlation might be a simple mechanism for removing erratic behavior in data. To this end, we subject the map in Fig 13 (top right) to clustering. The centroids of the counties serve as the spatial feature whereas serves as a measure of how strong the Fall 2020 wave is, in each county. The data was Z-scored and subjected to hierarchical clustering using the R Statistical Software [55] (R version 4.3.2 (2023-10-31)) package stats, specifically the function hclust(). The resulting dendrogram is in Fig 13 (bottom left), which is cut at a height of 0.6 (corresponding to a quantile of 0.15) to reveal 3 clusters of counties. These are plotted in Fig 13 (bottom right) and reveal the same clustering as was seen in Fig 13 (top right). However, the counties in yellow were eliminated – their level of , though high, were too different and thus violated the need for spatial auto-correlation. Two of the clusters surround the county of Bernalillo, the population center of NM, where COVID-19 was very active in the city of Albuquerque.

Temporal epidemiological anomaly detections and spatial clusterings can be forged into a rough-and-ready test for the credibility of an outbreak detection. Questions of detection credibility arise due to the quality of the data used in outbreak detection and the approximations inherent in MFVI, which lead to narrow posterior distributions. Diseases spread, and an areal unit which shows persistently high disease levels while surrounded by quiescent areal units, is difficult to explain. This unexplainable behavior may simply be an erroneous detection and thus could be ignored.

6 Conclusion

In this paper, we have developed a scalable but approximate method to estimate the infection-rate field of an outbreak, defined over a collection of areal units. The method was demonstrated using COVID-19 data from the counties of NM. The purpose of estimating the infection-rate field was to detect a sudden change in the epidemiological dynamics, corresponding to the arrival of a new wave of infections. Contemporary methods use case-counts to perform this detection and are plagued by stochasticity and reporting errors in the data, especially when case-counts are low (as may be expected from sparsely-populated regions); in contrast, the infection-rate is governed by human mixing patterns that do not vary erratically day-to-day. Our method is based on mean-field variational inference (MFVI), but required some innovations for computational efficiency and for enforcing non-negativity constraints in the variables being estimated. MFVI addresses the issue of spatial auto-correlation in the COVID-19 dataset with a Gaussian Markov Random field.

The MFVI method obtains its scalability (in terms of the number of variables being estimated) by imputing a parametrized form for the posterior density, a set of independent Gaussians in our case; thereafter we estimate their means and standard deviations using scalable gradient-based algorithms. We compared the predictive skill of disease models that used the infection-rate field estimated using AMCMC versus MFVI to answer the research questions posed in § 1. Our findings are listed below.

  • We find that the predictive skills of AMCMC- and MFVI-calibrated epidemiological models are similar, even though the parameters’ posterior distributions estimated by the two method are somewhat different. The uncertainties in the parameters estimated from MFVI are too small to be credible, in line with previous findings [51]. Both the approaches also estimate the noise in the data (i.e., the component of data variability that cannot be represented by the disease model), and the MFVI estimate is far larger than the AMCMC counterpart. In this manner MFVI compensates for its spuriously low uncertainty estimates in the parameters of the disease model, and achieves similar levels of predictive skill as the AMCMC method (which makes no approximations).
  • The GMRF spatial model plays an important role in stabilizing the inversion. It regularizes the estimation problem with a Gaussian Markov Random Field, and is sufficient to stabilize the estimation when the observed case-counts from certain areal units (counties) bear no resemblance to the waxing and waning of the COVID-19 pandemic that is clearly observed in case-count data aggregated to the state level. Counties like Cibola and Rio Arriba, where errors / shortcomings in the data do not allow a reliable estimation of the infection-rate are regularized by it, and in the case of Rio Arriba also provides a credible forecast of the epidemiological dynamics. This robustness to occasional low quality data, which is to be expected for large inversions, allows the automation of the estimation process without any manual “cleaning” of the data and imputations of “cleaned” data values.
  • The infection-rate field, estimated using MFVI, is used to detect the arrival of the Fall 2020 wave of COVID-19 in NM. To do so, we design a crude temporal anomaly detector which contrasts model forecasts with observed data; large discrepancies imply a change in epidemiological dynamics from the past. We had no difficulty in detecting the wave when it was present, but suffered from false positives when tests were conducted using data from before the arrival. These false positives were caused by high-variance noise in low case-count data and could be removed by temporal averaging. However, by doing so, our detections were no longer very timely. In addition, the availability of an infection-rate field allowed us to exploit the spatial auto-correlation to remove counties with spuriously high levels of epidemiological activity when their neighbors were quiescent. It is clear that MFVI yields useful information about the outbreak signature and does so in a scalable fashion.

Note that we made no attempt to design a proper anomaly detector with tunable parameters to trade-off specificity versus sensitivity and plot Receiver Operation Characteristic curves; our aim was to merely test of the existence of certain information in the infection-rate estimates. However, the study revealed that a proper anomaly detector would either have to smooth out high-variance noise in low case-count data, or be formulated using Negative Binomial or Poisson assumptions; these will be necessary to suppress false positives when the data has high-variance noise. False negatives, on the other hand, may not require any special considerations; this is certainly true for the NM COVID-19 dataset.

Note that other, non-Gaussian distributions may result in a more accurate posterior approximation through variational inference. In general, any distribution with finite moments could theoretically be used but may result in a more complex variational inference algorithms depending on the tractability of its statistics. Exploration of the optimal distribution assumption is left for future work.

A software implementation of the method described in this paper and the associated data can be found at our GitHub repository [61]. The specific version of the software used in this paper, and the necessary data, can also be found in Figshare [62].

Appendix

A Variational Inference

A.1 Score gradients of the ELBO.

We briefly review the score estimator, or black-box, approach to estimating the gradient of the ELBO. Recall that the ELBO is given by 9 which, for the sake of clarity, can be written in a more generic form

(14)

where encapsulates the dependence on the random vector . To derive an estimator for the gradient, we can carry out the following manipulations

(15)(16)(17)(18)(19)

Hence, the gradient can be expressed as an expectation with respect to where only the log of the surrogate posterior needs to be differentiated with respect to the variational parameters .

A.2 Reparametrization gradients of the ELBO.

The likelihood and log likelihood are given by

(20)(21)

Using the reparametrization trick, we can write the ELBO (9) and its gradient in the form

(22)(23)

where , with . Here, is a positive transformation of the unconstrained variable to ensure the variance is constrained to be positive. A Monte Carlo estimator of the gradient can then be written as

(24)(25)(26)

where the last line is given by the chain rule and the fact that is defined by an element-wise transformation of . Observe that

(27)(28)(29)(30)

so that it remains to compute the gradients of the log-likelihood and prior.

A.3 Gradients of the log likelihood.

As the log likelihood factors independently across the data , it suffices to compute the gradients and for a particular day i. The differentials of the these two terms are computed using matrix calculus [64] as

(31)(32)(33)

where the differential of is

(34)(35)

We have the following derivatives:

Case: are the unconstrained model variables for region r and is a particular variable.

(36)(37)(38)(39)(40)

Case:

(41)(42)(43)(44)

Case:

(45)(46)(47)(48)

Case:

(49)(50)(51)(52)

Case:

(53)(54)(55)(56)

The variable transformations are listed in Table 2.

thumbnail
Table 2. Variable transformations. is the softplus function and satisfies .

https://doi.org/10.1371/journal.pone.0350090.t002

A.4 Approximation of model predictions and gradients via quadrature..

The model predictions yi, given by (2), involve a convolution integral that cannot be expressed in closed form. Hence, we approximate the predictions by integral quadrature

(57)(58)(59)

where wj, are quadrature weights and points given by a method such as Gaussian quadrature. As the function does not depend on parameters , we can write it as for simplicity of notation. By the Leibniz integral rule, we can write the derivatives of the model predictions as

(60)(61)

This requires that the functions and are continuous in and in a region of the plane including , a condition that’s easily met by ensuring certain constraints are satisfied by the parameters for . These constraints are enforced via the variable transformations in (12). Hence, we can approximate (60) and (61) via quadrature in the form

(62)(63)

Hence, in this implementation of VI, gradients of the ELBO have a pseudo-analytic form where “outer” gradients of the log likelihood with respect to model predictions are exact and “inner” gradients of the model predictions with respect to parameters are approximated via quadrature. This allows for accurate gradient approximations that can be calculated efficiently leading to a scalable VI algorithm that can be applied to the high-dimensional inverse problem for the outbreak model.

B Infection-rate estimates

4.1 describes the estimation of the infection-rate field over Bernalillo, Santa Fe and Valencia using MFVI jointly (where the GMRF spatial model is used) and individually. Fig 3 plots the PPT runs, driven by a distribution of infection-rate fields. The corresponding fields are in Fig 14.

thumbnail
Fig 14. Comparison of the infection rate curves that determine predictions in Fig 3.

These are for a 3-county inference of Bernalillo (left), Santa Fe (middle), and Valencia (right) done jointly using the GMRF model and independently for each county. The solid lines shows the median predictions and the dashed lines are the 5th and 95th percentiles.

https://doi.org/10.1371/journal.pone.0350090.g014

The same section describes the estimation of the infection-rate field over Bernalillo, Santa Fe and Valencia using AMCMC and the MFVI. Fig 4 plots the PPT runs, driven by a distribution of infection-rate fields. The corresponding fields are in Fig 15.

thumbnail
Fig 15. Comparison of the infection rate curves that determine predictions in Fig 4.

These are for a 3-county inference of Bernalillo (left), Santa Fe (middle), and Valencia (right) done jointly using the MFVI and AMCMC (taken from Refs. [8,9]). The solid lines shows the median predictions and the dashed lines are the 5th and 95th percentiles.

https://doi.org/10.1371/journal.pone.0350090.g015

Acknowledgments

We thank Lyndsay Shand and her co-workers for much of the data [63] used in this project. This paper describes objective technical results and analysis. Any subjective views or opinions that might be expressed in the paper do not necessarily represent the views of the U.S. Department of Energy or the United States Government. This article has been authored by an employee of National Technology & Engineering Solutions of Sandia, LLC under Contract No. DE-NA0003525 with the U.S. Department of Energy (DOE). The employee owns all right, title and interest in and to the article and is solely responsible for its contents. The United States Government retains and the publisher, by accepting the article for publication, acknowledges that the United States Government retains a non-exclusive, paid-up, irrevocable, world-wide license to publish or reproduce the published form of this article or allow others to do so, for United States Government purposes. The DOE will provide public access to these results of federally sponsored research in accordance with the DOE Public Access Plan https://www.energy.gov/downloads/doe-public-access-plan.

References

  1. 1. Daza-Torres ML, Capistrán MA, Capella A, Christen JA. Bayesian sequential data assimilation for COVID-19 forecasting. Epidemics. 2022;39:100564. pmid:35487155
  2. 2. Wang Z, Zhang X, Teichert GH, Carrasco-Teja M, Garikipati K. System inference for the spatio-temporal evolution of infectious diseases: Michigan in the time of COVID-19. Comput Mech. 2020;66(5):1153–76. pmid:35194281
  3. 3. Chen P, Wu K, Ghattas O. Bayesian inference of heterogeneous epidemic models: Application to COVID-19 spread accounting for long-term care facilities. Comput Methods Appl Mech Eng. 2021;385:114020. pmid:34248229
  4. 4. Blonigan P, Ray J, Safta C. Forecasting Multi-Wave Epidemics Through Bayesian Inference. Arch Comput Methods Eng. 2021;28(6):4169–83. pmid:34335019
  5. 5. Lin YT, Neumann J, Miller EF, Posner RG, Mallela A, Safta C, et al. Daily Forecasting of Regional Epidemics of Coronavirus Disease with Bayesian Uncertainty Quantification, United States. Emerg Infect Dis. 2021;27(3):767–78. pmid:33622460
  6. 6. Safta C, Ray J, Sargsyan K. Characterization of partially observed epidemics through Bayesian inference: application to COVID-19. Comput Mech. 2020;66(5):1109–29. pmid:33041410
  7. 7. Haario H, Saksman E, Tamminen J. An Adaptive Metropolis Algorithm. Bernoulli. 2001;7(2):223.
  8. 8. Safta C, Bridgman W, Ray J. Detecting outbreaks using a latent field: part i – spatial modeling. 2024. https://arxiv.org/abs/2406.12810
  9. 9. Safta C, Ray J, Bridgman W. Detecting outbreaks using a spatial latent field. PLoS One. 2025;20(7):e0328770. pmid:40743263
  10. 10. Lawson AB, Song HR. Bayesian hierarchical modeling of the dynamics of spatio-temporal influenza season outbreaks. Spatial and spatio-temporal epidemiology. 2010;1(2–3):187–95.
  11. 11. Lawson AB. Evaluation of predictive capability of Bayesian spatio-temporal models for Covid-19 spread. BMC Med Res Methodol. 2023;23(1):182. pmid:37568119
  12. 12. Kim J, Lawson AB, Neelon B, Korte JE, Eberth JM, Chowell G. Evaluation of Bayesian spatiotemporal infectious disease models for prospective surveillance analysis. BMC Med Res Methodol. 2023;23(1):171. pmid:37481553
  13. 13. Huang X, Zhou H, Yang X, Zhou W, Huang J, Yuan Y. Spatial Characteristics of Coronavirus Disease 2019 and Their Possible Relationship With Environmental and Meteorological Factors in Hubei Province, China. Geohealth. 2021;5(6):e2020GH000358. pmid:34189364
  14. 14. Geng X, Katul GG, Gerges F, Bou-Zeid E, Nassif H, Boufadel MC. A kernel-modulated SIR model for Covid-19 contagious spread from county to continent. Proc Natl Acad Sci U S A. 2021;118(21):e2023321118. pmid:33958443
  15. 15. Schüler L, Calabrese JM, Attinger S. Data driven high resolution modeling and spatial analyses of the COVID-19 pandemic in Germany. PLoS One. 2021;16(8):e0254660. pmid:34407071
  16. 16. McMahon T, Chan A, Havlin S, Gallos LK. Spatial correlations in geographical spreading of COVID-19 in the United States. Sci Rep. 2022;12(1):699. pmid:35027627
  17. 17. Indika SHS, Diawara N, Jeng HA, Giles BD, Gamage DSK. Modeling the spread of COVID-19 in spatio-temporal context. Math Biosci Eng. 2023;20(6):10552–69. pmid:37322948
  18. 18. Lawson A, Lee D. Bayesian Disease Mapping for Public Health. In: Srinivasa Rao ASR, Pyne S, Rao CR. Disease Modelling and Public Health, Part A. Elsevier. 2017. 443–81.
  19. 19. Besag J, York J, Mollié A. Bayesian image restoration, with two applications in spatial statistics. Ann Inst Stat Math. 1991;43(1):1–20.
  20. 20. Lawson AB, Kim J. Space-time covid-19 Bayesian SIR modeling in South Carolina. PLoS One. 2021;16(3):e0242777. pmid:33730035
  21. 21. Sartorius B, Lawson AB, Pullan RL. Modelling and predicting the spatio-temporal spread of COVID-19, associated deaths and impact of key risk factors in England. Sci Rep. 2021;11(1):5378. pmid:33686125
  22. 22. Rotejanaprasert C, Lawson A, Bolick-Aldrich S, Hurley D. Spatial Bayesian surveillance for small area case event data. Stat Methods Med Res. 2016;25(4):1101–17. pmid:27566768
  23. 23. Corberán-Vallet A, Lawson AB. Conditional predictive inference for online surveillance of spatial disease incidence. Stat Med. 2011;30(26):3095–116. pmid:21898522
  24. 24. Brooks S. Markov chain Monte Carlo method and its application. J Royal Statistical Soc D. 1998;47(1):69–100.
  25. 25. van Ravenzwaaij D, Cassey P, Brown SD. A simple introduction to Markov Chain Monte-Carlo sampling. Psychon Bull Rev. 2018;25(1):143–54. pmid:26968853
  26. 26. Roberts GO, Tweedie RL. Exponential Convergence of Langevin Distributions and Their Discrete Approximations. Bernoulli. 1996;2(4):341.
  27. 27. Blei DM, Kucukelbir A, McAuliffe JD. Variational Inference: A Review for Statisticians. Journal of the American Statistical Association. 2017;112(518):859–77.
  28. 28. Jordan MI, Ghahramani Z, Jaakkola TS, Saul LK. An Introduction to Variational Methods for Graphical Models. Machine Learning. 1999;37(2):183–233.
  29. 29. Blundell C, Cornebise J, Kavukcuoglu K, Wierstra D. Weight uncertainty in neural networks. In: International Conference on Machine Learning, 2015. 1613–22.
  30. 30. Kingma DP, Welling M. An Introduction to Variational Autoencoders. Foundations and Trends® in Machine Learning. 2019;12(4):307–92.
  31. 31. Hernández-Lobato JM, Adams R. Probabilistic backpropagation for scalable learning of Bayesian neural networks. In: 2015. 1861–9.
  32. 32. Tanno R, Worrall DE, Ghosh A, Kaden E, Sotiropoulos SN, Criminisi A, et al. Bayesian Image Quality Transfer with CNNs: Exploring Uncertainty in dMRI Super-Resolution. Lecture Notes in Computer Science. Springer International Publishing. 2017. p. 611–9. https://doi.org/10.1007/978-3-319-66182-7_70
  33. 33. Rączkowska A, Możejko M, Zambonelli J, Szczurek E. ARA: accurate, reliable and active histopathological image classification framework with Bayesian deep learning. Sci Rep. 2019;9(1):14347. pmid:31586139
  34. 34. Ozdemir O, Woodward B, Berlin AA. Propagating uncertainty in multi-stage bayesian convolutional neural networks with application to pulmonary nodule detection. In: 2017. https://arxiv.org/abs/1712.00497
  35. 35. Luo G, Dong S, Wang W, Wang K, Cao S, Tam C, et al. Commensal correlation network between segmentation and direct area estimation for bi-ventricle quantification. Med Image Anal. 2020;59:101591. pmid:31704452
  36. 36. Carvalho EDC, Clark R, Nicastro A, Kelly PHJ. Scalable Uncertainty for Computer Vision With Functional Variational Inference. In: 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020. 12000–10. https://doi.org/10.1109/cvpr42600.2020.01202
  37. 37. Liang P, Petrov S, Jordan MI, Klein D. The infinite PCFG using hierarchical Dirichlet processes. In: Proceedings of the 2007 joint conference on empirical methods in natural language processing and computational natural language learning (EMNLP-CoNLL), 2007. 688–97.
  38. 38. Hu S, Xie X, Liu S, Yu J, Ye Z, Geng M, et al. Bayesian Learning of LF-MMI Trained Time Delay Neural Networks for Speech Recognition. IEEE/ACM Trans Audio Speech Lang Process. 2021;29:1514–29.
  39. 39. Meng X, Babaee H, Karniadakis GE. Multi-fidelity Bayesian neural networks: Algorithms and applications. Journal of Computational Physics. 2021;438:110361.
  40. 40. Yang L, Meng X, Karniadakis GE. B-PINNs: Bayesian physics-informed neural networks for forward and inverse PDE problems with noisy data. Journal of Computational Physics. 2021;425:109913.
  41. 41. Dandekar R, Chung K, Dixit V, Tarek M, Garcia-Valadez A, Vemula KV. Bayesian neural ordinary differential equations. 2020. https://doi.org/10.48550/arXiv.2012.07244
  42. 42. Friston K, Costello A, Pillay D. “Dark matter”, second waves and epidemiological modelling. BMJ Glob Health. 2020;5(12):e003978. pmid:33328201
  43. 43. Friston KJ, Flandin G, Razi A. Dynamic causal modelling of COVID-19 and its mitigations. Sci Rep. 2022;12(1):12419. pmid:35859054
  44. 44. Fan K, Li C, Heller K. A Unifying Variational Inference Framework for Hierarchical Graph-Coupled HMM with an Application to Influenza Infection. AAAI. 2016;30(1).
  45. 45. Hassan MN, Mahmud MS, Nipa KF, Kamrujjaman M. Mathematical Modeling and COVID-19 Forecast in Texas, USA: A Prediction Model Analysis and the Probability of Disease Outbreak. Disaster Med Public Health Prep. 2021;17:e19. pmid:34006346
  46. 46. Kamrujjaman Md, Saha P, Islam MdS, Ghosh U. Dynamics of SEIR model: A case study of COVID-19 in Italy. Results in Control and Optimization. 2022;7:100119.
  47. 47. Biazzo I, Braunstein A, Dall’Asta L, Mazza F. A Bayesian generative neural network framework for epidemic inference problems. Sci Rep. 2022;12(1):19673. pmid:36385141
  48. 48. Lee D, Rushworth A, Napier G. Spatio-Temporal Areal Unit Modeling in R with Conditional Autoregressive Priors Using the CARBayesST Package. J Stat Soft. 2018;84(9).
  49. 49. Lauer SA, Grantz KH, Bi Q, Jones FK, Zheng Q, Meredith HR, et al. The Incubation Period of Coronavirus Disease 2019 (COVID-19) From Publicly Reported Confirmed Cases: Estimation and Application. Annals of Internal Medicine. 2020.
  50. 50. Kucukelbir A, Tran D, Ranganath R, Gelman A, Blei DM. Automatic differentiation variational inference. Journal of Machine Learning Research. 2017;18:1–45.
  51. 51. Han W, Yang Y. Statistical inference in mean-field variational Bayes. 2019. https://doi.org/10.48550/arXiv.1911.01525
  52. 52. Gneiting T, Raftery AE. Strictly Proper Scoring Rules, Prediction, and Estimation. Journal of the American Statistical Association. 2007;102(477):359–78.
  53. 53. Safta C, Ricciuto DM, Sargsyan K, Debusschere B, Najm HN, Williams M, et al. Global sensitivity analysis, probabilistic calibration, and predictive assessment for the data assimilation linked ecosystem carbon model. Geosci Model Dev. 2015;8(7):1899–918.
  54. 54. Hegde A, Weiss E, Windl W, Najm HN, Safta C. A Bayesian calibration framework with embedded model error for model diagnostics. Int J UncertaintyQuantification. 2024;14(6):37–70.
  55. 55. R Core Team. R: A Language and Environment for Statistical Computing. 2023.
  56. 56. Salmon M, Schumacher D, Höhle M. Monitoring Count Time Series inR: Aberration Detection in Public Health Surveillance. J Stat Soft. 2016;70(10).
  57. 57. Coronavirus (Covid-19) Data in the United States. https://github.com/nytimes/covid-19-data
  58. 58. Center for Systems Science and Engineering (CSSE) at Johns Hopkins University. COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University. 2023. https://github.com/CSSEGISandData/COVID-19
  59. 59. Cartographic Boundary Shapefiles. https://www.census.gov/geographies/mapping-files/2018/geo/carto-boundary-file.html
  60. 60. Kingma DP, Ba J. ADAM: A method for stochastic optimization. 2017. https://arxiv.org/abs/1412.6980
  61. 61. PRIME-VI GitHub Repository. https://github.com/sandialabs/PRIME-VI
  62. 62. PRIME-VI. https://doi.org/10.6084/m9.figshare.29621507
  63. 63. Shand L, Foss A, Zhang A, Tucker JD, Huerta G. SAND2020-10080. Albuquerque, NM: Sandia National Laboratories. 2020.
  64. 64. Petersen KB, Pedersen MS, et al. The matrix cookbook. 2008. https://math.uwaterloo.ca/hwolkowi/matrixcookbook.pdf