Hostname: page-component-7b9c58cd5d-9k27k Total loading time: 0 Render date: 2025-03-15T14:10:42.876Z Has data issue: false hasContentIssue false

Forecasting COVID-19 Cases Based on Social Distancing in Maryland, USA: A Time–Series Approach

Published online by Cambridge University Press:  19 May 2021

Raul Cruz-Cano*
Affiliation:
Department of Epidemiology and Biostatistics, University of Maryland, College Park, MarylandUSA
Tianzhou Ma
Affiliation:
Department of Epidemiology and Biostatistics, University of Maryland, College Park, MarylandUSA
Yifan Yu
Affiliation:
Department of Epidemiology and Biostatistics, University of Maryland, College Park, MarylandUSA
Minha Lee
Affiliation:
Maryland Institute of Transportation, University of Maryland, College Park, MarylandUSA
Hongjie Liu
Affiliation:
Department of Epidemiology and Biostatistics, University of Maryland, College Park, MarylandUSA
*
Corresponding author: Raul Cruz-Cano, Email raulcruz@umd.edu.
Rights & Permissions [Opens in a new window]

Abstract

Objective:

Our objective is to forecast the number of coronavirus disease 2019 (COVID-19) cases in the state of Maryland, United States, using transfer function time series (TS) models based on a Social Distancing Index (SDI) and determine how their parameters relate to the pandemic mechanics.

Methods:

A moving window of 2 mo was used to train the transfer function TS model that was then tested on the next week data. After accounting for a secular trend and weekly cycle of the SDI, a high correlation was documented between it and the daily caseload 9 days later. Similar patterns were also observed on the daily COVID-19 cases and incorporated in our models.

Results:

In most cases, the proposed models provide a reasonable performance that was, on average, moderately better than that delivered by TS models based only on previous observations. The model coefficients associated with the SDI were statistically significant for most of the training/test sets.

Conclusions:

Our proposed models that incorporate SDI can forecast the number of COVID-19 cases in a region. Their parameters have real-life interpretations and, hence, can help understand the inner workings of the epidemic. The methods detailed here can help local health governments and other agencies adjust their response to the epidemic.

Type
Brief Report
Copyright
© Society for Disaster Medicine and Public Health, Inc. 2021

The rapid, global spread of the severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) has caused hundreds of thousands of deaths. Although social distancing is considered a key measure to reduce the spread of the virus, Reference Lewnard and Lo1 the exact impact of day-to-day social distancing on viral spread remains unclear.

Since the report of the first confirmed case of coronavirus disease 2019 (COVID-19) in Maryland on March 5, 2020, Reference Smith, Yourish and Almukhtar2 more than 334,000 cases and 6,700 deaths have been reported. Reference Zhang, Ghader and Pack3 On March 16, 2020, the state government implemented restrictions on gatherings and closure of educational facilities and on March 30, 2020, a stay at home order was imposed. The Maryland Transportation Institute (MTI) implemented the Social Distancing Index (SDI) to measure the extent residents and visitors are practicing social distancing. Reference Zhang, Ghader and Pack3 To date, studies have evaluated the efficacy of social distancing strategies to reduce the magnitude of the epidemic, Reference Castillo, Staguhn and Weston-Farber4 but models that accurately forecast daily caseloads based on social mobility patterns are yet to be explored.

In this article, we proposed to use a sequence of time series (TS) models to forecast and further understand the relationship between social distancing and the COVID-19 daily caseload. Our analysis of transfer function TS models can accomplish this objective because they present a dependable way to analyze data in which the current value of variable, eg, daily COVID-19 cases in Maryland depends on its previous values and those of other predictors, such as SDI. Other TS models have been used to accurately analyze this and previous pandemics. Reference Ceylan5 However, to our knowledge, this is the first attempt to develop a TS model that includes a social distance measure to predict daily COVID-19 cases. The magnitude of the COVID-19 epidemic makes it worthwhile to keep exploring any possible way to improve the models that can predict its behavior.

Methods

