Introduction

Epidemic spreading has been well studied in the last two decades and its main attention has been focused on the influence of network topologies1,2,3. These studies involve almost all parts of epidemics such as the infinitesimal threshold4,5,6,7,8,9, reaction-diffusion model10,11,12,13, flow driven epidemic14,15,16,17,18, objective spreading19,20, temporal and/or multilayered networks21,22,23,24,25,26,27,28,29,30, and other aspects31,32,33,34,35,36,37,38,39 etc. Notice that an epidemic outbreak constitutes of both the growing and recovering processes. A common point of these studies is that their dynamics are only focused on the growing process, while little attention has been paid to the recovering process. Does it mean that the recovering process can be considered only as an inverse process of the growing process and thus there is no necessary to study it? To confirm this argument, amounts of real data of recurrent epidemics have been rechecked recently40,41. It is found that for all the outbreaks in real data, their growing and recovering processes are asymmetric and thus form a phenomenon of hysteresis loop42, indicating that the recovering process is not a simple inverse process of the growing process.

To understand the mechanism of hysteresis loop, we now make an analysis on these real data and find their two features. The first one is that the period of an epidemic outbreak generally takes a couple of months or even longer. During this relatively long period, the infectious rate β will gradually increase and then decrease due to whether, humidity and other factors, i.e. being seriously influenced by the seasonal variation43,44,45,46,47,48,49,50. The second one is that the infectious process will keep going when the value of β is updated to a new one, i.e. an adiabatical process where the final state of system with the last β is used as the initial state of system with the updated β. In this sense, a model based on adiabatical increase of infectious rate β has been recently proposed to reproduce the hysteresis loop42, where the initial conditions of infected seeds at each updated β are inherited from the final state of system with the last β. This way of adiabatically changing β is completely different from the previous studies where β is allowed to be updated only when system reaches its stationary state and the initial infected seeds for each updated β are always reset randomly1,2,3. The consequence is that the former results in a hysteresis loop, while the latter has no hysteresis loop. Then, an interesting question is what is the relationship between these two approaches, i.e. how can we make a transition between them. On the other hand, the hysteresis loop in ref.42 is observed in parameter space but not in state space or data space. Considering that the collected epidemic data are from the state space but not from the parameter space, it will be definitely more convincing if we can directly explain the data from the state space, in contrast to explain them indirectly from the parameter space in ref.42. Moreover, it would be necessary to understand why the sizes of epidemic outbreaks in real data are different from one to another.

In this work, we address these questions directly from the state space, in contrast to the hysteresis loop indirectly observed in parameter space in ref.42. We first study how the infectious rate increment Δβ and transient time T at each updated β influence both the size of hysteresis loop and the size of epidemic outbreak. We numerically find that both of these two parameters have significant influence to the transition between the status with hysteresis loop and that without hysteresis loop. For fixed Δβ, there is a critical T c where the system will have a hysteresis loop when T < T c but no hysteresis loop when T > T c . While for fixed T, there is also a critical Δβ c where the system will have a hysteresis loop when Δβ Δβ c but no hysteresis loop when Δβ < Δβ c . Thus, the size of hysteresis loop is mainly determined by the matching between Δβ and T. Then, we compare the results between the state and parameter spaces and interestingly find a contradictory dependence of the size of hysteresis loop on the parameters Δβ and T in the two spaces when the evolutionary time of epidemics is long enough, indicating that there is a paradox between the two spaces. To understand it, we provide a theoretical formula to unify this paradox. Further, we show that the paradox will disappear when the evolutionary time of epidemics is limited in a fixed period. Moreover, a theoretical analysis is presented to explain the numerical results.

Results

Hysteresis loop in state space

