NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sequential Change Detection by Optimal Weighted $\ell_2$ Divergence

Liyan Xie, Yao Xie · DOI

Abstract

We present a new non-parametric statistic, called the weighed $\ell_2$ divergence, based on empirical distributions for sequential change detection. We start by constructing the weighed $\ell_2$ divergence as a fundamental building block for two-sample tests and change detection. The proposed statistic is proved to attain the optimal sample complexity in the offline setting. We then study the sequential change detection using the weighed $\ell_2$ divergence and characterize the fundamental performance metrics, including the average run length (ARL) and the expected detection delay (EDD). We also present practical algorithms to find the optimal projection to handle high-dimensional data and the optimal weights, which is critical to quick detection since, in such settings, there are not many post-change samples. Simulation results and real data examples are provided to validate the good performance of the proposed method.

Introduction

In many real-world scenarios—ranging from monitoring power grid stability to analyzing human gestures in computer vision—it is critical to detect when the underlying distribution of a data stream shifts. This task, known as sequential change detection, requires identifying a change point as quickly as possible after it occurs while maintaining a low false alarm rate.

Traditional methods, such as the Cumulative Sum (CUSUM) algorithm, are highly effective when the pre- and post-change distributions are known or follow specific parametric forms (e.g., Gaussian). However, in modern applications involving high-dimensional or complex data, these assumptions often fail. While non-parametric alternatives like Maximum Mean Discrepancy (MMD) or Wasserstein distance exist, they can be computationally prohibitive or require a large number of post-change samples to achieve statistical power, leading to significant detection delays. This paper introduces a weighted $\ell_2$ divergence statistic designed to provide a robust, sample-efficient, and computationally tractable solution for non-parametric sequential change detection.

Methodology

The Weighted $\ell_2$ Divergence Statistic

The core of the proposed method is a statistic based on the $\ell_2$ divergence between empirical distributions. Unlike the commonly used $\chi^2$ divergence, which can become numerically unstable when dealing with rare events (small probabilities in the denominator), the $\ell_2$ divergence remains bounded and reliable.

To construct the test, the authors split samples into "left" and "right" segments and compute a cross-term statistic $\chi$ that measures the discrepancy between the two. A key innovation is the introduction of optimal weights ($\sigma_i$). By utilizing a convex optimization framework, these weights can be tuned to maximize the "signal" of a potential change, provided some prior information about the nature of the shift is available.

Dimensionality Reduction and Projection

Handling high-dimensional continuous data is a significant challenge for non-parametric methods. To address this, the authors employ Wasserstein-based principal differences analysis. This technique identifies an optimal one-dimensional subspace that maximizes the distance between the pre-change and post-change distributions. By projecting complex data onto this subspace and then binning the results into a histogram, the method transforms a high-dimensional problem into a manageable univariate one without losing the essential characteristics of the change.

Sequential Framework

For streaming data, the method employs a sliding window approach. At each time step $t$, the algorithm scans back through potential change points $k$ within the window, calculating the weighted $\ell_2$ statistic. A change is signaled the moment this statistic exceeds a pre-defined threshold. The paper provides theoretical characterizations for the Average Run Length (ARL)—the time between false alarms—and the Expected Detection Delay (EDD).

Experimental Results

Synthetic Simulations

The proposed method was evaluated against several benchmarks, including Hotelling’s $T^2$ test and MMD, across various scenarios such as mean shifts, covariance shifts, and transitions from Gaussian to Mixture models. The $\ell_2$ method consistently demonstrated superior detection power, particularly in cases where distribution changes were subtle or non-Gaussian.

In online scenarios, the efficiency of the weighted $\ell_2$ statistic was evident. For discrete distributions, the proposed method achieved detection in approximately 20 samples, whereas MMD required ~258 samples and Hotelling’s $T^2$ required ~406 samples to reach the same level of confidence.

Real-World Application: Gesture Recognition

The method was applied to the MSRC-12 Kinect Gesture Dataset, which tracks 54 skeletal attributes during human movement. The goal was to detect the transition between different gestures (e.g., from "bowing" to "throwing"). The $\ell_2$ statistic exhibited a clear, linear increasing trend immediately following a gesture change. In contrast, competing metrics like KL divergence and Hotelling’s $T^2$ produced significantly noisier signals, making it difficult to establish a reliable threshold for real-time applications.

Conclusion and Future Work

The weighted $\ell_2$ divergence provides a near-optimal framework for sequential change detection, attaining the theoretical sample complexity limit of $O(\sqrt{n}/\epsilon^2)$. Its robustness to high-dimensional data and numerical stability make it a strong candidate for real-world monitoring systems.

However, some challenges remain. The Average Run Length is highly sensitive to threshold calibration, often requiring some historical data for tuning. Additionally, while the projection method is powerful, the subsequent binning of continuous data relies on manual heuristics. Future research may focus on automating binning strategies (e.g., using recursive partitioning) and developing more computationally efficient "sketching" strategies for extremely large-scale windows.

Summary updated

BibTeX
@article{xie2021sequential,
  author = {Liyan Xie and Yao Xie},
  title = {{Sequential Change Detection by Optimal Weighted $\textbackslash\{\}ell\_2$ Divergence}},
  journal = {IEEE J. Sel. Areas Inf. Theory},
  year = {2021},
  doi = {10.1109/jsait.2021.3072960},
}
Figure