On the Structure of Time-delay Embedding in Linear Models of Non-linear Dynamical Systems

Shaowu Pan, Karthik Duraisamy

I Introduction

Time-delay embedding, also known as delay-coordinate embedding, refers to the inclusion of history information in dynamical system models. This idea has been employed in a wide variety of contexts including time series modeling Chen and Billings (1989); Hegger, Kantz, and Schreiber (1999), Koopman operators Arbabi and Mezic (2017); Arbabi and Mezić (2017); Kamb et al. (2018); Brunton et al. (2017) and closure modeling Pan and Duraisamy (2018a). The use of delays to construct a “rich" feature space for geometrical reconstruction of non-linear dynamical systems is justified by the Takens embedding theorem Takens (1981) which states that by using a delay-coordinate map, one can construct a diffeomorphic shadow manifold from univariate observations of the original system in the generic sense, and its extensions in a measure-theoretic sense Sauer, Yorke, and Casdagli (1991), filtered memory Sauer, Yorke, and Casdagli (1991), deterministic/stochastic forcing Stark et al. (2003a, b), and multivariate embeddings Deyle and Sugihara (2011).

Time delay embedding naturally arises in the representation of the evolution of partially observed states in dynamical systems. As an illustrative example, consider a NN-dimensional linear autonomous discrete dynamical system with QQ partially observed (or resolved) states, Q<NQ<N:

Leveraging delay coordinates to construct predictive models of dynamical systems has been a topic of great interest. As an example, such models have been studied extensively in the time series analysis community via the well-known family of autoregressive and moving average (ARMA) models Box et al. (2015). In the machine learning community, related ideas are used in feedforward neural networks (FNN) that augment input dimensions with time delays Frank, Davey, and Hunt (2001), time-delay neural networks (TDNN) Lang, Waibel, and Hinton (1990); Peddinti, Povey, and Khudanpur (2015); Bromley et al. (1994) that statically perform convolutions in time, and the family of recurrent neural networks (RNN) Goodfellow et al. (2016) that dynamically perform non-linear convolutions in time Ma, Wang et al. (2018). In a dynamical systems context, time delays are leveraged in higher order or Hankel Dynamic Mode Decomposition Le Clainche and Vega (2017a); Arbabi and Mezic (2017); Brunton et al. (2017). Although in essence, each community relies on approximations with time-delays, the focus is typically on different aspects: the time series community focuses on stochastic problems, and prefer explicit and interpretable models Box et al. (2015); the machine learning community is typically more performance-driven and focuses on minimizing the error and scalability Peddinti, Povey, and Khudanpur (2015); the dynamical systems community is focused on the regulated, continuous dynamical system and interpretability of temporal behavior in terms of eigenvalues and eigenvectors Kaiser, Kutz, and Brunton (2018). Moreover, the scientific computing community emphasizes very high dimensional settings, as exemplified by fluid dynamics.

