Hidden Markov gating for prediction of change points in switching dynamical systems

Stefan Liehr, Klaus Pawelzik, Jens Kohlmorgen, Steven Lemm, Klaus-Robert MüllerESANN 1999

Predicting the behavior of systems that "flip" between different states—such as a machine alternating between vibration patterns or a financial market shifting between bull and bear regimes—remains a significant challenge in time-series analysis. This paper, originally presented at ESANN 1999, introduces a sophisticated framework to address these non-stationary systems.

The Problem of Non-Stationary Dynamics

Many real-world dynamical systems are non-stationary, meaning their underlying rules change over time. A common approach to modeling this is the "Mixture of Experts" (MoE) framework, where several specialized models (experts) handle different regimes, and a "gating network" decides which expert to trust at any given moment.

However, traditional gating networks suffer from a "memory" problem. Feed-forward gates only look at the current input, while recurrent gates can be notoriously difficult to train. If two different system modes look similar in a certain part of the state space (overlapping regimes), a standard gate might flicker between experts or fail to realize a switch has occurred until a large prediction error forces its hand. The authors aim to solve this "gating problem" by providing a more robust way to calculate expert activities using the history of the system.

Generalized Hidden Markov Gating

The core innovation is the Generalized Hidden Markov Gating process, which integrates three distinct sources of information to make a decision:

  1. The Experts: A set of $K$ models (linear or non-linear) that provide predictions based on past values.
  2. The HMM Backbone: Each expert is associated with a "hidden state" in a Hidden Markov Model (HMM). The probability of being in a specific state depends on the previous state.
  3. Input-Dependent Transitions: Unlike a standard HMM where transition probabilities are fixed, this model uses a state-space dependent transition matrix. A separate neural network (specifically a Radial Basis Function or RBF network) takes the current location in phase space and outputs the probabilities of transitioning from one mode to another.

By combining input location, recent performance (prediction error), and history (the previous state), the model can detect "mode changes" faster and more accurately than traditional methods.

Key Insights and Anticipatory Gating

Because the transition matrix depends on the input, the model can "learn" that certain regions of the state space are "danger zones" where a switch is likely to happen. This allows for anticipatory gating, where the model prepares for a change point before it fully manifests in the output signal.

Figure 2: Time series analysis showing the model's performance during prediction and self-driven iteration phases. The lower trace shows the gating signal identifying regime switches.

Furthermore, the model is capable of self-driven iteration. Because the gating is tied to the state space, the model can simulate the system's future behavior, including future mode changes, without needing external input. In regions where regimes overlap, the HMM's "memory" acts as a tie-breaker, preventing the model from jittering between experts.

Experimental Results

The authors evaluated their method on two complex benchmarks: a Noisy Switching Logistic Map (testing sudden, deterministic switches) and the Lorenz System (testing identification of "wings" in a chaotic attractor). The HMM-based approach was compared against the Annealed Competition of Experts (ACE) method.

Figure 3: Quantitative comparison of HMM and ACE algorithms across different systems and test sets.

As shown in the results table, the HMM approach consistently outperformed the ACE method. In the Lorenz system, the HMM approach achieved a normalized mean squared error (NMSE) of 0.0282 on test data, compared to the ACE method's 0.0397. Beyond raw accuracy, the HMM method detected mode changes significantly earlier and proved much more stable during "test" phases where the model had to rely on its own previous predictions (causal) rather than true past values (acausal).

Conclusion

The Hidden Markov Gating framework provides a robust solution for modeling switching dynamical systems by incorporating state-dependent transitions and historical memory. While the EM-based training procedure is computationally intensive, the gains in detection speed and stability are significant. Future work aims to apply this to natural signals, such as climatological and financial data, where mode changes are inherently noisier.

Summary updated

BibTeX
@inproceedings{liehr1999hidden,
  author = {Stefan Liehr and Klaus Pawelzik and Jens Kohlmorgen and Steven Lemm and Klaus-Robert Müller},
  title = {{Hidden Markov gating for prediction of change points in switching dynamical systems}},
  booktitle = {ESANN},
  year = {1999},
}
Figure