# Modeling the influence of Twitter in reducing and increasing the spread of influenza epidemics

## Abstract

A more realistic mathematical influenza model including dynamics of Twitter, which may reduce and increase the spread of influenza, is introduced. The basic reproductive number is derived and the stability of the steady states is proved. The existence of Hopf bifurcation are also demonstrated by analyzing the associated characteristic equation. Furthermore, numerical simulations and sensitivity analysis of relevant parameters are also carried out. Our results show that the impact posed by the negative information of Twitter is not significant than the impact posed by the positive information of Twitter on influenza while the impact posed by the negative information of Twitter on the influenza virus is still extraordinary.

## Background

Influenza has always a far-reaching influence on our lives, and many attempts have been made to investigate realistic mathematical models for researching the transmission dynamics of infectious diseases (Cui et al. 2008b; Xiao et al. 2013; Sahua and Dhara 2015; Wang et al. 2015; Kaur et al. 2014; Misra et al. 2011; Liu and Cui 2008; Cui et al. 2008a; Pawelek et al. 2014; Liu et al. 2007). Cui et al. (2008) proposed a SIS-type model to explore the influence of media coverage on the dissemination of emerging or reemerging infectious disease, and used a standard incidence $$\frac{{\beta SI}}{{S + I}}$$ between susceptible individuals and infected individuals. Their results indicated that media coverage was critical for educating people in understanding the possibility of being infected by the disease. Xiao et al. (2013) developed a model with media coverage by including a piecewise smooth incidence rate to show that the reduction factor due to media coverage relies on both the number of cases and the rate of changes in case number. They demonstrated that the media impact resulted in a lower size of outbreak and delayed the epidemic peak. Liu and Cui (2008) considered a epidemic model with non-linear contact rate, $$\beta (I) = {\beta _1} - {\beta _2}\frac{I}{{m + I}}$$, where $$\beta _1$$ is the contact rate before media alert, and $$\beta (I)$$ is the contact rate after media alert, and studied the basic reproductive number, the existence and stability of two equilibria. They showed that media and education played a crucial role in mounting infection awareness among the residents. An exponential incidence $$\beta (I) = \mu {e^{ - mI}}$$ was applied to develop a three dimensional compartmental model Cui et al. (2008a). They analyzed dynamical behavior of the model; permanent oscillations are generated by a Hopf bifurcation. Pawelek et al. (2014) developed a simple mathematical model including the dynamics of “tweets”, and studied dynamics of the model. They showed that Twitter may serve as a good indicator of seasonal influenza epidemics. Liu et al. (2007) assumed that the total number of susceptible remains relatively unchanged as a result of the outbreak duration is extremely short, and incorporated a simple nonlinear incidence function $${\beta _0} = \beta {e^{ - {\alpha _1}E - {\alpha _2}I - {\alpha _3}H}}$$, where H denotes hospitalized individuals. They illustrated the multiple outbreaks or the sustained periodic oscillations of emerging infectious diseases owing to the psychological impact.

It is well known that everything has two sides in reality. Massive media coverage is no exception. Alowibdi et al. (2015) focused specifically on the detection of inconsistent information involving user gender and user location; they shown that lying contained misleading, inconsistent, or false and deceptive information in online social networks is quite widespread. Roshanaei and Mishra (2015) compared the patterns of tweeting, replying and following by analysis of social engagement and psychological process in the positive and negative networks; their findings not only predicted positive and negative users but also provided the best recommendation for negative users through online social media. Unfortunately, most of the aforementioned model (Cui et al. 2008b; Sahua and Dhara 2015; Wang et al. 2015; Kaur et al. 2014; Misra et al. 2011; Liu and Cui 2008; Cui et al. 2008a; Pawelek et al. 2014; Liu et al. 2007) ignored the negative role of the media coverage. It has been observed that communications that people received or send through Twitter mislead the public to do some irrational things as well as benefited some people (Tiernan 2014; Fu and Shen 2014; Jin et al. 2014; Dugue and Perez 2014). Inspired by the documents (Cui et al. 2008a; Liu and Cui 2008; Liu et al. 2007; Pawelek et al. 2014), we introduce a more realistic mathematical influenza model, which incorporates the effects of Twitter in reducing and increasing the spread of influenza epidemics.

The rest of the paper is organized as follows: In “Basic properties” section, a more realistic $$SEI{T_1}{T_2}$$ model is formulated, the basic reproductive number and stability of equilibria are also obtained. In “Analysis of the model” section, the Hopf bifurcation is studied. Numerical simulations are carried out in “Numerical simulation” section. Sensitivity analysis is conducted in “Sensitivity analysis” section. Some discussions and conclusions are given in the last section.

## Basic properties

### System description

The total population is divided into three compartments: S(t), the number of susceptible individuals; E(t), the number of individuals exposed to the infected but not infectious; I(t), the infected who are infectious. All of them may tweet about influenza at the rates $$\mu _1$$, $$\mu _2$$, and $$\mu _3$$, respectively, during an epidemic season. $$T_1(t)$$ and $$T_2(t)$$ represent the number of tweets that all of them provide positive and negative information about influenza at time t, respectively. Our model is governed by the following system of five differential equations. A transfer diagram of our model is shown in Fig. 1 and the parameters description of our model are presented in Table 1.

The transfer diagram leads to the following system of ordinary differential equations:

\begin{aligned} \frac{{dS(t)}}{{dt}} &= - \beta SI{e^{ - \alpha {T_1} + \delta {T_2}}},\\ \frac{{dE(t)}}{{dt}}&= \beta SI{e^{ - \alpha {T_1} + \delta {T_2}}} - \rho E,\\ \frac{{dI(t)}}{{dt}}&= \rho E - \gamma I,\\ \frac{{d{T_1}(t)}}{{dt}}&= p{\mu _1}S + p{\mu _2}E + p{\mu _3}I - \tau {T_1},\\ \frac{{d{T_2}(t)}}{{dt}}&= q{\mu _1}S + q{\mu _2}E + q{\mu _3}I - \tau {T_2}, \end{aligned}

where all the parameters are positive constants and $$\rho$$ is the transmission coefficient from the exposed individuals to the infectious individuals, $$\gamma$$ is the recover rate that infectious individuals gain permanent immunity to that strain of influenza, p is the ratio that individuals may provide positive information about influenza during an epidemic season. q is the ratio that individuals may provide negative information about influenza during an epidemic season. For simplicity, we assume that the ratio of positive/negative information for all three groups is same, that is, p and q. $$\mu _{i},i = 1,2,3$$ is the rate that susceptible individuals, exposed individuals, and infectious individuals may tweet about influenza during an epidemic season, respectively. $$\tau$$ is the rate that tweets become outdated in consequence of tweets that appeared earlier are less visible and have less effect on the public, and $$\beta$$ is the disease transmission coefficient. The transmission coefficient $$\beta$$ is reduced by a factor $${e^{ - \alpha {T_1}}}$$ owing to the behavior change of the public after reading positive tweets about influenza, where $$\alpha$$ determines how effective the disease positive twitter information can reduce the transmission coefficient, and is increased by a factor $${e^{ \delta {T_2}}}$$ due to the behavior change of the public after reading negative tweets about influenza, where $$\delta$$ determines how effective the disease negative twitter information can increase the transmission coefficient. Since we only consider the disease outbreak during extremely short time, we neglect the natural death and birth rates and further assume that the number of susceptible people is relatively constant (Liu et al. 2007). Therefore, the above system can be reduced as follows:

\begin{aligned} \frac{{dE(t)}}{{dt}}&= \beta SI{e^{ - \alpha {T_1} + \delta {T_2}}} - \rho E,\nonumber \\ \frac{{dI(t)}}{{dt}}&= \rho E - \gamma I,\nonumber \\ \frac{{d{T_1}(t)}}{{dt}}&= p{\mu _1}S + p{\mu _2}E + p{\mu _3}I - \tau {T_1},\nonumber \\ \frac{{d{T_2}(t)}}{{dt}}&= q{\mu _1}S + q{\mu _2}E + q{\mu _3}I - \tau {T_2}. \end{aligned}
(1)

### The basic reproductive number

