1 Introduction

Shortly after the raising of atypical pneumonia cases in Wuhan in the end of 2019, World Health Organization (WHO) has declared the novel coronavirus (COVID-19) outbreak a global pandemic on March 11, 2020 [1]. Since then, many different public health actions have been taken as attempts to fight against the disease worldwide. For now, though, in spite of the huge efforts that have been made, no medication or drug can be considered as a reasonable solution capable of stopping or treating COVID-19.

Still in the pharmacological interventions, but in the field of prevention, it is unquestionable that vaccines certainly are great value and impact on avoiding new infections by SARS-CoV-2, and not only on the vaccinated people, but possibly on wider populations, due to the herd immunity effect [2]. However, the high levels of requests for vaccines and their limited production and distribution are still barriers to stopping COVID-19 worldwide. Besides, it is not clear how long the immunization of a given vaccine can last. Meanwhile, non-pharmacological interventions like physical isolation and quarantine of infected individuals are the best current alternatives to locally control COVID-19 epidemic outbreaks.

Given the circumstances discussed in the preceding paragraphs, and since physical isolation and quarantine of infected individuals are still key strategies to fight against COVID-19, here we analyse the valuable SIR-X model setting developed by Maier and Brockmann [3] in the light of piecewise smooth dynamical systems theory. For the sake of completeness, one could say that the starting point of referred work is the classical SIR ordinary differential equation system, where the compartments SI and R stands for susceptible, infected and removed individuals,Footnote 1 respectively. In such a dynamics, the respective variables S, I and R usually denote the number of individuals in each one of these compartments as continuous-time functions of time t [4].

The classical SIR ordinary differential equation system can be view as a particular case of the SIR-X dynamics given by Eqs. (1), (2), (3) and (4) with \(\kappa =\kappa _0 = 0\) (i.e., with no isolation or quarantine). Given such SIR dynamics, the threshold that defines whether an epidemic will occur is the basic reproductive ratio \(R_0=\alpha /\beta \). If both \(R_0>1\) and the fraction of susceptibles is greater than \(1/R_0\), then there is an epidemic. This last condition generates a key threshold for vaccination strategies because vaccination transfers susceptibles to the removed compartment. Under the hypotheses of the SIR dynamics, but even though \(R_0 > 1\), if the coverage of vaccination is greater than \(1 - (1/R_0)\) in a certain population, then there is no sustained transmission in it [2, 4]. Regarding COVID-19 epidemiological models, given social relevance on this subject, a large amount of peer-reviewed articles and preprints have been published, but sometimes with misuse of mathematical modeling [5]. The subject is quite wide and complex such that a review on this theme is beyond the scope of the paper [6, 7]. Our key point here is to analyze, in the light of piecewise smooth dynamical systems theory, the new effective way proposed by Maier and Brockmann [3, 8] of modeling containment and quarantine.

In the relevant context of modeling the non-pharmacological interventions for COVID-19, the novelty proposed by Maier and Brockmann [3] regards two new processes: (1), general public containment efforts or individual behavioral changes in response to the epidemic effectively, which removes individuals from the interaction dynamics and (2), a quarantine procedure, in which symptomatic infected individuals are removed to quarantine. To model these processes, they introduce a new compartment for symptomatic, quarantined infecteds, denoted by X. Their model reads [3]

$$\begin{aligned} \frac{dS}{dt}&\;\;=\;\;-\;\alpha S I\;-\;\kappa _0 S, \end{aligned}$$
(1)
$$\begin{aligned} \frac{dI}{dt}&\;\;=\;\;+\;\alpha S I\;-\;\beta I\;-\;\kappa _0 I\;-\;\kappa I, \end{aligned}$$
(2)
$$\begin{aligned} \frac{dR}{dt}&\;\;=\;\;+\;\beta I\;+\;\kappa _0 S, \end{aligned}$$
(3)
$$\begin{aligned} \frac{dX}{dt}&\;\;=\;\;+\;\kappa I\;+\;\kappa _0 I, \end{aligned}$$
(4)

where, for the convenience of our analysis we set \(S + I + R + X = 1\), since the sum of Eqs. (1), (2), (3) and (4) is zero for any time t. In this model, the parameters \(\alpha \) and \(\beta \) are respectively the transmission rate and the recovery rate of the standard SIR model. In addition to that, and referring to the processes introduced by by Maier and Brockmann [3]: (1), the impact of containment efforts is captured by the terms proportional to the containment rate \(\kappa _0\) that is effective in both I and S compartments, because non-pharmacological interventions such as social distancing and lock down affect the whole population alike; and (2), (symptomatic) infected individuals are removed at rate \(\kappa \) corresponding to quarantine measures. By introducing this model, besides valuable insights on containment strategies to fight against COVID-19 and other possible similar infectious diseases outbreaks, Maier and Brockmann [3] were able to explain the subexponential growth in the number of confirmed COVID-19 cases in China. Their analysis and fittings reproduce empirical case counts in all provinces for plausible parameter values, suggesting that quarantine and containment shielded the susceptible population from the transmission process. By further analyzing their model, our objective here is different, though.

Since the adoption of non-pharmacological interventions previously described as (1) containment and (2) quarantine have a huge impact on many aspects in daily life, the use of such health public strategies is quite complex. To properly manage them, it is crucial to have at least one decision criterion to define when (and how) to start and stop these interventions. In order to address this issue, first we suppose that the health system has the capacity of attending \(I_M\) infected individuals (being just a part of them WITH severe disease). When \(I(t)>I_M\), then we say that there is a collapse in the health system. Based on that, we define our threshold criterion for switching between both containment and quarantine application and the “do nothing” strategy. Given a certain fraction threshold of infecteds \(I_m\), with \(I_m < I_M\), our control protocol is defined as:

  • If \(I(t)>I_m\), containment and quarantine are switched on (i.e., SIR-X dynamics);

  • If \(I(t)<I_m\), containment and quarantine are switched off (i.e., SIR dynamics).

