Kernel Density Estimation-Based Markov Models with Hidden State

Gustav Eje Henter, Arne Leijon, W. Bastiaan KleijnarXiv 2018

Abstract

Traditional time-series modeling often relies on parametric assumptions that fail to capture the complexity of real-world, non-Gaussian data. This paper presents the KDE-HMM, a novel nonparametric framework that fuses the local flexibility of Kernel Density Estimation (KDE) with the structural modeling capabilities of Hidden Markov Models (HMMs). By deriving specialized Expectation-Maximization (EM) algorithms for bandwidth optimization, the authors demonstrate that KDE-HMMs can effectively learn complex distributions and long-term dependencies, outperforming standard parametric approaches on both synthetic and real-world datasets.

Introduction

Most time-series modeling utilizes parametric models, such as Autoregressive (AR) models or HMMs with Gaussian outputs. While efficient, these models make rigid assumptions—for instance, that noise is always Gaussian. In real-world scenarios involving nonlinear, non-Gaussian data with both short-term correlations and long-term structural patterns, these assumptions often break down. Conversely, nonparametric models like KDE-based Markov models (KDE-MMs) offer flexibility but typically suffer from "short memory," limited to a few preceding steps. The KDE-HMM addresses this gap by providing a model flexible enough to learn any distribution while capturing long-term dependencies through hidden states.

The KDE-HMM Architecture

The core contribution of this work is the integration of hidden state variables into a nonparametric framework. In a KDE-HMM, a hidden state variable $Q_t$ determines which of $M$ different KDE-based Markov models is active at any given time. This allows the system to switch between different "regimes," such as volatile versus quiescent periods in financial data.

Comparison of Markov models: (a) second-order Markov model, (b) model with hidden state, and (c) the combined KDE-HMM model.

Instead of a fixed parametric formula, the model employs Kernel Conditional Density Estimation (KCDE). It predicts future values by identifying similar "contexts" in the training data and generating new points by adding "kernel noise" to these past examples.

Learning and Parameter Estimation

Training a KDE-HMM is challenging because it requires optimizing the "bandwidth" (smoothing parameter) alongside state transitions. The authors derive a novel Expectation-Maximization (EM) algorithm to handle this.

The TRAINKDE-HMM algorithm for parameter estimation and bandwidth selection.

The algorithm uses reverse-Jensen bounds to create "guaranteed-ascent" update equations, ensuring the model's likelihood improves with each iteration. Additionally, "relaxed" update formulas are provided to accelerate training in practical applications without compromising stability.

Experimental Evaluation

The model was evaluated across three distinct data types:

  1. Synthetic AR-HMM Data: Generated from processes with either Gaussian or complex, bimodal Gaussian Mixture Model (GMM) noise.
  2. Laser Intensity Data: A chaotic time series from the Santa Fe prediction contest, characterized by growing and then collapsing oscillations.
  3. ECG Signals: Raw heart rate data from the MIT-BIH database, featuring specific, repeating structural pulses.

Key Insights and Results

  • Automatic Relevance Determination: The model learns different bandwidths for different "lags" (past time steps). If a specific lag is uninformative, the model sets a very wide bandwidth, effectively ignoring that part of the history.
  • Context-Dependent Smoothing: Hidden states allow the model to apply varying levels of smoothing. It can use narrow kernels in dense regions of a chaotic attractor to capture fine detail and wider kernels in sparse regions for stability.
  • Performance: On synthetic data with non-Gaussian noise, KDE-HMMs achieved significantly higher log-probabilities than standard AR-HMMs. On real-world Laser and ECG datasets, the model consistently outperformed traditional HMM and AR models.

Conclusion

The KDE-HMM represents a significant step forward in nonparametric time-series modeling. By combining the strengths of KDE and HMMs, it provides a robust tool for analyzing complex signals. While computational complexity scales with the training data size, the authors suggest using dual-tree algorithms for acceleration. Future work includes exploring more general initialization strategies and applying the model to high-quality speech synthesis.

Summary updated

BibTeX
@misc{henter2018kernel,
  author = {Gustav Eje Henter and Arne Leijon and W. Bastiaan Kleijn},
  title = {{Kernel Density Estimation-Based Markov Models with Hidden State}},
  year = {2018},
  eprint = {1807.11320},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.11320},
}
Figure