key: cord-0841469-bngd5rle authors: Raghavan, M.; Sridharan, K. S.; M R, Y. title: Using epidemic simulators for monitoring an ongoing epidemic date: 2020-05-12 journal: nan DOI: 10.1101/2020.05.08.20095463 sha: 92ea1980ea8bd1105a53e6b8cc132d2448199864 doc_id: 841469 cord_uid: bngd5rle Prediction of infection trends, estimating the efficacy of contact tracing, testing or impact of influx of infected are of vital importance for administration during an ongoing epidemic. Most effective methods currently are empirical in nature and their relation to parameters of interest to administrators are not evident. We thus propose a modified SEIRD model that is capable of modeling effect of interventions and in migrations on the progress of an epidemic. The tunable parameters of this model bear relevance to monitoring of an epidemic. This model was used to show that some of the commonly seen features of cumulative infections in real data can be explained by piece wise constant changes in interventions and population influx. We also show that the data of cumulative infections from twelve Indian states between mid March and mid April 2020 can be generated from the model by applying interventions according to a set of heuristic rules. Prediction for the next ten days based on this model, reproduced real data very well. In addition, our model also reproduced the time series of recoveries and deaths. Our work constitutes an important first step towards an effective dashboard for the monitoring of epidemic by the administration, especially in an Indian context. Mathematical treatment of epidemics has its origins more than a century ago [1, 2] . The recent interest in modeling epidemics was rekindled with the onset of the Severe Acute Respiratory Syndrome (SARS) epidemics during the early part of the century [3] . The classical model of epidemics (SIR) was designed as a dynamical system with the fraction of Susceptible(S), Infected(I) and Recovered(R) population as state variables. The SARS epidemics were modeled with a modified model with an additional state for the fraction of exposed population(E) that is latent and as yet uninfected, but still contributes to spreading the disease. This modified model, the SEIR model, is currently being used to characterize the epidemics caused by a group of coronaviruses including the ongoing COVID-19 [3] . Modified SEIR models have also been designed to understand the effect of quarantining [3] and multiple active strains of the pathogen simultaneously active in populations [4] . SIR, SEIR and related models are also known as compartment models, as population groups are modeled as a single compartment. In contrast, agent-based approaches, model the transitions of individual agents in a population and hence can capture the effects of non-homogenous populations. While agent based and stochastic models [5] have been explored, it has been shown that for people to people contact networks that are small world, random, fully connected or scale free, the compartmental models work quite well [6] . Thus, compartmental models are an efficient tool for modeling epidemics. Some of the important parameters that characterize an epidemic are the rate at which new infections are created (β), mean duration of infection (T inf ) and their product (R 0 ), which gives the mean number of infections spawned by an individual during the infectious period when the entire population is susceptible. The emergence of R 0 in epidemiology owes its origins to the mathematics of population growth, and in past few decades, emerged as an important diagnostic of the epidemic progression [7, 8] . R 0 owes its importance [9] to the fact that, it is a prognosticator of the epidemic, with values less than 1 indicating a fade out and values greater than 1 prognosticating a large scale epidemics. R 0 can easily be calculated from the set of differential equations describing SIR and SEIR systems [7] . The method can be applied with modifications for calculating the reproduction numbers for extended models with more number of compartments if they satisfy certain conditions [10] . While R 0 is the value of R at the start of the epidemic, R t represents its evolution with time t. The change in R t with time could be due to a number of factors, namely a change in transmission β or an intervention in the form of lockdowns, social distancing, testing and / or quarantining. While the dynamics of transmission of epidemic diseases are well understood, estimating these parameters during the course of an ongoing epidemic is not trivial, except in special circumstances of small isolated population clusters as in the quarantined cruise ship [11] . For the purposes of monitoring and predicting the course of an ongoing epidemic, the most important metric used is r, the slope of the cumulative infections on the log scale. This follows from the observation that the rate of new infections is proportional to the cumulative infections. The parameters r and R are related to each other through the shape of the serial interval distribution [12, 13] . Since the cumulative deaths follow the infections with a lag, the cumulative death count has also been used to estimate the parameters of the epidemic model [14] . R has also been estimated using maximum likelihood based methods from the serial intervals distribution for subsets of populations where the chain of infection transmission are documented [15] . Methods used to recreate the time varying parameters underlying an epidemic, in particular COVID-19 are largely of two kinds. First, the class of mechanistic models which use modified SEIR compartment models to simulate epidemics. The second, is empirical in nature and rely on fitting of parameters of mathematical formulations to real data. The mechanistic models are largely used to evolve strategies for management of the epidemic -like evaluate effect of social distancing, lockdowns, exits from lockdowns [16] , projection for periodic recurrence of outbreaks and impact of multiple strains of the pathogen [4] . The parameters and formulations used in these methods are grounded in epidemiology theory and are useful to evolve broad strategies. But they are not frequently used for short or medium term prediction of trends or evaluation of efficacy of interventions in real time. For such predictions, the second class of empirical methods are deployed. One particular study modeled the transmission as a geometric process. Using Monte Carlo simulations, R t and . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. (which was not certified by peer review) The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint percentage of undetected infections were estimated by fitting to epidemiological data from Wuhan [17] . Another study used convolution of daily reported infections with the serial interval distribution to estimate the cumulative number of infections and deaths. Interventions are modeled as contributing factors to a country specific, time varying R t . The contribution of various interventions were estimated by fitting to data [14] . On the issue of estimating epidemic parameters certain salient problems limit efficacy of current methods. Foremost among these are the gap between observed and true variables like infections and recoveries. This is less of a problem in case of deaths, as they are not easily hidden, which was used in estimation [14] . However, it requires about 2-3 weeks for the effect of interventions to be reflected in the number of deaths, which severely limits the utility of the method for real time analysis. Empirical methods have a general limitation that they make assumptions on various parameters like serial interval distributions or the form of priors [14, 17] . Due to the lack of mechanistic details, the results of these methods are often incapable of offering intuitive explanations on how interventions work or fail. Mechanistic methods require that standard models be modified to incorporate interventions, testing efficacies and quarantining often making estimation of R t very difficult. Over and above all of these, we believe that a common shortcoming in most mechanistic models proposed are a conflation of observables and non-observables. For instance, the deaths and recoveries are almost always modeled as single compartments and outcomes resulting from both detected and undetected infections move into the same compartment, although one is observable and the other is only partially so [3, 4, 16, 18] . Thus, there is a clear need for models that can explain short and medium term trends in epidemic data while providing clear mechanistic link to the effect of interventions amidst epidemics. We propose a mechanistic model that retains the simplicity of the standard SEIR model, but with the power to model interventions and time varying transmission. A key constraint we impose on our model is that while it should be able to explain short term trends and effects of interventions, it must also be capable of providing intuitive connections between observed trends and changes in underlying parameters. In this work we present one such SEIR model suitably modified to model interventions. We then proceed to demonstrate how changes in model parameters can generate oft-seen patterns in cumulative infections on the logarithmic scale. Based on these results, we propose heuristic algorithm for estimating time varying interventions that recreate trends in cumulative infections by applying suitable interventions, thereby estimating the underlying changes in epidemic dynamics. We use this method to recreate the real data from 12 Indian states between mid-March and mid-April. We finally observe how this model fares in predicting the trends of the succeeding 10 day period. The key principles for the design of the epidemic simulator were as follows: • Less is more: We choose to represent just enough compartments as required. A compartment or a transition that neither has a correlate in real data nor can be used to estimate an observable and useful quantity is discarded or merged. . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. (which was not certified by peer review) The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint • Simplicity: Model must use as little sophistication as possible. Expressions for key quantities such as reproduction number must remain as close as possible to the standard SEIR models. • Intuition: An administrator should be able to intuitively identify the parameters used in the model with interventions deployed on the ground in tackling the epidemic. We use a modified version of the SEIRD model on the lines of [3] . We duplicate the standard SEIRD pipeline to create two parallel pipelines -undetected and detected / isolated. In particular, we also duplicate the deceased and recovered compartments in both pipelines. The motivation for the same is as follows. Daily confirmation of cases, recoveries and deaths are both released and tracked. These numbers count only the detected infections and their recoveries. However number of fatalities can come from amongst the detected and undetected infections. Recently the Indian government has mandated COVID-19 screening for all cases with severe acute respiratory infections. These are with a high probability critical cases and many succumb. These numbers are often added to count of deceased, but in an inconsistent manner. Thus the trends of reported deaths would tend to fluctuate between true death numbers and those coming from the detected infections. We do not use other possible sub compartments within the infected -like mild infection, hospitalized, critical etc. While we do believe that these are important, the number of hospitalizations and grades of infections are not available in the public domain. Separate compartments for quarantined susceptible are important when estimating the cost, and resources spent due to numbers of people that are quarantined although not exposed. Since we do not, at the moment consider this aspect, we dispense with a separate compartment for susceptible-quarantined. Thus we arrive at a total of 9 compartments which include two compartments each for Exposed, Infected, Recovered and Dead and a single compartment for susceptible. We recognize two interventions commonly deployed for identifying infections as part of epidemic management. • Contact tracing and isolation: When an infection is detected, immediately their contacts are traced and placed under quarantine. They are tested for infection periodically until they test positive or the observation period ends. Within our model, we represent the efficiency of this intervention by the fractional value c, which represents the fraction of exposures and transmitted infections that are detected and quarantined. This parameter lends itself to model simplicity, yet intuitive and actionable for administrators. • Random testing and self-presentation: A patient voluntarily reports symptoms and is then tested. Alternately, random tests are administered to . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. (which was not certified by peer review) The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint the public and positive reports are quarantined. Within our model, we represent the efficiency of this intervention by the fractional value q , which represents the fraction of infections that are detected and quarantined. , We assume that during the exposed phase, people are largely asymptomatic and undetectable by tests. Thus the exposed are quarantined only by contact tracing. However, the infected can be detected by either contact tracing or random tests / self-reporting. Further we make a simplifying assumption that during stage 2 of an epidemic, detection is mostly due to contact tracing and during stage 3, when community transmission takes over, detection of infections from random testing or self-reporting far outnumber the ones due to contact tracing. In order to keep the model simple enough for numerical analysis, we employ two rules for designing transitions • All transitions must follow the same order as S → E → I → R. For instance, all exposed compartments or their sub compartments (quarantined or undetected) must have transitions only to an infected compartment or one of its sub compartments. • When there are multiple transitions out of a compartment, the sum of the rates out of the compartment must be conserved (compared to un-branched rates) Starting from the standard SEIRD model, we observe that the exposed population, consists of 2 sub populations -the quarantined and free. Since quarantining of exposed is only due to contact tracing, a fraction c of the exposed flow to the compartment E q . Thus we split the S → E transition into two transitions S → E q and S → E. The rates of these transitions are in the ratio c : : (1 − c) and the sum of their rates continues to be β.S.I as in the standard SEIRD model. It must be noted that I in the standard model includes all infected, while here it refers only to the undetected infections. See Fig. 1 for more details. Similarly, the infected population may be thought of as consisting of 2 sub populations -infected by direct contacts or through community spread. The fraction of contact spread infections and community spread infections are denoted by a and (1 − a) respectively. For simplicity we assume that only contact tracing is effective in detecting contact spread infections and only random testing or self reporting can detect community spread infections. This leads to 4 sub populations within the so far undetected infected population. Rates of transition to and fro the four infected populations I q1 through I q4 are computed as described before. An important modification to standard models is necessitated by migrations. Influx of infected changes the seeding pattern of epidemic and plays a critical role in evolution of epidemic. Influx of infections are represented in our model as a combination of inflow rate and probability that an incomer is infected. Given the inflow rate is φ and the probability of infection is pI, in-migration is implemented as an addition of φ.pI 2.N to the undetected E and I compartments each, per day. We assume that this inflow is finite and very small compared to the total population and hence the stable population assumption is not violated. . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint Figure 1 Flow of people through compartments The compartments Eq, Iq, Rq, Dq represent the populations that are quarantined. Compartments E, I, R represent the exposed, undetected infections or recoveries. D represents the fatalities from the undetected population, but they may be detected close to death or post-mortem. a is the fraction of Infected that acquired it by direct contact with another infected. c is the fraction of exposed or contact infected individuals that are detected. q is the fraction of community infected that are detected by self reporting or random testing. δ is the rate of mortality. It may be noted that because of the way transitions were designed in section on Transitions, the net rates of transition, Rate{C 1 → C 2 } ∀ C 1 , C 2 ∈ {S, E, I, R, D} remain the same as in the standard SEIRD model when the compartments are interpreted as unions of their sub compartments, i.e. C = ∪ {C, C q }. The mean stay times in an Exposed (E) state and Infected (I) state were set to 1 k = 7 days and 1 γ = 9 days respectively. The mortality rate δ is a constant value for the entire duration of simulation. Permissible values are in the range 5% ± 3%. The rate of transition of S → I is proportional to the fraction of total population that is infected (I + I q ) and the transmission rate (β). But since I q is quarantined and cannot influence this rate, only the undetected infections I contribute to this rate. Only a fraction (1 − c) of possible exposures reach E. Out of this number, a fraction a.(1 − c) are contact transmission cases and missed by the contact tracing exercise. A fraction (1 − a).(1 − q) of the undetected exposed are community transmitted infections and are missed by random testing. Thus the net effective rate of the transition S → E (union of E and E q ) under the influence of interventions is given by β.I or β ef f .(I + I q ), where β ef f is the effective beta in the standard model that corresponds to modified model with interventions. β ef f is β scaled by the product of inefficiencies of two phases of interventions -isolation of exposed and isolation of the infected. The inefficiency of detecting the exposed is given by (1 − c) as testing cannot detect them and contact tracing is the only effective measure. The inefficiency of the detecting the infected . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint is a convex combination of the inefficiencies of contact tracing (1 − c) and random testing or self reporting (1−q). In stage 2 it is given by (1−c) and in stage 3 by (1−q). The net transitions out of E and E q each continue to be k. The rates of E → I q are given by the sum of rates E → I q1 and E → I q3 . The rates of E → I are given by the sum of rates E → I q2 and E → I q4 . These details are evident from the Fig. 1 and Fig. 2 . For the SEIR model with a stable bounded population, time varying reproduction rate R t is given by (1 − q)} that scales β and hence R t is the fraction of generated infections that go undetected. This fraction is an index of the inefficiency of interventions by the administration to control the epidemic. The inefficiency index assumes a simple form (1 − c) 2 in stage 2 of the epidemic when contact transmission is the norm and takes the form (1 − c).(1 − q) during community transmission driven stage 3 of the epidemic. The values of c, q, β and φ.pI constitute the free variables of the models that are tuned to reproduce the true field data. Each of these quantities is assumed to be a piece wise constant function [14] . δ is a constant throughout a simulation and is chosen within the permissible range for each data set. a is of the form of a decreasing sigmoid function of the number of active infections. It has a transition from 0.99 to 0.01 between 0.2 * e −4 * N and 0.8 * e −4 * N numbers of actively infected. We use this model to estimate the dynamics of epidemic transmission underlying the time series of data from Indian states. Data of daily infections, recoveries and deaths between 13 th March 2020 and 17 th April 2020 for all Indian states were obtained from www.covid19india.org. We chose 12 states with active COVID-19 cases for our analysis. The states chosen were Delhi, Punjab, Uttar Pradesh, Rajasthan, Madhya Pradesh, Gujarat, Maharashtra, Telangana, Karnataka, Tamil Nadu, Kerala, and West Bengal. Using the data upto 17 th April 2020, we use a heuristic algorithm to generate these trends from our model. The algorithm will be derived from the results of model characterisation and will be described in section on Model Characterization. The goal of this exercise was to identify the time varying piece wise constant functions for c, q, β and φ.pI that result in best visual fit of the cumulative infections on the log scale. The focus was on reproducing the predominant features of data sets on the log scale such as, piecewise linear slopes, steepening of slopes, plateauing effects and changing y-intercepts with constant slope. We did not use any empirical learning methods for discovery of these parameters as we were keen on developing intuition regarding the relation between trend patterns and their underlying processes. Once the cumulative data of infections was well fit, no further changes in parameters were undertaken except for tuning δ in order to bring the curve of cumulative deaths within the band defined by the curves D q and D q + D. This band was necessitated because deaths reported are sometimes from one or both buckets. Ever since the Indian government has mandated the testing of all Severe Acute Respiratory infections for COVID-19, undetected infections have been confirmed positive for COVID-19 from time to time in ICUs and post mortem. A fixed reporting delay delay of 8 days was used for calculating recoveries. This is observed in empirical explorations of data from Indian States . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint Figure 2 Modified SEIRD model The compartments Eq, Iq, Rq, Dq represent the populations that are quarantined. Compartments E, I, R represent exposed, undetected infections or recoveries. D represents the fatalities from the undetected population, but they may be detected close to death or post-mortem. a is the fraction of Infected that acquired it by direct contact with another infected. c is the fraction of exposed or contact infected individuals that are detected. q is the fraction of community infected that are detected by self reporting or random testing. δ is the rate of mortality. the rates γ and k are respectively the inverses of mean infection time and mean latency times. β is the transmission rate given by product of contact rate and probability of infecting a contact In order to explain the performance of the model and capture the dynamics we administered several scenarios to the model. Each of the scenarios are explained below. In each of the scenarios, we set a = 1 implying that epidemic is in stage 2. Effect of varying β and c with fixed R t It is well known that as R t increases, the infections peak earlier and have higher peaks. But from the equation 1 we can see that same R t can be achieved by varying combinations of β and intervention inefficiencies. To understand this effect, we fixed R t at 3 and varied numerators of transmission rate (β) were set successively at values between 6 and 8.4. c was varied to obtain required R t as per Eqn. 1 in the Model parameters section. From Eqn. 1, we can observe that at constant R t , increase in β will have to be accompanied by a decrease in inefficiency (1 − c) 2 and a consequent increase in efficiency (1 − (1 − c) 2 ) and detection c. Latency of infection is set at 7 days, efficiency of random testing and self-presentation (q) is set at 0, influx of population (φ * pI) is set at 0. Initial infected cluster is set at 1 for a state with a population of one million and it is assumed that epidemic is at contact transmission stage (Stage-2). Varying R t by variations of β and interventions We vary R t from 5/3 through 7/3 in steps of 0.5/3. We achieve these reproduction numbers, by varying either β or c. . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. To understand the effect of varying β when intervention (c = 1 − 1 3 ) is held constant, we simulated the model with the above-mentioned parameters but with β values of 5, 5.5, 6, 6.5 and 7. The other parameters were held at the same value as the previous section. Next, we study the effect of varying intervention (c) when β = 6/9 is held constant, we simulated the model with the above-mentioned parameters but with c values as: 1 − 1/ 6/x where x ∈ {5/3, 5.5/3, 6/3, 6.5/3, 7/3 } thereby achieving required R t . The other parameters were held at the same value as the section on Effect of R t . To understand the effect of influx of infected persons we simulated an influx of infected over a small window of 3, 9 and 18 days. We set the influx rate to 38 people per day (φ = 75; pI = 0.5) during the influx window. The other parameters were held at the same value as the section on Effect of R t . To study the effect of varying β and c over short periods, the scenarios as follows. Starting with a β = 6/9 and c = 1 − 1 2 we apply an (i) increase in β over a 21 day window to 8/9 and a (ii) pulsed decrease in β for 21 days to 4/9. All other parameters were held at the same value as the previous section. Thus starting from a base R t = 3, the R t was stepped up and down respectively to 4 and 2 respectively. To study similar effects induced by c, starting from the same baseline values, we apply (i) an increased c = (1 − 1/ √ 3) over a 21 day window (R t = 2) and a (ii) pulsed decrease in c for 21 days to (1 − 1/ √ 1.5) (R t = 4). The other parameters were held at the same value as the section on Effect of R t . We coupled an influx of infections with varying levels of intervention and with varying delays to study how they affect the overall evolution of the epidemic. We started with a β = 5/9 and a c = 0.2 and applied an influx at the rate of 20 per day for 5 days. Interventions with different efficiencies were applied on the first day of influx using c = 0.4, 0.6, 0.8 successively. Additionally, we also applied an intervention c = 0.8 starting 5 days after the end of the influx to assess the effect of delay in intervention. Effect of interventions with fixed R t Fig. 3 presents the model responses for R t =3 respectively. Increased β requires proportional increase in c to keep R t constant (Refer Eqn. 1). At fixed R t , while . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint the time course of the epidemic remains the same, the total numbers of infected increase with increasing beta. But due to commensurate increase in c, the excess infections are sucked into the pool of detected and quarantined infections. Since only the undetected infections influence transmission, β ef f , R t and time course of epidemic remain same, while the peak of reported infections are higher as can be seen in Fig.3(a) . Fig. 4a and c. Similarly decreasing R t decreases the slope and later peaks. However at the same R t , the peak values of infections are proportional to β. This is evident from the Fig. 4c where grey and indigo curves have taller peaks, but red and blue curves have shorter peaks compared to corresponding peaks in 4a. Note that the correspondence is between the pairs of curves in gray and blue, red and indigo. Fig. 5 describes the effects of an influx of infected individuals into the population. It can be seen that this influx does not change the slope of the trajectory. Rather, the trajectory maintains its slope, but now has an increased y intercept. Influxes over windows of 3, 9 and 18 days have progressively larger y intercepts as seen in Fig. 5b and the peaks occur earlier in time as seen in Fig. 5a . However the change in y intercepts are not uniform. Another significant effect is that the excess infections due to this influx are constant on the log scale. Thus with time, the cost of this influx become progressively larger in absolute terms. The effect of variations in β and c on the slopes of cumulative infections on log scale are similar to that mentioned in section on Effect of varying R t during the short . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint window of variation. However at the end of the window, the trajectory is restored back to its original slope and now proceeds parallel to the original trajectory. Thus the net effect of change in R t in a short window results in a change in y intercept akin to that of an influx of infected cohort. This effect is clearly seen in Fig. 6b and d where the decrease or increase of y-intercept is evident. It may also be noted that the effect of β sets in almost instantaneously, while that of c shows up after a . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint short lag. It may be explained as the lag required for the reduction in undetected infections to show up as a decrease in effective transmission. The effects of contact tracing as a response to influx of infected is elucidated in Fig. 7 . As already seen in section on Effect of infected cohort, an influx accompanied by no response in the form of change in contact tracing efficiency results in a trajectory that runs parallel to the original trajectory with increased y intercept. However if as a response to the influx, the level of contact tracing is increased concurrent with the first day of influx, it leads to a peculiar 2 phase change in trajectory. There is a steep increase in slope almost instantaneously on increase of c, followed by a significant reduction in slope with respect to the original slope. With increasing levels of contact tracing c, the sharp increase in the initial phase is even steeper, and so is the flattening that follows. The initial steep rise can be attributed to large numbers of infections being detected and quarantined due to increased contact-tracing efforts. This results in a drastic reduction in the slope soon after, as quarantined infected cannot spread the disease. This effect leads to a characteristic plateauing effect. When the intervention is delayed, the plateau effect seen is identical in nature but shifted in time. Hence the resultant flattening is achieved at a higher level of infections. The salient features seen in real data of cumulative infections on the log scale have been reproduced in the previous sections. These features are: • Piece wise linearity . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint • Changes in slope in each piece wise segment • Temporary deviations due to transitory change in slope resulting in parallel trajectories with altered y intercept • Plateau effect: Sudden rise followed by a flattening Based on the results encountered so far, we propose the following set of heuristics to reconstruct using our model, the observed trajectory of cumulative infections in real data: 1 The first piece of the piece wise linear curve is reconstructed by using a suitable combination of β and c. This indirectly fixes the underlying R t . As seen in section on Effect of interventions with fixed R t although there are multiple combinations of β and c can recreate the R t , each of these combinations has a unique trajectory of active infections. 2 For each subsequent piece of the piece wise linear curve, modify β and / or c to match the slope of the piece 3 For each parallel shift of trajectory introduce an influx of infected. While it is possible to account for this using a transitory change in β or c as well, we assume that transitory and self restoring changes in β or c over short periods are not very likely except in the case of lock downs. Thus we use population influx as the first choice tool to account for this feature 4 For steep rise followed by a significant flattening in the span of a short interval, we use an influx with increased heightening of contact tracing levels c. Modelling epidemic data from Indian states Based on the heuristics arrived at in section on Heuristics for reconstructing interventions we recreate the curves of cumulative infection, recovery and death on . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint the log scale for twelve Indian states. In order to recreate, we set c, q, β and φ.pI as a piecewise constant time varying function based on the heuristics described in the previous section. This activity is performed only on the data up to -10 days. No further changes in parameters are allowed after this day. But the model generates outputs upto day zero. The model output for the days -10 to zero are model predictions. The piece wise functions are set in order to recreate the cumulative infections only. No explicit attempt is made to recreate the trends of recoveries and deaths except the following. 1 The recoveries are shifted right by a fixed lag of 8 days for all states. 2 A single value of mortality (deaths per infection) is chosen for each state such that the curve of real data(dark gray) is bounded by the two model generated cumulative death curves (by counting deaths from only detected infections, and by counting deaths from both detected and undetected infections). A few general comments may be in order on the agreement between model predictions and real data. 1 The model predictions for the last 10 days agree very well with the true data 2 For a recovery to be declared, at least 2 successive negative tests are required. It is likely that states are being extremely conservative in declaring recoveries and want to err on the side of safety. This could explain the lag of about 8 days which is required to fit the real data with the model generated output. 3 The real recoveries seem to follow the model generated curves, but with a staircase effect. This effect could possibly be due to a procedural issue where test reports are processed in batches on a slightly lower priority(which recoveries are compared to critical cases). The full details of the piece wise constant functions used for each state in reconstruction and the reasoning applied to generate the same can be found in the supplementary materials. Supplementary materials also include an evaluation of the predictions based on the same model for an epoch of 20 days upto 7 th May 2020. It can now be seen that as expected there are significant deviations in prediction for 5 states. This is expected as small underlying changes in the intervening period widen the gap between real data and prediction. But it is also significant that for more than half the states considered, predictions held well over a 20 day epoch. However in general we believe that this model must be evaluated weekly to recognise and register the underlying dynamic changes in the epidemic progress. This exercise also provides inputs on efficacy of interventions and new influxes or new clusters that have emerged over the week. This work presents a modified SEIRD model with ability to represent population influx and interventions including contact tracing and random testing. This model was used to show that some of the commonly seen features of cumulative infections in real data can be explained by piece wise constant changes in interventions and population influx. We also show that the data of cumulative infections from twelve Indian states between mid March and mid April 2020 can be generated from the . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint model by applying interventions according to a set of heuristic rules. The model with interventions so designed was allowed to generate prediction data for ten more days with no further modifications. This predicted trend matched well with the data for the twelve states. Matching the infections curve ensured that the recoveries and deaths too matched well with no additional effort. We thus provide a mechanistic model for short term prediction of COVID-19 epidemic data. Compared to empirical measures [14, 19, 17] this method recreates data using parameters that are intuitive and directly related to operation on the field. While similar to other mechanistic models [3, 4, 16] , it differs in its design focus on separating observable and non observable compartments. Connecting elementary piece wise changes in interventions to features of real data like slopes and plateaus are a singular contribution of this work. While the piece wise constant form of interventions have been proposed [14] , instead of creating interventions functions based on known events and identifying their contributions to data fit, we compose the piece wise interventions directly based on intuitive connections between data features and elementary piece wise functions of interventions. The model discussed in this manuscript signifies efforts, not to merely model the evolution of the epidemic but also captures the effects of various interventions by the administration. It presents a method by which administration may get an objective estimate of several aspects of an ongoing epidemic such as the efficacy of contact tracing apparatus, possible influx of infected, extent of social distancing or transmission. The parameters c and q as fraction of infected detected are generic enough for a wide variety of cases. While administrations may use a wide variety of methods to characterize their testing or tracing strategies, their eventual success lies in tracing or detecting all infected, which is what is captured by c and q. Thus insights from our model provides an independent and objective feedback on how effective the efforts have been. This model also provides an estimate of R t which is highly sought after and provides insights on whether the observed R t results from interventions or transmission. The population influx mechanisms provide a way for administrations to estimate the effect of influx in the past and plan for impending arrivals and calibrate their responses. A few notes may be in order in interpreting the results from the methods proposed in this work. The insights coming out of our models must be interpreted in the context of the specific clusters contributing to the epidemic. For instance increased or unchanged transmission does not imply that general population flouted lock down rules. It must instead be interpreted specifically as applicable to the specific clusters of spread. β is interpreted as the product of contact rate and probability of transmission. Thus large captive households or even hospitals can keep the contact rates high without any flouting of norms. Again, influx of infected in its general sense represents a seeding of infection. Thus an influx of population indicated by our results could as well imply the emergence of a new infection cluster. The primary intention behind building the model is to monitor localized response using dashboards. This can be possible with better data availability at the local . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. (which was not certified by peer review) The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint level (district in the case of India). Our model design principles are generic enough to be applied to model extensions incorporating hospitalized or critical cases. Since the model captures the active cases as a function of response of the administrative response, this can be a valuable tool to plan and allocate resources and deploy the right response, where necessary. This model can further be extended to estimate the effort required for achieving a level of contact tracing c or testing q. This can be of vital importance for the administration in planning their strategies and estimating requirements of health workers, law enforcement agencies for contact tracing. We currently manually fit the parameters to evolution of active cases in each of the 10 states using heuristics. Going forward, the manually obtained piece wise interventions may be treated as seed for empirical discovery of piece wise functions. Further incorporating confidence intervals for our current predictions will be an important goal of future work. 19. Prakash, M.K., Kaushal, S., Bhattacharya, S., Chandran, A., Kumar, A., Ansumali, S.: A minimal and adaptive prediction strategy for critical resource planning in a pandemic. medRxiv, 2020-040820057414 (2020 . CC-BY-NC-ND 4.0 International license It is made available under a is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. (which was not certified by peer review) The copyright holder for this preprint this version posted May 12, 2020. . https://doi.org/10.1101/2020.05.08.20095463 doi: medRxiv preprint A contribution to the mathematical theory of epidemics Constructive Epidemiology Transmission dynamics and control of severe acute respiratory syndrome Projecting the transmission dynamics of SARS-CoV-2 through the post-pandemic period Forecast and control of epidemics in a globalized world Massachusetts Institute of Technology Engineering Systems Division A M ETHODOLOGY FOR THE I DENTIFICATION OF On the definition and the computation of the basic reproduction ratio R0 in models for infectious diseases in heterogeneous populations A brief history of R0 and a recipe for its calculation Perspectives on the basic reproductive ratio The construction of next-generation matrices for compartmental epidemic models Transmission potential of the novel coronavirus (COVID-19) onboard the diamond Princess Cruises Ship How generation intervals shape the relationship between growth rates and reproductive numbers Mathematical models of infectious disease transmission Estimating the number of infections and the impact of non-pharmaceutical interventions on COVID-19 in 11 European countries. Imperial College COVID-19 Response Team Different epidemic curves for severe acute respiratory syndrome reveal similar impacts of control measures Age-structured impact of social distancing on the COVID-19 epidemic in India Early dynamics of transmission and control of COVID-19: a mathematical modelling study INDSCI-SIM A state-level epidemiological model for India The authors declare that they have no competing interests.