ciemss / program-milestones

Repository for materials related to program milestone hackathon and evaluation events
0 stars 0 forks source link

epi-scenario-1 #2

Open djinnome opened 6 months ago

djinnome commented 6 months ago

Scenario 1: Calibrating models and estimating causal effects

In this scenario, we are interested in determining the effects of masking and social distancing on Covid-19 infections using simulated data for four different countries: Afghanistan, Colombia, France, and the United Kingdom. The simulations use contact matrices and populations subdivided into age groups for each of the countries. In these simulations, each country implements interventions at the same time, and we are interested in understanding how the effects of the interventions differ between countries. The data are generated from an SEIRD model.

In these questions, we provide the contact matrices and population data for each country, as well as the outputs of the simulated SEIRD model. We ask you to calibrate a model to estimate R0, and to estimate the causal effects of interventions.

In the data provided, UK_population.csv and UK_contact_matrix.csv contain data on the population counts and the contact matrix for each age group in the UK. ‘UK_compartments.csv’ has compartments S, E, ICase, IMild, R, and D. All patients in IMild transition to R, whereas all patients in ICase transition to the hospital (IHospital, not currently included in this output).

From there, some patients recover and others transition to D. ‘UK_infections.csv’ has total infections for each day. There are analogous files for the other countries.

In each country:

  1. From t = 0 to t = 40 days, there are no interventions in place, and Covid spreads unabated.
  2. At t = 40 days, people begin wearing masks, decreasing the spread of covid.
  3. At t = 100 days, mask fatigue sets in. People start to mask less, but more than they did from t = 0 to t = 40. Cases increase again.

During this same time frame, each country begins implementing a social distancing policy at t = 60 days. Due to the policy, contact decreases to 30% of its original levels for the interactions of people over the age of 65 with others over the age of 65 (i.e., the 3x3 matrix on the bottom right of the contact matrix) and it decreases to 60% of its original levels otherwise.

Because this model is stochastic, (in particular, the number of people transitioning between compartments is randomly drawn from a binomial distribution), we run each simulation ten times for each country. The dt parameter is set to 0.2 so that there are 5 time steps per day and 1000 time steps in each 200-day simulation.

For example, one simulation exhibits the following data:

image

Using the data provided, which includes contact matrices and population counts for all four countries, along with the output from running 10 simulations for each country:

  1. Calibrate models to estimate R0 for each country in each of the four time intervals: [0,40), [40,60), [60,100), [100, 200].
  2. Estimate the causal effects of masking alone, the combined effect of masking and social distancing, and the effect of social distancing alone on infections. Include uncertainty in the estimated effects.

(Optional)

  1. In each country, what is the maximum value R0 can be over the last time interval ([100, 200]), to ensure that there are no more than 50 infections at t = 200 days with 90% confidence? Are these different across countries?
  2. Can R0 be changed in one of the three preceding intervals ([0,40), [40,60), [60,100)), without changing it in the fourth, to ensure that infections at t = 200 days stay below ¾ of their simulated value at t = 200 with 95% confidence?
VigneshSella commented 6 months ago

Scenario 1 notebook PR https://github.com/ciemss/pyciemss/pull/501 , with notebook located here.

zterner-mitre commented 6 months ago

@VigneshSella the notebook link above doesn't work, is it supposed to?

VigneshSella commented 6 months ago

No this link is deprecated now, we're working within this branch/repo itself now: https://github.com/ciemss/program-milestones/tree/epi-scenario-1/18-month-milestone/hackathon/epi/scenario1/ciemss