Introduction

Breakthrough infection refers to the occurrence of infection by the corresponding pathogen after vaccination, indicating that the vaccine fails to confer complete immunity to the recipient1. Breakthrough infection is closely related to various immune response states such as immune failure, immune ineffectiveness, and immune decay2. Its occurrence is affected by multiple factors, including vaccine efficacy, the recipient’s own immunity, viral antigen variation, and individual differences. The occurrence of breakthrough infection makes it difficult for the vaccine protection rate to reach 100%3. Currently, vaccines for SARS-Cov-2, influenza, chickenpox, mumps and other viruses can lead to breakthrough infections4,5,6. Usually, the symptoms of breakthrough infection are milder than those of ordinary infection, and even asymptomatic infection may occur7,8.

Reinfection refers to a subsequent infection with the same virus or after recovery9,10 For example, COVID-19, influenza, HIV/AIDS, malaria, dengue fever, and other diseases all carry a risk of reinfection11,12,13,14,15 . Many people who have experienced multiple COVID-19 infections experience milder symptoms due to immunity from prior infections. Though exceptions exist primarily immunocompromised individuals, the elderly, or those with a history of severe infection16. Many people who had a severe first infection may be hospitalized or need to go to the hospital again because of reinfection17. For example, people living with HIV have a higher rate of reinfection than those without HIV18,19.

Breakthrough infections and reinfection are key factors driving disease recurrence, as evidenced by the large-scale COVID-19 waves observed from late 2021 to 2022. As the virus continues to evolve, the emergence of novel variants capable of evading existing immunity may further increase the risks of breakthrough infection and reinfection20. This study aims to investigate the impact of these factors on disease transmission dynamics and the effectiveness of control measures.

Mathematical models are indispensable for understanding the dynamics of infectious disease transmission and forecasting epidemic trajectories. In particular, models that account for breakthrough infections and reinfection have been the subject of extensive study. In infectious disease modeling, breakthrough infections have been increasingly recognized as a critical factor shaping transmission dynamics and control effectiveness. Perkins et al. developed a stochastic dengue model, demonstrating the substantial impact of breakthrough infections on vaccination effectiveness and underscoring the need to integrate this factor into such models21. Azimaqin et al. proposed an age-structured model to investigate the 2015 mumps resurgence in China, linking the outbreak to vaccine failure, seasonal effects, and shifts in population structure22. Xu et al. established a dynamic transmission model using Chinese hepatitis B data, highlighting that increasing vaccination rates could significantly enhance disease control23. Elbasha et al. introduced a vaccination model with waning immunity, showing that backward bifurcation may occur when vaccine protection is partial and its duration falls below a critical threshold24. Yuliana et al. analyzed an SIVS model under vaccine failure, concluding that breakthrough infections substantially contribute to sustained high transmission25. Finally, Jing et al. developed a COVID-19 model incorporating breakthrough infection and age structure, emphasizing that high vaccine coverage combined with effective antiviral drugs is essential to achieve disease eradication26.

In the study of reinfection in infectious disease modeling, several works have provided critical insights. Montalban et al. developed a herd immunity model incorporating individual heterogeneity and reinfection, demonstrating that epidemic growth can be effectively suppressed once the proportion of immune population exceeds the herd immunity threshold27. Rehman et al. proposed a fractional-order malaria model accounting for memory effects, relapse, and reinfection, identifying vaccination as a key factor in preventing disease recurrence28. Anggriani et al. introduced a multi-strain dengue model, showing that reinfection with the same serotype elevates both primary and secondary case numbers29. Gomes et al. compared SIR and SIS frameworks to evaluate the impact of post-recovery immunity, revealing that below the reinfection threshold, primary infections dominate with low incidence, whereas above it, reinfection drives high infection levels30. Agusto developed an Ebola model incorporating recurrence and reinfection, identifying reinfection as a trigger for backward bifurcation31. Rodrigues et al. assessed tuberculosis risks under partial immunity, indicating that the average reinfection rate may exceed that of primary infections32. In response to recurrent hepatitis B outbreaks, Megala et al. integrated reinfection with Crowley-Martin incidence and ongoing vaccination, underscoring the combined influence of vaccination, reinfection, and preventive measures on HBV transmission dynamics33.

Extensive research has confirmed the critical role of breakthrough infections and reinfection in shaping disease dynamics and complicating control initiatives. Notably, several major infectious diseases—such as COVID-19, influenza, and dengue exhibit both phenomena concurrently. Nevertheless, existing modeling frameworks have largely failed to integrate these two mechanisms into a unified structure, leaving a notable gap in the development of effective and feasible intervention strategies. To address this limitation, we develop an epidemic model that simultaneously incorporates breakthrough infections and reinfection, and employ bang-bang optimal control as the central strategy for intervention design. A key advantage of the bang-bang approach lies in its “all-or-nothing” switching nature, which offers public health authorities clear, implementable, and resource efficient phased control policies. Our study aims not only to enhance the realism of disease transmission modeling but also to provide a theoretical foundation and practical strategy for deploying intensity-varying control measures in resource-constrained scenarios.

