Skip to main content

Data-driven methods

Kernel methods for the approximation of Koopman operators from time series

How Koopman operators are learned from data: delay-coordinate embeddings, kernels and diffusion maps, nonlinear Laplacian spectral analysis (NLSA), data-driven Koopman spectral analysis and vector-valued spectral analysis (VSA).

We have developed a family of kernel methods that approximate Koopman operators from data by combining ideas from ergodic theory with kernel methods from machine learning (Giannakis and Majda 2012; Berry et al. 2015, 2020; Giannakis et al. 2015; Giannakis 2019; Das and Giannakis 2020; Das et al. 2021). The work summarized on this page was carried out with a number of collaborators and, for the most part, before the present project. The elements common to these methods are described below.

Learning from a time series

The training data are a time series \(y_1, y_2, \ldots, y_N\) sampled at a fixed interval \(\Delta t\). Each sample is regarded as a measurement \(y_n = F(x_n)\) of an unobserved state \(x_n = \Phi^{n\,\Delta t}(x_0)\) through an observation map \(F\). The measurements may be high-dimensional, such as a gridded field with thousands of points, may combine different variables and sources, and need not lie on a regular grid.

Two properties make it possible to learn from a single long record. The first is ergodicity: time averages along a long trajectory converge to averages with respect to the invariant measure \(\mu\), so the training samples serve as quadrature nodes for integrals over state space. The second is the time ordering of the samples: since consecutive samples are separated by one time step, a shift of the data by one step corresponds to an application of the Koopman operator \(U^{\Delta t}\).

Delay-coordinate embedding

A single measurement generally determines the state only in part. Each sample is therefore augmented with its recent history to form the delay-coordinate vector

\[ \tilde y_n = \big(y_n,\ y_{n-1},\ \ldots,\ y_{n-Q+1}\big), \]

where \(Q\) is the length of the embedding window. By the embedding theorem of Takens and its generalizations, a sufficiently long window determines the state (Takens 1981; Giannakis 2021). The same construction underlies extended EOF analysis and singular spectrum analysis in climate science (Ghil et al. 2002).

Delay embedding has a second effect. As the window length increases, the kernel integral operators described below commute with the Koopman operator to an increasing degree, and in the limit the two have common eigenspaces. The kernel eigenfunctions then separate timescales and approach approximate Koopman eigenfunctions (Das and Giannakis 2019; Giannakis 2021). The window length is one of the principal parameters of the method.

Kernels and a data-driven basis

A kernel \(k(\tilde y_m, \tilde y_n)\) is a measure of similarity between two embedded samples. The default choice is a Gaussian kernel,

\[ k(\tilde y_m, \tilde y_n) = \exp\!\left(-\frac{\lVert \tilde y_m - \tilde y_n \rVert^2}{\epsilon^2}\right), \]

with three modifications. The bandwidth \(\epsilon\) is taken to vary with the local sampling density of the data, so that resolution is finer where data are plentiful and coarser in sparsely sampled regions of state space; this is of consequence for intermittent and extreme behavior. The kernel matrix is normalized so that its rows sum to one, as in the diffusion maps algorithm (Coifman and Lafon 2006); the resulting Markov matrix approximates a heat semigroup on the set traced out by the data. The overall bandwidth is selected by optimizing a scaling criterion over a range of candidate values.

The leading eigenvectors \(\phi_1, \ldots, \phi_L\) of the normalized \(N \times N\) kernel matrix form an orthonormal basis of functions on the data, ordered by increasing roughness. For a linear kernel, \(k(y_m, y_n) = y_m \cdot y_n\), they reduce to the principal components of EOF analysis; nonlinear kernels generalize this construction.

A basis function is evaluated at a new data point \(y\), for example the observations available at the time a forecast is issued, by the Nyström extension

\[ \varphi_j(y) = \frac{1}{N \lambda_j} \sum_{n=1}^{N} k(y, y_n)\, \phi_j(x_n), \]

where \(\lambda_j\) is the eigenvalue corresponding to \(\phi_j\).

NLSA: nonlinear Laplacian spectral analysis

Nonlinear Laplacian spectral analysis (Giannakis and Majda 2012) was the first method of this family. The kernel construction above is applied to delay-embedded data, with a kernel that also depends on the local velocity of the trajectory, and the leading eigenfunctions are taken as temporal patterns. The corresponding spatiotemporal patterns are obtained by projecting the data onto these eigenfunctions.

Methods that rank patterns by explained variance, such as EOF analysis and singular spectrum analysis, can fail to isolate signals that carry little variance but are dynamically significant. NLSA was designed to recover intermittent and low-frequency signals of this kind. It has been applied to decadal variability in the North Pacific, the structure of the MJO (Tung et al. 2014; Székely et al. 2016), monsoon intraseasonal oscillations (Sabeerali et al. 2017), sea ice reemergence (Bushuk et al. 2014), Indo-Pacific variability (Slawinska and Giannakis 2017; Giannakis and Slawinska 2018) and convection (Brenowitz et al. 2016). The open-source code in which all the methods on these pages are implemented retains the name NLSA (Giannakis et al. 2026).