A characteristic feature of recurrent epidemic data is its multiple peaks or outbreaks surrounded by small amplitude backgrounds. Such examples can be found in many real data such as the data from Hong Kong, New York and Baltimore etc40,41. Figure 1(a) shows one of them from New York. Recently, ref.42 revealed that most of the outbreaks in Fig. 1(a) are asymmetric and can be illustrated by Fig. 1(b) for the typical one marked by the blue circle in Fig. 1(a). We see that the outbreak consists of both the growing and recovering processes, separated by the “dashed” line. It is easy to notice that the two processes are asymmetric. Letting the time t0 of the peak in Fig. 1(b) be the original point and Δt = |t − t0| be the rescaled time, the asymmetry can be seen more clear by Fig. 1(c) in the rescaled time where the “squares” and “circles” denote the growing and recovering processes, respectively. We see that the two processes constitute a hysteresis loop, marking the asymmetry between the growing and recovering processes. Ref.42 pointed out that this kind of hysteresis loop exists in all the outbreaks of Fig. 1(a) and other recurrent epidemic data (not shown here), and can be understood in parameter space.

Figure 1
figure 1

A typical real data of recurrent epidemics and its features. (a) Represents the time series of reported measles infective cases I in New York, where the variable I is from 0 to 3 × 104 41. (b) Amplification of the outbreak marked in the blue circle of (a). (c) The hysteresis loop of (b) in the rescaled framework where the original point is taken as the time pointed by the dashed line in (b) and the “squares” and “circles” denote the growing and recovering phases, respectively. (d) The area S t of each outbreak in (a) where t n is the number of outbreaks. (e) The area SΔt of hysteresis loops for the successive outbreaks in (a).

To go deep into the underlying mechanism, it is better to explain the phenomenon of hysteresis loop directly from state space, in contrast to that from parameter space in42. For this purpose, we introduce S t and SΔt to represent the areas surrounded by the growing and recovering processes in Fig. 1(b) and (c), respectively. Figure 1(d) and (e) show the values of S t and SΔt for the successive outbreaks in Fig. 1(a), respectively, where t n represents the number of successive outbreaks. From Fig. 1(d) we see that S t is different for different t n , indicating that the size of S t is seriously influenced by some key factors such as the seasonal weather, humidity and sunlight etc. From Fig. 1(e) we see that all the SΔt are different and not zero, indicating that the existence of hysteresis loop is a general phenomenon in recurrent epidemics.

To figure out the key quantities influencing the sizes of S t and SΔt, we here adopt the model of reproducing the hysteresis loop in ref.42, which is in fact a susceptible-infected-susceptible (SIS) model with varying β. We notice from Fig. 1(a) that each epidemic outbreak lasts a relatively long time, i.e. a few months, marking the seasonal variation. On the other hand, the data in Fig. 1(a) is not from one or a few initial seeds in the same initial stage but a sum from different initial seeds at different initial stages. Thus, β reflects most probably the influence of environment, i.e. a match of whether, humidity and other factors43,44,45,46,47,48,49,50. In this sense, we may assume that the growing process corresponds to the gradual increase of β from 0 to β max , while the recovering process corresponds to the gradual decrease of β from β max to 0. According to42, the increase or decrease of β is not continuous but discrete with an increment Δβ. For each updating of β, the initial conditions for the system with β + Δβ will be inherited from the last values of state variables at the previous β, called adiabatically increase of β. Based on the experience observation that we generally have a few continuously sunny days or raining days in a season, we let T be the time period for a β to remain unchanged. Therefore, β will be updated as follows

$$\begin{array}{rcl}\beta (t+\mathrm{1)} & = & \beta (t),\,if\,t\ne nT,\,n=\mathrm{1,}\,\mathrm{2,}\ldots ,\\ \beta (t+\mathrm{1)} & = & \beta (t)\pm {\rm{\Delta }}\beta ,\,if\,t=nT,\,n=\mathrm{1,}\,\mathrm{2,}\ldots \end{array}$$
(1)

where “+” and “−” correspond to the growing and recovering processes, respectively.