Since R and X do not affect equations (1)–(2), we reduce the dynamic analysis to the plane (SI). But before this discussion, let us present how this paper is organized. In Sect. 2, we present some concise remarks on piecewise smooth dynamical systems. In Sect. 3, we define our piecewise smooth non-pharmacological intervention protocol for COVID-19. In Sect. 4, we establish the results of our main analysis, and in Sect. 5 some criteria about the best rate of containment effort are given. Finally, Sect. 6 closes the paper with some concluding remarks.

2 Remarks on piecewise smooth dynamical systems

Consider the smooth scalar function \(h:{\mathcal {D}} \subset {\mathbb {R}}^2 \rightarrow {\mathbb {R}}\). The switching manifold of this system is defined by \(\Sigma =\{(S,I)\in {\mathcal {D}}: h^{-1}(0)\}\). Clearly, \(\Sigma \) is the separating boundary of the regions \(R^-=\{{\mathbf {x}} \in {\mathcal {D}}:\;h({\mathbf {x}})<0\}\) and \(R^+=\{{\mathbf {x}} \in {\mathcal {D}}:\;h({\mathbf {x}})>0\}\).

Let be \({\mathfrak {X}}^r\) the space of \(C^r\)-vector fields on \({\mathcal {D}}\) endowed with the \(C^r\)-topology with \(r=\infty \) or \(r\ge 1\) large enough for our purposes and call \(\Omega ^r\) the space of vector fields \({\mathbf {F}}: {\mathcal {D}} \rightarrow {\mathbb {R}}^{2}\) such that