According to system (1), we can easily obtain the basic reproductive number $$R_0$$ by using the the next-generation method (Driessche and Watmough 2002). Here, we have the following matrix of new infection $${\mathcal {F}}(x)$$, and the matrix of transfer $${\mathcal {V}}(x)$$.

$${E_0} = (0,0,{T_1}^0,{T_1}^0) = \left( 0,0,\frac{{p{\mu _1}S}}{\tau },\frac{{q{\mu _1}S}}{\tau }\right).$$
(2)

Let $$x=(E,\;I,\;T_1,\;T_2)^{T}$$, then system (1) can be written as

$$\frac{dx}{dt}={\mathcal {F}}(x)-\mathcal {V}(x),$$

where

\begin{aligned} {\mathcal {F}}(x) &= \left( \begin{array}{c} {\beta SI{e^{ - \alpha {T_1} + \delta {T_2}}}}\\ 0\\ 0\\ 0\end{array} \right) ,\\ {\mathcal {V}}(x) &= \left( \begin{array}{c} {\rho E}\\ {\gamma I - \rho E}\\ {\tau {T_1} - p{\mu _1}S - p{\mu _2}E - p{\mu _3}I}\\ {\tau {T_2} - q{\mu _1}S - q{\mu _2}E - q{\mu _3}I} \end{array} \right) . \end{aligned}

The Jacobian matrices of $${\mathcal {F}}(x)$$ and $${\mathcal {V}}(x)$$ at the disease-free equilibrium $$E_{0}$$ are, respectively,

\begin{aligned} &D{\mathcal {F}}(E_{0}) = \left( \begin{array}{cccc} 0&{}{\beta S{e^{ - \alpha {T_1}^0 + \delta {T_2}^0}}}&{}0&{}0\\ 0 &{} 0 &{} 0 &{} 0\\ 0 &{} 0 &{} 0 &{} 0\\ 0 &{} 0 &{} 0 &{} 0\\ \end{array} \right) ,\qquad D{\mathcal {V}}(E_{0})=\left( \begin{array}{cccc} \rho &{}0&{}0&{}0\\ { - \rho }&{}\gamma &{}0&{}0\\ { - p{\mu _2}}&{}{ - p{\mu _3}}&{}\tau &{}0\\ { - q{\mu _2}}&{}{ - q{\mu _3}}&{}0&{}\tau \end{array} \right) ,\\ & D{\mathcal {V}}(E_{0})^{-1} = {} \left( \begin{array}{cccc} {\frac{1}{\rho }}&{}0&{}0&{}0\\ {\frac{1}{\gamma }}&{}{\frac{1}{\gamma }}&{}0&{}0\\ {\frac{{p{\mu _2}}}{{\tau \rho }} + \frac{{p{\mu _3}}}{{\tau \gamma }}}&{}{\frac{{p{\mu _3}}}{{\tau \gamma }}}&{}{\frac{1}{\tau }}&{}0\\ {\frac{{q{\mu _2}}}{{\tau \rho }} + \frac{{q{\mu _3}}}{{\tau \gamma }}}&{}{\frac{{q{\mu _3}}}{{\tau \gamma }}}&{}0&{}{\frac{1}{\tau }} \end{array} \right) . \end{aligned}

The basic reproductive number, denoted by $$R_{0}$$ is thus given by

$$R_{0}=\frac{{\beta S}}{\gamma }{e^{ - \alpha {T_1}^0 + \delta {T_2}^0}},$$
(3)

where

$${T_1}^0 = \frac{{p{\mu _1}S}}{\tau },\quad {T_2}^0 = \frac{{q{\mu _1}S}}{\tau }.$$
(4)

### Theorem 1

For the system ( 1 ), there exist the following two equilibria:

1. 1.

System (1) always exists the disease-free equilibrium $${E_0} = (0,0,{T_1}^0,{T_2}^0)$$, where $${T_1}^0$$ and $${T_2}^0$$ are given by (4).

2. 2.

If $$R_{0}>1$$ and $$\alpha p - \delta q > 0$$, there exists the endemic equilibrium $${E_*} = ({E^*},{I^*},{T_1}^*,{T_2}^*)$$. Where $${E_*} = ({E^*},{I^*},{T_1}^*,{T_2}^*)$$ satisfies the following equalities:

\begin{aligned} {E^*} &= \frac{{\gamma \rho \ln ({R_0})}}{{(\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3})}},\nonumber \\ {I^*} &= \frac{{\tau \rho \ln ({R_0})}}{{(\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3})}},\nonumber \\ {T_1}^* &= \frac{{p\ln ({R_0})}}{{(\alpha p - \delta q)}} + {T_1}^0,\nonumber \\ {T_2}^* &= \frac{{q\ln ({R_0})}}{{(\alpha p - \delta q)}} + {T_2}^0. \end{aligned}
(5)

### Proof

1. 1.

It is easy to know that system (1) always exists the disease-free equilibrium $$E_{0}=(0,0,\frac{{p{\mu _1}S}}{\tau },\frac{{q{\mu _1}S}}{\tau })$$.

2. 2.

By letting the right-hand sides of (1) equal zero, namely,

\begin{aligned}&\beta SI{e^{ - \alpha {T_1} + \delta {T_2}}} - \rho E = 0,\nonumber \\&\rho E - \gamma I = 0,\nonumber \\&p{\mu _1}S + p{\mu _2}E + p{\mu _3}I- \tau {T_1} = 0,\nonumber \\&q{\mu _1}S + q{\mu _2}E + q{\mu _3}I - \tau {T_2} = 0. \end{aligned}
(6)

let $$(E,I,{T_1},{T_2}) = ({E^*},{I^*},{T_1}^*,{T_2}^*)$$ satisfy the equality (6), that is,

\begin{aligned}&\beta S{I^*}{e^{ - \alpha {T_1}^* + \delta {T_2}^*}} - \rho {E^*} = 0,\nonumber \\&\rho {E^*} - \gamma {I^*} = 0,\nonumber \\&p{\mu _1}S + p{\mu _2}{E^*} + p{\mu _3}{I^*} - \tau {T_1}^* = 0,\nonumber \\&q{\mu _1}S + q{\mu _2}{E^*} + q{\mu _3}{I^*} - \tau {T_2}^* = 0. \end{aligned}
(7)

From the first and the second equation of (7), we obtain

\begin{aligned} \alpha {T_1}^* - \delta {T_2}^* = \ln \left( \frac{{\beta S}}{\gamma }\right) . \end{aligned}
(8)

By adding the third and the fourth equation of (7), we get

\begin{aligned} \alpha \frac{p}{\tau }\left( {\mu _1}S + {\mu _2}{E^*} + {\mu _3}\frac{\rho }{\gamma }{E^*}\right) - \delta \frac{q}{\tau }\left( {\mu _1}S + {\mu _2}{E^*} + {\mu _3}\frac{\rho }{\gamma }{E^*}\right) = \ln \left( \frac{{\beta S}}{\gamma }\right) . \end{aligned}
(9)

From this we have

\begin{aligned} {E^*} = \frac{{\ln ({R_0})}}{{\frac{{{\mu _2}}}{\tau }(\alpha p - \delta q) + \frac{{\rho {\mu _3}}}{{\tau \gamma }}(\alpha p - \delta q)}} = \frac{{\tau \gamma \ln ({R_0})}}{{(\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3})}}. \end{aligned}
(10)

At the same time, we obtain

\begin{aligned} {I^*} = \frac{\rho }{\gamma }{E^*} = \frac{{\tau \rho \ln ({R_0})}}{{(\alpha p - \delta q)\left( \gamma {\mu _2} + \rho {\mu _3}\right) }}. \end{aligned}
(11)

By substituting (10) and (11) into the third and the fourth equation of (7), we have

\begin{aligned}&p\left[ {\mu _1}S + {\mu _2}\frac{{\tau \gamma \ln ({R_0})}}{{(\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3})}} + {\mu _3}\frac{\rho }{\gamma }\frac{{\tau \gamma \ln ({R_0})}}{{(\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3})}}\right] = \tau {T_1}^*,\\&q\left[ {\mu _1}S + {\mu _2}\frac{{\tau \gamma \ln ({R_0})}}{{(\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3})}} + {\mu _3}\frac{\rho }{\gamma }\frac{{\tau \gamma \ln ({R_0})}}{{(\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3})}}\right] = \tau {T_2}^*. \end{aligned}