Data used in this study covered the timeframe from March 5, the day the first COVID-19 case was reported in Maryland, to June 1. On May 26, demonstrations against police violence started in Minnesota and spread all over the country in the next days. There exists anecdotal evidence that, due to use of preventive measures, such as face masks, these massive gatherings changed the relationship between social distancing and COVID-19 cases Reference Janes6 ; hence, we decided not to include information on or beyond this date in the creation of the models.

The variables included in our study are:

  • Primary exposure variable of interest: Daily Social Distancing Index (SDI) Reference Zhang, Ghader and Pack3 : SDI is an integer from 0 (no social distancing) to 100 (all residents are staying at home and no visitors are entering Maryland). The social distancing index is computed from 6 mobility metrics by this equation: SDI = 0.8*[% staying home + 0.01*(100 - %staying home)*(0.1*% reduction of all trips compared with pre-COVID-19 benchmark + 0.2*% reduction of work trips + 0.4*% reduction of nonwork trips + 0.3*% reduction of travel distance)] + 0.2*% reduction of out-of-county trips.

  • The weights are chosen based on share of residents and visitor trips; what trips are considered more essential, and the principle that higher SDI scores should correspond to fewer chances for close-distance human interactions and virus transmissions.

  • Outcome variable: Daily COVID-19 cases: Number of new daily COVID-19 cases according to the New York Times. Reference Smith, Yourish and Almukhtar2

In TS, a general transfer function can be used to describe the relationship between an input and an output series. Reference Brocklebank, Dickey and Choi7 We propose to use a transfer function TS model with the following 3-step procedure to relate the input daily SDI to the output COVID-19 cases series Reference Brocklebank, Dickey and Choi7 while accounting for the secular trend and weekly cycles of the exposure and outcome variables:

  • Step 1: Fit an autoregressive integrated moving average (ARIMA) model to the independent variable SDI. This step helps to find patterns that need to be removed from the independent variables before we study its relationship with the outcome. An ARIMA model is defined by its parameters (p,d,q) where p represents the order of autoregression, and q the order of the moving average. The parameter d is the degree of difference, eg, d = 1 means that, instead of the original SDI series, we would use (SDI t – SDI t-1 ). We used plots of autocorrelation function (ACF) and partial ACF (PACF) to determine the values of these parameters, which is well-known procedure applied in many published works. Reference Ceylan5,Reference Brocklebank, Dickey and Choi7

  • Step 2: Remove the patterns from the input series SDI and compute the cross-correlation with the daily and imported COVID-19 cases. This step helps to determine the pure delay in the system s after removing the SDI patterns discovered in the previous step (pre-whiten). We defined s as the largest cross-correlation, which occurred at delay ≥ 0 days.

  • Step 3: Compute transfer function and fit it with noise model. The study of the cross-correlation graph of the pre-whiten input and outcome series can help to determine the terms that are need in the numerator and denominator of the transfer function model. This is a complex matter and beyond the scope of this work, but in general a simpler model is recommendable. Reference Brocklebank, Dickey and Choi7 The analysis of residuals produced by the transfer function TS model might indicate the need to include more terms to improve its fit. Reference Brocklebank, Dickey and Choi7

In our particular case of study, the pre-whiten SDI series/Daily COVID-19 cases cross-correlation graph presented nonzero cross-correlations with some of them decaying exponentially, indicating the need to add terms in the numerator and denominator of the transfer function model. Reference Brocklebank, Dickey and Choi7 A parsimonious model was initially chosen for the transfer function Reference Brocklebank, Dickey and Choi7 :

$$Case{s_t} = {\theta _0} + \left( {C\left( {1 - {\theta _1}B} \right)/\left( {1 - \delta B} \right)} \right)\nabla SD{I_{t - s}} + Noise$$

where B is the backward shift operator and \[\nabla \] is the differencing operation.

