Analysis of Nonstationary Time Series Using Locally Coupled Gaussian Processes

Luca Ambrogioni, Eric MarisarXiv 2016 · DOI · arXiv

Abstract

The analysis of nonstationary time series is critical across scientific disciplines, from physics to neuroscience. While Gaussian process (GP) regression offers a robust framework for time series analysis, standard models often struggle with signals whose statistical properties evolve over time. This paper introduces a novel framework that utilizes locally stationary Gaussian processes coupled via a Hidden Markov Model (HMM). This approach allows for the construction of complex nonstationary covariance functions from simpler stationary components, with parameters estimated in closed-form. We demonstrate the efficacy of this method through synthetic examples—including frequency-modulated oscillations and state-switching dynamics—and an application to real-world magnetoencephalographic (MEG) brain activity data.

Introduction

Gaussian Process (GP) regression has become a cornerstone of modern time series analysis due to its flexibility and non-parametric nature. However, a significant limitation of standard GP models is the assumption of stationarity, which posits that the signal's underlying statistical characteristics, such as frequency or variance, remain constant. In many real-world applications, such as neuroscience or finance, signals are inherently nonstationary. For instance, brain oscillations may shift in frequency, or financial volatility may spike suddenly.

Modeling such "unsteady" data presents two primary challenges: ensuring the resulting nonstationary covariance function remains positive definite and managing the high computational cost associated with estimating time-varying parameters. This paper proposes a "Locally Coupled GP" framework to address these hurdles efficiently.

Methodology: Locally Coupled GP Regression

The proposed framework decomposes a complex, nonstationary signal into a series of local segments. Each segment is modeled using a simple, stationary GP.

The Mixture Model

The global nonstationary process is defined as a weighted sum of independent local GPs. Because any linear combination of Gaussian processes remains a Gaussian process, this construction ensures that the global model is mathematically sound and the covariance function is guaranteed to be positive definite.

HMM Coupling and Inference

To prevent erratic transitions between segments, the hyperparameters of the local GPs (such as frequency or length-scale) are treated as hidden states in a Hidden Markov Model (HMM). This coupling enforces temporal consistency, allowing the model to smoothly track changes or identify discrete state switches.

By discretizing the parameter space, the authors leverage the Forward-Backward algorithm to perform exact inference. This allows for the estimation of optimal parameters in closed-form, bypassing the need for computationally intensive Markov Chain Monte Carlo (MCMC) sampling or optimization routines prone to local minima.

Experimental Results

Synthetic Frequency Modulation (Chirp Signal)

The model was first tested on a "chirp" signal—a deterministic oscillation where the frequency increases linearly over time—embedded in heavy Gaussian noise.

Analysis of a frequency-modulated 'chirp' signal using locally coupled GPs.

As shown in Figure 1, the locally coupled GP (Panel B, green line) tracks the underlying signal (blue line) far more accurately than a standard stationary GP (red line). While the stationary model only denoises the portion of the signal matching its fixed prior, the locally coupled model adapts to the changing frequency. Panel C demonstrates the model's ability to recover the instantaneous frequency, while Panel D visualizes the resulting nonstationary covariance structure.

State-Switching and Brain Activity

In a second synthetic test involving a signal that switches between broadband noise and rhythmic oscillations, the locally coupled GP achieved a 0.97 correlation with the ground truth. In contrast, stationary models failed to capture both states simultaneously, with an oscillatory-only GP achieving a correlation of only 0.33.

Finally, the model was applied to real MEG data to detect "alpha bursts" (7–13 Hz) in the human brain. The framework successfully distinguished these rhythmic bursts from background irregular activity, providing a clearer picture of transient neural dynamics than traditional filtering methods.

Discussion and Conclusion

The locally coupled GP framework offers a modular and computationally efficient solution for nonstationary time series analysis. By "stitching" together stationary building blocks through an HMM, the model gains the flexibility to handle complex dynamics without sacrificing mathematical tractability.

Future work may address the current reliance on parameter discretization and the approximations used for overlapping windows. Nevertheless, the ability to perform closed-form inference on nonstationary data represents a significant step forward for real-time signal processing and the study of multi-stable dynamical systems.

Summary updated

Abstract

The analysis of nonstationary time series is of great importance in many scientific fields such as physics and neuroscience. In recent years, Gaussian process regression has attracted substantial attention as a robust and powerful method for analyzing time series. In this paper, we introduce a new framework for analyzing nonstationary time series using locally stationary Gaussian process analysis with parameters that are coupled through a hidden Markov model. The main advantage of this framework is that arbitrary complex nonstationary covariance functions can be obtained by combining simpler stationary building blocks whose hidden parameters can be estimated in closed-form. We demonstrate the flexibility of the method by analyzing two examples of synthetic nonstationary signals: oscillations with time varying frequency and time series with two dynamical states. Finally, we report an example application on real magnetoencephalographic measurements of brain activity.
BibTeX
@misc{ambrogioni2016analysis,
  author = {Luca Ambrogioni and Eric Maris},
  title = {{Analysis of Nonstationary Time Series Using Locally Coupled Gaussian Processes}},
  year = {2016},
  eprint = {1610.09838},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1610.09838},
}

Loading related content...

Figure