The initial medical response to Ebola in 2014 focused on caring for individuals in hospital settings and using contact tracing as the primary preventative measure [1] . Contact tracing is the accepted method for public health control of infectious diseases [2] and has been the subject of theoretical and empirical studies [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] . Under contact tracing, a patient admitted to a hospital is asked about their recent direct contacts, and those contacts are monitored or isolated for the incubation period of the disease [2, 14] . The spread of Ebola to dense urban communities made it difficult or impossible for contact tracing to work due to the large number of responders needed to trace contacts when many people are infected. While some contacts were knowable like family and friends, including those from ritual washing of the dead, others were untraceable anonymous interactions in public markets, buses, and taxis [15] [16] [17] [18] . For traceable interactions, the number of individuals that are needed to perform contact tracing activities (interviewing, compiling lists, seeking out contacted individuals, performing monitoring and isolation of identified individuals) grows with the number of infected cases. For an exponentially growing number of cases, the number of responders for an effective response must grow exponentially, and without this level of response, the number of cases cannot be curtailed [1, 19, 20] . As an alternate approach, we consider community-based monitoring and limiting travel to reduce inter-community contagion [21] .
In community based monitoring, the effort to identify who has been contacted is avoided by monitoring all members of the community. Such approaches were taken in Liberia beginning in mid September 2014 [22, 23] and in Sierra Leone beginning in mid December 2014 [24] , and may be responsible for the rapid reduction in cases seen in those two countries. In particular, in early March 2015, it was announced that there were zero remaining active cases of Ebola in Liberia [25] . Subsequent intermittent cases have not led to the same level of crisis. While the Centers for Disease Control Director Tom Frieden attributed much of the success in the public health effort to the formation of local teams based upon the principle of RITE (Rapid Isolation and Treatment of Ebola) [26] , the World Health Organization (WHO) has reported community engagement as a key factor in the successful response [18] .
The direct cause of the reduction is not well documented. Here we simulate the progress of an epidemic and found that community monitoring can be highly effective in stopping an outbreak.
In general, early detection of Ebola-like symptoms is necessary for early care of patients with Ebola and limiting new infections. This is due to the extended infectious period and tendency of the disease to become more contagious as it progresses [27] [28] [29] . Contact tracing addresses this, but it is highly dependent on the patient knowing the people they interact with, made nearly impossible in urban environments with anonymous interactions. Here we explore a multi-scale intervention based on these ideas. Instead of monitoring individuals from a list of contacts, a community-based strategy requires that entire communities be monitored for new cases until infection is ruled out. Symptomatic individuals are isolated and treated to prevent further infections. This community-based early detection is augmented by restricting long-distance travel or subjecting travelers to extended periods of limited contact and observation. Restricting travel inhibits cross-contamination between communities and allows more targeted care to be given to infected communities. The objective is to progressively limit the disease to smaller and smaller areas and to focus resources on the areas in which the disease is present. In contrast to contact tracing, the number of responders needed for community monitoring grows only with the number of infected areas instead of the number of cases. Moreover, the effort needed to train individuals to screen for fever, the primary activity, is low, and those performing community monitoring can be members of that community.
If all new infections could be perfectly isolated through the complete monitoring of the population, these policies would evidently drastically limit new Ebola cases and result in an abrupt halt to the epidemic. However, an analysis must account for how effective the implementation of screening will be. It is infeasible and undesirable to constrain the population using high levels of force, so the level of compliance that is achieved is a key variable in efficacy. Here we model compliance as a probability that individuals will adhere to the community-level policies. This captures both the possibility of defiance as well as other sources of performance failure such as accidents or lack of awareness or information. We analyze the level of compliance necessary for the policies to work effectively. As shown in Fig. 1 , we find that even with 40% compliance the community level policies curtail the epidemic and a 60% compliance rapidly ends the outbreak. Screening begins at the vertical dotted line, with a level of compliance indicated by label and color (green 0 to blue 1.0). A. Number of cases with or without symptoms. Note that even 40% compliance (0.4) results in decrease in cases. B. Cumulative cases. C. R t , the effective reproductive number-the average number of individuals infected by an index case at time t. For an epidemic to continue to grow, R t must exceed 1. For 40% compliance (0.4) and greater, R t decreases below one, corresponding with a decrease in active cases. R t drops before t = 70 because policies affect the contagion of individuals that are initially infected prior to the intervention.
Simulations of Ebola and other infectious diseases have been performed on complex networks [30] [31] [32] [33] [34] [35] or spatially-explicit populations [36] [37] [38] [39] [40] with interactions on household, community, and global scales [35, [41] [42] [43] [44] [45] [46] . Our analysis of response focuses on the possibility of local and long range transmission events. We incorporate such events into a transmission model and test that the results are robust to variations in the model transmission network.
Our model is a Susceptible, Exposed, Infectious, Removed (SEIR) model on a spatial lattice of individuals ( Fig. 2) with periodic boundary conditions. Individuals can be in one of four states: disease-free and never previously infected (susceptible), infected in the latent period without symptoms (exposed), infected with symptoms (infectious), and recovered or dead (removed). Newly infected individuals progress through a latent period for ∆ days where they are asymptomatic and not contagious. They then become contagious for a period of Γ days, at the end of which they have either died or have recovered and have acquired immunity from further reinfection. Each individual interacts with all four of its nearest neighbors on the lattice once per day, and an infectious individual infects a susceptible neighbor with probability τ during a given interaction. Each individual also interacts with another randomly chosen individual from the population. If one of them is infectious, they have a probability η of infecting the other by this long-range interaction. A schematic of these interactions is shown in Fig. 2 . This mix of local and long-range disease transmission was chosen for our model to reflect the tendency for Ebola to spread both within households and through non-local interactions in shared taxis, hospitals, or through other travel [47] .
Additionally, it is known that the presence of even a small probability of long-range disease transmission can allow the rapid spread of an epidemic on a regional or global scale [36] . 
We used data from the World Health Organization [48] to determine model parameters that match the exponential growth phase of the Ebola outbreak in Liberia. By performing an exponential regression, we determined that the cumulative number of confirmed cases, y(t), in Liberia approximately followed the functional form y(t) ∝ exp (0.052 t), consistent with the analysis done by Chowell and Nishiura [49] . Comparison with empirical event data did not affect the conclusions.
It is useful to consider the value of the basic reproduction number, R 0 , defined as the average number of individuals infected by a single index case in an otherwise susceptible population. R 0 has a clear threshold value for epidemics: outbreaks with R 0 > 1 experience exponential growth, whereas outbreaks with R 0 < 1 die out exponentially. To deduce R 0 from the exponential growth rate, we used an expression derived from a mean-field version of the SEIR model (see Appendix) :
where r is the empirically-measured exponential growth rate of the cumulative number of cases [50] . Values for ∆ and Γ must be identified in order to obtain a value of R 0 . We consider two different sets of parameter values corresponding to two different estimates of measurements from a previous outbreak on the same subtype of Ebola [51, 52] , the figures presented in the text of the paper are for these parameter values.
Second, we used the parameter values ∆ = 10 and Γ = 7 to compare our model with that of Chowell and Nishiura, who estimated that R 0 = 1.96 [49] . Simulating this epidemic with infection parameters of τ = 0.18 and η = 0.015, we obtained an average exponential growth rate of 0.05, with a corresponding R 0 value of 2.0, similar to that found by Chowell and
Nishiura. These authors based their parameter values on previously hypothesized epidemic properties of Ebola [49, 53] . Results using these parameter values are in the Supplement. The impact of intervention policies can be readily seen by plotting the effective reproduction number R t , the average number of secondary infections caused by a primary case who is first infected at time t [54] . An R t greater than 1 at a given time implies that the epidemic will grow exponentially over the short term, while less than one implies it will decline exponentially. Unlike R 0 , R t is designed to reflect the effect of interventions as well as that of natural epidemic burnout. Plotted in Fig. 1C , we see that compliance levels of 0.6, 0.8, and 1.0 cause the value of R t to decrease well below the threshold value 1.0 within a span of several days. This represents a quick transition from a regime in which the disease is growing exponentially to a regime in which the epidemic can no longer sustain itself and consequently dies out. Even with a compliance of 0.4, enough infections were halted to reduce the value of R t below 1 (Fig. 1C) .
To Without travel restrictions, compliance levels between 20% and 40% actually prolong the outbreak relative to the no intervention case (Fig. 3A ). For these levels of compliance community screening slows transmission but insufficiently to halt the outbreak, so transmission continues at a slower rate until the population is exhausted. Travel restrictions greatly reduce this effect. Travel restrictions also noticeably decrease the cumulative number of infections for low levels of compliance (Fig. 3B ). This shows that, in the event of low compliance, travel restrictions limit the spread and duration of the outbreak.
Comparing the cumulative cases as a function of compliance for different delay times (Fig.   3C ), interventions with an earlier start time T 0 generally result in fewer cumulative infections.
However, without travel restrictions, this is much less true for low levels of compliance.
Thus, travel restrictions ensure that early policy implementation is effective even at low compliance. Fig. 3C also shows that higher compliances than 0.6 have comparatively little impact on the cumulative number of cases.
We visualized the evolution of neighborhood types over time with the cordon to demonstrate the spatial constriction of the disease with this policy (Fig. 5 ). The first panel (top left) shows the geographical distribution of neighborhood types shortly after the policies come into effect. The infected area shrinks and the ratio of type A (red) to type B (green) neighborhoods decreases over time.
In Fig. 4 we plot both the reported number of cases in Liberia [55] and our simulation with T 0 = 50 days and a 50% compliance (0.5). Our simulations fit the observed case count data in Liberia for the parameters chosen, indicating that the early screening intervention was far from complete, but was sufficiently effective. Since the results of the simulation are robust to variation in parameters, the correspondence of the real world data in with the simulation reflects the reduction of R t below the epidemic threshold Liberia. for which the contact structure itself changes to a small world network model (Kleinberg network). For the Moore neighborhood network, each individual is connected to its closest eight rather than four nearest neighbors. The Kleinberg network was implemented by allowing individuals to have a varying number of long-range contacts with their probability of making that connection decrease with distance. We also allowed the length of the of latent and infectious periods to vary for individuals across values found by Chowell [56] to allow for variable stage lengths. Fig. 6 shows the results of the simulations with these different networks, with τ and η adjusted so that each network's growth rate has an R 0 in agreement with the observed results for Ebola. The results show the intervention effectiveness remains high and a compliance above 50% is sufficient to rapidly stop the epidemic. This provides additional evidence for the relevance of the results to real world conditions despite approximations used in modeling the transmission network. It also indicates that the community level interventions are highly robust.
We note that recent research on contagious processes on networks that are not geographically local have considered heterogeneous connectivities across nodes, and specifically power law node connectivity. Under these conditions highly connected nodes enable the disease to spread across the entire network at arbitrarily low contagion rates [32] . Cordons that restrict the contagion by limiting geographical spread would also impose a cutoff on power law connectivities leading to a non-zero threshold contagion rate for such networks. By limiting connectivity to local neighborhoods, cordons bound the maximum connectivity of an individual and therefore truncate power law connectivity distributions.
We analyzed the effect of community monitoring using a mean field, spatially averaged 
where S represents susceptible, E exposed, and I infectious groups. The first equation can be written as
is the effective transmission rate, encapsulating all the effects of the infectiousness probabilities in the model. Note that the exposed and infected populations progress through the disease without interference. The base reproduction number without intervention R 0 for the SEIR model is R 0 = τ N SΓ. Therefore, the mean field value with community monitoring is R m =τ N SΓ. Using this approximate mean field model, and a value of p estimated from the simulation, the compliance needed to end an outbreak is c ≈ 0.5 to reduce R t below 1.0, as compared to c ≈ 0.4 from the simulations themselves. The consistency of the result is further indication of its robustness.
For a similar analysis of contact tracing, a mean field treatment should separate exposed and infected populations based on whether or not they were traced [57] . Traced individuals are less likely to infect others. The success of contact tracing is dependent on the probability that an untraced infectious individual is discovered (ρ), and the portion of traced contacts that are isolated successfully (φ). The reproduction number with contact tracing R c is R c = R 0 (1 − ρφ) [57] . To reduce R c below 1 for ebola, ρφ ≥ 0.5. This shows that the minimum of ρ and φ must be more than 0.5 to reduce R c below 1 and end the outbreak.
However, if one is at 0.5 they other has to be 1, i.e. 100% successful. Otherwise, success can be achieved if both are at least 0.7. Thus both the ability to identify contacts and the successful isolation of those contacts must be sufficiently high. This makes explicit the requirement that successful contact tracing both identify individuals who have been in contact with the sick (or dead), and the need to successfully isolate those individuals. 
We found that a policy of community response can be effective at combating disease outbreaks without relying on information about infected individual's contact networks. This highlights the possibility of alternate methods to contact tracing for combating outbreaks.
We have shown the policies require a surprisingly low compliance to end the outbreak. Notably, we see that for estimated Ebola parameters, 40% compliance is sufficient, and the cumulative number of infections in an outbreak is not substantially decreased by compliance higher than 60%. We also found that travel restrictions can be used to reduce the risks associated with compliance below 40%, and that the pairing of community-level interven- Individuals transition from state to state in the order S → E → I → R. Historically, the case-fatality rate for Ebola outbreaks has been around 50% [58] , so the number of removed individuals can be divided by two to obtain an estimate of the number of deaths.
The standard non-spatial SEIR model is governed by a nonlinear system of differential equations. Let S, E, I, and R represent the number of individuals in the corresponding states, then
where δ represents the rate at which exposed individuals become infectious and γ represents the rate at which the disease removes infectious individuals (either via death or survival with acquired immunity) [59] . Transmission of the disease requires contact between individuals in state I and state S. The infection rate parameter α is usually rewritten as κτ N , where each susceptible individual has τ interactions with any of the N other members of population with probability κ of being infected by an infectious one [59] . This system of differential equations provides a mean-field representation of the dynamics of an epidemic with an SEIR structure. We consider potential policy recommendations that involve explicit change of the contact network structure of the population. For our purpose, a model based upon this mass-action system of differential equations is insufficient.
We model a population on a square lattice where each individual has three properties: their current state of health (S, E, I, or R), the amount of time for which they have been in that state, and whether or not they are compliant with community-level policies. If an individual is characterized as compliant, then they can be successfully isolated after entering the infectious state.
Using the definitions from the SEIR model, we consider the rate of transition from state E to state I to be δ and the rate of transition from state I to state R as γ. For simplicity, individuals transition deterministically from state E to state I (from state I to state R) after ∆ = 1 δ ( Γ = 1 γ ) time steps. We take ∆ and Γ to be integer numbers of days so that we can choose each time step of the simulation to represent a single day.
We initialized the population by randomly setting 0.02% of the individuals to be in each of states E and I, with the remaining individuals starting out in state S. Each individual was designated as compliant with probability κ. All individuals seeded in state I were initialized at the beginning of the infectious period, and individuals seeded in state E were given a random number between ∆ and 3 5 ∆ days remaining in the latent period. We chose 0.02% and the initial compartment times in order to smoothy simulate the epidemic growth.
Similations with different small initial numbers of seed cases and seeded state times yielded essentially the same behavior.
The transmission of the disease involves both local and long-range spreading mechanisms.
Each infectious individual has probability τ of infecting each of its susceptible neighbors during a given day. Additionally, each susceptible individual chooses at random an individual on the grid with whom they will interact on a given day and, if infectious, the susceptible will become infected with probability η. The formal value of the network connectivity is N as all nodes are connected by the long range transmission probability.
The basic reproduction number, R 0 , is generally defined as the expected number of individuals that a single seeded individual in state I will infect if the rest of the population is susceptible. For large population size G, the R 0 value of this process, with infectious period Γ and number of neighbors (z = 4), is approximately given by
The number of neighbors that are infected is given by the second term, and the number of non-neighbors that are infected is given by the first term. The number of neighbors that become infected is complicated by the reduction in number of susceptible neighbors as they become infected from day to day during the infectious period. For the long range interactions, the effect is small due to the large number of possible sites so that a few new infections do not affect the number of susceptible individuals the long range interactions can affect.
To obtain equation 2, consider a neighbor that can be infected by the local infection process with probability τ and independently, by the long-range infection mechanism with probability η G 2 . The probability that the neighbor is not infected on a given day is
An individual is infectious for Γ days after becoming infected. This means that the probability of a particular neighbor being infected is
For z neighbors that can be independently infected (periodic boundary conditions ensure any such individual has the same number of neighbors), the number of infected neighbors is it is assumed that the concentration of infected individuals is small, the average number of individuals infected is η. The additional infection is only 1 in G 2 , which doesn't affect the calculation in the next period, so the total number over the infectious period is Γη.
We note that the characterization of R 0 differs from the differential equation SEIR (mean field) model. Since an individual locally infected by the first seeded case has that seeded case as a neighbor, the expected number of susceptible neighbors is less than the seeded case.
Therefore, it is unjustified to assume the calculation of R 0 for the first individual holds for the rest of the contagion. It is better to think of the value of R 0 as the contagion rate in the low density limit rather than, as is it conventionally discussed, that of a single individual.
The dynamics of the epidemic can be more completely described by the effective reproduction number, R t , defined as the average number of secondary infections caused by an index case that is infected at time t. This includes the effect of the reduction of the number of susceptible individuals (epidemic burnout) and susceptible neighbors [36] as well as the impact of the community-level intervention at varying levels of compliance. R t can be approximated by
where z t is the average number of susceptible neighbors for an individual infected at time t and s t is the proportion of susceptible individuals in the whole population. Eq. 5 reduces to Eq. 2 if a susceptible population is seeded with a single infectious individual, as s t ≈ 1
and z t = z, which is an individual's neighborhood size in the given population structure.
In Fig. 7 , we compare the simulated time-series of values for R t with the time-series of R t generated by Eq. 5 using simulated values of z t and s t averaged over 1,000 simulations with ∆ = 5, Γ = 6, τ = 0.15, and η = 0.0125 and no public health intervention. Eq. 5
agrees well with the values of R t . The value of R t (2.52) is consistent with Eq. 2 (2.57).
In order to make relevant comparisons between the results of our simulations and the actual 2014 Ebola outbreak, it is useful to choose model parameters so that the spread of our simulated epidemic matches the real-world spread of Ebola. We chose parameters so values of ∆ and Γ consistent with the actual mean latent and infectious periods for Ebola [55] and the results are robust to variation in these values as shown below.. Given these values of ∆ and Γ, we find values of the infection parameters τ and η so that the growth rate of cumulative cases in the simulated epidemic is consistent with the actual outbreak.
Given a time series of cumulative cases, x(t), one can estimate the rate of initial exponential growth from a fit to the expression ln (x(t)) = b + λt [49] . Using data from the World Health Organization, we find λ = 0.052 for the 2014 outbreak in Liberia, consistent with the value computed by Chowell and Nishiura [56] .
We consider two sets of ∆ and Γ that have been used to describe the Ebola outbreak.
First, we use ∆ = 5, Γ = 6, approximating values of Althaus [51] (∆ = 5.3, Γ = 5.61) taken from a previous Ebola outbreak with similar immunological properties. We found that this Γ and ∆, when paired with infection parameters τ = 0.15 and η = 0.0125, produced a Liberialike exponential growth rate of 0.0536. The results from simulations with these parameter values can be found in the main paper.
We also considered the values ∆ = 10, Γ = 7, which are consistent with the values used by Chowell and Nishiura [56] (∆ = 10.1, Γ = 6.5), who used hypothesized parameter values proposed by Lekone and Finkenstadt [53, 56] . Using infection parameters of τ = 0.18 and η = 0.015, our simulated epidemic with this ∆ and Γ produced an exponential growth rate of 0.0505, which also roughly matches the exponential growth rate in Liberia. Results from these simulations can be found later in the appendix.
It is common to characterize simulated and real-world outbreaks using R 0 , the average number of secondary infectious caused by a single infectious individual in an otherwise susceptible population. One can obtain an expression for R 0 in terms of ∆, Γ, and λ, the empirically observable exponential growth rate of cumulative cases, through a linear stability analysis of the mean field SEIR model.
The cumulative number of cases x(t) satisfies x(t) ∝ e λt near the disease-free equilibrium,
where λ is the dominant eigenvalue of the Jacobian matrix obtained from linearizing Eq. 1 around the disease free equilibrium (i.e. where E = I = R = 0 and S = N ) [49, 50, 60, 61] .
It can be shown that R 0 is equal to
Using Eq. 6 and the exponential growth rates generated from our simulations, we see that R 0 is approximately equal to 1.68 for the ∆ = 5, Γ = 6 simulations, and is equal to 2.04 for the ∆ = 10, Γ = 7 case. These values of R 0 agree well with the values of 1.59 and 1.96 estimated by Althaus [51] and by Chowell and Nishiura [56] , respectively.
This provides further confirmation that our simulated epidemics display similar exponential growth behavior to the 2014 outbreak in Liberia.
E. Results for ∆ = 10, Γ = 7
We simulated our epidemic with the parameters values ∆ = 10, Γ = 7, τ = 0.18, and η = 0.015. As shown in Figs. 8 and 9 , the qualitative behavior of the epidemic and the impact of intervention policies were similar to the ∆ = 5, Γ = 6 case. For compliances of 0.6, 0.8, and 1.0, the outbreak ended quickly after the implementation of community-level isolation policies (Fig. 1A) , and the value of R t dropped well below 1 after a few days. The primary difference between this case and the one reported in the main paper can be seen in 8A ).
From Fig. 9C , we see that a compliance of 0.6 or higher limits the number of cumulative infections, and that travel restrictions still substantially help to limit the loss of life in the case of low compliance. Early implementation of the intervention (lower values of T 0 ) results in lower infection totals. However, we also see that cumulative case counts without travel restrictions (dotted lines) only begin to coincide with those with travel restrictions (solid lines) at higher levels of compliance than in the ∆ = 5, Γ = 6 case. This implies that the travel restrictions provide benefit at higher levels of compliance for these parameter values.
Since these parameter values reflect a higher R 0 value (2.04) than the ∆ = 5, Γ = 6 case, this suggests that travel restrictions are more critical to halting outbreaks of more virulant diseases, as is to be expected. Screening begins at the vertical dotted line, with a level of compliance indicated by label and color (green 0 to blue 1.0). A. Number of cases with or without symptoms. Note that, compared to the simulations in the main paper, 40% compliance (0.4) is no longer sufficient to end this more virulent outbreak. B. Cumulative cases. C. For greater than 40% compliance (0.4), R t decreases below one, corresponding to a rapid decrease in active cases. Despite this change, the overall results are robust as a compliance value of 0.6 is sufficient to end the outbreak. Simulations with (blue) and without (red) travel restrictions. The travel restrictions compensate for low levels of compliance, and their differences are comparable to Fig. 3 in the main paper. C. The cumulative number of infections over the entire epidemic, as a function of compliance levels and intervention times. Colors from brown to yellow signify intervention times (70, 90, 110, 130). Without enforced travel restrictions (dotted lines), a low compliance results in minimal differences between early and late policy implementation. Travel restrictions (solid lines) dramatically reduce infection numbers for earlier interventions at low compliance. We chose a slightly later set of intervention times T 0 for this set of parameters because the mean generation length (∆ + Γ) [56, 62] is about 50% longer, 17 days, compared to the 11 days for the ∆ = 5, Γ = 6 case, so the exponential growth phase begins at a later time.