Introduction

This paper is being written as the COVID-19 coronavirus epidemic is still ravaging its way across the world1,2,3,4,5,6. While the basic models for the spread of infectious disease like COVID-19 are well understood, it seems that in the case of COVID-19 we do not have credible estimates for many of the basic parameters governing the behavior in such models. Examples of these parameters include the basic rate of infection (\(R_0\)), the effect of basic types of social distancing on this rate, the fraction of asymptomatic people among the infected, and the degree to which these asymptomatic individuals are infectious.

The present paper studies the effectiveness of mitigation efforts on the spread of an infection in the classical SEIR model7. We leave the determination of the real-life parameters of COVID-19 to epidemiologists8,9,10,11,12,13, and use values that on the one hand are plausible in the COVID-19 context, and on the other hand demonstrate our basic qualitative findings. Our interest in this paper is in the basic forms of controlling the spread of the disease: quarantine of infected patients, testing of the population, and tracking the contacts of infected patients, possibly testing or quarantining them as well, and their epidemiological and economic consequences. In order to be able to simulate a situation where contacts of patients are actually tracked, we use a model of an individual-level network of contacts14,15,16, rather than a mathematical analysis at a population level17,18,19,20,21.

Our model

Here are the main features of our model; the full details and formal definitions appear in the “Methods” section.

  • As in the standard SEIR model, each individual can be in one of four states: susceptible, exposed, infectious, or removed. Except for a few individuals that start as infectious, all individuals start as susceptible. When a susceptible individual has contact with an infectious patient, he gets infected with some probability, at which point he moves to an exposed state defined in the SEIR model as the non-contagious incubation period—after which he becomes contagious and moves to an infectious state. Finally, the patient recovers (or, with a certain probability, dies), moving to a removed state.

  • A population of N individuals is represented as vertices in a graph, where two individuals are linked by an edge if there is a possible contact between them. Every period (“day”) each infectious individual interacts with a random subset of his possible contacts and infects, with some probability, each of them.

  • A basic parameter that determines how difficult it is to quarantine infectious individuals is whether they are symptomatic or not. If all infected individuals are symptomatic and can be immediately quarantined once they enter the infectious state, then the disease does not spread at all. As we are focused on measures of controlling the spread under the realistic more difficult settings, a critical parameter in our model is the symptoms rate: what fraction of the infected population remain asymptomatic, while still being infectious?

  • We use a single lockdown level parameter to capture the total effect of all social distancing measures combined. This parameter simply counts the percent reduction in probability of meeting each one of the possible contacts. Thus, “\(80\%\)-lockdown” means that the average number of contacts of each individual was decreased by a factor of 5.

Figure 1
figure 1

Outbreak dynamics and outcomes with different lockdown levels. (a) Outbreak dynamics. The full and dotted lines show the total percentage of population infected and the percentage of active cases, respectively, as a function of time. (b,c) The cost map of the percentage of labor days lost in a period of 18 months versus the percentage of population infected, in closed and open systems, respectively.

We study the following interventions for controlling the spread of the disease: (1) Basic social distancing; (2) Quarantine of symptomatic infectious individuals; (3) Testing of selected individuals, tests that can discover also exposed and asymptomatic individuals; (4) Tracking of an individual’s previous contacts, allowing e.g. testing or quarantining them.

Our main focus is on the trade-offs between the extent of the spread of the disease and the economic harm caused by the various restrictions. For simplicity we quantify the former by “human lives lost” (a fraction of the total number of infected) and the later by “fraction of labor days lost” due to social distancing or quarantine.

Figure 1 demonstrates the dynamics and outcomes of an outbreak under three different lockdown levels. Figure 1a shows the “usual” graph of the number of infected people over time. With a lax \(30\%\) lockdown, the disease spreads quickly and dies-out due to herd immunity only when over 80% of the population have been infected. With a more strict lockdown of \(60\%\) we reduce \(R_0\) to a somewhat lower value \(R_e\), but still to a value above 1, thus “flattening the curve” and reaching herd immunity at a lower infection percentage, leading to a total of around 40% of the population being infected. An even stricter lockdown of 80% reduces \(R_e\) below 1, stopping the spread of the disease rather quickly. Figure 1b depicts the trade-off between the mortality cost and the economic cost of these three approaches. With a 30% lockdown we have a low economic cost but a high mortality cost. As we increase the lockdown rate, the economic cost rises, while the mortality cost decreases. However, as we continue to increase the lockdown rate, at a high enough rate, we manage to quickly eliminate the disease (the “hammer”22), allowing the economy to return to normal, resulting in low economic and low mortality costs.

While a quick elimination of the disease is certainly desirable, if possible, maintaining a strict enough lockdown rate is not always feasible in practice. Also, in reality, it is unlikely that the disease can be completely eradicated, as a tiny number of new cases, e.g., coming from abroad, will likely keep trickling in. Thus, we also consider an “open system” where a small flow of spontaneous infections occurs, which makes eradication of the disease impossible and requires continued social distancing measures, as is demonstrated in Fig. 1c.

In this paper we study how quarantines, testing, and tracking can help improve the basic trade-off between mortality and economic costs beyond what is obtained from social distancing alone.

Figure 2
figure 2

Effect of symptoms rate. (a) The full and dotted lines show the total population percentage of symptomatic and all infected patients, respectively, with and without quarantines, as a function of the symptoms rate. (b) Economic costs with and without quarantines as a function of the symptoms rate.

Overview of the main results

Quarantine

We start by looking at the effect of a basic quarantine: once an individual becomes symptomatic, he is immediately quarantined until no longer infectious. As expected, quarantine reduces contagion and gives an effective increase in the level of lockdown, without incurring the economic costs of tightening the lockdown. This is naturally especially significant near the critical rate of contagion \(R_e=1\).

