Data-driven discovery of coordinates and governing equations

Kathleen Champion, Bethany Lusch, J. Nathan Kutz, Steven L. BruntonProceedings of the National Academy of Sciences 2019 · DOI

TL;DR

This paper introduces a novel method that simultaneously discovers both the underlying governing equations and the most effective coordinate system for describing complex dynamical systems. By combining deep autoencoders with sparse regression (SINDy), the approach learns interpretable, parsimonious models from high-dimensional data, overcoming a key limitation of previous methods.

What Problem Does This Paper Address?

Many scientific fields are awash in data but lack fundamental governing equations to describe the underlying processes. While techniques like sparse regression (SINDy) can identify simple, interpretable equations from data, their success hinges on measuring the system in the "right" coordinate system. Often, the raw sensor data is in a high-dimensional, complex representation where the underlying dynamics are obscured. This paper tackles the challenge of finding both this effective coordinate system and the parsimonious equations within it, a problem that has historically required significant domain expertise or been intractable.

Methods

The core innovation is a SINDy Autoencoder. This framework integrates two key components:

  • Deep Autoencoder: This neural network learns a non-linear transformation (an encoder) to map the high-dimensional input data ($x$) into a lower-dimensional latent space ($z$). This learned latent space is hypothesized to be where the system's dynamics are simpler. A decoder reconstructs the original data from this latent representation.
  • Sparse Identification of Nonlinear Dynamics (SINDy): This technique is applied to the learned latent coordinates ($z$). SINDy uses sparse regression to find the simplest set of terms (e.g., polynomials) that describe the time evolution of $z$.

These two components are trained jointly within a single optimization framework. The loss function encourages:

  1. Accurate reconstruction of the original data ($x$) by the autoencoder.
  2. Accurate prediction of the time derivatives of the latent coordinates ($\dot{z}$) using the SINDy model.
  3. Accurate prediction of the time derivatives of the original data ($\dot{x}$) using the learned latent dynamics and the encoder's gradient.
  4. Sparsity in the SINDy model coefficients (via L1 regularization and sequential thresholding) to ensure parsimony and interpretability.

Datasets

The authors demonstrate their method on three example systems:

  • Chaotic Lorenz System: A high-dimensional dataset was generated by projecting the standard Lorenz system onto six spatial modes derived from Legendre polynomials. This creates a high-dimensional ($n=128$) representation of a low-dimensional ($d=3$) chaotic system.
  • Reaction-Diffusion System: Data was generated from a lambda-omega reaction-diffusion partial differential equation (PDE) that exhibits spiral wave formation. The snapshots were collected over a spatial grid, resulting in a high-dimensional dataset ($n=10^4$).
  • Nonlinear Pendulum: A simulated video of a nonlinear pendulum in two spatial dimensions was used. This was represented as high-dimensional image snapshots ($n=2601$).

These datasets are generated by simulating known dynamical systems, allowing for a direct comparison between the discovered models and the ground truth.

Key Insights and Ideas

  • Coordinate Discovery is Crucial: The paper strongly emphasizes that finding the right coordinate system is as fundamental as finding the right equations. Without it, even powerful methods like SINDy can fail to produce simple, interpretable models.
  • Joint Optimization is Key: Learning the coordinate transformation and the dynamical equations simultaneously is critical. This ensures that the discovered coordinates are not just a dimensionality reduction but are specifically tailored to reveal parsimonious dynamics.
  • Autoencoders as Coordinate Discoverers: The autoencoder architecture, when trained with a specific loss function, can effectively learn nonlinear embeddings that simplify the system's dynamics, making them amenable to sparse regression.
  • Parsimony for Interpretability and Generalizability: The focus on parsimonious models (fewest terms) is highlighted as a pathway to understanding complex systems and enabling better forecasting.

Key Results

The SINDy autoencoder successfully discovered parsimonious dynamical models for all three example systems:

  • Lorenz System: The method recovered a model with 7 active terms that, after a variable transformation, matched the structure of the original Lorenz system. The discovered attractor and dynamics closely resembled the true system, with a low fraction of unexplained variance (e.g., < 3x10⁻⁵ for decoder reconstruction).
  • Reaction-Diffusion System: The method discovered models with 2 or 3 active terms that accurately captured the spiral wave dynamics, achieving low unexplained variance (e.g., 0.016 for input data and derivatives, 0.002 for latent dynamics).
  • Nonlinear Pendulum: Five out of ten trained models correctly recovered the nonlinear pendulum equation with a single active term. These models showed good performance, with low unexplained variance for reconstruction and dynamics (e.g., 8x10⁻⁴ for decoder, 3x10⁻⁴ for derivatives, 2x10⁻² for latent dynamics).

In all cases, the discovered models were interpretable and capable of simulating the system's dynamics.

Limitations and Future Work

  • Sensitivity to Noise: The current approach requires relatively clean measurement data, as estimating derivatives from noisy data can be challenging. The authors suggest using derivative estimation techniques or adapting the method for discrete-time systems to address this.
  • Generalization of Coordinates: While the learned dynamics can be generalized, the coordinate transformation itself might not generalize to data regimes far from the original training set. Future work could explore retraining the network on new data with fixed model terms.
  • Domain Knowledge Integration: The authors suggest that incorporating physics-informed learning or other domain knowledge could further enhance the discovery process.
  • Hyperparameter Tuning: The performance of the method is influenced by hyperparameter choices (e.g., learning rate, loss weights), and finding optimal values can require careful tuning.

Summary updated

Abstract

The discovery of governing equations from scientific data has the potential to transform data-rich fields that lack well-characterized quantitative descriptions. Advances in sparse regression are currently enabling the tractable identification of both the structure and parameters of a nonlinear dynamical system from data. The resulting models have the fewest terms necessary to describe the dynamics, balancing model complexity with descriptive ability, and thus promoting interpretability and generalizability. This provides an algorithmic approach to Occam's razor for model discovery. However, this approach fundamentally relies on an effective coordinate system in which the dynamics have a simple representation. In this work, we design a custom deep autoencoder network to discover a coordinate transformation into a reduced space where the dynamics may be sparsely represented. Thus, we simultaneously learn the governing equations and the associated coordinate system. We demonstrate this approach on several example high-dimensional systems with low-dimensional behavior. The resulting modeling framework combines the strengths of deep neural networks for flexible representation and sparse identification of nonlinear dynamics (SINDy) for parsimonious models. This method places the discovery of coordinates and models on an equal footing.
BibTeX
@inproceedings{champion2019data,
  author = {Kathleen Champion and Bethany Lusch and J. Nathan Kutz and Steven L. Brunton},
  title = {{Data-driven discovery of coordinates and governing equations}},
  booktitle = {Proceedings of the National Academy of Sciences},
  year = {2019},
  doi = {10.1073/pnas.1906995116},
}
Figure