Data-Driven Quickest Change Detection in (Hidden) Markov Models

Qi Zhang, Zhongchang Sun, Luis C. Herrera, Shaofeng ZouIEEE TSP 2022

TL;DR

This paper introduces novel data-driven algorithms for quickly detecting changes in Markov Models (MMs) and Hidden Markov Models (HMMs) without prior knowledge of the system's parameters. The proposed methods leverage kernel-based techniques to achieve theoretically guaranteed performance, outperforming existing approaches in terms of detection speed and computational efficiency, particularly in practical applications like fault detection.

What Problem Does This Paper Address?

The core problem is "quickest change detection" (QCD). Imagine a system (like a power grid or a communication network) that operates based on a probabilistic model. Suddenly, something changes – a fault occurs, a parameter shifts, or the environment alters. We want to detect this change as quickly as possible, but without triggering too many false alarms.

Traditional QCD methods often assume we know the exact probabilistic models before and after the change. This is a strong assumption that rarely holds in real-world scenarios. This paper tackles the more realistic "data-driven" setting where we only have access to the observed data and no prior knowledge of the underlying models (transition kernels for MMs, and transition kernels plus emission probabilities for HMMs). The challenge is to design algorithms that can learn from data and detect changes effectively under these constraints, especially when the data exhibits temporal dependencies (non-i.i.d. samples), as is common in MMs and HMMs.

Methods

The paper's main contribution is the development of kernel-based data-driven algorithms for QCD in MMs and HMMs. Here's a breakdown:

  • Kernel Mean Discrepancy (MMD): The core idea is to use MMD to measure the difference between probability distributions. MMD is a powerful tool that works in a "kernelized" feature space, allowing it to compare distributions without explicitly knowing their functional forms.
  • Second-Order Markov Chains: For MMs, the authors cleverly use second-order Markov chains (considering pairs of consecutive states) to ensure that even if the first-order transition kernels are different, their induced stationary distributions are also distinct. This is crucial for detectability.
  • CuSum-Type Test: The MMD is then used to construct a Cumulative Sum (CuSum) type test statistic. This statistic is designed to have a negative drift before the change (keeping it around zero) and a positive drift after the change, causing it to exceed a threshold and signal detection.
  • Recursive Updates: The algorithms are designed to be updated recursively, making them computationally efficient for online monitoring.
  • Theoretical Guarantees: A significant part of the work involves deriving theoretical bounds on the performance of these algorithms. They establish lower bounds on the Average Running Length (ARL) (related to false alarms) and upper bounds on the Worst-Case Average Detection Delay (WADD). Notably, they show that the WADD is at most on the order of the logarithm of the ARL, which is considered optimal.
  • HMM Extension: The approach is extended to Hidden Markov Models (HMMs) by generalizing the second-order concept to higher-order HMMs, ensuring distinctness of the observable distributions.

Datasets

The paper evaluates its algorithms on:

  • Synthetic Data: Used to demonstrate the theoretical performance and compare with existing methods.
  • Practical Applications:
    • DC Microgrid Fault Detection: A simulated DC microgrid system is used to test fault detection capabilities.
  • Photovoltaic (PV) System Fault Detection: A simulated PV system is used to detect line-to-line faults.

The paper does not introduce new benchmark datasets but rather applies its methods to simulated systems representative of real-world problems.

Key Insights and Ideas

  • Data-Driven is Key: The most significant insight is that effective change detection is possible without prior model knowledge, which is a major step towards practical deployment in complex systems.
  • MMD as a Universal Detector: MMD proves to be a versatile tool for comparing distributions in a data-driven manner, even for non-i.i.d. data from MMs and HMMs.
  • Higher-Order Models for Detectability: Using second-order (or higher) Markov chains is a clever way to ensure that changes in the underlying system dynamics translate into detectable changes in observable distributions, even when first-order stationary distributions might be the same.
  • Theoretical Optimality: The derivation of WADD bounds that are logarithmic in ARL is a strong theoretical result, suggesting that these data-driven algorithms achieve near-optimal performance.
  • Computational Efficiency: The recursive nature of the algorithms and the use of kernel methods (with efficient implementations) make them practical for real-time applications.

Key Results

  • Performance Improvement: For a given Average Running Length (ARL), the proposed algorithms (ORAL) require fewer samples to detect a change compared to existing methods (like RAL from [25]). For instance, in synthetic data experiments, ORAL often shows a lower Average Detection Delay (ADD).
  • Theoretical Bounds: The paper provides theoretical upper bounds on the Worst-Case Average Detection Delay (WADD) that are linear in the batch size m and logarithmic in the ARL threshold ψ. They also derive lower bounds on the ARL that increase exponentially with the detection threshold c.
  • Practical Validation: The algorithms are successfully applied to simulated DC microgrid and PV systems, demonstrating their effectiveness in detecting faults. In the PV system case, the data-driven approach outperforms model-based methods when system knowledge is inaccurate.
  • Computational Efficiency: The proposed algorithms have a computational complexity of O(mn) for n samples, which is more efficient than some existing kernel-based methods (e.g., O(m²n) in [25]).

Limitations and Future Work

  • Parameter Tuning: While the algorithms are data-driven, parameters like the kernel bandwidth (β), batch size (m), and threshold (c) still need to be chosen. The paper suggests strategies for selecting these, but optimal tuning can still be a challenge.
  • Assumption on Ergodicity: The theoretical analysis relies on the assumption that the Markov chains are uniformly ergodic. While common, this assumption might not hold for all possible system dynamics.
  • Computational Cost for HMMs: While the algorithms are efficient for MMs, extending to higher-order HMMs (beyond second-order) to relax assumptions might increase computational complexity.
  • Future Work: The authors suggest exploring higher-order HMMs for more relaxed assumptions and investigating the algorithms in more complex, real-world scenarios. Further theoretical analysis for different types of kernels and distributions could also be a direction.

Summary updated

BibTeX
@article{zhang2022data,
  author = {Qi Zhang and Zhongchang Sun and Luis C. Herrera and Shaofeng Zou},
  title = {{Data-Driven Quickest Change Detection in (Hidden) Markov Models}},
  journal = {IEEE TSP},
  year = {2022},
}
Figure