A key parameter that determines the effect of quarantines is the fraction of asymptomatic patients. If everyone is symptomatic then quarantine will completely eradicate the disease, while if no one is symptomatic then in any case there will be no mortality. The difficult situation is where some fraction of cases are asymptomatic, in which case there is high mortality but quarantine is not fully effective. This is demonstrated in Fig. 2 that shows the total population percentage of symptomatic cases and the economic costs as a function of the rate of symptoms among infection cases, with and without quarantine. The precise population mortality in every outbreak is some percentage of the total symptomatic cases, where the exact percentage depends on specific properties of the disease and of the population, on environmental conditions and conditions of the healthcare system. The figure shows that quarantines can stop the spreading of an infection only if almost all patients are symptomatic, while intermediate to high symptom rates of 50-90 percent still lead to high mortality.

Tracking

A promising intervention is to track previous contacts of any identified infectious person. People who have been in contact with an infected person need scrutiny for two possible reasons: on the one hand they may already be infected by this person without knowing it and, on the other hand, they may be the asymptomatic source of this person’s infection and may infect others. Obviously, tracking contacts of infected patients is a difficult and costly endeavor which seriously infringes on the privacy of infected people and of their contacts. Yet, in most western countries, citizens are required by law to cooperate with such an epidemiological investigation by health authorities. In the current COVID-19 crisis, it has become clear that effective contact tracing at scale requires automated tools such as cell-phone GPS-tracking which further heightens the privacy concerns. Trading-off the human-rights loss of privacy versus the human-rights losses from lockdowns is a difficult social question and requires a clear understanding of the possible benefits of tracking. This is what we aim to study here.

We study two types of interventions after tracking a person’s contacts:

  • Track and Quarantine: This is the simple version of tracking: isolate infected individuals and all their recent direct contacts.

  • Track and Test: Test the direct contacts of an infected person and isolate only those who have tested positive. Here, we naturally continue recursively with tracking and testing the contacts of any person who tests positive. This method avoids the collateral damage of neighbor isolation: only infected individuals are put in quarantine.

Figure 3 compares the economic and mortality costs of these two interventions with the basic Quarantine method and with the no-quarantine benchmark for a range of social distancing levels. These are shown both for a closed system and for an open system with a small flow of incoming infections. The effectiveness of tracking is clearly visible at all levels of social distancing, with Track and Test being especially effective, often taking us below the critical threshold of contagion that eradicates the disease. We consider these simulation results to be a clear indication of the effectiveness of track-and-test strategies, stressing the difficult normative question faced by democratic governments around the world of whether and how to deploy contact tracing with its associated privacy loss.

Figure 3
figure 3

Tracking compared with the Quarantine method and the no-quarantine benchmark.

Testing capacity

Our Track and Test method continued recursively with testing the contacts of any infected person found until no more infections were detected. In the worst case this method requires an unbounded number of tests per day. We also study a “bounded-testing” variant, where we only have a limited testing capacity, and once this limit is reached, we can no longer continue with testing. Figure 4 shows the effect that the testing capacity has on the effectiveness of the bounded, realistic, version of Track and Test in comparison with the Quarantine method combined with the same testing capacity where the available tests are administered at random. As Fig. 4a shows, while there is some advantage to random tests and quarantine over straightforward quarantine without any testing, its effectiveness is a far cry from that of Track and Test. See more details in the “Results” section. In Appendix C in the supplementary information, we also consider tracking and testing with low-precision tests, showing the robustness of the Track and Test approach.

On–off lockdown policies

Until now we have only considered static lockdown policies. This is rather limiting in our “open system” model that assumes a small steady flow of spontaneous infections, thus ruling out the possibility of complete eradication of the disease. In such (realistic) models, a natural strategy would be to dynamically relax the lockdown when there are only very few infected people, tightening it back when the number of infected people increases (this is the “hammer-and-the-dance” strategy popularized in22). These dynamic lockdowns may be able to out-perform static constant levels of lockdown.

Figure 5a depicts the cost map of percentage of labor days lost versus the total percentage of infected population for 24 different On–Off policies. The two colors indicate whether the lockdown policy is applied with the limited tests version of the Track and Test method or with random tests and the Quarantine method; the population percentage of tests per day for both methods is \(0.5\%\). Table 1 shows the details of the algorithms corresponding to the policies in the figure. The 12 left columns are policies with the Track and Test method and the right columns are with random tests and Quarantine. The dotted curves show the comparison to the costs of using fixed lockdowns with the two methods and the same number of tests. It can be seen that in the presence of incoming infections, dynamic lockdown policies are more efficient than fixed lockdowns both for Quarantine with random tests and for the Track and Test method. Also in this setting with a limited testing capacity and in combination with dynamic lockdowns, Track and Test policies show a clear advantage over Quarantine policies. See the “Results” section for further analysis of the different dynamic lockdown policies.

One policy that stands out in Fig. 5a is policy A. Policy A combines the Track and Test method with a strong lockdown of \(80\%\) and a full removal of the lockdown once the known number of active cases becomes very low—below \(0.01\%\) of the population. The lockdown is “re-activated” once this number is doubled. Figure 5b shows the dynamics of the spread of the infection under policy A. It can be seen that this type of low-threshold dynamic lockdown policy in combination with tracking and a limited number of tests manages to restrict the spread of the infection to below \(2\%\) of the population in a period of 18 months at significantly lower costs than the non-tracking or the fixed-lockdown alternatives.

Figure 4
figure 4

Effect of tests. A comparison between random tests and the Quarantine method and the bounded Track and Test method, as a function of the percentage of population tested each day.

Background

The early roots of mathematical modeling of the spread of epidemics and the effect of interventions trace back to the classic work of Bernoulli23,24 from 1776, where he used differential equations to analyze the effect of inoculation as an intervention tool for reducing mortality in smallpox outbreaks. About a century and a half later, the modern SIR model was analyzed in the seminal work of Kermack and McKendrick in 19277, based on an earlier model of Ross and Hudson25. The SIR model is based on three coupled differential equations that describe the dynamics of the sizes of three populations: Susceptible S, Infected I and Removed R. The SEIR model is an extension that adds the Exposed state E, which is a non-infectious incubation stage. The steady-state result of the total spread of an infection is the same for the two models. The classical SEIR model describes the dynamics of these four populations by the following set of differential equations:

$$\begin{aligned} \dot{S}(t) = -\beta \frac{I(t)}{N}S(t), \quad \quad \quad \dot{E}(t) = \beta \frac{I(t)}{N}S(t) - \varepsilon E(t), \quad \quad \quad \dot{I}(t) = \varepsilon E(t) - \gamma I(t), \quad \quad \quad \dot{R}(t) = \gamma I(t) \end{aligned}$$
(1)

For a broader introduction on SEIR and related models see26,27. As seen in these equations, the classical SEIR model is deterministic and considers the population as a homogeneous continuum. A natural extension of the model is to a Markov chain model with discrete “compartments” that count the population in each of the states. Stochastic compartmental models of this type allow to simulate more complex settings where the population is no longer homogeneous but is divided to different groups (such as age groups) that have different transition rates between states, or to add more states such as hospitalization states and different disease severity levels; of course, this flexibility comes with the cost of more free parameters in the models. Several such models were recently designed for simulating outbreaks in the current COVID-19 crisis with different interventions, some of which are used by advisory teams for policy makers or as publicly available open source tools (e.g.,28,29). A basic characteristic of compartmental models is that they count the population size in each state and the flows of populations between the different states but, importantly, they do not have identities for individuals and do not model individual interactions.

SIR and SEIR models have also been studied on networks. In the network-based model, individuals can be identified and their interactions can be tracked; this is required in order to directly study the effect of tracking, whereas population-based models require to make a priory modeling assumptions on the effects of tracking or quarantines12, and cannot capture network effects of individual interactions. Previous work on SIR and SEIR models on networks focused mainly on basic statistical properties of these models on several network types14,16, or on the effect of targeted vaccination schemes15,30,31.

In the context of the current COVID-19 pandemic, there is a large and growing body of work on the health, social and economic outcomes of the pandemic32,33,34,35,36,37,38, and on evaluating the effectiveness of different mitigation efforts21,39,40,41,42. More related to the present work are recent works from the economic literature41,42 that study how different mitigation methods affect economy-mortality tradeoffs, and point out to an advantage in efficiency to targeted policies over uniform lockdowns. However, these works use population-level models which do not account for individual interactions and individual-level tracking. The present work focuses on methods that rely on individual-level tracking and testing, and on studying them in a network-based individual interaction model, both in terms of epidemiological effectiveness and of economic efficiency.

Methods

In this section, we give the details of our model and simulations of individual interactions and interventions on networks, and in the Results section we discuss the outcomes of different mitigation policies under this model. The model is an adaptation of the classic SEIR model to dynamic networks, augmented with one additional parameter that describes the average fraction of symptomatic cases among infected individuals. As discussed in the introduction, the symptomatic-cases rate is a crucial property of an infection and its addition to the model is necessary for evaluating the effects of tracking and quarantines. We start by describing how infectious interactions occur in the network model, we then continue to present how lockdowns, quarantines, and tracking work in this model, and then we present the equations of the dynamics at the individual level.

Network interactions

We adhere in our modeling to the basic SEIR model and use a uniform infection probability p per interaction and uniform disease progression times. The infection probability p is related to the basic reproductive number \(R_0\) in the SEIR model as follows. Let m be the average number of interactions of an infected individual during the whole infectious stage, then \(R_0 = m \cdot p\) is the average number of infections caused by this individual when the rest of the population is in the susceptible state. Throughout the paper we use \(R_0 = 3.6\), which is a plausible value for the COVID-19 without interventions9,43. Note that other values directly correspond to lockdown level shifts in our results. The infection rate and the time scales in the experiments are chosen on the one hand to be in the correct realistic range of epidemics of the type of the COVID-19, but on the other hand, we do not aim to give a detailed modeling of a specific outbreak, but rather to study and demonstrate basic effects and fundamental trade-offs of different intervention approaches. We thus do not include in our modeling details such as age or the health conditions of individuals other than that which is related to the infection.

Once an individual interacts with an infectious person there is a probability p that this individual becomes infected and moves to the exposed state. The progression of the disease is then governed by two time constants and an additional parameter to describe symptoms. Let \(\tau _{{\scriptscriptstyle E}}\) be the average duration of the incubation time of the disease (the exposed state) and let \(\tau _{{\scriptscriptstyle I}}\) be the average duration of the infectious state. After this time the patient moves to a removed state (either recovers, is isolated until no longer infectious, or with some probability dies). We use the time constants \(\tau _{{\scriptscriptstyle E}} = 6\) days and \(\tau _{{\scriptscriptstyle I}} = 8\) days. Let q be the symptoms rate, which is the average fraction of infected individuals who develop symptoms at some time during their infectious stage. We assume a constant probability \(p_{symp}\) per day to develop symptoms at each day of the infectious stage, such that the total probability for each individual to develop symptoms at some time during the whole infectious stage equals q. For a given value q, the parameter \(p_{symp}\) is given by the equation: \(p_{symp}=1-q^{1/\tau _I}\). This modeling allows to capture both asymptomatic and pre-symptomatic infection cases. In the experiments presented in the paper we use \(q=0.5\) (for the COVID-19, symptoms-rate estimates range between 0.2 and 0.9 by different sources44,45,46,47). We also study the effect of different values of this parameter.

We consider the dynamics of the spread of an infection in discrete time, in steps of one day. The results of the experiments are measured across a time span of 540 days (roughly a year and a half). A population of \(N=10^5\) individuals is represented in the model as a set \(V_t\) of vertices in an interaction graph. Let \(G_t = \left\{ V_t,E_t\right\}\) be the interaction graph at time t. Each vertex has a unique identity and a private internal state at time t that includes the following properties: (1) Infection state: susceptible, exposed, infectious or removed, and the time since contagion; (2) Symptoms state: symptomatic or not symptomatic. Only individuals in the infectious state can become symptomatic; (3) Visibility state: whether an infection is visible or not. An infection case (in states E or I) becomes visible if the individual has symptoms or is tested positive; (4) Quarantine state: currently quarantined or not quarantined, and the time since the beginning of the quarantine. Quarantines are for a period of 14 days. An (undirected) edge \((i,j)_t\) in this graph means that the two individuals represented by vertices i and j interacted at day t.