$$\begin{aligned} {\mathbf {F}}({\mathbf {x}})=\left\{ \begin{array}{l} {\mathbf {F}}^{+}({\mathbf {x}}),\quad \text {for} \quad {\mathbf {x}} \in R^+,\\ {\mathbf {F}}^-({\mathbf {x}}),\quad \text {for} \quad {\mathbf {x}} \in R^-, \end{array}\right. \end{aligned}$$
(5)

where \({\mathbf {x}}\in {\mathcal {D}}, {\mathbf {F}}^{\pm }\in {\mathfrak {X}}^r.\) We may consider \(\Omega ^r = {\mathfrak {X}}^r \times {\mathfrak {X}}^r\) endowed with the product topology and denote any element in \(\Omega ^r\) by \({\mathbf {F}}=({\mathbf {F}}^{+},{\mathbf {F}}^-)\), which we will accept to be multivalued in points of \(\Sigma \).

The contact of smooth vector fields \({\mathbf {F}}^{\pm }\in {\mathfrak {X}}^r\) with \(\Sigma \) are provided by the directional Lie derivatives: \( L_{{\mathbf {F}}^{\pm }}h = \langle \nabla h, {\mathbf {F}}^{\pm }\rangle , \) where \(\nabla h\) and \(\langle \cdot \,,\cdot \rangle \) denote the gradient of smooth function h and the canonical inner product, respectively. The higher order Lie derivatives are given by \(L^m_{{\mathbf {F}}^{\pm }}h = \langle \nabla L_{{\mathbf {F}}^{\pm }}^{m-1} h, {\mathbf {F}}^{\pm }\rangle \).

On \(\Sigma \), we distinguish the following regions: (i) attractive sliding, (ii) repulsive sliding (or escape) and (iii) crossing, given by (i) \(\Sigma _{as}=\{{\mathbf {x}}\in \Sigma : L_{{\mathbf {F}}^+}h({\mathbf {x}})<0<L_{{\mathbf {F}}^-}h({\mathbf {x}})\}\), (ii) \(\Sigma _{rs}=\{{\mathbf {x}}\in \Sigma :L_{{\mathbf {F}}^-}h({\mathbf {x}})<0<L_{{\mathbf {F}}^+}h({\mathbf {x}})\}\) and (iii) \(\Sigma _c^-=\{{\mathbf {x}}\in \Sigma : L_{{\mathbf {F}}^-}h({\mathbf {x}})<0 \;\text {and}\; L_{{\mathbf {F}}^+}h({\mathbf {x}})<0\}\), \(\Sigma _c^+=\{{\mathbf {x}}\in \Sigma : L_{{\mathbf {F}}^-}h({\mathbf {x}})>0 \;\text {and}\; L_{{\mathbf {F}}^+}h({\mathbf {x}})>0\}\). As we will see later, Figure 2 presents regions \(\Sigma _{as}\), \(\Sigma _c^-\) and \(\Sigma _c^+\).

In this paper, we suppose that the sliding dynamics in \(\Sigma _{as}\cup \Sigma _{rs}\) is described by the Filippov sliding vector field [9, 10] defined as

$$\begin{aligned} {\mathbf {F}}^s({\mathbf {x}})=(1-\lambda ){\mathbf {F}}^-({\mathbf {x}})+\lambda {\mathbf {F}}^+({\mathbf {x}}), \end{aligned}$$

where for each \({\mathbf {x}} \in \Sigma _{as}\cup \Sigma _{rs}\), the value of \(\lambda \) is chosen such that \(L_{{\mathbf {F}}_s}h({\mathbf {x}})=0\), i.e.,

$$\begin{aligned} \lambda =\lambda ({\mathbf {x}})=\dfrac{L_{{\mathbf {F}}^-}h({\mathbf {x}})}{L_{{\mathbf {F}}^-}h({\mathbf {x}})- L_{{\mathbf {F}}^+}h({\mathbf {x}})}, \end{aligned}$$

provided that the denominator of the previous expression does not vanish. Therefore, \(\lambda \in (0,1)\) for all \({\mathbf {x}} \in \Sigma _{as}\cup \Sigma _{rs}\), while \(\lambda =0\) implies that \(L_{{\mathbf {F}}^-}h({\mathbf {x}})=0\), i.e., \({\mathbf {x}}\) is a tangency point of the vector field \({\mathbf {F}}^-\) with the boundary \(\Sigma \), and \(\lambda =1\) implies that \(L_{{\mathbf {F}}^+}h({\mathbf {x}})=0\), i.e., \({\mathbf {x}}\) is a tangency point of the vector field \({\mathbf {F}}^+\) with the boundary \(\Sigma \).

The orbits of the system (5) can be constructed by concatenating standard solutions in \(R^{\pm }\) and sliding solutions on \(\Sigma \) following the sliding system \(\dot{{\mathbf {x}}}={\mathbf {F}}^s({\mathbf {x}})\). For more details, the reader is referred to the reference [9]. The forward orbit of (5) that crosses \(\Sigma \) goes from \(R^-\) to \(R^+\) through \({\mathbf {x}}_0\in \Sigma _c^+\) and goes from \(R^+\) to \(R^-\) through \({\mathbf {x}}_0\in \Sigma _c^-\). The forward orbit of (5) that intersects \(\Sigma \) at a point \({\mathbf {x}}_0\in \Sigma _{as}\) continues from this point \({\mathbf {x}}_0\) on a contained sliding motion in \(\Sigma \).

Sliding regions are bound by points where the vector fields \({\mathbf {F}}^{\pm }\) are tangent to \(\Sigma \). Then, we define two sets of tangential singularities:

$$\begin{aligned}&T_+=\{{\mathbf {x}}\in \Sigma \, : \, L_{{\mathbf {F}}^{+}}h({\mathbf {x}})=0\}\;\;\;\;\\&\quad \text {and}\;\;\;\;T_-=\{{\mathbf {x}}\in \Sigma \, : \, L_{{\mathbf {F}}^{-}}h({\mathbf {x}})=0\}; \end{aligned}$$

one for each vector field. In the following, we provide the definitions of tangential singularities [10, 11].

Definition 1

One says that \({\mathbf {x}}\in \Sigma \) is a fold point of \({\mathbf {F}}^+\) (respectively, \({\mathbf {F}}^-\)) if \(L_{{\mathbf {F}}^{+}}h({\mathbf {x}})=0\) and \( L^2_{{\mathbf {F}}^{+}}h({\mathbf {x}})\ne 0\) (respectively, \(L_{{\mathbf {F}}^{-}}h({\mathbf {x}})=0\) and \( L^2_{{\mathbf {F}}^{-}}h({\mathbf {x}})\ne 0\)). Moreover, we say that this fold point is visible if \(L^2_{{\mathbf {F}}^{+}}h({\mathbf {x}})> 0\) or invisible if \(L^2_{{\mathbf {F}}^{+}}h({\mathbf {x}})< 0\) (respectively, \(L^2_{{\mathbf {F}}^{-}}h({\mathbf {x}})< 0\) or invisible if \(L^2_{{\mathbf {F}}^{-}}h({\mathbf {x}})> 0\)).

Observe that system (5) can have equilibria for each vector field \({\mathbf {F}}^{\pm }\) and also equilibria for the sliding vector field \({\mathbf {F}}^s\).

3 A piecewise smooth non-pharmacological protocol for COVID-19

Note that, in order to study the dynamic of the SIR-X model, it is sufficient to consider equations (1)–(2). This is possible because such equations are written only in terms of the state variables S and I. Moreover, to ensure that the health system will not collapse, we control the fraction of infected individuals such that I(t) cannot be over \(I_{M}\). In what follows, we consider the two-dimensional dynamical system (1)–(2) defined in the set

$$\begin{aligned} {\mathcal {D}}=\{(S,I)\in {\mathbb {R}}^2: 0\le S\le 1-I,\,0\le I\le I_M\} \end{aligned}$$
(6)

and h given by \(h(S, I)=I-I_m\).

As we mentioned before, we set \(\kappa =\kappa _0=0\) for \(I<I_m\) and \(\kappa _0>0\) and \(\kappa > 0\) as constants for \(I>I_m\), where \(I_m\) is a design parameter such that \(0<I_m<I_M\); in fact, \(I_m\) is the fraction of infected individuals below which containment and quarantine actions are null and above which such actions are applied at rates \(\kappa _0>0\) and \(\kappa > 0\). In addition to that, we use the Filippov’s convention to determine what happens when \(I = I_m\).

In the piecewise smooth vector field framework, we rewrite the system (1)–(2) as

$$\begin{aligned} \begin{bmatrix} \dfrac{dS}{dt}\\ \\ \dfrac{dI}{dt} \end{bmatrix}=\left\{ \begin{matrix} {\mathbf {F}}^-(S,I),\;\;\text {if}\;\;I<I_{m},\\ \\ {\mathbf {F}}^+(S,I),\;\;\text {if}\;\;I>I_{m}, \end{matrix}\right. \end{aligned}$$
(7)

composed by the vector fields

$$\begin{aligned}&{\mathbf {F}}^-(S,I)=\begin{bmatrix} -\alpha IS\\ \alpha \left( S-\frac{1}{R_{0,\text {free}}}\right) I \end{bmatrix}\;\;\;\;\\&\quad \text {and}\;\;\;\;{\mathbf {F}}^+(S,I)=\begin{bmatrix} -(\alpha I+\kappa _0)S\\ \alpha \left( S-\frac{1}{R_{0,\text {eff}}}\right) I \end{bmatrix}, \end{aligned}$$

where \((S,I)\in {\mathcal {D}}\) and

$$\begin{aligned} R_{0,\text {free}}=\frac{\alpha }{\beta }> R_{0,\text {eff}}=\frac{\alpha }{\beta +\kappa +\kappa _0}. \end{aligned}$$
(8)

The vector field \({\mathbf {F}}^-\) has a line of equilibria points at \(I=0\) and \(0\le S\le 1\), being attractive in the part where \( S< \frac{1}{R_{0,\text {free}}}\), while \({\mathbf {F}}^+\) has a virtual stable node equilibrium at (0, 0), i.e., it is placed in \(R^-\) where \({\mathbf {F}}^+\) is not defined. See Fig. 1. From the first Lie derivatives, given by \(L_{{\mathbf {F}}^-}h(S,I_{m})=\alpha (S-\frac{1}{R_{0,\text {free}}})I_{m}\) and \(L_{{\mathbf {F}}^+}h(S,I_{m})=\alpha (S-\frac{1}{R_{0,\text {eff}}})I_{m}\), it is easy to see that there are two tangency points in \(\Sigma \), namely

$$\begin{aligned} {\mathbf {q}}^-=\left( \frac{1}{R_{0,\text {free}}},I_{m}\right) \;\;\;\;\text {and}\;\;\;\;{\mathbf {q}}^+=\left( \frac{1}{R_{0,\text {eff}}},I_{m}\right) . \end{aligned}$$

Specifically, \({\mathbf {q}}^-\) is a visible fold for \({\mathbf {F}}^-\) and \({\mathbf {q}}^+\) is an invisible fold for \({\mathbf {F}}^+\), since \(L^2_{{\mathbf {F}}^-}h({\mathbf {q}}^-)=-\frac{\alpha ^2}{R_{0,\text {free}}}I_{m}^2<0\) and \(L^2_{{\mathbf {F}}^+}h({\mathbf {q}}^+)=-\frac{\alpha I_{m}}{R_{0,\text {eff}}}(\alpha I_{m}+\kappa _0)<0\). Completing \(\Sigma \), we have an attractive sliding segment defined by

$$\begin{aligned} \Sigma _{as}=\left\{ (S,I)\in \Sigma : I=I_{m},\;\;\frac{1}{R_{0,\text {free}}}<S<\frac{1}{R_{0,\text {eff}}}\right\} , \end{aligned}$$

with extremes at the fold points. The crossing regions are given by two half straight lines:

$$\begin{aligned}&\Sigma _{c}^+=\left\{ (S,I)\in \Sigma : I=I_{m},\;\;S>\frac{1}{R_{0,\text {eff}}}\right\} \;\;\;\;\\&\quad \text {and}\;\;\;\;\Sigma _{c}^-=\left\{ (S,I)\in \Sigma : I=I_{m},\;\;S<\frac{1}{R_{0,\text {free}}}\right\} . \end{aligned}$$

The sliding dynamics in \(\Sigma _{as}\) is governed by the sliding vector field \({\mathbf {F}}_s(S,I)=(f_s(S,I),0)\), where

$$\begin{aligned} f_s(S,I)=\alpha \left( \frac{\kappa _0}{\kappa _0+\kappa }\frac{1}{R_{0,\text {free}}}- I\right) S-\frac{\kappa _0}{\kappa _0+\kappa }S^2.\nonumber \\ \end{aligned}$$
(9)

4 Main analysis

In this section, we present our main analysis of this paper about the non-pharmacological strategies of control of the COVID-19. We emphasize that the analysis presented here is global, i.e.,

we establish the dynamic for all initial conditions on model domain.

In practice, it is almost impossible to determine the real initial condition in order to apply some evaluation process. This being, we eliminate the dependence on the initial condition and we describe the dynamic for all \((S_0,I_0) \in {\mathcal {D}}\), defined in (6).

4.1 Global analysis and asymptotic stability

Proposition 1

Consider the system (7) defined in \({\mathcal {D}}\). The following statements hold.

(a):

If \(R_{0,\text {free}}< \frac{1}{1-I_m}\) then on the switching manifold \(\Sigma \) coincides with the crossing mode \(\Sigma _c^-\). Besides, if \(R_{0,\text {free}}= \frac{1}{1-I_m}\) then the visible fold \({\mathbf {q}}^-=(1-I_m,I_m)\in \Sigma \), see Fig. 2a.

(b):

If \(R_{0,\text {eff}}\le \frac{1}{1-I_m}<R_{0,\text {free}}\) then on the switching manifold there are the \(\Sigma _c^-\) crossing mode and the \(\Sigma _{as}\) sliding mode, separated by the visible fold \({\mathbf {q}}^-\). Besides, if \(R_{0,\text {eff}}=\frac{1}{1-I_m}\) then the invisible fold \({\mathbf {q}}^+=(1-I_m,I_m)\in \Sigma \), see Fig. 2b.

(c):

If \(R_{0,\text {eff}}>\frac{1}{1-I_m}\) then the switching manifold presents the crossing modes \(\Sigma _c^-\) and \(\Sigma _c^+\), the sliding mode \(\Sigma _{as}\), the visible fold \({\mathbf {q}}^-\) and the invisible fold \({\mathbf {q}}^+\), see Fig. 2c–f.

Proof

It follows by direct calculations of Lie’s derivatives of the system (7). \(\square \)

The next results provide the global stability of the model. Moreover, it establishes when it is possible to have trajectories leaving the set \({\mathcal {D}}\), collapsing the health system.

Theorem 1

Consider the systems (7) defined in \({\mathcal {D}}\). The following statements hold:

(a):

The straight line segment \(\Gamma =\left\{ (S,0)\in {\mathcal {D}}: 0\le S<\frac{1}{R_{0,\text {free}}}\right\} \) is globally asymptotically stable. Moreover, it is composed by (non-hyperbolic) equilibria.

(b):

When \(\Sigma _{as} \ne \varnothing \), every trajectory that colides to \(\Sigma _{as}\) leaves this set after a finite time and enters in the region

$$\begin{aligned} {\mathcal {A}}= & {} \{ (S,I) \in {\mathcal {D}} \, : \, 0\le S<\frac{1}{R_{0,\text {free}}}\\&\text{ and } 0 \le I < I_m\}. \end{aligned}$$
(c):

If \(R_{0,\text {eff}}\le \frac{1}{1-I_M}\) then \((S(t),I(t))\in {\mathcal {D}}\) for all \(t>t_0\) and \((S_0,I_0)\in {\mathcal {D}}\).

Proof

  1. (a)

    Putting \(I=0\) in (7), we conclude that the S-axis is composed by equilibria. Moreover, following the analysis done in Proposition 1, all trajectories starting in a point in \({\mathcal {D}}\) enter \({\mathcal {A}}\) and then converge to \(\Gamma \).

  2. (b)

    By (9), we get that

    $$\begin{aligned} f_s(S,I_m)= & {} \left( \frac{\kappa _0}{\kappa _0+\kappa }\frac{1}{R_{0,\text {free}}}- I_m\right) S\\&-\frac{\kappa _0}{\kappa _0+\kappa }S^2<0, \end{aligned}$$

    because \(S>\frac{1}{R_{0,\text {free}}}>\frac{1}{R_{0,\text {free}}}-\frac{\kappa _0}{\kappa _0+\kappa }I_{m}\). Then, the \({\mathbf {F}}_s\) is negative for all \((S,I)\in \Sigma _{as}\). This means that the system trajectory that touches \(\Sigma \) at a point of \(\Sigma _{as}\), remains sliding in \(\Sigma _{as}\) tending to the visible fold point \({\mathbf {q}}^-\) in finite time. When the trajectory reaches \({\mathbf {q}}^-\), it leaves \(\Sigma \) and enters the region below \(\Sigma \) whose dynamics is governed by \({\mathbf {F}}^-\).

  3. (c)

    Note the vector fields \({\mathbf {F}}^{\pm }\) on the border of \({\mathcal {D}}\); see Figs. 1 and 2. On the boundaries (i) \(S=0\), (ii) \(I=0\), (iii) \(g(S,I)=S+I=1\) and (iv) \(I=I_M\), \(0<S\le 1-I_M\), we have: (i) \(\frac{dS}{dt}=0\) and \(\frac{dI}{dt}<0\) for both vector fields; (ii) \(\frac{dS}{dt}=\frac{dI}{dt}=0\) for \({\mathbf {F}}^{-}\); (iii) \(\frac{dg}{dt}<0\) for both vector fields; and (iv) for \({\mathbf {F}}^{+}\), \(\frac{dI}{dt}=\alpha \left( S-\frac{1}{R_{0,\text {eff}}}\right) I<0\) whenever \(R_{0,\text {eff}}<\frac{1}{1-I_M}\), and \(\frac{dI}{dt}=0\), \(\frac{d^2I}{dt^2}<0\) when \(R_{0,\text {eff}}=\frac{1}{1-I_M}\).

\(\square \)

4.2 Global bifurcation analysis

In Fig. 1a we present the \(\left( R_{0,\text {free}},R_{0,\text {eff}}\right) \)-plane of parameters, from where we get four main configurations of the vector fields \({\mathbf {F}}^{\pm }\), shown in Fig. 1b.

Fig. 1
figure 1

Transition of the dynamics of the system (7) in \({\mathcal {D}}\), from the variation of parameters \(R_{0,\text {free}}\) and \(R_{0,\text {eff}}\)

In summary:

  1. (a)

    \(\Gamma =\left\{ (S,0)\in {\mathcal {D}}: 0\le S<\frac{1}{R_{0,\text {free}}}\right\} \) is the global attractor.

  2. (b)

    For \(R_{0,\text {free}}\le \frac{1}{1-I_m}\) (region 1), every trajectory started below \(\Sigma \) remains below \(\Sigma \) tending to \(\Gamma \).

  3. (c)

    For \(R_{0,\text {eff}}\le \frac{1}{1-I_m}<R_{0,\text {free}}\) (region 2), every trajectory started below \(\Sigma \) remains below \(\Sigma \) or reaches \(\Sigma \) at the \(\Sigma _{as}\) part, and from there it slides on \(\Sigma \) and returns to below \(\Sigma \) after a finite time. Moreover, there is a trajectory that tangentially touches \(\Sigma \) at \({\mathbf {q}}^-\).

  4. (d)

    The situation described in (c) also happens for \(\frac{1}{1-I_m}<R_{0,\text {eff}}\le \frac{1}{1-I_M}\) (region 3). In addition, though, there are also trajectories starting below \(\Sigma \) that cross \(\Sigma \) passing to the region above \(\Sigma \). However, the invisible characteristic of the tangent fold point of the vector field \({\mathbf {F}}^+\) ensures that this trajectory returns to \(\Sigma \) at a point of \(\Sigma _c^-\) or \(\Sigma _{as}\), or still at \({\mathbf {q}}^-\). Again, every trajectory with initial condition \((S(t_0),I(t_0))\in {\mathcal {D}}\) remains in \({\mathcal {D}}\) for all \(t> t_0\) and still tends to \(\Gamma \) as \(t\rightarrow \infty \).

  5. (e)

    For \(R_{0,\text {eff}}>\frac{1}{1-I_M}\) (region 4), there is a subset of \({\mathcal {D}}\) in which the system trajectories leave \({\mathcal {D}}\) after a positive time.

At the transition points between scenarios 1 and 2 (red line), 2 and 3 (gray line), predicted by the bifurcation set of Fig. 1(a), the phase portrait of the system (7) undergoes a bifurcation associated with appearance (or disappearance) of tangency points and also sliding and crossed segments in the domain \({\mathcal {D}}\).

The critical phase portrait at the transition between the scenarios 1 to 2 and from 2 to 3, are given in Fig. 2a and b. A third bifurcation occurs at the transition from 3 to 4 (blue line), having the critical phase portrait like the one in Fig. 2c. From there, the domain \({\mathcal {D}}\) is no longer positively invariant to the flow of the system (7), leading to three sub-scenarios:

  1. (a)

    Trajectories starting from \(\Sigma \subset {\mathcal {D}}\), or below it, remain within \({\mathcal {D}}\) (Fig. 2d).

  2. (b)

    The same as the previous one, but the trajectory starting at \((1-I_m,I_m)\in \Sigma \) is tangent to the upper threshold \(I=I_M\) (Fig. 2e).

  3. (c)

    The trajectory starting at \((1-I_m,I_m)\in \Sigma \) is transversal to the upper threshold \(I=I_M\), and therefore one cannot guarantee that the system will not collapse for any initial condition below \(\Sigma \) (Fig. 2f).

Fig. 2
figure 2

Phase portraits of the system (7). In a we see the dynamics of the transition scenario from region 1 to 2 of the bifurcation set shown in Fig. 1. In b we see the dynamics of the transition scenario from region 2 to 3. And in c, the transition scenario from region 3 to 4. In df are shown the dynamics for \((R_{0,\text {free}},R_{0,\text {eff}})\) in the region 4, in which the system trajectory starting at \((1-I_m,I_m)\) is tangent to the upper threshold \(I=I_M\) when \(\sigma (I_m,\kappa _0)=0\), as shown in e

5 The best rate of containment effort

By using the results presented in Sect. 4, we can predict that the system will not collapse for any choice of \(I_m<I_M\) whenever \(R_{0,\text {eff}}\le \frac{1}{1-I_M}\), which is in accordance with statement (c) of Theorem 1. However, this may require high rates of confinement \(\kappa _0\) and quarantine \(\kappa \). To obtain lower rates without causing the system to collapse for any initial condition below the control threshold \(I_m\), we must choose the value of \(I_m\) properly. For this case, we have \(R_{0,\text {free}}>R_{0,\text {eff}}\ge \frac{1}{1-I_M}\), as it is shown in region 4 of Fig. 1a.

In what follows, we consider \(R_{0,\text {eff}}\ge \frac{1}{1-I_M}\) and under this assumption we determine the condition on the system parameters, in particular \( I_m \) and \(\kappa _0\), which ensures that any trajectory starting at \({\mathcal {D}}\) below \(I = I_m\), follows within \({\mathcal {D}}\) for time forward. In this way,

we provide necessary and sufficient conditions for the control of COVID-19 ensuring the non-collapse of the health system but also minimizing the containment efforts.

Consider that \(I_0\le I_m \le I_M\). In this context, two natural questions are:

Question 1: For a fixed \(I_m\), what is the minimum containment rate \(\kappa _0\) that ensures \(I(t) \le I_{M}\)?

Question 2: For a fixed \(\kappa _0\), what is the maximum value of infecteds \(I_m\) that ensures \(I(t) \le I_{M}\)?

Both questions are in fact equivalent and their answers correspond to the limit case illustrated in Fig. 2e. The condition required for this is that the trajectory of the system (7) started at point \((1-I_m,I_m)\) passes through point \((1/R_{0,\text {eff}},1-I_M)\). We assume that the parameters \(I_m\) and \(\kappa _0\) vary and the others parameters are fixed such that \(R_{0,\text {free}}>R_{0,\text {eff}}\ge \frac{1}{1-I_M}\).

In the next proposition we explicitly exhibit the expression of the value of \(\kappa _0\) that answer the Question 1 (or, equivalently, we present implicitly the value of \(I_m\) that responds to the Question 2). More precisely, fixing \(I_m\) and all the others parameters of the system (7) we present the minimum containment rate \(\kappa _0\) that satisfies \(I(t) \le I_{M}\).

We define the set:

$$\begin{aligned} {\mathcal {B}}= & {} \{(I_m,\kappa _0)\in {\mathbb {R}}^2:\,0<I_m\le I_M\;\text {and}\;0\le \kappa _0\\&\le \alpha (1-I_M)-\kappa -\tfrac{\alpha }{R_{0,\text {free}}}.\} \end{aligned}$$

Proposition 2

We suppose that \((I_m, \kappa _0) \in {\mathcal {B}}\). Then the minimum containment rate \(\kappa _0\) that guaranties that \(I(t) \le I_M\) is given by

$$\begin{aligned} \kappa _0= & {} \kappa _0^{\text {min}}(I_m)=-\kappa -\frac{\alpha }{R_{0,\text {free}}}\nonumber \\&-\frac{\alpha \left( 1-I_M+\left( \frac{1}{R_{0,\text {free}}}+\frac{\kappa }{\alpha }\right) Log \left[ \frac{I_M}{I_m}\right] \right) }{ProductLog \left[ -1,\left( 1-I_M+\left( \frac{1}{R_{0,\text {free}}}+\frac{\kappa }{\alpha }\right) Log \left[ \frac{I_M}{I_m}\right] \right) \Psi \right] },\nonumber \\ \end{aligned}$$
(10)

where

$$\begin{aligned} \Psi =-\frac{1}{1-I_m}\left( \frac{I_m}{I_M e^{1-I_m\left( 1+Log \left[ \frac{I_M}{I_m}\right] \right) }}\right) ^{\frac{1}{1-I_m}}. \end{aligned}$$

Proof

Let \((S_0,I_0)\in {\mathcal {D}}\) be the initial condition for the system (7). Assuming \(I_0\ge I_m\), in the (SI)-plane, a first integral for the system \({\mathbf {F}}^+\) is given by

$$\begin{aligned}&{\overline{\sigma }}(S,S_0,I,I_0)=S-S_0+I-I_0\\&\quad -\frac{1}{R_{0,\text {eff}}}\text {Log}\left[ \frac{S}{S_0}\right] +\frac{\kappa _0}{\alpha }\text {Log}\left[ \frac{I}{I_0}\right] . \end{aligned}$$

To obtain the condition under the parameter \(\kappa _0\), such that the orbit started at point \((1-I_m,I_m)\) passes through the point \((1/R_{0,\text {eff}},1-I_M)\) it is sufficient to consider

$$\begin{aligned}&\sigma (I_m,\kappa _0)\nonumber \\&\quad ={\overline{\sigma }}(1/R_{0,\text {eff}},1-I_m,I_M,I_m)\nonumber \\&\quad =\frac{\kappa _0}{\alpha }\log \left( \frac{I_{M}}{I_{m}}\right) \nonumber \\&\qquad +\frac{1}{R_{0,\text {eff}}(\kappa _0)}\log \left( (1-I_{m}) R_{0,\text {eff}}(\kappa _0)\right) \nonumber \\&\qquad +\frac{1}{R_{0,\text {eff}}(\kappa _0)}+I_{M}-1=0. \end{aligned}$$
(11)

Note that the parameters \(\kappa _0\) and \(R_{0,\text {eff}}\) satisfy the relations:

$$\begin{aligned}&\text { If }\kappa _0<\alpha (1-I_M)-\kappa -\tfrac{\alpha }{R_{0,\text {free}}} \text { then }R_{0,\text {eff}}\\&\quad >\frac{1}{1-I_M}.\\&\text { If }\kappa _0=\alpha (1-I_M)-\kappa -\tfrac{\alpha }{R_{0,\text {free}}} \text { then }R_{0,\text {eff}}\\&\quad =\frac{1}{1-I_M}. \end{aligned}$$

Besides then, remembering that \(\frac{1}{R_{0,\text {eff}}}=\frac{1}{R_{0,\text {free}}}+\frac{\kappa +\kappa _0}{\alpha }\), we get that

$$\begin{aligned}&\nabla \sigma (I_m,\kappa _0)\nonumber \\&\quad =\left( -\tfrac{\kappa _0}{\alpha I_{m}}-\tfrac{1}{(1-I_{m})R_{0,\text {eff}}},\tfrac{1}{\alpha }\log \left( \tfrac{I_{M}}{I_{m}}\right) \right. \\&\qquad \left. +\tfrac{1}{\alpha }\log \left( (1-I_{m}) R_{0,\text {eff}}\right) \right) \ne (0,0). \end{aligned}$$

In this way, by the Implicit Function Theorem, it is possible solve the equation \(\sigma (I_m,\kappa _0)=0\) in terms of \(\kappa _0\) or \(I_m\). Therefore, solving this equation in terms of \(\kappa _0\), we obtain the expression given in (10). \(\square \)

The curve in the \((I_m, \kappa _0)\)-plane given by \(\sigma (I_m,\kappa _0) = 0\), see Fig. 3, contains all the solutions for Questions 1 and 2. In this case, if \(({\widehat{I}}_m,{\widehat{\kappa }}_0)\) is a solution of \(\sigma (I_m,\kappa _0) = 0\) in domain \({\mathcal {B}}\), then, for \(\kappa _0 = {\widehat{\kappa }}_0\) fixed the maximum \(I_m\) is \({\widehat{I}}_m\) and for \(I_m={\widehat{I}}_m\) fixed the minimum \(\kappa _0\) is \({\widehat{\kappa }}_0\).

The solution branch of \(\sigma (I_m,\kappa _0)=0\) is represented numerically in a \((I_m, \kappa _0)\)-parameter plane, as shown in Fig. 3, for three different \(\kappa \) values and from which we observe two different situations separated by the critical value

$$\begin{aligned} \kappa =\kappa ^*=\alpha e^{1+\text {ProductLog}\left[ -1,(I_M-1)e^{-1}\right] }-\frac{\alpha }{R_{0,\text {free}}}, \end{aligned}$$

as described in the sequel.

  1. (a)

    If \(\kappa >\kappa ^*\), then the solution branch of \(\sigma (I_m,\kappa _0)=0\) cuts the \(I_m\)-axis at \(I_m>0\). In this case, for any \(I_m\) such that

    $$\begin{aligned} I_m\le & {} I_m^*(\kappa )=1-\left( \frac{1}{R_{0,\text {free}}}+\frac{\kappa }{\alpha }\right) \\&e^{-1+\frac{(1-I_M)\alpha R_{0,\text {free}}}{\alpha +\kappa R_{0,\text {free}}}}, \end{aligned}$$

    the minimum containment rate is \(\kappa _0^{\text {min}}(I_m)=0\). Naturally, for \(\kappa _0=0\) the maximum of \(I_m\) is \(I_m^{\text {max}}(0)=I_m^*\). This means that, considering a quarantine rate greater than \(\kappa ^*\), the containment effort could be even zero if the quarantine strategies are implemented before the fraction of infected individuals attains the value \(I_m^*\). In this case, the strategy could reach just the infected individuals and none restriction is applied to the general population.

  2. (b)

    If \(\kappa \le \kappa ^*\), then the solution branch of \(\sigma (I_m,\kappa _0)=0\) does not cut the \(I_m\)-axis at \(I_m>0\) and

    $$\begin{aligned} \lim _{I_m\rightarrow 0}\kappa _0^{\text {min}}(I_m)=0. \end{aligned}$$

    This means that even not considering a large quarantine rate, the minimum containment effort converges to zero only if the containment strategies are implemented very soon.

Fig. 3
figure 3

Graphs of \(\sigma (I_m,\kappa _0)=0\) for the parameters \(\alpha =0.7\), \(R_{0,\text {free}}=4.6667\), \(I_M=0.1\), \(\kappa =0.2\) (blue), \(\kappa =\kappa ^*=0.2613\) (red) and \(\kappa =0.315\) (green)

In order to exemplify our theoretical results, let us consider an example for selected parameter values.

Example 1

Let \(\alpha =0.7\), \(R_{0,\text {free}}=4.6667\), \(I_M=0.1\) and \(\kappa \in [0.2,0.315]\).

  1. (a)

    If \(\kappa _0=0.07\), what is the maximum value for \( I_m\) that ensures \(I(t)\le I_M\)? In Fig. 3 observe that for \(\kappa =0.2\) we have \(I_m^{\text {max}}=0.069\), and for \(\kappa =0.315\) we have \(I_m^{\text {max}}=0.094\) (these points are marked with black circles). In addition, for \(\kappa =0.315>\kappa ^*=0.2613\) we can take \(\kappa _0=0\) if control actions are used earlier. This is possible if we choose some \(I_m\le I_m^*=0.053\).

  2. (b)

    Taking \(I_m=0.053\) and \(\kappa =0.2\), then the minimum value of \(\kappa _0\) that ensures \(I(t)\le I_M\) is \(\kappa _0^{\text {min}}=0.04667\) (the red circle marks this point in Fig. 3). However, for \(\kappa \ge 0.315\) we have \(\kappa _0^{\text {min}}=0\).

Figure 4 shows two simulation results of the system (1)–(4) under the assumed control protocol. We take \(I_m=0.05<I_m^*=0.053\) and the other parameters as in the previous example. For the first case, which is shown in Fig. 4a–4b, we use \(\kappa _0=0.07\) and \(\kappa =0.2\). Thus, the containment measures are maintained for a period of about 15 days (from day 15 to day 30). For the second case, which is shown in 4c–d, we use \(\kappa _0=0\) and \(\kappa =0.315\). For this choice, the period of the containment action is longer than the previous one, being about 35 days (from day 15 to day 50). In these simulations, we consider a hysteresis band, defined by \(\delta >0\) and below \(I = I_m\), in order to limit the switching frequency and to avoid the chattering phenomenon at the switching boundary \(I = I_m\). By adjusting the parameter \(\delta \), we can reduce the maximum switching frequency of the sliding motion, in addition to decreasing the average fraction of infected during the period of application of the containment. The global dynamics results under the constraint \(I(t)<I_M\) are preserved regardless of the choice of \(\delta \). In both cases reported in Fig. 4, and also in general, the fraction of individuals R(t) and X(t) depends solely on S(t) and on I(t). Moreover, from the epidemiological point of view, susceptibles and infected are the essential relevant compartments. Based on these reasons, we present our analysis only in terms of S(t) and I(t). As a last comment, though, Fig. 4 shows the evolution of all variables. In both cases, after stopping the control measures, the system evolves according to the SIR dynamics and then X(t) does not change anymore.

Fig. 4
figure 4

System response time for the initial condition \((S(0),I(0),R(0),X(0))=(1-10^{-5},10^{-5},0,0)\). We consider \(I_m=0.05\), \(\alpha =0.7\), \(\beta =0.15\) and: (i) \(\kappa =0.2\) and \(\kappa _0=0.07\), see ab; (ii) \(\kappa =0.315\) and \(\kappa _0=0\), see cd. Hysteresis control parameter: \(\delta =0.008\)

6 Concluding remarks

We provide a dynamic analysis of the model [3] by introducing piecewise smooth vector fields in it. An intermittent protocol is installed according to the number of infected individuals and taking into account the capacity of the health system. As a result, some interesting bifurcations were reported. By answering Question 1, given a maximum number of infected, we determine the minimum effort of quarantine or both containment and quarantine needed for not collapsing the health system above this number. By answering Question 2, given an effort of containment and isolation, we determine the threshold number of infected individuals above which these measures must be implemented to not collapse the health system.