Data-Driven Reachability Analysis from Noisy Data
Amr Alanwar1, Anne Koch2, Frank Allgöwer2, and Karl Henrik Johansson1
1KTH Royal Institute of Technology Email: {alanwar,kallej}@kth.se
2Institute for Systems Theory and Automatic Control, University of Stuttgart Email: {anne.koch,frank.allgower}@ist.uni-stuttgart.de
Abstract—We consider the problem of computing reach- able sets directly from noisy data without a given sys- tem model. Several reachability algorithms are presented, and their accuracy is shown to depend on the underlying system generating the data. First, an algorithm for com- puting over-approximated reachable sets based on matrix zonotopes is proposed for linear systems. Constrained matrix zonotopes are introduced to provide less conser- vative reachable sets at the cost of increased computa- tional expenses and utilized to incorporate prior knowledge about the unknown system model. Then we extend the approach to polynomial systems and under the assumption of Lipschitz continuity to nonlinear systems. Theoretical guarantees are given for these algorithms in that they give a proper over-approximative reachable set containing the true reachable set. Multiple numerical examples show the applicability of the introduced algorithms, and accuracy comparisons are made between algorithms.
I. INTRODUCTION
Reachability analysis computes the union of all possible trajectories that a system can reach within a finite or infinite time when starting from a bounded set of initial states [1]. The most popular approaches for computing reachable sets are set- propagation and simulation-based techniques. Set-propagation techniques propagate reachable sets for consecutive time steps.
The efficiency depends on the set representation and the used technique. For instance, Taylor series methods propa- gate enclosures over discrete time by constructing a Taylor expansion of the states with respect to time and bounding the coefficients [2]. The resulting enclosure is then inflated by a bound on the truncation error. Other set representations are polyhedra [3], zonotopes [4], (sparse) polynomial zonotopes [5], ellipsoids [6], and support functions [7]. Zonotopes have favorable properties as they can be represented compactly, and they are closed under Minkowski sum and linear mapping.
The simulation-based approach in [8] over-approximates the reachable set by a collection of tubes around trajectories such that the union of these tubes provides an over-approximation of the reachable set. Sampling-based reachability analysis utilizes random set theory in [9]. Other simulation-based techniques are proposed in [10]–[14].
While there is a considerable amount of literature on com- puting reachable sets for different model classes, these meth- ods assume an a priori given model. Obtaining a model that
Fig. 1: The reachable sets consistent with noisy input-state data are computed while making use of side information if available.
adequately describes the system at hand from first principles or noisy data is usually a challenging and time-consuming task. Simultaneously, system data in the form of measured trajectories is often readily available in many applications.
Therefore, we are interested in reachability analysis directly from noisy data of an unknown system model. One recent contribution in this direction can be found in [15], where the authors introduce two data-driven methods for computing the reachable sets with probabilistic guarantees. The first method represents the reachability problem as a binary classification problem, using a Gaussian process classifier. The second method makes use of a Monte Carlo sampling approach to compute the reachable set. A probabilistic reachability analysis is proposed for general nonlinear systems using level sets of Christoffel functions in [16] where they provide a guarantee that the output of the algorithm is an accurate reachable set approximation in a probabilistic sense. Over- approximating reachable sets from data are considered in [17]
based on interval Taylor-based methods applied to systems with dynamics described as differential inclusions; however, the proposed approach only works under the assumption of noise-free data. Another interesting method is introduced in [18], where the model is assumed to be partially known and data is used to learn an additional Lipschitz continuous state- dependent uncertainty, where the unknown part is assumed to be bounded by a known set. We believe that computing
arXiv:2105.07229v1 [eess.SY] 15 May 2021
guaranteed reachable sets from noisy data is still an open problem.
The main idea underlying the introduced data-driven reach- ability framework is visualized in Fig. 1 where we compute data-driven reachable sets based on matrix zonotope recursion.
In order to guarantee that the reachable set encloses all system trajectories from finite noisy data, we compute a matrix zonotope that encloses all models that are consistent with the noisy data. We then propagate the initial set forward, utilizing this matrix zonotope to compute the reachable set.
We also provide an improved reachability analysis algorithm that provides a less conservative over-approximation of the reachable set at the cost of additional computational expenses.
This improved analysis scheme is enabled by introducing a new set representation, namely constrained matrix zonotopes.
We utilize this novel set representation and the corresponding operations additionally to provide a systematic approach on how supplementary prior knowledge about the unknown model like states decoupling, partial model knowledge, or given bounds on certain entries in the system matrices can be incorporated into the reachability analysis. We then extend our approach to two classes of nonlinear systems: polynomial systems and Lipschitz systems. All used codes to recreate our findings are publicly available1.
We will specifically build upon ideas used in [19]–[21]
and [22]–[25] for data-driven analysis and data-driven con- troller design, respectively. In these works, data is used to characterize all models that are consistent with the data. This characterization enables a computational approach for direct systems analysis and design without explicitly identifying a model.
The main contributions of this paper are as follows:
• An algorithm is proposed to compute the reachable sets of an unknown control system from noise-corrupted input- state measurements using matrix zonotopes (Algorithm 1). The resultant reachable sets are shown to over- approximate the model-based reachable sets for LTI sys- tems (Theorem 1).
• A new set representation named constrained matrix zono- tope (Definition 5) and its essential operations are pro- posed.
• The constrained matrix zonotope is exploited in Algo- rithm 2 by providing a less conservative reachable sets us- ing the exact noise description. The computed reachable sets over-approximate the model-based reachable sets for LTI systems (Theorem 2).
• A general framework is introduced for incorporating side information like states decoupling, partial model knowledge, or given bounds on certain entries in the system matrices about the unknown model (Algorithm 3) into the reachability analysis, which further decreases the conservatism of the resulting reachable sets. The re- sultant reachable sets over-approximate the model-based reachable set for LTI systems (Theorem 3).
• An algorithm is proposed for reachability analysis in the existence of process and measurement noise for LTI
1https://github.com/aalanwar/Data-Driven-Reachability-Analysis
systems (Algorithm 4).
• An algorithm (Algorithm 5) is proposed for computing the reachable sets that are guaranteed to over-approximate the exact reachable set for polynomial systems (Theorem 4). A variant of the LTI side information framework can be used for the polynomial systems.
• An algorithm is proposed for computing the reachable set (Algorithm 6), which results in reachable sets that are guaranteed to over-approximate the exact reachable sets of nonlinear systems under a Lipschitz continuity assumption (Theorem 5).
• A comparison between the proposed algorithms and the alternative direction of system identification and model- based reachability analysis is provided.
As discussed in more detail before, there have been a few approaches to infer the reachable sets directly from data, mostly without providing guarantees in the case of noisy data. An alternative approach is to apply well-known system identification approaches and consecutively do model-based reachability analysis. Thus, we include a comparison to a standard system identification method in Section VI while con- sidering 2σ uncertainty bound in the model-based reachability analysis. Interesting recent results on system identification with probabilistic guarantees from finite noisy data include concentration bounds [26]. Another very related approach is set membership estimation (see, e.g., [27]), where the trade-off between conservatism and computational expenses is usually of central importance, which we will also encounter in the course of this paper.
This paper is an extension to our previous work in [28]
where we introduced the basic idea of computing the reachable set by using matrix zonotopes over-approximating the set of models consistent with the data. In this work, we significantly extend and improve the ideas in [28] by introducing con- strained matrix zonotopes and its essential set of operations which allow the incorporation of side information about the unknown model and provide less conservative reachable sets.
We also enhance the proposed nonlinear Lipschitz reachability analysis method in [28]. Furthermore, we propose a new approach for computing the reachable sets of polynomial systems, and we consider measurement noise for linear sys- tems. Our initial ideas in [28] have been utilized in different applications like data-driven predictive control [29] and set- based estimation [30].
The rest of the paper is organized as follows: the problem statement and preliminaries are defined in Section II. The new set representation (constrained matrix zonotope) is proposed in Section III. Data-driven reachability analysis for LTI systems is proposed in Section IV including a framework to include prior knowledge into the analysis approach. Then, we extend the proposed approach to nonlinear systems in Section V.
The introduced approaches are applied to multiple numerical examples in Section VI, and Section VII concludes the paper.
II. PROBLEMSTATEMENT ANDPRELIMINARIES
We start by defining some set representations that are used in the reachability analysis.
A. Set Representations We define the following sets:
Definition 1: (Zonotope [31]) Given a center cZ ∈ Rn and γZ ∈ N generator vectors in a generator matrix GZ = h
g(1)Z . . . g(γZZ)
i∈ Rn×γZ, a zonotope is defined as
Z =n x ∈ Rn
x = cZ+
γZ
X
i=1
β(i)gZ(i), −1 ≤ β(i)≤ 1o . (1) We use the shorthand notation Z = hcZ, GZi for zonotopes.
A linear map L is defined as LZ = hLcZ, LGZi. Given two zonotopes Z1 = hcZ1, GZ1i and Z2 = hcZ2, GZ2i, the Minkowski sum is
Z1+ Z2=D
cZ1+ cZ2, [GZ1, GZ2]E
. (2)
For simplicity, we use the notation + instead of ⊕ to denote the Minkowski sum as the type can be determined from the context. Similarly, we use Z1− Z2to denote Z1+ −1Z2. We define the Cartesian product of two zonotopes Z1 and Z2 by
Z1× Z2= z1 z2
z1∈ Z1, z2∈ Z2
=DcZ1
cZ2
,GZ1 0 0 GZ2
E
. (3)
Definition 2: (Matrix Zonotope [32, p.52]) Given a center matrix CM ∈ Rn×p and γM ∈ N generator matrices G˜M=h
G(1)M . . . G(γMM)
i∈ Rn×(pγM), a matrix zonotope is defined as
M=n
X ∈ Rn×p
X=CM+
γM
X
i=1
β(i)G(i)M, −1 ≤ β(i)≤ 1o . (4) We use the shorthand notation M = hCM, ˜GMi for matrix zonotopes.
Zonotopes have been extended in [33] to represent arbitrary convex shapes by applying constraints on the factors multi- plied with the generators.
Definition 3: (Constrained Zonotope [33, Prop. 1]) An n- dimensional constrained zonotope is defined by
C = {x ∈ Rn| x = cC+ GCβ, ACβ = bC, kβk∞≤ 1} , (5) where cC ∈ Rn is the center, GC ∈ Rn×ng is the generator matrix and AC ∈ Rnc×ng and bC∈ Rncdenote the constraints.
In short, we use the shorthand notation C = hcC, GC, AC, bCi for constrained zonotopes.
B. Problem Statement
We consider a discrete-time system
x(k + 1) = f (x(k), u(k)) + w(k),
y(k) = x(k) + v(k). (6)
where w(k) ∈ Zw⊂ Rndenotes the noise bounded by a noise zonotope Zw, u(k) ∈ Uk ⊂ Rmthe input bounded by an input zonotope Uk, y(k) ∈ Rnthe measured state that is additionally corrupted by measurement noise v(k) ∈ Zv ⊂ Rn bounded by measurement noise zonotope Zv, and x(0) ∈ X0⊂ Rn the initial state of the system bounded by the initial set X0.
Reachability analysis computes the set of states x(k) which can be reached given a set of uncertain initial states X0⊂ Rn
and a set of uncertain inputs Uk. More formally, it can be defined as follows:
Definition 4: (Exact Reachable Set) The exact reachable set RN after N time steps subject to inputs u(k) ∈ Uk ⊂ Rm∀k = {0, . . . , N − 1}, noise w(·) ∈ Zw, is the set of all states trajectories starting from initial set X0 ⊂ Rn after N steps:
RN =x(N ) ∈ Rn
x(k+1) = f (x(k), u(k)) + w(k), x(0) ∈ X0, u(k) ∈ Uk, w(k) ∈ Zw:
∀k ∈ {0, ..., N −1} . (7) We aim to compute an over-approximation of the exact reachable sets when the model of the system in (6) is unknown, but input and noisy state trajectories are available. More specifically, we aim to compute data-driven reachable sets in the following cases:
1) LTI systems in Subsection IV-A:
x(k + 1) = Atrx(k) + Btru(k) + w(k).
2) LTI systems given additional side information about the unknown model in Subsection IV-B.
3) LTI systems with measurement noise in Subsection IV-C:
x(k + 1) = Atrx(k) + Btru(k) + w(k), y(k) = x(k) + v(k).
4) Polynomial systems in Subsection V-A.
5) Lipschitz nonlinear systems in Subsection V-B.
Instead of having access to a mathematical model of the sys- tem, we consider K input-state trajectories of different lengths Ti, i = 1, . . . , K denoted by {u(i)(k)}Tk=0i−1, {x(i)(k)}Tk=0i , i = 1, . . . , K. We collect the set of all data sequences in the following matrices
X =x(1)(0) . . . x(1)(T1) . . . x(K)(0) . . . x(K)(TK) , U−=u(1)(0) . . . u(1)(T1−1) . . . u(K)(0) . . . u(K)(TK−1) . Let us further denote
X+=x(1)(1) . . . x(1)(T1) . . . x(K)(1) . . . x(K)(TK) , X−=x(1)(0) . . . x(1)(T1−1) . . . x(K)(0) . . . x(K)(TK−1) . The total amount of data points from all available trajectories is denoted by T = PK
i=1Ti, and we denote the set of all available data by D = {U−, X}. Note that when dealing with measurement noise, we will consider the trajectories {y(i)(k)}Tk=0i instead of {x(i)(k)}Tk=0i .
C. Preliminaries
We denote the unknown process noise in state trajectory i by ˆw(i)(·). It follows directly that the stacked matrix of the noise ˆw(i)(k) in the collected data:
Wˆ−= ˆw(1)(0) . . . ˆw(1)(T1−1) . . . ˆw(K)(0) . . . ˆw(K)(TK−1) is an element of the set Mw where Mw = hCMw, ˜GMwi, with
G˜Mw =h G(1)M
w . . . G(γMMw)
w
i
. (8)
Note that Mw is the matrix zonotope resulting from the concatenation of multiple noise zonotopes Zw = hcZw,h
g(1)Z
w . . . gZ(γZw)
w
ii as follows:
CMw=cZw . . . cZw , (9)
TABLE I: Notations summary for the main used sets.
Notation Description
Uk Input zonotope at time k.
X0 Initial reachable set.
Zw Zonotope bounding the process noise.
Mw Matrix zonotope bounding the process noise matrix ˆW−.
Nw Constrained matrix zonotope as a subset of Mw given additional constraints from data for LTI system.
MΣ Matrix zonotope consistent with the data and noise bound for LTI system.
NΣ Constrained matrix zonotope as a subset of MΣ given additional constraints from data for LTI system.
Rk Exact reachable set.
Rˆk Reachable set computed using zonotopes for LTI system.
R¯k Reachable set computed given exact noise description using constrained zonotopes for LTI system.
R¯sk Reachable set computed given side information using constrained zonotopes for LTI system.
Rˆmk Reachable set computed using zonotopes in case of measurement noise for LTI system.
R¯mk Reachable set computed using constrained zonotopes in case of measurement noise for LTI system.
R˜mk Reachable set computed using a data-based approximation in case of measurement noise for LTI system.
Rˆpk Reachable set computed using zonotopes for polynomial systems.
R¯pk Reachable set computed using constrained zonotopes for polynomial systems.
R¯s,pk Reachable set computed given side information using constrained zonotopes for polynomial systems.
R0k Reachable set for Lipschitz nonlinear systems.
G(1+(i−1)T )
Mw =h
g(i)Z
w 0n×(T −1) i
, G(j+(i−1)T )
Mw =h
0n×(j−1) g(i)Z
w 0n×(T −j) i
, G(T +(i−1)T )
Mw =h
0n×(T −1) g(i)Z
w
i .
(10)
∀i = {1, . . . , γZw}, j = {2, . . . , T − 1}. We denote the Kronecker product by ⊗. We denote the element at row i and column j of matrix A by (A)i,j and column j of A by (A).,j. For vectors, we denote the element i of vector a by (a)i. For a given matrix A, A0(i,j) denotes a matrix of same size as A with zero entries everywhere except for the value (A)i,j at row i and column j. The vectorization of a matrix A is defined by vec(A). The element-wise multiplication of two matrices is denoted by . The right inverse is denoted by †. We denote the over-approximation of a reachable set Rk by an interval by int(Rk). We define also for N time steps
F = ∪Nk=0(Rk× Uk). (11) Finally, we denote all system matrices A B that are consistent with the data D = (U−, X) by NΣ:
NΣ= {A B | X+= AX−+ BU−+ W−, W−∈ Mw}.
By assumption, Atr Btr ∈ NΣ. Throughout the paper, we keep record of the used set descriptions in Table I.
III. CONSTRAINEDMATRIXZONOTOPE
Inspired by constrained zonotopes, we propose to extend the notion of matrix zonotopes to constrained matrix zonotopes as follows:
Definition 5: (Constrained Matrix Zonotope) Given a center matrix CN ∈ Rn×p and a number γN ∈ N of generator matrices ˜GN = [G(1)N . . . G(γNN)] ∈ Rn×(pγN), as well as matrices ˜AN = [A(1)N . . . A(γNN)] ∈ Rnc×(naγN) and BN ∈ Rnc×na constraining the factors β(1:γN), a constrained
matrix zonotope is defined by N =n
X ∈ Rn×p
X = CN +
γN
X
i=1
β(i)G(i)N,
γN
X
i=1
β(i)A(i)N = BN, −1 ≤ β(i)≤ 1o . Furthermore, we define the shorthand notation N = hCN, ˜GN, ˜AN, BNi for the constrained matrix zonotope.
The constrained matrix zonotopes are closed under Minkowski sum and multiplication by a scalar which can be done as follows:
Proposition 1: For every N1 = hCN1, ˜GN1, ˜AN1, BN1i ⊂ Rn×p, N2= hCN2, ˜GN2, ˜AN2, BN2i ⊂ Rn×p, and R ∈ Rk×n the following identities hold
RN1= hRCN1, R ˜GN1, ˜AN1, BN1i, (12) N1+ N2=D
CN1+ CN2, [ ˜GN1, ˜GN2], ˜AN12,BN1 0 0 BN2
E , (13) where
A˜N12=
"
A(1)N
1 0
0 0
. . .
"
A(γNN1)
1 0
0 0
#0 0 0 A(1)N
2
. . .
"
0 0
0 A(γNN2)
2
##
. A proof of Proposition 1 is provided in the Appendix. Dur- ing the propagation of the reachable sets, we additionally need to multiply the constrained matrix zonotope by a zonotope or constrained zonotope. The result of both operations can be over-approximated by a constrained zonotope. We provide these operations in the next two propositions.
Proposition 2: For every N = hCN, ˜GN, ˜AN, BNi ⊂ Rp×n, and Z = hcZ, GZi ⊂ Rn the following identity holds
N Z ⊂D
CNcZ,G˜NcZ CNGZ Gf ,
AN Z 0 0 , vec(BN)E
, (14)
where AN Z =h
vec(A(1)N ) . . . vec(A(γNN)) i
, Gf=h
gf(1) . . . gf(γZγN)i ,
g(k)f = f(i)G(i)Ng(j)Z , ∃ k ∀i = {1, . . . , γN}, and
j = {1, . . . , γZ} such that k = {1, . . . , γZγN}, (15) f(i)= max(|βL,N(i) |, |βU,N(i) |), (16) βL,N(i) = min
β(i)
β(i):
γN
X
j=1
β(j)A(j)N = BN, kβk∞≤ 1, (17)
βU,N(i) = max
β(i)
β(i):
γN
X
j=1
β(j)A(j)N = BN, kβk∞≤ 1. (18) A proof of Proposition 2 is provided in the Appendix.
Proposition 3: For every N = hCN, ˜GN, ˜AN, BNi ⊂ Rp×n, and C = hcC, GC, AC, bCi ⊂ Rn the following identity holds
N C ⊂D
CNcC,G˜NcC CNGC Gf ,
AN C 0 0
0 AC 0
,vec(BN) bC
E
, (19)
where AN C=h
vec(A(1)N ) . . . vec(A(γNN)) i
, Gf =h
g(1)f . . . g(γfCγN) i
,
g(k)f = f(k)G(i)NgC(j), ∃ k ∀i = {1, . . . , γN}, and
j = {1, . . . , γC} such that k = {1, . . . , γCγN}, (20) f(k)= max(|βL,N(i) βL,C(j)|, |βL,N(i) β(j)U,C|, |βU,N(i) βL,C(j)|, |βU,N(i) βU,C(j)|),
(21) βL,N(i) = min
β(i)
β(i):
γN
X
j=1
β(j)A(j)N = BN, kβk∞≤ 1, (22)
βU,N(i) = max
β(i)
β(i):
γN
X
j=1
β(j)A(j)N = BN, kβk∞≤ 1, (23) βL,C(j) = min
β(j)
β(j): ACβ = bC, kβk∞≤ 1, (24) βU,C(j) = max
β(j)
β(j): ACβ = bC, kβk∞≤ 1. (25) A proof of Proposition 3 is provided in the Appendix.
IV. DATA-DRIVEN REACHABILITY FORLINEAR SYSTEMS
We consider in this section LTI systems given (i) data corrupted by process noise, (ii) data corrupted by process noise while having additional prior information on the system matri- ces, and (iii) data corrupted by process noise and measurement noise.
A. Linear Systems with Process Noise Consider a discrete-time linear system
x(k + 1) = Atrx(k) + Btru(k) + w(k), (26) where Atr ∈ Rn×n, and Btr ∈ Rn×m. Due to the presence of noise, there generally exist multiple matrices A B that are consistent with the data. To provide reachability analysis
guarantees, we need to consider all models that are consistent with the data. Therefore, we are interested in computing a set MΣthat contains all possibleA B that are consistent with the input-state measurements and the given noise bound. We build upon ideas from [20] to our zonotopic noise descriptions, which yields a matrix zonotope MΣ⊇ NΣpaving the way to a computationally simple reachability analysis.
Lemma 1: Given input-state trajectories D = (U−, X) of the system (26) and a matrix H such that
X−
U−
H = I, (27)
then the matrix zonotope
MΣ= (X+− Mw)H (28)
contains all matricesA B that are consistent with the data D = (U−, X) and the noise bound, i.e., NΣ⊆ MΣ.
Proof: For anyA B ∈ NΣ, we know that there exists a W−∈ Mw such that
AX−+ BU−= X+− W−. (29) Every W− ∈ Mw can be represented by a specific choice βˆM(i)
w, −1 ≤ ˆβM(i)
w ≤ 1, i = 1, . . . , γMw, that results in a matrix inside the matrix zonotope Mw:
W−= CMw+
γMw
X
i=1
βˆM(i)
wG(i)M
w.
Multiplying H from the right to both sides in (29) yields
A B = X+− CMw+
γMw
X
i=1
βˆM(i)
wG(i)M
w
!
H. (30) Hence, for all A B ∈ NΣ, there exists βˆ(i)M
w,
−1 ≤ βˆM(i)
w ≤ 1, i = 1, . . . , γMw, such that (30) holds. Therefore, for all A B ∈ NΣ, it also holds that
A B ∈ MΣas defined in (28), which concludes the proof.
Remark 1: The condition (27) in Lemma 1 requires that there exists a right-inverse of the matrix X−
U−
. This is equivalent to requiring this matrix to have full row rank, i.e.
rankX− U−
= n + m. This condition can be easily checked given the data. Note that for noise-free measurements this rank condition can also be enforced by choosing the input persistently exciting of order n + 1 (compare to [34, Cor. 2]).
To guarantee an over-approximation of the reachable sets for the unknown system, we need to consider the union of reachable sets of all A B that are consistent with the data. We apply the results of Lemma 1 and do reachability analysis to all systems in the set MΣ. Let ˆRk denotes the reachable set computed based on the noisy data using matrix zonotopes. We propose Algorithm 1 to compute ˆRk as an over-approximation of the exact reachable set Rk. The set of models that is consistent with data is computed in line 2 which is then utilized in the recursion of computing the reachable set Rˆk+1in line 4. The following theorem proves that ˆRk⊇ Rk. Theorem 1: Given input-state trajectories D = (U−, X) of the system in (26) and a matrix H as defined in (27), then the reachable set computed in Algorithm 1 over-approximates the exact reachable set, i.e., ˆRk ⊇ Rk.
Algorithm 1 LTI-Reachability
Input: input-state trajectories D = (U−, X), initial set X0, process noise zonotope Zw and matrix zonotope Mw, input zonotope Uk, ∀k = 0, . . . , N − 1
Output: reachable sets ˆRk, ∀k = 1, . . . , N
1: Rˆ0= X0
2: MΣ= (X+− Mw)X− U−
† 3: for k = 0 : N − 1 do
4: Rˆk+1= MΣ( ˆRk× Uk) + Zw 5: end for
Proof: The reachable set computed based on the model can be found using
Rk+1=Atr Btr (Rk× Uk) + Zw. (31) Since Atr Btr ∈ MΣ according to Lemma 1 and both Rk
and ˆRkstart from the same initial set X0, it holds that Rk+1⊆ Rˆk+1.
Lemma 1 provides a matrix zonotope MΣwhich comprises all A B that are consistent with the data and the noise bound. However, not all elements of the matrix zonotope MΣ correspond to a system in (26) that can explain the data given the noise bound, i.e., MΣ is in fact a superset of all
A B that are consistent with the data (NΣ ⊆ MΣ). As discussed in [20], [23], X+−W− might not be explainable by AX− + BU− for all possible W− ∈ Mw. More precisely, there might not exists a solution A B to the system of linear equations
A BX− U−
= X+− W−
for all W− ∈ Mw. An exact description for all systems consistent with the data and the noise bound would therefore be the set
NΣ= (X+− Nw)H (32)
with
Nw= {W−∈ Mw| (X+− W−)X− U−
⊥
= 0}, (33)
where X− U−
⊥
denotes a matrix containing a basis of the kernel of X−
U−
. Representing Nw and NΣ is not possible using state of the art set representations. Therefore, we propose the constrained matrix zonotope introduced in Section III as a new set representation that can represent the sets Nw and thereby NΣ to compute a less conservative reachable set ¯Rk at the cost of increasing the computational complexity in Algorithm 2. Due to adding constraints, ¯Rk is a constrained zonotope different from ˆRk which is a zonotope. We first compute the exact noise description Nw in line 2 to line 5.
Then, we compute the set of models NΣthat is consistent with the exact noise description in line 6 which is further utilized in the recursion of computing the reachable set ¯Rk+1 in line 8. The following theorem proves that Rk ⊆ ¯Rk.
Theorem 2: Given input-state trajectories D = (U−, X) of the system in (26) and a matrix H as defined in (27), then the
Algorithm 2 LTI-Constrained-Reachability
Input: input-state trajectories D = (U−, X), initial set X0, process noise zonotope Zw and matrix zonotope Mw, input zonotope Uk, ∀k = 0, . . . , N − 1
Output: reachable sets ¯Rk, ∀k = 1, . . . , N
1: R¯0= X0 2: A(i)N
w = G(i)M
w
X− U−
⊥
, ∀i = {1, . . . , γZwT }
3: A˜Nw =h A(1)N
w . . . A(γNZwT )
w
i
4: BNw = (X+− CMw)X− U−
⊥ 5: Nw= hCMw, ˜GMw, ˜ANw, BNwi
6: NΣ= (X+− Nw)X− U−
† 7: for k = 0 : N − 1 do
8: R¯k+1= NΣ( ¯Rk× Uk) + Zw
9: end for
reachable set computed in Algorithm 2 over-approximates the exact reachable set, i.e., ¯Rk ⊇ Rk.
Proof: As pointed out in [23], the condition for the existence of a solution F[A B]to the system of linear equations
F[A B]X− U−
= X+− W−, or equivalently
X−
U−
>
F[A B]> = (X+− W−)> (34) can be reformulated via the Fredholm alternative as
X− U−
˜
z = 0 ⇒ (X+− W−)˜z = 0,
which means that any vector ˜z ∈ RT in the kernel of X− U−
must also lie in the kernel of X+−W−. SinceX− U−
⊥
contains a basis of the kernel of X−
U−
, another equivalent condition for the existence of a solution F[A B] in (34) is hence
(X+− W−)X− U−
⊥
= 0. (35)
Considering the constraint (35) together with the bounding matrix zonotope Mw= hCMw, ˜GMwi, we find:
(X+− CMw−
γZwT
X
i=1
β(i)G(i)M
w)X− U−
⊥
= 0. (36) Rearranging (36) results in
(X+− CMw)X− U−
⊥
| {z }
BNw
=
γZwT
X
i=1
β(i)G(i)M
w
X− U−
⊥
| {z }
A(i)Nw
.
Remark 2: Algorithm 2 provides a less conservative de- scription of the data-driven reachable set compared to Algo- rithm 1 by utilizing a less conservative description of the set of systems consistent with the data. To be more precise, NΣ
in (32) with (33) is an equivalent description of all systems consistent with the data and the noise bound (compare [20, Lemma 8]). However, applying the reachability analysis in line 8 of Algorithm 2 requires multiplying constrained matrix zonotopes by zonotopes and constrained zonotopes. For this multiplication, we introduced a guaranteed over-approximation in Proposition 2 and Proposition 3, respectively, which hence introduces conservatism into the proposed reachability analysis approach.
Note that initial zonotope X0 captures all the uncertainty in the initial state. Next, we provide a general framework for incorporating side information about the unknown model.
B. Linear Systems with Side information
Consider a scenario in which we have prior side information about the unknown model from the physics of the problem or any other source. It would be beneficial to make use of this side information to have less conservative reachable sets.
In the following, we propose a framework to incorporate side information about the unknown model like decoupled dynamics, partial model knowledge, or prior bounds on entries in the system matrices. More specifically, we consider any side information that can be formulated as
| ¯QAtr Btr − ¯Y | ≤ ¯R, (37) where ¯Q ∈ Rns×n, ¯Y ∈ Rns×(n+m), and ¯R ∈ Rns×(n+m) are matrices defining the side information which is known to hold for the true system matrices Atr Btr. Here, the absolute |.| and ≤ are element-wise operators. To incorporate such side information into the reachability analysis, we utilize once again the newly introduced concept of constrained matrix zonotopes. We introduce a reachability analysis in Algorithm 3 on the basis of the set of system matricesA B that are consistent with the data (including the less conservative noise handling in Nw) as well as the a priori known side information in (37). We denote the reachable set computed based on the side information by ¯Rsk. Algorithm 3 summarizes the required computation to incorporate the side information. After setting R¯s0 = X0 in line 1, we compute the exact noise description Nwand exact set of models NΣconsistent with the noisy data in lines 2:6 similar to Algorithm 2. Next, we compute the set of models Ns consistent with the side of the information in line 7 to line 14. Finally, we compute the recursion of the reachable sets in line 16. The following theorem proves that R¯sk ⊇ Rk.
Theorem 3: Given input-state trajectories D = (U−, X) of the system in (26), a matrix H as defined in (27), and side information in form of (37). Let T > 2(n + m). Then, the reachable set computed in Algorithm 3 over-approximates the exact reachable set, i.e., ¯Rsk⊇ Rk.
Proof: For all matrices As Bs that satisfy the side information (37), there exists a matrix ¯D ∈ Rns×(n+m) with ( ¯D)i,j∈ [−1, 1] such that
Q¯As Bs − ¯Y =
n
X
i=1 m
X
j=1
R¯0(i,j) ¯D. (38) Additionally, we know that all system matrices consistent with the dataA B ∈ NΣare bounded by the constrained matrix
Algorithm 3 LTI-Side-Info-Reachability
Input: input-state trajectories D = (U−, X), initial set X0, process noise zonotope Zw and matrix zonotope Mw, side information in terms of ¯Q, ¯Y , ¯R. input zonotope Uk, ∀k = 0, . . . , N − 1
Output: reachable sets ¯Rk, ∀k = 1, . . . , N
1: R¯s0= X0
Equivalent to lines 2:6 of Algorithm 2
7: G(i)N
s = G(i)N
Σ, ∀i = {1, . . . , γZwT }
8: G(i)N
s = 0, ∀i = {γZwT + 1, . . . , γZwT + nm}
9: G˜Ns=h G(1)N
s . . . G(γNZwT +nm))
s
i
10: A(i)N
s =
"
A(i)N
Σ
QG(i)N
Σ 0
#
, ∀i = {1, . . . , γZwT }
11: A(γNZwT +k)
s =
0
− ¯R0(i,j) 0
, ∃ k ∀ i = {1, . . . , n}, j = {1, . . . , m}, such that k = {1, . . . , nm}
12: A˜Ns =h A(1)N
s . . . A(γNZwT +nm)
s
i
13: BNs =
BNΣ Y − ¯¯ QCNΣ 0
14: Ns= hCNΣ, ˜GNs, ˜ANs, BNsi
15: for k = 0 : N − 1 do
16: R¯sk+1= Ns( ¯Rsk× Uk) + Zw
17: end for
zonotope NΣ, i.e.
A B = CNΣ+
γZwT
X
i=1
βN(i)
ΣG(i)N
Σ, (39)
with
γZwT
X
i=1
β(i)N
ΣA(i)N
Σ = BNΣ. (40)
Inserting (39) in (38) results in Y − ¯¯ QCNΣ = ¯Q
γZwT
X
i=1
βN(i)
ΣG(i)N
Σ−
n
X
i=1 m
X
j=1
R¯0(i,j) ¯D. (41) With ( ¯D)i,j∈ [−1, 1], we can concatenate ( ¯D)i,jto βNΣ con- stituting βNs. Then, combining (40) with the new constraints in (41) yields ˜ANs and BNs. We add zero generators to maintain the correct number of generators.
Remark 3: Note that for most applications, T > 2(n+m) is automatically satisfied. Therefore, this assumption was taken in the above theorem to ease the notation. In the case of T ≤ 2(n + m), special attention must be given in the setup of the matrices in ˜ANs and BNs. The main idea, however, can nevertheless be straightforwardly applied.
Remark 4: Note that the reachable sets computed in Al- gorithm 3 using side information are less conservative than the ones computed in Algorithm 2 using constrained matrix zonotopes which in turn is less conservative than the ones computed in Algorithm 1 using the matrix zonotope, i.e., Rk⊆ ¯Rsk ⊆ ¯Rk ⊆ ˆRk, as additional information is included in form of additional constraints.
Next, we consider dealing with measurement noise in com- bination with process noise.
C. Linear Systems with Measurement Noise
In the following, we consider measurement noise in addition to process noise, i.e.,
x(k + 1) = Atrx(k) + Btru(k) + w(k),
y(k) = x(k) + v(k). (42)
Besides the input data matrix U−, we collect the noisy state measurements Y in the matrices
Y+=y(1)(1) . . . y(1)(T1) . . . y(K)(1) . . . y(K)(TK) , Y−=y(1)(0) . . . y(1)(T1−1) . . . y(K)(0) . . . y(K)(TK−1) . Additionally, let ˆO = ˆV+− A ˆV− with
Vˆ+=ˆv(1)(1) . . . ˆv(1)(T1) . . . ˆv(K)(1) . . . ˆv(K)(TK) , Vˆ−=ˆv(1)(0) . . . ˆv(1)(T1−1) . . . ˆv(K)(0) . . . ˆv(K)(TK−1) , where ˆv(i)(k), k = 0, 1, . . . , Ti, denotes again the actual measurement noise sequence on trajectory i that led to the measured input-state trajectories. If we assume knowledge of a bound on ˆO, the same approach as presented before can be pursued.
Assumption 1: The matrix ˆO is bounded by a matrix zono- tope ˆO ∈ Mo which is known.
Proposition 4: Given input-state trajectories (U−, Y ) of the system in (26). If there exists a matrix ˜H such that
Y− U−
H = I,˜ (43)
then
Rˆmk+1= MΣ˜( ˆRmk × Uk) + Zw, Rˆm0 = X0, (44) with
MΣ˜ = (Y+− Mo− Mw) ˜H (45) over-approximates the exact reachable set, i.e., Rk⊆ ˆRmk.
Proof: With
Y+− (V+− AtrV−) − W−= AtrY−+ BtrU−, the proof follows the proofs of Lemma 1 and Theorem 1 given Assumption 1.
Next, we utilize the introduced constrained matrix zonotope in Section III to find a less conservative set given Assump- tion 1.
Proposition 5: Given input-state trajectories (U−, Y ) of the system in (26) and a matrix ˜H as defined in (43), then
R¯mk+1= NΣ˜( ¯Rmk × Uk) + Zw, R¯m0 = X0, (46) with
NΣ˜ = hCM˜
Σ, ˜GM˜
Σ, ˜AN˜
Σ, BN˜
Σi, (47)
A˜N˜
Σ =h A(1)N
Σ˜ . . . A(γNMo+γMw)
Σ˜
i , A(i)N
Σ˜ = G(i)M
w
Y− U−
⊥
, i = {1, . . . , γMw},
A(i)N
Σ˜ = G(i)M
o
Y− U−
⊥
, i = {γMw+ 1, . . . , γMo+ γMw},
BN˜
Σ = (Y+− CMw− CMo) Y− U−
⊥
, where CM˜
Σ and ˜GM˜
Σ are defined in (45).
Proof: Similar to Theorem 2, we have (Y+− ˆW−− ˆO) Y−
U−
⊥
= 0.
We do not know ˆW− and ˆO but we can bound them by Wˆ− ∈ Mw= hCMw, ˜GMwi and ˆO ∈ Mo = hCMo, ˜GMoi.
Therefore, we have:
Y+− CMw− CMo−
γMw
X
i=1
βM(i)
wG(i)M
w
−
γMo
X
i=1
βM(i)
oG(i)M
o
Y− U−
⊥
= 0. (48)
Let βNΣ˜ =βMw βMo. Thus we rewrite (48) as
Y+− CMw− CMo
Y− U−
⊥
| {z }
BN ˜
Σ
=
γMw
X
i=1
βN(i)
Σ˜G(i)M
w+
γMo
X
i=1
βN(γMw+i)
Σ˜ G(i)M
o
Y− U−
⊥
, (49) which yields BN˜
Σ and AN˜
Σ.
Note that a similar assumption to Assumption 1 has been taken in [22, Asm. 2]. However, it might be difficult in practice to find a suitable set Mo even with a given bound on v(k), k = 0, 1, . . . , T , since A is assumed to be unknown.
Therefore, we introduce a data-based approximation for the reachable set under the influence of the measurement noise from data. Instead of Assumption 1, we now only consider a bound on v(k) ∈ Zv. Similar to the matrix zonotope Mw of the modeling noise, we have Mv = hCMv, ˜GMvi where ˆV+, ˆV− ∈ Mv. Algorithm 4 summarizes the proposed approach to deal with measurement noise. The general idea can be described as follows:
1) Obtain an approximate model ˜M .
2) Obtain a zonotope that gives an over-approximation of the model mismatch between the true model and the approximate model ˜M , and the term AtrV− from data.
Algorithm 4 LTI-Meas-Reachability
Input: input-state trajectories D = (U−, Y ), initial set X0, process noise zonotope Zw and matrix zonotope Mw, mea- surement noise zonotope Zv and matrix zonotope Mv, input zonotope Uk, ∀k = 0, . . . , N − 1
Output: reachable sets ˆRk, ∀k = 1, . . . , N
1: R˜m0 = X0
2: M = (Y˜ +− CMv− CMw) Y− U−
†
3: AV = maxj (Y+).,j− ˜M (Y−).,j (U−).,j
!
4: AV = minj (Y+).,j− ˜M (Y−).,j (U−).,j
!
5: ZAV = zonotope(AV , AV ) − Zw− Zv 6: for k = 0 : N − 1 do
7: R˜mk+1= ˜M
( ˜Rmk + Zv) × U
+ ZAV + Zw 8: end for