Simplifying the above equations, we can yield

\begin{aligned} {T_1}^* &= \frac{p}{\tau }\left[ {\mu _1}S + {\mu _2}\frac{{\tau \ln ({R_0})(\gamma {\mu _2} + \rho {\mu _3})}}{{(\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3})}}\right] = \frac{p}{\tau }\left[ {\mu _1}S + {\mu _2}\frac{{\tau \ln ({R_0})}}{{(\alpha p - \delta q)}}\right] = \frac{{p\ln ({R_0})}}{{(\alpha p - \delta q)}} + {T_1}^0,\\ {T_2}^* &= {} \frac{q}{\tau }\left[ {\mu _1}S + {\mu _2}\frac{{\tau \ln ({R_0})(\gamma {\mu _2} + \rho {\mu _3})}}{{(\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3})}}\right] = \frac{q}{\tau }\left[ {\mu _1}S + {\mu _2}\frac{{\tau \ln ({R_0})}}{{(\alpha p - \delta q)}}\right] = \frac{{q\ln ({R_0})}}{{(\alpha p - \delta q)}} + {T_1}^0. \end{aligned}

So we can obtain endemic equilibrium $${E_*} = ({E^*},{I^*},{T_1}^*,{T_2}^*)$$. It is clear that the endemic equilibrium exists if and only if $$R_{0}>1$$ and $$\alpha p - \delta q > 0$$. This completes the proof of Theorem 1. $$\square$$

## Analysis of the model

In this section we will discuss the stability of equilibria of the system (1).

### Theorem 2

If $$R_{0} < 1$$ and $$\alpha p - \delta q \ge 0$$, then the disease-free equilibrium $$E_{0}$$ is globally asymptotically stable.

### Proof

The characteristic equation of the linearization of system (1) at the disease-free equilibrium $$E_{0}$$ is

\begin{aligned} \left| { {\begin{array}{cccc} { - \rho - \lambda }&{}{\beta S{e^{ - \alpha {T_1}^0 + \delta {T_2}^0}}}&{}0&{}0\\ \rho &{}{ - \gamma - \lambda }&{}0&{}0\\ {p{\mu _2}}&{}{p{\mu _3}}&{}{ - \tau - \lambda }&{}0\\ {q{\mu _2}}&{}{q{\mu _3}}&{}0&{}{ - \tau - \lambda } \end{array}} } \right| = 0, \end{aligned}
(12)

where $$\lambda$$ is the eigenvalue. Two eigenvalues are $$-\tau$$ and the other are determined by

$$(\lambda + \rho )(\lambda + \gamma ) - \rho \beta S{e^{ - \alpha {T_1}^0 + \delta {T_2}^0}} = 0.$$

According to (3), the above equation can be rewritten as

$${\lambda ^2} + (\rho + \gamma )\lambda + \rho \gamma (1 - {R_0}) = 0.$$
(13)

If $$R_{0}<1$$, then we have

\begin{aligned} {\lambda _1} &= {\lambda _2} = - \tau ,\\ {\lambda _3} + {\lambda _4} & = - (\rho + \gamma ) < 0,\\ {\lambda _3}{\lambda _4} &= \rho \gamma (1 - {R_0}) > 0. \end{aligned}

It follows from the above equation that all the eigenvalues of (12) are negative. Therefore $$E_{0}$$ is a locally asymptotically stable equilibrium of (1). We define a Lyapunov function

$$V(t) = E(t) + I(t).$$

It is obvious that $$V(t) \ge 0$$ and the equality holds if and only if $$E(t) = I(t) = 0$$. From the third and the fourth equation of (1), we have

\begin{aligned} \frac{{d(\alpha {T_1} - \delta {T_2})}}{{dt}} &= \alpha (p{\mu _1}S + p{\mu _2}E + p{\mu _3}I- \tau {T_1}) - \delta (q{\mu _1}S + q{\mu _2}E + q{\mu _3}I - \tau {T_2})\\ &= {\mu _1}S(\alpha p - \delta q) + {\mu _2}E(\alpha p - \delta q) + {\mu _3}I(\alpha p - \delta q) - \tau (\alpha {T_1} - \delta {T_2}). \end{aligned}

When $$\alpha p - \delta q \ge 0 (\mathrm{i.e.},\alpha {T_1} - \delta {T_2}\ge 0)$$, we yield

$$\frac{{d(\alpha {T_1} - \delta {T_2})}}{{dt}} \ge {\mu _1}S(\alpha p - \delta q) - \tau (\alpha {T_1} - \delta {T_2}).$$
(14)

Using the result of differential inequalities (Lakshmikantham et al. 1988), we obtain

\begin{aligned} \alpha {T_1} - \delta {T_2} &\ge (\alpha {T_1}^0 - \delta {T_2}^0){e^{\int _0^t {( - \tau )} du}} + \int _0^t {{\mu _1}S(\alpha p - \delta q)} {e^{\int _v^t {( - \tau )} du}}dv \nonumber \\ &= (\alpha {T_1}^0 - \delta {T_2}^0){e^{ - \tau t}} + \frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)(1 - {e^{ - \tau t}}) \nonumber \\ &= \left[ (\alpha {T_1}^0 - \delta {T_2}^0) - \frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)\right] {e^{ - \tau t}} + \frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q). \end{aligned}
(15)

Therefore, $$\alpha {T_1} - \delta {T_2} \ge \frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q) = \alpha {T_1}^0 - \delta {T_2}^0$$, for all $$t \ge 0$$. Differentiating V(t) and using $$\beta S{e^{ - \alpha {T_1}^0 + \delta {T_2}^0}} = \gamma {R_0}$$, we have

\begin{aligned} \frac{{dV(t)}}{{dt}} &= \frac{{dE(t)}}{{dt}} + \frac{{dI(t)}}{{dt}}\\ & = \beta SI{e^{ - \alpha {T_1} + \delta {T_2}}} - \gamma I \\ &= I(\gamma {R_0} - \gamma )\\ &= \gamma I({R_0} - 1) \le 0. \end{aligned}

It follows that V(t) is bounded and non-increasing. Therefore, $$\mathop {\lim }\nolimits_{t \rightarrow \infty } V(t)$$ exists. Note that $$\frac{{dV(t)}}{{dt}} = 0$$ if and only if $$E(t) = I(t) = 0$$, $$T_1={T_1}^0$$ and $$T_2={T_2}^0$$. By LaSalle Invariance Principle (LaSalle 1987), the disease-free equilibrium $$E_{0}$$ is globally attracting when $$\alpha p - \delta q \ge 0$$ and $${R_0} < 1$$. Together with the local asymptotic stability, we show that $$E_{0}$$ is globally asymptotically stable when $$\alpha p - \delta q \ge 0$$ and $${R_0} < 1$$. This completes the proof of Theorem 2. $$\square$$

### Remark 1

When $$R_{0} < 1$$ and $$\alpha p - \delta q < 0$$, globally asymptotically stability of the disease-free equilibrium $$E_{0}$$ is not been established. Figure 2b seems to support the idea that the disease-free equilibrium of system (1) is still global asymptotically stable even in this case.

### Theorem 3

The endemic equilibrium $${E_*}$$ is locally asymptotically stable if and only if one of the following statements is satisfied:

1. 1.

$$R_{0}>1$$, $$\alpha p - \delta q > 0$$, and $${\mu _3} \le {\mu _3}^*$$, where $${\mu _3}^* = \frac{{\rho + \tau }}{\rho }{\mu _2}$$;

2. 2.

$$R_{0}>1$$, $$\alpha p - \delta q > 0$$, $${\mu _3} > {\mu _3}^*$$, and $$\beta < min\{ {\beta ^*},{\beta ^{**}}\}$$, where $$\beta ^{*}$$ and $$\beta ^{**}$$ are given by (25) and (27), respectively.

### Proof

The characteristic equation of the linearization of system (1) at the endemic equilibrium $${E_*}$$ is

