Unified Treatment of Hidden Markov Switching Models

Silvia ChiappaarXiv 2011 · DOI

Abstract

Many real-world problems encountered in several disciplines deal with the modeling of time-series containing different underlying dynamical regimes, for which probabilistic approaches are very often employed. In this paper we describe several such approaches in the common framework of graphical models. We give a unified overview of models previously introduced in the literature, which is simpler and more comprehensive than previous descriptions and enables us to highlight commonalities and differences among models that were not observed in the past. In addition, we present several new models and inference routines, which are naturally derived within this unified viewpoint.

Introduction

Real-world time-series data—whether in finance, biology, or robotics—often switch between different underlying "regimes," such as a market moving from a bull to a bear state. While the Hidden Markov Model (HMM) is the standard tool for modeling these transitions, it suffers from several rigidities: it assumes observations are independent given the state, it implicitly assumes state durations follow a geometric distribution, and it struggles to distinguish underlying dynamics from measurement noise.

This paper addresses the fragmentation in literature by providing a "Rosetta Stone" for time-series modeling. By unifying various Hidden Markov Switching Models (HMSMs) into a single framework of probabilistic graphical models, we can simplify complex inference routines and introduce novel extensions for more realistic modeling.

The Graphical Model Approach

The core innovation of this work is the use of Probabilistic Graphical Models (Belief Networks) to represent these systems. By representing random variables as nodes and dependencies as arrows, we can use visual rules—such as d-separation and moralization—to assess statistical independence and derive algorithms.

Standard Hidden Markov Model (HMM) represented as a directed graphical model.

The standard HMM, shown in Figure 1, serves as the foundation. In this model, the hidden state $s_t$ depends only on the previous state $s_{t-1}$, and the observation $v_t$ depends only on the current state $s_t$. This structure, while computationally efficient, is often too restrictive for complex physical processes.

From HMMs to SARMs and Beyond

To overcome the limitations of the standard HMM, the paper systematically builds more complex structures:

  • Switching Autoregressive Models (SARM): These models add links between past and current observations to capture local dependencies, allowing for smoother transitions and trends.
  • Hidden Semi-Markov Models (HSMM): By introducing "duration-count" variables, these models allow for any duration distribution (e.g., Poisson or Uniform) instead of being restricted to geometric distributions.
  • Switching Linear Gaussian State-Space Models (SLGSSM): These add a continuous hidden state to model underlying dynamics separately from noisy observations.
Comparison of directed (a) and undirected (b) graphical representations for Switching Autoregressive Models (SARM).

As illustrated in Figure 5, representing a SARM as a directed graph (a) clearly shows the autoregressive dependency $v_{t-1} \to v_t$. Converting this to an undirected graph (b) through moralization helps in identifying the cliques necessary for efficient inference algorithms.

Inference and Computational Insights

A key insight of this graphical perspective is that inference algorithms, such as the forward-backward algorithm, are essentially message-passing routines on a graph. The paper introduces an "increasing count" trick for duration modeling, which is superior for change-point models as it allows the system to exactly "cut" dependencies on the past when a new regime begins. Furthermore, the framework clarifies computational costs, showing how to reduce the complexity of explicit duration modeling from $O(TS^2d_{max}^2)$ to $O(TS(S+d_{max}))$.

Experimental Validation

The theoretical properties of these models were demonstrated using artificial datasets:

  • Noisy Sinusoids: SARMs significantly outperformed standard HMMs in segmenting a 200-step time-series with switching frequencies.
  • 3-Regime SARM: In a 4004-step series, the Uniform SARM (USARM) achieved a segmentation error of only 0.07%, compared to 0.16% for the standard Geometric SARM (GSARM), proving the value of explicit duration modeling.

Conclusion and Future Work

This unified graphical treatment simplifies the understanding and derivation of switching models. While powerful, some challenges remain, such as the mathematical intractability of exact inference in SLGSSMs, which requires approximations like Gaussian Collapsing. Future work will focus on more robust parameter learning via Expectation-Maximization (EM) and improving the scalability of duration-based models for very long-lived regimes.

Summary updated

BibTeX
@misc{chiappa2011unified,
  author = {Silvia Chiappa},
  title = {{Unified Treatment of Hidden Markov Switching Models}},
  year = {2011},
  eprint = {1104.1992},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1104.1992},
}
Figure