arXiv:2009.10262v1 [eess.SY] 22 Sep 2020
Safety-Critical Control of Compartmental Epidemiologica
l Models
with Measurement Delays
Tam ́as G. Moln ́ar
1
, Andrew W. Singletary
2
, G ́abor Orosz
1
,
3
and Aaron D. Ames
2
Abstract
— We introduce a methodology to guarantee safety
against the spread of infectious diseases by viewing epidem
i-
ological models as control systems and by considering human
interventions (such as quarantining or social distancing)
as con-
trol input. We consider a generalized compartmental model t
hat
represents the form of the most popular epidemiological mod
els
and we design safety-critical controllers that formally gu
arantee
safe evolution with respect to keeping certain populations
of
interest under prescribed safe limits. Furthermore, we dis
cuss
how measurement delays originated from incubation period a
nd
testing delays affect safety and how delays can be compensat
ed
via predictor feedback. We demonstrate our results by syn-
thesizing active intervention policies that bound the numb
er
of infections, hospitalizations and deaths for epidemiolo
gical
models capturing the spread of COVID-19 in the USA.
I. INTRODUCTION
The rapid spreading of COVID-19 across the world forced
people to change their lives and practice mitigation effort
s
at a level never seen before, including social distancing,
mask-wearing, quarantining and stay-at-home orders. Thes
e
human actions played a key role in reducing the spreading of
the virus, although such interventions often have economic
consequences, lose of jobs and physiological effects. Ther
e-
fore, it is important to focus mitigation efforts and determ
ine
when, where and what level of intervention needs to be taken.
This research provides a methodology to determine the
level of active human intervention needed to provide safety
against the spreading of infection while keeping mitiga-
tion efforts minimal. We use compartmental epidemiologica
l
models to describe the spreading of the infection [1], [2],
and we view these models as control systems where human
intervention is the control input. Viewing epidemiologica
l
models as control systems has been proposed in the literatur
e
recently [3], [4], [5], and various models with varying
transmission rate [6], [7], [8], [9] have appeared to quanti
fy
the level of human interventions in the case of COVID-19.
In this paper, we build on our recent work [10] and
use a safety-critical control approach to synthesize contr
ol
strategies that guide human interventions so that certain
safety criteria (such as keeping infection, hospitalizati
on and
death below given limits) are fulfilled with minimal miti-
gation efforts. The approach is based on the framework of
1
Department of Mechanical Engineering, University of Michi
gan,
Ann Arbor, MI 48109, USA
molnart@umich.edu,
orosz@umich.edu
2
Department of Mechanical and Civil Engineering, Californi
a Institute
of Technology, Pasadena, CA 91125, USA
ames@caltech.edu,
asinglet@caltech.edu
3
Department of Civil and Environmental Engineering, Univer
sity of
Michigan, Ann Arbor, MI 48109, USA
Fig. 1. Illustration of the SIR model as control system and it
s fit to US
COVID-19 data [10]. Model parameters were estimated from co
mpartmental
data (right) by accounting for a measurement delay
τ
. The transmission rate
and the corresponding control input (left) were fitted to mob
ility data.
control barrier functions [11], [12] that leverages the the
ory
of set invariance [13] for dynamical [14], [15] and control
systems [16], [17], [18]. We take into account that data
about the spreading of the infection may involve significant
measurement delays [5], [19], [20], [21] due to the fact that
infected individuals may not show symptoms and get tested
for quite a few days. We use predictor feedback control [22],
[23], [24] to compensate these delays, and we provide safety
guarantees against errors in delay compensation.
The outline of the paper is as follows. Section II in-
troduces a generalized compartmental model, which covers
the class of the most popular epidemiological models. Sec-
tion III introduces safety critical control without consid
ering
measurement delays, while Sec. IV is dedicated to delay
compensation. Conclusions are drawn in Sec. V.
II. GENERALIZED COMPARTMENTAL MODEL
Compartmental models describe how the size of certain
populations of interest evolve over time. Consider
n
+
m
compartments, given by
x
∈
R
n
+
m
, which are separated into
two groups:
n
so-called multiplicative compartments, given
by
w
∈
R
n
, and
m
outlet compartments, given by
z
∈
R
m
.
The evolution of these compartments over time
t
can be given
by the following
generalized compartmental model
:
̇
w
(
t
) =
f
(
w
(
t
)) +
g
(
w
(
t
))
u
(
t
)
,
̇
z
(
t
) =
q
(
w
(
t
)) +
r
(
z
(
t
))
,
(1)
where
x
= [
w
T
z
T
]
T
, initial conditions are
x
(0) =
x
0
, and
f, g
:
R
n
→
R
n
,
q
:
R
n
→
R
m
and
r
:
R
m
→
R
m
depend
on the choice of the model; see Examples 1, 2 and 3.
In model (1), the multiplicative compartments
w
are
populations that essentially describe the transmission of
the infection. The transmission can be reduced by active
interventions, whose intensity is quantified by a control
input
u
∈ U ⊂
R
. The outlet compartments
z
, on the other
hand, do not actively govern the transmission, but rather
indicate its effects, as they are driven by the evolution of
the multiplicative compartments.
Example 1. SIR model.
One of the most fundamental epi-
demiological models is the
SIR model
[25], [26] that consists
of
susceptible
,
S
,
infected
,
I
, and
recovered
,
R
, populations.
The SIR model captures the spread of the infection based on
the interplay between the susceptible and infected popula-
tions. Thus,
S
and
I
are multiplicative compartments, while
R
, that measures the number of recovered (or deceased)
individuals, is an outlet compartment. The model uses three
parameters: the transmission rate
β
0
>
0
, the recovery rate
γ >
0
and the total population
N
. Active interventions given
by the control input
u
∈
[0
,
1]
allow the population to reduce
the transmission to an effective rate
β
=
β
0
(1
−
u
)
, where
u
= 0
means no intervention and
u
= 1
means total isolation
of infected individuals. This puts the SIR model with active
intervention to form (1) where
w
=
S
I
, f
(
w
) =
−
β
0
N
SI
β
0
N
SI
−
γI
, g
(
w
) =
β
0
N
SI
−
β
0
N
SI
,
z
=
R,
q
(
w
) =
γI,
r
(
z
) = 0
.
(2)
Example 2. SEIR model.
The
SEIR model
[27], [28] is
an extension of the SIR model that incorporates an
exposed
population
E
apart from the
S
,
I
and
R
compartments. The
exposed individuals are infected but not yet infectious ove
r a
latency period given by
1
/σ >
0
. Since the latency affects the
transmission,
E
is a multiplicative compartment. The SEIR
model can be described by (1) with
w
=
S
E
I
, f
(
w
) =
−
β
0
N
SI
β
0
N
SI
−
σE
σE
−
γI
, g
(
w
) =
β
0
N
SI
−
β
0
N
SI
0
,
z
=
R,
q
(
w
) =
γI,
r
(
z
) = 0
.
(3)
Example 3. SIHRD model.
The
SIHRD model
[10] adds
two more outlet compartments to the SIR model: hospitalized
population
H
and deceased population
D
. Their evolution is
captured by three additional parameters: the hospitalizat
ion
rate
λ >
0
, the recovery rate
ν >
0
in hospitals and the death
rate
μ >
0
. Equation (1) yields the SIHRD model for
w
=
S
I
, f
(
w
)=
−
β
0
N
SI
β
0
N
SI
−
(
γ
+
λ
+
μ
)
I
, g
(
w
)=
β
0
N
SI
−
β
0
N
SI
,
z
=
H
R
D
, q
(
w
) =
λI
γI
μI
,
r
(
z
) =
−
νH
νH
0
.
(4)
There exist several other compartmental models of
form (1) which involve further compartments, such as the
SIRD [29], SIRT [7], SIXRD [30] or SIDARTHE [1] models.
More complex models can provide higher fidelity, although
they involve more parameters that need to be identified. In
what follows, we show applications of the SIR and SIHRD
models and we discuss the occurrence of time delays related
to incubation and testing. We omit further discussions on
latency, the SEIR model or other more complex models.
Fig. 1 shows the performance of the SIR model in cap-
turing the spread of COVID-19 for the case of US national
data. The parameters
β
0
= 0
.
33 day
−
1
,
γ
= 0
.
2 day
−
1
and
N
= 33
×
10
6
of the SIR model were fitted following the
algorithm in [10] to the recorded number of confirmed cases
I
+
R
[31] between March 25 and August 9, 2020, while the
control input
u
(
t
)
, that represents the level of quarantining
and social distancing, was identified from mobility data [32
]
based on the medium time people spent home. The fitted
control input (blue) follows the trend of the mobility data
(gray) well, especially in March where stay-at-home orders
came into action. While the fit (blue) captures the data about
confirmed cases (gray), the model also has predictive power
(orange); see more details about forecasting in [10].
Note that once an individual gets infected by COVID-
19, it takes a few days of incubation period to show
symptoms and an additional few days to get tested for the
virus [5], [19], [20], [21]. Therefore, the measured number
of confirmed cases represents a delayed state of the system,
I
(
t
−
τ
) +
R
(
t
−
τ
)
, and thus we involved a time delay
τ
in the model identification process, which was found to be
τ
= 11 days
by fitting [10]. The delay-free counterpart of
the fit (purple) shows that the measurement delay can lead
to a significant error in identifying the true current level o
f
infection. The effects of the delay
τ
on safety-critical control
and its compensation will be discussed in Sec. IV.
III. SAFETY-CRITICAL CONTROL
Formally, safety can be translated into keeping system (1)
within a
safe set
S ⊂
R
n
+
m
that is the 0-superlevel set of a
continuously differentiable function
h
:
R
n
+
m
→
R
:
S
:=
{
x
∈
R
n
+
m
:
h
(
x
)
≥
0
}
,
(5)
where
x
= [
w
T
, z
T
]
T
. Function
h
prescribes the condition
for safety: for example, if one intends to keep the infected
population
I
under a limit
I
max
for the SIR, SEIR or SIHRD
models, the safety condition is
h
(
x
) =
I
max
−
I
≥
0
.
To guarantee safety, we design a controller
u
(
t
) =
A
(
x
(
t
))
(6)
that ensures that the set
S
in (5) is forward invariant under the
dynamics (1), i.e., if
x
(0)
∈ S
(
h
(
x
(0))
≥
0
), then
x
(
t
)
∈ S
(
h
(
x
(
t
))
≥
0
) for all
t >
0
. Below we use the framework of
control barrier functions
[11], [12] to synthesize controllers
that are able to keep certain compartments of interest withi
n
prescribed limits. First, we consider safety for multiplic
ative
compartments, and then for outlet compartments.
A. Safety Guarantees for Multiplicative Compartments
Consider keeping the
i
-th multiplicative compartment
(
1
≤
i
≤
n
) below a safe limit given by
C
i
, i.e., we prescribe
h
(
x
) =
C
i
−
w
i
,
(7)
where
C
i
is an upper bound for
w
i
. A lower bound could
also be considered similarly, by taking
h
(
x
) =
w
i
−
C
i
.
Theorem 1:
Consider dynamical system (1), function
h
in (7) and the corresponding set
S
given by (5). The follow-
ing safety-critical active intervention controller guara
ntees
that
S
is forward invariant (safe) under dynamics (1) if
g
i
(
w
)
6
= 0
,
∀
w
∈
R
n
:
u
(
t
)=
A
i
(
x
(
t
))=
−
sign(
g
i
(
w
(
t
)))ReLU
φ
i
(
w
(
t
))
|
g
i
(
w
(
t
))
|
,
(8)
where
ReLU(
·
) = max
{
0
,
·}
is the rectified linear unit,
φ
i
(
w
) =
f
i
(
w
)
−
α
(
C
i
−
w
i
)
(9)
and
α >
0
. Furthermore, the controller is optimal in the sense
that it has minimum-norm control input.
Proof.
According to [12], the necessary and sufficient con-
dition of forward set invariance is given by
1
̇
h
(
x
(
t
))
≥ −
αh
(
x
(
t
))
,
(10)
∀
t
≥
0
, where the derivative is taken along the solution
of (1). If there exists a control input
u
(
t
)
so that (10)
is satisfied, then
h
is called a
control barrier function
.
Substitution of (7) and (1) into (10) gives the safety condit
ion
−
φ
i
(
w
(
t
))
−
g
i
(
w
(
t
))
u
(
t
)
≥
0
,
(11)
where
φ
i
is given by (9). The control input
u
(
t
)
must
satisfy (11) for all
t
≥
0
. To keep control efforts minimal,
one can achieve this by solving the quadratic program:
u
(
t
) =
A
i
(
x
(
t
)) = argmin
u
∈U
u
2
s
.
t
.
(11)
.
(12)
Based on the KKT conditions [33], the explicit solution is
u
(
t
)=
A
i
(
x
(
t
))=
(
0
if
−
φ
i
(
w
(
t
))
≥
0
,
−
φ
i
(
w
(
t
))
g
i
(
w
(
t
))
if
−
φ
i
(
w
(
t
))
<
0
,
(13)
if
g
i
(
w
(
t
))
6
= 0
, which can be simplified to (8).
We remark that if
g
i
(
w
) = 0
, safety can be ensured by the
help of
extended control barrier functions
as discussed for
the safety guarantees of outlet compartments in Sec. III-B.
For example, to keep the infected population
I
below the
limit
I
max
for the SIR model given by (2), one shall prescribe
h
(
x
) =
I
max
−
I
, and (8) leads to the controller
A
I
(
x
) = ReLU
1
−
α
I
(
I
max
−
I
) +
γI
β
0
SI/N
.
(14)
Fig. 2 shows the dynamics of the closed control loop
for the COVID-19 model fitted in Fig. 1 by prescribing
1
More precisely,
α
must be chosen as an extended class
K
function [12],
but we use a constant for simpler discussion and without loss
of generality.
Fig. 2. Safety-critical active intervention control of the
SIR model fitted in
Fig. 1 to US COVID-19 data. The controller keeps the infected
population
under the prescribed limit
I
max
as opposed to the second wave of infection
that was experienced during the summer of 2020.
I
max
= 200
,
000
and using
α
=
γ/
10
. Indeed, the safety-
critical controller (red) applied from June 1, 2020 is able
to keep the level of infection under the safe limit (red
dashed), while gradually reducing mitigation efforts to ze
ro.
Meanwhile, the US experienced a second wave of infections
(gray) in the summer of 2020, which was caused by the drop
in mitigation efforts in June (see the blue control input).
B. Safety Guarantees for Outlet Compartments
Now consider the case where the
j
-th outlet compartment
(
1
≤
j
≤
m
) needs to be kept within the safe limit
C
j
:
h
(
x
) =
C
j
−
z
j
.
(15)
In the following theorem, we use a dynamic extension of
control barrier functions to guarantee safety.
Theorem 2:
Consider dynamical system (1), function
h
in (15) and the corresponding set
S
given by (5). The follow-
ing safety-critical active intervention controller guara
ntees
that
S
is forward invariant (safe) under dynamics (1) if
̇
h
(
x
(
0)) +
αh
(
x
(0))
≥
0
and if
L
g
q
j
(
w
)
6
= 0
,
∀
w
∈
R
n
:
u
(
t
)=
A
j
(
x
(
t
))=
−
sign(
L
g
q
j
(
w
(
t
)))ReLU
φ
e
j
(
x
(
t
))
|
L
g
q
j
(
w
(
t
))
|
,
(16)
where
L
g
q
j
(
w
) =
∂q
j
∂w
(
w
)
g
(
w
)
,
φ
e
j
(
x
) =
∂q
j
∂w
(
w
)
f
(
w
) +
∂r
j
∂z
(
z
)