In data science, dynamic mode decomposition (DMD) is a dimensionality reduction algorithm developed by Peter J. Schmid and Joern Sesterhenn in 2008. Given a time series of data, DMD computes a set of modes, each of which is associated with a fixed oscillation frequency and decay/growth rate. For linear systems in particular, these modes and frequencies are analogous to the normal modes of the system, but more generally, they are approximations of the modes and eigenvalues of the composition operator (also called the Koopman operator). Due to the intrinsic temporal behaviors associated with each mode, DMD differs from dimensionality reduction methods such as principal component analysis (PCA), which computes orthogonal modes that lack predetermined temporal behaviors. Because its modes are not orthogonal, DMD-based representations can be less parsimonious than those generated by PCA. However, they can also be more physically meaningful because each mode is associated with a damped (or driven) sinusoidal behavior in time.
Overview Dynamic mode decomposition was first introduced by Schmid as a numerical procedure for extracting dynamical features from flow data. The data takes the form of a snapshot sequence
V1N={v1,v2,…,vN}, where vi∈ℝM is the i-th snapshot of the flow field, and V1N∈ℝM×N is a data matrix whose columns are the individual snapshots. These snapshots are assumed to be related via a linear mapping that defines a linear dynamical system
vi+1=Avi, that remains approximately the same over the duration of the sampling period. Written in matrix form, this implies that
V2N=AV1N−1+reN−1T, where r is the vector of residuals that accounts for behaviors that cannot be described completely by A, eN−1={0,0,…,1}∈ℝN−1, V1N−1={v1,v2,…,vN−1}, and V2N={v2,v3,…,vN}. Regardless of the approach, the output of DMD is the eigenvalues and eigenvectors of A, which are referred to as the DMD eigenvalues and DMD modes respectively.
Algorithm There are two methods for obtaining these eigenvalues and modes. The first is Arnoldi-like, which is useful for theoretical analysis due to its connection with Krylov methods. The second is a singular value decomposition (SVD) based approach that is more robust to noise in the data and to numerical errors.
The Arnoldi approach In fluids applications, the size of a snapshot, M, is assumed to be much larger than the number of snapshots N, so there are many equally valid choices of A. The original DMD algorithm picks A so that each of the snapshots in V2N can be expressed as linear combinations of the snapshots in V1N−1. Because most of the snapshots appear in both data sets, this representation is error free for all snapshots except vN, which is written as
vN=a1v1+a2v2+⋯+aN−1vN−1+r=V1N−1a+r, where a=a1,a2,…,aN−1 is a set of coefficients DMD must identify and r is the residual. In total,
V2N=AV1N−1+reN−1T=V1N−1S+reN−1T, where S is the companion matrix
S=(00…0a110…0a201…0a3⋮⋮⋱⋮⋮00…1aN−1). The vector a can be computed by solving a least squares problem, which minimizes the overall residual. In particular if we take the QR decomposition of V1N−1=QR, then a=R−1QTvN. In this form, DMD is a type of Arnoldi method, and therefore the eigenvalues of S are approximations of the eigenvalues of A. Furthermore, if y is an eigenvector of S, then V1N−1y is an approximate eigenvector of A. The reason an eigendecomposition is performed on S rather than A is because S is much smaller than A, so the computational cost of DMD is determined by the number of snapshots rather than the size of a snapshot.
The SVD-based approach Instead of computing the companion matrix S, the SVD-based approach yields the matrix S~ that is related to A via a similarity transform. To do this, assume we have the SVD of V1N−1=UΣWT. Then
V2N=AV1N−1+reN−1T=AUΣWT+reN−1T. Equivalent to the assumption made by the Arnoldi-based approach, we choose A such that the snapshots in V2N can be written as the linear superposition of the columns in U, which is equivalent to requiring that they can be written as the superposition of POD modes. With this restriction, minimizing the residual requires that it is orthogonal to the POD basis (i.e., UTr=0). Then multiplying both sides of the equation above by UT yields UTV2N=UTAUΣWT, which can be manipulated to obtain
UTAU=UTV2NWΣ−1≡S~. Because A and S~ are related via similarity transform, the eigenvalues of S~ are the eigenvalues of A, and if y is an eigenvector of S~, then Uy is an eigenvector of A. In summary, the SVD-based approach is as follows:
Split the time series of data in V1N into the two matrices V1N−1 and V2N. Compute the SVD of V1N−1=UΣWT. Form the matrix S~=UTV2NWΣ−1, and compute its eigenvalues λi and eigenvectors yi. The i-th DMD eigenvalue is λi and i-th DMD mode is the Uyi. The advantage of the SVD-based approach over the Arnoldi-like approach is that noise in the data and numerical truncation issues can be compensated for by truncating the SVD of V1N−1. As noted in accurately computing more than the first couple modes and eigenvalues can be difficult on experimental data sets without this truncation step.
Theoretical and algorithmic advancements Since its inception in 2010, a considerable amount of work has focused on understanding and improving DMD. One of the first analyses of DMD by Rowley et al. established the connection between DMD and the Koopman operator, and helped to explain the output of DMD when applied to nonlinear systems. Since then, a number of modifications have been developed that either strengthen this connection further or enhance the robustness and applicability of the approach.
… excerpt ends here. Continue reading the full article.