A relevant and outstanding question in each of the aforementioned contexts is the following: Given time series data from a non-linear dynamical system, how much memory is required to accurately recover the underlying dynamics, given a model structure? The memory can be characterized by the two hyperparameters, namely the number of time delays and the corresponding data sampling intervals, if uniformly sampled. Takens embedding theorem Takens (1981) proved the generic existence of a time delayed system with L=2nboxL=\lceil{2n_{box}}\rceil delays, where (nboxn_{box} is box counting dimension of the attractor, given the model has enough non-linearity to approximate the diffeomorphism. However, the question of how to determine the number of time delays and sampling rate is not well-addressed. Given nboxn_{box} as the box counting dimension of the attractor, the number of required time delays Ltakens=2nboxL_{takens}=\lceil{2n_{box}}\rceil is rather conservative Gilmore and Lefranc (2003). For example, it is both well known in practice and shown analytically Pan and Duraisamy (2018a), that a typical chaotic Lorenz attractor with box counting dimension 2.06\approx 2.06 McGuinness (1983) can be well embedded with L=2L=2, i.e., an equivalent 3D time delay system, while L=4L=4 is required from Takens embedding theorem.

However, other than acknowledging a diffeomorphism, the Takens embedding theorem does not posit any constraints on the mapping from time delay coordinates to the original system state. Clearly, the required number of time delays depends on the richness (non-linearity) of the embedding. In general, for nonlinear models, the determination of the time delays becomes a problem of phase-space reconstruction Frank, Davey, and Hunt (2001); Abarbanel et al. (1993). Popular methods include the false nearest neighbor method Kennel, Brown, and Abarbanel (1992), singular value analysis Broomhead and Jones (1989), averaged mutual information Sugihara, Grenfell, and May (1990), saturation of system invariants Abarbanel et al. (1993), box counting methods Sauer and Yorke (1993), correlation integrals Kim, Eykholt, and Salas (1999), standard model selection techniques Cao (1997), and even reinforcement learning Liu, Ng, and Quek (2007). On the other hand, for linear models, criteria based on statistical significance such as the model utility F-test Lomax and Hahs-Vaughn (2013) or information theoretic techniques such as AIC/BIC Box et al. (2015) are used. The use of the partial autocorrelation in linear autoregressive (AR) models to determine the number of delays can be categorized as a model selection approach. It should be mentioned that by treating the models as a black-box, a general approach such as cross validation can be leveraged.

When the sampling rate is fixed, the question of the number of time delays required should not be confused with the length of statistical dependency between the present and past states on the trajectory. For example, an AR(2) model can have a long time statistical dependency, but the number of time delays in the model may be very small. Indeed, it has been explicitly shown Pan and Duraisamy (2018a) that for a non-linear dynamical system with dual linear structure, embedding the memory in a dynamic fashion requires a much smaller number of delays compared to a prescribed static model structure Gouasmi, Parish, and Duraisamy (2017).

From the viewpoint of discovering the dynamics of a partially observed system, the goal is to determine the non-linear convolution operator Chorin and Hald (2014); Gouasmi, Parish, and Duraisamy (2017) or the so-called closure dynamics Pan and Duraisamy (2018a). It has to be recognized that the number of time delays will also be dependent on the specific structure of the model. The interchangeability between the number of distinct observables and the number of time delays is also reflected in Takens’ original work on the embedding theorem Takens (1981). Such interchangeability with the latent space dimension is also explored in closure dynamics Pan and Duraisamy (2018a); Gouasmi, Parish, and Duraisamy (2017); Parish, Wentland, and Duraisamy (2018) and recurrent neural networks Goodfellow et al. (2016). Since the required number of delays is strongly dependent on the model structure, it is prudent to first narrow down to a specific type of model, and then determine the delays needed.

The connection between time delay embedding and the Koopman operator is elucidated by Brunton et al. Brunton et al. (2017). Further theoretical investigations were conducted by Arbabi and Mezić Arbabi and Mezic (2017). For an ergodic dynamical system, assuming that the observable belongs to a finite-dimensional Koopman invariant subspace H\mathcal{H}, they showed that Hankel-DMD, a linear model (first proposed and connected to ERA Juang and Pappa (1985)/SSA Vautard, Yiou, and Ghil (1992) by Tu et al. Tu et al. (2014)), can provide an exact representation of the Koopman eigenvalues and eigenfunctions in H\mathcal{H}. This pioneering work, together with several numerical investigations on the application of Hankel-DMD to non-linear dynamical systems Champion, Brunton, and Kutz (2019); Le Clainche and Vega (2017a); Brunton et al. (2017) and theoretical studies on time-delayed observables using singular value decomposition (SVD) Kamb et al. (2018) highlight the ability of linear time delayed models to represent non-linear dynamics. From a heuristic viewpoint, SVD has been demonstrated Broomhead and Jones (1989); Broomhead and King (1986); Gibson et al. (1992) to serve as a practical guide to determine the required number of time delays and sampling rate, for linear models.

It should be noted that much of the literature Tu et al. (2014); Schmid (2010); Brunton, Proctor, and Kutz (2013) related to DMD and Hankel-DMD consider SVD projection either in the time delayed dimension (e.g. singular spectrum analysis) or the state dimension. SVD can provide optimal linear coordinates to maximize signal-to-noise ratio Gibson et al. (1992), and thus promote robustness and efficiency. On the other hand, projection via Fourier transformation enables the possibility of additional theoretical analysis. For instance, Fourier-based analysis of the Navier–Stokes equations include non-linear triadic wave interactions Pope (2000) and decomposition into solenoidal and dilatational components Pan and Johnsen (2017). Pertinent to the present work, ergodic systems characterized by periodic or quasi-periodic attractors have been shown to be well approximated by Fourier analysis Schilder et al. (2006); Rowley et al. (2009); Mezić (2005). Fourier analysis has also been employed to approximate the transfer function to obtain an intermediate discrete-time reduced order model with stability guarantees for very large scale linear systems Willcox and Megretski (2005); Gugercin and Willcox (2008). For general phase space reconstruction, asymptotic decay rates from Fourier analysis have been leveraged to infer appropriate sampling intervals and number of delays Lipton and Dabke (1996). We thus leverage a Fourier basis representation to uncover the structure of time delay embeddings in linear models of non-linear dynamical systems. We also address related issues of numerical conditioning. It should be emphasized that this work is purely concerned with deterministic linear models and noise free data. It can also be shown that SVD becomes equivalent to Fourier analysis in the limit of large windows Gibson et al. (1992).

The manuscript is organized as follows: The problem formulation and model structure is presented in Section II. Following this, the Fourier transformation of the problem and main theoretical results regarding the minimal time delay embedding for both scalar and vector time series together with explicit, exact solutions of the delay transition matrix after Fourier transformation are presented in Sections III and IV. Modal decompositions related to the Koopman operator is described in Section V. Numerical implementation and theoretical results related to conditioning issues is presented and verified numerically in Section VI, while applications on several nonlinear dynamical systems are displayed in Section VII. The main contributions of the work are summarized in Section VIII.

II Linear model with time-delay embedding

Consider a continuous autonomous dynamical system,

Given MM snapshots, the goal is to determine the weight matrices that result in the best possible approximation x^j+1\mathbf{\hat{x}}_{j+1} to the true future state xj+1\mathbf{x}_{j+1} in a priori L2L_{2} sense, i.e.,

The analytical solution of the above optimization in Equations 5 and 6 is simply the pseudoinverse with SVD Schmid (2010), with trunctation for robustness. However, straightforward SVD computation of the LL time-delay matrix for large-scale dynamical systems, e.g., fluid flows JO(106)J\sim O(10^{6}) with LO(102)L\sim O(10^{2}), is challenging. It is therefore prudent to perform spatial truncation using the SVD computed from {xj}j=0M1\{\mathbf{x}_{j}\}_{j=0}^{M-1} that reduces the dimension from JJ to rr (rJr\ll J and rmin(J,M)r\leq\min(J,M)) and then perform the above optimizations with LL time-delays on the rr-dimensional system Le Clainche and Vega (2017a).

Consider a scalar non-linear periodic trajectory,

where tt\in. Figure 1 shows the result of a posteriori prediction using a linear model with L=1L=1 and L=12L=12 trained only on tt\in with 60 uniform samples. Considering that training data in the above example only covers [0.6,1.8][0.6,1.8], the prediction of the trajectory over [0.9,1.8][-0.9,1.8], maybe somewhat surprising. Although the increased expressiveness with time delay embedding have been reported Kutz et al. (2016); Le Clainche and Vega (2017a), reported investigations of the ability of temporal extrapolation are mostly empirical Le Clainche and Vega (2017b); Beltrán, Le Clainche Martinez, and Vega (2018). Note that popular non-linear models, e.g., neural network-based models Pan and Duraisamy (2018b, 2020), despite their property of universal approximation This problem can be viewed as an example of no free lunch theorem Wolpert and Macready (1997), are trustworthy only within the range of training data. In the present context, this means they are only suitable when training data approximately covers the whole data distribution.

II.2 Projection of the trajectory on a Fourier basis

With the simplifications in Section II.1, we consider a surrogate signal of x(t)x(t): SM(t)S_{M}(t)

which is obtained by projecting x(t)\mathbf{x}(t) on the following linear space HF\mathcal{H}_{F}

which is spanned by the Fourier basis in Equation 10 with test functions as delta functions as δ(ttk),kIM\delta(t-t_{k}),k\in\mathcal{I}_{M}. This process is equivalent to the discrete Fourier transform (DFT).

The above procedure naturally represents the uniformly sampled trajectory in the time domain {xk}k=0M1\{x_{k}\}_{k=0}^{M-1} using coefficients in the frequency domain {ai}i=0M1\{a_{i}\}_{i=0}^{M-1}. Since we consider real signals, {ai}i=0M1\{a_{i}\}_{i=0}^{M-1} possess reflective symmetry: iIM\forall i\in\mathcal{I}_{M}, Re(ai)=Re(aMi)\textrm{Re}(a_{i})=\textrm{Re}(a_{M-i}), Im(ai)+Im(aMi)=0\textrm{Im}(a_{i})+\textrm{Im}(a_{M-i})=0, where Re and Im represent the real and imaginary part of a complex number. In addition, since TT is the smallest period by definition, we must have a1=aM10a_{1}=\overline{a_{M-1}}\neq 0. Further, since F\mathbf{F} is smooth, the flow ϕt(x0)=x(t)\phi_{t}(\mathbf{x}_{0})=\mathbf{x}(t) is also smooth in tt Nijmeijer and Van der Schaft (1990). Thus, the error in the Fourier interpolation is uniformly bounded by twice the sum of the absolute value of truncated Fourier coefficients Boyd (2001). This leads to the uniform convergence

Hence, one can easily approximate the original periodic trajectory uniformly to the desired level of accuracy by increasing MM above a certain threshold.

III The structure of time delay embedding for scalar time series

to construct the LL time-delay vector Yk\mathbf{Y}_{k},

where kIMk\in\mathcal{I}_{M}, \left\lfloor\cdot\right\rfloor is the floor function. Considering Fourier interpolation, we have

which is also true for q∉IMq\not\in\mathcal{I}_{M}

Using Equation 8, we can rewrite the LL time-delay vector Yk\mathbf{Y}_{k} in Equation 13 in the Fourier basis as

The problem of the minimal time delay required for the linear model with LL time delays in Equation 4 to perfectly predict the data {xk}k=0M1\{x_{k}\}_{k=0}^{M-1} is equivalent to the existence of the delay transition matrix K\mathbf{K} such that,

For convenience, we vertically stack Equation 17 kIM\forall k\in\mathcal{I}_{M},

where YM[Y0Y1YM2YM1],\mathbf{Y}_{M}\triangleq\begin{bmatrix}\mathbf{Y}_{0}^{\top}\\ \mathbf{Y}_{1}^{\top}\\ \vdots\\ \mathbf{Y}_{M-2}^{\top}\\ \mathbf{Y}_{M-1}^{\top}\end{bmatrix}, xM[x1x2xM1x0].\mathbf{x}_{M}\triangleq\begin{bmatrix}x_{1}\\ x_{2}\\ \vdots\\ x_{M-1}\\ x_{0}\end{bmatrix}.

In the following subsections, we discuss the minimal number of required time delays, the exact solution of K\mathbf{K} and the number of samples required on the time domain.

Our goal is to determine the minimal number of time delays LL, such that there exists a matrix K\mathbf{K} that satisfies the linear system Equation 17. Given one period of data, we can transform the system from the time domain to the spectral domain. Consider Equations 16 and 18, then Equation 20 is equivalent to the following, kIM\forall{k}\in\mathcal{I}_{M}:

We define the residual matrix R\mathbf{R} as,

Given one period of data, we vertically stack the above equation for each kIMk\in\mathcal{I}_{M}. Recognizing the non-singular nature of a Vandermonde square matrix with distinct nodes, we have

The feasibility of using the number of time delays LL to ensure the existence of a real solution K\mathbf{K} for the linear system is equivalent to the existence of the linear system R=0\mathbf{R}=\mathbf{0} after removing the rows that correspond to zero Fourier modes in R\mathbf{R}, denoted as RIMP\mathbf{R}_{\mathcal{I}_{M}^{P}},

Before presenting the main theorem Theorem 1, we define the Vandermonde matrix in Definition 1 and introduce Lemma 1 and Lemma 2.

rank(A)=min(M,N)\operatorname{rank}(\mathbf{A})=\min(M,N),

For a uniform sampling of SM(t)S_{M}(t) with length MM and PP non-zero coefficients in the Fourier spectrum, the minimal number of time delays LL for a perfect prediction, i.e., one that satisfies Equation 20 is P1P-1. Moreover, when L=P1L=P-1, the solution is unique.

From the above Theorem 1, we can easily derive Propositions 1 and 2 that are intuitive.

If there is only one frequency in the Fourier spectrum of SM(t)S_{M}(t), simply one time delay in the linear model is enough to perfectly recover the signal.

If the Fourier spectrum of SM(t)S_{M}(t) is dense, then the maximum number of time delays, i.e., over the whole period M1M-1 is necessary to perfectly recover the signal.

In retrospect, the result of the minimal number of time delays for a scalar time series is rather intuitive: any scalar signal with RR frequencies corresponds to a certain observable of a 2R2R-dimensional linear system. Since more time delays in linear model increases the number of eigenvalues in the corresponding linear system, one requires a minimum of L=2R1=P1L=2R-1=P-1 to match the number of eigenvalues.

III.2 Exact solution for the delay transition matrix 𝐊𝐊\mathbf{K}

Two interesting facts have to be brought to the fore:

From Equation 28, it is clear that K\mathbf{K} is independent of the quantitative value of the Fourier coefficients, but only depends on the pattern in the Fourier spectrum.

For L=P1L=P-1, AIMP,L\mathbf{A}_{\mathcal{I}_{M}^{P},L} is an invertible Vandermonde matrix, which implies the uniqueness of the solution K\mathbf{K}.

Consider the general explicit formula for the inverse of a Vandermonde matrix Petersen, Pedersen et al. (2008). Note that AIMP,P1=VP(ωi0,,ωiP1)\mathbf{A}_{\mathcal{I}_{M}^{P},P-1}=\mathbf{V}_{P}(\omega^{-i_{0}},\ldots,\omega^{-i_{P-1}}).

where 1m,nP1\leq m,n\leq P and KmKm1\mathbf{K}_{m}\equiv K_{m-1}.

Despite the explicit form, the above expression is not useful in practice. Without loss of generality, considering PP is even, the computational complexity at least grows as (PP/2)\binom{P}{P/2}. As an example, for a moderate system with 50 non-sparse modes, (5025)1.2×1014\binom{50}{25}\approx 1.2\times 10^{14}.

III.3 Eigenstructure of the companion matrix

The eigenstructure of the companion matrix formed with time delays is closely related to the Koopman eigenvalues and eigenfunctions under ergodicity assumptions Arbabi and Mezic (2017). From the viewpoint of HAVOK Brunton et al. (2017), for a general time delay LL, the corresponding Koopman eigenvalues are eigenvalues of the companion matrix Kcomp\mathbf{K}_{comp} defined as Yk+1=YkKcomp\mathbf{Y}^{\top}_{k+1}=\mathbf{Y}^{\top}_{k}\mathbf{K}_{comp}, where

The corresponding eigenvalues satisfy det(λIKcomp)=0\det(\lambda\mathbf{I}-\mathbf{K}_{comp})=0, i.e., λL+1K0λLKL=0.\lambda^{L+1}-K_{0}\lambda^{L}-\ldots-K_{L}=0. The corresponding eigenstructure is fully determined by the eigenvalues Drmac, Mezic, and Mohr (2019), λ0,,λL\lambda_{0},\ldots,\lambda_{L}, i.e., Kcomp=Q1ΛQ\mathbf{K}_{comp}=\mathbf{Q}^{-1}\mathbf{\Lambda}\mathbf{Q}, where Λ=diag(λ0,,λL)\mathbf{\Lambda}=\operatorname{diag}(\lambda_{0},\ldots,\lambda_{L}), Q=VL+1(λ0,,λL)\mathbf{Q}=\mathbf{V}_{L+1}(\lambda_{0},\ldots,\lambda_{L}).

Note that ωM=1\omega^{-M}=1 and P=MP=M. Consider L=P1=M1L=P-1=M-1, so that the last column of AIMP,LA_{\mathcal{I}^{P}_{M},L} becomes

Therefore, the unique solution can be found from observations as

The companion matrix Arbabi and Mezic (2017) associated with the Koopman operator is in the form of a special circulant matrix Meyer (2000), for which analytical eigenvalues and eigenvectors can be easily determined. In Equation 33, we have

which has eigenvalues evenly distributed on the unit circle

III.4 Analysis in the time domain

Projection of the trajectory onto a Fourier basis implies that at least one period of training data has to be obtained to be able to construct a linear system that has a unique solution corresponding to K\mathbf{K}^{*}. However, we will show that in the time domain, a full period of data is not necessary to determine the solution K\mathbf{K}^{*} if the Fourier spectrum is sparse.

Consider a Fourier transform and recall Equation 22. Choosing kk over k0,,kQ1k_{0},\ldots,k_{Q-1}, the above equation can be equivalently rewritten as

Recall that only PP Fourier coefficients are non-zero, and thus the above equation that constrains K\mathbf{K} equivalently becomes

Since {ωkj}j=0Q1\{\omega^{k_{j}}\}_{j=0}^{Q-1} are distinct from each other, from Lemma 1, rank(VP(ωk0,,ωkQ1))=min(P,Q)\textrm{rank}(\mathbf{V}_{P}(\omega^{k_{0}},\ldots,\omega^{k_{Q-1}}))=\min(P,Q). Therefore, if we choose to have training data points no less than the number of non-zero Fourier coefficients, i.e., QPQ\geq P, then VP(ωk0,,ωkQ1)\mathbf{V}_{P}(\omega^{k_{0}},\ldots,\omega^{k_{Q-1}}) is full rank, which leads to RIMP=0\mathbf{R}_{\mathcal{I}_{M}^{P}}=\mathbf{0}. Meanwhile, the solution K\mathbf{K} is uniquely determined given L=P1L=P-1. Therefore, given QPQ\geq P,

For the case with minimal number of data samples, i.e., Q=PQ=P, a natural choice is to construct PP rows of the future state from the PP-th to 2P12P-1-th rows in Equation 20. In the above setting, in order to construct the linear system in time domain that has the unique solution K\mathbf{K}^{*} of Equation 28, we only require access to the first 2P2P snapshots of data. The key observation is that when the signal is sparse, instead of constructing the classic unitary DFT matrix (Equation 25 to Equation 26), a random choice of PP rows will be sufficient to uniquely determine a real solution K\mathbf{K}^{*}. It has to be mentioned, however, that randomly chosen data points might not be optimal. For example, in Equation 41, the particular choice of sampling (i.e. the choice of QQ rows), will determine the condition number of the complex Vandermonde matrix VP(ωk0,,ωkQ1)\mathbf{V}_{P}(\omega^{k_{0}},\ldots,\omega^{k_{Q-1}}). The necessary and sufficient condition for perfect conditioning of a Vandermonde matrix is when {ωkj}j=0Q1\{\omega^{k_{j}}\}_{j=0}^{Q-1} are uniformly spread on the unit circle Berman and Feuer (2007).

At first glance, our work might appear to be in the same vein as compressed sensing (CS) Donoho (2006); Candes and Tao (2006) where a complete signal is extracted from only a few measurements. However, it should be emphasized that CS requires random projections from the whole field to extract information about a broadband signal in each measurement, while we simply follow the setup in modeling dynamical systems where only deterministic and sequential point measurements are available, and limited to a certain time interval.

Moreover, the above instance of accurately recovering the dynamical system without using a full period of data on the attractor is also reported elsewhere, for instance in sparse polynomial regression for data-driven modeling of dynamical systems Champion, Brunton, and Kutz (2019). Indeed, this is one of the key ideas behind SINDy Brunton, Proctor, and Kutz (2016): one can leverage the prior knowledge of the existence of a sparse representation (for instance, in a basis of monomials), such that sparse regression can significantly reduce the amount of data required with no loss of information.

IV Extension of the analysis to the vector case

In this section, we extend the above analysis to the case of a vector dynamical system. Assuming the state vector has JJ components, given the time series of ll-th component, {xk(l)}k=0M1\{x^{(l)}_{k}\}_{k=0}^{M-1}, l=1,,Jl=1,\ldots,J, we have, kIM\forall k\in\mathcal{I}_{M}

where Yk(l)\mathbf{Y}^{(l)}_{k} are the LL time-delay embeddings defined in Equation 13 for the ll-th component of the state. In the present work, we treat the time-delay uniformly across all components.

The existence of the above solution is equivalent to the following relationship,

Next, with the introduction of the Krylov subspace in Definition 2 which frequently appears in the early literatures of DMD Rowley et al. (2009); Schmid (2010), we present Remark 1 and Remark 2 from Lemma 3 that interprets and reveals the possibility of using less embeddings than the corresponding sufficient condition for the scalar case in Theorem 1.

For j=1,,Jj=1,\ldots,J, define c(j)diag(a(j))bIMM\mathbf{c}^{(j)}\triangleq\operatorname{diag}(\mathbf{a}^{(j)})\mathbf{b}_{\mathcal{I}_{M}^{M}}, and EL(j)\mathcal{E}_{L}^{(j)} as the column space of diag(a(j))AIMM,L\operatorname{diag}(\mathbf{a}^{(j)})\mathbf{A}_{\mathcal{I}_{M}^{M},L}. The existence of the solution in Lemma 3 is then equivalent to

where WL\mathcal{W}_{L} is the column space from all components, and \oplus is the direct sum operation between vector spaces. Note that the column space of AIMM,L\mathbf{A}_{\mathcal{I}_{M}^{M},L} can represented as a Krylov subspace KL+1(Λ1,e)\mathcal{K}_{L+1}(\mathbf{\Lambda}^{-1},\mathbf{e}), where

A geometric interpretation of the above expressions is shown in Figure 2: for each jj, bIMM=Λ(M1)e\mathbf{b}_{\mathcal{I}_{M}^{M}}=\mathbf{\Lambda}^{-(M-1)}\mathbf{e} and e\mathbf{e} are projected, stretched and rotated using the jj-th Fourier spectrum diagonal matrix diag(a(j))\operatorname{diag}(\mathbf{a}^{(j)}) yields EL(j)\mathcal{E}_{L}^{(j)} and its total column subspace WL\mathcal{W}_{L}. If all of the projected and stretched bM\mathbf{b}_{M}’s are contained in WL\mathcal{W}_{L}, a real solution exists for Equation 45. Notice that in Equation 50, ij\forall i\neq j, EL(i)\mathcal{E}_{L}^{(i)} expands the column space EL(j)\mathcal{E}_{L}^{(j)} to include c(j)\mathbf{c}^{(j)}. Thus, the minimal number of time delays required in the vector case as in Equation 45 can be smaller than that of the scalar case.

The vector case involves the interaction between the JJ different Fourier spectra corresponding to each component of the state. This complicates the derivation of an explicit result for the minimal number of time delays as in the scalar case (Theorem 1). We note two important observations that illustrate the impact of the interplay between the JJ Fourier spectra:

To ensure c(j)\mathbf{c}^{(j)} lies in WL\mathcal{W}_{L}, each EL(j)\mathcal{E}_{L}^{(j)} should provide distinct vectors to maximize the dimension of WL\mathcal{W}_{L}. If a linear dependency is present in {a(j)}j=1J\{\mathbf{a}^{(j)}\}_{j=1}^{J}, Equation 50 no longer holds.

Since c(j)\mathbf{c}^{(j)} is projected using diag(a(j))\operatorname{diag}(\mathbf{a}^{(j)}), if a(i)a(j)=0\mathbf{a}^{(i)\top}\mathbf{a}^{(j)}=0, EL(i)\mathcal{E}_{L}^{(i)} will not contribute to increasing the dimension of WL\mathcal{W}_{L}.

Drawing insight from the representation of the column space of AIMM,L\mathbf{A}_{\mathcal{I}_{M}^{M},L} as the Krylov subspace in Remark 1, we present a connection between the output controllability from linear system control theory Kreindler and Sarachik (1964), and the number of time delays required for linear models in a general sense.

Recall that the necessary and sufficient condition Kreindler and Sarachik (1964); Gruyitch (2018) for a linear system to be output controllable is given in Definition 4. A natural definition for the output controllability index that is similar to the controllability and observability index is given in Definition 5. We summarize the conclusion in Theorem 2 that the output controllability index minus one is a tight upper bound for the number of time delays required for the linear model in the general sense. We again emphasize that the particular linear system with input and output in Theorem 2 is solely induced by the Fourier spectrum of the nonlinear dynamical system on the attractor.

The system in Equations 53 and 54 is output controllable if and only if OC(A,B,C,D;M)[CBCABCAM1BD]\mathcal{OC}(\mathbf{A,B,C,D};M)\triangleq\begin{bmatrix}\mathbf{CB}&\mathbf{CAB}&\ldots&\mathbf{CA}^{M-1}\mathbf{B}&\mathbf{D}\end{bmatrix} is full rank. Note that when D=0\mathbf{D}=\mathbf{0}, we omit D\mathbf{D} in the notation.

For any matrix A\mathbf{A} that is a horizontal stack of diagonal matrices, the row elimination matrix E\mathbf{E} that removes any row that is a zero vector leads to a full rank matrix with the rank of original matrix. Moreover, EEA=A\mathbf{E^{\top}EA}=\mathbf{A}.

Following definitions in Equations 51 and 52, consider the following induced linear dynamical system with output controllability index μ\mu:

V Dynamic mode decomposition of a linear model with time-delays

If the trajectory data can be well approximated by a linear model with LL time-delays of the form in Equation 4, then one has the so-called high order dynamic mode decomposition Brunton et al. (2017); Le Clainche and Vega (2017a) for LkM2L\leq k\leq M-2,

Note that the above decomposition in Equation 59 reduces to the standard DMD when L=0L=0, i.e.,

where qi\mathbf{q}_{i} and {λik+1Lpix0}k=0M2\{\lambda_{i}^{k+1-L}\mathbf{p}^{\top}_{i}\mathbf{x}_{0}\}_{k=0}^{M-2} are sometimes referred to as the ii-th spatial modes and temporal modes respectively. With more time-delays LL, the maximal number of linear waves in the model increases with J(L+1)J(L+1). As a side note, the above modal decomposition can be interpreted as an approximation to the Koopman mode decomposition on the trajectory with LL time-delays as observables Brunton et al. (2017); Arbabi and Mezic (2017); Arbabi and Mezić (2017).

VI Verification and practical consideration

In this section, we start with a simple example and discuss practical numerical considerations.

First, an explicit time series consisting of five frequencies with a long period T=100T=100 is considered:

Such a signal may be realized, for instance, by observing the first component of a 10-dimensional linear dynamical system. The sampling rate is set at 1 per unit time, which is arbitrary and considered for convenience, and the signal is sampled for two periods from n=0n=0 to n=199n=199. Thus we have a discretely sampled time series of length 200 as {xn}n=0199\{x_{n}\}_{n=0}^{199} with xn=x(t)t=nx_{n}=x(t)|_{t=n}. Only the first 20% of the original signal is used, which is 40% of a full period with around 20 to 30 data points sampled. The variation in the number of data points is due to the fact that we fix the use of first 20% of trajectory, and then reconstruct the signal with a different number of time delays. We solve the least squares problem in the time domain with the iterative least squares solver scipy.linalg.lstsq Jones, Oliphant, and Peterson (2014) with lapack driver as gelsd, and cutoff for small singular values as 101510^{-15}.

The analysis in Theorem 1 implies that one can avoid using the full period of data for exact prediction. Numerical results are presented in Figure 3 with number of time delays L=9L=9. These results show that time delayed DMD, unlike non-linear models such as neural networks, avoid the requirement of a full period of data when the dynamics is expressible by a set of sparse harmonics. From Theorem 1, the 5-mode signal has P=10P=10 non-zero Fourier coefficients in the Fourier spectrum, and thus the least number of delays is L=P1=9L=P-1=9, which agrees well with Figure 3 which shows the a posteriori mean square error normalized by the standard deviation of the data , between prediction and ground truth. Figure 3 clearly shows that a sharp decrease of a posteriori error when the number of delays L=9L=9.

Now we will consider a different scenario. As explained earlier, linear time delayed models can avoid the use of a full period of data if there is enough information to determine the solution within the first PP states. Thus, if one increases the sampling rate, less data will be required to recover an accurate solution. However, one still needs to numerically compute the solution of a linear system, while the condition number grows with increasing sampling rates. As displayed in Figure 5, the condition number increases in both time and spectral domain formulations, with increasing sampling rate.

Using scipy.linalg.lstsq Jones, Oliphant, and Peterson (2014) and a time domain formulation, we found that there is no visual difference between the truth and a posteriori prediction when the condition number is below 101310^{13}, i.e., M300M\leq 300 in the spectral domain, or M200M\leq 200 in the time domain. However, as the condition number grows beyond 101310^{13} (i.e. machine precision noise of even 101610^{-16} can contaminate digits around 0.001), a posteriori prediction error can accumulate when M=400M=400 (Figure 4).

VI.2 Numerical considerations

In practical terms, one can pursue two general formulations to numerically compute the delay transition matrix K\mathbf{K} in Equation 5:

Formulation in time domain: If all available delay vectors and corresponding future states are stacked, the direct solution of Equation 5 is a least square problem in the time domain with the requirement of at least PP samples.

Formulation in spectral domain: In this approach, the Fourier signals from a full period of data is extracted and Equation 28 is numerically solved.

Consider signals that consist of a finite number of harmonics with the index set of Fourier coefficients as IMP\mathcal{I}_{M}^{P}. Since the first half of the indices i0,,iP/21i_{0},\ldots,i_{P/2-1} is determined by the inherent period of each harmonic, these indices are independent of the number of samples per period MM, as long as MM satisfies the Nyquist condition. It is thus tempting to choose a relatively large sampling rate. However, this may not be favorable from a numerical standpoint. When L=P1L=P-1 and the sampling rate is excessive compared to the potentially lower frequency dynamics of the system, each column could become nearly linearly dependent. We will now explore the circumstances under which the corresponding linear system in either the spectral or time domain can become ill-conditioned. It has to also be recognized that the denominator in Equation 32 consists of the difference between different nodes on the unit circle, and can therefore impact numerical accuracy.

The condition number of the Vandermonde matrix with complex nodes Equation 28 is also pertinent to the present discussion. It is well known that the condition number of a Vandermonde matrix grows exponentially with the order of matrix nn when the nodes are real positive or symmetrically distributed with respect to the origin Córdova, Gautschi, and Ruscheweyh (1990). When the nodes are complex, the numerical conditioning of a Vandermonde matrix can be as perfect as that of a DFT matrix, or as poor as that of the quasi-cyclic sequence Gautschi (1990). Specifically, it has been shown that a large square Vandermonde matrix is ill-conditioned unless its nodes are nearly uniformly spaced on or about the unit circle Pan (2016). Interestingly, for a rectangular Vandermonde matrix with nn nodes and order NN, i.e., VN(z1,,zn)\mathbf{V}_{N}(z_{1},\ldots,z_{n}), Kunis and Nagel Kunis and Nagel (2018) provided a lower bound on the 2-norm condition number of the Vandermonde matrix that contains “nearly-colliding" nodes:

VI.2.2 Sub-sampling within Nyquist limits

Equation 64 shows that the tight clustering of nodes due to excessive sampling can lead to ill-conditioning. A straightforward fix would thus be to filter out unimportant harmonics, and re-sample the signal at a smaller sampling rate that can still capture the highest frequency retained in the filtering process. In this way, the nodes can be more favorably redistributed on the unit circle. Recall that, if the complex nodes of the Vandermonde matrix are uniformly distributed on a unit circle, then one arrives at a perfect conditioning of the Vandermonde matrix with condition number of one similar to the DFT matrix Pan (2016). Without any loss of generality, we assume the number of samples per period MM is even. The wave numbers of sparse Fourier coefficients are denoted by IMP\mathcal{I}_{M}^{P}. The sorted wave numbers are symmetrical with respect to M/2M/2 and recall that the values of the first half of IMP\mathcal{I}_{M}^{P}, i.e., i0,,iP21i_{0},\ldots,i_{\frac{P}{2}-1} is independent of MM, as long as the Nyquist condition is satisfied Landau (1967). Then, a continuous signal x(t)x(t) is sub-sampled uniformly. Due to symmetry, the smallest number of samples per period MM^{*} that preserves the signal is 2(iP21+1)2(i_{\frac{P}{2}-1}+1).

VI.2.3 Effect of sampling rate, formulation domain, and numerical solver on model accuracy

To compare the impact of different solution techniques, we choose several off-the-shelf numerical methods to compute K\mathbf{K} in either the time domain or spectral domain. These methods include:

(i) mldivide from MATLAB MATLAB (2010), i.e., backslash operator which effectively uses QR/LU solver in our case;

(ii) scipy.linalg.lstsq Jones, Oliphant, and Peterson (2014), which by default calls gelsd from LAPACK Anderson et al. (1999) to solve the minimum 2-norm least squares solution with SVD, and an algorithm based on divide and conquer;

(iii) Björck & Pereyra (BP) algorithm Björck and Pereyra (1970) which is designed to solve the Vandermonde system exactly in an efficient way exploiting the inherent structure. For a n×nn\times n matrix, instead of the standard Gaussian elimination with O(n3)O(n^{3}) arithmetic operations and O(n2)O(n^{2}) elements for storage, the BP algorithm only requires n(n+1)(2OM+3OA)/2n(n+1)(2O_{M}+3O_{A})/2OAO_{A} and OMO_{M} denote addition/subtraction and multiplication/division. for arithmetic operations and no further storage than storing the roots and right hand side of the system.

As shown in Figure 5, the condition number increases exponentially with increasing number of samples per period MM, leading to a significant deterioration of accuracy. Comparing the time and spectral domain formulations, Figure 5 shows that the solution for the spectral case is more accurate than the time domain solution when the sampling rate is low. This is not unexpected as one would need to perform FFT on a full period of data to find the appropriate Fourier coefficients in the spectral case. When M>600M>600, however, the spectral domain solutions obtained by BP and mldivide algorithms blow up, while the time domain solution is more robust in that the error is bounded. Note that the singular value decomposition - in lstsq and in mldivide that removes the components of the solution in the subspace spanned by less significant right singular vectors - is extremely sensitive to noise. Further, from Equation 41, the difference between the formulations in the spectral and time domains can be attributed to VP(ωk0,,ωkQ1)\mathbf{V}_{P}(\omega^{k_{0}},\ldots,\omega^{k_{Q-1}}) and diag(ai0,,aiP1)\operatorname{diag}(a_{i_{0}},\ldots,a_{i_{P-1}}), which could be ill-conditioned. Thus, regularization in the time domain formulation is more effective. Figure 5 also shows that, when the system becomes highly ill-conditioned, i.e., M>600M>600, lstsq with thresholding ϵ=1015\epsilon=10^{-15} results in a more stable solution than mldivide.

It should be mentioned that the condition number computed in Figure 5 around the inverse of machine precision, i.e., O(1016)O(10^{16}), should be viewed in a qualitative rather than quantitative sense Drmac, Mezic, and Mohr (2019).

VI.2.4 Effect of the number of time delays L𝐿L on condition number

By adding more time delays than the theoretical minimum, the dimension of the solution space grows, along with the features for least squares fitting. Accordingly, the null space becomes more dominant, and thus one should expect non-unique solutions with lower residuals. Note that, for simplicity, the following numerical analysis assumes the scalar case, i.e., J=1J=1.

For the complex Vandermonde system in Equation 28, following Bazán’s work Bazán (2000), we discovered very distinct features of the asymptotic behavior of the solution, and the corresponding system in Equation 28 when the number of time delays LL\rightarrow\infty.

(i) The norm of the minimum 2-norm solution of Equation 28 K^L20\lVert\mathbf{\hat{K}}_{L}\rVert_{2}\rightarrow 0 , as shown in Proposition 3.

(ii) An upper bound for the convergence rate of K^L22\lVert\mathbf{\hat{K}}_{L}\rVert_{2}^{2} is derived in Lemma 5.

(iii) An upper bound on the 2-norm condition number of Equation 28 is shown in Proposition 4 to scale with 1+O(1/L)1+O(1/\sqrt{L}).

limLK^L2=0\displaystyle\lim_{L\rightarrow\infty}\lVert\mathbf{\hat{K}}_{L}\rVert_{2}=0, where K^L\mathbf{\hat{K}}_{L} is the minimum 2-norm solution of Equation 28.

LP1\forall L\geq P-1, denote K^L\mathbf{\hat{K}}_{L} as the minimum 2-norm solution of Equation 28. The following tight upper bound can be derived

Let PP be the number of non-zero Fourier coefficients. LP1\forall L\geq P-1, denote K^P1\mathbf{\hat{K}}_{P-1} as the unique solution of Equation 28. With the minimal number of time delays, the upper bound on the 2-norm condition number of the system is given by

Further, if LL\rightarrow\infty, then κ2(AIMP,L)1\kappa_{2}(\mathbf{A}_{\mathcal{I}_{M}^{P},L})\rightarrow 1, i.e., perfect conditioning is achieved.

Note that the bound in Proposition 4 does not demand a potentially restrictive condition on the number of time delays, i.e., L+1>2(P1)/δL+1>2(P-1)/\delta that is required in Bazán’s work, which utilizes the Gershgorin circle theorem for the upper bound of the 2-norm condition number Bazán (2000). More recently, this constraint has been defined in the context of the nodes being “well-separated" Kunis and Nagel (2018). Applying such a result to our case, we have

since we have an estimation for the convergence rate of the minimal 2-norm solution. However, although our upper bound in Proposition 4 holdsand is more general than Bazán’s upper bound Equation 69 for all LP1L\geq P-1, it is too conservative compared to Bazán’s upper bound when LL\rightarrow\infty. To see this, denote kmmini,jIMP,i,j{kk=(ij)modM}k_{m}\triangleq\min_{i,j\in\mathcal{I}_{M}^{P},i,\neq j}\{|k||k=(i-j)\bmod{M}\}, i.e., the minimal absolute difference between any pair of distinct indices in IMP\mathcal{I}^{P}_{M}, in the sense of modulo MM. Assuming that the number of samples per period is large enough so that M2πkmM\gg 2\pi k_{m}, we have δ=2[1cos(2πkm/M)]2πkm/M=O(1/M)\delta=\sqrt{2\left[1-\cos(2\pi k_{m}/M)\right]}\approx 2\pi k_{m}/M=O(1/M). If we assume that the system with time delay LL is far from being perfectly conditioned, we have κF(VL+1)P+2\kappa_{F}(\mathbf{V}_{L+1})\gg P+2, which leads to the following approximation for our upper bound,

Hence, for an excessively sampled case, if LL is small enough such that κF(VL+1)κ2(VL+1)P+2\kappa_{F}(\mathbf{V}_{L+1})\geq\kappa_{2}(\mathbf{V}_{L+1})\gg P+2 holds but large enough such that

then the approximated upper bound becomes

Meanwhile, when LL is very large, and thus δ(L+1)>2(P1)\delta(L+1)>2(P-1) is satisfied, Bazán’s bound in Equation 69 scales with 1+O(M/L)1+O\left(\sqrt{M}/\sqrt{L}\right) for L/M1L/M\gg 1. Thus, to retain the same upper bound of condition number, one only needs to increase the number of time delays at the same same rate as the sampling.

Figure 6 shows that the residuals from the least squares problem in both the time and spectral domains decrease exponentially with the addition of time delays. Further, the a posteriori MSE shows significant improvement with the addition of time delays.

Figure 7 shows the trend of the 2-norm condition number in both the time and spectral domains. The condition number decays exponentially in the spectral case, but increases in the time domain case. This appears to be contradictory since the condition number is typically reflective of the quality of the solution. However, since SVD regularization is implicit in scipy.linalg.lstsq with gelsd option, computing the 2-norm condition number in the same way as in the numerical solver, i.e., effective condition number i.e., SVD with the same thresholding (ϵ=1015\epsilon=10^{-15}) such that any singular value below ϵσmax\epsilon\cdot\sigma_{max} is removed is a more relevant measure of the quality of the solution of the SVD truncated system. Thus, the reasons for improved predictive accuracy are due to a) the increasing dimension of the solution space for a potentially under-determined system with more time delays, and b) the well conditioned system after SVD truncation as shown in Figure 7. The large condition number in the time domain with increasing number of delays is a result of the ill-conditioning of VP(ωk0,,ωkQ1)\mathbf{V}_{P}(\omega^{k_{0}},\ldots,\omega^{k_{Q-1}}) and diag(ai0,,aiP1)\operatorname{diag}(a_{i_{0}},\ldots,a_{i_{P-1}}) in Equation 42.

