#### Abstract

A regime-switching SIRS model with Beddington–DeAngelis incidence rate is studied in this paper. First of all, the property that the model we discuss has a unique positive solution is proved and the invariant set is presented. Secondly, by constructing appropriate Lyapunov functionals, global stochastic asymptotic stability of the model under certain conditions is proved. Then, we leave for studying the asymptotic behavior of the model by presenting threshold values and some other conditions for determining disease extinction and persistence. The results show that stochastic noise can inhibit the disease and the behavior will have different phenomena owing to the role of regime-switching. Finally, some examples are given and numerical simulations are presented to confirm our conclusions.

#### 1. Introduction

Infectious diseases are one of the greatest enemies of human beings. Whenever they happen, they will bring great disasters to human beings. Therefore, it is of great significance to model and study the infectious mechanism of infectious diseases for disease control. SIR model, using , , and to express fractions of the susceptible, infected, and removed at time , as one of the classical infectious disease models, has been studied and extended by many scholars.

Owing to the richness and importance of the research content of epidemic models, different scholars study them from different perspectives. Some authors used Lyapunov functions to study the stability of the model [1–3]. The authors in [2] proposed a new technique to study stability of an SIR model with a nonlinear incidence rate by establishing a transformation of variable. More about the stability of stochastic differential equations, we refer to [4, 5]. Some scholars have studied the dynamic behavior of epidemic models and gave the threshold values of disease extinction and persistence so as to give control strategies for disease [6–10]. The authors in [6] have proved that the number can govern the dynamics of the model under intervention strategies by using the Markov semigroup theory. In addition, scholars have studied the ergodicity and stationary distribution of the model by making use of different methods in [11–14]. The authors in [12] generalized the method for analyzing ergodic property of epidemic models, all of which further enrich and improve the theory and application of epidemiology. Markov semigroup approach was used in [14] to obtain the existence of stationary distribution density of the stochastic plant disease system.

Parameters involved in models are more or less disturbed by some environmental noise. Mao et al. [15] have proved that the presence of noise can suppress potential population explosion, which shows that environmental noise has a great influence on the behavior of the model. In order to describe this perturbation, stochastic noise driven by continuous Brownian motion is widely studied in epidemic models and other systems with various incidence functions [7–9, 12, 13, 16, 17]. There are several kinds of stochastic noise, one of which is assumed that some parameters in the model are disturbed, such as the contact rate or death rate.

Beddington–DeAngelis function is an important incidence rate with the form , which has been studied by some scholars [17–19]. It can be considered as a generalization of many incidence functions, for example,(1) [7](2) [20](3) [13](4) [21]

Hence, a certain SIRS model containing constant population size and stochastic perturbation takes the following form:where represents the birth and death rate, denotes the valid contact coefficient, means the rate at which the infected is cured and returns to the removed, is the death rate due to disease, expresses the rate of losing immunity and returning to the susceptible, represents the intensity of stochastic perturbation, and is the standard Brownian motion.

Moreover, the environment in our life often changes, for example, the seasons, temperature and humidity will always change and the mechanism and infectious ability of diseases will change accordingly. Therefore, the parameters in the model will change suddenly and discontinuously, which cannot be depicted by continuous Brownian motion, but can be described by continuous-time Markov chain in finite-state space. Many scholars have studied the epidemic models with Markovian regime-switching, see [8–10, 12]. Due to the rationality and significance of multiple environments in the model, regime-switching is also applied in population model and other fields, see [18, 22, 23]. We refer the readers to [5, 24, 25] for the theory and more knowledge of Markovian switching.

As far as we know, although there are a great many number of research studies on the epidemic models with Markovian switching, there is little work on the properties of the regime-switching SIRS model the with Beddington–DeAngelis incidence rate. In this paper, we will discuss the properties of this kind, and its expression is as follows:where is a continuous-time finite-state Markov chain taking values in space with transition rate matrix , i.e.,for a sufficiently small . We assume in this paper that the matrix is conservative and irreducible, which signifies that the unique stationary distribution for Markov chain exists and satisfies the equations:

The outline of this paper is organized as follows. Section 2 proves that the model has a unique positive solution and the invariant set is presented. Meanwhile, some important lemmas which will be used later are given. In Section 3, conditions of stochastic asymptotic stability in the large are established by constructing suitable Lyapunov functionals with regime-switching. In Section 4, conditions for disease extinction are discussed and condition of persistence in the mean is also studied by applying some useful inequality techniques. Section 5 presents some examples and their simulations to confirm our theoretical results.

#### 2. Preliminaries

In this section, some background knowledge about differential equations with Markovian switching and several important Lemmas will be proposed, all of which will be used later in the paper.

Let . We define as a complete probability space with a filtration , which satisfies the usual conditions. Consider the SDEs with Markovian switching as follows:where , , and is dimensional standard Brownian motion. For and any function , define the operator by

