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.
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