Nonparametric Bayesian Learning of Switching Linear Dynamical Systems

Emily B. Fox, Erik B. Sudderth, Michael I. Jordan, Alan S. WillskyNeurIPS 2008

TL;DR

This paper introduces a powerful new Bayesian framework for modeling complex systems that exhibit distinct, yet recurring, behaviors. By using a nonparametric approach, the model can automatically discover an unknown number of these "modes" and their underlying linear dynamics, offering a more flexible and accurate way to analyze real-world data than previous methods.

What Problem Does This Paper Address?

Many real-world phenomena, from financial markets to animal behavior, don't follow a single, consistent pattern. Instead, they transition between different states or "modes" of behavior. For example, a stock market might be in a period of high volatility or low volatility, or a honey bee might switch between different types of dances. Traditional linear dynamical systems (LDSs) struggle to capture these shifts. While Hidden Markov Models (HMMs) can model switching, they often require pre-specifying the number of modes. This paper tackles the challenge of learning these switching dynamical systems when both the number of modes and the dynamics within each mode are unknown, allowing for the discovery of new behaviors and the re-emergence of previously seen ones.

Methods

The core of this work lies in a nonparametric Bayesian approach using a Hierarchical Dirichlet Process (HDP) prior. This allows the model to infer an unknown number of "modes" (distinct dynamical behaviors) and their associated parameters.

Key methodological contributions include:

  • Sticky HDP-HMM: To address the issue of unrealistically fast mode switching in standard HDP-HMMs, they employ a "sticky" variant. This prior encourages modes to persist for longer, making the learned sequences more interpretable and realistic.
  • Switching Linear Dynamical System (SLDS) and Switching Vector Autoregressive (VAR) Process: They extend the HDP-HMM framework to model two types of switching systems:
  • SLDS: Models systems where the underlying state is not directly observed, but rather inferred.
  • Switching VAR: A special case where observations are directly related to past observations.
  • Gibbs Sampler: They develop a sophisticated Gibbs sampling algorithm to infer the model parameters. This sampler efficiently handles the complexity by:
  • Using a truncated approximation of the Dirichlet process for computational efficiency.
  • Jointly sampling the mode sequence and state sequences (for SLDS), which is crucial for improving the sampler's mixing and handling dependencies.
  • Employing conjugate priors (matrix-normal inverse-Wishart) for the dynamic parameters, which simplifies posterior inference.

Datasets

The paper evaluates their models on three types of data:

  • Synthetic Data: Generated from known switching VAR(1), switching AR(2), and SLDS processes to quantitatively assess model performance.
  • Dancing Honey Bees: Real-world sequences of honey bee dances, used to test the model's ability to segment and identify different behavioral modes.
  • IBOVESPA Stock Index: Daily returns from the Brazilian stock market, used to identify periods of changing market volatility.

Key Insights and Ideas

  • Discovering Unknown Modes is Crucial: The nonparametric nature of the HDP allows the model to discover the "right" number of modes from the data, rather than requiring it as an input. This is a significant advantage over methods that fix the number of modes.
  • Mode Persistence Matters: The "sticky" HDP prior is essential for learning realistic sequences of modes. Without it, models tend to over-segment data and switch between modes too rapidly, leading to less interpretable results.
  • SLDS Offers Greater Expressiveness: The SLDS model, which infers hidden states, proves more powerful than VAR models for certain complex dynamics, particularly when the underlying state dynamics are rich.
  • Bayesian Nonparametrics for Dynamic Systems: This work demonstrates the power of Bayesian nonparametric methods for modeling complex, time-varying systems, opening doors for more flexible and data-driven approaches in time series analysis.

Key Results

  • Synthetic Data Performance: The proposed HDP-SLDS and HDP-AR-HMM models significantly outperform baseline sticky HDP-HMMs on synthetic data, achieving lower Hamming distances (a measure of mode sequence accuracy). The HDP-SLDS showed particular strength when the underlying dynamics were complex.
  • IBOVESPA Stock Index: The HDP-SLDS successfully identified change points in market volatility, aligning well with known world events. Notably, it consistently identified three regimes of volatility, whereas a previous study used a 2-mode model, suggesting the HDP-SLDS can uncover finer-grained dynamics. ROC curves showed the HDP-SLDS with the sticky prior significantly outperformed its non-sticky counterpart and simpler VAR models.
  • Dancing Honey Bees: The HDP-VAR(1)-HMM achieved superior segmentation of honey bee dances compared to a change-point detection method, identifying modes that reoccur over time. While unsupervised performance was weaker on less regular sequences, a partially supervised variant showed substantial improvement.

Limitations and Future Work

  • Computational Cost: While the truncated HDP and joint sampling improve efficiency, the sampler can still be computationally intensive, especially for SLDS models with higher-dimensional state spaces.
  • Model Order for VAR: The paper considers fixed orders for VAR processes. An interesting future direction is learning the order of the VAR models for each mode.
  • Domain-Specific Knowledge: For the honey bee data, the authors note that incorporating domain-specific knowledge could further improve performance, especially for highly variable dances.
  • Identifiability: For SLDS, the measurement matrix C was fixed for identifiability reasons. Exploring methods to learn C or handle its uncertainty would be valuable.

Summary updated

BibTeX
@inproceedings{fox2008nonparametric,
  author = {Emily B. Fox and Erik B. Sudderth and Michael I. Jordan and Alan S. Willsky},
  title = {{Nonparametric Bayesian Learning of Switching Linear Dynamical Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2008},
  url = {https://openreview.net/forum?id=S1bJRUZ_-B},
}
Figure