VI.2.5 Effect of subsampling on model performance

As indicated in Remark 3, reducing the number of samples per period MM is shown to decrease the upper bound on the condition number. For a given signal, however, there is a restriction on the minimum possible MM compared to the number of time delays LL. In the above case for the 5-mode sine signal, iP21=12i_{\frac{P}{2}-1}=12, and thus the minimal sampling per period that one can use to perfectly preserve the original signal in the subsampling is M=26M=26. The condition number with MM ranging from 2626 to 9898 is shown in Figure 8. This shows the effectiveness of subsampling in reducing the condition number significantly. Correspondingly, the a posteriori normalized MSE is also reduced as shown in Figure 8.

The previous two subsections demonstrated the role of numerical conditioning on model performance. We note that explicit stabilization techniques Le Clainche and Vega (2017a); Champion, Brunton, and Kutz (2019) require further investigation.

VI.3 Issues in large-scale chaotic dynamical systems

Lnear time delayed models have been investigated for chaotic dynamics on an attractor (for instance, Brunton et al. (2017)). The main challenges are two fold: a) Chaotic systems may require an infinite number of waves to resolve the continuous Koopman spectrum Mezić (2005), and b) Practical chaotic systems of interest in science and engineering science are large-scale. For example, realistic fluid flow simulations, may be very large even after dimension reduction, especially for advection-dominated problems Lee and Carlberg (2020). This would further limit the expressiveness of linear models with time delay.