In numerical simulations, we initially choose a small value of β and a few infected seeds. Then, we let the system freely run a period of time T where a susceptible individual will become infected with probability β if he/she is connected to an infected neighbor and an infected one will recover to susceptible again with probability μ1. When there are more than one infected neighbors, a susceptible individual will become infected with probability \(1-{\mathrm{(1}-\beta )}^{{k}_{inf}}\) where k inf is the number of its infected neighbors. After a time period of T, we let β have an increase as in Eq. (1) but keep the individual states unchanged. We repeat this process until β reaches its maximum β max . After that, we simulate the recovering phase by letting β(t + 1) = β max  − Δβ but remain the individual states. Then, we let the system run as a traditional SIS model. Once t = nT for n = 1, 2, …, we let β have a decrease as in Eq. (1) and keep all the other aspects unchanged. We repeat this process until β reaches zero.

We take the random Erdős-Rényi (ER) network with size N = 10000 and average degree 〈k〉 = 6 as an example51. We fix μ = 0.2 in this paper and study how the parameters Δβ and T influence the size of hysteresis loop. Firstly, we consider the case of fixing T = 1. We let the growing process evolve to time t = 100 and then let the system turn to the recovering process until t = 200. Doing the same as in Fig. 1(c), we let the time t = 100 be the original point t0 and Δt = |t − t0| be the rescaled time. The “squares” and “circles” of Fig. 2(a) show the results for Δβ = 0.01 and 0.001, respectively, where ρ I denotes the infected fraction. Two points can be noticed. The first one is that both of the two cases show the hysteresis loop in state space, denoted as SΔt. The second one is that the value of SΔt for the case of Δβ = 0.01 is smaller than that of Δβ = 0.001, indicating that the decrease of Δβ will result in an increase of SΔt. However, we find that there is a critical Δβ c with SΔt = 0. After that, we always have SΔt = 0 for Δβ ≤ Δβ c . Thus, the system will have a hysteresis loop when Δβ Δβ c but no hysteresis loop when Δβ ≤ Δβ c , indicating a phase transition between the states with and without hysteresis loop. This phenomenon can be explained as follows. For a fixed T, a smaller Δβ implies a smaller transient process for each updated β. When Δβ is small enough, the transient process will be less than T. In this situation, the time T will be long enough for the system of each updated β to reach its stationary state. Notice that the hysteresis loop comes from the adiabatical increase of β where β is updated before the system reaches its stationary state. Otherwise, there will be no hysteresis loop.

Figure 2
figure 2

Hysteresis loops in state space where the arrows denote the evolutionary directions. (a) ρ I versus Δt for fixed T = 1 where the curves with “squares” and “circles” represent the cases of Δβ = 0.01 and 0.001, respectively. (b) ρ I versus Δt for fixed Δβ = 0.01 where the curves with “squares” and “circles” represent the cases of T = 1 and 5, respectively. (c) SΔt versus Δβ where the curves with “squares”, “circles” and “triangles” represent the cases of T = 1, 2 and 3, respectively. The inset shows the log-log plot. (d) SΔt versus T where the curves with “squares”, “circles” and “triangles” represent the cases of Δβ = 0.02, 0.01 and 0.005, respectively. The inset shows the log-log plot.

Secondly, we consider the case of fixing Δβ = 0.01. Figure 2(b) shows the results where the “squares” and “circles” represent the results of T = 1 and 5, respectively. Comparing them each other we see that the value of SΔt for the case of T = 1 is smaller than that of T = 5, indicating that SΔt increases with T. We also find that there is a critical T c with SΔt = 0. The system will have a hysteresis loop when T < T c but no hysteresis loop when T > T c , confirming again the phase transition between the states with and without hysteresis loop. The reason is that for a fixed Δβ, a larger T implies a smaller difference between the final state of each updated β and its stationary state. When T is large enough to make the difference disappear, we will have a zero SΔt.