\begin{aligned} \left| { {\begin{array}{cccc} { - \rho - \xi }&{}{\beta S{e^{ - \alpha {T_1}^* + \delta {T_2}^*}}}&{}{ - \alpha \beta S{I^*}{e^{ - \alpha {T_1}^* + \delta {T_2}^*}}}&{}{\delta \beta S{I^*}{e^{ - \alpha {T_1}^* + \delta {T_2}^*}}}\\ \rho &{}{ - \gamma - \xi }&{}0&{}0\\ {p{\mu _2}}&{}{p{\mu _3}}&{}{ - \tau - \xi }&{}0\\ {q{\mu _2}}&{}{q{\mu _3}}&{}0&{}{ - \tau - \xi } \end{array}} } \right| = 0. \end{aligned}

Note that $$R_{0}=\frac{{\beta S}}{\gamma }{e^{ - \alpha {T_1}^0 + \delta {T_2}^0}}$$ , $${T_1}^* = \frac{{p\ln ({R_0})}}{{(\alpha p - \delta q)}} + {T_1}^0$$ and $${T_2}^* = \frac{{q\ln ({R_0})}}{{(\alpha p - \delta q)}} + {T_2}^0$$, we have

\begin{aligned} \beta S{e^{ - \alpha {T_1}^* + \delta {T_2}^*}} &= \beta S{e^{ - \alpha \left[ \frac{{p\ln ({R_0})}}{{\alpha p - \delta q}} + {T_1}^0\right] + \delta \left[ \frac{{q\ln ({R_0})}}{{\alpha p - \delta q}} + {T_2}^0\right] }} \\ &= \beta S{e^{ - \alpha {T_1}^0 + \delta {T_2}^0}}{e^{\frac{{ - \alpha p + \delta q}}{{\alpha p - \delta q}}\ln ({R_0})}} \\ &= \gamma {R_0}{e^{ - \ln ({R_0})}} \\&= \gamma . \end{aligned}

The corresponding characteristic equation becomes

\begin{aligned} \left| {{\begin{array}{cccc} { - \rho - \xi }&{}\gamma &{}{ - \alpha \gamma {I^*}}&{}{\delta \gamma {I^*}}\\ \rho &{}{ - \gamma - \xi }&{}0&{}0\\ {p{\mu _2}}&{}{p{\mu _3}}&{}{ - \tau - \xi }&{}0\\ {q{\mu _2}}&{}{q{\mu _3}}&{}0&{}{ - \tau - \xi } \end{array}} } \right| = 0. \end{aligned}

Simplifying the above determinant, so the characteristic equation about $${E_*}$$ can be rewritten as

$$P(\xi ) = {\xi ^4} + {a_1}{\xi ^3} + {a_2}{\xi ^2} + {a_3}\xi + {a_4},$$
(16)

where

$${a_1} = \rho + \gamma + 2\tau ,$$
(17)
\begin{aligned} {a_2} &= \gamma {I^*}{\mu _2}(\alpha p - \delta q) + {\tau ^2} + 2\tau (\rho + \gamma )\nonumber \\ &= \frac{{\gamma \rho \tau \ln ({R_0}){\mu _2}}}{{\gamma {\mu _2} + \rho {\mu _3}}} + {\tau ^2} + 2\tau (\rho + \gamma ), \end{aligned}
(18)
\begin{aligned} {a_3} &= \gamma {I^*}(\alpha p - \delta q)\left[ \rho {\mu _3} + (\tau + \gamma ){\mu _2}\right] + {\tau ^2}(\rho + \gamma )\nonumber \\&= \frac{{\gamma \rho \tau \ln ({R_0})}}{{\gamma {\mu _2} + \rho {\mu _3}}}\left[ \rho {\mu _3} + (\tau + \gamma ){\mu _2}\right] + {\tau ^2}(\rho + \gamma ), \end{aligned}
(19)
$${a_4} = \gamma {I^*}\tau (\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3}) = \gamma \rho {\tau ^2}\ln ({R_0}).$$
(20)

It is evident that $${a_i} > 0\,(i = 1,2,3,4)$$, when $${R_0} > 1$$. On the basis of the Routh–Hurwitz criteria (Murray 1998), we have

\begin{aligned} {a_1}{a_2} - {a_3} &= (\rho + \gamma + 2\tau )\left[ \gamma {I^*}{\mu _2}(\alpha p - \delta q) + {\tau ^2} + 2\tau (\rho + \gamma )\right] \\&\quad - \gamma {I^*}(\alpha p - \delta q)\left[ \rho {\mu _3} + (\tau + \gamma ){\mu _2}\right] - {\tau ^2}(\rho + \gamma )\\ &= \gamma {I^*}(\alpha p - \delta q)\left[ (\rho + \tau ){\mu _2} - \rho {\mu _3}\right] + {\tau ^2}(\rho + \gamma + 2\tau ) \\&\quad + 2\tau (\rho + \gamma )(\rho + \gamma + 2\tau ) - {\tau ^2}(\rho + \gamma )\\ &= \gamma {I^*}(\alpha p - \delta q)\left[ (\rho + \tau ){\mu _2} - \rho {\mu _3}\right] + 2\tau {(\rho + \gamma + \tau )^2}\\ &= \frac{{\gamma \rho \tau \ln ({R_0})}}{{\gamma {\mu _2} + \rho {\mu _3}}}\left[ (\rho + \tau ){\mu _2} - \rho {\mu _3}\right] + 2\tau {(\rho + \gamma + \tau )^2}\\ &= \frac{1}{{\gamma {\mu _2} + \rho {\mu _3}}}\{ \gamma \rho \tau \ln ({R_0})\left[ (\rho + \tau ){\mu _2} - \rho {\mu _3}\right] \\&\quad + 2\tau {(\rho + \gamma + \tau )^2}\gamma \rho \tau \ln ({R_0})\}. \end{aligned}

Denoting the expression $$\gamma \rho \tau \ln ({R_0})[(\rho + \tau ){\mu _2} - \rho {\mu _3}] + 2\tau {(\rho + \gamma + \tau )^2}\gamma \rho \tau \ln ({R_0})$$ by $$\varphi$$, one has

$${a_1}{a_2} - {a_3}=\frac{\varphi }{{\gamma {\mu _2} + \rho {\mu _3}}}.$$

Therefore $${a_1}{a_2} - {a_3}>0$$ if and only if $$\varphi >0$$. Moreover

\begin{aligned} {a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4} &= \left\{ \gamma {I^*}(\alpha p - \delta q)\left[ \rho {\mu _3} + (\tau + \gamma ){\mu _2}\right] + {\tau ^2}(\rho + \gamma )\right\} \nonumber \\&\quad \times \left\{ \gamma {I^*}(\alpha p - \delta q)\left[ (\rho + \tau ){\mu _2} - \rho {\mu _3}\right] + 2\tau {(\rho + \gamma + \tau )^2}\right\} \nonumber \\&\quad - {(\rho + \gamma + 2\tau )^2}\gamma {I^*}\tau (\alpha p - \delta q)(\gamma {\mu _2} + \rho {\mu _3}) \nonumber \\&= \left[ \rho {\mu _3} + (\tau + \gamma ){\mu _2}\right] \left[ (\rho + \tau ){\mu _2} - \rho {\mu _3}\right] {\left[ \gamma {I^*}(\alpha p - \delta q)\right] ^2} \nonumber \\&\quad + \left\{ \rho \tau {\mu _3}[{(\rho + \gamma )^2} - \tau (\rho + \gamma + 2\tau )] + \gamma \tau {\mu _2}[{(\rho + \gamma )^2} - 2{\tau ^2}] \right. \nonumber \\&\quad \left. + {\tau ^2}{\mu _2}\left[ 2{(\rho + \gamma + \tau )^2} + (\rho + \gamma )(\rho + \tau )\right] \right\} \left[ \gamma {I^*}(\alpha p - \delta q)\right] \nonumber \\&\quad + 2{\tau ^3}(\rho + \gamma ){(\rho + \gamma + \tau )^2}. \end{aligned}
(21)

Obviously, $${a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4} = 0$$ is an unary quadratic equation about $$\gamma {I^*}(\alpha p - \delta q)$$. With the help of Matlab, we can obtain two solutions of this unary quadratic equation, in other words,