Learning the Koopman operator

Given the basis, the Koopman operator is represented by an \(L \times L\) matrix. Since the application of the one-step operator \(U^{\Delta t}\) to a basis function amounts to a shift by one sample, the matrix elements \(\langle \phi_i, U^{\Delta t} \phi_j \rangle\) are estimated directly from the data,

\[ U_{ij} = \frac{1}{N} \sum_{n=1}^{N-1} \phi_i(x_n)\, \phi_j(x_{n+1}). \]

Under suitable conditions on the dynamics and the kernel, this matrix converges to a representation of the Koopman operator as the number of samples \(N\) tends to infinity, followed by the number of basis functions \(L\) (Berry et al. 2020; Giannakis 2019).

Two approaches to the computation of eigenfunctions are available in the toolkit. In the first, the generator \(V\) is approximated by finite differences along the trajectory and is regularized by the addition of a small diffusion term (Giannakis 2019). Each eigenfunction of the regularized operator has an eigenfrequency and a Dirichlet energy, which measures its roughness with respect to the kernel. Eigenfunctions of low Dirichlet energy are the least sensitive to sampling error and are the ones retained for interpretation (Figure 1). In the second approach, the generator is approximated by a one-parameter family of compact, skew-adjoint operators on a reproducing kernel Hilbert space (RKHS). These operators have discrete spectra, and their spectral measures converge to that of the generator in the limit of vanishing regularization and large data (Das et al. 2021; Giannakis 2021).

In either case each eigenfunction is a linear combination of basis functions, \(z_l = \sum_j c_{lj}\, \phi_j\). Evaluated along the data it is a complex-valued time series whose real and imaginary parts are in quadrature, so its phase follows the stage of an oscillation. The spatial pattern associated with the oscillation is obtained by projecting gridded fields onto the eigenfunction.

Scatter plot of eigenfrequency against Dirichlet energy, forming a fan of points that spreads out as energy increases.
Figure 1: Eigenfrequencies of the Koopman generator for the Lorenz 63 system, plotted against the Dirichlet energy of the corresponding eigenfunctions. Colors give the index \(j\) of the eigenfunction. Low-energy eigenfunctions, on the left, are the smoothest.

Koopman indices compared with EOF-based indices

In Figure 2 an MJO index obtained as an approximate Koopman eigenfunction is compared with the leading intraseasonal pair of an extended EOF analysis of the same data, namely daily outgoing longwave radiation averaged over 15°S–15°N for 1975–2025. The Koopman eigenfunction, with a period of about 51 days, traces more regular cycles, and individual MJO events are more clearly delineated. A detailed comparison is given by Lintner et al. (2023).

(a) Koopman eigenfunction
(b) Extended EOF pair
Figure 2: MJO indices from daily outgoing longwave radiation. (a) Approximate Koopman eigenfunction with an eigenperiod of 51.4 days. (b) Leading intraseasonal pair of principal components from extended EOF analysis. In each panel, the left column plots the two components of the index against each other and the right column shows them as time series, for 1975–2025 (top) and for October 1991 to October 1993 (bottom).

Spatially varying patterns: VSA

The methods above yield scalar-valued indices. Some phenomena, such as traveling waves, have no fixed location and may occur anywhere under similar conditions. For these, vector-valued spectral analysis (VSA) replaces the scalar kernel by an operator-valued kernel, so that each recovered pattern is a spatial field that depends on the state of the system (Giannakis et al. 2019; Slawinska et al. 2018). The symmetries of the dynamics, such as spatial translations, are incorporated in the kernel. Patterns that merely reflect those symmetries, which classical decompositions tend to produce (Aubry et al. 1993), are thereby avoided.

An example is given in the blog post on the Kuramoto–Sivashinsky model. Related ideas are developed in space–time Koopman analysis (Giannakis and Das 2020).

Where the methods have been applied

In earlier studies the methods have been applied to ENSO and Indo-Pacific variability (Slawinska and Giannakis 2017; Giannakis and Slawinska 2018; Froyland et al. 2021; Wang et al. 2020), to the MJO and other intraseasonal oscillations (Tung et al. 2014; Székely et al. 2016; Alexander et al. 2017; Lintner et al. 2023), to North Pacific variability and Arctic sea ice (Comeau et al. 2017, 2019; Bushuk et al. 2014), to climate trends (Froyland et al. 2024), and to turbulent convection and other fluid flows (Brenowitz et al. 2016; Giannakis et al. 2018; Giannakis and Das 2020).

