10
1 Dynamic mode decomposition with control Joshua L. Proctor 1* , Steven L. Brunton 2 , J. Nathan Kutz 2 1 Institute of Disease Modeling Bellevue, WA 98004, United States 2 Applied Mathematics, University of Washington, Seattle, WA 98195, United States DRAFT: last updated September 24, 2014 Abstract—We develop a new method which extends Dynamic Mode Decomposition (DMD) to incorporate the effect of control to extract low-order models from high-dimensional, complex systems. DMD finds spatial-temporal coherent modes, connects local-linear analysis to nonlinear operator theory, and provides an equation-free architecture which is compatible with compres- sive sensing. In actuated systems, DMD is incapable of producing an input-output model; moreover, the dynamics and the modes will be corrupted by external forcing. Our new method, Dynamic Mode Decomposition with control (DMDc), capitalizes on all of the advantages of DMD and provides the additional innovation of being able to disambiguate between the underlying dynamics and the effects of actuation, resulting in accurate input-output models. The method is data-driven in that it does not require knowledge of the underlying governing equations, only snapshots of state and actuation data from historical, experimental, or black-box simulations. We demonstrate the method on high- dimensional dynamical systems, including a model with relevance to the analysis of infectious disease data with mass vaccination (actuation). I. I NTRODUCTION We introduce the method of Dynamic Mode Decomposition with control (DMDc) to analyze observational data arising from complex, high-dimensional systems that exhibit dynam- ics and require control. By utilizing both measurements of the system and the applied external control, the underlying, unforced dynamics can be extracted and specified in an equation-free manner, i.e. the underlying equations of motion do not have to be known. In addition, a description of how the control inputs affect the system are also discovered and charac- terized. With a quantitative understanding of the input-output characteristics, a reduced-order-model can be generated for both prediction and design of controllers for high-dimensional, complex systems. Controlling high-dimensional systems remains an extremely challenging task as many control strategies do not scale well with the dimension of the system. In particular, controllers developed on a full system may be computationally prohibitive to implement, introducing unacceptably large latencies. More- over, many control laws are determined by solving a large Riccati equation (H 2 ) or through an iterative procedure (H ), constituting an enormous up-front cost. Thus, practical engi- neering control strategies for dealing with high-dimensional observational data revolves around dimensionality-reduction techniques. Such methods, often based upon the singular value decomposition of the data, allow one to construct low- dimensional subspaces where computationally tractable con- * Corresponding author. Tel.: +1 509 868 5696. E-mail address: [email protected] (J.L. Proctor). trollers can be designed and implemented [29], [20], [17], [31]. Balanced truncation is a classic method developed to specifi- cally take advantage of underlying low-dimensional observable and controllable subspaces to create a balanced, reduced-order model [29]. Generalizations of this scheme which combine balanced truncation with the SVD on empirical data, such as the balanced proper orthogonal decomposition, have already been shown to overcome some of the computational difficulties associated with the high-dimension of complex systems, but still requires a pernicious linear adjoint calculation [40], [31], [18]. Further innovations around system identification meth- ods, such as the Eigensystem Realization Algorithm (ERA) and the Observer Kalman Filter Identification (OKID), were developed to aid in the discovery of input-output models for systems with control [20], [21]. The dimension of the measurements, though, were assumed to be low and the system linear. DMDc has a number of advantages for high-dimensional, complex systems. First, it is based upon the DMD algorithm which is a data-driven, equation-free architecture that recon- structs the underlying dynamics of the system from snapshot measurements alone [34], [30], [8], [38]. Substantial success has been achieved in the application of DMD to fields such as fluid dynamics which have been historically difficult to analyze and construct controllers due to the enormous number of spatial states required for simulation [14], [33], [35], [2], [39], [37]. Second, DMD has acquired popularity as a method for systems with nonlinear dynamics, due to a strong connection between DMD and Koopman operator theory [24], [26], [30], [6], [27]. Finally, DMD can be modified to take advantage of sparse, or limited, measurements of the complex system [5], [39], [19]. Sparse measurements have recently been leveraged in a variety of complex systems, some for control [3], [32], [25], [12]. Such a scenario arises in many physical, biological and engineering systems due to limited numbers of sensors. Such advantages, in combination with the control architecture advocated here, warrant serious consideration of the DMDc as an equation-free control strategy in complex systems. As a motivating example, DMDc can be applied to the field of computational epidemiology focusing on the eradication of diseases. The advent of new monitoring tools and a substantial focus on the quantitative assessment of resource allocation is beginning to generate large sets of data describing the spread of infectious disease. A substantial literature exists focused on mathematically modeling the spread of infectious disease and the effect of external control (e.g. vaccinations for Polio and bed nets for Malaria) [1]. A common challenge in computa- tional epidemiology is deciding how to model the spread of arXiv:1409.6358v1 [math.OC] 22 Sep 2014

Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

  • Upload
    others

  • View
    11

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

1

Dynamic mode decomposition with controlJoshua L. Proctor1∗, Steven L. Brunton2, J. Nathan Kutz2

1Institute of Disease Modeling Bellevue, WA 98004, United States2Applied Mathematics, University of Washington, Seattle, WA 98195, United States

DRAFT: last updated September 24, 2014

Abstract—We develop a new method which extends DynamicMode Decomposition (DMD) to incorporate the effect of controlto extract low-order models from high-dimensional, complexsystems. DMD finds spatial-temporal coherent modes, connectslocal-linear analysis to nonlinear operator theory, and providesan equation-free architecture which is compatible with compres-sive sensing. In actuated systems, DMD is incapable of producingan input-output model; moreover, the dynamics and the modeswill be corrupted by external forcing. Our new method, DynamicMode Decomposition with control (DMDc), capitalizes on all ofthe advantages of DMD and provides the additional innovationof being able to disambiguate between the underlying dynamicsand the effects of actuation, resulting in accurate input-outputmodels. The method is data-driven in that it does not requireknowledge of the underlying governing equations, only snapshotsof state and actuation data from historical, experimental, orblack-box simulations. We demonstrate the method on high-dimensional dynamical systems, including a model with relevanceto the analysis of infectious disease data with mass vaccination(actuation).

