Abstract
How can we detect outliers, both scattered and clustered, and also explicitly assign them to respective micro-clusters, without knowing apriori how many micro-clusters exist? How can we perform both tasks in-house, i.e., without any post-hoc processing, so that both detection and assignment can benefit simultaneously from each other? Presenting outliers in separate micro-clusters is informative to analysts in many real-world applications. However, a na"ive solution based on post-hoc clustering of the outliers detected by any existing method suffers from two main drawbacks: (a) appropriate hyperparameter values are commonly unknown for clustering, and most algorithms struggle with clusters of varying shapes and densities; (b) detection and assignment cannot benefit from one another. In this paper, we propose D.MCA to Detect outliers with explicit Micro-Cluster Assignment. Our method performs both detection and assignment iteratively, and in-house, by using a novel strategy that prunes entire micro-clusters out of the training set to improve the performance of the detection. It also benefits from a novel strategy that avoids clustered outliers to mask each other, which is a well-known problem in the literature. Also, D.MCA is designed to be robust to a critical hyperparameter by employing a hyperensemble "warm up" phase. Experiments performed on 16 real-world and synthetic datasets demonstrate that D.MCA outperforms 8 state-of-the-art competitors, especially on the explicit outlier micro-cluster assignment task.
Introduction
In the field of anomaly detection, most research focuses on identifying "point outliers"—isolated data points that deviate significantly from the rest of the distribution. However, in many high-stakes domains like cybersecurity, fraud detection, and epidemiology, anomalies often appear in groups. A coordinated botnet attack or a localized disease outbreak manifests as a "micro-cluster" of outliers.
Traditional detection methods struggle with these clusters due to the masking effect, where a group of outliers is so dense that an algorithm mistakenly identifies it as a normal region of the data. Furthermore, practitioners often need to know not just that a point is an outlier, but which group it belongs to. The standard approach—detecting outliers first and then clustering them post-hoc—is inherently flawed because the two steps cannot inform each other. This paper introduces D.MCA (Detect outliers with explicit Micro-Cluster Assignment), a framework that integrates detection and assignment into a single, iterative process.
The Limitations of Sequential Pipelines
Existing solutions typically rely on a two-stage pipeline: an outlier detector (like iForest) followed by a clustering algorithm (like K-means). This approach faces two major hurdles:
- Hyperparameter Sensitivity: Most clustering algorithms require the user to specify the number of clusters (k) beforehand, which is almost never known in unsupervised anomaly detection.
- Unidirectional Information Flow: In a sequential pipeline, the detector cannot benefit from the structural information found during clustering. If the detector misses a cluster due to masking, the clustering step will never see those points.
The D.MCA Approach
D.MCA is built upon the iNNE (Isolation using Nearest Neighbor Ensemble) detector and introduces three core innovations to solve the detection-assignment problem "in-house."
1. Iterative Pruning
Rather than a single pass, D.MCA operates in rounds. When the algorithm identifies a micro-cluster of outliers, it "prunes" or removes that entire cluster from the training set. This cleaning process reduces the noise in the dataset, making it significantly easier for the model to identify more subtle outliers in subsequent rounds that were previously hidden by the masking effect.
2. The "Clothes-Lines" Strategy
A significant risk in iterative pruning is the removal of "false positives" (inliers that appear anomalous). To prevent this, the authors developed the "clothes-lines" strategy. By analyzing the average outlier scores of a point's neighbors at increasing distances, the algorithm can distinguish between true outliers and inliers. True outliers exhibit a stable, high score across their neighborhood (resembling a flat clothes-line), whereas inliers show scores that drop off rapidly as the neighborhood expands.
3. Hyperensemble Warm-up
Unsupervised learning is notoriously sensitive to hyperparameters, particularly the subsample size ($\psi$). D.MCA employs a "warm-up" phase that ensembles multiple models with varying subsample sizes. This makes the algorithm robust to parameter selection, ensuring stable performance even when the optimal $\psi$ is unknown.
Experimental Evaluation
The researchers evaluated D.MCA against eight state-of-the-art competitors using 16 datasets. These included:
- 2D Synthetic Data: Designed to test the algorithm's ability to handle complex geometries like spirals and "sandwich" distributions where outliers are trapped between inlier layers.
- Semi-synthetic Data: Derived from the ODDS (Outlier Detection DataSet) repository, where specific classes were manipulated to form challenging micro-clusters.
- Real-world Benchmarks: Datasets like
shuttle,http, andsmtp, where small, compact classes were treated as anomalous clusters.
Key Results and Insights
The experiments revealed that D.MCA excels in dual-task performance:
- Superior Assignment: D.MCA achieved the best average ranking (5.00) for the micro-cluster assignment task. Notably, it outperformed Gen2Out, the only other method specifically designed for this purpose.
- High Detection Accuracy: In terms of Average Precision (AP), D.MCA ranked 2nd overall, proving that it does not sacrifice detection power to achieve cluster assignment.
- Robustness to Masking: While the base iNNE model's performance often degrades as the subsample size increases (due to masking), D.MCA maintains high accuracy, demonstrating the effectiveness of its iterative pruning and warm-up strategies.
Conclusion
D.MCA demonstrates that outlier detection and cluster assignment are symbiotic tasks. By treating them as a single integrated process, D.MCA overcomes the masking effect and eliminates the need for post-hoc clustering. This provides analysts with a more informative output—grouped anomalies—without the traditional struggle of hyperparameter tuning for unknown cluster counts. Future research may extend this iterative pruning logic to other base detectors or adapt the framework for evolving data streams.
Summary updated