 Research
 Open Access
 Published:
Spatiotemporal reproduction number with Bayesian model selection for evaluation of emerging infectious disease transmissibility: an application to COVID19 national surveillance data
BMC Medical Research Methodology volume 23, Article number: 62 (2023)
Abstract
Background
To control emerging diseases, governments often have to make decisions based on limited evidence. The effective or temporal reproductive number is used to estimate the expected number of new cases caused by an infectious person in a partially susceptible population. While the temporal dynamic is captured in the temporal reproduction number, the dominant approach is currently based on modeling that implicitly treats people within a population as geographically well mixed.
Methods
In this study we aimed to develop a generic and robust methodology for estimating spatiotemporal dynamic measures that can be instantaneously computed for each location and time within a Bayesian model selection and averaging framework. A simulation study was conducted to demonstrate robustness of the method. A case study was provided of a realworld application to COVID19 national surveillance data in Thailand.
Results
Overall, the proposed method allowed for estimation of different scenarios of reproduction numbers in the simulation study. The model selection chose the true serial interval when included in our study whereas model averaging yielded the weighted outcome which could be less accurate than model selection. In the case study of COVID19 in Thailand, the best model based on model selection and averaging criteria had a similar trend to real data and was consistent with previously published findings in the country.
Conclusions
The method yielded robust estimation in several simulated scenarios of force of transmission with computing flexibility and practical benefits. Thus, this development can be suitable and practically useful for surveillance applications especially for newly emerging diseases. As new outbreak waves continue to develop and the risk changes on both local and global scales, our work can facilitate policymaking for timely disease control.
Background
Since the emergence of the new severe acute respiratory syndrome coronavirus (SARSCoV) at the end of 2019, it has spread rapidly around the world, infecting millions of people. By early 2020, COVID19 outbreaks had appeared in many countries with one of the first affected being Thailand. Figure 1 shows the numbers of new and cumulative cases in Thailand during the first outbreak in 2020. Due to the absence of an effective treatment or vaccine through much of 2020, strategies to counter the epidemic focused on physical distancing, mask wearing, hand hygiene and restricted international and local travel to slow transmission and avoid overwhelming of the health system. Following introduction of vaccines, there have been challenges of limited availability and limited efficacy against transmission, particularly of more recent variants. Thus, transmission prevention through other measures has continued to be employed. Both the planning and public acceptance of such measures have been highly dependent upon the use of epidemiological models to probe the potential impact of interventions. The effectiveness of, and decisionmaking for, those interventions needs to be continuously monitored and evaluated.
The decisionmaking problem faced by government policymakers during a pandemic crisis like COVID19 is not trivial. In this circumstance governments often have to make decisions based on very uncertain information. Since the disease situation can be very dynamic, it is particularly important to have updated information for prompt decision making. Various transmissibility metrics can be adopted to inform the planning of control measures depending on the available data. The reproduction number is a key threshold widely used to assess the transmission dynamics of an emerging infection including COVID19 [1, 2]. The basic form of reproduction number (R_{0}) yields the average number of secondary cases generated per case in a fully susceptible population. Although the basic reproduction number may be valuable to understand the pattern of disease, it assumes that the outbreak first occurs in a population with full susceptibility, and hence this quantity is essentially a theoretically defined number and may be less useful to monitor and evaluate the dynamics of disease transmission in real populations [3,4,5]. An wide range of methods have been proposed to estimate the basic reproduction number (see examples [6, 7]).
The effective or temporal reproductive number, denoted as R_{e} or R_{t}, is used to estimate the expected number of new cases caused by an infectious person in a partially susceptible population [8, 9]. If the reproduction number is less than one, the disease occurs in isolated clusters as selflimited chains of transmission, whilst a reproduction number larger than or equal to one indicates sustained transmission. Estimation of R_{t} has been used to assess how changes in public health policies and interventions have affected transmission at specific points in time, including for COVID19 in many countries (see examples [10,11,12]). While the temporal dynamic is captured by R_{t}, the dominant approach is currently based on modeling that implicitly treats people within a population as geographically well mixed. Although mathematical modeling could potentially be used to calculate the spatially varying R_{t}, this would require detailed information which could be challenging as there would be limited evidence with emerging diseases. While some such methods include differential contact by demographic and agespecific groups, those models presently in wide use do not incorporate spatial heterogeneity at local scales [13]. Previous studies however have presented evidence of heterogeneity in social relationships at regional, urban, and suburban scales [14, 15], with these variations in disease spread [3, 16], neighborhood identification, and development [17]. If each individual is not socially well mixed at local scales, it is then probable that diffusion of infected cases via interpersonal contacts will likely deviate from the assumption of uniformly mixed characteristics. To incorporate spatial heterogeneity, this estimation challenge can be further extended to, and addressed within, a small area modeling framework which can produce sensible estimates by sharing information between neighboring areas.
Another aspect that needs to be considered is the model specification for reproduction number estimation. A key ingredient to compute reproduction numbers is the generation interval [8, 18] and misspecification of this component can create large potential bias in transmission estimates which in turn can mislead the public health response. Selecting an appropriate generation time is one of the most important aspects of the calculation, and this can become very challenging when space–time structures are present in the data. Many methods, such as variable selection, transformation selection, model selection, and model averaging, have been proposed and explored to achieve these goals (see examples [19,20,21]). In this article, we examined the application of two types of spatial model selection techniques, Bayesian model selection based on information criteria (BMS) and Bayesian model averaging (BMA) [22, 23] to choose appropriate estimates in the small area COVID19 transmission modeling. This can be achieved by assigning prior probability distributions to each of the possible parameters or models. For BMS, we then choose the parameter or model associated with the largest posterior information criteria while, in the BMA method, average posterior parameters or models are calculated based on the posterior model probabilities.
In this study we aimed to develop a generic and robust methodology for estimating spatiotemporal dynamic measures that can be instantaneously computed for each location and time within a Bayesian model selection and averaging framework. The proposed spatiotemporal reproduction number can also be linked to the effective reproduction number defined in [8, 24] as the weighted sum over the study units. The proposed methodology was described in the next section with a simulation study to demonstrate robustness of the method. A realworld case study was also provided of an application to COVID19 national surveillance data in Thailand.
Methods
Temporal and spatiotemporal reproduction numbers
To evaluate the dynamic situation, it is crucial to accurately detect transmission changes and assess the impact of implemented interventions over time. There are two common ways to define the temporal measures in terms of reproduction number. The first quantity is the case reproduction number [25, 26] which is appropriate for retrospective surveillance data to understand how individuals infected at different time points contributed to the spread. This is a more natural choice for analyses that consider heterogeneity among individuals. For example, the case reproduction number can be adapted to incorporate data on observed transmission chains [25] or to produce agestructured estimates, given an agestructured contact matrix [27]. The instantaneous reproduction number is perhaps more suitable for estimating the reproduction number of the infected population on specific dates, particularly when the goal is to study how interventions or other extrinsic variables have an effect on the disease transmission at a given time. Conceptually, the case reproductive number may not be appropriate for timely estimation but might be useful in retrospective modeling, in particular for those involving individual risk factors.
More formally, the instantaneous or effective reproductive number, R_{t}, is defined as the expected number of secondary infections occurring at time t, divided by the number of infected individuals, each scaled by their relative infectiousness at time t (an individual’s relative infectiousness is based on the generation interval and time since infection) [8, 26]. The generation time can be difficult to observe and a serial interval, the time from illness onset in the primary case to illness onset in the secondary case, is often adopted instead [18, 28]. The instantaneous reproduction number can be calculated using a published method [8, 26, 29] following the renewal equation in which the series of expected incidence arise from \(Poisson\left( {R_{t} \sum\nolimits_{l}^{L} {y_{t  l} w_{l} } } \right)\) where y_{t} is the incidence at time t. From this, a data distribution given a set of model parameters can be calculated, as well as the posterior distribution of R_{t} given collected observations of incidence and knowledge of the serial intervals or weights,\(\{ {\varvec{w}}_{l} \}\) where L is the maximum time of the generation interval. Conceptually, this estimator describes the ratio of the number of new infections on day t to the number of individuals who became infected l days in the past and who may now be shedding the infection.
To account for spatial heterogeneity at local scales, let y_{st} be the number of new COVID19 cases at location s and time t and the disease transmission is presumably modeled with a Poisson process. With the cases usually reported at a discrete time interval such as daily, and assuming the transmissibility remains constant in the time interval (t, t + 1], the incidence at location s and time t then follows a Poisson distribution with mean \(\mu_{st} = R_{st} \sum\nolimits_{l}^{L} {y_{st  l} w_{l} }\) where R_{st} is a spatial extension of the effective reproduction number, here named spatiotemporal reproduction number. To account for spatiotemporal variables and extra variation,\(R_{st}\) can be linked to a linear predictor consisting of local variables such as environmental and demographic factors and space–time random effects as \(\log (R_{st} ) = \alpha + {\varvec{X}}_{st} {\varvec{\beta}}_{st} + u_{s} + v_{s} + \lambda_{t} + \delta_{st}\). There is an extensive literature on space–time random effect modeling (see examples [30, 31]). To specify prior distributions, the correlated (u_{s}) and uncorrelated (v_{s}) spatial components commonly have an intrinsic conditional autoregressive model and zero mean Gaussian distribution respectively. For separate temporal random effect (λ_{t}) and space–time interaction (δ_{st}) terms in the linear predictor, the temporal effect can be described using an autoregressive prior distribution allowing for a type of nonparametric temporal effect, often with a random walk prior distribution with oneunit lag. For the interaction term, the prior structure is usually assumed to be distributed as a zero mean Gaussian distribution.
Bayesian model selection and averaging infectious transmission dynamics
As mentioned above, the estimation of reproduction numbers is dependent on the choice of the infectiousness weight profile,\(w_{l}\), which is an important ingredient to determine transmission dynamics in the renewal equation. In practice, the standard distribution for the generation time or serial interval weight can be considered as a discretized nonnegative distribution. Gamma and LogNormal are common choices in reproduction number estimation of infectious diseases including COVID19 [8, 32, 33]. However, misspecification of the interval weight can lead to bias and the estimation is also sensitive to the parameters of the distribution, e.g. mean and variance. For example, if the mean is presumably too high, the computed reproduction number can be greater than one and vice versa. The reproduction number can be highly susceptible to the misspecification especially during the early period of transmission due to the limited data.
There are a number of ways to account for the uncertainty in the parametric specification. One option is to resample the parameters over a range of plausible values [8] while prior distributions also have been applied to quantify the estimation [34]. Selecting appropriate parameter values is one of the most important aspects of the disease transmission measure, and this can become very challenging when spatiotemporal structures are present in the data. Many methods have been proposed and explored to achieve these goals (see examples [19, 21, 23]). In this work, we discussed the application of two types of spatiotemporal model selection technique, model selection and model averaging, within the Bayesian framework, to account for uncertainty in parametric specification of reproduction number estimation.
Bayesian model selection
Posterior measures have been proposed to assess the model selection. The “model” in general can be referred to as model specification or different values of parameters. Since we focused on generation time identification, the model here was referred to as combinations of associated parameters in the general time interval used in the reproduction number calculation. To perform model selection, one can simply choose the model with the best evaluation measure. Model assessment criteria are useful to measure how consistent the data are with a given specification. To evaluate choices for generation interval parameters, our assessment was based on five metrics. The first two were error rates, bias and root mean squared error (RMSE), and the other three were posterior Bayesian model selection measures.
The first error rate was bias, computed as the average difference between the simulated (true) mean and its estimate across the simulated datasets in each scenario. It is desirable for this measure to be near zero. To investigate the variance information of the estimates we then also examined RMSE, summation of the variance of an estimate plus the square of its bias. This metric was computed as the squared root of the average squared difference between the simulated mean and its estimate across the simulation replications. For posterior measures of model selection, the first method was the conditional predictive ordinate (CPO) [35]. This metric is a crossvalidation criterion for model assessment that is computed for each observation as \(CPO_{st} = P(y_{st} \user2{y}_{  st} )\). Hence, for each observation the conditional predictive ordinate is the posterior probability of observing that observation when the model is fit using all data for an observation at location s and time t. Large values indicate a better fit of the model to the data, while small values indicate a bad fit of the model. The conditional predictive ordinate measure for each model then can be summarized as \(CPO = \sum\nolimits_{t} {\sum\nolimits_{s}^{{}} {CPO_{st} } }\) with bigger values indicating a better model fit.
In full Bayesian model comparison, the deviance information criterion (DIC) is a common metric used to evaluate the overall goodness of fit of models. For any sample primary parameter value θ^{g} for the conditional likelihood, the deviance is \(D(\theta_{st}^{g} ) =  2\log (P_{{\theta_{st} y_{st} }} (y_{st} \theta_{st}^{g} ))\) and \(\overline{D }\) is the average deviance over the g posterior samplers. The effective number of parameters (pD) is estimated as \(pD = \overline{D}  D(\overline{\theta }_{st} )\), and finally, \(DIC = \overline{D} + pD\). An additional measure of the same type is the WatanabeAkaike information criterion, also known as widely applicable Bayesian information criterion (WAIC), which makes use of the posterior predictive distribution, as described by Watanabe [36] and Gelman, Hwang, and Vehtari [37], such that \(WAIC =  2(lpd  pD_{WAIC} )\) where \(lpd = \sum\nolimits_{s} {\sum\nolimits_{t}^{{}} {\log \left( {{{\sum\nolimits_{{}} {\sum\nolimits_{t}^{{}} {P(y_{st} \overline{\theta }_{st} \user2{)}} } } \mathord{\left/ {\vphantom {{\sum\nolimits_{{}} {\sum\nolimits_{t}^{{}} {P(y_{st} \overline{\theta }_{st} \user2{)}} } } {(S \times T)}}} \right. \kern0pt} {(S \times T)}}} \right)} }\) and \(pD_{WAIC}\) is the summation of the variance of loglikelihood. Small values of the information criteria indicate a better fit of the model.
Bayesian model averaging
The Bayesian model selection presented above is appropriate when there is a single model standing out. However, if this is not the case, model averaging might be a more suitable alternative method that can produce an option that forms an estimate averaged over plausible alternatives weighted by the model probabilities. To perform Bayesian model averaging, this method averages over j = 1,…,J models, M_{1},…, M_{J}, to find the posterior estimates for the reproductive number. Then, to account for uncertainty over the possible models, the posterior estimate from model averaging follows
where \(\theta_{st}\) is the parameter of interest,\(P(M_{j} {\varvec{y}}_{st} )\) is the model probability for model j, and \(P(\theta_{st} {\varvec{y}}_{st} ,M_{j} )\) is obtained by marginalizing the posterior distribution of the model parameters. By Bayes’ rule, the posterior selection probability for model M_{j} can be expressed as
where \(P({\varvec{y}}_{st} M_{j} ) = \int {...\int {P({\varvec{y}}_{st} {\varvec{\theta}}_{st} ,M_{j} )} } P({\varvec{\theta}}_{st} M_{j} )d{\varvec{\theta}}_{st}\).
With noninformative prior distribution on model averaging, one can assume a uniform prior probability across the model choices, i.e., \(P(M) = P(M_{j} )\,\forall j\). The model probabilities can be estimated using the information criteria [38, 39] and the model probability can be defined based on the deviance information criterion as \(P_{DIC} (M_{j} {\varvec{y}}_{st} ) = \frac{{e^{{  DIC(M_{j} )}} }}{{\sum\nolimits_{j}^{J} {e^{{  DIC(M_{j} )}} } }}\). Similarly, we can also specify the model weights using WAIC as \(P_{WAIC} (M_{j} {\varvec{y}}_{st} ) = \frac{{e^{{  WAIC(M_{j} )}} }}{{\sum\nolimits_{j}^{J} {e^{{  WAIC(M_{j} )}} } }}\). Lastly, since CPO is related to the model goodness of fit, an alternative to define the model probabilities is \(P_{CPO} (M_{j} {\varvec{y}}_{st} ) = \frac{{CPO(M_{j} )}}{{\sum\nolimits_{j}^{J} {CPO(M_{j} )} }}\). In the next section, we conducted a simulation study with example data to demonstrate the performance of the proposed methodology with simulated ground truth and real national surveillance data.
Results
Simulation study
Thailand was one of the first countries outside China to be affected with COVID19. It was successfully contained in Bangkok for the first few months. However, this was followed by cluster outbreaks in sport and entertainment events, and appearance of the disease in all provinces across the country. The proposed spatiotemporal reproduction number was developed as a surveillance tool to monitor disease dynamics at local scales described in the previous sections. In this part, a simulation study was conducted to assess our proposed methodology. The simulation data were generated without covariates in different situations with various space–time magnitudes of transmissibility. The district map of Bangkok, Thailand, was used as a basis for the simulation map to represent the disease transmission. This capital province has 50 districts (s = 1–50) with a reasonably regular spatial distribution. The simulated COVID19 incidence was generated for 30 days (t = 1–30) in four different district groups with distinct levels of reproduction number.
Figure 2 displayed the maps showing locations of simulated \(R_{st}\) of each district group on days 15, 20, 25 and 30. The simulated cases in each district group with different degrees of infection transmissibility was shown in Fig. 3 in which each dot represents a simulated incidence from a given simulation set. The first group (middle region in Fig. 2) was simulated with increasing levels of disease transmission as \(R_{st} = 1 + (t \times 0.1)\). The R_{st} was assumed to grow each time period by size 0.1. Then simulated case counts with an exponential increase were generated in this scenario to represent regions with an outbreak (group 1, left panel in Fig. 3). The second district group (western region in Fig. 2) was assumed to have decreasing magnitudes simulated as \(R_{st} = 4.0  (t \times 0.2)\). As can be seen in Fig. 3 (group 2, second panel from the left), the incidence in this scenario increased at the beginning due to strongly positive force of infection but decreases afterwards. In the third scenario (eastern region in Fig. 2), R_{st} was assumed to be 1.8 until day 12, reducing to 0.6 thereafter. This scenario represented an effective intervention being introduced to control an outbreak. The rest of the districts were assumed to have a constant controlled infection rate at R_{st} = 0.9 over the time periods.
The reproduction number calculation was dependent on the choice of serial intervals, which was an important ingredient in the renewal equation. Basing our simulation on the previous spatiotemporal study of COVID19 transmission in Thailand [33], four serial interval weights (mean and standard deviation (SD)), closest to the overall mean of the basic reproduction number, were selected for this study. The four weights were weight 1 with mean = 4.7 and SD = 2.9; weight 2 with mean = 4.56, SD = 0.95; weight 3 with mean = 4.22, SD = 0.4; and weight 4 with mean = 5.2, SD = 1.72. For the discrete serial weights, \(w_{l}\), were then drawn from a Gamma distribution with the parameter sets with the maximum infectious time, L, of 10 days. Figure 4 depicted the selected serial interval weights used in the simulation study.
One hundred simulated incidence datasets were generated with the number of newly infected people as 4 for the first 10 days. For days t > 10, the new cases \(y_{it}\) were sampled from a Poisson distribution for each location with mean \(\mu_{st} = R_{st} \sum\nolimits_{l = 1}^{10} {w_{sl} \mu_{st  l} }\). The prior distribution for precision parameters was set as a LogGamma (0.01, 0.01) distribution. In general, parameter estimates for this modeling framework can be computed from converged posterior samples using samplingbased algorithms such as Markov chain Monte Carlo (MCMC). However, since timeliness is an important feature of infectious disease surveillance, especially for emerging diseases, with the multidimensional model set up, MCMC makes high computational demands. A alternative approach to infer parameters in this context is the integrated nested Laplace approximation (INLA) [40]. With optimized numerical routines for performing the above computations, the proposed methodology was then implemented using the numerical Laplace approximation in the RINLA package.
The simulated and corresponding estimated spatiotemporal reproduction numbers for each group of districts with different model selection and averaging criteria were depicted in Fig. 5 while numerical comparison based on evaluation metrics was shown in Table 1. Overall, the proposed method allowed for estimation of the constant reproduction number used in group 4 while the constant changes in \(R_{st}\) were detected in both increasing (group 1) and decreasing (group 2) forces of infection. The method could also identify a rapid change in transmissibility, perhaps due to intense interventions such as lockdown policy (group 3). In terms of model selection, the serial interval weights 1 and 4 could best recover the simulated transmissibility, slightly better than weight 4, with the smallest bias and MSE and best goodness of fit criteria followed by weights 2 and 3 respectively. The model averaging yielded decent results between weight 3 and weights 1 and 4, similar to weight 2.
The estimation depends on the choice of infectiousness weight profile and this may not be feasible to assess using error rates in real surveillance situations. Figures 6 and 7 showed the correlation plot of model selection and averaging criteria against absolute bias and MSE with Spearman’s correlation estimates of different serial interval weight assumptions. All serial interval weights and averages based on model fit measures had positive correlation with estimation errors (upper right in Figs. 6 and 7). The correct serial interval, weight 1, had the best correlation across serial intervals and model selection criteria while DIC yielded the highest correlation with the estimation errors and might be useful as a selection measure for serial interval in practice.
Case study of COVID19 national surveillance
In Thailand, the COVID19 infection firstly occurred in Bangkok in January 2020, most newly reported cases were related to transmission outbreaks including those who had returned from overseas or had been exposed to many people linked to tourism businesses. Most cases were middleaged males because so many cases were related to boxing stadia, entertainment venues and to attendance at religious events [41]. COVID19 was then successfully under controlled in Bangkok for the first two months. However, it was followed by disease clusters in sport and entertainment events, and occurrences of the infection in all provinces across the country.
Disease transmissibility can differ across places since the contact patterns among individuals vary due to differences in the local factors (e.g. weather and population density) and human behavior (e.g. personal protection, working pattern and travel). Thus, the spatial variation of disease transmission between locations should be integrated to provide more granular information for policy makers in order to effectively monitor highrisk areas. This is potentially helpful for prioritizing medical and public health resources, especially during disease outbreaks. To demonstrate the developed method in practice, the data in this case study were from confirmed provincial COVID19 cases in Thailand from January 12^{th} 2020 through July 31^{st} 2020 provided in the daily reports of the Department of Disease Control, Thai Ministry of Public Health. Suspected cases with COVID19 infection were identified in designated health facilities and confirmed at certified laboratories by virus polymerase chain reaction of nose and throat swabs. The place of diagnosis and demographic data were obtained from the official website of the Digital Government Development Agency (https://data.go.th/dataset/covid19daily). The data used in this case study are publicly available and ethical approval was not required.
The developed spatiotemporal reproduction number was applied to the Thai national surveillance data. Table 2 showed the comparison of model selection and averaging of serial interval weights under different evaluation metrics using the national COVID19 surveillance data. The serial weight 1 performed best based on model selection and averaging criteria, which is consistent with findings in previously estimated basic reproduction numbers for the country [33]. To further estimate the temporal or effective reproduction number within the proposed framework, a temporal reproduction number could also be derived from the proposed spatiotemporal reproduction number which could be defined as the weighted sum of R_{st} over the study units as \(R_{t} = \frac{{\sum\nolimits_{s} {\left( {R_{st} \times \left( {\sum\nolimits_{l} {y_{st  l} w_{l} } } \right)} \right)} }}{{\sum\nolimits_{s} {\sum\nolimits_{l} {y_{st  l} w_{l} } } }} = \frac{{\sum\nolimits_{s} {y_{st} } }}{{\sum\nolimits_{s} {\sum\nolimits_{l} {y_{st  l} w_{l} } } }} = \frac{{y_{t} }}{{\sum\nolimits_{l} {\sum\nolimits_{s} {y_{st  l} w_{l} } } }} = \frac{{y_{t} }}{{\sum\nolimits_{l} {w_{l} y_{t  l} } }}\). This calculation also yielded a similar form of the effective reproduction number defined in [8, 24].
Figure 8 showed the number of new cases for the whole country (black) with an estimated R_{t} from the proposed model (blue) and the EpiEstim software (green) [8, 42] over March–April 2020. After the boxing stadium and entertainment venue events presumably acted as outbreak spreaders, the numbers of new cases increased until midMarch. Then the number of new cases sharply increased after about one week with a large jump in R_{t}. The estimates of R_{t} using both methods had similar trends as depicted in Fig. 8 suggesting that the outbreak during MidMarch was controlled by strict public health policies represented by decreasing R_{t} towards the middle of April where estimated R_{t} < 1. The number of new cases then continued fluctuating thereafter likely due to imported cases returning from overseas. This could be partly related to testing capacity and infection residuals. However, the Thai government had also implemented travel restrictions including permission to enter or transit through Thailand since May. Though the temporal reproduction numbers estimated from both methods had a similar overall behavior, the R_{t} from the proposed model seemed to drop after the first wave while the EpiEstim estimate appeared to have a lagged elevated pattern. In addition, the R_{t} from the proposed model yielded a wider credible interval. This might be due to the variation in spatiotemporal random effects included in the R_{st} which didn’t account for in EpiEstim.
The countrywide spread was also reflected in the incidence and R_{st} maps in Figs. 9 and 10. Many provinces had few or no cases on March 16^{th}. Then there were more cases a few days later on March 20^{th}, increasing further on March 21^{st} with high R_{st} in several provinces. The incidence then started to decrease after March 23^{rd}. During the first big outbreak from March 16^{th} – 27^{th} 2020, there was increased R_{st} in the south and west of the country, and some new disease clusters spreading over the central region and along the ThaiCambodia border. This contrasted with the isolated hot spots also found in Northern areas. As demonstrated, this proposed methodology might be helpful in real time surveillance of infectious diseases to identify local transmission requiring more immediate attention to prevent wider spread.
Discussion
When a new infectious disease epidemic emerges, a crucial challenge for disease control preparation is that the situation may be very dynamic. Health authorities need to make decisions based on limited evidence. The novel coronavirus infection has been the primary public health concern in Thailand since early 2020 with the declaration by WHO of a global health emergency. Due to the lack of effective treatment and sufficient vaccines, disease surveillance has been a major public health intervention for COVID19. The reproduction number is a key threshold widely used to assess the transmission dynamics of an emerging infection, however the basic form of reproduction number, R_{0}, yields the average number of secondary cases generated per case in a fully susceptible population likely to be in the early phase of epidemics when interventions and behavior changes have not affected the transmission dynamics.
For real time surveillance aiming to rapidly quantify disease transmissibility over time and assess the impact of policy implementation or other extrinsic factors on transmission, the instantaneous or effective reproduction number is currently the most suitable tool [18]. However, this concept assumes that the population is geographically well mixed which may not be useful for real time surveillance at fine spatial scales. To account for heterogeneity of transmission intensity, we thus extended the concept and developed the spatiotemporal reproduction number which requires minimal parametric assumptions about the underlying disease transmission process and is practically appropriate for real time infectious disease outbreak detection.
Another issue when estimating reproduction numbers from observed data is misspecification of the generation interval which can be a large potential contributor to estimation bias. Although the intrinsic generation interval is required to correctly define the relationship between R_{t} and disease incidence, the generation interval is difficult to measure and the reproduction numbers are often approximated from serial intervals. To accommodate for the parametric specification [43], in this study we then applied and compared Bayesian model selection and averaging methods to address the issue using national surveillance data. When there are several candidates, one can select the most suitable conditions based on model fitting criteria or choose to average over candidate models. However, the essential selection procedure is not available in widely used software packages. In addition, those methods are usually used for temporal reproduction number estimation whereas our methodology was developed for disease dynamic estimation in both space and time dimensions.
Based on the simulation results with qualitative assessment, we believe that the proposed model selection technique is an important tool to help accurately estimate disease dynamics and outperformed model averaging in terms of specifying the appropriate serial interval parameters. The model selection chose the true serial interval when included in our study, however the second best would otherwise be selected. On the other hand, model averaging yielded the weighted outcome which could be less accurate than model selection. Nonetheless, model averaging might be appropriate if it was believed there were more than one best suitable condition. To generalize this concept to real surveillance situations, an aim of parametric specification was to select the appropriate condition with least error rates in estimation which we would not be known in practice. The mean absolute and square error rates were compared and correlated against model selection criteria which could be computed with observed data. The selection criteria had positive correlation with the error rates while DIC and WAIC had similar results and yielded the highest correlation. Hence, the information criteria might be useful when choosing the appropriate parameters in practice for real surveillance activities. This also had demonstrated and been consistent with the case study of Thai national surveillance data [33].
Precise estimation of reproduction numbers needs complete epidemiological data over time. However, lags in case reporting can happen in the notification system which is a result of a chain of events from infection until report at the local, regional or national public health services. Accounting for the lag in a surveillance system, which can be spatially varying, is therefore key for disease control planning as incomplete and delayed information can undermine efforts to deliver early warnings and real time detection required for an effective response to the public health threat. A simple approach is to shift the observed time by the mean delay. Nonetheless, this approach would work well only if the delay to observation is not highly variable and the mean delay is known. In addition, the shifting by a fixed amount of time does not account for uncertainty or individual variation in delay times. To address the delay issue in real time surveillance, more complex methods correcting for delays in report time series such as deconvolution or nowcasting [18, 44] can be added to the developed methodology which can potentially improve estimation accuracy.
Though the proposed method demonstrated robust performance in both the simulation and case study, it should be noted that the nature of emerging infections presents a lot of clinical and epidemiological complexity. There is a need for further studies, for example, on persistence of virus circulation and on ecological factors, including characterizing immunological crossreaction, which could shorten or prolong the infection. Across both clinical and epidemiological studies, it is also important to evaluate the effects of host, viral, and populationhealth relationships for fuller understanding of the disease mechanism. However, the proposed methodology can serve as a flexible platform to incorporate those available potential clinical and epidemiological determinants that drive the disease risk.
Conclusions
New emerging diseases are public health crises in which policy makers have had to make decisions in the presence of massive uncertainty. As presented, the proposed methodology extended the concept of effective reproduction number to disease surveillance at finer scales to account for spatial heterogeneity of disease transmission. The method yielded robust estimation in several simulated scenarios of force of transmission with computing flexibility and practical benefits. Thus, this development can be suitable and useful for surveillance applications especially for newly emerging diseases. Nonetheless, we also believe that ongoing modelling and monitoring efforts should remain to continuously evaluate public health interventions. New emerging or reemerging disease outbreak clusters have happened across the globe. As this pandemic continues to develop and the risk changes on both local and global scales, hopefully our work can provide an addition to the greater picture for surveillance activities and facilitate policymaking for disease control at the individual and population levels.
Availability of data and materials
The datasets analyzed during the current study are available in the official website developed by the Digital Government Development Agency (https://data.go.th/dataset/covid19daily).
Abbreviations
 ICAR:

Intrinsic Conditional Autoregressive model
 R _{ t } :

Temporal or effective reproduction number
 R _{ st } :

Spatiotemporal reproduction number
 MSE:

Mean Squared Error
 DIC:

Deviance Information Criterion
 MCMC:

Markov chain Monte Carlo
 RMSE:

Root Mean Squared Error
 CPO:

Conditional predictive ordinate
References
Heesterbeek J. Mathematical epidemiology of infectious diseases: model building, analysis and interpretation. Chichester: Wiley; 2000.
Anderson RM, May RM. Infectious diseases of humans: dynamics and control. New York: Oxford university press; 1992.
Rotejanaprasert C, Lawson AB, Iamsirithaworn S. Spatiotemporal multidisease transmission dynamic measure for emerging diseases: an application to dengue and zika integrated surveillance in Thailand. BMC Med Res Methodol. 2019;19(1):200.
Li J, Blakeley D, Smith RJ. The Failure of R(0). Comput Math Methods Med. 2011;2011:527610.
Heffernan JM, Smith RJ, Wahl LM. Perspectives on the basic reproductive ratio. J R Soc Interface. 2005;2(4):281–93.
Dietz K. The estimation of the basic reproduction number for infectious diseases. Stat Methods Med Res. 1993;2(1):23–41.
Brauer F. Compartmental models in epidemiology. Mathematical epidemiology: Springer; 2008. p. 19–79.
Cori A, Ferguson NM, Fraser C, Cauchemez S. A new framework and software to estimate timevarying reproduction numbers during epidemics. Am J Epidemiol. 2013;178(9):1505–12.
Nishiura H, Chowell G. The effective reproduction number as a prelude to statistical estimation of timedependent epidemic trends. Mathematical and statistical estimation approaches in epidemiology. Dordrecht: Springer; 2009. p. 103–21.
Yuan J, Li M, Lv G, Lu ZK. Monitoring transmissibility and mortality of COVID19 in Europe. Int J Infect Dis. 2020;95:311–5.
Tariq A, Lee Y, Roosa K, Blumberg S, Yan P, Ma S, et al. Realtime monitoring the transmission potential of COVID19 in Singapore, March 2020. BMC Med. 2020;18:1–14.
You C, Deng Y, Hu W, Sun J, Lin Q, Zhou F, et al. Estimation of the timevarying reproduction number of COVID19 outbreak in China. Int J Hyg Environ Health. 2020;228:113555.
Thomas LJ, Huang P, Yin F, Luo XI, Almquist ZW, Hipp JR, et al. Spatial heterogeneity can lead to substantial local variations in COVID19 timing and severity. Proc Natl Acad Sci. 2020;117(39):24180–7.
Wang Q, Phillips NE, Small ML, Sampson RJ. Urban mobility and neighborhood isolation in America’s 50 largest cities. Proc Natl Acad Sci. 2018;115(30):7735–40.
Smith EJ, Marcum CS, Boessen A, Almquist ZW, Hipp JR, Nagle NN, et al. The relationship of age to personal network size, relational multiplexity, and proximity to alters in the Western United States. J Gerontol B Psychol Sci Soc Sci. 2015;70(1):91–9.
Riley S. Largescale spatialtransmission models of infectious disease. Science. 2007;316(5829):1298–301.
Sampson RJ, Sharkey P. Neighborhood selection and the social reproduction of concentrated racial inequality. Demography. 2008;45(1):1–29.
Gostic KM, McGough L, Baskerville EB, Abbott S, Joshi K, Tedijanto C, et al. Practical considerations for measuring the effective reproductive number, R t. PLoS Comput Biol. 2020;16(12):e1008409.
Bondell HD, Krishna A, Ghosh SK. Joint variable selection for fixed and random effects in linear mixedeffects models. Biometrics. 2010;66(4):1069–77.
Garcia RI, Ibrahim JG, Zhu H. Variable selection for regression models with missing data. Stat Sin. 2010;20(1):149.
Viallefont V, Raftery AE, Richardson S. Variable selection and Bayesian model averaging in casecontrol studies. Stat Med. 2001;20(21):3215–30.
Carroll R, Lawson AB, Faes C, Kirby RS, Aregay M, Watjou K. Bayesian model selection methods in modeling small area colon cancer incidence. Ann Epidemiol. 2016;26(1):43–9.
Carroll R, Lawson AB, Faes C, Kirby RS, Aregay M, Watjou K. Spatiotemporal Bayesian model selection for disease mapping. Environmetrics. 2016;27(8):466–78.
Chowell G, Nishiura H, Bettencourt LM. Comparative estimation of the reproduction number for pandemic influenza from daily case notification data. J R Soc Interface. 2007;4(12):155–66.
Wallinga J, Teunis P. Different epidemic curves for severe acute respiratory syndrome reveal similar impacts of control measures. Am J Epidemiol. 2004;160(6):509–16.
Fraser C. Estimating individual and household reproduction numbers in an emerging epidemic. PLoS ONE. 2007;2(8): e758.
White LF, Archer B, Pagano M. Determining the dynamics of influenza transmission by age. Emerg Themes Epidemiol. 2014;11(1):1–10.
Griffin J, Casey M, Collins Á, Hunt K, McEvoy D, Byrne A, et al. Rapid review of available evidence on the serial interval and generation time of COVID19. BMJ Open. 2020;10(11): e040263.
Nouvellet P, Cori A, Garske T, Blake IM, Dorigatti I, Hinsley W, et al. A simple approach to measure transmissibility and forecast incidence. Epidemics. 2018;22:29–35.
Lawson AB, Banerjee S, Haining RP, Ugarte MD. Handbook of Spatial Epidemiology: CRC Press. 2016.
Blangiardo M, Cameletti M. Spatial and spatiotemporal Bayesian models with RINLA: John Wiley & Sons. 2015.
Nishiura H, Linton NM, Akhmetzhanov AR. Serial interval of novel coronavirus (COVID19) infections. Int J Infect Dis. 2020;93:284–6.
Rotejanaprasert C, Lawpoolsri S, PanNgum W, Maude RJ. Preliminary estimation of temporal and spatiotemporal dynamic measures of COVID19 transmission in Thailand. PloS one. 2020;15(9):e0239645e.
Abbott S, Hellewell J, Thompson RN, Sherratt K, Gibbs HP, Bosse NI, et al. Estimating the timevarying reproduction number of SARSCoV2 using national and subnational case counts. Wellcome Open Res. 2020;5(112):112.
Pettit L. The conditional predictive ordinate for the normal distribution. J Roy Stat Soc: Ser B (Methodol). 1990;52(1):175–84.
Watanabe S, Opper M. Asymptotic equivalence of Bayes cross validation and widely applicable information criterion in singular learning theory. Journal of machine learning research. 2010;11(12):3571–91.
Gelman A, Hwang J, Vehtari A. Understanding predictive information criteria for Bayesian models. Stat Comput. 2014;24(6):997–1016.
Carroll R, Lawson AB, Faes C, Kirby RS, Aregay M, Watjou K. Spatiallydependent Bayesian model selection for disease mapping. Stat Methods Med Res. 2018;27(1):250–68.
Wheeler DC, Hickson DA, Waller LA. Assessing local model adequacy in Bayesian hierarchical models using the partitioned deviance information criterion. Comput Stat Data Anal. 2010;54(6):1657–71.
Rue H, Martino S, Chopin N. Approximate Bayesian inference for latent Gaussian models by using integrated nested Laplace approximations. J R Stat Soc: Series b (statistical methodology). 2009;71(2):319–92.
Thailand WHO. WHO Thailand situation report  37 2020 [Coronavirus disease 2019 (COVID19) WHO Thailand Situation Report – 30 March 20]. Available from: https://www.who.int/docs/defaultsource/searo/thailand/20200330thasitrep37covid19finalwithrevision.pdf?sfvrsn=94dc7aba_0.
Thompson R, Stockwin J, van Gaalen RD, Polonsky J, Kamvar Z, Demarsh P, et al. Improved inference of timevarying reproduction numbers during infectious disease outbreaks. Epidemics. 2019;29:100356.
Wallinga J, Lipsitch M. How generation intervals shape the relationship between growth rates and reproductive numbers. Proc Royal Soc B Biol Sci. 2007;274(1609):599–604.
Demongeot J, Oshinubi K, Rachdi M, Seligmann H, Thuderoz F, Waku J. Estimation of daily reproduction numbers during the COVID19 outbreak. Computation. 2021;9(10):109.
Acknowledgements
We would like to thank Patiwat Saangchai for assistance with the epidemiological data.
Funding
This research was supported by Specific League Funds and the Faculty of Tropical Medicine, Mahidol University, and the Wellcome Trust [Grant number 220211]. For the purpose of open access, the author has applied a CC BY public copyright license to any Author Accepted Manuscript version arising from this submission.
Author information
Authors and Affiliations
Contributions
CR conceptualized the study, developed the statistical methodology, completed analyses and visualization, and drafted the manuscript. CR, ABL and RJM were responsible for revision and improvements of the manuscript. All authors have read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
12874_2023_1870_MOESM1_ESM.docx
Additional file 1.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Rotejanaprasert, C., Lawson, A.B. & Maude, R.J. Spatiotemporal reproduction number with Bayesian model selection for evaluation of emerging infectious disease transmissibility: an application to COVID19 national surveillance data. BMC Med Res Methodol 23, 62 (2023). https://doi.org/10.1186/s12874023018703
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s12874023018703
Keywords
 Spatiotemporal
 Reproduction number
 Surveillance
 Covid19
 Thailand