Monitoring Incremental Histogram Distribution for Change Detection in Data Streams

Raquel Sebastião, João Gama, Pedro Pereira Rodrigues, João BernardesKnowledge Discovery from Sensor Data @ KDD 2008

Introduction

In the era of high-velocity data streams—such as sensor networks, financial transactions, and network traffic—detecting "concept drift" is critical. Concept drift occurs when the underlying statistical properties of a data stream change over time, rendering existing models obsolete. This paper presents a novel framework for real-time change detection using incremental histograms and an adaptive-cumulative windowing strategy designed to balance computational efficiency with detection sensitivity.

Methodology

The proposed approach builds upon the Partition Incremental Discretization (PiD) algorithm, which uses a two-layer architecture to maintain an accurate summary of data that can only be processed once.

Error-Driven Binning

To ensure the histogram remains a reliable proxy for the true distribution, the authors introduce a formula for the number of bins ($N_1$) in the first discretization layer. This formula is constrained by a user-defined relative error bound ($\epsilon$) and a confidence level ($1-\delta$). By strictly controlling the quadratic error, the system maintains high-fidelity representations even under high-speed conditions.

Figure 1: Visualization of the relationship between error bounds ($\epsilon$), confidence levels ($\delta$), and the resulting number of bins required for stable distribution representation.

Adaptive-Cumulative Window Model (ACWM)

The core of the detection logic is the Adaptive-Cumulative Window Model (ACWM). Instead of static sliding windows, ACWM monitors a Reference Window (representing historical data) and a Current Window (representing recent observations).

KLD Asymmetry and Dynamic Stepping

To compare these windows, the authors utilize Kullback-Leibler Divergence (KLD). Recognizing that KLD is asymmetric ($KLD(p||q) \neq KLD(q||p)$), they use the absolute difference between these two directions as a sensitive discrepancy measure. When this difference exceeds a high quantile threshold, a change is flagged.

To optimize reaction time, a dynamic stepping mechanism is employed. As the discrepancy between distributions increases, the algorithm automatically reduces the "step" size of the current window, allowing the system to "zoom in" and pinpoint the drift more rapidly.

Figure 2: The dynamic stepping mechanism illustrates how the window step size is inversely proportional to the absolute difference in KLD directions, allowing for faster reaction to emerging drifts.

Experimental Evaluation

The researchers evaluated their approach across diverse domains:

  • Artificial Data: Controlled streams with manual shifts in mean and standard deviation.
  • Industrial Monitoring: Data from high-speed machining centers (CNC) tracking variables like vibration and surface roughness.
  • Medical Diagnostics: Fetal Cardiotocography (CTG) signals used to detect changes in fetal well-being.
  • MAGIC Gamma Telescope: A high-dimensional benchmark for simulating complex concept drifts.

Key Results

The ACWM approach demonstrated superior performance compared to traditional nonparametric tests like the Kolmogorov-Smirnov Test (KST). In artificial tests, the proposed method achieved a Recall of 1.00, catching every drift instance, whereas KST missed several (Recall 0.71–0.86). Furthermore, the adaptive stepping mechanism significantly reduced detection delay. In the medical CTG application, the algorithm detected fetal state transitions earlier than the established SisPorto® system, highlighting its potential for real-time clinical warnings.

Conclusion

By leveraging the inherent asymmetry of KLD and an error-driven incremental histogram, this research provides a robust and practical solution for change detection in non-stationary data streams. Future work will focus on extending this univariate method to multivariate problems and exploring alternative synopsis techniques, such as wavelets, to further enhance compression and sensitivity.

Summary updated

BibTeX
@inproceedings{sebastiao2008monitoring,
  author = {Raquel Sebastião and João Gama and Pedro Pereira Rodrigues and João Bernardes},
  title = {{Monitoring Incremental Histogram Distribution for Change Detection in Data Streams}},
  booktitle = {Knowledge Discovery from Sensor Data @ KDD},
  year = {2008},
  doi = {10.1007/978-3-642-12519-5\_2},
}
Figure