A study on the estimation of COVID-19 case with the adaptive kalman filter AKF in USA Germany United
* Author to whom correspondence should be addressed.
Sigma Journal of Engineering and Natural Sciences 2022, Vol. 40, Issue 2, pp. 323-343; doi.org/10.14744/sigma.2022.00036
Abstract
Keywords: COVID-19; Dynamic Linear Model; State-Space Modeling; Adaptive Kalman Filter; Reproduction Number Estimation
Introduction
In December 2019, a new coronavirus disease emerged characterized as a viral infection with a high level of transmission in Wuhan, China. Coronavirus 19 (COVID-19)
is caused by the virus known as Severe Acute Respiratory Syndrome coronavirus 2 (SARS- CoV-2) established by the ICTV [1–3]. Gompertz and Logistic models have been used
*Corresponding author. *E-mail address: ozbek@science.ankara.edu.tr This paper was recommended for publication in revised form by Regional Editor Alper Yılmaz Published by Yıldız Technical University Press, İstanbul, Türkiye Copyright 2021, Yıldız Technical University. This is an open access article under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).
Sigma J Eng Nat Sci, Vol. 40, No. 2, pp. 323–343, June, 2022
to estimate the number of COVID-19 cases in China by Jia et al [4]. Cas torina et al [5] have used these two modes in China, South Korea, Italy, and Singapore. Roosa et al [6] have used Generalized Logistic Growth Model (GLM) for the data gathered between February 5 and February 24, 2020, for China. Roosa et al [7] have used the Generalized Logistic Growth Model (GLM) and Richard model for the data gathered between February 13 and February 20, 2020 for China. Munayco et al [8] have used the Generalized Growth Model for the dates February 29 and March 30, 2020, for Peru. Gompertz, Logistic, and Artificial Neural Network models were applied in [9]. Zuzana et al [10] used the Gompertz curve to model a trajectory of the number of infections for the USA. Cata et al [11] employed the Gompertz function in several countries to make short-time predictions. Petropoulos et al [12] adopted simple time series forecasting approaches. The papers cited in our manuscript all utilize “the cumulative number of infected people” as the data. Also, the models employed in those papers are non-linear mathematical growth models and there are more than one parameter to be estimated in those models. The models are non-linear mathematical ones and de-fined using differential equations. Specific algorithms such as mathematical optimization technique are to be employed for parameter estimation. The data used in the models employed need updating daily in order to analyze them. The methods used are offline and all data up to a specific date are necessary for parameter es-timation in those models where the estimation needs to be updated on a daily basis with the inclusion of the new set of data. There are other growth models is addition to logistic, Bertalanffy, and Gompertz non-linear matematical models and they are given in Table 1. State-space models have been employed since the 1960’s, mostly in the control and signal processing areas. Kalman filtering (KF) has emerged as the most common tool. The KF has been extensively employed in many areas of estimation. The extensions and applications of state-space models
can be found in almost all disciplines. The KF has also been utilized in electrophysiological signal analysis and it compares favorably with other approaches [13]. In this work, COVID-19 cumulative cases are estimated with AKF based on total COVID-19 cases between JanuarySeptember 9, 2020 in USA, Germany, United Kingdom, Italy, France, Russia, Brazil, India, Turkey, Spain, Peru, Colombia, South Africa, Argentina, Iran, Pakistan. The cumulative covid-19 cases time-series was modeled with a stochastic dynamic linear model (DLM). The estimation performance of the models is measured by the calculation of mean square error (MSE) and coefficient of determination (R2 ). The rest of this article is organized as follows: In material and methods, section the mathematical and computational methodologies are described, mathematical equations of the models used in this study are given, and analysis and estimation results are presented. In section three estimating the reproduction number with AKF, the computation of the reproduction number with AKF is presented. Finally, the last section presents the conclusions.
Material And Methods
Materials In this paper, AKF has been used to estimate the actual COVID-19 cases. If we introduce state-space models and AKF representation at this point, it will be easier to see the suitability of the AKF approach to this specific problem. Let’s consider a discrete-time state-space model stated as xt +1 = Ft xt + wt
where, xt is a system, yt is an observation vector. wt and vt are white noise sequences. The covariance matrices wt and vt are Qt and Rt. The matrices Ft, Ht, Qt, Rt are assumed that
Table 1. Non-linear models and their mathematical notations Model name
y(t;α, β,k,m) = (1/ β )ln|2β.(t-m)+2 k 2 (t − m)2 + αβ | + ε Y(t) = α exp(–β exp(–kt)) + ε
Sigma J Eng Nat Sci, Vol. 40, No. 2, pp. 323–343, June, 2022
they are known at time t. The filtering problem is the problem of determining the best estimate of its xt condition, given its observations Yt = (y0, y1, ..., yt ) [14–16]. Let the initial state be assumed to have a Gaussian distribution in the form of x0 ~ N(xˉ0, P0). The AKF equations are x t |t −1 = Ft −1 x t −1
where X̂t|t-1 is the a priori and X̂t is the a posteriori estimation of xt. Pt|t-1 and Pt|t are the covariance of a priori and a posteriori estimation respectively [14–16]. α is the forgetting factor proposed by Özbek and Aliev [17–18].
Model And Estimation Results
In [19] a simple linear model was proposed to describe a stochastic time-series. This s o-called “ dynamic l inear model” (DLM) is defined in terms of state-space representation through
where, yt is the logarithmic actual COVID-19 cumulative cases. In Eq. 9, µt represents the trend. We specified the trend component as a random walk with drift. Eq. 10 describes the evolution of the drift which depends on its previous value. It is assumed that εt, ξt, and ηt are i.i.d. with zero means and constant variances Gaussian white noise. It would be useful to put these equations in vector-matrix form to obtain the state-space model for COVID-19 cases. The simple model introduced above can easily be represented in a state space form, where the state equation and the observation equation are displayed as: µt +1 1 1 µt ξt β = 0 1 β + η l t t +1
Sigma J Eng Nat Sci, Vol. 40, No. 2, pp. 323–343, June, 2022
where Eq. 11 is the state equation that defines the evolution of system states and Eq. 12 is the observation equation that relates system states to the observations. In above equations, process noises and observation noise sequences are assumed to be Gaussian and independent of each other. Given the observation values, AKF estimates unobservable state variables. Since the COVID-19 time-series is written as the state-space model above, the AKF equations can be employed. Initial value of the AKF was used as x0 = (51)ʹ. The selection of the initial values is not critical as the properly constructed model will yield these initial values to converge to the measurements. Forgetting factor α was 1.5. The data used was taken from Johns Hopkins University [20]. Actual cumulative case estimations have been obtained online using AKF. The number of daily cases can be easily calculated with it = yt – yt–1 to show the total number of cases up to yt, t days. Since we have the estimates of yt, we can easily find the estimations of it with î t = ŷt – ŷt–1. Daily cases and estimations are given in Figure 1-Figure 16. According to the estimation results obtained by using the cumulative and daily number of cases in the DLM, MSE and R2, were calculated (see Table 2). These calculated values indicate that the compatibility of the model with actual data is quite high. This situation tells us that estimating the daily number of cases via the DLM is a reliable method. As for AKF, utilizing only the observation in time t and the preceding estimation is the most advantageous aspect of this method. These results have revealed that with the given system model and the assumptions, AKF could successfully be used to estimate actual COVID-19 cases. The method estimates online.
Reproduction Number Estimation With AKF
The instantaneous reproduction number, Rt at time t can be estimated as following equation Rt =
where E(X) denotes the expectation of a random variable [21]. In Eq. 13, it stands for the number of new infections generated at time step t. In practice, ws is approximated by the distribution of the serial interval. In this article, we have taken the distribution of ws as a uniform distribution in f(ws) = 1/7, s = 1,2,...,7 form. Since E(it) = î t, Eq. 13 can be written as following equation Rt =
The value of Rt calculated using Eq. 14 is given in Figure 1-Figure 16. There is no need for any other model assumption in estimating Rt with this method by using the DLM. By modeling the cumulative case time-series COVID-19 with DLM stochastic process and estimating them with AKF the number of daily cases and the instantaneous reproduction number is calculated without any other operation. It is quite a convenient method to model the cumulative case number time series with the DLM stochastic process and estimate them with online AKF.
Results And Discussion
In this study, cumulative and daily cases of COVID-19 have been estimated online using DLM and AKF based on the total COVID-19 cases between January and September 9 2020, in USA, Germany, United Kingdom, Italy, France, Russia, Brazil, India, Turkey, Spain, Peru, Colombia, South Africa, Argentina, Iran, Pakistan. The cumulative case number was modeled with DLM, and the time-series were estimated by online AKF. Estimation by acquired data observed between January and September 9, 2020, shows that employing the discrete-time DLM and AKF in terms of MSE and R2 provides efficient analysis for modeling the total case. It is proposed that the use of discrete-time DLM and AKF is appropriate. After estimating the number of cumulative cases, the computation of daily cases was made. After calculation of the estimation of number of daily cases, reproduction number was obtained. The DLM is an appropriate estimation method for the cumulative and daily cases. As for AKF, utilizing only the observation in time t and preceding estimation is the most advantageous aspect of this method. Modeling the cumulative case time-series with the DLM and estimating them with AKF both leads to the number of daily cases and the instantaneous reproduction number without any other operation. It is quite a simple method to model the cumulative case time series with the DLM stochastic process and estimate them with online AKF. Among the studies made on the COVID-19 pandemic, the progress of modeling the disease is remarked primarily. The progress of modeling the disease is substantial for the precautions to be taken and, interventions and treatments to be administered by the countries. As a result of estimations computed by data observed between January and September 9, 2020, it is proposed that the efficient analysis for modeling the total case is to be made using the DLM and AKF in terms of MSE and R2. It is thought that the method we have proposed is suitable for the estimation of the forthcoming progress. Our suggestion is that the most convenient method for the estimation of the reproduction number can be performed by modeling the cumulative case number time series using DLM.
Data Availability Statement
The authors confirm that the data that supports the findings of this study are available within the article. Raw
Sigma J Eng Nat Sci, Vol. 40, No. 2, pp. 323–343, June, 2022
data that support the finding of this study are available from the corresponding author, upon reasonable request.
Conflict Of Interest
The author declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Ethics
There are no ethical issues with the publication of this manuscript.
References
- 2020. Preprint. doi:10.1101/2020.05.13.20101329.
- Coronaviridae Study Group of the International [CrossRef] Committee on Taxonomy of Viruses. The species [12] Petropoulos F, Makridakis S. Forecasting the Severe acute respiratory syndrome-related corona- novel coronavirus COVID-19. PLoS One virus: classifying 2019-nCoV and naming it SARS- 2020;15:e0231236. CoV-2. Nat Microbiol 2020;5:536–544. [CrossRef] [13] Özbek L. Kalman Filtresi. Ankara: Akademisyen
- Li Q, Guan X, Wu P, Wang X, Zhou L, Tong Y, et Yayınevi; 2017. [Turkish] [CrossRef] al. Early transmission dynamics in Wuhan, China, [14] Kalman RE. A new approach to linear filtering and of novel coronavirus-ınfected pneumonia. N Engl J prediction problems. J Basic Eng 1960;82:35–45. Med 2020;382:1199–1207. [CrossRef] [CrossRef]
- World Health Organization. Novel coronavirus [15] Jazwinski AH. Stochastic Processes and Filtering (2019-nCoV) situation reports. 2020. Available at: Theory. Cambridge, Massachusetts: Academic Press; https://www.who.int/emergencies/diseases/novel- 1970. coronavirus-2019/ Accessed on May. 18, 2022. [16] Anderson BDO, Moore JB. Optimal Filtering. New
- Jia L, Li K, Jiang Y, Guo X, Zhao T. Prediction and Jersey: Prentice Hall; 1979. [CrossRef] analysis of coronavirus disease 2019. 2020, arXiv [17] Özbek L, Aliev FA. Comments on adaptive fad- preprint arXiv:2003.05447. ing kalman filter with an application. Automatica
- Castorina P, Iorio A, Lanteri D. Data analysis on 1998;34:1663–1664. [CrossRef] coronavirus spreading by macroscopic growth laws. [18] Ozbek L, Efe M. An adaptive extended kalman filter Int J Modern Physics 2020;42:2050103. [CrossRef] with application to compartment models. Commun
- Roosa K, Lee Y, Luo R, Kirpich A, Rothenberg Stat Simul Comput 2004;33:145–158. [CrossRef] R, Hyman JM, et al. Real-time forecasts of the [19] Harrison PJ, Stevens CF. Bayesian forecasting (with COVID-19 epidemic in China from February 5th to discussion). J Roy Stat Soc Ser B 1976;38:205–247. February 24th, 2020. Infect Dis Model 2020;5:256– [CrossRef]
- Roosa K, Lee Y, Luo R, Kirpich A, Rothenberg Science and Engineering, 2019. Available at: R, Hyman JM, et al. Short-term Forecasts of the https://github.com/CSSEGISandData/COVID-19 COVID-19 Epidemic in Guangdong and Zhejiang, Accessed on May 17, 2022. China: February 13-23, 2020. J Clin Med 2020;9:596. [21] Cori A, Ferguson NM, Fraser C, Cauchemez S. A [CrossRef] new framework and software to estimate time-vary-
Share and Cite
ÖZBEK, L. A study on the estimation of COVID-19 case with the adaptive kalman filter AKF in USA Germany United. Sigma Journal of Engineering and Natural Sciences 2022, Vol. 40, pp. 323-343. https://doi.org/10.14744/sigma.2022.00036