I. INTRODUCTION

We introduce the method of Dynamic Mode Decompositionwith control (DMDc) to analyze observational data arisingfrom complex, high-dimensional systems that exhibit dynam-ics and require control. By utilizing both measurements ofthe system and the applied external control, the underlying,unforced dynamics can be extracted and specified in anequation-free manner, i.e. the underlying equations of motiondo not have to be known. In addition, a description of how thecontrol inputs affect the system are also discovered and charac-terized. With a quantitative understanding of the input-outputcharacteristics, a reduced-order-model can be generated forboth prediction and design of controllers for high-dimensional,complex systems.

Controlling high-dimensional systems remains an extremelychallenging task as many control strategies do not scale wellwith the dimension of the system. In particular, controllersdeveloped on a full system may be computationally prohibitiveto implement, introducing unacceptably large latencies. More-over, many control laws are determined by solving a largeRiccati equation (H2) or through an iterative procedure (H∞),constituting an enormous up-front cost. Thus, practical engi-neering control strategies for dealing with high-dimensionalobservational data revolves around dimensionality-reductiontechniques. Such methods, often based upon the singularvalue decomposition of the data, allow one to construct low-dimensional subspaces where computationally tractable con-

∗ Corresponding author. Tel.: +1 509 868 5696.E-mail address: [email protected] (J.L. Proctor).

trollers can be designed and implemented [29], [20], [17], [31].Balanced truncation is a classic method developed to specifi-cally take advantage of underlying low-dimensional observableand controllable subspaces to create a balanced, reduced-ordermodel [29]. Generalizations of this scheme which combinebalanced truncation with the SVD on empirical data, such asthe balanced proper orthogonal decomposition, have alreadybeen shown to overcome some of the computational difficultiesassociated with the high-dimension of complex systems, butstill requires a pernicious linear adjoint calculation [40], [31],[18]. Further innovations around system identification meth-ods, such as the Eigensystem Realization Algorithm (ERA)and the Observer Kalman Filter Identification (OKID), weredeveloped to aid in the discovery of input-output modelsfor systems with control [20], [21]. The dimension of themeasurements, though, were assumed to be low and the systemlinear.

DMDc has a number of advantages for high-dimensional,complex systems. First, it is based upon the DMD algorithmwhich is a data-driven, equation-free architecture that recon-structs the underlying dynamics of the system from snapshotmeasurements alone [34], [30], [8], [38]. Substantial successhas been achieved in the application of DMD to fields such asfluid dynamics which have been historically difficult to analyzeand construct controllers due to the enormous number ofspatial states required for simulation [14], [33], [35], [2], [39],[37]. Second, DMD has acquired popularity as a method forsystems with nonlinear dynamics, due to a strong connectionbetween DMD and Koopman operator theory [24], [26], [30],[6], [27]. Finally, DMD can be modified to take advantage ofsparse, or limited, measurements of the complex system [5],[39], [19]. Sparse measurements have recently been leveragedin a variety of complex systems, some for control [3], [32],[25], [12]. Such a scenario arises in many physical, biologicaland engineering systems due to limited numbers of sensors.Such advantages, in combination with the control architectureadvocated here, warrant serious consideration of the DMDc asan equation-free control strategy in complex systems.

As a motivating example, DMDc can be applied to the fieldof computational epidemiology focusing on the eradication ofdiseases. The advent of new monitoring tools and a substantialfocus on the quantitative assessment of resource allocation isbeginning to generate large sets of data describing the spreadof infectious disease. A substantial literature exists focused onmathematically modeling the spread of infectious disease andthe effect of external control (e.g. vaccinations for Polio andbed nets for Malaria) [1]. A common challenge in computa-tional epidemiology is deciding how to model the spread of

arX

iv:1

409.

6358

v1 [

mat

h.O

C]

22

Sep

2014

Page 2: Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

2

disease leading to an enormous number of phenomenologicalmodels [22]. Equation free techniques such as DMD andDMDc provide a complementary modeling tool for analyzingthe spatial-temporal spread of infectious disease. Focusingon only the historical data containing state information (i.e.number of infections in a spatial location in a given time) andwhether control interventions have been applied (i.e. numberof vaccinations in a spatial location in given time), DMDcdiscovers the dynamical properties of the complex systems.

The outline of the paper is as follows: § II describes thebackground on the method DMD. § III describes the newmethod Dynamic Mode Decomposition with control. The fol-lowing section § IV presents a number of numerical examplesincluding an artificial application based on an epidemiologicalproblem. § V discusses a number of similarities and differencesfrom system identification methods.

II. BACKGROUND: DYNAMIC MODE DECOMPOSITION

Dynamic Mode Decomposition (DMD) is a powerful data-driven method for analyzing complex systems. Using mea-surement data from numerical simulations or laboratory ex-periments, DMD attempts to extract important dynamic char-acteristics such as unstable growth modes, resonance, andspectral properties. This section provides the mathematicalmathematical background of DMD [34], [30], [38].

A. Dynamical systems and data

The fundamental assumption that connects the state of alinear dynamical system xk to the next xk+1 is

xk+1 = Axk, (1)

where x ∈ Rn and A ∈ Rn×n. The process under observationis often continuous (whether from a numerical model orexperiment), and measurements of the continuous state x(t)can be collected at regular time intervals ∆t denoted byxk = x(k∆t). Each measurement in time xk will be referredto as snapshots within this manuscript [36]. We denote thesequence of snapshots collected by the following description:

X =

| | |

x1 x2 . . . xm−1| | |

,

X′ =

| | |

x2 x3 . . . xm

| | |

, (2)

where m is total number of snapshots and X′ is the time-shifted snapshot matrix of X, i.e. X′ = AX. For DMD, datais often collected at regular time intervals ∆t. The numberof snapshots required for DMD varies with the application,but is intimately related to the linearity properties of theKoopman Operator. The solution will converge by decreasingthe recording interval ∆t → 0, thus indicating the numberof snapshots required (for an illuminating numerical examplesee [34]). New directions for DMD have focused on novelparadigms for collecting data in time [38] and across the stateof the system [5]. Each are utilizing the concepts of sparsityand compressed sensing techniques [4].

