robot dance: a region-wise automatic control of covid-19 ...ghaeser/covidpaulo.pdf · poll of...

23
Robot dance: a region-wise automatic control of Covid-19 mitigation levels Lu´ ıs Gustavo Nonato, Tiago Pereira, Claudia Sagastiz´ abal, Paulo J. S. Silva (speaker) June, 2020 Nonato, Pereira, Silva Robot dance June, 2020 1 – 23

Upload: others

Post on 26-Jun-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Robot dance: a region-wise automatic controlof Covid-19 mitigation levels

Luıs Gustavo Nonato, Tiago Pereira, Claudia Sagastizabal,Paulo J. S. Silva (speaker)

June, 2020

Nonato, Pereira, Silva Robot dance June, 2020 1 – 23

Page 2: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Outline

1 Mitigation strategy

2 SEIR model with commuting

3 Optimization

4 Case studies

Nonato, Pereira, Silva Robot dance June, 2020 2 – 23

Page 3: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Mitigation strategy

Outline

1 Mitigation strategy

2 SEIR model with commuting

3 Optimization

4 Case studies

Nonato, Pereira, Silva Robot dance June, 2020 3 – 23

Page 4: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Mitigation strategy

Mitigation

Initial Covid-19 mitigation in the state o Sao Paulo are based onsocial distancing protocols:

Simultaneous implementation: all state has started the socialdistancing protocol at the same moment ignoring the specificstage of each city.Long implementation: strict social distancing protocols mustimplemented over many months.Homogeneity: the protocol does not take into account economicroles and health infrastructure of each city.

Nonato, Pereira, Silva Robot dance June, 2020 4 – 23

Page 5: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Mitigation strategy

New protocol

From June 1st on a new protocol is being adopted:

Use criteria based on: Health care/ICU capacity, evolution of thenumber of infected.Each region of the state can be in a different situation.Uses different protocols that allow different sectors of theeconomy to open (partially) depending on the stage.The state should improve testing and data collection.Essentially reactive.

Nonato, Pereira, Silva Robot dance June, 2020 5 – 23

Page 6: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Mitigation strategy

What we want to achieve

We developed a optimal control framework that:

Takes into account intercity commute and health structure.Orchestrate the control among the cities to avoid all of them tostop at the same time.Flexible to allow for multiple scenarios: city versus state widepoll of intensive care units, short mitigation protocols, alternatebetween stricter and looser periods, etc.Depends on good data!

Nonato, Pereira, Silva Robot dance June, 2020 6 – 23

Page 7: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

SEIR model with commuting

Outline

1 Mitigation strategy

2 SEIR model with commuting

3 Optimization

4 Case studies

Nonato, Pereira, Silva Robot dance June, 2020 7 – 23

Page 8: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

SEIR model with commuting

SEIR with commute among the cities

We consider a set of K cities with fixed population

Si + Ei + Ii + Ri = 1, i = 1, . . . ,K .

We divide the susceptible population of city i into classes as

Sij = Fraction of the pop. of city i that leave it to work in city j .

Similarly for the other states E , I , and R .

For simplicity, we consider that infected people are sick and do nottravel.

Nonato, Pereira, Silva Robot dance June, 2020 8 – 23

Page 9: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

SEIR model with commuting

During the day

During the day the dynamics of susceptible from city i is affected bythe other cities:

dSi

dt = − 1Tinf

K∑j=1

rj(t)Peff

jSij Ijj , (1)

where Peffi represents the actual fraction of the population at city i

that changes due to inflow and out flow.

Nonato, Pereira, Silva Robot dance June, 2020 9 – 23

Page 10: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

SEIR model with commuting

During the night and population splitting

During the night workers go back to their city and the usualdynamics is used.

The fraction of the population Sij can be estimated using a matrixthat describes the mobility between the cities that has at each entry

pij(t) = # daily accumulated percentage of inhabitants of i that travels to j .

Therefore,Sij = Sipij .

Nonato, Pereira, Silva Robot dance June, 2020 10 – 23

Page 11: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

SEIR model with commuting

Final model

dSi

dt = −α(t) Si

Tinf

N∑j=1

rj(t)Peff

jpij Ijj

− (1− α(t))(

ri(t)Tinf

Si Ii)

dEi

dt = α(t) Si

Tinf

N∑j=1

ri(t)Peff

jpij Ijj

+ (1− α(t))(

ri(t)Tinf

Si Ii)− 1

TincEn

dIidt = 1

TincEn −

1Tinf