Current research includes tensor-network approximations of Koopman operators (Giannakis et al. 2024) and connections with quantum computing (Giannakis et al. 2022), the latter described on the QMDA page.

References

Alexander, R., Z. Zhao, E. Székely, and D. Giannakis. 2017. “Kernel Analog Forecasting of Tropical Intraseasonal Oscillations.” Journal of the Atmospheric Sciences 74: 1321–42. https://doi.org/10.1175/JAS-D-16-0147.1.
Aubry, N., W.-Y. Lian, and E. S. Titi. 1993. “Preserving Symmetries in the Proper Orthogonal Decomposition.” SIAM Journal on Scientific Computing 14: 483–505. https://doi.org/10.1137/0914030.
Berry, T., D. Giannakis, and J. Harlim. 2015. “Nonparametric Forecasting of Low-Dimensional Dynamical Systems.” Physical Review E 91: 032915. https://doi.org/10.1103/PhysRevE.91.032915.
Berry, T., D. Giannakis, and J. Harlim. 2020. “Bridging Data Science and Dynamical Systems Theory.” Notices of the American Mathematical Society 67 (9): 1336–49. https://doi.org/10.1090/noti2151.
Brenowitz, N. D., D. Giannakis, and A. J. Majda. 2016. “Nonlinear Laplacian Spectral Analysis of Rayleigh–Bénard Convection.” Journal of Computational Physics 315: 536–53. https://doi.org/10.1016/j.jcp.2016.03.051.
Bushuk, M., D. Giannakis, and A. J. Majda. 2014. “Reemergence Mechanisms for North Pacific Sea Ice Revealed Through Nonlinear Laplacian Spectral Analysis.” Journal of Climate 27: 6265–87. https://doi.org/10.1175/JCLI-D-13-00256.1.
Coifman, R. R., and S. Lafon. 2006. “Diffusion Maps.” Applied and Computational Harmonic Analysis 21 (1): 5–30. https://doi.org/10.1016/j.acha.2006.04.006.
Comeau, D., D. Giannakis, Z. Zhao, and A. J. Majda. 2019. “Predicting Regional and Pan-Arctic Sea Ice Anomalies with Kernel Analog Forecasting.” Climate Dynamics 52 (9–10): 5507–25. https://doi.org/10.1007/s00382-018-4459-x.
Comeau, D., Z. Zhao, D. Giannakis, and A. J. Majda. 2017. “Data-Driven Prediction Strategies for Low-Frequency Patterns of North Pacific Climate Variability.” Climate Dynamics 48 (5–6): 1855–72. https://doi.org/10.1007/s00382-016-3177-5.
Das, S., and D. Giannakis. 2019. “Delay-Coordinate Maps and the Spectra of Koopman Operators.” Journal of Statistical Physics 175 (6): 1107–45. https://doi.org/10.1007/s10955-019-02272-w.
Das, S., and D. Giannakis. 2020. “Koopman Spectra in Reproducing Kernel Hilbert Spaces.” Applied and Computational Harmonic Analysis 49 (2): 573–607. https://doi.org/10.1016/j.acha.2020.05.008.
Das, S., D. Giannakis, and J. Slawinska. 2021. “Reproducing Kernel Hilbert Space Compactification of Unitary Evolution Groups.” Applied and Computational Harmonic Analysis 54: 75–136. https://doi.org/10.1016/j.acha.2021.02.004.
Froyland, G., D. Giannakis, B. R. Lintner, M. Pike, and J. Slawinska. 2021. “Spectral Analysis of Climate Dynamics with Operator-Theoretic Approaches.” Nature Communications 12: 6570. https://doi.org/10.1038/s41467-021-26357-x.
Froyland, G., D. Giannakis, E. Luna, and J. Slawinska. 2024. “Revealing Trends and Persistent Cycles of Non-Autonomous Systems with Operator-Theoretic Techniques: Applications to Past and Present Climate Dynamics.” Nature Communications 15. https://doi.org/10.1038/s41467-024-48033-6.
Ghil, M., M. R. Allen, M. D. Dettinger, et al. 2002. “Advanced Spectral Methods for Climatic Time Series.” Reviews of Geophysics 40 (1): 1003. https://doi.org/10.1029/2000RG000092.
Giannakis, D. 2019. “Data-Driven Spectral Decomposition and Forecasting of Ergodic Dynamical Systems.” Applied and Computational Harmonic Analysis 47 (2): 338–96. https://doi.org/10.1016/j.acha.2017.09.001.
Giannakis, D. 2021. “Delay-Coordinate Maps, Coherence, and Approximate Spectra of Evolution Operators.” Research in the Mathematical Sciences 8: 8. https://doi.org/10.1007/s40687-020-00239-y.
Giannakis, D. et al. 2026. NLSA: Operator Methods for Dynamical Systems (Python and MATLAB Code). https://github.com/dg227/NLSA.
Giannakis, D., and S. Das. 2020. “Extraction and Prediction of Coherent Patterns in Incompressible Flows Through Space-Time Koopman Analysis.” Physica D 402: 132211. https://doi.org/10.1016/j.physd.2019.132211.
Giannakis, D., M. M. L. Jebelli, M. Montgomery, P. Pfeffer, J. Schumacher, and J. Slawinska. 2024. Tensor Network Approximation of Koopman Operators. https://arxiv.org/abs/2407.07242.
Giannakis, D., A. Kolchinskaya, D. Krasnov, and J. Schumacher. 2018. “Koopman Analysis of the Long-Term Evolution in a Turbulent Convection Cell.” Journal of Fluid Mechanics 847: 735–67. https://doi.org/10.1017/jfm.2018.297.
Giannakis, D., and A. J. Majda. 2012. “Nonlinear Laplacian Spectral Analysis for Time Series with Intermittency and Low-Frequency Variability.” Proceedings of the National Academy of Sciences 109 (7): 2222–27. https://doi.org/10.1073/pnas.1118984109.
Giannakis, D., A. Ourmazd, P. Pfeffer, J. Schumacher, and J. Slawinska. 2022. “Embedding Classical Dynamics in a Quantum Computer.” Physical Review A 105: 052404. https://doi.org/10.1103/PhysRevA.105.052404.
Giannakis, D., A. Ourmazd, J. Slawinska, and Z. Zhao. 2019. “Spatiotemporal Pattern Extraction by Spectral Analysis of Vector-Valued Observables.” Journal of Nonlinear Science 29 (5): 2385–445. https://doi.org/10.1007/s00332-019-09548-1.
Giannakis, D., and J. Slawinska. 2018. “Indo-Pacific Variability on Seasonal to Multidecadal Time Scales. Part II: Multiscale Atmosphere–Ocean Linkages.” Journal of Climate 31 (2): 693–725. https://doi.org/10.1175/JCLI-D-17-0031.1.
Giannakis, D., J. Slawinska, and Z. Zhao. 2015. “Spatiotemporal Feature Extraction with Data-Driven Koopman Operators.” Proceedings of the 1st International Workshop on Feature Extraction: Modern Questions and Challenges at NIPS 2015, Proceedings of machine learning research, vol. 44: 103–15. https://proceedings.mlr.press/v44/giannakis15.html.
Lintner, B. R., D. Giannakis, M. Pike, and J. Slawinska. 2023. “Identification of the Madden–Julian Oscillation with Data-Driven Koopman Spectral Analysis.” Geophysical Research Letters 50: e2023GL102743. https://doi.org/10.1029/2023GL102743.
Sabeerali, C. T., R. S. Ajayamohan, D. Giannakis, and A. J. Majda. 2017. “Extraction and Prediction of Indices for Monsoon Intraseasonal Oscillations: An Approach Based on Nonlinear Laplacian Spectral Analysis.” Climate Dynamics, ahead of print. https://doi.org/10.1007/s00382-016-3491-y.
Slawinska, J., and D. Giannakis. 2017. “Indo-Pacific Variability on Seasonal to Multidecadal Time Scales. Part I: Intrinsic SST Modes in Models and Observations.” Journal of Climate 30 (14): 5265–94. https://doi.org/10.1175/JCLI-D-16-0176.1.
Slawinska, J., A. Ourmazd, and D. Giannakis. 2018. “A New Approach to Signal Processing of Spatiotemporal Data.” 2018 IEEE Statistical Signal Processing Workshop (SSP) (Freiburg, Germany). https://doi.org/10.1109/SSP.2018.8450704.
Székely, E., D. Giannakis, and A. J. Majda. 2016. “Extraction and Predictability of Coherent Intraseasonal Signals in Infrared Brightness Temperature Data.” Climate Dynamics 46 (5): 1473–502. https://doi.org/10.1007/s00382-015-2658-2.
Takens, F. 1981. “Detecting Strange Attractors in Turbulence.” In Dynamical Systems and Turbulence, Warwick 1980, vol. 898. Lecture Notes in Mathematics. Springer. https://doi.org/10.1007/BFb0091924.
Tung, W.-w., D. Giannakis, and A. J. Majda. 2014. “Symmetric and Antisymmetric Convection Signals in the Madden–Julian Oscillation. Part I: Basic Modes in Infrared Brightness Temperature.” Journal of the Atmospheric Sciences 71: 3302–26. https://doi.org/10.1175/JAS-D-13-0122.1.
Wang, X., J. Slawinska, and D. Giannakis. 2020. “Extended-Range Statistical ENSO Prediction Through Operator-Theoretic Techniques for Nonlinear Dynamics.” Scientific Reports 10: 2636. https://doi.org/10.1038/s41598-020-59128-7.