Enhash: A Fast Streaming Algorithm For Concept Drift Detection

Aashi Jindal, Prashant Gupta, Debarka Sengupta, Jayadeva

Introduction

In modern data-intensive environments—ranging from IoT sensor networks to financial fraud detection systems—data is rarely stationary. The underlying patterns and statistical properties of data streams often evolve over time, a phenomenon known as concept drift. While ensemble learning methods have proven effective at adapting to these changes, they frequently struggle to maintain performance under the high velocity and volume of contemporary data streams. This paper introduces Enhash, an ensemble learning algorithm designed to provide high-speed, memory-efficient adaptation to various forms of concept drift.

Problem Statement: The Challenge of Concept Drift

Concept drift occurs when the relationship between input data and target labels changes. The authors categorize these shifts into several types: abrupt (sudden changes), gradual (slow transitions), virtual (changes in data distribution without affecting class boundaries), and recurring.

Illustration of different types of concept drift, including virtual and real drift.

Existing ensemble learners often require significant computational overhead to detect these shifts and retrain models, making them unsuitable for real-time processing on resource-constrained devices.

Methodology: The Enhash Algorithm

The core innovation of Enhash lies in its use of projection hashing as a lightweight base learner. The algorithm operates through several key mechanisms:

  1. Hashing as Spatial Partitioning: Instead of building complex decision trees, Enhash utilizes a family of hash functions. Each function projects data points onto random hyperplanes, effectively partitioning the multi-dimensional feature space into discrete "buckets."
  2. Probability Estimation: Each bucket maintains a running count of the classes it has encountered. Predictions are made by aggregating the class distributions across the buckets assigned to a new sample by the ensemble of hash functions.
  3. The Forgetting Factor: To maintain plasticity, Enhash incorporates a temporal decay factor ($\lambda$). Older samples are exponentially weighted less than newer ones using the multiplier $2^{-\lambda\Delta t}$. This allows the model to naturally "forget" outdated patterns and adapt to new distributions without requiring an explicit drift detection trigger.
  4. Tie-Breaking: In cases of equal class probability within a bucket, the algorithm uses the Euclidean distance between the new sample and the mean of previous class samples to resolve the prediction.
  5. Computational Efficiency: By reducing learning to simple mathematical operations, Enhash achieves $O(1)$ time complexity per sample per estimator.

Experimental Evaluation

The authors evaluated Enhash against 10 state-of-the-art ensemble learners, including Adaptive Random Forests (ARF) and Streaming Random Patches (SRP). The benchmark suite included six synthetic datasets (e.g., transientChessboard, movingSquares) designed to simulate specific drift scenarios, and four real-world datasets (airlines, elec2, NEweather, and outdoorStream).

Key Results and Discussion

Speed and Resource Efficiency

Enhash demonstrated superior efficiency, emerging as the fastest algorithm across all 10 datasets. In many scenarios, it processed data orders of magnitude faster than competitors like Leveraging Bagging (LB). Furthermore, its memory footprint (RAM-hours) was significantly lower—often 10 times less than high-performance models like ARF.

Comparison of computational time and memory usage across various datasets.

Accuracy and Robustness

Despite its simplicity, Enhash remained highly competitive in terms of accuracy. It outperformed other models on 8 out of 10 datasets when compared to AWE, AEE, and Online RUSBoost. It showed particular strength in handling complex scenarios like mixedDrift and movingSquares, proving that random partitions can effectively approximate complex decision boundaries when aggregated in an ensemble.

Conclusion

Enhash represents a significant step forward for streaming analytics, proving that high accuracy does not necessitate high computational cost. By leveraging projection hashing and a natural decay mechanism, the algorithm provides a robust solution for detecting and adapting to concept drift. Its low resource requirements make it an ideal candidate for deployment on edge devices and IoT hardware where processing power and memory are strictly limited.

Summary updated

BibTeX
@inproceedings{jindal2021enhash,
  author = {Aashi Jindal and Prashant Gupta and Debarka Sengupta and Jayadeva},
  title = {{Enhash: A Fast Streaming Algorithm For Concept Drift Detection}},
  booktitle = {ESANN},
  year = {2021},
  doi = {10.14428/esann/2021.es2021-43},
}
Figure