Abstract
Concept drift detection is critical for maintaining the performance of machine learning models on evolving data streams. This paper presents MCD-DD, an unsupervised online drift detection method that leverages a deep learning-based Sample Set Encoder and a novel Maximum Concept Discrepancy (MCD) metric. By employing contrastive learning with time-aware sampling, MCD-DD learns robust concept representations without human labels. Experimental results on synthetic and real-world datasets demonstrate that MCD-DD achieves superior precision and F1-scores compared to traditional statistical methods.
Introduction
In the era of high-velocity data streams—ranging from sensor networks to financial transactions—the underlying distribution of data often shifts over time, a phenomenon known as concept drift. Traditional detection methods typically fall into two categories: supervised methods, which require immediate ground-truth labels often unavailable in real-time, and statistical methods like the Kolmogorov-Smirnov (KS) test, which struggle with high-dimensional, noisy data. To address these challenges, we propose the Maximum Concept Discrepancy-based Drift Detector (MCD-DD), an unsupervised, online, and adaptive framework designed to handle complex data shifts.
Methodology
The MCD-DD architecture is built upon three primary components: a Sample Set Encoder, the Maximum Concept Discrepancy (MCD) metric, and a contrastive learning objective.
Sample Set Encoder and MCD
Rather than processing individual data points, MCD-DD samples sets from sliding sub-windows. A Multi-Layer Perceptron (MLP) encodes these sets into compact "concept representations." The Maximum Concept Discrepancy (MCD) metric, inspired by Maximum Mean Discrepancy (MMD), quantifies the distance between these embeddings. A drift is signaled when the discrepancy between adjacent sub-windows exceeds a dynamically adjusted threshold.
Contrastive Learning with Time-Aware Sampling
To train the encoder without labels, the system utilizes temporal coherence—the assumption that data points close in time likely represent the same concept. The model is optimized using:
- Positive pairs: Samples from the same sub-window.
- Weak negative pairs: Samples from the same window with added noise.
- Strong negative pairs: Samples from temporally distant windows with heavy noise.
Experimental Evaluation
MCD-DD was evaluated across 11 datasets, including 7 synthetic tasks (Gaussian, Gamma, Lognormal, and Weibull distributions) and 4 real-world datasets (INSECTS and EEG).
Performance and Explainability
The method consistently outperformed established baselines such as MMD-GK and the KS Test, achieving near-perfect precision on synthetic benchmarks. A key advantage of MCD-DD is its explainability. By plotting MCD values between sub-windows, the system generates heatmaps that visually distinguish between drift types. For instance, sudden drifts appear as sharp triangular boundaries, while gradual drifts manifest as fading gradients.
Conclusion
MCD-DD provides a robust, unsupervised solution for online concept drift detection. By combining deep representation learning with contrastive objectives, it effectively identifies shifts in high-dimensional data without the need for labels. Future research will explore historical memory mechanisms to better identify recurring seasonal patterns and the integration of weak supervision where minimal labeled data is available.
Summary updated