In sum, both the decrease of Δβ and the increase of T will make SΔt increase, indicating that they are the two key factors to influence the size of SΔt. To see their relationship in details, Fig. 2(c) shows the dependence of SΔt on Δβ for fixed T, where the three curves with “squares”, “circles” and “triangles” represent the cases of T = 1, 2 and 3, respectively, and the inset shows the log-log plot. We see that SΔt decreases monotonously with the increase of Δβ and the three curves in log-log plot are approximately parallel each other, indicating that SΔt depends on Δβ by an approximate power law with a fixed scaling. Figure 2(d) shows the dependence of SΔt on T for fixed Δβ, where the three curves with “squares”, “circles” and “triangles” represent the cases of Δβ = 0.02, 0.01 and 0.005, respectively, and the inset shows the log-log plot. We see that SΔt increases monotonously with T and the three curves in log-log plot are also approximately parallel each other, indicating that SΔt depends on T also by an approximate power law with a fixed scaling.

To see the dependence of SΔt on Δβ and T more clear, Fig. 3 shows its 3D plot. We see that for each fixed T, the relationship between SΔt and Δβ is similar to the curves in Fig. 2(c). At the same time, for each fixed Δβ, the relationship between SΔt and T is similar to the curves in Fig. 2(d). Thus, SΔt is determined by the matching between Δβ and T.

Figure 3
figure 3

3D plot of the dependence of SΔt on the two parameters Δβ and T where the other parameters are the same as in Fig. 2(c) and (d).

It will be more interesting to study the relationship between Δβ and T when SΔt is fixed. Figure 4 shows the results where “squares”, “circles”, and “triangles” represent the cases of SΔt = 14.0, 14.5 and 15.0, respectively. We see that all the three cases are straight lines, indicating a linear relationship between Δβ and T. Thus, to keep SΔt unchanged, a larger Δβ needs a larger T to balance it, i.e. Δβ and T take the inverse role in sustaining the hysteresis loop.

Figure 4
figure 4

The relationship between Δβ and T for fixed SΔt where the curves with “squares”, “circles” and “triangles” represent the cases of SΔt = 14.0, 14.5 and 15.0, respectively.

A paradox on the size of hysteresis loop between the state and parameter spaces

It is interesting to check the relationship between the state and parameter spaces. For this purpose, Fig. 5(a–d) show the results in parameter space corresponding to Fig. 2(a–d), respectively, where S h represents the area of hysteresis loop in parameter space. From Fig. 5(a) we surprisingly find that the area S h for the case of Δβ = 0.01 is larger than that of Δβ = 0.001, in contrast to the relationship of SΔt in Fig. 2(a). The similar situation has been observed in Fig. 5(b) where S h for the case of T = 1 is larger than that of T = 5, which is also in contrast to the relationship of SΔt in Fig. 2(b). Therefore, we have observed two contradictory results of the same phenomenon that with the increase of Δβ, SΔt decreases in Fig. 2(c) but its corresponding S h increases in Fig. 5(c), indicating a paradox that the size of hysteresis loop has an inverse dependence on the parameter Δβ between the state and parameter spaces. This paradox has been further confirmed by the case of increasing T where SΔt increases in Fig. 2(d) but its corresponding S h decreases in Fig. 5(d).

Figure 5
figure 5

Hysteresis loops in parameter space where (a–d) corresponds to Fig. 2(a–d), respectively.

To understand this paradox, we go back to the definitions of SΔt and S h . Let \({\rho }_{I}^{g}\) and \({\rho }_{I}^{c}\) be the infected fractions for the growing and recovering processes, respectively. Then, we have

$$\begin{array}{rcl}{S}_{{\rm{\Delta }}t} & = & \int ({\rho }_{I}^{c}(t)-{\rho }_{I}^{g}(t))dt\\ & = & \int ({\rho }_{I}^{c}(\frac{\beta }{{\rm{\Delta }}\beta }T+\delta t)-{\rho }_{I}^{g}(\frac{\beta }{{\rm{\Delta }}\beta }T+\delta t))dt\end{array}$$
(2)

where \(\frac{\beta }{{\rm{\Delta }}\beta }\) denotes the integer of t/T, and δt is the fraction of t/T located in between 0 and T. Notice that β is a constant when δt changes from 0 to T. If we approximately use the average of \({\rho }_{I}^{g}\) and \({\rho }_{I}^{c}\) in the period from 0 to T to replace \({\rho }_{I}^{g}(t)\) and \({\rho }_{I}^{c}(t)\), Eq. (2) can be rewritten as