The dynamical system Eq. (1) and data snapshots Eq. (2)can be described more compactly in the following form:

X = AX′. (3)

Solving for an approximation of the process matrix A giventhe data matrices X and X′ is the primary objective of DMD.

B. Dynamic Mode DecompositionThe following section describes how to find the dynamic

modes and eigenvalues of the underlying system A describedin Eq. (3). We can find A by using the following definition:

A = X′X†, (4)

where † is the Moore-Penrose pseudoinverse [38]. A compu-tationally efficient and accurate method for finding the pseudoinverse is via the singular value decomposition (SVD). TheSVD of X results in the well-known decomposition :

X = UΣV∗ =[U Urem

] [Σ 00 Σrem

] [V∗

V∗rem

], (5)

≈ UΣV∗ (6)

where U ∈ Rn×n, Σ ∈ Rn×m−1, V∗ ∈ Rm−1×m−1,U ∈ Rn×r, Σ ∈ Rr×r, V∗ ∈ Rr×m−1, rem indicates theremaining m−1−r singular values, and ∗ denotes the complexconjugate transpose. Eq. (6) demonstrates how to reduce thedimension of the data matrix X by appropriately choosing atruncation value r of the singular values thus eliminating theremainder (rem) terms and allowing for the psuedo-inverse tobe accomplished since Σ is square. Choosing the appropriatetruncation value r has a rich scientific history; notably, theEckart-Young theorem provides a rigorous and popular methodfor choosing r [11], [28], [13]. In addition, there are recenttheoretical developments attempting to identify the correct rwhen X may have additive noise [9], [10].

Using the SVD of the snapshot matrix X in Eq. (6), thefollowing approximation of the matrix A can be computed:

A ≈ A = X′VΣ−1U∗, (7)

where A is an approximation of the operator A from Eq. (6).A dynamic model of the process can be constructed given bythe following:

xk+1 = Axk, (8)

where x and A have the same dimension as the matricesdescribed earlier in Eq. (1). An eigenvalue analysis of thematrix A would produce the dynamic modes and eigenvaluesof the system. The computation, though, can be prohibitivelyexpensive if n 1.

If r n, a more compact and computationally efficientmodel can be found by projecting xk on to a linear subspace ofdimension r. This basis transformation takes the form Px = x.As previously shown by DMD, a convenient transformationhas already been computed via the SVD of X, given by P =U. The reduced-order model can be derived as follows:

xk+1 = U∗AUxk (9)

= U∗X′VΣ−1xk (10)

= Axk. (11)

Page 3: Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

3

The reduced-order-model is given by the following:

A = U∗X′VΣ−1. (12)

The eigendecomposition of A defined by AW = WΛ yieldseigenvalues and eigenvectors that can be investigated forfundamental properties of the underlying system such asgrowth modes and resonance frequencies. In addition, thecomputation is efficient since A ∈ Rr×r and r n.

Remark Computing the eigendecomposition of A versusA can be a computationally crucial step for efficiency.For example, the domain discretization of a fluids orepidemiological problem can have an arbitrarily large set ofdimensions n. The direct solution of the n × n eigenvalueproblem might not be feasible, thus solving the r × r issubstantially more attractive. The observation is reminiscentof the Method of Snapshots by Sirovich [36].

For DMD, the eigenvalues of A and A are equivalent [34]and the eigenvectors are related via a linear transformation.The eigenvectors of A are called dynamic modes [34], [38].Note, there is a difference between computing the dynamicmodes with the Exact DMD method from Tu et.al. [38]and Schmid [34]. Here we describe the Exact DMD methodgiving the following relationship between the eigenvectors ofA and the dynamic modes φ of A:

φ = X′VΣ−1w. (13)

If λ 6= 0, then this is the DMD mode for λ. If the eigenvalueis 0, then the dynamic mode is computed using φ = Uw. TheExact DMD algorithm has a number of advantages over theoriginal procedure; for a detailed discussion, see [38].

III. DYNAMIC MODE DECOMPOSITION WITH CONTROL

This section presents the mathematical description of Dy-namic Mode Decomposition with control (DMDc). Under-standing the dynamic characteristics of complex systems thathave both internal dynamics and applied external controlis fundamental to controller design and sensor placement.The DMDc method helps discover the underlying dynamicswithout the confounding effect of external control. In addition,the method also quantifies the effect of control inputs on thestate of the system. Fig. 1 illustrates the data collection, thealgorithm, and applications of DMDc.

The underlying dynamical system and measured data ma-trices are redefined to include systems with control inputs in§ III-A. The subsequent section § III-B describes how to solvefor the dynamic modes if the effect of the inputs on the state isalready well-known or well-estimated. The last section § III-Cshows how to solve for both the dynamic modes and the inputmatrix.

A. Dynamical system with control

The new method modifies the basic assumption of DMD.The linear dynamical system connecting the future state xk+1

now relies on information from both the current state xk andthe current control uk given by the following:

xk+1 = Axk + Buk, (14)

where xj ∈ Rn, uj ∈ Rl, A ∈ Rn×n, and B ∈ Rn×l. Datamatrices can be constructed with temporal snapshots of thestate and control input over time. The state snapshots X andX′ are collected in the same manner as Eq. (2). We denotea new sequence of control input snapshots collected by thefollowing description:

Υ =

| | |

u1 u2 . . . um−1| | |

. (15)

Eq. (14) can be rewritten to include the new data matrices:

X′ = AX + BΥ. (16)

Utilizing the three data matrices, approximations of the linearmappings A and B can be found. In the following twosections, we describe how to find the dynamic modes of Agiven the inclusion of control snapshots. The first sectionoutlines the analysis and algorithm if the matrix B is knownor well estimated. If unknown, the second section describeshow to discover both A and B from the observation matrices.

B. The map B is known

The following section describes how to find the dynamicmodes and eigenvalues of the underlying system A when thematrix B is known. The assumption that B is known or well-estimated is an idealistic view of most complex systems, butit helps provide one of the major motivations for this work.Finding the underlying dynamics A in a complex systemwhere control has been applied is essential for designingcontrollers and placement of sensors. If external control hasbeen applied to the system, standard DMD would produceincorrect dynamic information. The more general case whereB is unknown will be described in the following section.