For a differential system, people are concerned with the existence, uniqueness, form of solutions, and so on. In this paper, we are concerned about whether the model has a unique solution. Can we estimate the range of the solution more precisely? The following lemma is presented to answer these questions.

Lemma 1. *For the initial value , there exists a unique positive solution for model (2). In addition, let , then is an invariant set of model (2), i.e., if , then for all . Moreover, .*

*Proof. *We take a piecemeal approach to prove. Let be all jump times of Markov chain . When , let , and we can prove that the model has a positive solution almost surely by constructing appropriate Lyapunov function. This process is common, and we omit here. When jumping to another state for time , the corresponding parameters in the model will change to another set of numbers and the positive solution can be testified by the same method. Repeat this process on the intervals , , and the positive solution can be obtained for .

Then, we prove the range of the solution. Adding three equations in model (2), one hasFor each state , , that is,where . If , then holds until the first jump time . When jumping into the next state, we know that the initial value will lead to for . Keep repeating the process, for all . If , will decrease with increase of for each , then . The proof is completed.

Because of this property, we assume that the initial value below.

Stability is one of the important research topics, which attracts a lot of attention of researchers. In this paper, we will discuss the stochastic stability of the model. In [5, 24], conditions for stochastic asymptotic stability in the large are given.

Lemma 2. *Suppose that two functions with and exist and satisfy**Then, the equilibrium of the model is stochastic asymptotically stable in the large.*

Lemma 3. *Let be the solution of model (2); then, it haswhere , , and is defined in the same way.*

*Proof. *See reference [26] for proof.

Lemma 4. *For the solution of model (2), the following formulas hold true:*

*Proof. *We only prove equation (11). Equation (12) can be testified in the same way. Let ; then, it hasThus, we get .

#### 3. Stability of Disease-Free Equilibrium

In this section, the global stochastic asymptotic stability under some conditions of disease-free equilibrium is studied by making use of Lyapunov functionals with regime-switching.

For simplicity, let us define and , then . We also define functions as follows:and obviously,

Theorem 1. *For the initial value , if for every , and , i.e.,are satisfied, then the disease-free equilibrium is stochastically asymptotically stable in the large.*

*Proof. *For , we define the Lyapunov functional with regime-switching as follows:where , , , and are positive constants which will be specifically determined later. Using the generalized Ito formula to calculate directly, we can obtain thatFrom Lemma 1, we know that and ; thus,For , then . Choose ; hence,According to the assumption , is monotonically increasing in interval ; then, holds true.

Let . Considering the Poisson equation,It has a solution , which implies thatTherefore,Let be a sufficiently small constant such that andAgain, we choose a sufficiently small number to make the following inequality holds true:We can see from (32) that the coefficients are all negative constants. Hence, we arrive at the conclusion by taking advantage of Lemma 2.

#### 4. Asymptotic Behavior of Disease

In this section, we shall study the asymptotic behavior of disease in model (2).

##### 4.1. Extinction of Disease

First of all, we study the conditions for disease extinction. With these conditions, we can take some measures to adjust the parameters in the model to make the disease go extinct in the long run.

Theorem 2. *Assume that is the solution to model (2); if one of the two conditions below holds true:*(1)*If**(2)** for all , and*

Then, the disease will be extinct exponentially almost surely, i.e.,

Moreover,

*Proof. *For case (1), applying the Ito formula to function , we can obtain thatDefine , then andIntegrating for the both sides of (30) from 0 to followed by dividing both sides by yieldsFrom ergodic properties of Markov chains and Lemma 4, we can obtainWith the help of (26), we get that , ., which means the disease will go to extinction exponentially almost surely.

For case (2), we can obtain from (31) that if for all , thenThus,Therefore, conclusion (28) can be obtained by taking advantage of (27).

The equality . Followed by utilizing Lemma 3, next we prove the second conclusion of (29).

Assume that ; then, the above conclusions tell us that . Thus, for any constant and , there exists a positive constant such thatTherefore, according to (7), for , one hasNo matter how large the is, (38) belongs to one of the following formulas:Applying the variation of constants formula to (39) yieldsFor any and the arbitrariness of , the right side of (40) tends to 1 when goes to infinity; then, it haswhich implies thatRecalling the assertion in Lemma 1 and the fact that , the conclusion that . can be obtained.

*Remark 1. *(1)From the first condition above in Theorem 2, we can see that if the intensity of stochastic perturbation is sufficiently large, is sure to work; then, the disease will be extinct, which shows that the stochastic perturbation has an important influence on the model. When the intensity of stochastic perturbation is small, the disease will still be extinct if the second condition is satisfied.(2)We can see from the expressions of (16) and (27) that ; thus, if , then , which means that stochastically asymptotically stability in the large will also make the disease go extinct.