$${S}_{{\rm{\Delta }}t}\approx \int ({\rho }_{I}^{c}(\beta )-{\rho }_{I}^{g}(\beta ))\frac{T}{{\rm{\Delta }}\beta }d\beta =\frac{T}{{\rm{\Delta }}\beta }{S}_{h}$$
(3)

Based on Eq. (3), we obtain a new quantity \(t=\frac{T}{{\rm{\Delta }}\beta }\beta \) for each β in Fig. 5(a) and (b). Then, we transform all the ρ I (β) in Fig. 5(a) and (b) into their corresponding ρ I (t) and plot them in the new framework of ρ I (t) versus Δt. The “squares” and “circles” in Fig. 6(a) and (b) show the results corresponding to that in Fig. 5(a) and (b) by Eq. (3), respectively. For comparison, we also replot the curves of Fig. 2(a) and (b) into Fig. 6(a) and (b) by the solid lines, respectively. Comparing the solid lines with their corresponding symbols in Fig. 6(a) and (b), respectively, we see that they are consistent each other, confirming the correctness of Eq. (3). Therefore, the paradox can be unified by Eq. (3).

Figure 6
figure 6

Consistence between the state and parameter spaces where the “squares” and “circles” in (a) and (b) come from Fig. 5(a) and (b) by Eq. (3), respectively, and the solid lines in (a) and (b) are the replotted Fig. 2(a) and (b), respectively.

We have to point out that the evolutionary times of the two cases in Fig. 2(a) or (b) are different, implying that we have long enough time for the different cases to finish their hysteresis loop. However, this condition of long enough evolutionary time is not always guaranteed in realistic situations. For example, we notice from Fig. 1(a) that the time periods of different outbreaks are generally in the same level, i.e. a few months, although their S t in Fig. 2(d) or SΔt in Fig. 2(e) may have significant difference. To incorporate this feature into simulations, we need to take the same evolutionary time for all the cases of Fig. 2(a) and (b). After considering this condition, Fig. 7(a) and (b) show the results corresponding to Fig. 2(a) and (b), respectively, where the evolutionary time for both the growing and recovering processes are fixed as t max  = 20. From Fig. 7(a) and (b) we see that their sizes of hysteresis loops can be large, small or even zero, depending on the values of Δβ and T. This result well explains the observation in Fig. 1(e), where the larger SΔt corresponds to a larger Δβ and a smaller T while the smaller SΔt corresponds to a smaller Δβ and a larger T. A zero SΔt can be expected when Δβ is smaller than Δβ c or T is larger than T c , which corresponds to the background in Fig. 1(a). More important, we notice from Fig. 7(a) and (b) that SΔt has different relationship with Δβ and T from that in Fig. 2(a) and (b), indicating that the paradox disappear when the total evolutionary time is fixed.

Figure 7
figure 7

Case of fixed total evolutionary time as 2 × 20 (20 for the growing process and 20 for the recovering process) where all the parameters in (a) and (c) are the same as in Fig. 2(a) and that in (b) and (d) are the same as in Fig. 2(b). (a) and (b) represent the cases of SΔt for fixed Δβ and fixed T, respectively. (c) and (d) represent the cases of S t corresponding to (a) and (b), respectively.

Similarly, the fixed evolutionary time can be used to explain the different sizes S t in Fig. 1(d). Figure 7(c) and (d) show the results for fixed evolutionary time t max  = 20, which correspond to Fig. 7(a) and (b), respectively. From Fig. 7(c) and (d) we see that S t increases with Δβ and decreases with the increase of T, indicating that S t has different behaviours with that of SΔt in Fig. 2(a) and (b). That is, the size of S t is mainly determined by the outbreak of epidemic but not the asymmetry between the growing and recovering processes.

A brief theoretical analysis

