key: cord-0695185-uavu9y0p authors: Badfar, Ehsan; Zaferani, Effat Jalaeian; Nikoofard, Amirhossein title: Design a robust sliding mode controller based on the state and parameter estimation for the nonlinear epidemiological model of Covid-19 date: 2021-11-08 journal: Nonlinear Dyn DOI: 10.1007/s11071-021-07036-4 sha: c8cdcfb24b3cf718cff83d8303aa8a78188a73ab doc_id: 695185 cord_uid: uavu9y0p In this research, the challenging problem of Covid-19 mitigation is looked at from an engineering point of view. At first, the behavior of coronavirus in the Iranian and Russian societies is expressed by a set of ordinary differential equations. In the proposed model, the control input signals are vaccination, social distance and facial masks, and medical treatment. The unknown parameters of the system are estimated by long short-term memory (LSTM) algorithm. In the LSTM algorithm, the problem of long-term dependency is prevented. The uncertainty and measurement noises are inherent characteristics of epidemiological models. For this reason, an extended Kalman filter (EKF) is developed to estimate the state variables of the proposed model. In continuation, a robust sliding mode controller is designed to control the spread of coronavirus under vaccination, social distance and facial masks, and medical treatment. The stability of the closed-loop system is guaranteed by the Lyapunov theorems. The official confirmed data provided by the Iranian and Russian ministries of health are employed to simulate the proposed algorithms. It is understood from simulation results that global vaccination has the potential to create herd immunity in long term. Under the proposed controller, daily Covid-19 infections and deaths become less than 500 and 10 people, respectively. On 31 December 2019, a novel coronavirus is formally reported in Wuhan, Hubei Province, China [1, 2] . On 31 January 2020, the World Health Organization formally knew this newly emerging virus as a global threat. In a very short time, this virus reached the most remote corner of the world. According to the WHO, humanto-human communication is the most common way of disease transmission. This fact highly affects the daily life of humans around the world. This global pandemic leads to several economic losses and unemployment. For example, in [3, 4] , the authors discussed effects of Covid-19 on the tourism industry. According to the global statistics, the tourism industry experienced the lowest demand in the last decade [5] .The educational system was also affected severely by the Covid-19 pandemic [6] [7] [8] . Most schools and universities are experiencing virtual classrooms. In [9] , the authors suggest that the virtual classroom trends remain even after the Covid-19 inhibition. The social and economic consequences of the Covid-19 pandemic have motivated researchers to study different methods to mitigate the spread of Covid- 19 . The mathematical models of natural phenomena play a vital role for government and decision-makers. For example, mathematical models are employed to predict weather patterns [10, 11] . From initial days of the Covid-19 pandemic, scientists make a great effort to obtain the mathematical model of coronavirus [12, 13] . In [14] [15] [16] , the author employs the classical SIR (susceptible-infectious-recovered) to describe the transmission dynamics of coronavirus in different societies. However, due to the complex behavior of coronaviruses, such as transmission power and asymptotic symptoms, this classical model is not able to reflect the behavior of the disease. In [17] [18] [19] , the SEIR (susceptible-exposed-infectious-recovered) model is suggested to describe the transmission dynamics of Covid-19. In [20] , the authors proposed the dynamical model of coronavirus in Mexico. The official data are employed to calibrate the model of disease, and the stability of the system is analyzed. In [21] , the authors proposed a modified SEIR to model the disease outbreak in Italy and Spain for prediction and control purposes. The official data are employed to update the parameters of the modified SEIR model. In [22] , the authors obtain the epidemiological model of the outbreaks in Brazil. The effect of social distance is analyzed in the mitigation of disease spread. In [23] [24] [25] [26] [27] , the authors consider the effect of vaccination in modeling the disease outbreak. These models help us to understand how global vaccination reduces the rate of mortality. Several researchers devoted their effort and attention to the parameter and state estimation of the epidemiological model. For example, in [28] , the authors utilized neural networks and LSTM methods to predict the number of infected cases in India. In [29] , the authors use the least square error method to estimate the unknown parameters of SIR/SQAIR (susceptiblequarantined-infected with no symptoms-infected with symptoms-recovered) models based on the actual data of South Korea. As a reliable method, the Kalman filter is widely employed to estimate the unknown parameters of the noisy processes. In [30, 31] , the authors proposed a Kalman filter to estimate immeasurable parameters of epidemiological models. In [32] , the authors try to predict the state variables of the epidemiological model of Covid-19 in Spain, France, and Italy based on the Auto-Regressive Integrated Moving Average method. In [33] , based on the confirmed official data, the authors utilized deep learning methods to predict the spread of Covid-19 in six countries, including Australia, China, France, Italy, the USA, and Spain. The results of this research demonstrate the potential application of deep learning methods in the prediction of epidemiological model parameters. In [34] , the fuzzy logic is proposed to predict the state variables of Covid-19 pandemics in the Indian society based on the official confirmed data. In the last year, the design of a controller for the nonlinear epidemiological model of Covid-19 turns into a popular topic [35] [36] [37] [38] [39] . In [40] , the authors proposed an optimal controller based on the Pontryagin principle to mitigate the spread of Covid-19. In [41] , the authors develop a nonlinear model predictive control for the nonlinear epidemiological model of Covid-19 in Italy. The authors realized that social distance and restriction on mobility prevent the Covid-19 outbreak in the Italian society. In [42] , the authors employ a Lyapunovbased method to investigate the effect of vaccination on the inhibition of Covid-19 in Canada. In [43] , the authors design a controller for the SIR model based on the feedback linearization method. In this paper, the vaccination is considered as a control input signal. According to the author's best knowledge, the problem of robust sliding mode controller design based on the states and parameters estimation of the Covid-19 model is not studied yet. In this research, a novel mathematical model is introduced to reflect the behavior of Covid-19 in the Iranian and Russian communities. According to the actual data provided by the Iranian and Russian ministries of health, the transmission rates of the proposed model are estimated by the LSTM algorithm. In the LSTM method, the algorithm uses gates to control the memorizing process. Therefore, the problem of long-term dependency is prevented. In continuation, the immeasurable and noisy state variables of the proposed model are estimated by the EKF algorithm. To overcome the uncertainties and measurement noises in the nonlinear model of Covid-19, a robust sliding mode controller is suggested. Inspired by the above discussion, the main outcomes of this research are highlighted in below: -Global vaccination leads to herd immunity in the long term. -During the global vaccination, social distance and facial masks are obligatory. The rest of this paper is organized as follows. In the second section, the mathematical model of Covid-19 with respect to the vaccination, social distance and facial masks, and medical treatment is introduced. In the third section, the parameter and state estimation are carried out by LSTM and EKF algorithms, respectively. In the next section, a robust sliding mode controller and Lyapunov stability analysis are developed. Finally, simulation results and concluding remarks are presented. In this section, the behavior of coronavirus under vaccination, social distance and facial masks, and medical treatment is expressed by mathematical language. In this epidemiological model, the population of Iranian and Russian societies are expressed with six states, including susceptible (S), infected (I), quarantined (Q), hospitalized (H), recovered (R), and finally extinct (E). In Fig. 1 , the transmission dynamics of the SIQHRE epidemiological model are presented. Normally, the RT-PCR test is the only method to detect coronavirus. The individuals with positive RT-PCR test move to the infected compartment with the rare of α. The infected cases with severe symptoms as pneumonia move to the hospitalized group at the rate of γ . In this condition, the hospitalized cases that lose their life move to the extinct group with the rate of ε; otherwise, they move to the recovered group with the rate of φ. The infected cases with mild symptoms such as dry cough, tiredness, and fever move to the quarantined group with the rate of λ. During this period, the quarantined cases with severe symptoms such as lung damage move to the hospitalized group at the rate of θ ; otherwise, they move to the recovered group at the rate of μ. In this research, the vaccination (u1), social distance and facial masks (u2), and medical treatment (u3) are considered as control input signals. Inspired by the above discussion, the mathematical model of the Covid-19 pandemic is presented by a set of six ordinary differential equations as follows (1) Remark 1 Since coronavirus statistics are updated on a daily basis, the SIQHRE model is expressed in the discrete-time framework with sampling period of one day. Remark 2 It should be mentioned that all the state variables (populations) take positive values. According to the epidemiological dynamics, the population of community during Covid-19 pandemics remains constant [44] . Therefore, all the state variables are bounded during the Covid-19 pandemics. In this research, it is assumed that vaccines generate complete immunity against coronavirus [45, 46] . Therefore, vaccinated cases move from the susceptible to the recovered compartment directly. In this section, the unknown parameters and noisy states of the system are estimated by the LSTM and EKF methods, respectively. In this section, the transmission rates of SIQHRE model, i.e., = {α, γ , λ, θ, μ, φ}, are estimated by the LSTM method. In the LSTM method, the memorizing process is controlled by gates, and long-term dependency is prevented. As shown in Fig. 2 , a typical LSTM unit has a cell state and three gates, including an input gate, a forget gate, and an output gate. These gates are some neural networks that can learn what information is relevant to keep or forget on the cell state during training. By means, LSTM can transfer associated Fig. 1 The SIQHRE model information to the next unit of the long chain by these gates. Also, a gate is similar to a neural network layer, which contains different individual weights. The cell state is the "memory" of the network and transfers relative information to the output of the unit by adding or removing information through forget and input gates as follows: The cell state is the "memory" of the network and transfers relative information to the output of the unit by adding or removing information through forget and input gates as follows: where C t , f t , i t , and C t are current cell state value, current forget gate value, the output of sigmoid, and tangent hyperbolic functions in the input gate, respectively. The input gate updates the cell state value. By means, previous hidden state and the current input pass into sigmoid and hyperbolic tangent functions as presented in Eqs. 8and 9. where h t−1 and x t present the previous hidden state and current input of the LSTM unit, respectively. The term W i indicates the weighting matrix of the sigmoid operator between the input and output gates, and W C is the weighting matrix of cell state. The terms b i , b c are bias vectors related to the W i , W C , respectively. In the next step, the outputs are multiplied together to choose which information is more important to be kept. According to Eq. 10, the forget gate determines which data from the previous hidden state or the current input should be kept by a sigmoid function. where W f is the weighting matrix of the forget gate and b f is the bias vectors related to W f . According to Eq. 11, in the output gate, the previous hidden state and the current input are passed into a sigmoid function and multiply with the tanh(C t ) to decide which information should be transferred with the hidden state. where W o is weighting matrix of output gate and b o is the bias vector related to W o . The weighting matrix and bias vectors must be updated by gradient backpropagation to outperform. The parameter updated formulas are defined as follows: where the variables gate t , W, and b are defined as follows: The estimated parameters vector is shown as, = { α, γ , λ, θ, μ}. In this section, unmeasurable states of the SIQHRE model are estimated by the EKF algorithm. There are two reasons why the EKF algorithm is necessary to be employed. First, accurate measurement of susceptible, quarantined, and healed groups is impossible. The second reason is that RT-PCR tests have the possibility of false-positive and false-negative results. Therefore, the measurement of infected cases is noisy and cannot be employed for real-time control purposes. In order to employ the EKF algorithm, the mathematical description of the SIQHRE model is expressed as follows: The terms w(t) ∈ 6×1 and v(t) ∈ 2×1 are process and measurement noises with the covariance matrixes Q and R, respectively. As a first step, it is necessary to compute the Jacobean matrices of the system as follows: According to Fig. 3 , the EKF algorithm includes two phases, i.e., time update and measurement update. In the time-update phase, the predicted state estimate and In the measurement-update phase, the Kalman gain, updated-state estimate, and the updated covariance esti-mate are computed as follows: It is important to note that the norm of EKF estimation error is bounded by a positive scalar, i.e., ||ê || ≤ ε , ∈ {S, I, Q, R}, if disturbing noise and initial estimation are bounded. Therefore, the estimated variables are denoted asˆ = n +ê [47] , whereˆ and n are estimated variables and nominal value of the estimated variables, respectively. In this research, the estimation error bounds (ε ) are obtained through trial and error. In this section, a sliding mode controller based on the LSTM and EKF estimators is developed to mitigate the spread of coronavirus in the Iranian and Russian societies. The structure of the closed-loop system is depicted in Fig. 4 . In the next step, the dynamical equations of the SIQRHE system are rewritten based on LSTM and EKF estimators as follows: For the sake of simplicity, it is recommended to separate the nominal terms from uncertain terms. Therefore, the uncertain terms are written in the bracket as follows: The procedure of sliding mode controller design is initiated by defining the sliding manifolds as follows: where R d (k), I d (k) and E d (k) are desired behavior of recovered, infected, and extinct compartments. The equivalent control laws are responsible for moving the state variables toward sliding manifolds, i.e., (S i (k + 1) − S i (k) = 0 f ori ∈ {R, I, E}). To obtain the equivalent control laws, the forward difference of sliding manifolds is computed, and the nominal terms of Eqs. After some mathematical calculations, the equivalent control laws are achieved as follows: In continuation, the state variables of the SIQHRE model move toward origin along the sliding manifolds by applying switching control laws as follows: where K R (k), K I (k), and K E (k) are positive timedependent switching gains. The stability of the closedloop system is guaranteed through the proper selection of switching gains. For this purpose, a rigorous stability analysis is proposed in the next section. The positive Lyapunov candidate function is considered as follows: Taking the forward difference of both sides of the above equation and using reachability condition yield: where ζ i ≥ 0, i ∈ R, I, E are design parameters. Substitution of Eqs. 32, 35 and 36 into the above equation yields: The substitution of Eqs. 43-45 into Eq. 48 yields: After some mathematical simplification, the above equation can be written as follows: According to the above equations, the state variables of the SIQHRE model converge exponentially to the desired values, and also, Lyapunov function is negative definite if switching gains are selected as follows: It should be mentioned that proper selection of timevarying switching gains reduces the effect of system uncertainties on the obtained results in the next section. In this section, the performances of the proposed algorithms are analyzed. The parameters of the SIQHRE model are listed in Table 1 . In this study, the official confirmed data provided by the Iranian and Russian ministries of health from 1 August 2020 to 20 March 2021 are employed [48] [49] [50] . In the proposed LSTM algorithm, data from 1 August 2020 to 9 January 2021 In Figs. 5, 6, the recovery rate is estimated by the LSTM method. Clearly, the results of the proposed LSTM method approximately fit with the actual data. It should be mentioned that during this period, the recovery rate in Iran experiences an incremental slope. In this estimation, the root-mean-square error (RMSE) and Pearson correlation are 0.1479 and 0.9904, respectively. The actual and estimated mortality rates are compared in Figs. 7, 8. According to these figures, the mortality rate experiences a decreasing slope in Iran. During this period, the mortality rate shows an increasing Figs. 9 , 10, the actual and estimated data for the rate of infected cases are compared. Despite sharp variation in the actual data of Iran, the LSTM algorithm successfully estimates the actual data. In this period, the infection rate experiences a decreasing slope in Russia. The RMSE and Pearson correlation are 0.05445 and 0.9922, respectively. In Figs. 11, 12 , the estimated rate of hospitalization is compared with the actual data. According to these figures, in spite of sharp variations in the actual data of Iranian and Russian countries, the LSTM algorithm In this section, the performance of the proposed EKF algorithm is investigated. As mentioned previously, the measurable state variables are hospitalized cases (H), who received medical service in the governor hospitals, and confirmed extinct cases (E). The rest of the state variables are contaminated with white Gaussian noises. In this study, the covariance of measurement and process noises and also the initial covariance estimation are defined as R = 0.01I 2 , Q = I 6 , and P + 0 = 10I 6 , respectively. In Figs. 13, 14 , the tracking errors of suspected, infected, quarantined, and recovered cases Finally, the performance of the proposed control algorithm is studied. At first, the desired behavior of the system's outputs, i.e., infected, extinct, and recovered, is defined as follows: where I f , E f , and R f are desired final number of infected, extinct, and recovered compartments, respectively. As presented in Table 1 , the parameters I 0 , E 0 , and R 0 are the initial number of these compartments and the parameters w I , w E , and w R are oscillatory rates and take positive values. According to Figs. 15, 16, Covid-19 daily deaths in Iran and Russia experience a decreasing slope under improvement of medical treatment. In other words, positive actions in the medical service system such as increasing hospital capacity, improving hospitals equipment, and employing fresh nurses and doctors lead to decreasing mortality in a short time. The pro- posed controller can reduce the Covid-19 daily death to less than ten people in less than one month in Iran and Russia. In Figs. 17, 18 , the daily confirmed infected cases under social distance and facial masks policies are presented. According to these figures, daily Covid-19infected cases become less than 500 people in less than one month under the proposed controller. However, after the peak of infected cases, a steep decrease is observed in daily confirmed infected cases. It is con- Fig. 15 The effect of medical treatment on the daily deaths in Iran Fig. 16 The effect of medical treatment on the daily deaths in Russia cluded that social distance and facial masks are effective policies to reduce the daily infection rate. Since daily infection rate has a direct relationship with the mortality rate of Covid-19, social distance and facial mask result in the reduction of Covid-19 deaths in the long term. In the last simulation, the effect of vaccination on the immunity of people against novel Covid-19 is investigated. During this simulation, it is assumed that vacci- Fig. 17 The effects of social distance and facial mask on daily infected cases Fig. 18 The effects of social distance and facial mask on daily infected cases nation was initiated on 10 January 2021, and also, vaccinated people have complete immunity against Covid-19. According to Figs. 19, 20, from 10 January 2021 to 25 February 2021, the vaccination has no tangible effect on the Iranian and Russian societies. Between 25 February 2021 and 20 March 2021, vaccination produces herd immunity for a number of 80 million people in Iran. Due to the higher population of the Russian community, the herd immunity occurred later than Iranian community. It is concluded that vaccination as an Fig. 19 The effect of vaccination on the immunity of Iranian society against Covid-19 pandemic Fig. 20 The effect of vaccination on the immunity of Iranian society against Covid-19 pandemic effective action against the Covid-19 pandemic is able to produce herd immunity in the long term. However, it should be mentioned that social distance and facial masks are obligatory during global vaccination. In this paper, a comprehensive solution is proposed to mitigate the spread of Covid-19 in the Iranian and Russian societies. At first, the transmission flow of Covid-19 is expressed by the SIQHRE model. The transmission rates of the system are estimated by the LSTM algorithm. Then, the EKF algorithm is employed to estimated state variables of the system in the presence of measurement and process noises. In continuation, a robust sliding mode controller is developed to control the spread of Covid-19 under vaccination, social distance and facial masks, and medical treatment. The stability of the closed-loop system is analyzed through Lyapunov theorems. This research has the potential to be extended in different ways. For example, it is recommended to consider the possibility of infection after vaccination. The results of this research help policymakers to adopt the best decisions in a global fight against Covid-19. However, it should be mentioned that there are several obstacles to eliminating the Covid-19 pandemic, including the emergence of novel variants of Covid-19, such as SARS-CoV-2, and also different levels of vaccination protection against new variants of Covid-19. Coronavirus disease 2019: clinical review Potential treatments for covid-19; a narrative literature review Effect of coronavirus disease (covid-19) to tourism industry Tourism and covid-19: Impacts and implications for advancing and resetting industry and research Air quality over major cities of Saudi Arabia during hajj periods of 2019 and 2020 Beyond covid-19 supernova. Is another education coming? Using technology to maintain the education of residents during the covid-19 pandemic Education and the covid-19 pandemic Education in and after covid-19: Immediate responses and long-term visions Deep learning-based effective fine-grained weather forecasting model Single layer and multi-layer long short-term memory (lstm) model with intermediate variables for weather forecasting COVID-19 Pandemic Dynamics: Mathematical Simulations A review of mathematical model-based scenario analysis and interventions for covid-19 A sir model assumption for the spread of covid-19 in different communities Implications of heterogeneous sir models for analyses of covid-19 Mathematical epidemiology, sir models and covid A simulation of a covid-19 epidemic based on a deterministic seir model. Front Seir modeling of the covid-19 and its dynamics The effectiveness of quarantine of Wuhan city against the corona virus disease 2019 (covid-19): A well-mixed seir model analysis An seiard epidemic model for covid-19 in Mexico: mathematical analysis and state-level forecast A modified seir model to predict the covid-19 outbreak in Spain and Italy: simulating control scenarios and multi-scale epidemics Social distancing measures to control the covid-19 pandemic: potential impacts and challenges in Brazil Transmission dynamics of novel coronavirus sars-cov-2 among healthcare workers, a case study in Iran. Nonlinear Dyn On a discrete seir epidemic model with exposed infectivity, feedback vaccination and partial delayed re-susceptibility On an se (is)(ih) ar epidemic model with combined vaccination and antiviral controls for covid-19 pandemic About partial reachability issues in an seir epidemic model and related infectious disease tracking in finite time under vaccination and treatment controls Supervision of the infection in an si (si-rc) epidemic model by using a test loss function to update the vaccination and treatment controls Prediction and analysis of covid-19 positive cases using deep learning models: A descriptive case study of India Parameter estimation and prediction of covid-19 epidemic turning point and ending time of a case study on sir/sqair epidemic models Tracking r of covid-19: A new real-time estimation using the kalman filter Kalman filter based short term prediction model for covid-19 spread Estimation of covid-19 prevalence in Italy, Spain, and France Deep learning methods for forecasting covid-19 time-series data: A comparative study Fuzzy logic inference system for identification and prevention of coronavirus (covid-19) Analysis of a covid-19 model: optimal control, stability and simulations Essential information: Uncertainty and optimal control of Ebola outbreaks Observerbased adaptive pi sliding mode control of developed uncertain seiar influenza epidemic model considering dynamic population Stability and optimal control of a delayed HIV model Observer-based impulsive controller design for treatment of hepatitis c disease Optimal control design of impulsive sqeiar epidemic models with application to covid-19 Model predictive control to mitigate the covid-19 outbreak in a multi-region scenario State estimation-based control of covid-19 epidemic before and after vaccine development On a sir model in a patchy environment under constant and feedback decentralized controls with asymmetric parameterizations Modeling the effects of prevention and early diagnosis on hiv/aids infection diffusion Pfizer: The miracle vaccine for covid-19? Covid-19: Moderna applies for US and EU approval as vaccine trial reports 94.1% efficacy Stochastic stability of the continuous-time extended kalman filter Coronavirus cases statistics in Iran Coronavirus cases statistics in Russia The authors are thankful to Nima Gozalpour for his constructive contribution to this research.Funding: This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors. The data and code used in this study are available in the SECIRH repository, https://github.com/EhsanBadfar/ Covid19.