Eq. (16) can be re-arranged by pairing the time-shiftedstate snapshot matrix with the control snapshot matrix andthe known matrix B.

X′ −BΥ = AX (17)

The mapping A can be solved for similar to Eq. (4). Again, thetruncated singular value decomposition of X gives the matrixfactorization UΣV∗. Thus, the approximation of A is givenby the following description:

A ≈ A = (X′ −BΥ)VΣ−1U∗. (18)

Note, if the control snapshots are uj = 0, ∀ j ∈ [1,m],then the derivation is equivalent to DMD. A dynamic modelof both the computed process and the given input matrix canbe constructed described by the following:

xk+1 = Axk + Buk (19)

where x, A, and B are the same dimensions of the matricesdescribed earlier in Eq. (1). If r n though, a more compactand computationally efficient model can be found using the

Page 4: Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

4

same basis transformation Px = x as described earlier forDMD. Again, a convenient transformation has already beencomputed via the SVD of X, given by P = U. The reduced-order model can be derived as follows:

xk+1 = U∗AUxk + U∗Buk, (20)

= U∗(X′ −BΥ)VΣ−1xk + U∗Buk (21)

= Axk + Buk (22)

The reduced-order approximation of A is given by the follow-ing:

A = U∗(X′ −BΥ)VΣ−1 (23)

The eigendecomposition of A defined by AW = WΛ yieldseigenvectors that can be used to find the dynamic modes.Similar to Exact DMD, the dynamic modes can be found withthe following description:

φ = (X′ −BΥ)VΣ−1w (24)

If λ 6= 0, then this is the DMD mode for λ. If the eigenvalueis 0, then the dynamic mode is computed using φ = Uw.

C. The map B is unknown

The assumption that B is known indicates a significantamount of knowledge about how control affects the system.This section relaxes that assumption and notably demonstratesthat approximations of the matrices A and B can both befound from state and control snapshots. To the experimentalistor analyst, this is by far more interesting since only thesnapshots of the control and state are required to find theproperties of the underlying process A and how that processis affected by control B.

The dynamical system from Eq. (16) can be manipulatedgiving the following representation:

X′ = [A B]

[XΥ

]= GΩ, (25)

where Ω contains both the state and control snapshot informa-tion. Here, we again seek a best-fit solution of the operator Gwhich now contains the process dynamics A and input matrixB. A SVD is performed on the augmented data matrix givingΩ = UΣV∗ ≈ UΣV∗. The truncation value of the SVD forΩ will be defined as p. Note, the truncation value of Ω shouldbe larger than of X. The following computation provides anapproximation of G:

G ≈ G = X′VΣ−1U∗, (26)

where G ∈ Rn×(n+l). We can now find approximations of thematrices A and B by breaking the linear operator U in to twoseparate components given by the following:

[A, B] ≈ [A, B] (27)

≈ [X′VΣ−1U∗1, X′VΣ−1U∗2] (28)

where U1 ∈ Rn×p, U2 ∈ Rl×p, and U = [U∗1 U∗2]T . Similarto Eq. (28), a dynamic model using the matrices A and B,but for a large dimensional system where n 1, this iscomputationally prohibitive. Here, we again seek a reduced

order model of rank r n where a transformation is requiredsuch that x = Px and x ∈ Rr.

Unlike DMD, the truncated left singular vectors U can notbe used to define the subspace on which the state evolves. ForEq. (28), the truncated left singular vectors of Ω define theinput space. To find a linear transformation P for the state x,we utilize a reduced-order subspace of the output subspace.This fundamental observation allows for DMDc to discovera reduced-order representation of the dynamics A and inputmatrix B.

To find the reduced-order subspace of the output space,a second singular value decomposition is required. The datamatrix of the output space X′ can be approximated by thefamiliar SVD: UΣV∗ where the truncation value is r andU ∈ Rn×r, Σ ∈ Rr×r, and V∗ ∈ Rr×m−1. Note, thetwo SVDs will likely have different truncation values ofthe input and output matrices p and r and p > r. Usingthe transformation x = Ux, the following reduced-orderapproximations of A and B can be computed:

A = U∗AU = U∗X′VΣ−1U∗1U (29)

B = U∗B = U∗X′VΣ−1U∗2 (30)

where A ∈ Rr×r and B ∈ Rr×l. We can then form thereduced order equation as Eq. (22) given by the following

xk+1 = Axk + Buk (31)

Similar to DMD, the dynamic modes of A can be found byfirst solving the eigenvalue decomposition AW = WΛ. Thetransformation from eigenvectors to dynamic modes of A isslightly modified and is given by the following:

φ = X′VΣ−1U∗1Uw. (32)

where the relationship between φ and w is similar to ExactDMD.

D. The algorithm

The following section outlines the algorithm.1) Collect and construct the snapshot matrices:

Collect the state and control snapshots and form thematrices X, X′, and Υ as described in Eq. (2) andEq. (15). Stack the data matrices X and Υ to constructthe matrix Ω.

2) Compute the SVD of the input space Ω.Compute the singular value decomposition of Ω asdescribed in Eq. (6) thereby obtaining the decompositionΩ ≈ UΣV∗ with truncation value p.

3) Compute the SVD of the output space X′.Compute the singular value decomposition of X′ asdescribed in Eq. (6) thereby obtaining the decompositionX′ ≈ UΣV∗ with truncation value r.

4) Compute the approximation of the operators G =[A B]Compute the following:

A = U∗X′VΣ−1U∗1U (33)

B = U∗X′VΣ−1U∗2 (34)

Page 5: Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

5

xDa

ta C

olle

ctio

n

Data Snapshots

in Time

Control Measurements

· · ·

Data Matrices

X =

x1 x2 · · · xm−1

Υ =

u1 u2 · · · um−1

X′ =

x2 x3 · · · xm

· · ·

State Measurements

x1 x2 xm

u1 u2 um

Experiments

Numerical

Laboratory

Historical

Mo

de

l R

ed

uctio

n

Dynamic Mode Decomposition (DMD)

Ur· · ·

U