##### 4.2. Permanence of Disease

Next, we move forward to analyze the conditions of disease persistence. First of all, a definition about persistence is given.

*Definition 1. *The disease in model (2) is called persistent in the mean if there exists a constant such that

Theorem 3. *Assume that is the solution to model (2) with initial value and . Ifwhere , then the disease will be persistent in the mean.*

*Proof. *We prove this theorem in two steps. First, let us prove that the following inequality holds true for a certain positive constant :where .

It is clear that , andWe can see easily that, for sufficiently large constant , ; then, from the monotone increasing property of , there exists a constant , for , , and all . Next, we prove that for , , and all . According to the expression of ,For sufficiently large constant , for . Now, inequality (45) has been proved.

In what follows, we will demonstrate our conclusion in the theorem. From the first equation of model (2), we know thatAccording to the result of (31), we obtain thatMaking use of the result of (49), integrating for the both sides of from 0 to and dividing by , one hasUsing the boundedness of , , and Lemma 4 along with the ergodic property of Markov chain , we take the limit inferior for both sides; then,Therefore, if (44) is satisfied, then , which means the disease will be persistent in the mean.

The proof is completed.

Corollary 1. *From the expressions of in (27) and in (44), we have . holds if and only if , , , and in the formulas are fixed constants.*

*Proof. *As can be seen from the above proof, if and only if for every , holds true.

*Remark 2. *(1) means that Theorems 2 and 3 are not in conflict. If , then , and the disease will die out. If , then , and the disease will be persistent.(2)If there is no regime-switching in model (2), i.e., there is only one environment, thencan be considered as the threshold of disease persistence and extinction in the model. We can see from formula (53) that will increase with the increase of contact coefficient . When , the disease will be persistent in the long run. Therefore, it will be one of the important ways to control infectious diseases to reduce the value of transmission coefficient by isolating the infected and limiting the people’s going out, which is widely used when SARS virus and new coronavirus pneumonia spread in China.

Due to the existence of regime-switching, the behavior of disease will have different phenomena. Examples 2 and 3 will reveal some interesting things.

#### 5. Examples and Simulations

In this section, some examples will be proposed and their numerical simulations are presented to verify our theoretical results above.

Let be a Markov chain taking values in the space with the transition rate matrix:

Hence, there exits two environments, say, Environment 1 and Environment 2, and its stationary distribution .

*Example 1. *First, we verify the results of Lemma 1 and Theorem 1. Assume that and ; then, the stationary distribution . Let , , , , , , , , , , , , , , , , , , , , and ; thus, , , and are satisfied for .

According to Lemma 1, will always hold, see Figure 1(a). In order to verify the stability of the model, we select two different sets of parameters. The parameters in set 1 are as above, and its trajectory is shown Figure 1(b). Parameters in the other set are the same except , , , and . Moreover, the initial values are different; let , , and , and its trajectory can be seen in Figure 1(c).

**(a)**

**(b)**

**(c)**

**(a)**

**(b)**

**(a)**

**(b)**

*Example 2. *Next, let us test Theorem 2. Since the parameters of the first conclusion can be selected from Example 1, we only verify the second conclusion. Assume that and , and let , , , , , , , , , and ; the other parameters are the same as those in Example 1. Then, and are satisfied, although in Environment 1. The data means that the disease will be persistent in Environment 1 (see Figure 2(a)), but it will go to extinction as a result of regime-switching, which shows the important role of Markovian Switching. The simulation can be seen in Figure 2(b).

*Example 3. *Finally, we verify Theorem 3. Let , , , , , , , , , , , , , , , , , and . By calculation, we can get while in Environment 1, which means the disease will die out in Environment 1 (see Figure 3(a)), but it will continue as a result of Markovian switching, see Figure 3(b).

#### 6. Conclusions

In this paper, we study the regime-switching SIRS model with the Beddington–DeAngelis incidence rate. We first prove that the model we discuss has a unique positive solution. Secondly, we give the conditions of global stochastic asymptotic stability by the Lyapunov method. Then, the thresholds of disease behavior are given by some useful inequality technique. Finally, some examples are given and numerical simulations are presented to confirm our conclusions.

In addition, some more topics are worth further studying. More complex models can be considered to better reflect the actual situation, for example, the model with more general incidence rate, more perturbations such as jump noise, or the model with the effect of time delay. We will keep these for our future research.

#### Data Availability

The data used to support the findings of this study are included within the article.

#### Conflicts of Interest

The authors declare that they have no conflicts of interest.

#### Acknowledgments

This work was supported by the Science and Technology projects of Jiangxi Provincial Education Department (nos. GJJ181105 and GJJ191145) and National Natural Science Foundation of China (no. 11661065).