We use a sliding window of 60 day to train the model and estimate the parameters C, \[\;{\theta _0}\] , θ 1, and δ in the transfer function, and test the forecasting results in the week immediately following. For the test week, estimated values of SDI were used as the input in the transfer function to forecast the daily cases, ensuring that information unavailable in a real-life case scenario would not be used to produce the results for the test week. Given the time limit discussed previously in this section, the first training window goes from March 5 to May 4 with a test week that encompasses May 5 to May 12. The last training window goes from March 26 to May 25 with a test window that goes from May 26 to June 3. The performance of the procedure for the test week was assessed using the mean absolute percentage error (MAPE) defined as \[{\text{MAPE}} = \frac{{100\% }}{7}\sum\nolimits_{i = 1}^7 {\left| {\frac{{case{s_i} - \hat case{s_i}}}{{case{s_i}}}} \right|} \] . All analysis is performed using SAS software 9.4.

Results

Based on the full data, we observed that the autocorrelations depicted in the ACF plot decayed slowly, indicating the need to differentiate this series. The ACF of the differentiated SDI series tailed off at lags 7k (k = 1, 2 …), while PACF cutoff at lag 7. These observations lead to a simple time-series model composed of a differencing term (d = 1) and autoregressive (AR) term p = (1,7) that was fitted for the SDI data. The ACF and PACF plots after removing this AR term from the differentiated series showed no significant auto-correlations, indicating that this ARIMA model adequately fitted the SDI data and, hence, could be used to pre-whiten it. The analysis of the cross-correlation of the pre-whiten SDI with the daily cases led to a delay \[{\text{s = 9}}\] d (cross-correlation = −.23). Examination of residuals from the initial transfer function model in forecasting COVID-19 case indicated that an AR term p = (1,7) of the daily COVID-19 cases was also needed in the final transfer function TS model.

After adding this autoregressive term to the transfer function model no more significant correlations appeared in the ACF and PACF, indicating that the resulting model adequately captured the relationship between SDI and the number of daily COVID-19 cases in Maryland in this time period. We then proceeded to estimate the coefficients of this model for each of the training windows described above. To benchmark the performance, we compared our proposed transfer function model with a simple ARIMA model for daily cases forecasting (ie, excluded the SDI) with d = 1 and autoregressive term p = (1,7).

Notice at least 1 of the parameter estimates associated with the SDI (C, θ 1, or δ) are statistically significant with a P-value < 0.05 (Table 1), except in the first week and the week from March 23 to May 22. Hence, the results in Table 1 indicate that including the SDI as in input variable with the appropriate delay in the models can be an important predictor of daily COVID-19 cases. Focusing on the statistically significant results, the positive values for the autoregressive terms indicate that past values of cases lead to a larger number of infections, while the negative values for \[{\text{C}}\] paired with the positive estimates for the δ show that larger SDI leads to fewer cases with a 9-d delay.

Table 1. T-statistic (p-values) for the TS transfer function parameters

The MAPE values for test weeks that start up until May 24 vary between 12.2% and 20.1% as seen in Table 2 hence fall or are around what would be considered good forecasts. Reference Lewis8 The unevenness of the performance might be attributed to external factors that influence the number of reported cases in a given day during those earlier days of the pandemic, eg, local weather and scarce availability of tests. The MAPE of the simple ARIMA models that exclude the SDI and rely exclusively on the secular trend and weekly cycle of number of COVID-19 cases in this period of time showed even more volatility varying between 9.5% and 37.8% and is on average 1.94% worse than those of the proposed transfer function models. The performance of both the transfer function and classic ARIMA models for the week composed completely of days starting on May 25 lead to MAPE of 41.8% and 42.2%, respectively, hinting that this point in time might mark a significant departure on how social distancing relates to COVID-19 cases.

Table 2. Forecasting daily COVID-19 cases 1 wk in advance

Discussion