σ2

σ1

. . .

σr

V1

Vr

...

V∗Σ

X ≈U1U2

iv. Solve for the dynamic modes of A

X′ = AXi. Find the truncated SVD of X

Find the dynamic properties of A

ii. Compute reduced-order approximation A

iii. Investigate the dynamic properties of A

A = UX′VΣ−1

AW = WΛ

Φ = X′VΣ−1W

DMD with Control (DMDc)

iv. Compute reduced-order approximation of A

iii. Find the truncated SVD of output matrix X′

ii. Find the truncated SVD of input matrix Ω

Find the dynamic properties of A and B

i. Construct the input data matrix

X′ = AX+BΥ

Ω =

[XΥ

]

Ω ≈ UΣV∗ =

[U1

U2

]ΣV∗

X′ ≈ UΣV∗

v. Investigate the dynamic properties of

vi. Solve for the dynamic modes of

AW = WΛ

A = U∗X′VΣ−1U∗1U

Φ = X′VΣ−1U∗1UW

Ap

plic

atio

ns

System Identication Predictive Modeling

x1

x1

x−2 x−1

u−2 u−1

x0

u0

Data Prediction

xk+1 = Axk + Buk

Reduced Order Model

AU∗

B

U

Specify input control sequence

Υ =

Run experiment using Υ

X, X′

Use DMDc to find state-space model

xk+1 = Axk +Buk

Fig. 1: The illustration outlines the three major components of applying DMDc. The top panel describes the collection of datafrom either a numerical, laboratory, or historical data and the curation of the data in to matrices for the methods. Note, thefigure in the historical plot is the data representing pre-vaccination Measles cases in the UK normalized similar to that found in[23]. The middle panel outlines the procedure for DMD and DMDc for comparison. The bottom panel illustrates two practicalapplications of DMDc.

Page 6: Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

6

5) Perform the eigenvalue decomposition of APerform the eigenvalue decomposition given by thefollowing:

AW = WΛ (35)

6) Compute the dynamic Modes of the operator A

Φ = X′VΣ−1U∗1UW (36)

IV. APPLICATIONS

The following section describes a number of numericalexamples for the application of this method. The examplesincrease in complexity as the section progresses. The emphasisfor each of these examples is the benefit of including controlsnapshot information to the analysis.

A. Example 1 – Unstable linear system with proportionalcontroller

DMDc can help discover the underlying dynamics of asystem through measurements of both the state and externalinputs. Here, we demonstrate the idea on a simple two-dimensional unstable linear system with a stabilizing con-troller. Despite the simplicity of the mathematical problem,the example is illustrative for the general concept of DMDc.Consider the following dynamical system:

[x1x2

]

k+1

=

[1.5 00 0.1

] [x1x2

]

k

+

[10

]uk (37)

where uk = K[x1]k and K = −1. The proportional controllerclearly stabilizes the system by moving the unstable eigenvaluewithin the unit circle. If we have access to the input data andthe B matrix as described in §III-C, we can collect state andcontrol snapshots to perform the DMDc computation. For aninitial condition [4 7]T , the following are the data matricesconstructed from computing the first five temporal snapshotsof Eq. (37):

X =

[4 2 1 0.57 0.7 0.07 0.007

](38)

X′ =

[2 1 0.5 0.25

0.7 0.07 0.007 0.0007

](39)

Υ =[−4 −2 −1 −0.5

](40)

Following the description in §III-B, we compute the singularvalue decomposition of X. Here, we use MATLAB’s economysized singular value decomposition algorithm to give thefollowing matrix factorization of X.

U =

[−0.5239 −0.8462−0.8462 0.5329

](41)

Σ =

[8.2495 0

0 1.6402

](42)

V =

−0.9764 0.2105−0.2010 −0.8044−0.0718 −0.4932−0.0330 −0.2557

(43)

Now, we can compute Eq. (18) using the data matrices inEq. (40), the SVD matrices in Eq. (43), and the matrix B inEq. (37) giving the following approximation to A:

A =

[1.5 00 0.1

](44)

where we recover the unstable linear dynamics from data ofthe state and control snapshots. This example demonstratesthe utility of DMDc with recovering unstable dynamics froma system that would otherwise appear to be stable.

B. Example 2 – Large-scale, stable Linear SystemsIn this section, we investigate stable linear systems where

the number of measurements are significantly greater thanthe dimensionality of the underlying system. The previousexample demonstrated the utility of the method on a low-dimensional unstable model. Here, the method is applied tolarge-scale dynamical systems that have an underlying low-dimensional attractor.

To construct these large-scale systems, a low-dimensionalstable model is generated and subsequently embedded into a higher dimensional subspace. There are three steps forgenerating the model and data matrices to compare the outputof DMDc and the generated model:

1) Generate a low-dimensional stable state-space model,A and BGenerate discrete random state-space systems usingMATLAB’s command Discrete Random State SpaceMethod. These stable-discrete state-space models canbe used as numerical experiments for DMDc. Here, wehave chosen a 5 dimensional model, 2 input variables,and 100 measurement variables. The output is a statespace model A, B, and C.

2) Generate random input data ΥUsing MATLAB’s randn command, generate a matrixof random inputs, Υ ∈ R2×m−1.

3) Use the model and input vector to generate the datamatrices X and X′

Using the model and the input matrix, generate outputdata for the snapshot matrix.

Using the data matrices X, X′ and Υ, the DMDc compu-tation can be performed to find an approximation of A andB. To compare the generated model and the model producedby DMDc, we assign C = U. The assignment allows for thecomparison of state-space models.

The singular values of the frequency response, a multi-inputmulti-output (MIMO) generalization of a BODE plot, is usedto compare the two models. The MATLAB command sigmawill generate the frequency response for both systems. Fig. 2illustrates one such comparison arising from a single numericalrealization from the ensemble. Note, there is no distinctionbetween the generated model (in red) and the model fromDMDc (in blue) for both control inputs (both lines).

C. Example 3 – A sparse linear system in the Fourier domainThe final example for DMDc is a large-scale dynamical sys-

tem on a spatial grid. The system consists of high-dimensional

Page 7: Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

7

10−2

10−1

100

101

