Classification Under Streaming Emerging New Classes: A Solution Using Completely-Random Trees

Xin Mu, Kai Ming Ting, Zhi-Hua Zhou

TL;DR

This paper introduces SENCForest, a novel approach to classifying data streams with continuously emerging new classes. By leveraging unsupervised anomaly detection with completely random trees, SENCForest effectively detects new classes and classifies known ones, outperforming existing methods that struggle with dynamic data environments.

What Problem Does This Paper Address?

The paper tackles the challenging problem of "Classification Under Streaming Emerging New Classes" (SENC). In real-world scenarios like online content moderation or fraud detection, data streams are dynamic, meaning new categories (classes) can appear over time. Traditional classification models, trained on a fixed set of classes, degrade significantly when encountering these unseen classes. The SENC problem requires a system that can not only classify known data but also detect and adapt to these new, emerging classes in real-time, without prior knowledge of their existence. Existing methods often treat this as a classification problem, using supervised or semi-supervised learning, but struggle to effectively detect new classes and update models efficiently in a continuous stream.

Methods

The core of SENCForest lies in its novel approach: using unsupervised anomaly detection as the foundation, rather than a purely classification-focused strategy. This is achieved through completely random trees, specifically an ensemble called iForest.

Here's a breakdown of the key methodological components:

  • Unsupervised Anomaly Detection as the Basis: Instead of directly trying to classify, SENCForest first uses iForest to identify "anomalies." The intuition is that instances of known classes will form a "normal" region, while emerging new classes will appear as "outlying" anomalies.
  • "Outlying" Anomaly Detection: The paper refines anomaly detection by distinguishing between anomalies of known classes (e.g., noisy data points within an existing class) and "outlying" anomalies (potential new classes). This is done by partitioning the anomaly space into sub-regions.
  • Integrated Common Core: The same completely random trees are used for both anomaly detection (identifying new classes) and classification (assigning instances to known classes). This is achieved by recording class distributions within the leaves of the trees.
  • Efficient Model Update: When new classes are detected, instances are buffered. Once the buffer is full, the model is updated by growing new subtrees within the existing random forest structure, rather than retraining the entire model from scratch. This makes the update process fast and memory-efficient.
  • SENCForest Architecture: The overall system, SENCForest, is an ensemble of these completely random trees. It's designed to handle the three sub-problems of SENC: detecting emerging classes, classifying known classes, and updating the model.

Datasets

The paper evaluates SENCForest on several standard datasets to simulate data streams with emerging classes:

  • Synthetic: A custom dataset with four overlapping Gaussian distributions.
  • KDDCup 99: A network intrusion detection dataset.
  • Forest Cover: A dataset related to forest land cover types.
  • MHAR: A human activity recognition dataset using smartphone sensors.
  • MNIST: A handwritten digit dataset.

The experiments simulate data streams by introducing new classes over time, with initial training sets containing a small number of known classes.

Key Insights and Ideas

  • Shifting Focus to Anomaly Detection: The most significant insight is the re-framing of the SENC problem from a classification challenge to an anomaly detection one. This shift allows for a more robust handling of unknown classes.
  • Differentiating Anomaly Types: The ability to distinguish between "normal" anomalies (within known classes) and "outlying" anomalies (potential new classes) is crucial for accurate detection.
  • Unified Model for Detection and Classification: Using a single, common core (completely random trees) for both detecting new classes and classifying known ones simplifies the system and improves efficiency.
  • Unsupervised Learning as a Foundation: The success of SENCForest highlights the power of unsupervised learning in handling dynamic, open-world data stream problems where class labels are scarce or unavailable.
  • Efficiency in Data Streams: The model update mechanism, which involves growing subtrees rather than full retraining, is key to SENCForest's suitability for high-velocity data streams.

Key Results

  • Superior New Class Detection: SENCForest consistently achieved the highest F-measure for new class detection across all tested datasets, indicating better precision and recall compared to other methods.
  • High Classification Accuracy: SENCForest also achieved the highest EN_Accuracy (a measure combining correct new class identification and known class classification), demonstrating that accurate new class detection directly leads to better overall classification performance.
  • Competitive Classifier: As a classifier, SENCForest was competitive with SVM-based methods, especially in the data stream context where fast updates are critical.
  • Robustness in Long Streams: SENCForest maintained good performance in long data streams with limited memory, outperforming methods like LACU-SVM which required increasing memory.
  • No True Labels Required for Updates: A key advantage is that SENCForest does not require true labels for model updates after initial training, a significant improvement over many existing methods.

Limitations and Future Work

  • Grouping Emerging Classes: Currently, SENCForest groups all emerging classes within a period into a single "NewClass" for model update. The authors suggest that for scenarios where distinguishing between multiple emerging classes within a period is critical, a clustering algorithm could be used before model update.
  • Concept Drift: The paper mentions future work to improve the method to deal with concept drift, where the underlying data distribution changes over time.
  • Differentiating Multiple New Classes: Future work will also focus on differentiating two or more emerging new classes before model updates.
  • Parameter Tuning: While SENCForest aims to reduce the need for extensive parameter tuning, some parameters (like the number of trees and subsample size) still require setting. The paper provides parameter settings used in experiments, but further research into automatic parameter optimization could be beneficial.

Summary updated

BibTeX
@misc{mu2016classification,
  author = {Xin Mu and Kai Ming Ting and Zhi-Hua Zhou},
  title = {{Classification Under Streaming Emerging New Classes: A Solution Using Completely-Random Trees}},
  year = {2016},
  eprint = {1605.09131},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1605.09131},
}
Figure