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

Class Distribution Monitoring for Concept Drift Detection

Diego Stucchi, Luca Frittoli, Giacomo Boracchi

Abstract

Concept drift detection is vital for maintaining the performance of machine learning models in non-stationary environments. Traditional methods often rely on monitoring classification errors or global data distributions, which can miss subtle "virtual drifts" or suffer from sensitivity dilution. This paper presents Class Distribution Monitoring (CDM), a framework that monitors individual class-conditional distributions using nonparametric change-detection algorithms. CDM provides statistical guarantees for false alarm rates, offers diagnostic insights into which classes are drifting, and demonstrates superior sensitivity to both real and virtual drifts compared to state-of-the-art error-based and distribution-based methods.

Introduction

In machine learning for streaming data, "concept drift"—a change in the underlying data distribution—can silently degrade model performance. Most existing detection methods fall into two categories: error-based monitoring and distribution-based monitoring. Error-based methods watch for drops in accuracy but often miss "virtual drifts," where the data distribution changes without immediately impacting the current classifier's decision boundaries. Distribution-based methods monitor the entire input space but can suffer from "dilution," where a drift in a small class is masked by the stability of larger classes.

Furthermore, practitioners often struggle to control the Average Run Length ($ARL_0$), the expected time between false alarms. CDM addresses these challenges by segmenting the monitoring problem by class, providing both sensitivity and statistical rigor.

The CDM Framework

CDM treats each class as a separate monitoring problem, leveraging supervised information that is often underutilized in distribution-based detectors.

QT-EWMA Building Block

At its core, CDM uses QT-EWMA (QuantTree Exponentially Weighted Moving Average). QuantTree is a nonparametric method that partitions the data space into bins such that each bin has an equal probability of receiving a sample under stationary conditions. This allows for effective monitoring without assuming a specific distribution family.

Multi-Stream Monitoring

Instead of a single global detector, CDM maintains $M$ detectors, one for each of the $M$ classes. When a labeled sample $(x, y)$ arrives, it is routed to the detector corresponding to class $y$. If any single class-specific detector exceeds its threshold, CDM triggers a concept drift alarm.

Statistical Control

A key contribution of this work is the mathematical proof that CDM inherits the $ARL_0$ control properties of its underlying detectors. Despite running multiple tests simultaneously, it can be configured to maintain a specific, user-defined rate of false alarms, preventing the "crying wolf" problem common in streaming applications.

Experimental Evaluation

The authors evaluated CDM using the INSECTS dataset (a benchmark with 33 features across six species) and Synthetic Gaussian data to precisely control drift direction and magnitude.

Detection delay comparison between CDM (blue) and ECDD (orange) across six synthetic drift concepts. CDM exhibits more stable and often lower detection delays, especially for smaller drifts.

Key Results

  • Superior Sensitivity: On the INSECTS dataset, CDM achieved the lowest average rank across 450 drift scenarios, outperforming mainstream methods like ECDD (error-based) and Scan-B (distribution-based).
  • Faster Detection: When drifts affected only a subset of classes, CDM's segmented approach allowed for much prompter detection than global distribution monitoring.
  • Reliable False Alarm Control: Experiments confirmed that CDM's empirical $ARL_0$ closely matched target values, whereas competing methods often failed to accurately control false alarm rates.

Insights: The "Virtual Drift" Advantage

One of the most significant advantages of CDM is its ability to detect drifts in any direction. Error-based methods like ECDD are primarily sensitive to drifts that move classes toward each other (increasing classification error). In contrast, CDM identifies shifts even if they move classes further apart or along the decision boundary.

Detection delay heatmaps in a 2D space. (a) ECDD is sensitive only to drifts moving towards the decision boundary (directional), while (b) CDM is sensitive to shifts in any direction (omnidirectional). (c) shows the performance gap.

This omnidirectional sensitivity makes CDM ideal for industrial monitoring or open-set recognition, where knowing the data has shifted is critical even if current accuracy remains high. Additionally, CDM provides "precious information" by identifying exactly which class drifted, allowing engineers to perform targeted model updates rather than blind retraining.

Conclusion and Future Work

CDM is a computationally efficient ($O(K)$ operations per sample) and statistically sound framework for concept drift detection. While it currently requires true labels during the monitoring phase, future research will explore using a classifier's predicted labels to handle scenarios with delayed or unavailable ground truth. The authors also plan to investigate hybrid models that combine CDM with parametric detectors when data distribution families are known a priori.

Summary updated

BibTeX
@inproceedings{stucchi2022class,
  author = {Diego Stucchi and Luca Frittoli and Giacomo Boracchi},
  title = {{Class Distribution Monitoring for Concept Drift Detection}},
  booktitle = {IJCNN},
  year = {2022},
}
Figure