Optimal Bayesian Quickest Detection for Hidden Markov Models and Structured Generalisations

Jasmin James, Jason J. Ford, Jenna Riseley, Timothy L. Molloy

Abstract

Quickest Change Detection (QCD) aims to identify statistical shifts in data streams with minimal delay while controlling false alarms. While asymptotic optimality has been established for many scenarios, exact optimality for Hidden Markov Models (HMMs) remained elusive. This work provides a rigorous mathematical proof that Shiryaev’s rule—a threshold test on the posterior probability of change—is exactly optimal for HMMs. By utilizing an augmented state-space representation and dynamic programming, we bridge the gap between heuristic solutions and theoretical perfection.

Introduction

In real-time monitoring, engineers face a fundamental trade-off: detecting a change as fast as possible versus avoiding costly false alarms. This problem, known as Quickest Change Detection (QCD), is well-understood for independent and identically distributed (i.i.d.) data. However, real-world signals often exhibit temporal dependencies best modeled by Hidden Markov Models (HMMs).

Previous research primarily focused on asymptotic optimality, which assumes a vanishingly small false alarm rate. This paper addresses the non-asymptotic case, proving that a simple threshold-based rule is the optimal strategy for HMMs regardless of the false alarm tolerance.

Methodology

The core innovation lies in the construction of an Augmented HMM. Instead of treating the change point as an external parameter, the authors incorporate it into a larger state space $Z_k$. This state space tracks both the underlying HMM regime and whether the change has occurred.

By reframing QCD as a state-estimation problem within this augmented framework, the authors apply the Bellman Equation from optimal control theory. They demonstrate that the "value function"—representing the expected cost of continuing observations versus stopping—is concave. This geometric property ensures that the optimal stopping set is an interval, formally proving that the best strategy is to monitor the posterior probability of the "no-change" state and trigger an alarm when it falls below a specific threshold $h$.

Key Results

The theoretical findings were validated through a synthetic HMM simulation. The setup involved a transition from a 2-state HMM to a 3-state HMM at $k=5000$, subject to Gaussian observation noise.

Simulation of a change at k=5000 showing the sharp drop in the posterior probability of the 'no-change' state.

As shown in the figure above, the posterior probability $\hat{M}_k^1$ (the belief that no change has occurred) remains near unity during the pre-change regime. Immediately following the transition at $k=5000$, the probability plummets toward zero (reaching $10^{-300}$), providing a clear and unambiguous signal for detection. This confirms that the recursive HMM filter provides a highly sensitive and computationally efficient detection mechanism.

Discussion and Limitations

This work establishes Shiryaev’s rule as the theoretical ceiling for detection performance in standard HMMs. The recursive nature of the solution makes it ideal for real-time implementation, as it only requires updating a small belief vector at each time step.

However, some limitations remain. The current proof applies to standard HMMs where observations depend solely on the current state; extensions to generalized HMMs (where observations depend on previous measurements) are still needed. Furthermore, the model assumes known transition and observation parameters for both regimes. Future research may explore "exotic" priors where the change probability is state-dependent, further broadening the applicability of this augmented state-space approach.

Summary updated

BibTeX
@article{james2023optimal,
  author = {Jasmin James and Jason J. Ford and Jenna Riseley and Timothy L. Molloy},
  title = {{Optimal Bayesian Quickest Detection for Hidden Markov Models and Structured Generalisations}},
  journal = {Automatica},
  year = {2023},
  doi = {10.1016/j.automatica.2023.111232},
}
Figure