\begin{aligned} {\left( {\gamma {I^*}(\alpha p - \delta q)} \right) _1}&= \frac{{ - (2\rho {\tau ^2} + 2\gamma {\tau ^2} + 2{\tau ^3})}}{{\rho {\mu _3} + (\gamma + \tau ){\mu _3}}}, \end{aligned}
(22)
\begin{aligned} {\left( {\gamma {I^*}(\alpha p - \delta q)} \right) _2}&= \frac{{\tau \left[ {{(\rho + \gamma )}^2} + \tau (\rho + \gamma )\right] }}{{\rho {\mu _3} - (\rho + \tau ){\mu _3}}}. \end{aligned}
(23)

Hence, the endemic equilibrium $${E_*}$$ is locally asymptotically stable if and only if $$\varphi >0$$ and $${a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4}>0$$.

Let $${\mu _3}^* = \frac{{\rho + \tau }}{\rho }{\mu _2}$$.

If $${\mu _3} \le {\mu _3}^* ({\rm i.e.,} (\rho + \tau ){\mu _2} - \rho {\mu _3} \ge 0 )$$, then $$\varphi >0$$.

For $${\mu _3} > {\mu _3}^* ({\rm i.e.,} (\rho + \tau ){\mu _2} - \rho {\mu _3} < 0 )$$. If $$\varphi >0$$, then the following inequality needs to be satisfied

\begin{aligned} ln({R_0}) < \frac{{2\tau {{(\rho + \gamma + \tau )}^2}(\gamma {\mu _2} + \rho {\mu _3})}}{{\gamma \rho \tau [\rho {\mu _3} - (\rho + \tau ){\mu _2}]}}. \end{aligned}
(24)

Note that $$R_{0}=\frac{{\beta S}}{\gamma }{e^{ - \alpha {T_1}^0 + \delta {T_2}^0}}$$, we solve $$\beta$$ and obtain $$\beta < {\beta ^*}$$, where

\begin{aligned} {\beta ^*} = \frac{\gamma }{S}{e^{\frac{{2{{(\rho + \gamma + \tau )}^2}(\gamma {\mu _2} + \rho {\mu _3})}}{{\gamma \rho \left[ \rho {\mu _3} - (\rho + \tau ){\mu _2}\right] }}}}{e^{\frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)}}. \end{aligned}
(25)

Therefore, we show that $${a_1}{a_2} - {a_3}>0$$ if (1) $${\mu _3} \le {\mu _3}^*$$ or (2) $${\mu _3} > {\mu _3}^*$$ and $$\beta < {\beta ^*}$$.

Next, we prove that if $${\mu _3} \le {\mu _3}^*$$, then $${a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4}>0$$ holds constantly. In fact, the right first term of (21) is nonegative constantly, namely,

\begin{aligned} \left[ \rho {\mu _3} + (\tau + \gamma ){\mu _2}\right] \left[ (\rho + \tau ){\mu _2} - \rho {\mu _3}\right] {\left[ \gamma {I^*}(\alpha p - \delta q)\right] ^2}\ge 0 \end{aligned}

We denote the right second term of (21) to be $$\psi [\gamma {I^*}(\alpha p - \delta q)]$$, where

\begin{aligned} \psi&= \rho \tau {\mu _3}\left[ {(\rho + \gamma )^2} - \tau (\rho + \gamma + 2\tau )\right] + \gamma \tau {\mu _2}\left[ {(\rho + \gamma )^2} - 2{\tau ^2}\right] \\&\quad + {\tau ^2}{\mu _2}\left[ 2{(\rho + \gamma + \tau )^2} + (\rho + \gamma )(\rho + \tau )\right] . \end{aligned}

Thanks to $${\mu _3} \le {\mu _3}^*$$, then $$\psi$$ is satisfied the following inequality

\begin{aligned} \psi \ge \tau \left\{ \rho {\mu _3}{(\rho + \gamma )^2} + 2\tau {\mu _2}\left[ {(\rho + \gamma )^2} + \tau (\rho + \gamma )\right] + \gamma {\mu _2}{(\rho + \gamma )^2}\right\} >0. \end{aligned}

Therefore, the right second term of (21) is negative constantly. Obviously, the right third term $$2{\tau ^3}(\rho + \gamma ){(\rho + \gamma + \tau )^2}$$ of (21) is also negative constantly. Taking the above fact into consideration, we get $${a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4}>0$$ holds constantly if $${\mu _3} \le {\mu _3}^*$$. Hence the statements (1) of Theorem 3 are proved.

For $${\mu _3} > {\mu _3}^*$$ and $$\beta < {\beta ^*}$$, if $${a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4}>0$$ holds, we must make $${\left( {\gamma {H^*}(\alpha p - \delta q)} \right) _2} < \frac{{\tau [{{(\rho + \gamma )}^2} + \tau (\rho + \gamma )]}}{{\rho {\mu _3} - (\rho + \tau ){\mu _3}}}$$ hold constantly.

In this case, the quadratic equation $${a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4} = 0$$ about $$\gamma {I^*}(\alpha p - \delta q)$$ is an opening down, and there are two unequal roots (positive and negative). Therefore, we need $${\gamma {I^*}(\alpha p - \delta q)} < \frac{{\tau [{{(\rho + \gamma )}^2} + \tau (\rho + \gamma )]}}{{\rho {\mu _3} - (\rho + \tau ){\mu _3}}}$$ is satisfied. Moreover, we can obtain $${a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4} > 0$$. From $${\gamma {I^*}(\alpha p - \delta q)} < \frac{{\tau [{{(\rho + \gamma )}^2} + \tau (\rho + \gamma )]}}{{\rho {\mu _3} - (\rho + \tau ){\mu _3}}}$$, we can get $$\frac{{\gamma \rho \tau \ln ({R_0})}}{{\gamma {\mu _2} + \rho {\mu _3}}} < \frac{{\tau [{{(\rho + \gamma )}^2} + \tau (\rho + \gamma )]}}{{\rho {\mu _3} - (\rho + \tau ){\mu _2}}}$$, that is to say,

\begin{aligned} \ln ({R_0}) < \frac{{\left[ {{(\rho + \gamma )}^2} + \tau (\rho + \gamma )\right] (\gamma {\mu _2} + \rho {\mu _3})}}{{\gamma \rho \left[ \rho {\mu _3} - (\rho + \tau ){\mu _2}\right] }}. \end{aligned}

It follows from the expression of $${R_0}$$ (see (3)) that

\begin{aligned} \ln \left( \frac{{\beta S}}{\gamma }\right) < \frac{{\left[ {{(\rho + \gamma )}^2} + \tau (\rho + \gamma )\right] (\gamma {\mu _2} + \rho {\mu _3})}}{{\gamma \rho \left[ \rho {\mu _3} - (\rho + \tau ){\mu _2}\right] }} + \alpha {T_1}^0 - \delta {T_2}^0. \end{aligned}

Simplifying the above inequality, we have

\begin{aligned} \beta < \frac{\gamma }{S}{e^{\frac{{\left[ {{(\rho + \gamma )}^2} + \tau (\rho + \gamma )\right] (\gamma {\mu _2} + \rho {\mu _3})}}{{\gamma \rho \left[ \rho {\mu _3} - (\rho + \tau ){\mu _2}\right] }}}}{e^{\frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)}}. \end{aligned}
(26)

Now, we rewritten inequality (26) as $$\beta <\beta ^{**}$$, where

\begin{aligned} \beta ^{**}=\frac{\gamma }{S}{e^{\frac{{\left[ {{(\rho + \gamma )}^2} + \tau (\rho + \gamma )\right] (\gamma {\mu _2} + \rho {\mu _3})}}{{\gamma \rho \left[ \rho {\mu _3} - (\rho + \tau ){\mu _2}\right] }}}}{e^{\frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)}}. \end{aligned}
(27)

Furthermore, we have $${a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4}>0$$ holds, if $${\mu _3} > {\mu _3}^*$$, $$\beta < {\beta ^*}$$ and $$\beta <\beta ^{**}$$, where $$\beta ^{*}$$ and $$\beta ^{**}$$ are given by equality (25) and equality (27) respectively. Owing to $$R_{0}>1$$, combining with (20), we can obtain $$a_4>0$$. Thus we have $${a_3}{a_4}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4^2} > 0$$ if $${a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4} > 0$$. From Routh-Hurwitz criteria (Murray 1998), we know the endemic equilibrium is locally asymptotically stable. This completes the proof of the statements (2) of Theorem 3. $$\square$$