0

5

10

15

20

25

30

35

40

Frequency (rad/s)

Sin

gu

lar

Va

lue

s (

dB

)

Fig. 2: The singular values of the frequency response for alarge scale, stable linear systems. The blue line is from themodel from DMDc and the red is from the real model. Note,an equivalent frequency response can not be constructed fromDMD alone since it does not consider input-output systems.

full-state measurements, although the dynamics are governedby a low-dimensional dynamical system in the Fourier domain.The motivation for this example comes from epidemiologyand infectious disease spread where the measurements canbe high-dimensional in both space and time. For example,consider the number possible states of a dynamical systemto represent flu infections across the world over a decade,including both spatial discretization and disease heterogeneityfactors. In this example, the underlying attractor could be quitelow dimensional. To complicate this picture, actuation in theform of a spatial delivery of vaccinations is also occurring eachyear, which can directly affect the dynamics of an infectiousdisease.

Here, we construct a sparse dynamical system in a two-dimensional Fourier domain as an abstraction of the problemdescribed above. Only 5 modes are allowed to be non-zero.The dynamical system on these spatial modes is constructedin the following way: for each mode, a temporal oscillationfrequency is chosen randomly and a small, stable damping rateis similarly chosen. The boundary conditions are periodic, thusrestricting the dynamics to a torus. This system was previouslyconstructed in [5] to demonstrate compressive DMD. Herethough, the example is extended to allow for actuation inthe spatial domain. The spatial actuation is then Fouriertransformed in order to compute the effect on the underlyingdynamical system. The spatial grid used is 128× 128.

Similar to the previous examples, the underlying dynamicsof the system can be discovered soley from state and controlsnapshots in the spatial domain using DMDc. The top left plotof Fig. 3 shows the evolution of one such unforced system inspace. The right plot shows the effect of actuation on the samesystem. The actuation is a localized negative control inputapplied in the spatial domain, shown in the lower left plot. Theeigenvalue plot shows that DMDc discovers the underlyingeigenvalues more accurately than DMD. In addition, the zero-

valued Fourier modes can be contaminated with Gaussiannoise without a qualitatively change in the behavior of DMDc.

V. CONNECTIONS TO SYSTEM IDENTIFICATION METHODS

This section explores the connection of DMDc to two sys-tem identification methods: the Eigensystem Realization Al-gorithm (ERA) and the Observer Kalman Filter Identification(OKID). These system identification methods were developedto derive a state-space model for control in aerospace appli-cations involving flexible structures [20], [21]. The identifica-tion process involves applying control and observing systembehavior. DMDc and other modal decomposition methods canbe used similarly, but may also be applied to historical datarecords from many other fields such as epidemiological mod-eling. Here, we briefly describe the similarities and differencesbetween the methods.

System identification methods such as ERA/OKID were de-veloped for input-output systems which typically have a higherrank/dimensionality than the number of observables r > n[16], [20]. To contrast, modal decomposition methods suchas DMD, DMDc, Proper Orthogonal Decomposition (POD),and Balanced Proper Orthogonal Decomposition (BPOD) aretypically applied to complex systems where the number ofmeasurements are significantly larger than the rank of theunderlying attractor n r, e.g. fluid dynamics problems.Fig. 4 illustrates the regime of applications where each ofthese methods are typically applied. In addition, DMD andPOD have been previously established as analysis methodsfor nonlinear complex systems [24], [30], [27]

Previous work by Tu et al. [38] has established a numberof connections between DMD and ERA. The similarities anddifferences between DMDc and ERA listed in this section,though, are more readily compared since both algorithmsassume input-output systems. The following list offers a briefcomparison between how DMDc and ERA differ for theconstruction of a typical input-output model:• The data matrix construction:

The data from the ERA procedure is fundamentallyimpulse-response data, whereas DMDc can have arbitraryinput histories. The input histories are fundamental tothe DMDc procedure. Despite this difference, the con-struction of the state data matrices are similar betweenDMDc and ERA. Both the matrix X from DMDc and theHankel matrix H of ERA assume snapshots of the stateat regular intervals. The data matrix H is also verticallystacked with time shifted versions of the snapshot. DMDcdoes not require shift-stacking the matrix since there islittle risk of column-rank deficiency due to the typicallylarge number of observables. The two state matrices areequivalent on the condition that the H is not verticallystacked with state snapshots [38].

• The A matrix:It was previously shown that if the data matrices de-scribed in the first bullet are the same, the matricesA produced by DMD and ERA are equivalent up to asimilarity transformation [38]. The A matrix constructedby DMDc is different from DMD and ERA since the

Page 8: Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

8

Fig. 3: The top left panel illustrates one realization of Example 3 without actuation over time. The right panel illustrates thesame dynamical system, but with actuation. The bottom left panel illustrates the actuation applied in the spatial domain. Thebottom middle panel shows a comparison between the actual eigenvalues and the eigenvalues found from DMD and DMDc.On the right the first four dynamic modes of DMD and DMDc are compared to the actual underlying spatial modes.

Underlying System Rank - r

System ID

Methods

i. ERA

ii. OKID

Nu

mb

er

of

Me

as

ure

me

nts

- n

Model

Reduction

Modal Decomposition Methods

i. DMD

ii. DMDc

iii. POD

iv. BPOD

Fig. 4: An illustration depicting the different regimes, withrespect to the rank of the system and the number of measure-ments, of the modal decomposition methods and the systemidentification methods.

input space and thus the subspace U∗1 contains addedinformation from the control snapshots.

• The B matrixTo compute the matrix B using ERA, only the first datasnapshot after the impulse is utilized, which translatesto the following discrete dynamical system relationshipx1 = CBu0 where u0 is an impulse and C is the

standard linear map for the observable equation. Note,ERA also requires a projection of the single data snapshoton to the left singular vectors of the data matrix H and thesame similarity transform Σ1/2 described for the matrixA. The ERA formulation can be contrasted with DMDcthrough the illustration of the difference in the data matrixconstruction for DMDc given by the following:

Ω =

| | | |0 x1 x2 . . . xmc

| | | |u0 0 0 . . . 0

(45)

