Detecting Change-Points in Time Series by Maximum Mean Discrepancy of Ordinal Pattern Distributions

Mathieu Sinn, Ali Ghodsi, Karsten Keller

Abstract

Detecting change-points in time series is critical for applications ranging from medical diagnostics to industrial monitoring. However, real-world data often contains nuisance variables like sensor calibration drift that can trigger false positives. This paper presents a non-parametric method that compares distributions of ordinal patterns using Maximum Mean Discrepancy (MMD). By focusing on the relative order of values rather than raw magnitudes, the approach is invariant to non-linear monotonic transformations. We introduce a Corrected MMD (CMMD) to improve localization accuracy and an $O(N^2)$ algorithm for computational efficiency. Evaluations on simulated and real-world EEG/ECG data demonstrate the method's robustness and sensitivity.

Introduction

In fields like medical diagnostics (EEG/ECG) or industrial quality control, identifying exactly when a system's behavior changes is paramount. However, real-world sensors often suffer from "calibration drift"—where the baseline or scale of the measurement shifts due to physical factors rather than a change in the actual signal. Existing change-point detection methods often struggle with sensitivity to these nuisance variables and high computational complexity, often scaling cubically ($O(N^3)$) with the number of data points.

This paper introduces a fast, non-parametric method for detecting change-points by comparing the distributions of "ordinal patterns" using Maximum Mean Discrepancy (MMD). This approach is uniquely robust to non-linear monotonic transformations, allowing it to ignore sensor calibration shifts while accurately pinpointing changes in underlying system dynamics.

Methods

The proposed method combines ordinal pattern analysis with kernel-based distribution comparison.

Ordinal Pattern Distributions

Instead of raw values, the method analyzes the relative order of successive values in small windows of size $d+1$. For a given window, there are $(d+1)!$ possible permutations or "patterns." Because this representation only considers "greater than" or "less than" relationships, the resulting distribution is invariant to any strictly increasing transformation of the data.

Examples of ordinal patterns for dimension $d=3$.

Maximum Mean Discrepancy and Bias Correction

Maximum Mean Discrepancy (MMD) is used to determine if two sets of samples come from the same distribution. The time series is treated as a sequence of empirical ordinal distributions. To address the observation that standard MMD is biased toward picking change-points at the sequence edges, the authors introduce Corrected MMD (CMMD), which penalizes these edge cases to improve localization accuracy.

Efficient Computation

By deriving an iterative update formula, the computational cost of searching for a change-point is reduced from $O(N^3)$ to $O(N^2)$, enabling the processing of high-resolution, long-duration time series.

Results and Discussion

The method was evaluated using simulated AR(1) processes with non-linear distortions, as well as real-world EEG and ECG data.

Time series analysis showing raw signal (top), sliding windows (middle), and the resulting MMD (grey) and CMMD (black) curves (bottom) for change-point detection.

In simulations, the CMMD estimator correctly identified change-points despite heavy non-linear distortion, whereas standard MMD showed significant bias. On real EEG data (64,000 points), the method successfully localized the onset of an epileptic seizure at the 160-second mark. In high-resolution ECG recordings, it detected subtle heart rate increases (from 90 to 105 bpm) within a 10-second window.

Conclusion

The use of ordinal patterns provides inherent robustness to common sensor noise by focusing on the statistics of local dynamics rather than raw magnitudes. While the method offers significant scalability and invariance, it involves a trade-off between window size (for estimation accuracy) and localization precision. Future work may involve developing formal statistical significance tests to complement the current estimation framework.

Summary updated

BibTeX
@inproceedings{sinn2012detecting,
  author = {Mathieu Sinn and Ali Ghodsi and Karsten Keller},
  title = {{Detecting Change-Points in Time Series by Maximum Mean Discrepancy of Ordinal Pattern Distributions}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2012},
  url = {https://openreview.net/forum?id=ryAATlplu9},
}
Figure