### Theorem 4

A Hopf bifurcation occurrs when $$\beta$$ increases and the curve $${\beta ^{**}}$$ is crossed, where $${\beta ^{**}}$$ is defined in equation (26).

### Proof

Note that two eigenvalues of the fourth degree characteristic polynomial (16) are always negative. To observe how the real parts of the other two eigenvalues change their signs, we check the transversality condition of the Hopf bifurcation. Assume $$P(\xi )$$ has two real roots x, y and a pair of complex roots $$a \pm bi$$, where $$x<0,y<0$$ and $$a,b \in R$$. We yield

\begin{aligned} P(\xi )&= (\xi - x)(\xi - y)[\xi - (a + bi)][\xi - (a - bi)]\\&= [{\xi ^2} - (x + y)\xi + xy][{\xi ^2} - 2a\xi + ({a^2} + {b^2})]\\&= {\xi ^4} - (2a + x + y){\xi ^3} + \left[ ({a^2} + {b^2}) + xy + 2a(x + y)\right] {\xi ^2}\\&\quad- \left[ (x + y)({a^2} + {b^2}) + 2axy\right] \xi + xy({a^2} + {b^2}). \end{aligned}

Taking equation (16) into consideration, we obtain

\begin{aligned} {a_1}&= - (2a + x + y),\\ {a_2}&= ({a^2} + {b^2}) + xy + 2a(x + y),\\ {a_3}&= - \left[ (x + y)({a^2} + {b^2}) + 2axy\right] ,\\ {a_4}&= xy({a^2} + {b^2}), \end{aligned}

where $${a_i} > 0\,(i = 1,2,3,4)$$ are given in equations (17)–(20). Now we investigate the case when $$P(\xi )=0$$ has a pair of purely imaginary roots, $$\text{i.e.,}\,a=0$$. In this case, we get

\begin{aligned} {a_1} = - (x + y),\quad {a_2} = {b^2} + xy, \quad {a_3} = - (x + y){b^2}, \quad {a_4} = xy{b^2}. \end{aligned}

Thus, $${a_3}({a_1}{a_2} - {a_3}) - {a_1}^2{a_4} = 0$$, which leads to $$\beta = {\beta ^{**}}$$. Therefore, the occurrence of a pair of purely imaginary roots corresponds to the threshold curve $$\beta = {\beta ^{**}}$$. Substituting $$a+bi$$ into the characteristic equation (16), we yield $$P(a + bi) = 0$$. Thus, $$Re[P(a+bi)]=0$$, where Re denotes the real part of a complex number. Calculating $$Re[P(a+bi)]=0$$, we have

\begin{aligned} \Phi&= \mathrm{Re}\left[ {(a + bi)^4} + {a_1}{(a + bi)^3} + {a_2}{(a + bi)^2} + {a_3}(a + bi) + {a_4}\right] \nonumber \\&= {a^4} - 6{a^2}{b^2} + {b^4} + {a_1}({a^3} - 3a{b^2}) + {a_2}({a^2} - {b^2}) + {a_3}a + {a_4} \nonumber \\&= {a^4} - 6{a^2}{b^2} + {b^4} + {a_1}{a^3} - 3{a_1}a{b^2} + {a_2}{a^2} - {a_2}{b^2} + {a_3}a + {a_4} \nonumber \\&= 0. \end{aligned}
(28)

From (19) and (20), we know that $$a_3$$ and $$a_4$$ rely on $$\beta$$ due to $$R_0$$ accommodates $$\beta$$. Consequently, $$\Phi (a,\beta )=0$$ defines an implicit function $$a(\beta )$$ with the independent variable $$\beta$$. Differentiating $$\Phi$$ in regard to $$\beta$$, we have $$\frac{{\partial \Phi }}{{\partial \beta }} = 0$$, which leads to $$\frac{{\partial \Phi }}{{\partial a}}\frac{{\partial a}}{{\partial \beta }} + \frac{{\partial \Phi }}{{\partial \beta }} = 0$$. Thereby, $$\frac{{\partial a}}{{\partial \beta }} = - \frac{{\partial \Phi }}{{\partial \beta }}/\frac{{\partial \Phi }}{{\partial a}}$$.

Then, we decide the sign of $$\frac{{\partial a}}{{\partial \beta }}$$ along the curve $$\beta = {\beta ^{**}}$$. Noticing that $$a=0$$ and $${a_2} = {b^2} + xy$$ on the curve $$\beta = {\beta ^{**}}$$, and only $$a_2$$, $$a_3$$ and $$a_4$$ rely upon $$\beta$$. So we have

\begin{aligned} \frac{{\partial \Phi }}{{\partial \beta }}{|_{\beta = {\beta ^{**}}}}&= \left( {a^2}\frac{{\partial {a_2}}}{{\partial \beta }} - {b^2}\frac{{\partial {a_2}}}{{\partial \beta }} + a\frac{{\partial {a_3}}}{{\partial \beta }} + \frac{{\partial {a_4}}}{{\partial \beta }}\right) {|_{\beta = {\beta ^{**}}}} \nonumber \\&= \left( - {b^2}\frac{{\partial {a_2}}}{{\partial \beta }} + \frac{{\partial {a_4}}}{{\partial \beta }}\right) {|_{\beta = {\beta ^{**}}}} \nonumber \\&= \frac{{\gamma \rho \tau }}{{{\beta ^{**}}}}\left( \tau - \frac{{{b^2}{\mu _2}}}{{\gamma {\mu _2} + \rho {\mu _3}}}\right) . \end{aligned}
(29)

From (13) we can get

\begin{aligned} {\lambda _{3,4}} = \frac{{ - \left( \rho + \gamma \right) \pm \sqrt{4\rho \gamma (1 - {R_0}) - {{\left( \rho + \gamma \right) }^2}} i}}{2}. \end{aligned}

Further, we can easily obtain

\begin{aligned} {b^2} = \rho \gamma (1 - {R_0}) - \frac{{{{\left( \rho + \gamma \right) }^2}}}{4}. \end{aligned}
(30)

By substituting (30) into (29), we obtain

\begin{aligned} \frac{{\partial \Phi }}{{\partial \beta }}{|_{\beta = {\beta ^{**}}}}&= \frac{{\gamma \rho \tau }}{{{\beta ^{**}}}}\left( \tau - \frac{{{b^2}{\mu _2}}}{{\gamma {\mu _2} + \rho {\mu _3}}}\right) \\&= \frac{{\gamma \rho \tau }}{{{\beta ^{**}}(\gamma {\mu _2} + \rho {\mu _3})}}\left[ \tau (\gamma {\mu _2} + \rho {\mu _3}) - {b^2}{\mu _2}\right] \\&= \frac{{\gamma \rho \tau }}{{{\beta ^{**}}(\gamma {\mu _2} + \rho {\mu _3})}}\left[ \tau (\gamma {\mu _2} + \rho {\mu _3}) - \rho \gamma (1 - {R_0}){\mu _2} + \frac{{{{(\rho + \gamma )}^2}}}{4}{\mu _2}\right] > 0, \end{aligned}

and

\begin{aligned} \frac{{\partial \Phi }}{{\partial a}}{|_{\beta = {\beta ^{**}}}}&= \left( 4{a^3} - 12a{b^2} + 3{a_1}{a^2} - 3{a_1}{b^2} + 2{a_2}a + {a_3}\right) {|_{\beta = {\beta ^{**}}}}\\&= - 3{a_1}{b^2} + {a_3}\\&= 2(x + y){b^2} < 0(x,y < 0). \end{aligned}

Thus, we have

\begin{aligned} \frac{{\partial a}}{{\partial \beta }}\left| {_{\beta = {\beta ^{**}}}} = - \frac{{\partial \Phi }}{{\partial \beta }}/\frac{{\partial \Phi }}{{\partial a}}\right| {_{\beta = {\beta ^{**}}}} > 0. \end{aligned}