The required AR terms p = (1,7) suggest that the SDI and daily count variables are influenced by their observed or estimated values on the previous day (secular trend) and a week prior (weekly cycle) supporting what has been observed in previous studies, Reference Ricon-Becker, Tarrasch and Blinder9 while the delay of 9 d for the COVID-19 cases is within the range of the number of days that symptoms take to appear, Reference Li, Guan and Wu10 indicating not only that our proposed transfer function models provide an adequate prediction performance but also their characteristics of correspond to patterns seen in the pandemic. The degradation of the models performance after the start of the 2020 national protests attest to the limitation of the current version of the models and point toward the need to redo the process to obtain the optimal values for the (p,d,q) parameters and the delay s instead of just recalculating the coefficients of the models. The study of the P-values seen in Table 1 help to reinforce conclusions that have been drawn about the COVID-19 pandemic previously, namely that having a large number of cases in a community leads to even more infections and that the decrease of social distancing behavior among the members of a group are associated with an increase in the number of positive cases few days later. A limitation of this study is its single focus on the SDI; future work might include evaluation if the conclusions reach in this manuscript hold true for other measure of social distancing, such as Unacast Social Distancing Scorecard.

Although the models described in this report were optimized for the epidemic in Maryland, the steps described here can be used to develop models to forecast the number of COVID-19 cases in a other regions several days in advance. Parameters used in this transfer function model will change according to region and time because of modifications to social distancing regulations and other factors (eg, contact tracing) but the transfer functions can include other independent variables in addition to SDI, hence providing useful information in the debate of economy resume vs pandemic control for this and future pandemics.

Funding statement

Research reported in this publication was partially supported by the Department Research Discretionary Funds.

References

Lewnard, JA, Lo, NC. Scientific and ethical basis for social-distancing interventions against COVID-19. Lancet Infect Dis. 2020;20(6):631-633. doi: 10.1016/S1473-3099(20)30190-0 CrossRefGoogle ScholarPubMed
Smith, M, Yourish, K, Almukhtar, S, et al. An ongoing repository of data on coronavirus cases and deaths in the U.S. New York Times. https://github.com/nytimes/covid-19-data. Accessed May 18, 20211.Google Scholar
Zhang, L, Ghader, S, Pack, M, et al. An interactive COVID-19 mobility impact and social distancing analysis platform. medRxiv. 2020. doi: 10.1101/2020.04.29.20085472CrossRefGoogle Scholar
Castillo, R, Staguhn, E, Weston-Farber, E. The effect of state-level stay-at-home orders on COVID-19 infection rates. Am J Infect Control. 2020;48(8):958-960. doi: 10.1016/j.ajic.2020.05.017 CrossRefGoogle ScholarPubMed
Ceylan, Z. Estimation of COVID-19 prevalence in Italy, Spain, and France. Sci Total Environ. 2020;729:138817. doi: 10.1016/j.scitotenv.2020.138817 Google ScholarPubMed
Janes, C. Protests probably didn’t lead to coronavirus spikes, but it’s hard to know for sure. Washington Post. https://www.washingtonpost.com/health/protests-probably-didnt-lead-to-coronavirus-spikes-but-its-hard-to-know-for-sure/2020/06/30/d8179678-baf5-11ea-8cf5-9c1b8d7f84c6_story.html. Published June 30, 2020.Google Scholar
Brocklebank, JC, Dickey, DA, Choi, BS. SAS for Forecasting Time Series. 3rd ed. Cary, NC: SAS Institute; 2018.Google Scholar
Lewis, CD. Industrial and Business Forecasting Methods. London: Butterworth Scientific; 1982.Google Scholar
Ricon-Becker, I, Tarrasch, R, Blinder, P, et al. A seven-day cycle in COVID-19 infection and mortality rates: are inter-generational social interactions on the weekends killing susceptible people? medRxiv. January 2020:2020.05.03.20089508. doi: 10.1101/2020.05.03.20089508Google Scholar
Li, Q, Guan, X, Wu, P, et al. Early transmission dynamics in Wuhan, China, of novel coronavirus-infected pneumonia. N Engl J Med. 2020;382(13):1199-1207. doi: 10.1056/NEJMoa2001316 Google ScholarPubMed
Figure 0

Table 1. T-statistic (p-values) for the TS transfer function parameters

Figure 1

Table 2. Forecasting daily COVID-19 cases 1 wk in advance