To illustrate this, consider dimension reduction using SVD on the trajectory data {xj}j=0M1\{\mathbf{x}_{j}\}_{j=0}^{M-1}. One can extract a reduced rr-dimensional trajectory, {x^j}j=0M1\{\hat{\mathbf{x}}_{j}\}_{j=0}^{M-1}, i.e.,

Recalling Equations 5 and 6, we have a similar analytic SVD-DMD solution on the time delay data matrix of the reduced rr-dimensional system, i.e.,

with the following rr^{{}^{\prime}}-SVD regularization purely for numerical robustness

where Urqi\mathbf{U}_{r}\mathbf{q}_{i} and {λik+1LpihL}k=0M2\{\lambda_{i}^{k+1-L}\mathbf{p}^{\top}_{i}\mathbf{h}_{L}\}_{k=0}^{M-2} are the spatial and temporal modes respectively.

Now we can describe the constraints on the maximal number of modes in the linear model rr^{{}^{\prime}} from the time delay LL. From the restrictions on matrix rank, we have

as illustrated in Figure 9. Clearly, we see the maximal number of waves rr^{{}^{\prime}} stops increasing after the time delay LL surpasses the intersection point where L=Mr+11L_{*}=\frac{M}{r+1}-1, r=rr+1Mr^{{}^{\prime}}_{*}=\frac{r}{r+1}M. This relation indicates that keeping more POD modes in the dimension reduction increases the upper limit of the number of waves in the resulting linear models. The corresponding time delay would decrease with respect to the peak. Interestingly, for L>Mr+11L>\frac{M}{r+1}-1, called “overdelay", might yield an underdetermined linear system as in Equation 6. For example, we can choose Lopt=Mr+1L_{opt}=\lceil{\frac{M}{r+1}}\rceil. The solution of that system would, however, result in a least square residual near machine precision, leading to overfitting even in a posteriori sense. Note that practical problems may require denoising on the trajectory data.