This show that a Hopf bifurcation occurs when $$\beta$$ increases and crosses the curve $$\beta = {\beta ^{**}}$$. The proof is completed. $$\square$$

## Numerical simulation

In this section, some numerical results of system (1) are presented for supporting the analytic results obtained above. Our part parameter values on the basis of available data. The incubation time for the 2009 H1N1 influenza pandemic was reported to be between 2 and 10 days with a mean of 6 days (Centers for Disease Control and Prevention (CDC) 2009; Tracht et al. 2011; Pawelek et al. 2014). Thereby, we assume that people in the exposed compartment move to the infectious compartment at a rate $$\rho =1/6 day^{-1}$$. The infectious period was estimated to be between 4 and 7 days with a mean of 5 days (Leekha et al. 2007; Tracht et al. 2011; Pawelek et al. 2014). Therefore, we choose the recovery rate to be $$\gamma =0.2 day^{-1}$$. The susceptible population size S is set to 1 million and initially 10 people get exposed to the disease (Tracht et al. 2011; Pawelek et al. 2014). The other parameters are chosen to illustrate the theoretical results.

In Fig. 2, we carry out numerical simulations to illustrate the results showed in Theorem 2. Figure 2a illustrates the positive information more than negative information (i.e., $$\alpha p - \delta q>0$$); the parameter values are $$\beta =0.0016 {\rm person}^{-1}\,{\rm day}^{-1}$$, $$\alpha =0.00011\,{\rm tweet}^{-1}$$, $$\delta =0.00019\,{\rm tweet}^{-1}$$, $$\rho =1/6\,{\rm day}^{-1}$$, $$\gamma = 0.2\,{\rm day}^{-1}$$, $$p=2/3$$, $$\mu _1=0.2\,{\rm day}^{-1}$$, $$\mu _2=0.4\,{\rm day}^{-1}$$, $$\mu _3=0.8\,{\rm day}^{-1}$$, $$\tau =0.2\,{\rm day}^{-1}$$, $$q=1/3$$, $$R_{0}=0.36$$. Figure 2b illustrates the negative information more than positive information (i.e., $$\alpha p - \delta q<0$$); the parameter values are $$\beta =0.00016\,{\rm person}^{-1}\,{\rm day}^{-1}$$, $$\alpha =0.000068\,{\rm tweet}^{-1}$$, $$\delta =0.00007\,{\rm tweet}^{-1}$$, $$\rho =1/6\,{\rm day}^{-1}$$, $$\gamma =0.3\, {\rm day}^{-1}$$, $$p=0.45$$, $$\mu _1=0.2\,{\rm day}^{-1}$$, $$\mu _2=0.4\,{\rm day}^{-1}$$, $$\mu _3=0.6\,{\rm day}^{-1}$$, $$\tau =0.2\,{\rm day}^{-1}$$, $$q=0.55$$, $$R_{0}=0.54$$. It should be observed, of course, that the disease-free equilibrium is globally asymptotically stable. However, we only theoretically prove the first case (Fig. 2a), which is consistent with our conclusion (Theorem 2); for the second case (Fig. 2b), we graphically elucidated the conclusion.

As is shown in the Figs. 3 and 4, we perform numerical simulations to illustrate the results showed in Theorem 3. Figure 3a describes a graph of the solution curve under the conditions of Theorem 2, and Fig. 3b reveals the phase diagram including E(t) and I(t) trajectories under the conditions of Theorem 3. For the purpose of simplicity, we assume $$\mu _1=\mu _2=0$$, and $$\mu _3>0$$; namely, only infectious individuals receive or send positive and negative information about influenza. It can be seen from the Fig. 3a that the results of numerical simulation fit in with the results of the theoretical analysis. Namely, the endemic equilibrium $${E_*}$$ is locally asymptotically stable when $$R_{0}>1$$, $$\alpha p - \delta q > 0$$ and $${\mu _3} \le {\mu _3}^*$$. Figure 4 shows that the endemic equilibrium $$E^{*}$$ is locally asymptotically stable when $$R_{0}>1$$ , $${\mu _3}>{\mu _3}^*$$, and $$\beta <\beta ^{**}$$,

The Fig. 5a–d give information that solution curves of system (1) performs a sustained periodic oscillation and phase trajectories approaches limit cycles. This is not surprising because theoretical derivation achieves the same goal as well. Biologically speaking, the phenomenon sustained periodic oscillation is enforced by unevenly alternating of the positive and negative information during an outbreak of epidemic flu.

## Sensitivity analysis

In this section, we perform sensitivity analysis of reproduction number $$R_0$$ and compare the effects of several important parameters about Twitter for infectious individuals. To see the effect of $$\beta$$, $$\alpha$$, $$\delta$$, p, q, and $$\tau$$ on $$R_{0}$$, we note that

\begin{aligned} \frac{{\partial {R_0}}}{{\partial {\mu _1}}}&= - \frac{{\beta {S^2}}}{{\tau \gamma }}(\alpha p - \delta q){e^{ - \frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)}}, \end{aligned}
(31)
\begin{aligned} \frac{{\partial {R_0}}}{{\partial \tau }}&= \frac{{{\mu _1}\beta {S^2}}}{{\gamma {\tau ^2}}}(\alpha p - \delta q){e^{ - \frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)}}, \end{aligned}
(32)
\begin{aligned} \frac{{\partial {R_0}}}{{\partial \beta }}&= \frac{S}{\gamma }{e^{ - \frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)}}, \end{aligned}
(33)
\begin{aligned} \frac{{\partial {R_0}}}{{\partial \gamma }}&= - \frac{{\beta S}}{{{\gamma ^2}}}{e^{ - \frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)}}, \end{aligned}
(34)
\begin{aligned} \frac{{\partial {R_0}}}{{\partial \alpha }}&= - \frac{{p{\mu _1}\beta {S^2}}}{{\gamma \tau }}{e^{ - \frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)}}, \end{aligned}
(35)
\begin{aligned} \frac{{\partial {R_0}}}{{\partial \delta }}&= \frac{{q{\mu _1}\beta {S^2}}}{{\gamma \tau }}{e^{ - \frac{{{\mu _1}S}}{\tau }(\alpha p - \delta q)}}. \end{aligned}
(36)

Figure 6a illustrates the relationship between the basic reproductive number $$R_0$$ and $$\mu _1$$. According to Eq. (31), if $$\frac{{\partial {R_0}}}{{\partial {\mu _1}}}>0$$ (i.e. $$\alpha p - \delta q<0$$), then $$R_0$$ increases as $$\mu _1$$ increases, and if $$\frac{{\partial {R_0}}}{{\partial {\mu _1}}}<0$$ (i.e. $$\alpha p - \delta q>0$$), then $$R_0$$ decreases as $$\mu _1$$ increases. Figure 6b illustrates the relationship between the basic reproductive number $$R_0$$ and $$\tau$$. According to Eq. (32), when $$\frac{{\partial {R_0}}}{{\partial {\tau}}}>0$$ (i.e. $$\alpha p - \delta q>0$$), $$R_0$$ increases as $$\tau$$ increases, and when $$\frac{{\partial {R_0}}}{{\partial {\tau}}}>0$$ (i.e. $$\alpha p - \delta q<0$$), $$R_0$$ decreases as $$\tau$$ increases. By analyzing Eqs. (33) and (34), Fig. 6c distinctly demonstrates that the greater $$\beta$$ increases, the more significant $$R_0$$ grows, and the smaller $$\gamma$$ decreases, the more remarkable $$R_0$$ enlarges. Combining Fig. 6d and Eqs. (35) and (36), we can comprehensibly perceive that if $$\alpha$$ increases, then $$R_0$$ will decrease, and if $$\delta$$ increases, then $$R_0$$ will increase. Biologically, this means that to reduce influence of negative information and transmission rate or increase influence of positive and recover rate are vital essential for controlling influenza.

## Conclusions and discussions