IndRi

dt = 1Tinf

In.

Here α is a square pulse. It is 1 for t ∈ [8am, 6pm] and 0 otherwise.

Nonato, Pereira, Silva Robot dance June, 2020 11 – 23

Page 12: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Optimization

Outline

1 Mitigation strategy

2 SEIR model with commuting

3 Optimization

4 Case studies

Nonato, Pereira, Silva Robot dance June, 2020 12 – 23

Page 13: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Optimization

Control and optimization

We formulate a control problem that tries to drive the SEIR dynamicsusing ri(t) as controls. The problem is discretized arriving at

min f (S,E , I ,R , r)s.t. (S,E , I ,R) ∈ DM(r)

(S,E , I ,R , r) ∈ OCSi ,t + Ei ,t + Ii ,r + Ri ,t = 1, i = 1, . . . ,K , t = 1, . . . ,T(S,E , I ,R) ∈ [0, 1]4K , 0 ≤ r ≤ r0,

DM(r) represents the discretized version of the SEIR dynamics. OCare operational constraints.

Nonato, Pereira, Silva Robot dance June, 2020 13 – 23

Page 14: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Optimization

Constraints

The SEIR dynamics was discretized using a 2nd order explicitRunge-Kutta method (modified Euler) with daily steps.

The operational constraints can be:Initial conditions : fix the initial conditions for the SEIR model.Constant controls in a time window: it is not possible to change the

mitigation strategy daily.Health care constraints: take into account the number of intensive

care units by city or in pools.

Nonato, Pereira, Silva Robot dance June, 2020 14 – 23

Page 15: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Optimization

Design mitigation profiles

We use three conflicting objective terms (minimization):

“Normal life”: ∑c=1,...,nt=1,...,T

wt(r0 − rt).

Alternate in time : Change controls among time windows.Alternate in space : Keep part of the state open for business:

−∑

t=1,...,Ti=1,...K

j>i

D(i , j , t)(ri ,t − rj,t)2.

D takes into account the economic relations among regions.

Nonato, Pereira, Silva Robot dance June, 2020 15 – 23

Page 16: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Case studies

Outline

1 Mitigation strategy

2 SEIR model with commuting

3 Optimization

4 Case studies

Nonato, Pereira, Silva Robot dance June, 2020 16 – 23

Page 17: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Case studies

Case studies

Initial example with 11 of the largest cities in the state.Current r0 is around 1.5, with social distancing measures in placetill May 31st.Some of the cities have a very strong relation (metropolitan areaof Sao Paulo), with movements of high proportions of thepopulation among them.Very optimistic estimate considers that the health care system inSao Paulo can sustain 1.5% of the population sick, while thenumber is 0.7% in the interior of the state.Constant controls in 14 days window.Implementation in Julia / JuMP to allow for rapid prototyping.Ipopt is the solver.

Nonato, Pereira, Silva Robot dance June, 2020 17 – 23

Page 18: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Case studies

Current situation - offical data

Nonato, Pereira, Silva Robot dance June, 2020 18 – 23

Page 19: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Case studies

rt to levels

rt Level1.8 Low1.6 Guarded1.4 Elevated1.2 High0.8 Severe

Nonato, Pereira, Silva Robot dance June, 2020 19 – 23

Page 20: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Case studies

Current vs control - Sao Paulo

Nonato, Pereira, Silva Robot dance June, 2020 20 – 23

Page 21: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Case studies

Sao Paulo helps other cities

Nonato, Pereira, Silva Robot dance June, 2020 21 – 23

Page 22: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Case studies

Conclusions

We adapted the SEIR model to take into account dailycommuting.We implemented a framework for rapid prototyping of mitigationcontrols. It is predictive not reactive.The mitigation will last for long, we have to learn to live with it.But we can alternate between more severe / less severe andamong cities to keep part of the state open.The framework is flexible and allow us to “quickly” test otheroperational constraints and/or objectives.

Nonato, Pereira, Silva Robot dance June, 2020 22 – 23

Page 23: Robot dance: a region-wise automatic control of Covid-19 ...ghaeser/covidPaulo.pdf · poll of intensive care units, short mitigation protocols, alternate between stricter and looser

Case studies

To doCurrent code can cope with tens of cities/regions (lots ofmemory).Get rid of state variables that are not necessary.Use a sliding horizon or some other technique to allow forshorter simulations.Add stochasticity to model error on the data.

Report Code

Nonato, Pereira, Silva Robot dance June, 2020 23 – 23