VII Applications

Now we consider the Van der Pol oscillator (VdP) with forward Euler time discretization:

where μ=2\mu=2, x10=1x_{1}^{0}=1, x20=0x_{2}^{0}=0, Δt=0.01\Delta t=0.01. After 530 time steps, the system approximately falls on the attractor with an approximate period of 776 steps. Total data is collected after the system falls on the attractor for 4 periods.

As shown in Figure 10, Fourier spectrum for each component of VdP system shows that the exhibition of an approximate sparse spectrum with P=10P=10 and P=18P=18 for x1x_{1} and x2x_{2} respectively. As indicated from Theorem 1, the corresponding time delay and minimal sampling rate is summarized in Table 1.

From Table 1, it is clear that the smallest number of samples per period is significantly smaller than the original number of samples per period, i.e., M=776M=776. The analysis in the previous section also showed that the choice of a smaller number of samples per period is helpful in reducing the condition number. Thus, we choose a moderately subsampled representation without any loss in reconstruction compared to the filtered representation. Individually treating the first and second components, we choose M=200,100M=200,100 with theoretical minimum time delays L=9,17L=9,17, respectively.

Numerical results displayed in Figure 11 show that, even using training data that covers less than 25% of the period for the first component, and 50% of the period for the first component, the linear model with minimal time delays is still able to accurately predict the dynamics over the entire time period of the limit cycle. Note that a similar predictive performance is expected for the original (unfiltered) VdP system.