The computation to find the matrix B is quite differentfor DMDc. Arbitrary control histories can be includedin Ω to compute B whereas ERA is primarily impulseresponse focused. Further, finding the matrix B with ERAwill not be as robust to noise compared with using DMDcand a longer input history.

• The C matrix For DMDc, ERA, and DMD, a lineartransformation matrix maps the model state to the ob-servables. Each of these methods utilize the left singularvectors of their data matrices for the mapping. There is animportant distinction between the role of the left singularvectors for DMDc and ERA. The mapping for DMDcprojects a high-dimensional set of observables on to alower-dimensional subspace. In ERA, the left singularvectors often lifts the dimension of the observables, seeFig. 4 for an illustration of the rank of the model versusdimension of the observables.

The observer/Kalman filter identification method allowsminimal realization algorithms such as ERA to be generalizedfrom impulse response data to data that is driven by rich input

Page 9: Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

9

signals [21]. The calculation of the above matrices A, B, andC is typically considered more robust when combining OKIDwith ERA. An often cited computational challenge confrontingERA is the analysis of lightly damped systems. The magnitudeof data (number of snapshots) may be prohibitively large forlightly damped systems, and factoring the Hankel matrix usingthe SVD is computationally prohibitive. A major similaritybetween OKID and DMDc is the construction of the datamatrix; OKID constructs an augmented data matrix that alsostacks the control with the state. Similar to DMD and ERA,in the limit of only evaluating the first row of the augmentedHankel matrix, the data matrices between DMDc and OKIDare equivalent.

VI. DISCUSSION

Complex, high-dimensional data has become ubiquitous intraditional scientific and engineering applications as well asmodern data-rich fields such as internet traffic, distributionsystems, and transportation networks. Machine-learning andstatistical methods have been successfully applied to charac-terize many of these so-called big-data problems. Similarly,scientific and engineering fields, exemplified by control theo-retic community, have focused on the development of quanti-tative and automatic dimensionality reduction methods to bothcharacterize and control complex systems. In order to constructeffective controllers, the underlying system needs to be well-understood. Accurately describing the underlying system is achallenge when the system is complex, high-dimensional, andwithout well-characterized governing equations.

Dynamic Mode Decomposition (DMD) is a data-driven,equation-free method that helps meet a number of thesemodern-day challenges. The method has strong connectionto nonlinear operator theory and discovers spatial-temporalcoherent modes from data. DMD, though, does not produceaccurate reduced-order-models from complex systems withexogenous forcing. Dynamic mode decomposition with control(DMDc) inherits the advantages of DMD, but also providesaccurate input-output models for complex systems with ac-tuation. The method can be applied to data from a varietyof sources including historical, experimental, and black-boxsimulations.

Methods such as DMDc will play an increasing role inthe analysis of large-scale datasets from complex systems.DMD has already been applied to a significant number ofapplications in the fluid dynamics community [33], [35],[14], [2], [39], [37] and is expanding to a variety of otherapplications like background subtraction in video processing[15]. We believe DMDc is poised to similarly excel as a toolfor a diverse set of engineering applied science applicationswhere control of the complex system is important. Further,the DMDc method is well-suited to couple with innovativesparsity-promoting sampling and control strategies [7], [32],[3], [12]. This connection has already been demonstrated forDMD both in time and space [5], [19], [39]. DMDc is thereforepositioned to have a dramatic effect on the analysis and controlof large-scale complex systems.

ACKNOWLEDGEMENTS

The authors would like to thank Bill and Melinda Gatesfor their active support of the Institute for Disease Model-ing and their sponsorship through the Global Good Fund.J. N. Kutz acknowledges support from the U.S. Air ForceOffice of Scientific Research (FA9550-09-0174). Productivediscussions about Dynamic Mode Decomposition with BingBrunton, Clancy Rowley, and Jonathan Tu are likewise greatlyappreciated.

REFERENCES

[1] R. Anderson, R. May, and B. Anderson. Infectious Diseases of Humans:Dynamics and Control. Oxford University Press, 1992.

[2] S. Bagheri. Koopman-mode decomposition of the cylinder wake.Journal of Fluid Mechanics, 726:596–623, 2013.

[3] Z. Bai, T. Wimalajeewa, Z. Berger, G. Wang, M. Glauser, and P. K.Varshney. Physics based compressive sensing approach applied to airfoildata collection and analysis. AIAA Paper 2013-0772, 51st AerospaceSciences Meeting, January 2013.

[4] R. G. Baraniuk. Compressive sensing. IEEE Signal ProcessingMagazine, 24(4):118–120, 2007.

[5] S. L. Brunton, J. L. Proctor, and J. N. Kutz. Compressive samplingdynamic mode decomposition. submitted for publication, arXiv, 2013.

[6] Marko Budisic, Ryan Mohr, and Igor Mezic. Applied koopman-ism a). Chaos: An Interdisciplinary Journal of Nonlinear Science,22(4):047510, 2012.

[7] E. J. Candes. Compressive sensing. Proceedings of the InternationalCongress of Mathematics, 2006.

[8] K. K. Chen, J. H. Tu, and C. W. Rowley. Variants of dynamic modedecomposition: Boundary condition, Koopman, and Fourier analyses.Journal of Nonlinear Science, 22(6):887–915, 2012.

[9] D.L. Donoho and M. Gavish. Minimax risk of matrix denoising bysingular value thresholding. arXiv, (1304:2085v3), 2013.

[10] D.L. Donoho and M. Gavish. The optimal hard threshold for singularvalues is 4/

√3. arXiv, (1305:5870v2), 2013.

[11] C. Eckart and G. Young. The approximation of one matrix by anotherof lower rank. Psychometrika, 1(3):211–218, 1936.

[12] Makan Fardad, Fu Lin, and M Jovanovic. Design of optimal sparseinterconnection graphs for synchronization of oscillator networks. IEEETransactions on Automatic Control, 29(5):2281–2291, September 2014.

[13] G. H. Golub and C. Reinsch. Singular value decomposition and leastsquares solutions. Numerical Mathematics, 14:403–420, 1970.