First, we will discuss the influence of several important parameters about Twitter to infectious individuals through graphical approach. In Fig. 7a, b, we consider the dynamics of infectious individuals with respect to different factors affecting the spread rate due to positive information (Fig. 7a) and negative information (Fig. 7b). The simulation shows that the upper positive factors lead to the lower infectious cases and the upper negative factors bring about the upper infectious cases. However, under the same conditions, changes in the magnitude of the positive factors is distinctly greater than the negative factors. Thus, as is shown in the Fig. 7a, b, we learn that the impact of negative information on the flu is not so much while it does affect the influenza. In Figs. 7c, d, we research the dynamics of infectious individuals in regard to distinct rates provided positive information (Fig. 7c) and negative information (Fig. 7d). Analyzing it further, we get the same conclusion with the above Figures 7a, b, namely, despite the impact posed the negative information is not significant than the impact caused the positive information on influenza while its impact on the influenza virus is extraordinary.

In the above analysis of the model, we suppose that the number of susceptilbes remains relatively constant. In fact, the number of susceptibles may be obviously decreased due to infection. If we ignore the natural birth and death of susceptibles during an epidemic, the dynamic behavior of S(t) can be characterized by the following equation

\begin{aligned} \frac{{dS(t)}}{{dt}} = - \beta SI{e^{ - \alpha {T_1} + \delta {T_2}}}. \end{aligned}
(37)

The rest of the equations is the same as system (1). The current model has two possible steady states: one is trivial (all the valuables are 0) and the other is the disease-free equilibrium $$(S_0, 0,0, \frac{{p{\mu _1}S_0}}{\tau }, \frac{{q{\mu _1}S_0}}{\tau })$$, where $$S_0$$ is the initial value of susceptibles. The analysis of the second steady state is nearly the same as our above analysis for the disease-free equilibrium.

Compared with Pawelek et al. (2014), in this paper we consider the influence on the positive and negative information at the same time. Hence, our model is more closer to real life. In system (1), we only consider the specific case that the number of susceptible people is relatively constant. Generating speaking, this is the idea state. However, if we further consider the recruitment of the susceptible people, we could modify system (1) to the following model:

\begin{aligned} \frac{{dS(t)}}{{dt}}&= \mu N - \beta SI{e^{ - \alpha {T_1} + \delta {T_2}}},\nonumber \\ \frac{{dE(t)}}{{dt}}&= \beta SI{e^{ - \alpha {T_1} + \delta {T_2}}} - \rho L,\nonumber \\ \frac{{dI(t)}}{{dt}}&= \rho E - \gamma I,\nonumber \\ \frac{{d{T_1}(t)}}{{dt}}&= p{\mu _1}S + p{\mu _2}E + p{\mu _3}I - \tau {T_1},\nonumber \\ \frac{{d{T_2}(t)}}{{dt}}&= q{\mu _1}S + q{\mu _2}E + q{\mu _3}I - \tau {T_2}, \end{aligned}
(38)

where $$\mu$$ represents the recruitment rate of the susceptible people. We leave these works for the future.

## References

• Alowibdi JS, Buy UA, Yu PS, Ghani S, Mokbel M (2015) Deception detection in Twitter. Soc Netw Anal Min 5(1):16

• Centers for Disease Control and Prevention (CDC) (2009) Interim guidance for clinicians on identifying and caring for patients with swine-origin influenza A (H1N1) virus infection. http://www.cdc.gov/h1n1flu/identifyingpatients.htm. Accessed 16 Sept 2009

• Cui JA, Sun YH, Zhu HP (2008a) The impact of media on the control of infectious diseases. J Dyn Differ Equ 20(1):31–53

• Cui JA, Tao X, Zhu HP (2008b) An SIS infection model incorporating media coverage. J Math 38(5):1323–1334

• Currie D (2009) Public health leaders using social media to convey emergencies: new tools a boon. Nation’s Health 39:1–10

• Dijck JV (2011) Tracing Twitter: the rise of a microblogging platform. Int J Media Cult Polit 7(3):333–348

• Driessche PV, Watmough J (2002) Reproduction numbers and sub-threshold endemic equilibria for compartmental models of disease transmission. Math Biosci 180:29–48

• Dugue N, Perez A (2014) Social capitalists on Twitter: detection, evolution and behavioral analysis. Soc Netw Anal Min 4(1):1–15

• Elsweiler D, Harvey M (2015) Engaging and maintaining a sense of being informed: understanding the tasks motivating Twitter search. J Assoc Inf Sci Technol 66(2):264–281

• Fu X, Shen Y (2014) Study of collective user behaviour in Twitter: a fuzzy approach. Neural Comput Appl 25(7-8):1603–1614

• Java A, Song X, Finin T, Tseng B (2007) Why we Twitter: understanding microblogging us-age and communities. In: Proceedings of the 9th WebKDD and 1st SNA-KDD 2007 workshop on web mining and social network analysis. ACM Press, New York, pp 56–65

• Jin F, Wang W, Zhao L, Dougherty E, Cao Y, Lu ChT, Ramakrishnan N (2014) Misinformation propagation in the age of Twitter. Computer 47(12):90–94

• Kaur N, Ghosh M, Bhatia SS (2014) Modeling and analysis of an SIRS epidemic model with effect of awareness programs by media. Int J Math Comput Nat Phys Eng 8(1):233–239

• LaSalle JP (1987) The stability of dynamical systems. In: Regional conference series in applied mathematics. Society for Industrial Mathematics

• Lakshmikantham V, Leela S, Martynyuk AA (1988) Stability analysis of nonlinear systems, Chapman & Hall Pure and Applied Mathematics. CRC Press, London

• Lassen DS, Brown AR (2011) Twitter: the electoral connection? Soc Sci Comput Rev 29(4):419–436

• Launer J (2013) The age of Twitter. Postgrad Med J 89(1057):675–676

• Leekha S, Zitterkopf NL, Espy MJ, Smith TF, Thompson RL, Sampathkumar P (2007) Duration of influenza A virus shedding in hospitalized patients and implications for infection control. Infect Control Hosp Epidemiol 28:1071–1076

• Liu YP, Cui JA (2008) The impact of media coverge on the dynamics of infectious disease. Int J Biomath 1(1):65–74

• Liu RS, Wu JH, Zhu HP (2007) Media/psychological impact on multiple outbreaks of emerging infectious diseases. Comput Math Methods Med 8(3):153–164

• Misra AK, Sharma A, Shukla JB (2011) Modeling and analysis of effects of awareness programs by media on the spread of infectious diseases. Math Comput Modell 53(5-6):1221–1228

• Murray JD (1998) Mathematical biology. Springer, Berlin

• Pawelek KA, Hirsch AO, Rong L (2014) Modeling the impact of Twitter on influenza epidemics. Math Biosci Eng 11(6):1337–1356

• Roshanaei M, Mishra S (2015) Studying the attributes of users in Twitter considering their emotional states. Soc Netw Anal Min 5(1):13

• Sahua GP, Dhara J (2015) Dynamics of an SEQIHRS epidemic model with media coverage, quarantine and isolation in a community with pre-existing immunity. J Math Anal Appl 421(2):1651–1672

• Sanderson J (2014) What do we do with Twitter? Commun Sport 2(2):127–131

• Tiernan P (2014) A study of the use of Twitter by students for lecture engagement and discussion. Educ Inf Technol 19(4):673–690

• Tracht SM, DelValle SY, Hyman JM (2011) Mathematical modeling of the effectiveness of facemasks in reducing the spread of novel influenza A (H1N1). Plos One 5:e9018

• Wang Q, Zhao LJ, Huang RB, Yang YP, Wu JH (2015) Interaction of media and disease dynamics and its impact on emerging infection management. Discrete Continuous Dyn Syst Ser B 20(1):215–230

• Xiao YN, Zhao TT, Tang SY (2013) Dynamics of an infectious diseases with media/psychology induced non-smooth incidence. Math Biosci Eng 10(2):445–461

## Authors’ contributions

HFH and XMZ designed the study, carried out the analysis and contributed to writing the paper. Both authors read and approved the final manuscript.

### Acknowledgements

This work is supported by the NNSF of China (11461041), the NSF of Gansu Province (148RJZA024), and the Development Program for HongLiu Outstanding Young Teachers in Lanzhou University of Technology.

### Competing interests

The authors declare that they have no competing interests.

## Author information

Authors

### Corresponding author

Correspondence to Hai-Feng Huo.

## Rights and permissions 