VII.1.2 Prediction of VdP system without a full period of data: vector case

As given in Table 1, Lemma 3 predicts that the consideration of both components requires only 8 delays. The effectiveness of the criterion developed in Lemma 3 is confirmed to a resounding degree in Figure 12. The top figure shows the predictive performance of the time delayed linear model for the minimum number of delays and the bottom figure shows the behavior of the a posteriori normalized MSE versus the number of time delays. It should be recognized that in contrast to the scalar case, in which the minimal time delay can be directly inferred from the Fourier spectrum, the vector case requires iterative evaluations of the rank test in Lemma 3.

VII.2 Quasi-periodic signal

As indicated in Laudau’s route to chaos Landau (1944), quasi-periodic systems play an important role in the transition from a limit cycle to fully chaotic flow.We consider the following quasi-periodic signal

where tt\in. Consider a sampling interval Δt=0.1\Delta t=0.1, we consider the linear model trained on the first 60 snapshots, i.e., tt\in.

As shown in Figure 13, the linear model with L=7L=7 accurately predicts the future state behavior of the quasi-periodic system with only a fraction of data limited in the range [0.25,0.55][-0.25,0.55] while the whole data ranges from [0.944,0.902][-0.944,0.902]. Indeed, the minimal time delay L=7L=7 is determined by the number of frequencies in the signal. The analysis on the minimal number of time delays for scalar time series as in Section III can be extended to quasi-periodic system. Consider the trigonometric identity, we have the following equivalent equation of Equation 79,

Therefore, we require L=P1=7L=P-1=7 time delays to fully recover the signal which is confirmed in Figure 13.

VII.3 Analysis of noise effect with pseudospectra

Note that our analysis and experiments thus far have been based on noise-free assumptions. When additive noise is present in the data, the minimal number of time delays as given by the results in Section III can be optimistic as we will confirm shortly. Alternatively, one might de-noise the data as by using for instance, optimal SVD thresholding Gavish and Donoho (2014) for the delay matrix with i.i.d. Gaussian noise. To illustrate the effect of noise, the toy 5-mode sine signal in Section VII.1.1 is considered, but the training horizon is increased to one complete period of data. Consider additive i.i.d. Gaussian noise with signal-to-noise ratio (with respect to the standard deviation) of 1%. To assess the influence of noise rigorously, we take an ensemble of 500 data trajectories and train a linear model with ordinary least squares on such data. In other words, for each sample trajectory, we have a slightly perturbed linear model associated with the data. The influence of noise is evaluated in the resulting distribution of eigenvalues (a priori sense) and long-time predictions (a posteriori sense). As shown in Figures 14 and 15, the theoretical optimality of L=9L=9 does not hold as the model becomes overly dissipative. Instead, L=20L=20 is required to have a reasonable prediction. It should be noted that the noise in the training data is too small to be observed in Figure 15, while the impact on the linear model is significant, as represented from the red shaded region. Moreover, as LL increases, it is observed that the “cloud" of eigenvalues shifts from the left half plane towards the imaginary. Interestingly, the “clouds" associated with spurious modes are much more scattered than those of the exact modes on the imaginary axis, i.e., the spurious modes are more sensitive to the noise in the data. As LL becomes increasingly large, e.g., L=39L=39, those clouds merge together along the imaginary axis, resulting in higher uncertainty due to the possibility of unstable modes. This is also reflected in the a posteriori predictions in Figure 15. Interestingly, the ensemble average of a posteriori prediction appears to show better predictions, even though each individual prediction can be divergent. This implies that an appropriate Bayesian reformulation could make the model more robust to noise Pan and Duraisamy (2020).

