Abstract: Detecting the emergence of abrupt property changes in time series is a challenging problem. Kernel two-sample test has been studied for this task which makes fewer assumptions on the distributions than traditional parametric approaches. However, selecting kernels is non-trivial in practice. Although kernel selection for two-sample test has been studied, the insufficient samples in change point detection problem hinder the success of those developed kernel selection algorithms. In this paper, we propose KL-CPD, a novel kernel learning framework for time series CPD that optimizes a lower bound of test power via an auxiliary generative model. With deep kernel parameterization, KL-CPD endows kernel two-sample test with the data-driven kernel to detect different types of change-points in real-world applications. The proposed approach significantly outperformed other state-of-the-art methods in our comparative evaluation of benchmark datasets and simulation studies.
Introduction
Change-point detection (CPD) is the task of identifying the exact moments when the underlying statistical properties of a time series shift. This is a critical capability for applications such as medical monitoring, industrial fault detection, and financial analysis. A powerful non-parametric approach for this is the Kernel Two-Sample Test, which uses Maximum Mean Discrepancy (MMD) to measure the distance between a "past" window and a "current" window of data. If this distance exceeds a threshold, a change point is declared.
However, the effectiveness of MMD depends heavily on Kernel Selection. Standard methods for optimizing kernel parameters require samples from both the "normal" and "abnormal" distributions. In online CPD, we typically have no samples of the abnormal state before it occurs, causing traditional kernel selection heuristics—like the median bandwidth—to perform poorly in complex, high-dimensional spaces.
Methodology
The proposed KL-CPD (Kernel Learning for CPD) framework addresses the lack of abnormal data by using an auxiliary deep generative model to "hallucinate" potential changes.
The framework operates through several key innovations:
- Auxiliary Generator: A Seq2Seq RNN is trained to produce "plausibly counterfeit" samples based on historical data. These synthetic samples act as a surrogate for the unknown future distribution.
- Deep Kernel Parametrization: Instead of using fixed kernels on raw data, the time series is passed through an RNN encoder to create latent embeddings. MMD is then calculated on these embeddings.
- Min-Max Optimization: The system is trained using a GAN-like objective. The generator attempts to produce realistic but distinct samples, while the kernel parameters are optimized to maximize the MMD between real past data and these synthetic "counterfeits," while simultaneously controlling for false positives (Type-I error).
- Injective Mapping: To ensure MMD remains a valid probabilistic distance, an auto-encoder structure encourages the latent mapping to be injective, preserving the information content of the original series.
Experimental Results
KL-CPD was evaluated on diverse real-world benchmarks (Bee-Dance, Fishkiller, HASC, Yahoo) and synthetic datasets designed to test specific changes in mean, variance, and mixture components.
As illustrated in the results, KL-CPD significantly outperforms traditional methods. While the widely-used "median heuristic" fails to increase its detection power as the magnitude of change ($\epsilon_q$) grows, the KL-CPD learned kernel ($\eta_{k^*}$) shows a sharp increase in test power. Quantitatively, KL-CPD achieved the highest Area Under the Curve (AUC) on most real-world benchmarks. For instance, on the Jumping-Mean synthetic task, KL-CPD achieved an AUC of 0.945, compared to just 0.798 for the next best retrospective method.
Conclusion
KL-CPD provides a robust, data-driven solution to the kernel selection problem in change-point detection. By leveraging deep generative models to provide surrogate data, it overcomes the "curse of dimensionality" and the inherent lack of abnormal samples in online settings. Future work will explore extending this framework to non-i.i.d. time series and reducing the computational overhead for real-time edge applications.
Reference: Chang, W. C., Li, C. L., Yang, Y., & Póczos, B. (2019). Kernel Change-point Detection with Auxiliary Deep Generative Models. International Conference on Learning Representations (ICLR).
Summary updated