Based on the mean-field theory, we make a brief theoretical analysis for the above numerical results. For the SIS model, the evolution of ρ I satisfies the following equation

$${\dot{\rho }}_{I}=\mathrm{(1}-{\mathrm{(1}-\beta (t))}^{{k}_{I}}){\rho }_{I}\mathrm{(1}-{\rho }_{I})-\mu {\rho }_{I},$$
(4)

where k I represents the average number of infected neighbors of a node. During the evolutionary process, k I will change with time. That is, k I will gradually increase with t in the growing process but decrease in the recovering process. For convenience, we rewrite Eq. (4) as

$${\dot{\rho }}_{I}=\mathrm{(1}-{\mathrm{(1}-\beta (t))}^{{k}_{I}}-\mu ){\rho }_{I}-\mathrm{(1}-{\mathrm{(1}-\beta (t))}^{{k}_{I}}){\rho }_{I}^{2}$$
(5)

In the following, we will solve Eq. (5) for the growing and recovering processes, respectively.

The growing process

In this process, we have β(t) = nΔβ for nT < t < (n + 1)T and the initial condition ρ I (t) = ρ I (nT) for each updated β(t). Substituting them into Eq. (5) we have

$${\dot{\rho }}_{I}=\mathrm{(1}-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu ){\rho }_{I}-\mathrm{(1}-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}){\rho }_{I}^{2}$$
(6)

By dividing \({\rho }_{I}^{2}\) on both sides of Eq. (6), we have

$$\frac{d\frac{1}{{\rho }_{I}}}{dt}=\mathrm{(1}-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )\frac{1}{{\rho }_{I}}-\mathrm{(1}-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}})$$
(7)

Letting 1/ρ I be a new variable, we can obtain the solution of Eq. (7) as

$${\rho }_{I}(t)=(1-\frac{\mu }{1-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}})\frac{1}{1+c{e}^{-\mathrm{(1}-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )t}}$$
(8)

with t [nT, (n + 1)T]. Doing some simple operations, we have

$${\rho }_{I}(t)=(1-\frac{\mu }{1-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}})\frac{{c}_{1}{e}^{\mathrm{(1}-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )t}}{{c}_{1}{e}^{\mathrm{(1}-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )t}+1}$$
(9)

Letting t = nT, we obtain

$$\frac{1}{{c}_{1}}=(\frac{1-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu }{1-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}}\frac{1}{{\rho }_{I}(nT)}-1){e}^{\mathrm{(1}-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )nT}$$
(10)

Substituting Eq. (10) into Eq. (9) and letting t = (n + 1)T, we obtain

$${\rho }_{I}((n+\mathrm{1)}T)=(1-\frac{\mu }{1-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}})\frac{{c}_{1}{e}^{\mathrm{(1}-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )(n+\mathrm{1)}T}}{{c}_{1}{e}^{\mathrm{(1}-{\mathrm{(1}-n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )(n+\mathrm{1)}T}+1}$$
(11)

The recovering process

In this process, we have β(t) = 1 − nΔβ for nT < t < (n + 1)T. Substituting it into Eq. (5) we have

$${\dot{\rho }}_{I}=\mathrm{(1}-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu ){\rho }_{I}-\mathrm{(1}-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}){\rho }_{I}^{2}$$
(12)

Similarly, we divide \({\rho }_{I}^{2}\) on both sides of Eq. (12) and obtain

$$\frac{d\frac{1}{{\rho }_{I}}}{dt}=-\,\mathrm{(1}-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )\frac{1}{{\rho }_{I}}+\mathrm{(1}-{(n{\rm{\Delta }}\beta )}^{{k}_{I}})$$
(13)

The solution of Eq. (13) can be obtained as

$${\rho }_{I}(t)=(1-\frac{\mu }{1-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}})\frac{{c}_{1}{e}^{\mathrm{(1}-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )t}}{{c}_{1}{e}^{\mathrm{(1}-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )t}+1}$$
(14)

with t [nT, (n + 1)T]. Letting t = nT, we obtain