Next, we will analyze the robustness of the linear time delayed model with respect to noise in a more general sense. Recall that the previous analysis on condition number in Section VI.2.4 with periodic assumptions indicates robustness to noise with increasing time delays. For a more stringent description of the robustness, we introduce the concept of pseudospectra Trefethen et al. (1993). Here we define the ϵ\epsilon-pseudospectra of the block companion matrix AL\mathbf{A}_{L} in Section VI.1 as Λϵ\Lambda_{\epsilon} in Equation 80.

where σmin\sigma_{\textrm{min}} represents the minimal singular value. As shown in Figure 16, it is observed that the robustness of the solution decreases the increasing LL and becomes most sensitive to noise at the noise-free optimal L=9L=9, following which the robustness improves as LL increases, which is consistent with previous analysis on condition number.

VII.4 Turbulent Rayleigh-Bénard convection

As a final test case, we consider Rayleigh-Bénard convection, which is a problem of great interest to the fluid dynamics community. As displayed in Figure 17, the fluid is confined between two infinite horizontal planes with a hotter lower plane. The Rayleigh number, which represents the strength of buoyancy with respect to momentum and heat diffusion is defined as Ra=Uf2H2/νκ=αgΔTH3/νκRa={U_{f}^{2}H^{2}}/{\nu\kappa}={\alpha g\Delta TH^{3}}/{\nu\kappa} where α\alpha is the thermal expansion coefficient, κ\kappa is the thermal diffusivity, ΔT\Delta T is the temperature difference between hot and cold planes, and UfαgΔTHU_{f}\triangleq\sqrt{\alpha g\Delta TH} is the so-called free-fall velocity of a fluid parcel. Additional parameters that govern the dynamics are aspect ratio ΓL/H\Gamma\triangleq L/H, the Prandtl number Pr=ν/κPr=\nu/\kappa. LL is the horizontal length scale of the domain. The computational domain is taken as a rectangular box with periodic side walls. We set Ra=107Ra=10^{7} for fully turbulence; H=πLx=πLyH=\pi L_{x}=\pi L_{y} and Pr=1Pr=1. This domain is discretized uniformly in xx and yy direction with 128×128128\times 128 grid points and in zz direction with 128 grid points highly refined near the wall. The thickness of thermal boundary layer is sufficiently resolved Verzicco and Camussi (2003) since δθ/H1/2Nu10Δz\delta_{\theta}/H\sim{1}/{2Nu}\approx 10\Delta z, where Δz\Delta z is the grid size in zz direction closest to the wall.

The simulation is performed by solving 3D incompressible Navier-Stokes equations with a Boussinesq approximation using OpenFOAM Jasak et al. (2007). Linear heat conduction, i.e., an unstable equilibrium state is set as initial condition. The simulation is performed over four thousand characteristic advection time units, approximately 1.264τdiff1.264\tau_{\textrm{diff}}, where τdiffH2/ν\tau_{\textrm{diff}}\triangleq{H^{2}}/{\nu}, τadvH/αgΔT\tau_{\textrm{adv}}\triangleq\sqrt{{H}/{\alpha g\Delta T}}. The sampling interval is Δt=4τadv\Delta t=4\tau_{\textrm{adv}}. Note that this dynamical system contains approximately 2 million degrees of freedom. Here we perform dimension reduction on the sampled system state u,v,w,Tu,v,w,T similar to Pan, Arnold-Medabalimi, and Duraisamy (2020). First, normalization for each component and mean subtraction is performed. Second, as shown in the bottom subfigure in the Figure 17, more than 99% of variance for the nonlinear system is retained in the first r=800r=800 POD modes on the normalized data. After removing the effect of initial condition (the first 100 snapshots), we use 900 snapshots Pan and Arnold-Medabalimi (2020) for analysis.

We consider the first 800 out of 900 snapshots as training data. Then we perform a posteriori evaluation for 900 steps to examine the reconstruction performance and predictions on future time steps. As shown in Figure 18, performing SVD-DMD (L=0L=0) on this dataset with r=800r=800 results in a set of unstable eigenvalues, leading to undesired blow up in a posteriori evaluation after 180Δt180\Delta t. While the model with time delay L=1L=1, overfits to the training data from to approximately 800Δt800\Delta t, it yields stable predictions. Note that in this case Lopt=Mr+1=1L_{opt}=\lceil{\frac{M}{r+1}}\rceil=1.

We then take the entire 900 snapshots trajectory as training data to investigate the impact of of time delays LL on stabilizing the reconstruction at various rr. As shown in Figure 19, we first observe that as rr decreases, the numerical condition number increases simply as a consequence of retaining more small singular values. Secondly, we observe a general trend that, for each rr, model performance worsens as LL increases from to Lopt1L_{opt}-1, i.e., the transient point where linear systems approximately change from over-determined to under-determined. For the current data specifically, we observe that the system becomes stable as LL increases as the system becomes under-determined. Thirdly, we observe that the condition number shares a similar pattern with the reconstruction performance for each rr.

VIII Conclusions

In summary, this work addressed fundamental questions regarding the structure and conditioning of linear time delay models of non-linear dynamics on an attractor. The following are the main contributions of this work:

We proved that for non-linear scalar dynamical systems, the number of time delays required by linear models to perfectly recover limit cycles is determined by the sparsity in the Fourier spectrum.

In the vector case, we proved that the minimal number of time delays has a tight upper bound that is precisely the output controllability index of a related linear system.

We developed an equivalent representation of the linear time delayed model in the spectral domain and provided the exact solution of the delay transition matrix K\mathbf{K} for the scalar case.

We derived an upper bound on the 2-norm condition number as a function of the sampling rate and the number of time delays. Thus, ill-conditioning can be mitigated by increasing the number of time delays and/or subsampling the original signal.

We explicitly showed that the dynamics over the full period can be perfectly recovered by training the linear time delayed model over just a partial period.

Influences of the noises are evaluated with ensemble realizations. We further analyzed the stability of the model with the concept of pseudospectra. The results are consistent with our finding on the stabilizing role of the number of time delays.

Numerical experiments on simple problems were shown to confirm each of the above theoretical results.

The impact of time delays on linear modeling of large-scale chaotic systems was investigated, and Hankel DMD was confirmed to produce stable and accurate results given enough time delays.

A few observations are pertinent to the above conclusions:

Due to accuracy considerations on the numerical integrator, the sampling rate in the raw data may be excessively high. We believe that instabilities in prediction arise from choices that lead to poor numerical conditioning. Thus, as an alternate to pursuing explicit stabilization techniques Le Clainche and Vega (2017a); Champion, Brunton, and Kutz (2019), appropriate sub-sampling and time delays can be employed. Indeed, when noise is present in the data, explicit stabilization, Bayesian inference, or denoising techniques Rudy, Kutz, and Brunton (2019) may be warranted.

The effectiveness of linear time delayed models of non-linear dynamics is that - by leveraging Fourier interpolation - an arbitrarily close trajectory from a high dimensional linear system can be derived. This also intuitively explains the ability of the model - when the signal has a sparse spectrum - to perform “true” predictions without training on a full period of data.

Data availability

The data that support the findings of this study are openly available in https://github.com/pswpswpsw/2020_Time_Delay_Paper_Rayleigh-Benard

Appendix A Proofs

Using the first property in Lemma 1, rank(AIMP,L)=min(P,L+1)(\mathbf{A}_{\mathcal{I}_{M}^{P},L})=\min(P,L+1). While for the augmented matrix,

A.2 Proof of Theorem 2

Now, consider j=1,,J\forall j=1,\ldots,J, v(j)=Ediag(a(j))bIMMCP×1v^{(j)}=\mathbf{E}\operatorname{diag}(\mathbf{a}^{(j)})\mathbf{b}_{\mathcal{I}_{M}^{M}}\in\mathcal{C}^{P\times 1}, from the above, we have

Since the minimal ii for OC(A,B,C;i)\mathcal{OC}(\mathbf{A,B,C};i) to be full rank is μ\mu, the output observability index is μ\mu. Correspondingly, when the number of time delays L=μ1L=\mu-1, a solution exists for Lemma 3, which makes μ1\mu-1 an upper bound for the minimal time delay in Lemma 3. Finally, to show that the bounds are tight, consider that when J=1J=1, Theorem 2 reverts to Theorem 1 where μ=P\mu=P, and thus μ1=P1\mu-1=P-1 is essentially the minimal number of time delays required. ∎

A.3 Proof of Lemma 1

