This article represents Legendre spectral collocation method based on Legendre polynomials to solve a stochastic Susceptible, infected, Recovered (SIR) model. The Legendre polynomials on stochastic SIR model that convert it to a system of equations has been applied and then solved by the Legendre spectral method, which leads to excellent accuracy and convergence by implementing Legendre–Gauss–Lobatto collocation points permitting to generate coarser meshes. The numerical results for both the deterministic and stochastic models are presented. In case of probably small noise, the verge dynamics is analyzed. The large noise will show eradication of disease, which controls disease spreading. Various graphical results demonstrate the effectiveness of the proposed method to SIR model.
There are many classical epidemic models which have been intentional and recommended for modeling of spread process of the infectious diseases, like Susceptible, infected, Recovered (SIR), Susceptible infected, Recovered, Susceptible (SIRS), and Susceptible, Exposed, infected Recovered models. These models have been proposed by many researchers to study the dynamics of disease spread and controls.1–9
Mathematical modeling of infectious diseases has an old history. In 1760, an infectious disease model was proposed by Bernoulli10 for smallpox. Furthermore, in 1906, H Hamer11 studied the measles epidemic through an SIR model. After that, a mathematical model was proposed by RA Ross12 in 1911 to study the dynamics of malaria. The models proposed in previous studies13–16 were used in a different way for different disease dynamics. Moreover, the first classical SIR model was proposed by WO Kermack and AG McKendrick,17 where the population is considered in three compartments, that is susceptible, infected, and recovered.
Susceptible becomes infected, and infected becomes recovered, is the concept of SIR model. However, for some epidemic diseases, the recovery does not produce lifelong protection, for example, plague, meningitis, malaria, and sleeping sickness;18 thus, susceptible persons are individually transferred to the infected persons and then consequently to recovery, and return to susceptible class, such type of model is identified as Susceptible, Infected, Susceptible (SIS) model. The SIS model has been studied by many researchers.19–21 Although for some epidemic diseases, the recovery can produce protection for the time being, and after some time, recovery may lose protection and returns to the susceptible class, such as influenza, smallpox, tetanus, typhoid fever, and cholera. Such type of model is called SIRS model. Literature22–24 is full of many research papers which are based on SIR models. These SIR models have been proposed by the authors for a specific infectious disease with specific incident rate.
Using the Legendre spectral collocation method (LSCM), we prepared an SIR model with stochastic effect to present their numerical solution. There is no such article in the literature that shows the dynamics of an SIR stochastic model. So, this is a novel approach to study stochastic SIR model. The nonlinear SIR model is as follows
Total population are categorized further into three classes, these classes are represented by . In equation (1), represents the population of susceptible individuals, denotes the population of infected individuals, and is the population of recovered individuals. The parameters , and are positive constants. Parameter represents the natural birth rate of susceptible individuals, represents natural death rate in each individuals class, disease contact rate is given by , denotes recovery rate of infected individuals, and the infected individuals become susceptible at a rate and move to susceptible class. Using LaSalle’s invariance principle, a threshold dynamics of equation (1) is driven by basic reproduction number ; therefore, if the reproduction number , then equation (1) has infection-free equilibrium and asymptotically stable. However, if the reproduction number , then endemic equilibrium of the given system is asymptotically stable.25
The stochastic perturbations are assumed to be white noise, and the system equation (1) will be deduced to the following form
where are the initial conditions, are the Brownian motions, and each is the intensity of . The aim of this study is to implement present method for numerical solution of stochastic SIR model given in equation (2). This method was previously demonstrated by D Lehotzky et al.,26 for the stability analysis of time-periodic delay-differential equations with multiple and distributed delays. Similarly, P Zakian and N Khaji27 discussed the stochastic spectral finite element method for wave propagation analysis with medium uncertainties. The Legendre polynomials have been used by many researchers for approximate solution of differential and integral equations.28,29
This article is structured as follows: Legendre polynomials are reviewed in section “Legendre polynomials.” In section “Description of LSCM,” a brief description of LSCM is given to solve equation (2). Analysis is given in section “Analysis of stochastic SIR model.” Numerical results are discussed in section “Numerical results.” The conclusion is given in section “Conclusion.”
Legendre polynomials
In this section, we review the Legendre polynomials; the N-order Legendre polynomials are denoted by . Any function defined over can be approximated by Legendre interpolating polynomials as
where are unknown Legendre coefficients, are interpolating points which satisfy , and is the N-order Legendre polynomial defined by
Description of LSCM
In this section, we introduce LSCM to solve stochastic SIR model defined in equation (2). In the procedure of LSCM, the Legendre–Guass quadrature with weight function has been used. For this method, we consider Legendre–Gauss–Lobatto points ; therefore, roots of where is Legendre polynomial.
Our purpose is to obtain an approximate solution of equation (2); for this, taking integral within on both sides of equation (2), then the equation takes the following form
where the initial conditions , respectively, are of the functions of . To analyzed LSCM on a standard interval of , take linear transformation , then equation (5) becomes
The semi-discretized spectral equations of equation (6) are
where Legendre–Gauss quadrature with weight function is
Similarly, Legendre–Gauss quadrature with stochastic weight function is
Now using Legendre polynomial to approximate , and using equation (3)
where are Legendre coefficients to the functions , and , respectively. Now using above approximation equation (2), the equation can be reduced to the following form
For simplicity, . Thus, the system equation (9) contains number of unknowns with nonlinear algebraic equations. Also using the initial conditions
Thus, equations (9) and (10) form a system of nonlinear algebraic equations with unknowns for for . This system obtains the unknowns , , by substituting the value of unknowns in equations ; then, we obtain an approximate solution to the stochastic SIR model equation (2).
Analysis of stochastic SIR model
We consider both deterministic SIR model equation (1) and stochastic SIR model equation (2) with saturated incident rate . For equation (1), the reproduction number is defined by and then the following theorems are considered.
Theorem 1
If , then solution of system equation (1) has infection-free equilibrium . If reproduction , then system equation (1) has a unique endemic equilibrium , where
Proof
Let be endemic equilibrium of system equation (1), then must satisfy the following system
To prove the system equation (11), we considering the two cases: and :
: from last equation of equation (11), we get, , and from first equation of equation (11), . Hence, we can get , which is disease-free equilibrium. In this case, the reproduction number .
Again taking and using Lemma 2, equation (15) takes the form
For
which shows that . Consequently, if , then
This completes the proof of the theorem.
Numerical results
We perform numerical results of stochastic SIR models given in equations (1) and (2) for different parameter values to show the efficiency and simplicity of LSCM. The associated computations were performed using Maple and MATLAB on a personal computer.
First, we set initial conditions . Then, we give the appropriate parameter values , for deterministic system equation (1). Using above parameters, the computation shows that reproduction number , using Theorem 1, we clearly see that system equation (1) has stable disease-free equilibrium , where the susceptible individuals are clearly equal to ; this dissertation is shown in Figure 1.
Time series for the solution of deterministic SIR system equation (1), with , where and .
While if we take and the same remaining parameter values of Figure 1, then the reproduction ; again using Theorem 1, the simple calculation is made in this case and found that the system equation (1) has stable infectious equilibrium ; therefore, the susceptible individuals have , and infected and recoverable individuals have and , respectively, which is shown Figure 2.
Time series for the solution of deterministic SIR system equation (1), with , where and .
If we choose and the parameter values , for deterministic system equation (2), then the simple calculation shows the condition , and ; then, by Theorem 2, the infected individuals of system equation (2) tend to zero, and this can shown in Figure 3, and we clearly see that approaches to zero.
Time series for the solution of stochastic SIR system equation (2), with , where and .
Similarly, if we choose with intensity of noise and the same remaining parameter values as in Figure 3, then the simple calculation shows that the deterministic system equation (2) satisfies the condition , and ; then, by Theorem 2, the infected individuals are presented in a system equation (2) and have a stable endemic equilibrium and this is shown in Figure 4.
Time series for the solution of stochastic SIR system equation (2), with , where , but .
In Figure 5, we compare both the deterministic and stochastic systems for the parameter values . For the given parameter values, the simple computation shows that for the deterministic system equation (1), also for stochastic system equation (2), and .
Comparison of both stochastic system equation (2) and deterministic system equation (1), with , where and , has stable disease free equilibrium .
In Figure 6, we compare both deterministic and stochastic systems; we choose and same remaining parameter values as given in Figure 5; then, simple computation shows that for the deterministic system equation (1), where for stochastic system equation (2) and .
Comparison of both stochastic system equation (2) and deterministic system equation (1), with , where and , but . has stable endemic equilibrium .
In Figure 7, we compare solutions of the system equation (2) for different intensities values, therefore, for We clearly see that, for the small intensities , the fluctuation of the solution of system equation (2) is weaker, and the dynamics of solutions is also getting flat. However, if we increase the intensities to , the fluctuation of the solutions becomes stronger.
Comparison of the stochastic system equation (2) for different intensities with .
In Figure 8, we compare the solutions of the system equation (2) by LSCM and Chebyshev spectral collocation method (CSCM) for different parameter values . For the given parameter values, the simple computation shows that the reproduction number ; also for stochastic system equation (2), and In Figure 8, we clearly see that both the solutions are in their good agreements.
Comparison of the solution of stochastic system equation (2) by LSCM and Chebyshev spectral collocation method (CSCM), with parameters value , where and , , has stable disease free equilibrium
In Figure 9, we compare the solutions of the system equation (2) by LSCM and CSCM; for different parameter values, we choose and same remaining parameter values as given in Figure 8; then, simple computation shows that the reproduction number ; also for stochastic system equation (2), and . Once again, we clearly see in Figure 9 that both the solutions are in their good agreements.
Comparison of the solution of stochastic system equation (2) by LSCM and Chebyshev spectral collocation method (CSCM), with parameters value , where and , but has stable endemic equilibrium .
Conclusion
LSCM and their properties are successfully applied to solve the SIR model. Also, we derived and used the Legendre polynomial and Legendre–Gauss quadrature with weight function to transform the SIR model to nonlinear system of equations. Both deterministic and stochastic SIR models have been considered in this study. For the deterministic system, the different behaviors of the reproduction are examined. It is observe that when the reproduction number , then the infected individuals goes to zero, means the disease-free equilibrium is found for the system. While if the reproduction number , then the system has a unique stable endemic equilibrium . Similarly, for the stochastic system, the intensities of noise for different values are discussed; therefore, for the small intensity, the fluctuation of the solutions is small, while as we increase the intensity, the fluctuation of the solution becomes stronger. Also for the validation of proposed method, we compare the solution with CSCM. The method is comparatively good to solve stochastic SIR model.
Footnotes
Handling Editor: Jianjun Ni
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
ORCID iD
Sami Ullah Khan
References
1.
ZhouYZhangWYuanSet al. Persistence and extinction in stochastic SIRS models with general nonlinear incidence rate. Electron J Differ Eq2014; 42: 1–17.
2.
CarlettiM.Mean-square stability of a stochastic model for bacteriophage infection with time delays. Math Biosci2007; 210: 395–414.
3.
MengXZChenLS.The dynamics of a new SIR epidemic model concerning pulse vaccination strategy. Appl Math Comput2008; 197: 528–597.
4.
KhanMAKhanYIslamS.Complex dynamics of an SEIR epidemic model with saturated incidence rate and treatment. Physica A2018; 493: 210–227.
5.
KhanMAKhanYKhanTWet al. Dynamical system of a SEIQV epidemic model with nonlinear generalized incidence rate arising in biology. Int J Biomath2017; 10: 1750096.
6.
KhanMAKhanYKhanSet al. Global stability and vaccination of an SEIVR epidemic model with saturated incidence rate. Int J Biomath2016; 9: 1650068.
7.
ZhangFPLiZZZhangF.Global stability of an SIR epidemic model with constant infectious period. Appl Math Comput2008; 199: 285–291.
8.
RoyMHoltRD.Effects of predation on host-pathogen dynamics in SIR models. Theor Popul Biol2008; 73: 319–331.
9.
ZhangTLTengZD.Permanence and extinction for a nonautonomous SIRS epidemic model with time delay. Appl Math Model 2009; 33: 1058–1071.
10.
BernoulliD.Essai d’une nouvelle analyse de la mortalité causée par la petite vérole et des avantages de l’inoculation pour la prévenir. Mem Math Phys1760; 1: 1–45.
11.
HamerWH.Epidemic disease in England. Lancet1906; 1: 733–739.
12.
RossRA.The prevention of malaria. London: Murray, 1911.
13.
ZhangTMengXZhangTet al. Global dynamics for a new high-dimensional SIR model with distributed delay. Appl Math Comput2012; 218: 11806–11819.
14.
MengXChenLWuB.A delay SIR epidemic model with pulse vaccination and incubation times. Nonlinear Anal-Real2010; 11: 88–98.
15.
MiaoAZhangJZhangTet al. Threshold dynamics of a stochastic SIR model with vertical transmission and vaccination. Comput Math Methods Med2017; 2017: 4820183.
16.
ZhouJYangYZhangT.Global stability of a discrete multigroup SIR model with nonlinear incidence rate. Math Methods Appl Sci2017; 40: 5370–5379.
17.
KermackWOMcKendrickAG.A contribution to the mathematical theory of epidemics. P Roy Soc A-Math Phy1927; 115: 700–721.
18.
HethcoteHW.Qualitative analyses of communicable disease models. Math Biosci1976; 28: 335–356.
19.
LiJMaZ.Qualitative analyses of SIS epidemic model with vaccination and varying total population size. Math Comput Model2002; 35: 1235–1243.
20.
ZhouYYuanSZhaoD.Threshold behavior of a stochastic SIS model with jumps. Appl Math Comput2016; 275: 255–267.
21.
ZhaoYZhangQJiangD.The asymptotic behavior of a stochastic SIS epidemic model with vaccination. Adv Differ Equ2015; 2015: 328.
22.
MuroyaYLiHKuniyaT.Complete global analysis of an SIRS epidemic model with graded cure and incomplete recovery rates. J Math Anal Appl2014; 410: 719–732.
23.
ZhaoJWangLHanZ.Stability analysis of two new SIRS models with two viruses. Int J Comput Math2018; 95: 2026–2035.
24.
JiCJiangD.The extinction and persistence of a stochastic SIR model. Adv Differ Equ2017; 2017: 30.
25.
SongYMiaoAZhangTet al. Extinction and persistence of a stochastic SIRS epidemic model with saturated incidence rate and transfer from infectious to susceptible. Adv Differ Equ2018; 2018: 293.
26.
LehotzkyDInspergerTStepanG.Extension of the spectral element method for stability analysis of time-periodic delay-differential equations with multiple and distributed delays. Commun Nonlinear Sci2016; 35: 177–189.
27.
ZakianPKhajiN.A stochastic spectral finite element method for wave propagation analyses with medium uncertainties. Appl Math Model2018; 63: 84–108.
28.
KhanSUAliI.Application of Legendre spectral-collocation method to delay differential and stochastic delay differential equation. AIP Advances2018; 8: 035301.
29.
SahuPKRaySS.Legendre spectral collocation method for the solution of the model describing biological species living together. J Comput Appl Math2016; 296: 47–55.