$$\frac{1}{{c}_{1}}=(\frac{1-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu }{1-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}}\frac{1}{{\rho }_{I}(nT)}-1){e}^{\mathrm{(1}-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )nT}$$
(15)

Substituting Eq. (15) into Eq. (14) and letting t = (n + 1)T, we obtain

$${\rho }_{I}((n+\mathrm{1)}T)=(1-\frac{\mu }{1-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}})\frac{{c}_{1}{e}^{\mathrm{(1}-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )(n+\mathrm{1)}T}}{{c}_{1}{e}^{\mathrm{(1}-{(n{\rm{\Delta }}\beta )}^{{k}_{I}}-\mu )(n+\mathrm{1)}T}+1}$$
(16)

So far, we have obtained the theoretical formulae Eqs (11) and (16) for the growing and recovering processes, respectively. Based on them, we can calculate \({S}_{{\rm{\Delta }}t}={\sum }_{t}({\rho }_{I}^{c}(t)-{\rho }_{I}^{g}(t))\), \({S}_{t}={\sum }_{t}({\rho }_{I}^{c}(t)+{\rho }_{I}^{g}(t))\), and their dependence on the two key parameters Δβ and T. The solid lines in Fig. 8(a–d) show the corresponding theoretical results, respectively. For comparison, we also put their corresponding numerical simulations, see the “squares”. We see that they are consistent with each other very well, indicating that the numerical results can be explained by the mean-field theory.

Figure 8
figure 8

(a) and (b) represent the dependence of SΔt on the two parameters Δβ and T in state space, respectively, where the “squares” denote the numerical simulations and the solid lines are the theoretical results from Eqs (11) and (16). (c) and (d) represent the corresponding S t of (a) and (b) in state space, respectively, where the “squares” denote the numerical simulations and the solid lines are the theoretical results from Eqs (11) and (16). The other parameters are the same as in Fig. 2(c) and (d).

Discussion

All the above results are based on the random ER network. Do they depend on the network topology? To check this robustness, we construct a scale-free (SF) network with the same size N = 10000 and the same average degree 〈k〉 = 6 as the ER network by the approach of ref.52. Based on this SF network, we have done the same process of numerical simulations as in the ER network and found the similar hysteresis loop and its dependence on the parameters Δβ and T with that of the ER network. Figure 9 shows the results, corresponding to Fig. 2. Comparing the corresponding panels between Figs 2 and 9, respectively, we see that they are all qualitatively similar to each other, confirming the robustness of the dependence of SΔt on Δβ and T.

Figure 9
figure 9

Hysteresis loops in state space for the case of SF network. (a) ρ I versus Δt for fixed T = 1 where the curves with “squares” and “circles” represent the cases of Δβ = 0.01 and 0.001, respectively. (b) ρ I versus Δt for fixed Δβ = 0.01 where the curves with “squares” and “circles” represent the cases of T = 1 and 5, respectively. (c) SΔt versus Δβ where the curves with “squares”, “circles” and “triangles” represent the cases of T = 1, 2 and 3, respectively. The inset shows the log-log plot. (d) SΔt versus T where the curves with “squares”, “circles” and “triangles” represent the cases of Δβ = 0.02, 0.01 and 0.005, respectively. The inset shows the log-log plot.

In detail, Fig. 10 shows the dependence of SΔt on both the parameters Δβ and T for the SF network. We see that for each fixed T, the relationship between SΔt and Δβ is similar to the curves in Fig. 9(c). At the same time, for each fixed Δβ, the relationship between SΔt and T is similar to the curves in Fig. 9(d). Thus, Fig. 10 confirms the result of Fig. 3 that SΔt is determined by the matching between Δβ and T.

Figure 10
figure 10

3D plot of the dependence of SΔt on the two parameters Δβ and T for the case of SF network where the other parameters are the same as in Fig. 9(c) and (d).