Since {αi}iIM\{\alpha_{i}\}_{i\in\mathcal{I}_{M}} are distinct, VN(α0,α1,,αN1)\mathbf{V}_{N}(\alpha_{0},\alpha_{1},\ldots,\alpha_{N-1}) is full rank with rank NN. Since MNM\geq N, the row space of VN(α0,α1,,αM1)\mathbf{V}_{N}(\alpha_{0},\alpha_{1},\ldots,\alpha_{M-1}) and is fully spanned by the first NN rows, and is thus full rank. Likewise, if M<NM<N,

Similarly, the first MM columns are full rank and VN(α0,α1,,αM1)\mathbf{V}_{N}(\alpha_{0},\alpha_{1},\ldots,\alpha_{M-1}) is also full rank. Thus in either case, VN(α0,α1,,αM1)\mathbf{V}_{N}(\alpha_{0},\alpha_{1},\ldots,\alpha_{M-1}) is full rank with rank as min(M,N)\min(M,N). To show the the second property, one can simply replace {αi}iIM\{\alpha_{i}\}_{i\in\mathcal{I}_{M}} with {αi}iJ\{\alpha_{i}\}_{i\in\mathcal{J}} in the above arguments. Since J=Q|\mathcal{J}|=Q, rank(VN({αi}iJ))=min(Q,N)\operatorname{rank}\left(\mathbf{V}_{N}(\{\alpha_{i}\}_{i\in\mathcal{J}})\right)=\min(Q,N). ∎

A.4 Proof of Lemma 2

A.5 Proof of Lemma 3

Given the definitions in Equations 44, 45 and 46, note Equation 16, we have

where Λ[1ωω(M1)]\mathbf{\Lambda}\triangleq\begin{bmatrix}1&&&\\ &\omega&&\\ &&\ddots&\\ &&&\omega^{(M-1)}\end{bmatrix}.

We rewrite Equation 45 for a given kk using Equation 18 for the left hand side and Equation 89 for the right hand side in Equation 45,

Using Equations 90 and 91 for the above, we have

Considering k=0,1,,M1k=0,1,\ldots,M-1, we stack [a(1)a(J)][ΛkΛk]\begin{bmatrix}\mathbf{a}^{(1)}\\ \vdots\\ \mathbf{a}^{(J)}\end{bmatrix}^{\top}\begin{bmatrix}\mathbf{\Lambda}^{k}&&\\ &\ddots&\\ &&\mathbf{\Lambda}^{k}\end{bmatrix} row by row as

Then plug the above equality into Equation 94, and notice the non-singularity of VM({ωj}j=0M1)\mathbf{V}_{M}(\{\omega^{j}\}_{j=0}^{M-1}), for k=0,1,,M1k=0,1,\ldots,M-1, Equation 94 can be rewritten as

From the Rouché-Capelli theorem Meyer (2000), the necessary and sufficient condition for the existence of a complex solution to Equation 96 is,

A.6 Proof of Lemma 4

We define the following row index set that describes the row that is not a zero row vector in A\mathbf{A}.

where we further order the index in Γ\Gamma as

For EA\mathbf{EA}, since E\mathbf{E} only removes the zero row vector, the rank of the matrix EA\mathbf{EA} is the same as A\mathbf{A}. To show EA\mathbf{EA} is full rank, simply consider the following procedure:

From the definition of Γ\Gamma, on each row with row index i=1,,Pi=1,\ldots,P, there are non-zero entries. Start by choosing an entry, denoted as aγiji\mathbf{a}_{\gamma_{i}}^{j_{i}} that is non-zero (while the choice of jij_{i} is not unique). Then, one can simply perform column operations that switch the column with index ji{j_{i}} corresponding to the non-zero entry of ii-th row, with the current ii-th column. These operations can be iteratively performed, after which the following matrix is obtained:

where i=1,,P,aγiji0\forall i=1,\ldots,P,\mathbf{a}_{\gamma_{i}}^{j_{i}}\neq 0 and R\mathbf{R} is the elementary column operation matrix. Thus EAR\mathbf{EAR} is full rank, and EA\mathbf{EA} is full rank.

Define F=E\mathbf{F}=\mathbf{E}^{\top}, i.e., Fjk=δγk,j\mathbf{F}_{jk}=\delta_{\gamma_{k},j}. Thus

Therefore, G\mathbf{G} is simply a diagonal matrix that keeps the row with index in Γ\Gamma unchanged, but makes the row zero when the index is not in Γ\Gamma. However, the row index that is not in Γ\Gamma corresponds to a zero row vector, and thus GA=A\mathbf{GA}=\mathbf{A}, i.e., EEA=A.\mathbf{E}^{\top}\mathbf{EA}=\mathbf{A}.

A.7 Proof of Lemma 5

Consider AIMP,Lq\mathbf{A}_{\mathcal{I}^{P}_{M},L_{q}} and notice that for q=0q=0, i.e., L0=P1L<L1=M+P1L_{0}=P-1\leq L<L_{1}=M+P-1, so K^L2K^L02=K^P12\lVert\mathbf{\hat{K}}_{L}\rVert_{2}\leq\lVert\mathbf{\hat{K}}_{L_{0}}\rVert_{2}=\lVert\mathbf{\hat{K}}_{P-1}\rVert_{2}; for q1q\geq 1, for any 1jP1\leq j\leq P, the jj-th column of AIMP,Lq\mathbf{A}_{\mathcal{I}^{P}_{M},L_{q}} is duplicated with the (j+kM)(j+kM)-th column, k=1,,qk=1,\ldots,q. For q1q\geq 1, AIMP,Lq\mathbf{A}_{\mathcal{I}^{P}_{M},L_{q}} in Equation 28, consider the following easily validated special class of real solutions,

with the constraint that for any 1jP1\leq j\leq P, l=0qKj1+lM=K^j1\sum_{l=0}^{q}K_{j-1+lM}={\hat{K}}_{j-1}. To find the minimal 2-norm solution, note that we have

From Jensen’s inequality, j=1,,P\forall j=1,\ldots,P,

where the equality holds when Kj1+lM=K^j1/(q+1)K_{j-1+lM}={\hat{K}_{j-1}}/{(q+1)} for l=0,,ql=0,\ldots,q. Thus minK22=j=1PK^j12/(q+1)=K^P122/(q+1)\min\lVert\mathbf{K}\rVert_{2}^{2}=\sum_{j=1}^{P}\hat{K}_{j-1}^{2}/(q+1)=\lVert\mathbf{\hat{K}}_{P-1}\rVert_{2}^{2}/(q+1). Since the above minimal norm is found within a special class of solutions in Equation 28, the general minimal 2-norm is

Combining both cases for q=0q=0 and q1q\geq 1, we have the desired result. ∎

A.8 Proof of Proposition 3

where e=[111]\mathbf{e}=\begin{bmatrix}1&1&\ldots&1\end{bmatrix}^{\top}. Denote fN{f}_{N} to be the minimum 2-norm solution. Suppose for all nodes, i=1,,ni=1,\ldots,n, zi1|z_{i}|\leq 1. Bazán Bazán (2000) showed that

A.9 Proof of Proposition 4

where δmin1i<jnzizj\displaystyle\delta\triangleq\min_{1\leq i<j\leq n}|z_{i}-z_{j}|, ϕN(α,β)1+α2++α2(N1)1+β2++β2(N1)\phi_{N}(\alpha,\beta)\triangleq\sqrt{\frac{1+\alpha^{2}+\ldots+\alpha^{2(N-1)}}{1+\beta^{2}+\ldots+\beta^{2(N-1)}}}, αmax1jnzj\displaystyle\alpha\triangleq\max_{1\leq j\leq n}|z_{j}|, βmin1jnzj\displaystyle\beta\triangleq\min_{1\leq j\leq n}|z_{j}|.

The key to understand the behavior of the upper bound of κ2(VN)\kappa_{2}(\mathbf{V}_{N}), is to estimate the convergence rate of fN2\lVert f_{N}\rVert_{2} which is considered difficult for a general distribution of nodes Bazán (2000). For the particular case of Equation 28, we can show a tight upper bound in Lemma 5. Thus, 1in,zi=1\forall 1\leq i\leq n,|z_{i}|=1, Equation 112 becomes,

Now we note a general inequality between the condition number in the 2-norm and in the Frobenius norm Bazán (2000) by considering,

The right hand side in Equation 115 is monotonically increasing with respect to κF(VN)\kappa_{F}(\mathbf{V}_{N}). Therefore using the upper bound from Equation 113 in Equation 115, and some algebra we have the following upper bound, N>n\forall N>n,

Finally, note that dd monotonically increases with fN2\lVert f_{N}\rVert_{2}, and thus with n=Pn=P, N=L+1N=L+1, zl=ωilz_{l}=\omega^{-i_{l}}, l=0,,P1l=0,\ldots,P-1 and Lemma 5, the desired upper bound is achieved. As LL\rightarrow\infty, K^L0\mathbf{\hat{K}}_{L}\rightarrow 0 and d0d\rightarrow 0, and thus it is trivial to show that κ2(AIMP,L)1\kappa_{2}(\mathbf{A}_{\mathcal{I}_{M}^{P},L})\rightarrow 1. ∎

References