Data-Driven MCMC for Learning and Inference in Switching Linear Dynamic Systems

Sang Min Oh, James M. Rehg, Tucker R. Balch, Frank DellaertAAAI 2005

Abstract: This paper presents a novel inference algorithm for Switching Linear Dynamic Systems (SLDS) that integrates Rao-Blackwellised MCMC with a data-driven proposal distribution. By analytically integrating out continuous variables and utilizing domain-specific cues to guide the sampling process, the proposed method achieves faster convergence and more robust behavior recognition compared to traditional deterministic approximations. The approach is demonstrated on the complex task of decoding honeybee "waggle dances" from video tracking data.

Introduction

Modeling complex, non-linear motion often requires decomposing it into a sequence of simpler, linear regimes. Switching Linear Dynamic Systems (SLDS) provide a powerful framework for this by transitioning between different Linear Dynamic Systems (LDS) over time. However, exact inference in SLDS is computationally intractable because the number of possible switching sequences grows exponentially with the number of time steps.

Existing solutions typically fall into two categories: deterministic approximations (like the Viterbi algorithm), which are fast but prone to over-segmentation and lack confidence measures, and standard MCMC methods, which provide full posterior distributions but converge slowly in high-dimensional spaces. This research bridges the gap by introducing a framework that is both efficient and robust.

Methodology

The authors propose a two-pronged strategy to make MCMC viable for real-world SLDS applications:

  1. Rao-Blackwellisation: Instead of sampling both discrete switching labels ($L$) and continuous hidden states ($X$), the continuous states are analytically integrated out using the Rao-Blackwell theorem. This collapses the sampling space significantly, leaving the algorithm to focus solely on the discrete labels. The continuous states are then handled efficiently via standard RTS smoothing.
  2. Data-Driven MCMC (DD-MCMC): To prevent the MCMC sampler from wandering aimlessly, domain-specific "cues" are extracted from the data to construct a proposal distribution. During the learning phase, "label-cue models" are trained to correlate data features (e.g., changes in a bee's heading) with specific labels. In the inference phase, these models generate proposal priors that guide the sampler directly toward high-probability regions of the state space.
Graphical model of an SLDS where Lt represents discrete labels, Xt represents continuous hidden states, and Zt represents observations.

Experimental Evaluation

The primary evaluation was conducted on real-world honeybee dance sequences. The dataset consisted of video-based tracking data from six sequences ranging from 600 to 1,054 frames. The observation vectors included 2D coordinates and heading angles, used to decode three distinct behaviors: "waggle," "left turn," and "right turn."

Results and Discussion

The DD-MCMC approach significantly outperformed the approximate Viterbi method. While Viterbi suffered from frequent "insertion errors"—incorrectly over-segmenting the dance into tiny fragments—the DD-MCMC MAP estimates were closely aligned with human-labeled ground truth.

Illustration of the data-driven proposal process over 660 frames of honeybee tracking data, showing temporal segmentation and cue-based probability distributions.

A key advantage of this approach is its ability to discover the full posterior distribution. This allows researchers to quantify uncertainty; for instance, when a bee's path is disrupted by a collision, the posterior correctly reflects competing hypotheses rather than forcing a single, potentially incorrect, "best" answer. On average, the algorithm converged within approximately 4,300 samples across the tested datasets.

Conclusion and Future Work

By combining the analytical efficiency of Rao-Blackwellisation with the targeted search of data-driven proposals, this framework provides a robust solution for SLDS inference. While the algorithm's efficiency depends on the quality of the selected cues, it demonstrates broad potential for other time-series challenges, such as human activity recognition and econometrics.

Summary updated

BibTeX
@inproceedings{oh2005data,
  author = {Sang Min Oh and James M. Rehg and Tucker R. Balch and Frank Dellaert},
  title = {{Data-Driven MCMC for Learning and Inference in Switching Linear Dynamic Systems}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2005},
  url = {https://openreview.net/forum?id=By-9zebObB},
}
Figure