At each day t a new subset of the possible edges describes the interactions of this day. In principle, any time series \((E_1,...,E_t)\) of interactions can be used with the model. The basic network model we use is of uniform mixing, which is similar to the classical SEIR model, meaning that each edge exists at time t at a uniform probability, resulting in an Erdős-Rényi network. In Appendix A in the supplementary information we show qualitatively similar results also for geographic small world networks48, where the vertices are spatially located in two dimensions and have frequent interactions with their close relations, but also have a small number of long range interactions with a probability that diminishes quadratically with the geographic distance of the interaction.

To compare between mortality costs under different intervention methods, we measure the total size of the outbreak, which is the eventual population percentage of infected individuals. The total size of the outbreak is a fundamental quantity of the dynamics and thus it is a general metric and is less prone to modeling errors compared to mortality prediction modeling, which is in itself a highly complex task36. This provides, in our view, sufficient and reliable information for evaluating the success of mitigation methods and mainly, for comparing and distinguishing between different intervention policies.

Intervention policies

The three basic intervention tools that we study for mitigating the spread of an infection in the network interaction model are lockdowns, quarantines and tracking-based policies.

Lockdowns

We use a single lockdown-level parameter to model the effect of all social distancing measures. For example, a lockdown level of 0.5 (or \(50\%\)) means that after the edges, \(E_t\), for a new day are determined, each of these edges will be deleted with probability 0.5. For the economic cost of lockdowns we use a linear model that assumes, e.g., that in a lockdown of \(50\%\), half of the labor force is at work. In this context, one may also assume more complex models of convex costs that take into account that less costly measures of social distancing are taken first, or to consider a non-linear dependence of the costs of lockdowns on their duration due to externalities, however, we adhere here to the simpler linear model.

Quarantines

Quarantined individuals are assumed to have no infectious interactions for a period of 14 days. In the simulations, after the set of edges for a new day is determined, and before the actual interactions are simulated, all the edges that are connected to quarantined individuals are removed for that day. The set of individuals starting a quarantine at each day is determined according to the mitigation policy that is applied.

Tracking

Let \(H_t =\left\{ V_t, \bigcup \nolimits _{t'=t-T + 1}^t E_{t'}\right\}\) be the tracking network at time t, where the tracking time T determines how many days of interactions are being tracked. We use a tracking time of 10 days, which is a little above the duration of the infectious stage. The tracking network \(H_t\) identifies the individuals in the population as vertices and its edges show all the past interactions of each individual in a recent time window of T days. The health authorities can identify the vertices in \(H_t\) and observe its edges at the end of each day, and then decide on a policy for day \(t+1\). The internal properties of the vertices are not observed, except for these that are related to quarantines. Regarding the infection state, only a coarser level of information can be detected: (i) Symptomatic individuals are reported as infected; (ii) Individuals that are tested positive are also reported as infected, but without the specific knowledge of the exact states of their disease. The dynamic tracking network \(H_t\) provides the basis for the different Track and Test strategies that we study.

Equations of the dynamics

To write the equations of the dynamics at the individual level, we introduce the following additional notations: For an individual \(v_t \in V_t\) at time t, let \(s(v_t) \in \{S,E,I,R\}\) denote the infection state, \(t_c(v_t)\in \mathbb {N}\) is the time (in days) since contagion, \(vis(v_t)\in \{0,1\}\) is the visibility state (whether or not the health authorities know about this infection case), \(qr(v_t)\in \{0,1\}\) is the quarantine state, \(t_{qr}(v_t)\in 1...14\) is the time (in days) since quarantine started, and \(symp(v_t)\in \{0,1\}\) is the symptoms state. The information regarding an individual \(v_t\in V_t\) in the population at time t can thus be represented by a six-tuple \((s(v_0), \ t_c(v_0), \ vis(v_0), \ qr(v_0), \ t_{qr}(v_0), \ symp(v_0))\).

Initially, all individuals are at the susceptible state: (S, 0, 0, 0, 0, 0), except for a small randomly selected set of individuals that start the infection which are initialized to (E, 0, 0, 0, 0, 0). In the results presented in the paper the initial number of infections is 20 out of a population of 100, 000. Different initial conditions such as varying the number of the initially infected between \(0.01\%\) and \(0.1\%\) of the population, or adding variability to their initial states did not change the results. At each time t there is a set \(E_t\) of tentative interactions. An intervention policy sets for each time t a lockdown level \(l_t\), a set of individuals \(T_t\) that need to be tested, and a set of individuals \(Q_t\) that need to start a quarantine on that day. The actual interactions at time t are determined by eliminating each interaction from \(E_t\) with probability \(l_t\) and all interactions \((v_t,u_t)\) such that \(v_t \in Q_t\) or \(u_t\in Q_t\).

The dynamics are comprised of four equations sets, each describing the progression of the six parameters of each individual. The relevant equation set for each individual is determined according to the epidemiological state of that individual (S, E, I, or R). The four equation sets are the individual interaction and discrete time counterparts of the four SEIR equations presented in Eq. (1), with the additional information regarding the symptoms, visibility, and quarantine states of each individual. A key difference from the classical SEIR model is that here each individual has an internal state, and so the number of parameters that are updated at each step of the dynamics of a population of N individuals is 6N, and the number of interactions is quadratic with N, while the population-based SEIR keeps track of a coarser information of only four states (the population sizes of each of the four states {S, E, I, R}). The equations of the dynamics are as follows:

If the individual is in the susceptible state, i.e., \(s(v_t)=S\):

  • Denote the number of interactions of individual \(v_t\) at time t with infections individuals by \(k(v_t)=|\left\{ (v_t,u_t)\in E_t: s(u_t) = I\right\} |\)

  • The state \(v_{t+1}\) in the next day is updated according to:

    $$\begin{aligned} s(v_{t+1})= & {} \left\{ \begin{array}{ll} E &{} \hbox {w.p. }1 - (1-p)^{k(v_t)}\\ s(v_t)=S &{} \hbox {otherwise} \end{array}\right. \quad \quad \quad \ \ qr(v_{t+1}) = \left\{ \begin{array}{ll} 1 &{} \hbox {if }v_t \in Q_t\\ 0 &{} \hbox {if }v_t \notin Q_t\hbox { and } t_{qr}(v_t)=14 \\ qr(v_t) &{} \hbox {otherwise} \end{array}\right. \nonumber \\ t_{qr}(v_{t+1})= & {} \left\{ \begin{array}{ll} t_{qr}(v_{t}) + 1 &{} \hbox {if }qr(v_t)=1\\ 1 &{} v_t \in Q_t\\ 0 &{} \hbox {otherwise} \end{array}\right. \end{aligned}$$
    (2)

    and the other parameters remain: \(t_c(v_{t+1})=t_c(v_{t})\), \(vis(v_{t+1})=vis(v_{t})\), \(symp(v_{t+1})=symp(v_{t})\).

If the individual is in the exposed state, i.e., \(s(v_t)=E\):

$$\begin{aligned} s(v_{t+1})= & {} \left\{ \begin{array}{ll} s(v_{t})=E &{}\hbox { if }t_c<\tau _E\\ I &{} \hbox {otherwise} \end{array}\right. \quad \quad \quad \quad \quad \quad \quad \ t_c(v_{t+1}) = t_c(v_{t})+1 \nonumber \\ vis(v_{t+1})= & {} \left\{ \begin{array}{ll} 1 &{} \hbox {if }v_t \in T_t\hbox { or } symp(v_t)=1\\ vis(v_t) &{} \hbox {otherwise} \end{array}\right. \quad qr(v_{t+1}) = \left\{ \begin{array}{ll} 1 &{} \hbox {if }v_t \in Q_t\\ 0 &{} \hbox {if }v_t \notin Q_t\hbox { and } t_{qr}(v_t)=14 \\ qr(v_t) &{} \hbox {otherwise} \end{array}\right. \nonumber \\ t_{qr}(v_{t+1})= & {} \left\{ \begin{array}{ll} t_{qr}(v_{t}) + 1 &{} \hbox {if }qr(v_t)=1\\ 1 &{} v_t \in Q_t\\ 0 &{} \hbox {otherwise} \end{array}\right. \quad \quad \quad \quad \quad \ symp(v_{t+1}) = symp(v_{t}) \end{aligned}$$
(3)

If the individual is in the infectious state, i.e., \(s(v_t)=I\):

$$\begin{aligned} s(v_{t+1})= & {} \left\{ \begin{array}{ll} s(v_{t})=I &{} \hbox {if }t_c<\tau _E + \tau _I\\ R &{} \hbox {otherwise} \end{array}\right. \quad \quad \quad \quad \quad \ \ \ \ \ t_c(v_{t+1}) = t_c(v_{t})+1 \nonumber \\ vis(v_{t+1})= & {} \left\{ \begin{array}{ll} 1 &{} \hbox {if }v_t \in T_t\hbox { or } symp(v_t)=1\\ vis(v_t) &{} \hbox {otherwise} \end{array}\right. \quad qr(v_{t+1}) = \left\{ \begin{array}{ll} 1 &{} \hbox {if }v_t \in Q_t\\ 0 &{} \hbox {if }v_t \notin Q_t\hbox { and }t_{qr}(v_t)=14\\ qr(v_t) &{} \hbox {otherwise} \end{array}\right. \nonumber \\ t_{qr}(v_{t+1})= & {} \left\{ \begin{array}{ll} t_{qr}(v_{t}) + 1 &{} \hbox {if }qr(v_t)=1\\ 1 &{} v_t \in Q_t\\ 0 &{} \hbox {otherwise} \end{array}\right. \quad \quad \quad \quad \quad symp(v_{t+1}) = \left\{ \begin{array}{ll} 1 &{} \hbox {w.p. }p_{symp}\\ symp(v_{t}) &{} \hbox {otherwise} \end{array}\right. \end{aligned}$$
(4)

Finally, for individuals in the removed state, \(s(v_t)=R\):

$$\begin{aligned} qr(v_{t+1}) = \left\{ \begin{array}{ll} 1 &{} \hbox {if }v_t \in Q_t\\ 0 &{} \hbox {if }v_t \notin Q_t\hbox { and }t_{qr}(v_t)=14\\ qr(v_t) &{} \hbox {otherwise} \end{array}\right. \quad \ t_{qr}(v_{t+1}) = \left\{ \begin{array}{ll} t_{qr}(v_{t}) + 1 &{} \hbox {if }qr(v_t)=1\\ 1 &{} v_t \in Q_t\\ 0 &{} \hbox {otherwise} \end{array}\right. \nonumber \\ t_c(v_{t+1})= & {} t_c(v_{t})+1 \end{aligned}$$
(5)

and the other parameters remain constant at this state: \(s(v_{t+1})=s(v_{t}) = R\), \(vis(v_{t+1}) = vis(v_{t})\), \(symp(v_{t+1})=0\).

Results

Here we show the effects of the intervention tools presented the previous section—lockdowns, quarantines, tracking and testing—on the dynamics and outcomes of an epidemic in the SEIR model in dynamic networks of interacting individuals. We first discuss the effects of lockdowns and of quarantine of infected individuals on the economic cost and on the total spread of the infection. Then, we evaluate the potential benefits of tracking the contacts of infected individuals and the added value of tests. Finally, we discuss dynamic lockdown policies and how do they interact with tracking and testing and with quarantines.

Figure 5
figure 5

On–Off policies. (a) The cost map of the total percentage of labor days lost in 18 months versus the total percentage of population infected. The letters near the markers indicate the different policies as shown in Table 1. Purple markers are policies with the bounded Track and Test method and orange markers are with the Quarantine method with random tests. The purple and orange dotted curves show a comparison to the results of fixed lockdown policies with bounded Track and Test and with Quarantine and random tests, respectively. (b) The dynamics of the outbreak under policy A.

Lockdowns and quarantine

Lockdowns are a direct tool for limiting the progression rate of an infection: a “blanket lockdown” that reduces on average the probability of each interaction by a fraction X leads to an immediate reduction in the infection rate, reducing the basic reproductive number from \(R_0\) to \(R_e = (1-X)R_0\). In principle, a strict lockdown for a sufficient period of time can eradicate an infection completely. However, lockdowns have two key caveats as mitigation or containment tools: the first caveat is the high economic and social costs of lockdowns, and the second is that a full extinction state of the infection is not always feasible in practice due to its sensitivity to new incoming infections.

In Fig. 3, the red curves show the effect of using only lockdowns as a mitigation tool. The figures depict the cost maps of the total percentages of infected population and the percentages of labor days lost throughout a period of 18 months, in a closed system (Fig. 3a) and with a small flow of incoming infections (Fig. 3b). The numbers near each marker indicate the lockdown level and the dotted lines are linear interpolations. The results show a qualitative difference between closed and open systems: In a closed system, as seen in Fig. 3a, it is possible to hold a strong lockdown of \(80\%\) that reduces the effective reproductive number to below 1 and to eradicate the infection completely. This leads to an overall low percentage of infected population and to relatively low costs, since the lockdown can be removed after a short period once there are no more infections. However, Fig. 3b shows how adding even a small incoming flow of infections (a single new infection per week in a 100,000 population) leads to a different result; when relying solely on lockdowns, herd immunity is not reached and, in the lack of additional tools to restrain the spread of the infection, the lockdown cannot be removed and the economic cost remains high. The curves show that in both closed and open systems there is a trade-off between mortality and labor days lost, but in systems that are \(100\%\) closed this trade-off breaks when moving from a subcritical to a supercritical lockdown level, while in the more realistic presence of some leakage of new infections the trade-off persists.

Next, we turn to look at the effect of quarantines. The yellow curves in Fig. 3 show the costs when symptomatic infected individuals are put in quarantine (i.e., the Quarantine method). It is clearly seen that the Quarantine method dominates the no-quarantine benchmark. I.e., for every fixed cost, Quarantine leads to a lower total infection percentage, and for every fixed infection percentage Quarantine has a lower cost than the no-quarantine benchmark. When looking at fixed lockdown levels and comparing the no-quarantine (red) and Quarantine (yellow) methods, we see that at low lockdown levels, quarantining symptomatic cases creates some trade-off between economic cost and the mortality rate, mainly in the closed system condition. This happens because a significant part of the population are symptomatic and quarantined, leading to a non-negligible loss of labor days. However, this trade-off breaks when the lockdown level is higher and closer to the critical value. E.g., at lockdown levels of 0.6 in both closed and open systems, Quarantine has lower economic costs and lower mortality rates than the no-quarantine benchmark.

The effectiveness of quarantines depends on the rate at which infected individuals develop symptoms. In an extreme case where all infected individuals are symptomatic and detected at an early time of their infectious stage, quarantining infected individuals may be sufficient to stop an outbreak. On the other extreme, if there are almost no symptomatic cases, then the infection is not considered dangerous and even a widespread outbreak is not a serious concern. The situation of intermediate values is harder to control: When only part of the infected individuals develop symptoms, and symptoms may start either early or late during the infectious stage of the disease, asymptomatic and pre-symptomatic individuals act as “invisible spreaders” of the infection, leading to high mortality. Fig. 2 shows the total population percentage of symptomatic cases as a function of the rate of symptoms, with and without quarantines. As can be seen, a high symptoms rate exerts “force” in two opposite directions: On the one hand, symptomatic cases can be detected and isolated, but on the other hand, a higher rate of symptoms naturally leads to more symptomatic cases. The tension between these two forces is expressed in the non-monotonic cost curves, both having a maximum point, with intermediate symptom rates resulting in high costs.

Tracking

Figure 6
figure 6

Track and test without any lockdown: outbreak dynamics.

Next, we describe the results of the tracking-based intervention methods and compare these results to the basic Quarantine method. The tracking methods we compare are Track and Quarantine that quarantines symptomatic individuals as well as everyone they interacted with in the past 10 days, and the Track and Test method that recursively performs tests based on direct interactions with symptomatic individuals in the past 10 days and quarantines at every day only the detected infected individuals.

The green and purple curves in Fig. 3 show the cost map of the Track and Quarantine method and the Track and Test method, respectively. A comparison with the results of the basic Quarantine method (in yellow) shows a clear-cut advantage of the two tracking methods over the Quarantine method in terms of mortality under all lockdown levels, in both open and closed systems. In terms of economic costs, at low lockdown levels of \(30\%\) or below, the Track and Quarantine method quarantines a large fraction of the population due to their interactions with infected individuals and has the highest cost. In contrast, at higher lockdown levels Track and Quarantine manages to contain the infection and its economic costs drop and become lower than these of the basic Quarantine method (without tracking). The Track and Test method that quarantines only infected individuals leads to low infection spread and economic costs, outperforming the other methods.

In Fig. 3 it is particularly interesting to notice the zero lockdown points of the Track and Test method. The figures show that both in open and closed systems, the Track and Test method manages to suppress the spread of the infection and practically achieves containment of the outbreak without using any lockdown. Figure 6 shows the dynamics of the infection under the Track and Test method without any lockdown in open and closed systems. In the closed system (Fig. 6a), Track and Test eliminates the infection to zero after about a year, with a total of less than \(2\%\) infected population. With an incoming flow of infections (Fig. 6b) complete elimination is impossible, but here the spread of the infection under the Track and Test method is slow and sub-linear, reaching only less than \(4\%\) of the population in 18 months.

To shed more light on the process in which the Track and Test method manages to outperform the basic Quarantine method and suppress the outbreak we look at the dynamics of the number of actual active cases (exposed and infectious states) and the count of currently quarantined individuals for the two methods. Notice that the actual active cases count does not include recovered cases while the quarantined cases typically do include some recently recovered patients. Figure 7a shows the dynamics of the active cases count across time (in blue), presented as percentages of the population, and the dynamics of the percentage of the population currently in quarantine (in orange) for the Quarantine method. Figure 7b shows a similar plot for the Track and Test method. Both figures are presented in the more realistic open-system condition. We observe two problems in the Quarantine method: First, the number of quarantined cases reaches significantly lower levels than the number of actual cases, and second, Quarantine is “lagging behind” the dynamics of the actual infected cases. Both of these problems stem from the fact that the Quarantine method relies on passive detection of symptomatic cases; these cases consist only a part of the actual cases due to a large fraction of asymptomatic cases and are detected with a latency due to the incubation and pre-symptomatic time of the disease. The Track and Test method manages to overcome both of these difficulties, as it does not rely only on natural detection of symptomatic cases. Instead, these cases are used as seeds to track and then quarantine infection chains, quarantining also exposed and asymptomatic individuals. Figure 7b shows that the quarantined cases reach close to the actual active cases and very little lag effect can be seen. The advantage of tracking and testing is seen in the two orders of magnitude difference in scale between the two figures (approximately \(30\%\) vs. \(0.3\%\) at the maximum points).

Figure 7
figure 7

Active and quarantined cases.

Limited testing capacity

We have seen that the Track and Test method outperforms the basic Quarantine method by a large gap in both the scale of spread of the infection (and thus the mortality rate), and in the economic costs of the mitigation efforts. An issue that might arise in the context of the Track and Test method is that in the worst case, this method requires an unbounded number of tests (limited only by the size of the population). It could be that Track and Test simply tests the whole population in a short period of time; such a strategy, if it were possible to implement, would stop the infection, and it does not require any tracking. For (an extreme) example, if the whole population was to be tested in a single day, all infected individuals could be quarantined, and the infection would not spread. To test whether this is the case we first look at the actual number of tests run by the (unbounded) Track and Test method, and then look at a bounded-tests variant of the method.

Figure 8a shows the average number of tests actually performed by the Track and Test method across time in 50 realizations of the infection spreading process, presented as percentages of the population. The shaded area in the figure shows the 1st to the 3rd quartiles across the different realizations. It can be seen that in practice, the unbounded Track and Test method typically requires only a moderate number of tests per day. The average rate of daily tests increases at the beginning of the outbreak, reaching \(0.25\%\) of the population and then gradually decreases. Figure 8b shows the full distribution of test rates over all simulation instances and all simulation days. Most of the mass of the distribution is indeed centered at low test rates, but there is a tail of low probability events of days with high test rates. The inset in logarithmic scale shows that these events are rare, and their probability roughly decays exponentially with the test rate, but still, their probability is not negligible. Next, we describe a bounded version of the Track and Test method which avoids these high-test-rate events, and show that such test rates are not really required for effective tracking and testing.

Bounded Track and Test

As long as the daily tests did not reach a given capacity limit, the bounded variant of Track and Test runs the recursive tests as in the Track and Test method. If the daily test capacity is reached, bounded Track and Test quarantines all the detected infected individuals and all their neighbors in the tracking network, excluding those that were tested negative on the same day. In the special case of zero test capacity, this algorithm is equivalent to the Track and Quarantine algorithm, and in the special case of infinite capacity it is equivalent to the Track and Test algorithm.

Figure 4 shows the percentage of total infected population (Fig. 4a) and the economic costs (Fig. 4b) as a function of the daily test capacity in population percentages for the bounded Track and Test method and the Quarantine method. The Quarantine method is combined with random tests with the same test capacity. In terms of the size of the outbreak, the bounded version of Track and Test has a significant advantage over the Quarantine method for all test capacities. In terms of economic costs, at low test capacities Track and Test has higher costs than the Quarantine method, but the cost drops rapidly as the capacity is increased. For test capacities of \(3\%\) and above, also the bounded version of Track and Test manages to contain the outbreak without the use of lockdowns and at lower costs than the Quarantine method.

The above results show that tests and quarantines alone do reduce the size of the infection, but only moderately, and a high testing capacity is required for a significant reduction in costs and mortality (see also Appendix B in the supplementary information). Tracking without tests has a stronger effect, however, this is still not sufficient to reach one-digit percentages in the size of the outbreak, and still there are non-negligible costs due to large-scale quarantines. The Track and Test method manages to contain the outbreak at low costs and outperforms the other approaches. This advantage of Track and Test is not a result only of a large number of tests, nor a result of tracking alone, but it is a result of the combination of tracking with a sufficient testing capacity for contacts of infected individuals.

Figure 8
figure 8

Distribution of test rates of the Track and Test method.

On–off lockdown policies

We have seen that on the one hand, in closed systems a strong lockdown leads to a fast extinction of the infection, which in turn leads also to low economic costs, but on the other hand, if there are incoming infections the fixed lockdown is not desirable as it leads to high costs. If a sufficient testing capacity is available (of around \(3\%\)), we have seen that the Track and Test method can effectively contain the outbreak at low costs without lockdowns. Now we consider a more restrictive setting for interventions, where there is a non-zero incoming flow of infections—and so a complete eradication of the infection is not possible—and the daily test capacity is limited to a more moderate value. In this setting we turn to evaluate the performance of a family of dynamic lockdown algorithms that we call “On–Off” lockdown policies, in the spirit of the “Hammer and Dance” idea as advocated in22. We evaluate the On–Off lockdown policies in combination with the Track and Test method and with the Quarantine method.

On–off algorithms

The dynamic “On–Off” lockdown policies that we study are a family of threshold algorithms that are defined by four parameters: \(\left( Low, High, On, Off\right)\). The algorithms track the current number of known active cases, in percentages of the population size. If this number is above the On threshold, the lockdown level is switched to High. If the known active cases are below the Off threshold, the lockdown is switched to Low. For example, an On–Off policy with parameters \(\left( 50, 80, 10, 1\right)\) means that if the number of known active cases is above \(10\%\) of the population a strict \(80\%\) lockdown will be applied, and once the number of known active cases drops below \(1\%\) of the population, the lockdown will be relieved to a \(50\%\) level. The choice of a lockdown policy is orthogonal to the choice of tracking, testing or quarantine method, in the sense that any On–Off policy can be used in combination with any method of the methods discussed in the previous sections.

Table 1 On–Off policies corresponding to the results in Fig. 5.

Figure 5a shows the cost map of 24 policies that are a combination of 12 On–Off algorithms applied with two methods: the bounded version of Track and Test and the Quarantine method with random tests, both with a daily test capacity of \(0.5\%\) of the population. The letters in the figure mark the different policies as shown in Table 1; the 12 left columns in the table are with the bounded Track and Test method and the right columns are with the Quarantine method. Larger circles in Fig. 5a indicate higher variance between simulation instances and the radius shows the standard deviation. The purple and orange dotted curves are the results of different fixed lockdown policies with the same number of tests for Track and Test (purple) and for Quarantine (orange), presented for comparison with the On–Off policies.

The On–Off policies are divided to two types: policies that switch between a \(80\%\) lockdown and \(0\%\) lockdown, which we call “strict” On–Off policies, and policies that switch between \(80\%\) and \(50\%\) lockdowns, which we call “trembling-hand” On–Off policies. For the Quarantine method, policies M-R are strict and policies S-X are trembling-hand. Each of these two families shows a cost-mortality trade-off: changes in the thresholds of the algorithm within the same family that reduce mortality also increase the economic cost. When switching between the trembling-hand family S-X to the strict family M-R the trade-off breaks and it is possible by such changes in the algorithm to reduce both costs and mortality, except for policy S that has a slightly lower mortality than policy M. For the Track and Test method (purple markers in the figure), policies A-E are strict and policies G-L are trembling-hand On–Off policies. Policies G-L all have similar high cost and low mortality, and policies A-E show the cost-mortality trade-off as in the Quarantine method.

An especially interesting policy in Fig. 5a is policy A that achieves a very low mortality rate and has a moderate cost of \(35\%\), significantly lower than the fixed lockdown alternatives (the dotted lines in the figure). Figure 5b shows the dynamics of the spread of the infection under policy A. It can be seen that under this policy the \(80\%\) lockdown is active less than half of the time, and is restarted at a frequency of about one month. This algorithm leads to a slow quasi-linear spread of the infection, reaching less than \(2\%\) of the population in 18 months.

We conclude that first, the dynamic On–Off policies are more efficient than fixed lockdown policies, and second, also in the setting of a moderate testing capacity and in combination with dynamic lockdowns, Track and Test leads to a substantial reduction in mortality and costs. Regarding the choice between specific types of On–Off policies, first, we see that trembling-hand policies have only a minor advantage in mortality rate over strict On–Off policies, but cause a significantly higher economic burden, and second, the low threshold (and hence high frequency) policies achieve better results in terms of mortality than the high-threshold ones, but with some trade-off between mortality and economic cost.

Discussion

We studied the effectiveness of a range of intervention policies for mitigating epidemic outbreaks in a network-based SEIR model. Our model describes individual interactions directly, as edges in a time dependent network, and keeps track of the internal state of each individual in the population. These features of the model were introduced in order to allow studying policies that rely on individual-level tracking directly, without making a priory assumptions about the outcomes of tracking. Of course, the model has limitations. Specifically, we do not model in this work heterogeneity in susceptibility levels or in viral loads of infected individuals, we use a linear model for the economic cost of lockdowns and quarantines, and we consider the total percentage of infected individuals as a proxy to mortality and other health outcomes of the infected population. Therefore, the total outbreak size and the economic cost in our model should be interpreted as first approximations and as comparative metrics between mitigation approaches. For example, in an economy where the costs of lockdowns are super-linear in the intensity of the lockdowns or its duration due to externalities, lockdown-based policies become more expensive and the economic gap in favor of tracking-based methods will increase. Or, if parts of the population are not susceptible, either naturally or due to vaccines, then the model describes only the sub-population of susceptible and the actual fraction of the population infected by the disease will be lower under all intervention policies. Another limitation is in complexity: keeping track of the interaction network requires considerable computational resources. Although this complexity is polynomial in the population size, in a large population performing or simulating individual-level tracking can be challenging and more sophisticated algorithmic solutions may be required. Additionally, in reality there may be gaps between a planned policy and that which is implemented in the field. Such issues of compliance, enforcement and implementation may pose constraints to policy makers which are not included in our model; our results describe only the potential of the different interventions policies assuming that they are implemented.

Every intervention policy eventually tries to trade-off between economic costs and mortality, as well as privacy costs and other social and civil-rights costs incurred by the epidemic or by the policy itself. Our results show stark advantages to mitigation methods that rely on individual-level tracking compared to non-tracking methods, reaching low mortality and economic costs. If the testing capacity is around \(3\%\), Track and Test manages to stop the spread of an infection, without any lockdowns. When the testing capacity is lower, we have shown that strict On–Off lockdowns dominate fixed-lockdown policies, and again, Track and Test policies dominate non-tracking policies.

Our findings on the benefits of fast and effective tracking of all infected individuals and their interactions suggest that these have the potential to replace the usage of lockdowns and social distancing measures, and to save human lives and economic costs. Digital tracking has a serious cost in the privacy of infected individuals and their contacts, but on the other hand, lockdowns and social distancing restrictions have their own severe costs in freedom and human rights, beyond their economic costs. Our results stress the importance and urgency of facing the difficult normative question of whether and how to deploy contact tracing in democratic countries, both for the current COVID-19 crisis and in order to prevent outbreaks in the future.