Learning Deep Hidden Nonlinear Dynamics from Aggregate Data

Yisen Wang, Bo Dai, Lingkai Kong, Sarah Monazam Erfani, James Bailey, Hongyuan Zha

Abstract

Understanding the temporal evolution of complex systems is a fundamental challenge in science. While longitudinal data tracking individuals over time is ideal, many fields—from ecology to single-cell biology—only provide "aggregate data" or snapshots of populations. We introduce LEGEND (LEarninG DEep hidden Nonlinear Dynamics), a framework that models these dynamics as a hidden stochastic process. By leveraging deep neural networks for nonlinear mapping and Wasserstein distance for distribution matching, LEGEND successfully reconstructs trajectories and predicts future states where traditional models fail.

Introduction: The Challenge of Aggregate Data

In many scientific domains, tracking a specific entity over time is impossible. In ecology, researchers might count bird populations at different seasonal intervals without knowing if they are observing the same individuals. In biology, single-cell RNA sequencing typically destroys the cell, providing a high-dimensional snapshot of a population at one time point but precluding the observation of a single cell's developmental "life story."

Existing methods like Kalman Filters or Hidden Markov Models (HMMs) are often ill-equipped for such aggregate data, as they typically rely on individual-level trajectories. Furthermore, traditional models often lack the expressive power to capture the highly nonlinear dynamics inherent in complex biological or physical systems.

Methodology: The LEGEND Framework

LEGEND addresses these challenges through a three-pillared architecture designed to infer underlying dynamics from population distributions.

Schematic of the LEGEND framework showing the hidden diffusion process $X_t$ and its mapping to observations $Y_t$.
  1. Hidden Stochastic Dynamics: Rather than modeling noisy observations ($Y_t$) directly, LEGEND assumes an underlying hidden state ($X_t$) governed by a Stochastic Differential Equation (SDE). This SDE is approximated using the Euler-Maruyama method, allowing the model to capture structured internal rules.
  2. Nonlinear Observation Mapping: A deep neural network ($f$) maps these hidden states to the observed data space. This flexibility allows the framework to represent complex, non-intuitive relationships between internal states and measurements.
  3. Wasserstein Learning: To train the model without individual trajectories, the authors employ a likelihood-free approach. Using the Wasserstein distance (Earth Mover's Distance), the model minimizes the discrepancy between the distribution of generated samples and the actual aggregate observations, similar to the training objective of Generative Adversarial Networks (GANs).

The framework is versatile enough to handle Filtering (predicting the next time step) and Smoothing (inferring a missing middle time step) by using an RNN-based inference function ($h$).

Experimental Evaluation

The framework was rigorously tested across diverse scenarios:

  • Synthetic Benchmarks: Datasets with varying complexity (Linear, Quadratic, and Highly Nonlinear) in 2D, 5D, and 10D spaces.
  • Single-cell RNA-seq: Modeling the differentiation of embryonic stem cells by tracking the expression of thousands of genes over a seven-day period.
  • Bird Migration: Utilizing the eBird dataset to track the spatial snapshots of the "Gray Jay" across the United States.

Key Results and Insights

LEGEND consistently outperformed state-of-the-art baselines, including Ornstein-Uhlenbeck (OU) processes and standard Neural Network SDEs.

Quantitative comparison of LEGEND against NN and OU baselines across synthetic, RNA, and Bird datasets.

As shown in the results table, LEGEND achieved Wasserstein errors that were often an order of magnitude lower than its competitors, particularly in high-dimensional synthetic tasks. In biological applications, it accurately captured gene correlations (e.g., between Krt8 and Krt18) that baseline models failed to represent.

A critical insight from this work is the necessity of hidden variables. By introducing $X_t$, the model can represent complex trajectories that appear chaotic at the observation level but follow structured rules internally. Furthermore, the use of Wasserstein distance bypasses the need for intractable probability density functions, enabling the use of powerful "black-box" generative models.

Conclusion and Future Directions

LEGEND provides a robust theoretical and empirical foundation for learning dynamics from aggregate data. While the current framework assumes Brownian motion for noise, future work could explore jump diffusion processes to model systems with sudden, discrete changes. Additionally, scaling these hidden dynamics to represent the full genome (thousands of dimensions simultaneously) remains an open and exciting challenge for the field.

Summary updated

BibTeX
@inproceedings{wang2018learning,
  author = {Yisen Wang and Bo Dai and Lingkai Kong and Sarah Monazam Erfani and James Bailey and Hongyuan Zha},
  title = {{Learning Deep Hidden Nonlinear Dynamics from Aggregate Data}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2018},
}
Figure