TL;DR
This paper introduces "mass" as a novel ranking measure for anomaly detection, outperforming traditional distance and density measures, especially for clustered anomalies. They also present "Half-Space Trees" (HS-Trees), an efficient, adaptive anomaly detection algorithm for data streams that can handle concept drift.
What Problem Does This Paper Address?
Detecting anomalies in data streams is challenging due to their potentially infinite nature and evolving distributions (concept drift). Traditional anomaly detection methods often struggle with:
- Clustered Anomalies: Anomalies that appear in groups can be "masked" by their proximity to each other, making them hard to distinguish from normal data using distance or density alone.
- Efficiency: Many methods require significant computational resources and memory, making them unsuitable for high-speed data streams.
- Adaptability: Static models fail to maintain accuracy as the underlying data distribution changes over time.
This paper aims to develop an anomaly detection system that is efficient, adaptive to evolving data, and capable of detecting both scattered and clustered anomalies.
Methods
The core contributions of this paper are:
- "Mass" as a Ranking Measure: Instead of relying on distance or density, "mass" quantifies the number of data points within a region. This measure is shown to be more robust for detecting clustered anomalies, as it's less affected by the density of points within a region.
- Half-Space Trees (HS-Trees): This is a tree-based ensemble method that utilizes the "mass" measure for anomaly ranking. HS-Trees are built using random subsampling and random splits, making them efficient to train. They can be constructed without any data, allowing for pre-deployment.
- Streaming HS-Trees: An extension of HS-Trees designed for data streams. It processes data in a single pass, uses an amortized O(1) time complexity, and has constant memory requirements. It incorporates:
- Change Detection: Identifies changes in the "high-mass profile" of data, specifically focusing on changes in normal data distribution (Type I change).
- Selective Update (SU) Scheme: A model update mechanism that triggers updates only for persistent changes in normal data distribution, avoiding unnecessary updates due to anomalies or transient changes. This balances adaptation with stability.
Datasets
The paper evaluates its methods on a combination of synthetic and real-world datasets:
- Synthetic Datasets: Used to specifically test scenarios of concept drift, including shifts in normal cluster centroids, increases in anomaly density/number, and combinations thereof.
- Real-world Datasets:
- HTTP, SMTP, SMTP+HTTP (from KDD Cup 99)
- COVERTYPE
- SHUTTLE
- MULCROSS (known for clustered anomalies)
Key Insights and Ideas
- Mass is Superior for Clustered Anomalies: The "masking effect" is a significant limitation of distance and density measures. Mass, by focusing on the sheer number of points in a region rather than their proximity or density, effectively overcomes this.
- Adaptive Models are Crucial for Data Streams: Static models degrade quickly as data distributions evolve. The proposed Streaming HS-Trees with its change detection and selective update mechanism demonstrate the importance of adaptive learning.
- Not All Changes Require Model Updates: The distinction between changes in normal data distribution (requiring updates) and changes solely in anomalies (not requiring updates) is critical for maintaining accuracy and efficiency. Over-updating can lead to misclassifying anomalies as normal.
- HS-Trees are Efficient and Scalable: The ability to build HS-Trees without data and their sublinear time complexity make them ideal for large-scale streaming applications.
Key Results
- Anomaly Detection Accuracy: HS-Trees using the "mass" measure consistently outperformed distance and density-based methods (ORCA, LOF, SVM) in terms of AUC scores across various datasets, especially those with clustered anomalies. For example, HS-Trees achieved AUC scores close to 1 on datasets like SHUTTLE and MULCROSS, while competitors lagged significantly.
- Runtime Performance: Streaming HS-Trees demonstrated significantly faster processing times compared to ORCA and SVM. For instance, on the large HTTP dataset, Streaming HS-Trees processed data much faster than ORCA, which struggled with complex distributions.
- Model Update Effectiveness: The Selective Update (SU) scheme for Streaming HS-Trees proved to be the most robust, achieving high AUC scores across different scenarios of data drift. It balanced adaptation with stability, outperforming "No Update" (which failed with drift) and "Always Update" (which over-adapted and misclassified anomalies).
Limitations and Future Work
- Limitations of SU Scheme: The paper notes that the SU scheme might perform slightly worse than "Always Update" in the immediate window after a change is detected due to the delay in model update. However, this delay is small for large streaming data and the overall robustness of SU outweighs this minor drawback.
- Exponential Space Complexity (HS-Trees): While the streaming version has constant space complexity, the underlying HS-Tree structure's space complexity is exponential to its height. However, the paper argues that this is manageable in practice with fixed maximum depth.
- Future Work: The paper implicitly suggests further exploration of different change detection mechanisms and model update strategies, particularly for more complex scenarios involving combinations of change types. The effectiveness of the "mass" measure in other anomaly detection frameworks could also be a direction for future research.
Summary updated