Detecting concept change in dynamic data streams - A sequential approach based on reservoir sampling

Russel Pears, Sripirakas Sakthithasan, Yun Sing KohMachine Learning 2014

Introduction

In the domain of data stream mining, "concept drift"—the phenomenon where the underlying statistical properties of data change over time—poses a significant challenge to model reliability. As data distributions evolve, the predictive accuracy of static models inevitably declines. To maintain performance, systems must detect these changes and adapt. However, existing detection methods often struggle with a "trilemma": balancing high computational complexity, sensitivity to gradual changes, and the risk of high false-positive rates that trigger unnecessary model updates.

This paper introduces SeqDrift2, a novel concept drift detector designed to overcome these limitations. By replacing traditional sliding windows with reservoir sampling and employing a sequential hypothesis testing approach based on the Bernstein bound, SeqDrift2 achieves $O(1)$ processing speed per instance and significantly lower false-positive rates compared to industry standards like ADWIN.

The Limitations of Sliding Windows

Most contemporary drift detectors rely on sliding windows to compare recent data against historical benchmarks. While effective for abrupt changes, this architecture has two primary drawbacks:

  1. Computational Overhead: Algorithms like ADWIN frequently re-examine every possible "cut" or partition within the window to identify change points. This results in high computational complexity, often reaching $O(W \log W)$ or worse, which is unsuitable for high-speed data streams.
  2. Hard Memory Constraints: Sliding windows operate on a first-in, first-out basis. Once data points exit the window, they are permanently discarded. This "hard" memory makes it difficult to detect very gradual drifts that occur over durations longer than the window size.

The SeqDrift2 Methodology

SeqDrift2 departs from the sliding window paradigm through several key innovations:

1. Reservoir Sampling for Historical Memory

Instead of a fixed sliding window, SeqDrift2 utilizes a reservoir to maintain the "left" (historical) repository. Reservoir sampling ensures that older instances have a non-zero probability of remaining in memory indefinitely. This provides a more stable and representative "summary" of the past, offering a better baseline for detecting gradual shifts in data distribution.

2. Sequential Hypothesis Testing

To address the complexity issue, SeqDrift2 adopts a "one-pass" strategy. Unlike detectors that test every possible cut point, SeqDrift2 only checks for distribution changes at the boundaries of new data blocks. This sequential approach drastically reduces the number of statistical tests performed, resulting in a constant $O(1)$ time complexity per instance.

3. The Bernstein Bound

Detection thresholds in SeqDrift2 are calculated using the Bernstein inequality rather than the more common Hoeffding inequality. Because the Bernstein bound accounts for the variance of the data, it provides a tighter threshold. This leads to significantly fewer false alarms, particularly in low-variance environments where random noise might otherwise be mistaken for drift.

4. Dynamic Thresholding and Correction

Standard statistical corrections for repeated testing (such as the Bonferroni correction) are often too conservative, which can suppress sensitivity. SeqDrift2 introduces a new correction factor ($CF$) that converges to $1/2$ for large numbers of tests, maintaining sensitivity without sacrificing robustness. Additionally, the algorithm includes an optimization routine that dynamically adjusts repository sizes and detection thresholds based on the observed rate of change.

Experimental Evaluation

The researchers evaluated SeqDrift2 against benchmarks including ADWIN, Page Hinkley (PHT), and EWMA using a variety of datasets:

  • Synthetic Benchmarks: Bernoulli streams, SEA concepts, Waveform, LED, RBF, and Rotating Hyperplane generators.
  • Real-World Data: The Airline dataset (flight delay prediction) and the Poker Hand dataset.

Key Results

  • Processing Speed: SeqDrift2 demonstrated a massive efficiency advantage. In tests involving 10 million instances, SeqDrift2 processed the stream in approximately 165 seconds—a 10x speedup over ADWIN, which required ~1600 seconds.
  • Robustness to Noise: On stationary data, SeqDrift2 maintained a near-zero false-positive rate. In contrast, ADWIN’s false-positive rate tended to increase alongside data variance.
  • Predictive Accuracy: When integrated with an Adaptive Hoeffding Tree classifier, SeqDrift2 outperformed ADWIN in accuracy on 10 out of 11 tested datasets. Notably, it improved accuracy by approximately 5% on the Rotating Hyperplane task.
  • Classifier Efficiency: Due to its lower false-positive rate, SeqDrift2 resulted in smaller Hoeffding Tree sizes. It prevents the classifier from "panicking" and unnecessarily pruning valid branches, leading to more stable model growth.

Conclusion and Future Work

SeqDrift2 represents a significant step forward in stream mining, proving that $O(1)$ complexity is achievable without sacrificing detection accuracy. By leveraging reservoir sampling and variance-aware bounds, it provides a robust solution for high-speed, dynamic environments.

Future research will focus on developing a "composite function" to allow users to weight the importance of false-positive rates versus detection delay. Additionally, the authors plan to explore the use of regression functions to predict detection delays and investigate how reservoir data can be fed back into classifiers to further reduce information loss in high-velocity streams.

Summary updated

BibTeX
@article{pears2014detecting,
  author = {Russel Pears and Sripirakas Sakthithasan and Yun Sing Koh},
  title = {{Detecting concept change in dynamic data streams - A sequential approach based on reservoir sampling}},
  journal = {Machine Learning},
  year = {2014},
  doi = {10.1007/s10994-013-5433-9},
}
Figure