This paper is organized as follows. Firstly, an infectious disease model with breakthrough infection and reinfection is established, and we derive the basic reproduction number, prove the local stability of the disease-free equilibrium and the existence of backward bifurcations. Secondly, the theoretical results are verified by combining numerical simulations. Bang-Bang optimal control of the minimum-time problem is applied to the model to prove the existence of the optimal solution. Finally, a simulation research of Bang-Bang control is conducted to compare various control strategies to find the optimal strategy to control the disease in the shortest time.

Mathematical modelling

The population is divided into four categories, susceptible, vaccinated, infected, and recovered, with S(t), V(t), I(t), and R(t) representing the number of individuals in each class at time t. The disease transmission flow chart considering breakthrough infection and reinfection is shown in Fig. 1.

Fig. 1
Fig. 1The alternative text for this image may have been generated using AI.
Full size image

Flow chart of disease transmission.

According to Fig. 1, the model can be expressed as

$$\begin{aligned} {\left\{ \begin{array}{ll} \frac{dS}{dt} =-\frac{\beta SI}{N}-\alpha S+\theta V+\gamma R,\\ \frac{dV}{dt} =-\frac{\sigma \beta VI}{N}-\theta V+\alpha S,\\ \frac{dI}{dt} =\frac{\beta \left( S+\sigma V+\epsilon R\right) I}{N}-\eta I,\\ \frac{dR}{dt} =\eta I-\frac{\beta \epsilon RI}{N}-\gamma R,\\ \end{array}\right. } \end{aligned}$$
(1)

where \(N=S+V+I+R\). The description of parameters in system (1) is given in Table 1 .

System (1) incorporates breakthrough infection and reinfection into the dynamic system by introducing two key parameters. Breakthrough infection is characterized by the parameter \(\sigma \in [0,1]\), which represents the failure rate of the vaccine. When \(\sigma =0\) , the vaccine provides complete protection, indicating no breakthrough infections; when \(\sigma =1\), vaccinated have the same risk of infection as susceptible. Reinfection is described by the parameter \(\epsilon \in [0,1]\), which represents the failure rate of natural immunity of recovered. \(\epsilon > 0\) means that recovered may be reinfected due to incomplete or weakened immunity. Furthermore, the model also includes the process of waning immunity. Vaccinated lose vaccine-induced protection at a rate of \(\theta\), and recovered lose natural immunity at a rate of \(\gamma\), both returning to the susceptible compartment. This system (1) characterizes both breakthrough infections and reinfections through the imperfectness and waning nature of immune protection.

Table 1 Description of parameters in system (1).

Basic reproduction number

Lemma 1

Assuming that the initial conditions (S(0), V(0), I(0), R(0)) of system (1) are non-negative, then

$$\begin{aligned} \Gamma =\left\{ (S,V,I,R)\in R_4^+|0\le S+V+I+R=C\right\} , \end{aligned}$$

is a positively invariant set for system (1), where C is a constant.

See Appendix for the proof process of Lemma 1.

Let \(s=\frac{S}{N}\), \(v=\frac{V}{N}\), \(i=\frac{I}{N}\), \(r=\frac{R}{N}\), then \(s+v+i+r=1\). Normalize system (1) and substituting \(r=1-s-v-i\) into system (1), we obtain,

$$\begin{aligned} {\left\{ \begin{array}{ll} \frac{ds}{dt} =-\beta si-\alpha s+\theta v+\gamma (1-s-v-i),\\ \frac{dv}{dt} =-\sigma \beta vi-\theta v+\alpha s,\\ \frac{di}{dt} =\beta \left[ s+\sigma v+\epsilon (1-s-v-i)\right] i-\eta i.\\ \end{array}\right. } \end{aligned}$$
(2)

Obviously, the positive invariant set of system (2) is \(\Omega =\left\{ (s,v,i)\in R_3^+|0\le s+v+i\le 1\right\}\). This paper will analyze the system (2). It explains that system (2) is equivalent to system (1).

Let the right side of system (2) equal to 0, and we can get the disease-free equilibrium \(P_0=\left( \frac{\theta }{\alpha +\theta }, \frac{\alpha }{\alpha +\theta }, 0\right)\). Next, we use the next generation matrix method to give the basic reproduction number of system (2)34. First, consider the following two vectors

$$\begin{aligned} f = \left( \begin{array}{c} 0\\ 0\\ \beta \left[ s+\sigma v+\epsilon (1-s-v-i)\right] i \\ \end{array} \right) , g = \left( \begin{array}{c} \beta si+\alpha s-\theta v-\gamma (1-s-v-i)\\ \sigma \beta vi+\theta v-\alpha s \\ \eta i \end{array} \right) , \end{aligned}$$

The Jacobian matrices of vectors f and g at the disease-free equilibrium \(P_0\) are

$$\begin{aligned} F = \left( \begin{array}{cccc} 0 & 0 & 0\\ 0 & 0 & 0\\ 0 & 0 & \frac{\beta \left( \sigma \alpha +\theta \right) }{\alpha +\theta } \end{array} \right) , G = \left( \begin{array}{cccc} \alpha +\gamma & -\theta +\gamma & \frac{\beta \theta }{\alpha +\theta }+\gamma \\ -\alpha & \theta & \frac{\beta \sigma \alpha }{\alpha +\theta } \\ 0 & 0 & \eta \end{array} \right) . \end{aligned}$$

The inverse of the matrix G is

$$\begin{aligned} G^{-1} = \left( \begin{array}{ccc} \frac{\theta }{\gamma (\alpha +\theta )} & \frac{\theta -\gamma }{\gamma (\alpha +\theta )} & \frac{-(\beta +\gamma )\theta ^2-(\beta \sigma +\gamma )\alpha \theta +\alpha \beta \gamma \sigma }{\gamma (\alpha +\theta )^2\eta } \\ \frac{\alpha }{\gamma (\alpha +\theta )} & \frac{\alpha +\gamma }{\gamma (\alpha +\theta )} & -\frac{\alpha \left[ (\beta \sigma +\gamma )\alpha +(\beta \sigma +\theta )\gamma +\beta \theta \right] }{\gamma (\alpha +\theta )^2\eta }\\ 0 & 0 & \frac{1}{\eta } \end{array} \right) , \end{aligned}$$

Then, accoroding to the next generation approach, the basic reproduction number is given as \(R_0=\rho (FG^{-1})=\frac{\beta \left( \sigma \alpha +\theta \right) }{\eta (\alpha +\theta )}\).

Stability of disease-free equilibrium

Theorem 1

When \(R_0<1\), the disease-free equilibrium \(P_0\) of system (2) is locally asymptotically stable. When \(R_0=1\) and \(R_0 \ne R_*\) \(\left( R_*=\frac{[(\alpha \sigma +\theta )(\gamma +\eta )+\gamma \eta \sigma ](\alpha \sigma +\theta )}{\eta (\alpha +\theta )[(\alpha \sigma +\theta )\epsilon +\gamma \sigma ]}\right)\), the disease-free equilibrium \(P_0\) is a saddle node. When \(R_0=1\) and \(R_0 = R_*\), the disease-free equilibrium \(P_0\) is a stable node. When \(R_0>1\), the disease-free equilibrium \(P_0\) of system (2) is unstable.

See Appendix for the proof process of Theorem 1.

Existence of endemic equilibria

First, let the right side of system (2) equal to 0,

$$\begin{aligned} {\left\{ \begin{array}{ll} -\beta si-\alpha s+\theta v+\gamma (1-s-v-i)=0,\\ -\sigma \beta vi-\theta v+\alpha s=0,\\ \beta \left[ s+\sigma v+\epsilon (1-s-v-i)\right] i-\eta i=0.\\ \end{array}\right. } \end{aligned}$$
(3)

Solving Eq. (3) yields

$$\begin{aligned} s=\frac{(\beta i \sigma +\theta )\gamma (1-i)}{\beta ^2i^2\sigma +\beta (\alpha \sigma +\gamma \sigma +\theta )i+\gamma (\alpha +\theta )}, v=\frac{\alpha \gamma (1-i)}{\beta ^2i^2\sigma +\beta (\alpha \sigma +\gamma \sigma +\theta )i+\gamma (\alpha +\theta )}. \end{aligned}$$
(4)

Substituting formula (4) into the third equation of system (3) yields

$$\begin{aligned} F(i)=b_3i^{3}+b_2i^{2}+b_1i+b_0=0, \end{aligned}$$
(5)

where

$$\begin{aligned} b_3&=\beta ^3\epsilon \sigma >0, b_2=\beta ^2\left[ (-\beta \epsilon +\alpha \epsilon +\eta +\gamma )\sigma +\epsilon \theta \right] , \\ b_1&=\beta \left[ \sigma (\gamma (\eta -\beta +\alpha )+\alpha (-\epsilon \beta +\eta ))+\theta (-\epsilon \beta +\eta +\gamma )\right] , b_0=\gamma \eta (\alpha +\theta )(1-R_0). \end{aligned}$$

Case \(R_0=1\)

Next, We first discuss case \(R_0=1\) in which

$$\begin{aligned} b_0&=0, b_1=\frac{(\alpha +\theta )\eta }{(\sigma \alpha +\theta )^2}\left[ (\eta +\gamma )(\alpha \sigma +\theta )^2+\alpha \gamma (\sigma ^2-\sigma )-\eta (\alpha +\theta )(\alpha \sigma +\theta )\epsilon \right] , \\ b_2&=\frac{(\alpha +\theta )^2\eta ^2}{(\sigma \alpha +\theta )^3}\left[ (\alpha \sigma +\theta )(\eta +\gamma )\sigma +(\alpha \sigma +\theta )^2\epsilon -\epsilon \eta \sigma (\alpha +\theta )\right] , \end{aligned}$$

the roots of equation (5) are

$$\begin{aligned} i_{01}=\frac{-b_2+\sqrt{b_2^2-4b_1b_3}}{2b_3}, i_{02}=\frac{-b_2-\sqrt{b_2^2-4b_1b_3}}{2b_3} , i_{03}=0. \end{aligned}$$
  1. (a)

    If \(b_1<0\), then \(R_0>R_*\) and \(i_{02}<0\). Equation (5) has a unique positive root \(i_{01}\). It is obvious that \(i_{01}\in [0,1]\). Then system (2) has an endemic equilibrium \(P_{3}\) in \(\Omega\), where

    $$\begin{aligned} P_{3}=\left( \frac{(\beta i_{01} \sigma +\theta )\gamma (1-i_{01})}{\beta ^2i_{01}^2\sigma +\beta (\alpha \sigma +\gamma \sigma +\theta )i_{01}+\gamma (\alpha +\theta )}, \frac{\alpha \gamma (1-i_{01})}{\beta ^2i_{01}^2\sigma +\beta (\alpha \sigma +\gamma \sigma +\theta )i_{01}+\gamma (\alpha +\theta )}, i_{01}\right) . \end{aligned}$$
  2. (b)

    If \(b_1=0\), then \(R_0 = R_*\), that is \((\alpha \sigma +\theta )(\gamma +\eta )=\frac{\eta (\alpha +\theta ) (\alpha \sigma +\theta )\epsilon +\alpha \gamma (\sigma -\sigma ^2)}{\alpha \sigma +\theta }\), \(b_2=\frac{(\alpha +\theta )^2\eta ^2}{(\alpha \sigma +\theta )^3} \left[ \frac{\alpha \gamma \sigma (\sigma -\sigma ^2)}{\alpha \sigma +\theta } +(\alpha \sigma +\theta )^2\epsilon \right] .\) Therefore, \(b_2\ge 0\). Furthermore, it can be seen that Eq. (5) does not have any positive roots.

  3. (c)

    If \(b_1>0\), then \(R_0 < R_*\), \((\alpha \sigma +\theta )(\gamma +\eta )>\frac{\eta (\alpha +\theta ) (\alpha \sigma +\theta )\epsilon +\alpha \gamma (\sigma -\sigma ^2)}{\alpha \sigma +\theta }\). So

    $$\begin{aligned} b_2>\frac{(\alpha +\theta )^2\eta ^2}{(\alpha \sigma +\theta )^3}\left[ \frac{\alpha \gamma \sigma (\sigma -\sigma ^2)}{\alpha \sigma +\theta } +(\alpha \sigma +\theta )^2\epsilon \right] \ge 0. \end{aligned}$$

    Therefore, Eq. (5) does not have any positive roots.

Case \(R_0<1\)

When \(R_0<1\), \(b_0>0\). The necessary and sufficient conditions for \(b_1=0\) is \(R_0=R_*\).

  1. (a)

    If \(R_*>1\), then \(0<R_0<1<R_*\), \(b_1>0\). Furthermore \(\beta <\frac{(\alpha \sigma +\theta ) (\gamma +\eta )+\gamma \eta \sigma }{(\alpha \sigma +\theta )\epsilon +\gamma \sigma }\),

    $$\begin{aligned} \begin{aligned}&\quad (-\beta \epsilon +\alpha \epsilon +\eta +\gamma )\sigma +\epsilon \theta \\&>(\frac{1}{(\alpha \sigma +\theta )\epsilon +\gamma \sigma }\left\{ (\alpha \sigma +\theta )^2\epsilon ^2+\gamma \sigma (\alpha \sigma +\theta )\epsilon +\gamma ^2\sigma ^2 +\eta \gamma \sigma ^2(1-\epsilon )\right\} \ge 0. \end{aligned} \end{aligned}$$

    Therefore, \(b_2\ge 0\). It can be seen that Eq. (5) does not have any positive roots.

  2. (b)

    If \(R_0<R_*=1\), then \(b_1=0\), further \(b_2\ge 0\), so Eq. (5) does not have positive roots.

  3. (c)

    If \(R_*<1\).

When \(0<R_0<R_{*}<1\), \(b_1>0\), it has \(b_2\ge 0\). So Eq. (5) does not have positive roots.

When \(0<R_*<R_{0}<1\), \(b_1<0\), taking partial derivatives of both sides of Eq. (5) with respect to i, we can obtain

$$\begin{aligned} G(i)=3b_3i^2+2b_2i+b_1=0. \end{aligned}$$
(6)

The two real roots of Eq. (6) are

$$\begin{aligned} i_{11}=\frac{-b_2+\sqrt{b_2^2-3b_1b_3}}{3b_3}, i_{12}=\frac{-b_2-\sqrt{b_2^2-3b_1b_3}}{3b_3}. \end{aligned}$$

Then the necessary and sufficient conditions for the existence of positive roots of Eq. (5) is \(b_3i_{11}^3+b_2i_{11}^2+b_1i_{11}+b_0\le 0\), that is, \(R_0\ge R_{**}\), where

$$\begin{aligned} \begin{aligned}&\quad R_{**}=1+\frac{\left( -b_2+\sqrt{-3b_1b_3+b_2^2}\right) \left( 6b_1b_3-b_2^2+b_2\sqrt{-3b_1b_3+b_2^2}\right) }{27b_3^2\gamma \eta (\alpha +\theta )} (R_{**}<1). \end{aligned} \end{aligned}$$

If \(R_0<R_{**}\), \(b_3i_{11}^3+b_2i_{11}^2+b_1i_{11}+b_0>0\). Thus, Eq. (5) does not have positive roots.

When \(0<R_*<R_{0}<1\) and \(R_0=R_{**}\), it has \(b_1<0\) and \(b_3i_{11}^3+b_2i_{11}^2+b_1i_{11}+b_0=0\). Therefore, Eq. (5) has a positive root \(i_1\), as shown in Fig. 2a, and system (2) has an endemic equilibrium \(P_1\) in \(\Omega\), where

$$\begin{aligned} P_1&=\left( \frac{(\beta i_{11} \sigma +\theta )\gamma (1-i_{11})}{\beta ^2i_{11}^2\sigma +\beta (\alpha \sigma +\gamma \sigma +\theta )i_{11}+\gamma (\alpha +\theta )}, \frac{\alpha \gamma (1-i_{11})}{\beta ^2i_{11}^2\sigma +\beta (\alpha \sigma +\gamma \sigma +\theta )i_{11}+\gamma (\alpha +\theta )}, i_{11}\right) , \\ i_{11}&=\frac{-b_2+\sqrt{b_2^2-3b_1b_3}}{3b_3}, i_{11}\in [0,1] \end{aligned}$$

When \(0<R_*<R_{0}<1\) and \(R_0>R_{**}\), it has \(b_1<0\) and \(b_3i_1^3+b_2i_1^2+b_1i_1+b_0<0\). Then, Eq. (5) has three different real roots, as shown in Fig. 2b. One of them is negative, and the other two are positive real roots, namely \(i_2\) and \(i_3\).

Fig. 2
Fig. 2The alternative text for this image may have been generated using AI.
Full size image

When \(R_*<R_0<1\), the existence of the root of Eq. (5) under different conditions. (a) \(R_0=R_{**}\), (b) \(R_0>R_{**}\).

Therefore, system (2) has two endemic equilibrium \(P_2\) and \(P_3\) respectively

$$\begin{aligned} P_2&=\left( \frac{(\beta i_{2} \sigma +\theta )\gamma (1-i_{2})}{\beta ^2i_{2}^2\sigma +\beta (\alpha \sigma +\gamma \sigma +\theta )i_{2}+\gamma (\alpha +\theta )}, \frac{\alpha \gamma (1-i_{2})}{\beta ^2i_{2}^2\sigma +\beta (\alpha \sigma +\gamma \sigma +\theta )i_{2}+\gamma (\alpha +\theta )}, i_{2}\right) , \\ P_3&=\left( \frac{(\beta i_{3} \sigma +\theta )\gamma (1-i_{3})}{\beta ^2i_{3}^2\sigma +\beta (\alpha \sigma +\gamma \sigma +\theta )i_{3}+\gamma (\alpha +\theta )}, \frac{\alpha \gamma (1-i_{3})}{\beta ^2i_{3}^2\sigma +\beta (\alpha \sigma +\gamma \sigma +\theta )i_{3}+\gamma (\alpha +\theta )}, i_{3}\right) . \end{aligned}$$

When \(i=1\), \(F(1)=\eta \left[ \beta ^2\sigma +(\alpha \sigma +\gamma \sigma +\theta )\beta +\gamma (\alpha +\theta )\right] >0\), so \(i_2,i_3\in [0,1]\).

Case \(R_0>1\)

In this section, we will discuss the existence of endemic equilibria in system (2) when \(R_0>1\). If \(R_0>1\), then \(b_0<0\). It is clear that Eq. (5) has at least one positive root.

  1. (i)

    If \(R_*\ge R_0>1\), then \(b_1>0\), \(b_2>0\). As shown in Fig. 3b, c, in the positive semi-axis region of the x-axis, F(i) will monotonically increase from \(b_0\) and cross the x-axis into the first quadrant, so Eq. (5) has a positive root.

  2. (ii)

    If \(R_*<R_0\), then \(b_1<0\). As shown in Fig. 3a, in the positive half-axis region of the x-axis, F(i) is a concave function. It initially decreases monotonically from \(b_0\)(\(b_0<0\)) to a limit, and then increases to a positive value. It is easy to see that Eq. (5) has only one positive root \(i_1^*\).

When \(i=1\), since \(F(1)>0\). In summary, when \(R_0>1\), system (2) has a endemic equilibrium \(P_3\) in \(\Omega\).

Fig. 3
Fig. 3The alternative text for this image may have been generated using AI.
Full size image

When \(R_0>1\), the existence of the root of Eq. (5) under different conditions. (a) \(R_*<R_0\), (b) \(R_*>R_0\), (c) \(R_*=R_0\).

Stability of endemic equilibria

Theorem 2

When \(R_{**}<R_{0}<1\) and \(R_*<R_0\), the endemic equilibrium \(P_2\) of system (2) is unstable.

See Appendix for the proof process of Theorem 2.

Theorem 3

If \(\sigma =0\), when \(R_*\ge 1\) and \(R_{0}>1\), or \(R_{**}<R_{0}\), \(R_*<R_0\) and \(R_*<1\), the endemic equilibrium \(P_3\) of system (2) is locally asymptotically stable.

See Appendix for the proof process of Theorem 3.

Next, the existence and stability conditions of equilibria of system (2)under different conditions are summarized in Table 2.

Table 2 Existence and stability of equilibria of system (2).

Numerical simulation

In this section, we will verify the theoretical results in “Stability of endemic equilibria” through numerical simulations. From Fig. 4, we can see that when \(R_0=1\) and \(R_*\ge 1\), the disease-free equilibrium \(P_0\) is stable. When \(R_0=1\) and \(R_*<1\), the disease-free equilibrium \(P_0\) is unstable, and the endemic equilibrium \(P_{3}\) is stable. From Fig. 5, we can see that when \(R_0<1\), \(R_*\ge 1\) or \(R_*<1\) and \(R_{**}>R_0\), the disease-free equilibrium \(P_0\) is stable. When \(R_*<1\) and \(R_{**}=R_0<1\), the disease-free equilibrium \(P_0\) and the endemic equilibrium \(P_{1}\) are bistable. When \(R_*<1\) and \(R_{**}<R_0<1\), the endemic equilibrium \(P_2\) is unstable, \(P_0\) and \(P_{3}\) are bistable.

Fig. 4
Fig. 4The alternative text for this image may have been generated using AI.
Full size image

When \(R_0=1\), the phase diagram of system (2) under different conditions. (a) \(R_*=1\). (b) \(R_*<1\). (c) \(R_*>1\). The red dots represent the disease-free equilibrium \(P_0\), and the green dots represent the endemic equilibrium \(P_{3}\). The values of the parameters are given in the text, as well as in other figures.

Next, we use the Matcont package in Matlab to draw the bifurcations diagram of system (2). We set the parameters as \(\beta =0.25\), \(\epsilon =0.8\), \(\sigma =0.1\), \(\theta =0.001\), \(\gamma =0.05\), \(\eta =\frac{1}{7}\), \(\alpha =0.01\). Then, \(R_0=0.9625<1\), \(R_*=0.7911<1\). The corresponding backward bifurcations diagram is shown in Fig. 6b. Taking parameters \(\epsilon =0.3\), \(R_0=0.9625<1\), \(R_*=1.3154>1\), the corresponding forward bifurcations diagram is shown in Fig. 6a. From Fig. 7, we can see that when \(\sigma\) and \(\epsilon\) are very small, that is, when the breakthrough infection and reinfection rates are very low, the disease will be extinct and will not become endemic. When the initial value is set to (0.5, 0.4, 0.08), Fig. 8 shows the change of infected people over time under different values of \(\sigma\) and \(\epsilon\). When the parameter value exceeds the red interface or the value of the red dotted line, the disease will break out on a large scale, otherwise the disease will be a small epidemic or extinction. When the disease is prevalent, improving the immunity of the vaccine and reducing breakthrough infection play a vital role in epidemic prevention and control. Strengthening the natural immunity of the recovered and reducing the reinfection rate can reduce the final epidemic scale of the disease, but the disease cannot be eradicated.

Fig. 5
Fig. 5The alternative text for this image may have been generated using AI.
Full size image

When \(R_0<1\), the phase diagram of system (2) under different conditions. (a) \(R_*\ge 1\). (b) \(R_*<1\) and \(R_{**}<R_0\). (c) \(R_*<1\) and \(R_{**}=R_0\). (d) \(R_*>1\) and \(R_{**}=R_0\). The red point represents the disease-free equilibrium \(P_0\), and the yellow, purple and green points represent the endemic equilibria \(P_{1}\), \(P_{2}\) and \(P_{3}\), respectively.

Fig. 6
Fig. 6The alternative text for this image may have been generated using AI.
Full size image

Bifurcations diagrams under different conditions. (a) \(R_*\ge 1\). (b) \(R_*< 1\). The dotted line indicates an unstable equilibrium, and the solid line indicates a stable equilibrium.

Fig. 7
Fig. 7The alternative text for this image may have been generated using AI.
Full size image

The change of equilibrium i under different \(\sigma\) and \(\epsilon\). The equilibrium in the red area is equal to 0.

Fig. 8
Fig. 8The alternative text for this image may have been generated using AI.
Full size image

The change of infected i(t) over time under different \(\sigma\) and \(\epsilon\).

When \(\sigma =0\), \(R_*=\frac{\theta (\gamma +\eta )}{\eta (\alpha +\theta )\epsilon }\). When \(\epsilon =0\), \(R_*=\frac{[(\alpha \sigma +\theta ) (\gamma +\eta )+\gamma \eta \sigma ] (\alpha \sigma +\theta )}{\gamma \eta \sigma (\alpha +\theta )}\). Take \(\theta =0.005\), then \(R_0=2.56\). From Fig. 9, we can see that when at least one of \(\sigma\) and \(\epsilon\) is not 0, system (2) may have a backward bifurcations. However, when \(\sigma\) and \(\epsilon\) are both 0, system (2) will have no backward bifurcations.

Fig. 9
Fig. 9The alternative text for this image may have been generated using AI.
Full size image

Relationship between \(\sigma\), \(\epsilon\) and \(R_*\) under different conditions. (a) \(\gamma =0.05\). (b) \(\gamma =0.0333\). (c) \(\gamma =0.0083\).

Optimal control

In this section, we will investigate a formalized time control problem. First, we propose a definition of disease eradication time for an infectious disease system.

Definition 1

The disease eradication time T of an infectious disease system is the moment when the number of infected first reaches a threshold k (\(0<k<\frac{1}{N}\)), where N is the total population.

In order to make Definition 1 meaningful, we choose the initial value of the number of infected in system (2) to be strictly greater than k. T is the time when the number of infected i(t) drops to k for the first time, that is, \(T=\text {inf}\left\{ t>0|i(t)=k\right\}\). From a biological perspective, setting the condition \(k<\frac{1}{N}\) to determine the disease eradication time means that the disease will become extinct when the number of infected is less than 1.

Based on system (7), the following three parameters are considered as control variables

  1. (i)

    \(u_1(t)\in U\) indicates the percentage of infection rate reduction due to reduced detection by wearing masks, maintaining social distance, et al.

  2. (ii)

    \(u_2(t)\in U\) indicates increasing vaccination rates among susceptible;

  3. (iii)

    \(u_3(t)\in U\) indicates that the protection rate of the vaccine is improved.

Where \(U=\left\{ u_1, u_2, u_3|0\le u_1, u_2, u_3 \le 1\right\}\) is control set. Our goal is to eradicate the disease in the shortest possible time. The corresponding state equation is

$$\begin{aligned} {\left\{ \begin{array}{ll} \frac{ds}{dt} =-\left( 1-u_1\right) \beta si-u_2 s+\theta v+\gamma (1-s-v-i),\\ \frac{dv}{dt} =-\left( 1-u_1\right) \left( 1-u_3\right) \sigma \beta vi-\theta v+u_2 s,\\ \frac{di}{dt} =\left( 1-u_1\right) \beta \left[ s+\left( 1-u_3\right) \sigma v+\epsilon (1-s-v-i)\right] i-\eta i.\\ \end{array}\right. } \end{aligned}$$
(7)

Let \(\vec {x}(t)=(s(t), v(t), i(t))\), \(\vec {u}(t)=(u_1(t), u_2(t), u_3(t))^{T}\),

$$\begin{aligned} \vec {f}(t,\vec {x},\vec {u})=\left( \begin{array}{c} -\left( 1-u_1\right) \beta si-u_2 s+\theta v+\gamma (1-s-v-i)\\ -\left( 1-u_1\right) \left( 1-u_3\right) \sigma \beta vi-\theta v+u_2 s\\ \left( 1-u_1\right) \beta \left[ s+\left( 1-u_3\right) \sigma v+\epsilon (1-s-v-i)\right] i-\eta i \end{array} \right) , \end{aligned}$$

then, system (7) can be rewritten as \(\vec {x}'=\vec {f}(t,\vec {x},\vec {u}), \vec {x}(0)=x^0\). For system (7), we set the initial conditions to \(i(0)>k\), \(s(0)>0\) or \(v(0)>0.\) Under this initial condition, the solution of system (7) is represented by \(\vec {x}(t)\), and its set is marked as X.

Eradicating the disease in the shortest possible time is of great significance. To achieve this goal, we study the following time optimal control problem: \(J(u)={\bf {min}}\int _{0}^{T} 1dt, i(T)=k\).

Existence of the optimal solution

Next, according to Theorem 4.1 and the corollary method in reference35, we prove that system (7) has sufficient conditions for optimal control. This is shown in Lemma 2 below.

Lemma 2

For the time optimal control problem, there exists an optimal control \(\vec {u}^*(t)\).

See Appendix for the proof process of Lemma 2.

Theorem 4

If \(\vec {u}^*(t)\) is the minimum value of the time-optimal control problem, then \(\vec {u}^*(t)\) is a Bang-Bang control.

See Appendix for the proof process of Theorem 3.

Simulation of optimal control

In this summary, we use the fmincon function to simulate Bang-Bang control. Here, the initial value and parameter values of system (2) in the simulation research are set as \(s(0)=0.4\), \(v(0)=0.5\), \(i(0)=0.1\), \(\beta =0.9\), \(\epsilon =0.4\), \(\sigma =0.1\), \(\theta =0.02\), \(\gamma =0.001\), \(\eta =0.1667\), \(\alpha =0.01\) \(k=1\times 10^{-3}\). Then, \(R_0=3.7792>1\). In real life, every control measure cannot reach 100%, so it is assumed that \(u_{i\text {min}}=0\), \(u_{i\text {max}}=0.98\), where \(i=1,2,3\). The control goal is to control the spread of the disease as much as possible in the shortest time. Next, the disease prevalence under various control measures is compared to find the best prevention and control measure. Figures 11, 12, 13, 14, 15, 16 and 17 show the dynamic changes of infected under no control measures and different control measures. Table3 shows the disease control time and cumulative infection proportion corresponding to each control measure.

Fig. 10
Fig. 10The alternative text for this image may have been generated using AI.
Full size image

Without any control measures, the changes of state variables s, v, and i over time.

Fig. 11
Fig. 11The alternative text for this image may have been generated using AI.
Full size image

Considering only the control of the infection rate, the changes of the control variable \(u_1\) and the state variables s, v, i over time.

Fig. 12
Fig. 12The alternative text for this image may have been generated using AI.
Full size image

Considering only the vaccination rate, the change of control variable \(u_2\) and state variables s, v, i over time.

Fig. 13
Fig. 13The alternative text for this image may have been generated using AI.
Full size image

Considering only the control of vaccine protection rate, the change of control variable \(u_3\) and state variables s, v, i over time.

Fig. 14
Fig. 14The alternative text for this image may have been generated using AI.
Full size image

Considering the control of infection rate and vaccination rate, the change of control variables \(u_1\), \(u_2\) and state variables s, v, i over time.

From Fig. 10, we can see that if no control measures are taken, the disease will become endemic with a high prevalence trend. When only the vaccination rate is increased without implementing other control strategies, as shown in Fig. 12, the disease will be controlled in a short period of time, but the vaccine protection rate will gradually weaken over time, and the negligence of protective measures will cause the recurrence of the disease. However, even if the vaccine protection rate is increased for a long time without strengthening the vaccination rate through publicity and education, as shown in Fig. 13, the disease will not be controlled, it will continue to exist and become endemic. As shown in Fig. 11, if social distance, mask wearing, and reduced outdoor activities are taken in the short term, the epidemic can be effectively controlled at time \(t=3.15\). From Figs. 14, 15 and 16, we can see that the disease can be quickly controlled when two control strategies are considered simultaneously. Among them, controlling the infection rate and increasing the vaccination rate take the shortest time to reach the control target, while controlling the infection rate and increasing the vaccine protection rate take the longest time to reach the control target, and it takes a period of time in the early stage to be controlled, which may be related to the relatively low vaccination rate.

Fig. 15
Fig. 15The alternative text for this image may have been generated using AI.
Full size image

Considering the control of infection rate and vaccine protection rate, the change of control variables \(u_1\), \(u_3\) and state variables s, v, i over time.

Fig. 16
Fig. 16The alternative text for this image may have been generated using AI.
Full size image

Considering the control of vaccination rate and protection rate, the change of control variables \(u_2\), \(u_3\) and state variables s, v, i over time.

Fig. 17
Fig. 17The alternative text for this image may have been generated using AI.
Full size image

Considering all control measures, the changes of control variables \(u_1\), \(u_2\), \(u_3\) and state variables s, v, i over time.

Table 3 Duration of disease control and cumulative infection proportion in different control measures.

If the three control measures are considered at the same time, as shown in Fig. 17, it can be found that the control target is achieved at time \(t=2.835\), and the control time is often shorter. Table 3 shows that by implementing all control strategies, the disease containment target can be achieved in the shortest possible time while minimizing the cumulative infection scale. Therefore, in order to control the spread of the disease in the short term, when the epidemic comes, it must strengthen the propaganda of infectious disease prevention and control, and reduce contact with infected people through non-drug intervention measures such as wearing masks, maintain social distance, and reduce going out, especially for patients in the recovery period to prevent secondary outbreaks. With the continuous emergence and threat of new and recurrent infectious diseases, in order to prevent and control the spread of diseases in the long term, it is necessary to develop infectious disease vaccines with high immunity, so as to effectively prevent and control the continuous occurrence of diseases. Although the long-term implementation of prevention and control measures can curb the continuous spread of diseases, it will also cause waste of resources and even seriously interfere with the normal operation of the economy and society. However, Bang-Bang control provides an effective strategy, which can achieve the effect of disease prevention and control by implementing prevention and control strategies in a very short time.

Conclusion

In order to investigate the impact of breakthrough infection and reinfection on the continuous outbreak of infectious diseases, a disease transmission model with breakthrough infection and reinfection is established. First, a dynamic analysis of the model is conducted. The basic reproduction number \(R_0\) is obtained by using the next generation matrix method. The local stability of disease-free equilibrium when \(R_0<1\) is proved. By analyzing the stability of disease-free equilibrium when \(R_0=1\) and the existence of multiple endemic equilibria, we find that when \(R_*<1\), system (1) exhibits a backward bifurcation, which means that \(R_0\) is no longer the threshold for judging whether the disease will persist or not. Secondly, the local stability of the endemic equilibrium \(P_2\) and the instability of \(P_3\) under certain conditions are proved. Numerical simulations show that backward bifurcation occurs in system (1) when at least one of the parameters \(\sigma\) (breakthrough infection) or \(\epsilon\) (reinfection) is non-zero. Obviously, breakthrough infection and reinfection play a vital role in the multiple outbreaks of the disease. When \(\sigma\) and \(\epsilon\) approach 0, the disease will be effectively controlled and will not evolve into an endemic disease. On the contrary, the disease will spread extensively and eventually become an endemic disease when at least one of \(\sigma\) or \(\epsilon\) approaches to 1. In the context of pandemic control, real-world conditions such as resource constraints and socioeconomic factors often limit the long-term continuous implementation of intervention measures. Therefore, this study attempts to explore feasible pathways for dynamically switching different prevention and control methods within a limited period, based on the Bang-Bang control strategy under a discrete control framework. Finally, Bang-Bang control is used to conduct an optimization control, and the existence of an optimal solution is established. Simulations are conducted for single, dual and triple control measures. The research shows that the time to reach the control target is the shortest when the three control measures are considered comprehensively. If only the vaccination rate or the vaccine protection level is increased separately, it will not control the spread of the disease effectively, even will cause a secondary outbreak of the disease or an endemic state.

The model established in this paper is based on simple assumptions of homogeneous population mixing and spatiotemporal invariance, without considering realistic factors such as population heterogeneity and spatial distribution. Additionally, we construct Bang-Bang control is a piecewise continuous strategy under unconstrained conditions, without accounting for practical considerations such as intervention costs, resource limitations, and random disturbances.In the future, we will conduct research from aspects such as age and spatial heterogeneity, and perform simulation studies using actual case data. Additionally, we will construct an optimal control framework with resource constraints, cost-effectiveness, and random disturbances to quantify the return on investment of prevention and control measures, providing more specific and reliable theoretical support for infectious disease prevention and control decisions.