We now understand that the outbreaks in recurrent epidemic data can be described by two ways. One is the size of outbreak, represented by S t . For this one, it is mainly determined by the values of β and T. The other is the size of hysteresis loop, represented by SΔt, which is mainly determined by the matching of Δβ and T. Very interesting, we notice from Fig. 1(d) and (e) that there is a positive correlation between S t and SΔt, i.e. they show either larger or smaller values in most of the time. This correlation can be explained as follows. Because of the seasonal change of weather, the time period of epidemic outbreaks will be limited in a few months, see Fig. 1(a). Under this condition, a too small Δβ or too large T will not result in a larger accumulation of β, thus there will be no epidemic outbreak. With the increase of Δβ or decrease of T, the accumulation of β will increase to pass its critical value and thus result in an outbreak. At the same time, the increase of Δβ or decrease of T will make the system stay away from its steady state at each updated β and thus result in an increase of SΔt. In this sense, S t and SΔt can be unified in the same framework of Δβ and T, indicating that the hysteresis is a nature feature of epidemic outbreak in real case.

Basically, the existence of hysteresis loop is a memory effect from the adiabatical process. Without the adiabatical inheritance, for each concrete β, we will take random initial conditions for both the growing and recovering processes. In this way, the epidemic spreading will not have much difference between the growing and recovering processes for the case of either T > T c or T < T c , indicating that the adiabatical process is one necessary condition for the hysteresis loop. Another necessary condition is that the parameter β has to be updated before the system reaches its steady state, i.e. T < T c ; otherwise, there will no be difference between the growing and recovering processes when T > T c . Once these two conditions are satisfied, we will have the hysteresis loop. In details, for the case of adiabatical process with T < T c , its ρ I (T) will be less than the stabilized value of ρ I (T c ) in the growing process as β is updated before ρ I (T) grows to its stabilization ρ I (T c ), i.e. ρ I (T) < ρ I (T c ). While in the recovering process, its ρ I (T) will be larger than ρ I (T c ) as β is changed before ρ I (T) decreases to its stabilization, i.e. ρ I (T) ρ I (T c ). This distinction causes the hysteresis loop for ρ I (T c ). Thus, the area of hysteresis loop SΔt will be larger when the difference T c  − T is larger. On the other hand, the value of T c depends on Δβ, i.e. a larger Δβ corresponds to a larger T c . Therefore, a larger SΔt will come from either a larger Δβ or a smaller T, which make a shorter transient process at each updated β and thus make the system stay away from its steady state. While a smaller SΔt will come from either a smaller Δβ or a larger T, which make the system close to its steady state at each updated β.

Moreover, it is necessary to say a few more words on the differences between this work and that of ref.42. The main contributions of ref.42 are two aspects: (1) the finding of asymmetry between the growing and recovering processes; and (2) the explanation form the angle of hysteresis loop. However, the former is from the state space while the later is from the parameter space, i.e. an indirect explanation. This work gives an explanation to the hysteresis loop directly from the state space and find a positive correlation between S t and SΔt. Moreover, we reveal a paradox between the state and parameter spaces and show a way to explain it. These findings imply that more attention should be paid to the features of epidemics in state space in the future, in contrast to the majority focus of epidemics from parameter space in previous studies.

In conclusion, we have studied the hysteresis loop mainly in the state space. Based on the SIS model, we find that there is a phase transition between the states with and without hysteresis loop in recurrent epidemics and the transition is controlled by two parameters, i.e. Δβ and T. The system will be in the state of no hysteresis loop when either Δβ is small enough or T is large enough, and in the state with hysteresis loop, otherwise. We also find a positive correlation between the size of outbreak and the size of hysteresis loop. It is shown that both S t and SΔt depend on the parameters Δβ and T in power law, and Δβ and T take the inverse role for sustaining the hysteresis loop. Further, with the increase of T or the decrease of Δβ, a paradox of the area of hysteresis loop is observed, i.e. SΔt increases in the state space but S h decreases in the parameter space. This paradox can be unified by Eq. (3). However, this paradox may not appear when the evolutionary time is fixed and not long enough. A theoretical analysis is given to explain the numerical simulations.