1 Introduction

In past several decades, many authors have studied different mathematical models which illustrate the dynamical behavior of the transmission of computer viruses based on the classical epidemic models due to the lots of similarities between biological viruses and computer viruses [112]. In [3], Yuan and Chen investigated the behavior of virus propagation in a network by proposing an e-SEIR model. In [7], Mishra and Pandey proposed an SEIRS model to investigate the transmission of worms in a network. As wireless sensor networks are unfolding their vast potential in a plethora of application environments, security still remains one of the most critical challenges yet to be fully addressed [13, 14]. In order to study the attacking behavior of possible worms in a wireless sensor network and considering that there is a basic similarity between the software viruses spread among wireless devices and the transmission of epidemic diseases in a population, Mishra and Keshri [14] proposed the following SEIRS-V model:

{ d S ( t ) d t = A β S ( t ) I ( t ) ( μ + p ) S ( t ) + δ R ( t ) + η V ( t ) , d E ( t ) d t = β S ( t ) I ( t ) ( μ + α ) E ( t ) , d I ( t ) d t = α E ( t ) ( μ + ε + γ ) I ( t ) , d R ( t ) d t = γ I ( t ) ( μ + δ ) R ( t ) , d V ( t ) d t = p S ( t ) ( μ + η ) V ( t ) ,
(1)

where S(t), E(t), I(t), R(t) and V(t) represent the numbers of sensor nodes at time t in states susceptible, exposed, infectious, recovered and vaccinated, respectively. A is the inclusion of new nodes to the wireless sensor network, β is the transmission coefficient. α, γ, δ, η and p are state transition rates. ε and μ are the crashing rates of the sensor nodes due to the attack of worms and the reason other than the attack of worms, respectively. Mishra and Keshri [14] studied the stability of system (1).

As is known, computer virus models with time delay have been investigated by many authors [1518]. In [15], Feng et al. investigated a viral infection model in computer networks with time delay due to the temporary immunity period of the recovered computers. In [17], Dong et al. proposed a computer virus model with time delay due to the time that the computers in a network use antivirus software to clean the viruses and investigated the Hopf bifurcation of the model by choosing the delay as a bifurcation parameter. Motivated by the work above, and considering that the sensor nodes need some time to clean the worms in a wireless sensor network by using antivirus software and the recovered and the vaccinated sensor nodes have a temporary immunity period after which they may be infected again because of antivirus software, we incorporate two delays into system (1) and get the following delayed SEIRS-V system on the transmission of worms in a wireless sensor network:

{ d S ( t ) d t = A β S ( t ) I ( t ) ( μ + p ) S ( t ) + δ R ( t τ 2 ) + η V ( t τ 2 ) , d E ( t ) d t = β S ( t ) I ( t ) ( μ + α ) E ( t ) , d I ( t ) d t = α E ( t ) ( μ + ε ) I ( t ) γ I ( t τ 1 ) , d R ( t ) d t = γ I ( t τ 1 ) μ R ( t ) δ R ( t τ 2 ) , d V ( t ) d t = p S ( t ) μ V ( t ) η V ( t τ 2 ) ,
(2)

where τ 1 is the time that the sensor nodes need to clean the worms by using antivirus software and τ 2 is the temporary immunity period after which they may be infected again because of antivirus software. For the convenience of analysis, we assume that τ 1 = τ 2 . Let τ 1 = τ 2 , then system (2) becomes

{ d S ( t ) d t = A β S ( t ) I ( t ) ( μ + p ) S ( t ) + δ R ( t τ ) + η V ( t τ ) , d E ( t ) d t = β S ( t ) I ( t ) ( μ + α ) E ( t ) , d I ( t ) d t = α E ( t ) ( μ + ε ) I ( t ) γ I ( t τ ) , d R ( t ) d t = γ I ( t τ ) μ R ( t ) δ R ( t τ ) , d V ( t ) d t = p S ( t ) μ V ( t ) η V ( t τ ) .
(3)

This paper is organized as follows. In Section 2, we investigate local stability of the positive equilibrium and obtain sufficient conditions for the existence of local Hopf bifurcation. In Section 3, we determine direction and stability of the Hopf bifurcation by using the normal form theory and the center manifold theorem. In order to testify the theoretical analysis, a numerical example is presented in Section 4. Section 5 concludes the paper and indicates future directions for research.

2 Local stability of positive equilibrium and existence of local Hopf bifurcation

It is not difficult to verify that if R 0 = α β A ( μ + η ) + p η ( μ + α ) ( μ + ε + γ ) ( μ + p ) ( μ + α ) ( μ + η ) ( μ + ε + γ ) >1, then system (3) has the unique positive equilibrium D ( S , E , I , R , V ), where

S = ( μ + α ) ( μ + ε + γ ) α β , E = μ + ε + γ α I , R = γ μ + δ I , V = p ( μ + α ) ( μ + ε + γ ) α β ( μ + η ) , I = α β A ( μ + δ ) ( μ + η ) + p η ( μ + α ) ( μ + δ ) ( μ + ε + γ ) ( μ + p ) ( μ + α ) ( μ + δ ) ( μ + η ) ( μ + ε + γ ) β ( μ + α ) ( μ + δ ) ( μ + η ) ( μ + ε + γ ) α β δ γ ( μ + η ) .

The Jacobian matrix of system (3) about the positive equilibrium D is

J( D )= ( λ a 11 0 a 13 b 14 e λ τ b 15 e λ τ a 21 λ a 22 a 23 0 0 0 a 32 λ a 33 b 33 e λ τ 0 0 0 0 b 43 e λ τ λ a 44 b 44 e λ τ 0 a 51 0 0 0 λ a 55 b 55 e λ τ ) ,

where

a 11 = ( β I + μ + p ) , a 13 = β S , a 21 = β I , a 22 = ( μ + α ) , a 23 = β S , a 32 = α , a 33 = ( μ + ε ) , a 44 = μ , a 51 = p , a 55 = μ , b 14 = δ , b 15 = η , b 33 = γ , b 43 = γ , b 44 = δ , b 55 = η .

Thus, the characteristic equation of system (3) at D is

λ 5 + A 4 λ 4 + A 3 λ 3 + A 2 λ 2 + A 1 λ + A 0 + ( B 4 λ 4 + B 3 λ 3 + B 2 λ 2 + B 1 λ + B 0 ) e λ τ + ( C 3 λ 3 + C 2 λ 2 + C 1 λ + C 0 ) e 2 λ τ + ( D 2 λ 2 + D 1 λ + D 0 ) e 3 λ τ = 0 ,
(4)

where

A 0 = a 44 a 55 ( a 11 a 22 a 33 + a 13 a 21 a 32 ) , A 1 = a 33 a 44 a 55 ( a 11 + a 22 ) + a 11 a 22 a 55 ( a 33 + a 44 ) A 1 = + a 11 a 22 a 33 a 44 + a 13 a 21 a 32 ( a 44 + a 55 ) , A 2 = a 55 ( a 11 a 22 + a 33 a 44 + ( a 11 + a 22 ) ( a 33 + a 44 ) ) A 2 = a 13 a 21 a 32 a 11 a 22 ( a 33 + a 44 ) a 33 a 44 ( a 11 + a 22 ) , A 3 = a 11 a 22 + a 33 a 44 + ( a 11 + a 22 ) ( a 33 + a 44 ) A 3 = + a 55 ( a 11 + a 22 + a 33 + a 44 ) , A 4 = ( a 11 + a 22 + a 33 + a 44 + a 55 ) , B 0 = a 44 a 51 b 15 ( a 22 a 33 a 23 a 32 ) a 13 a 21 a 32 ( a 44 b 55 + a 55 b 44 ) B 0 = a 11 a 22 ( a 33 a 44 b 55 + a 44 a 55 b 33 + a 33 a 55 b 44 ) , B 1 = b 33 ( a 11 a 22 ( a 44 + a 55 ) + a 44 a 55 ( a 11 + a 22 ) ) + a 13 a 21 a 32 ( b 44 + b 55 ) B 1 = + b 44 ( a 11 a 22 ( a 33 + a 55 ) + a 33 a 55 ( a 11 + a 22 ) ) B 1 = + b 55 ( a 11 a 22 ( a 33 + a 44 ) + a 33 a 44 ( a 11 + a 22 ) ) B 1 = + a 51 b 15 ( a 23 a 32 a 22 a 33 a 22 a 44 a 33 a 44 ) , B 2 = a 51 b 15 ( a 22 + a 33 + a 44 ) b 33 ( a 11 a 22 + a 44 a 55 + ( a 11 + a 22 ) ( a 44 + a 55 ) ) B 2 = b 44 ( a 11 a 22 + a 33 a 55 + ( a 11 + a 22 ) ( a 33 + a 55 ) ) B 2 = b 55 ( a 11 a 22 + a 33 a 44 + ( a 11 + a 22 ) ( a 33 + a 44 ) ) , B 3 = b 33 ( a 11 + a 22 + a 44 + a 55 ) + b 44 ( a 11 + a 22 + a 33 + a 55 ) B 3 = + b 55 ( a 11 + a 22 + a 33 + a 44 ) a 51 b 15 , B 4 = ( b 33 + b 44 + b 55 ) , C 3 = b 33 b 44 + b 33 b 55 + b 44 b 55 , C 2 = a 51 b 15 ( b 33 + b 44 ) b 33 b 44 ( a 11 + a 22 + a 33 ) b 33 b 55 ( a 11 + a 22 + a 44 ) C 2 = b 44 b 55 ( a 11 + a 22 + a 33 ) , C 1 = b 44 b 55 ( a 11 a 22 + a 33 ( a 11 + a 22 ) ) a 21 a 32 b 14 b 43 + b 33 b 44 ( a 11 a 22 + a 55 ( a 11 + a 22 ) ) C 1 = + b 33 b 55 ( a 11 a 22 + a 44 ( a 11 + a 22 ) ) a 51 b 15 ( b 33 ( a 22 + a 44 ) + b 44 ( a 22 + a 33 ) ) , C 0 = a 51 b 15 ( a 22 a 44 b 33 + a 22 a 33 b 44 a 23 a 32 b 44 ) + a 21 a 32 ( a 55 b 14 b 43 a 13 b 44 b 55 ) C 0 = a 11 a 22 ( a 55 b 33 b 44 + a 44 b 33 b 55 + a 33 b 44 b 55 ) , D 2 = b 33 b 44 b 55 , D 1 = b 33 b 44 b 55 ( a 11 + a 22 ) a 51 b 15 b 33 b 44 , D 0 = a 21 a 32 b 14 b 43 b 55 + a 22 a 51 b 15 b 33 b 44 a 11 a 22 a 33 b 44 b 55 .

Multiplying e λ τ on both sides of Eq. (4), it is easy to obtain

B 4 λ 4 + B 3 λ 3 + B 2 λ 2 + B 1 λ + B 0 + ( λ 5 + A 4 λ 4 + A 3 λ 3 + A 2 λ 2 + A 1 λ + A 0 ) e λ τ + ( C 3 λ 3 + C 2 λ 2 + C 1 λ + C 0 ) e λ τ + ( D 2 λ 2 + D 1 λ + D 0 ) e 2 λ τ = 0 .
(5)

When τ=0, Eq. (5) reduces to

λ 5 + m 4 λ 4 + m 3 λ 3 + m 2 λ 2 + m 1 λ+ m 0 =0,
(6)

where

m 0 = A 0 + B 0 + C 0 + D 0 , m 1 = A 1 + B 1 + C 1 + D 1 , m 2 = A 2 + B 2 + C 2 + D 2 , m 3 = A 3 + B 3 + C 3 , m 4 = A 4 + B 4 = p + α + δ + ε + γ + η + β I + 5 μ .

Obviously, m 4 >0. By the Routh-Hurwitz criterion, sufficient conditions for all roots of Eq. (6) to have a negative real part are given in the following form:

D 2 =det ( m 4 1 m 2 m 3 ) >0,
(7)
D 3 =det ( m 4 1 0 m 2 m 3 m 4 0 m 1 m 2 ) >0,
(8)
D 4 =det ( m 4 1 0 0 m 2 m 3 m 4 1 m 0 m 1 m 2 m 3 0 0 m 0 m 1 ) >0,
(9)
D 5 =det ( m 4 1 0 0 0 m 2 m 3 m 4 1 0 m 0 m 1 m 2 m 3 m 4 0 0 m 0 m 1 m 2 0 0 0 0 m 0 ) >0.
(10)

Thus, if condition (H1) Eq. (7)-Eq. (10) holds, D is locally asymptotically stable in the absence of delay.

For τ>0, let λ=iω (ω>0) be the root of Eq. (5). Then we can get

{ g 1 cos τ ω g 2 sin τ ω + g 3 = h 1 sin 2 τ ω + h 2 cos 2 τ ω , g 4 sin τ ω + g 5 cos τ ω + g 6 = h 1 cos 2 τ ω h 2 sin 2 τ ω ,

where

g 1 = A 4 ω 4 ( A 2 + C 2 ) ω 2 + A 0 + C 0 , g 2 = ω 5 ( A 3 C 3 ) ω 3 + ( A 1 C 1 ) ω , g 3 = B 4 ω 4 B 2 ω 2 + B 0 , g 4 = A 4 ω 4 ( A 2 C 2 ) ω 2 + A 0 C 0 , g 5 = ω 5 ( A 3 + C 3 ) ω 3 + ( A 1 + C 1 ) ω , g 6 = B 1 ω B 3 ω 3 , h 1 = D 1 ω , h 2 = D 2 ω 2 D 0 .

Then we can get

( g 1 cos τ ω g 2 sin τ ω + g 3 ) 2 + ( g 4 sin τ ω + g 5 cos τ ω + g 6 ) 2 = h 1 2 + h 2 2 .
(11)

According to sinτω=± 1 cos 2 τ ω , we consider the following two cases.

Case 1. sinτω= 1 cos 2 τ ω , then Eq. (11) becomes

( g 1 cos τ ω g 2 1 cos 2 τ ω + g 3 ) 2 + ( g 4 1 cos 2 τ ω + g 5 cos τ ω + g 6 ) 2 = h 1 2 + h 2 2 ,
(12)

which is equivalent to

e 4 cos 4 τω+ e 3 cos 3 τω+ e 2 cos 2 τω+ e 1 cosτω+ e 0 =0,
(13)

where

e 0 = ( g 2 2 + g 3 2 + g 4 2 + g 6 2 h 1 2 h 2 2 ) 2 4 ( g 4 g 6 g 2 g 3 ) 2 , e 1 = 4 ( g 2 2 + g 3 2 + g 4 2 + g 6 2 h 1 2 h 2 2 ) 2 ( g 1 g 3 + g 5 g 6 ) e 1 = 8 ( g 4 g 5 g 1 g 2 ) ( g 4 g 6 g 2 g 3 ) , e 2 = 4 ( g 1 g 3 + g 5 g 6 ) 2 4 ( g 4 g 5 g 1 g 2 ) 2 + 4 ( g 4 g 6 g 2 g 3 ) 2 e 2 = + 2 ( g 1 2 + g 5 2 g 2 2 g 4 2 ) ( g 2 2 + g 3 2 + g 4 2 + g 6 2 h 1 2 h 2 2 ) , e 3 = ( g 1 g 3 + g 5 g 6 ) ( g 1 2 + g 5 2 g 2 2 g 4 2 ) + 8 ( g 4 g 5 g 1 g 2 ) ( g 4 g 6 g 2 g 3 ) , e 4 = ( g 1 2 + g 5 2 g 2 2 g 4 2 ) 2 + 4 ( g 4 g 5 g 1 g 2 ) 2 .

Let cosτω=r and denote

f(r)= r 4 + e 3 e 4 r 3 + e 2 e 4 r 2 + e 1 e 4 r+ e 0 e 4 .

Thus,

f (r)=4 r 3 + 3 e 3 e 4 r 2 + 2 e 2 e 4 r+ e 1 e 4 .

Set

4 r 3 + 3 e 3 e 4 r 2 + 2 e 2 e 4 r+ e 1 e 4 =0.
(14)

Let y=r+ e 3 4 e 4 . Then Eq. (14) becomes

y 3 + γ 1 y+ γ 0 =0,

where

γ 1 = e 1 2 e 4 3 e 3 2 16 e 4 2 , γ 0 = e 3 3 32 e 4 3 e 2 e 3 8 e 4 2 + e 1 e 4 .

Define

β 1 = ( γ 0 2 ) 2 + ( γ 1 3 ) 3 , β 2 = 1 + 3 i 2 , y 1 = γ 0 2 + β 1 3 + γ 0 2 β 1 3 , y 2 = γ 0 2 + β 1 3 β 2 + γ 0 2 β 1 3 β 2 2 , y 3 = γ 0 2 + β 1 3 β 2 2 + γ 0 2 β 1 3 β 2 .

Then we can get the expression of cosτω, and we denote f 1 (ω)=cosτω. Substitute f 1 (ω)=cosτω into Eq. (11), we can get the expression of sinτω, and we denote f 2 (ω)=sinτω. Thus, a function with respect to ω can be established by

f 1 2 (ω)+ f 2 2 (ω)=1.
(15)

If all the parameters of system (3) are given, we can calculate the roots of Eq. (15) by Matlab software package. Therefore, we make the following assumption in order to give the main results in this paper.

(H2) Eq. (15) has finite positive roots which are denoted by ω 1 , ω 2 ,, ω k , respectively. For every fixed ω i (1ik), the corresponding critical value of time delay is

τ i ( j ) = 1 ω i arccos f 1 ( ω i )+ 2 j π ω i ,i=1,2,,k,j=0,1,2,.

Case 2. sinτω= 1 cos 2 τ ω , then Eq. (11) becomes

( g 1 cos τ ω + g 2 1 cos 2 τ ω + g 3 ) 2 + ( g 5 cos τ ω g 4 1 cos 2 τ ω + g 6 ) 2 = h 1 2 + h 2 2 .
(16)

Similar as in Case 1, we can get the expression of cosτω denoted as f 1 (ω) and the expression of sinτω denoted by f 2 (ω), and further we get a function with respect to ω that can be established by

f 1 2 (ω)+ f 2 2 (ω)=1.
(17)

We assume that Eq. (17) has finite positive roots denoted by ω 1 , ω 2 ,, ω k , respectively. Then we can get the critical value of time delay corresponding to every fixed positive root ω i of Eq. (17):

τ i ( j ) = 1 ω i arccos f 1 ( ω i ) + 2 j π ω i ,i=1,2,,k,j=0,1,2,.

Let

τ 0 =min { τ i ( 0 ) , τ i ( 0 ) } ,i=1,2,,k.

Then, when τ= τ 0 , Eq. (5) has a pair of purely imaginary roots ±i ω 0 .

Next, we verify the transversality condition. Taking the derivative of λ with respect to τ in Eq. (5), it is easy to obtain

[ d λ d τ ] 1 = g 1 ( λ ) + g 2 ( λ ) e λ τ + g 3 ( λ ) e λ τ + g 4 ( λ ) e 2 λ τ h 1 ( λ ) h 2 ( λ ) e λ τ τ λ ,

with

g 1 ( λ ) = 4 B 4 λ 3 + 3 B 3 λ 2 + 2 B 2 λ + B 1 , g 2 ( λ ) = 5 λ 4 + 4 A 4 λ 3 + 3 A 3 λ 2 + 2 A 2 λ + A 1 , g 3 ( λ ) = 3 C 3 λ 2 + 2 C 2 λ + C 1 , g 4 ( λ ) = 2 D 2 λ + D 1 , h 1 ( λ ) = C 3 λ 4 + ( C 2 + 2 D 2 ) λ 3 + ( C 1 + 2 D 1 ) λ 2 + ( C 0 + 2 D 0 ) λ , h 2 ( λ ) = λ 6 + A 4 λ 5 + A 3 λ 4 + A 2 λ 3 + A 1 λ 2 + A 0 λ .

Thus,

[ d λ d τ ] λ = i ω 0 1 = P R + P I i Q R + Q I i ,

where

P R = ( 5 ω 0 4 ( 3 A 3 + 3 C 3 ) ω 0 2 + A 1 + C 1 ) cos τ 0 ω 0 P R = + ( 4 A 4 ω 0 3 + ( 2 C 2 2 A 2 ) ω 0 ) sin τ 0 ω 0 P R = + D 1 cos 2 τ 0 ω 0 + 2 D 2 ω 0 sin 2 τ 0 ω 0 + B 1 3 B 3 ω 0 2 , P I = ( 5 ω 0 4 ( 3 A 3 3 C 3 ) ω 0 2 + A 1 + C 1 ) sin τ 0 ω 0 P I = ( 4 A 4 ω 0 3 ( 2 C 2 + 2 A 2 ) ω 0 ) cos τ 0 ω 0 P I = D 1 sin 2 τ 0 ω 0 + 2 D 2 ω 0 cos 2 τ 0 ω 0 + 2 B 2 ω 0 4 B 4 ω 0 3 , Q R = ( ω 0 6 A 3 ω 0 4 + A 1 ω 0 2 ) cos τ 0 ω 0 + ( A 4 ω 0 5 A 2 ω 0 3 + A 0 ω 0 ) sin τ 0 ω 0 Q R = + C 3 ω 0 4 ( C 1 + 2 D 1 ) ω 0 2 , P I = ( ω 0 6 A 3 ω 0 4 + A 1 ω 0 2 ) sin τ 0 ω 0 ( A 4 ω 0 5 A 2 ω 0 3 + A 0 ω 0 ) cos τ 0 ω 0 P I = + ( C 0 + 2 D 0 ) ω 0 ( C 2 + 2 D 2 ) ω 0 3 .

Obviously, if condition (H3) P R Q R + P I Q I 0 holds, then Re [ d λ d τ ] λ = i ω 0 1 0. Therefore, by the Hopf bifurcation theorem in [18], we have the following results.

Theorem 1 For system (3), if conditions (H1)-(H3) hold, then the positive equilibrium D ( S , E , I , R , V ) of system (3) is asymptotically stable for τ[0, τ 0 ), and system (3) undergoes a Hopf bifurcation at the positive equilibrium D ( S , E , I , R , V ) when τ= τ 0 .

3 Direction and stability of the Hopf bifurcation

Let τ=τ+μ, μR so that μ=0 is the Hopf bifurcation value of system (2) and normalize the time delay by t(t/τ). Let u 1 (t)=S(t) S , u 2 (t)=E(t) E , u 3 (t)=I(t) I , u 4 (t)=R(t) R , u 5 (t)=V(t) V , then system (3) can be transformed into the following form:

u ˙ (t)= L μ u t +F(μ, u t ),
(18)

where u t = ( u 1 ( t ) , u 2 ( t ) , u 3 ( t ) , u 4 ( t ) , u 5 ( t ) ) T C=C([1,0], R 5 ),

L μ ϕ=( τ 0 +μ) ( A ϕ ( 0 ) + B ϕ ( 1 ) )

and

F(μ,ϕ)=( τ 0 +μ) ( β ϕ 1 ( 0 ) ϕ 3 ( 0 ) β ϕ 1 ( 0 ) ϕ 3 ( 0 ) 0 0 0 ) ,

where

A = ( a 11 0 a 13 0 0 a 21 a 22 a 23 0 0 0 a 32 a 33 0 0 0 0 0 a 44 0 a 51 0 0 0 a 55 ) , B = ( 0 0 0 b 14 b 15 0 0 0 0 0 0 0 b 33 0 0 0 0 b 43 b 44 0 0 0 0 0 b 55 ) .

By the Riesz representation theorem, there exists a 5×5 matrix function η(θ,μ):[1,0] R 5 × 5 whose elements are of bounded variation such that

L μ ϕ= 1 0 dη(θ,μ)ϕ(θ),ϕC.

In fact, we choose

η(θ,μ)=( τ 0 +μ) ( A δ ( θ ) + B δ ( θ + 1 ) ) ,

where δ is the Dirac delta function.

For ϕC([1,0], R 5 ), we define

A(μ)ϕ= { d ϕ ( θ ) d θ , 1 θ < 0 , 1 0 d η ( θ , μ ) ϕ ( θ ) , θ = 0

and

R(μ)ϕ= { 0 , 1 θ < 0 , F ( μ , ϕ ) , θ = 0 .

Then system (18) is equivalent to the following operator equation:

u ˙ (t)=A(μ) u t +R(μ) u t .

The adjoint operator A of A is defined by

A (φ)= { d φ ( s ) d s , 0 < s 1 , 1 0 d η T ( s , 0 ) φ ( s ) , s = 0 ,

associated with a bilinear form

φ ( s ) , ϕ ( θ ) = φ ¯ (0)ϕ(0) θ = 1 0 ξ = 0 θ φ ¯ (ξθ)dη(θ)ϕ(ξ)dξ,
(19)

where η(θ)=η(θ,0).

Let q(θ)= ( 1 , q 2 , q 3 , q 4 , q 5 ) T e i ω 0 τ 0 θ be the eigenvector of A(0) corresponding to +i ω 0 τ 0 and q (s)=D(1, q 2 , q 3 , q 4 , q 5 ) e i ω 0 τ 0 s be the eigenvector of A (0) corresponding to i ω 0 τ 0 . From the definition of A(0) and A (0) and by a simple computation, we obtain

q 2 = i ω 0 a 33 b 33 e i τ 0 ω 0 a 32 q 3 , q 3 = 1 a 13 ( i ω 0 a 11 b 14 b 33 e i τ 0 ω 0 i ω 0 a 44 b 44 e i τ 0 ω 0 a 51 b 15 e i τ 0 ω 0 i ω 0 a 55 b 55 e i τ 0 ω 0 ) , q 4 = b 43 e i τ 0 ω 0 i ω 0 a 44 b 44 e i τ 0 ω 0 q 3 , q 5 = a 51 i ω 0 a 55 b 55 e i τ 0 ω 0 , q 2 = i ω 0 + a 11 a 21 + a 51 b 15 e i τ 0 ω 0 a 21 ( i ω 0 + a 55 + b 55 e i τ 0 ω 0 ) , q 3 = ( i ω 0 + a 11 ) ( i ω 0 + a 22 ) a 21 a 32 a 51 b 15 ( i ω 0 + a 22 ) e i τ 0 ω 0 a 21 a 32 ( i ω 0 + a 55 + b 55 e i τ 0 ω 0 ) , q 4 = b 14 e i τ 0 ω 0 i ω 0 + a 44 + b 44 e i τ 0 ω 0 , q 5 = b 15 e i τ 0 ω 0 i ω 0 + a 55 + b 55 e i τ 0 ω 0 .

From Eq. (19), we have

q ( s ) , q ( θ ) = D ¯ [ 1 + q 2 q ¯ 2 + q 3 q ¯ 3 + q 4 q ¯ 4 + q 5 q ¯ 5 + τ 0 e i τ 0 ω 0 ( q 3 ( b 33 q ¯ 3 + b 43 q ¯ 4 ) + q 4 ( b 14 + b 44 q ¯ 4 ) + q 5 ( b 15 + b 55 q ¯ 5 ) ) ] .

Then we choose

D ¯ = [ 1 + q 2 q ¯ 2 + q 3 q ¯ 3 + q 4 q ¯ 4 + q 5 q ¯ 5 + τ 0 e i τ 0 ω 0 ( q 3 ( b 33 q ¯ 3 + b 43 q ¯ 4 ) + q 4 ( b 14 + b 44 q ¯ 4 ) + q 5 ( b 15 + b 55 q ¯ 5 ) ) ] 1

such that q ,q=1, q , q ¯ =0.

Next, we can obtain the coefficients which will be used to determine the properties of the Hopf bifurcation by using a computation process similar as in [19]:

g 20 = 2 β τ 0 D ¯ q 3 ( q ¯ 2 1 ) , g 11 = β τ 0 D ¯ ( q 3 + q ¯ 3 ) ( q ¯ 2 1 ) , g 02 = 2 β τ 0 D ¯ q ¯ 3 ( q ¯ 2 1 ) , g 21 = 2 β τ 0 D ¯ ( q ¯ 2 1 ) ( W 11 ( 1 ) ( 0 ) q 3 + 1 2 W 20 ( 1 ) ( 0 ) q ¯ 3 + W 11 ( 3 ) ( 0 ) + 1 2 W 20 ( 3 ) ( 0 ) ) ,

with

W 20 ( θ ) = i g 20 q ( 0 ) τ 0 ω 0 e i τ 0 ω 0 θ + i g ¯ 02 q ¯ ( 0 ) 3 τ 0 ω 0 e i τ 0 ω 0 θ + E 1 e 2 i τ 0 ω 0 θ , W 11 ( θ ) = i g 11 q ( 0 ) τ 0 ω 0 e i τ 0 ω 0 θ + i g ¯ 11 q ¯ ( 0 ) τ 0 ω 0 e i τ 0 ω 0 θ + E 2 ,

where E 1 and E 2 can be determined by the following equations respectively:

E 1 = 2 ( 2 i ω 0 a 11 0 a 13 b 14 e 2 i τ 0 ω 0 b 15 e 2 i τ 0 ω 0 a 21 2 i ω 0 a 22 a 23 0 0 0 a 32 a 33 0 0 0 0 b 43 e 2 i τ 0 ω 0 a 44 0 a 51 0 0 0 a 55 ) 1 ( E 1 ( 1 ) E 1 ( 2 ) 0 0 0 ) , E 2 = ( a 11 0 a 13 b 14 b 15 a 21 a 22 a 23 0 0 0 a 32 a 33 + b 33 0 0 0 0 b 43 a 44 + b 44 0 a 51 0 0 0 a 55 + b 55 ) 1 ( E 2 ( 1 ) E 2 ( 2 ) 0 0 0 ) ,

with

a 33 = 2 i ω 0 a 33 b 33 e 2 i τ 0 ω 0 , a 44 = 2 i ω 0 a 44 b 44 e 2 i τ 0 ω 0 , a 55 = 2 i ω 0 a 55 b 55 e 2 i τ 0 ω 0 , E 1 ( 1 ) = β q 3 , E 1 ( 2 ) = β q 3 , E 2 ( 1 ) = β ( q 3 + q ¯ 3 ) , E 2 ( 2 ) = β ( q 3 + q ¯ 3 ) .

Then we can get the following coefficients:

C 1 ( 0 ) = i 2 τ 0 ω 0 ( g 11 g 20 2 | g 11 | 2 | g 02 | 2 3 ) + g 21 2 , μ 2 = Re { C 1 ( 0 ) } Re { λ ( τ 0 ) } , β 2 = 2 Re { C 1 ( 0 ) } , T 2 = Im { C 1 ( 0 ) } + μ 2 Im { λ ( τ 0 ) } τ 0 ω 0 .
(20)

In conclusion, we have the following results.

Theorem 2 For system (3), if μ 2 >0 ( μ 2 <0), then the Hopf bifurcation is supercritical (subcritical). If β 2 <0 ( β 2 >0), then the bifurcating periodic solutions are stable (unstable). If T 2 >0 ( T 2 <0), then the bifurcating periodic solutions increase (decrease).

4 Numerical simulation

In this section, we present a numerical example to verify the theoretical analysis in Section 2 and Section 3. Let A=2, p=0.32, α=0.25, β=0.3, μ=0.003, δ=0.3, η=0.06, ε=0.07, γ=0.4. Then we get a particular case of system (3):

{ d S ( t ) d t = 2 0.3 S ( t ) I ( t ) 0.323 S ( t ) + 0.3 R ( t τ ) + 0.06 V ( t τ ) , d E ( t ) d t = 0.3 S ( t ) I ( t ) 0.253 E ( t ) , d I ( t ) d t = 0.25 E ( t ) 0.073 I ( t ) 0.4 I ( t τ ) , d R ( t ) d t = 0.4 I ( t τ ) 0.003 R ( t ) 0.3 R ( t τ ) , d V ( t ) d t = 0.32 S ( t ) 0.003 V ( t ) 0.06 V ( t τ ) .
(21)

It is easy to verify that R 0 =4.8750>1 and system (21) has the unique positive equilibrium D (1.5956,44.7772,23.6666,31.2430,8.1046). Further, we have ω 0 =0.4883, τ 0 =2.4273. First, we choose τ=2.365< τ 0 , the corresponding phase plots are shown in Figures 1 and 2; it is easy to see that system (21) is asymptotically stable from Figures 1 and 2. Then we choose τ=2.595> τ 0 . The corresponding phase plots are illustrated by Figures 3 and 4. We can see that system (21) undergoes a Hopf bifurcation in this case. This property can also be seen from the bifurcation diagram in Figure 5. In addition, we obtain λ ( τ 0 )=0.0540+0.0774i, C 1 (0)=1.2390+0.9658i. Thus, we have μ 2 =22.9444>0, β 2 =2.4780<0, T 2 =2.1690<0. From Theorem 2, we can conclude that the Hopf bifurcation is supercritical and the bifurcating periodic solutions are stable, and the period of the periodic solutions decreases.

Figure 1
figure 1

The phase plot of the states S , E , R for τ=2.365<2.4273= τ 0 .

Figure 2
figure 2

The phase plot of the states S , I , V for τ=2.365<2.4273= τ 0 .

Figure 3
figure 3

The phase plot of the states S , E , R for τ=2.595>2.4273= τ 0 .

Figure 4
figure 4

The phase plot of the states S , I , V for τ=2.595>2.4273= τ 0 .

Figure 5
figure 5

The bifurcation diagram with respect to τ .

5 Conclusions

This paper is concerned with a delayed SEIRS-V model on the transmission of worms in a wireless sensor network. The main results are given in terms of local stability and local Hopf bifurcation. By choosing the delay as a bifurcation parameter, sufficient conditions for local stability of the positive equilibrium and existence of the Hopf bifurcation of system (3) are obtained. We have proven that when the conditions are satisfied, there exists a critical value τ 0 of the delay below which system (3) is stable and above which system (3) is unstable. Especially, system (3) undergoes a Hopf bifurcation at the positive equilibrium when τ= τ 0 . The occurrence of Hopf bifurcation means that the state of worms prevalence in a wireless sensor network changes from a positive equilibrium to a limit cycle, which is not welcomed in a wireless sensor network. Hence, we should control the occurrence of Hopf bifurcation by combining some bifurcation control strategies, and we leave this as the future work. Further, the properties of Hopf bifurcation are studied by using the normal form method and the center manifold theorem. Finally, a numerical example is given to support our theoretical results.