Dynamic Weighted Majority for Incremental Learning of Imbalanced Data Streams with Concept Drift

Yang Lu, Yiu-ming Cheung, Yuan Yan Tang

Abstract

Incremental learning from data streams presents significant challenges when faced with both class imbalance and concept drift. Traditional methods often struggle to balance computational efficiency with predictive accuracy under these dynamic conditions. This paper proposes Dynamic Weighted Majority for Imbalance Learning (DWMIL), an ensemble-based framework that utilizes chunk-based processing and dynamic weighting. DWMIL employs UnderBagging to address class imbalance and a multiplicative weighting scheme to implicitly detect and adapt to concept drift. Experimental results on synthetic and real-world datasets demonstrate that DWMIL achieves state-of-the-art performance in terms of G-mean and AUC while maintaining a significantly lower computational and memory footprint compared to existing ensemble methods.

Introduction

In online machine learning, data streams are rarely stationary. Researchers face two primary hurdles: Concept Drift, where statistical properties of data change over time, and Class Imbalance, where one class is significantly rarer than the others. While many algorithms tackle these issues in isolation, they often falter when both occur simultaneously. For instance, if a rare class starts to drift, standard algorithms may fail to detect the change due to the scarcity of samples. Existing solutions are frequently memory-intensive or computationally prohibitive. DWMIL aims to provide a "totally incremental" solution that requires no storage of past raw data while remaining fast and accurate.

The DWMIL Framework

DWMIL is a chunk-based ensemble method that processes data in discrete segments rather than point-by-point. This approach provides greater stability in imbalanced streams, preventing a long sequence of majority-class samples from biasing the model before a minority sample appears.

Core Components:

  1. Ensemble Construction via UnderBagging: For every new data chunk, DWMIL trains a new base classifier. To handle imbalance, it uses UnderBagging, which undersamples the majority class to create balanced training sets for ensemble members.
  2. Dynamic Weighting: Each classifier is assigned a weight. When a new chunk arrives, existing classifiers are evaluated against it. Weights are updated multiplicatively: $w_j^{(t)} = (1 - \epsilon_j^{(t)}) w_j^{(t-1)}$, where $\epsilon_j^{(t)}$ is the error rate based on imbalance-aware metrics like G-mean.
  3. Implicit Drift Detection: The weighting mechanism acts as a natural decay. Classifiers that perform poorly on new concepts see their influence vanish over time, allowing the model to adapt without an explicit drift detection module.
  4. Efficient Pruning: To maintain a lean model, DWMIL discards any classifier whose weight falls below a predefined threshold ($\theta$).

Experimental Evaluation

The authors evaluated DWMIL against four state-of-the-art competitors: LPN, REA, CBCE, and DWM. Testing spanned four synthetic datasets (Moving Gaussian, SEA, Hyper Plane, Checkerboard) with controlled drift and a 5% minority ratio, as well as two real-world datasets (Electricity and Weather).

Figure 1: Performance comparison across data chunks. The legend identifies DWMIL as the green triangle line, consistently maintaining high performance compared to competitors like REA (purple) and CBCE (orange).

Key Results

  • Predictive Accuracy: DWMIL consistently achieved the highest or second-highest G-mean and AUC scores. It proved particularly resilient during sudden concept drifts, recovering its performance faster than competing methods.
  • Computational Efficiency: DWMIL demonstrated significant speed advantages. In the Checkerboard dataset, it was approximately 5x faster than REA and 2x faster than LPN.
  • Memory Footprint: By discarding obsolete classifiers and avoiding raw data storage, DWMIL maintains a minimal memory footprint, making it suitable for long-running streams.
Figure 2: Adaptation to concept drift across different scenarios (b, d, f). Plot (b) illustrates sharp performance dips during sudden drifts (e.g., at chunk 35), where DWMIL (green triangles) demonstrates rapid recovery.

Discussion and Future Work

The simplicity of DWMIL is a key feature; it relies primarily on a single threshold parameter that affects the number of stored classifiers rather than raw accuracy. However, some limitations remain. The reliance on a fixed chunk size may be suboptimal for highly volatile streams. Furthermore, future research could explore DWMIL's performance under extreme imbalance (e.g., <1% minority) or extend the framework to multi-class classification problems.

In conclusion, DWMIL offers a robust and efficient solution for real-time learning in complex, non-stationary environments, balancing the needs of accuracy, speed, and memory conservation.

Summary updated

BibTeX
@inproceedings{lu2017dynamic,
  author = {Yang Lu and Yiu-ming Cheung and Yuan Yan Tang},
  title = {{Dynamic Weighted Majority for Incremental Learning of Imbalanced Data Streams with Concept Drift}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/333},
}
Figure