[14] M. Grilli, P. J. Schmid, S. Hickel, and N. A. Adams. Analysis ofunsteady behaviour in shockwave turbulent boundary layer interaction.Journal of Fluid Mechanics, 700:16–28, 2012.

[15] J. Grosek and J. N. Kutz. Dynamic mode decomposition for real-timebackground/foreground separation in video. arXiv, 2014.

[16] B. L. Ho and R. E. Kalman. Effective construction of linear state-variable models from input/output data. In Proceedings of the 3rdAnnual Allerton Conference on Circuit and System Theory, pages 449–459, 1965.

[17] P. J. Holmes, J. L. Lumley, G. Berkooz, and C. W. Rowley. Turbulence,coherent structures, dynamical systems and symmetry. CambridgeMonographs in Mechanics. Cambridge University Press, Cambridge,England, 2nd edition, 2012.

[18] M. Ilak and C.W. Rowley. Modeling of transitional channel flowusing balanced proper orthogonal decomposition. Physics of Fluids,20(034103), 2008.

[19] Mihailo R Jovanovic, Peter J Schmid, and Joseph W Nichols. Sparsity-promoting dynamic mode decomposition. Physics of Fluids (1994-present), 26(2):024103, 2014.

[20] J. N. Juang and R. S. Pappa. An eigensystem realization algorithmfor modal parameter identification and model reduction. Journal ofGuidance, Control, and Dynamics, 8(5):620–627, 1985.

[21] J. N. Juang, M. Phan, L. G. Horta, and R. W. Longman. Identificationof observer/kalman filter markov parameters: Theory and experiments.Technical Memorandum 104069 NASA, 1991.

[22] M. Keeling and P. Rohani. Modeling Infectious Diseases in Humansand Animals. Princeton University Press, 2008.

[23] M. J. Keeling and B. T. Grenfell. Disease extinction and communitysize: Modeling the persistence of measles. Science, 275(5296):65–67,1997.

Page 10: Dynamic mode decomposition with control - arXiv · whether control interventions have been applied (i.e. number of vaccinations in a spatial location in given time), DMDc discovers

10

[24] B. O. Koopman. Hamiltonian systems and transformation in hilbertspace. Proceedings of the National Academy of Sciences, 17(5):315–318, 1931.

[25] Fu Lin, Makan Fardad, and Mihailo R Jovanovic. Design of optimalsparse feedback gains via the alternating direction method of multipliers.Automatic Control, IEEE Transactions on, 58(9):2426–2431, 2013.

[26] I. Mezic. Spectral properties of dynamical systems, model reductionand decompositions. J. Nonlin. Dyn., 41:309–325, 2005.

[27] I. Mezic. Analysis of fluid flows via spectral properties of the Koopmanoperator. Annual Review of Fluid Mechanics, 45:357–378, 2013.

[28] L. Mirsky. Symmetric gauge functions and unitarily invariant norms.Quart. J. Math. Oxford, (11):50–59, 1960.

[29] B.C. Moore. Principal component analysis in linear systems: Con-trollability, observability, and model reduction. IEEE Transactions onAutomatic Control, AC-26(1), 1985.

[30] C. W. Rowley, I. Mezic, S. Bagheri, P. Schlatter, and D. S. Henningson.Spectral analysis of nonlinear flows. Journal of Fluid Mechanics,641:115–127, 2009.

[31] C.W. Rowley. Model reduction for fluids using balanced proper or-thogonal decomposition. Internation Journal of Bifurcation and Chaos,15(3):997–1013, 2005.

[32] H. Schaeffer, R. Caflisch, C. D. Hauck, and S. Osher. Sparse dynamicsfor partial differential equations. Proceedings of the National Academyof Sciences USA, 110(17):6634–6639, 2013.

[33] P. J. Schmid. Application of the dynamic mode decomposition toexperimental data. Experiments in Fluids, 50:1123–1130, 2011.

[34] P. J. Schmid, K. E. Meyer, and O. Pust. Dynamic mode decompositionand proper orthogonal decomposition of flow in a lid-driven cylindricalcavity. PIV09-0186, 8th International Symposium on Particle ImageVelocimetry, August 2009.

[35] P. J. Schmid, D. Violato, and F. Scarano. Decomposition of time-resolved tomographic PIV. Experiments in Fluids, 52:1567–1579, 2012.

[36] L. Sirovich. Turbulence and the dynamics of coherent structures, partsI-III. Q. Appl. Math., XLV(3):561–590, 1987.

[37] Gilles Tissot, Laurent Cordier, Nicolas Benard, and Bernd R Noack.Model reduction using dynamic mode decomposition. Comptes RendusMecanique, 2014.

[38] J. H. Tu, D. M. Luchtenburg, C. W. Rowley, S. L. Brunton, andJ. N. Kutz. On dynamic mode decomposition: theory and applications.submitted for publication, arXiv, 2013.

[39] J. H. Tu, C. W. Rowley, J. N. Kutz, and J. K. Shang. Spectral analysis offluid flows using sub-Nyquist rate PIV data. to appear in Experimentsin Fluids, 2014.

[40] K. Willcox and J. Peraire. Balanced model reduction via the properorthogonal decomposition. AIAA Journal, 40(11):2323–2330, 2002.

Joshua L. Proctor received the B.S.degrees in aeronautics and astronautics,the B.A. degree in english literaturefrom the University of Washington,Seattle, WA, in 2006, and the Ph.D.degree in mechanical and aerospaceengineering from Princeton University,

Princeton, NJ, in 2011. He is currently an Associate PrincipalInvestigator at the Institute for Disease Modeling.

Steven L. Brunton received the B.S.degree in mathematics with a minorin control and dynamical systems fromthe California Institute of Technology,Pasadena, CA, in 2006, and the Ph.D.degree in mechanical and aerospaceengineering from Princeton University,Princeton, NJ, in 2012. He is currentlyan Acting Assistant Professor of applied

mathematics at the University of Washington.

J. Nathan Kutz received the B.S. de-grees in physics and mathematics fromthe University of Washington, Seattle,WA, in 1990, and the Ph.D. degree inapplied mathematics from NorthwesternUniversity, Evanston, IL, in 1994. Heis currently a Professor and Chair ofapplied mathematics at the University ofWashington.