Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised anomaly detection algorithms on real-world data: how many do we need?

Roel Bouman, Zaharah Bukhsh|arXiv (Cornell University)|May 1, 2023
Anomaly Detection Techniques and ApplicationsComputer Science12 citations
TL;DR

The paper benchmarks 32 unsupervised anomaly detection algorithms on 52 real-world multivariate datasets, finding that kNN dominates on local anomalies, EIF dominates on global anomalies, and a three-algorithm toolbox suffices overall.

ABSTRACT

In this study we evaluate 32 unsupervised anomaly detection algorithms on 52 real-world multivariate tabular datasets, performing the largest comparison of unsupervised anomaly detection algorithms to date. On this collection of datasets, the $k$-thNN (distance to the $k$-nearest neighbor) algorithm significantly outperforms the most other algorithms. Visualizing and then clustering the relative performance of the considered algorithms on all datasets, we identify two clear clusters: one with ``local'' datasets, and another with ``global'' datasets. ``Local'' anomalies occupy a region with low density when compared to nearby samples, while ``global'' occupy an overall low density region in the feature space. On the local datasets the $k$NN ($k$-nearest neighbor) algorithm comes out on top. On the global datasets, the EIF (extended isolation forest) algorithm performs the best. Also taking into consideration the algorithms' computational complexity, a toolbox with these three unsupervised anomaly detection algorithms suffices for finding anomalies in this representative collection of multivariate datasets. By providing access to code and datasets, our study can be easily reproduced and extended with more algorithms and/or datasets.

Motivation & Objective

  • Assess the performance of a large set of unsupervised anomaly detection algorithms on real-world multivariate data.
  • Identify whether distinct dataset types (local vs global anomalies) influence algorithm performance.
  • Provide practical guidelines on a compact, effective toolbox for anomaly detection in real-world settings.
  • Assess computational considerations to balance accuracy and efficiency.
  • Ensure reproducibility by sharing code and datasets.

Proposed method

  • Evaluate 32 anomaly detection algorithms, mostly from PyOD, across 52 real-world multivariate datasets.
  • For each dataset, run each algorithm over a range of sensible hyperparameters and average ROC-AUC scores.
  • Preprocess data by removing duplicates, centering, and scaling by interquartile range to reduce anomaly sensitivity.
  • Use ROC-AUC as the primary evaluation metric and compute per-dataset rankings of algorithm performance.
  • Apply the Iman-Davenport test to detect overall differences, followed by the Nemenyi post-hoc test to identify pairwise significance.
  • Provide a public GitHub repository with code and data to enable full reproducibility.
(a) Enclosed anomaly example
(a) Enclosed anomaly example

Experimental results

Research questions

  • RQ1Which unsupervised anomaly detection algorithms perform best on real-world multivariate tabular data?
  • RQ2Do the performances of algorithms differ depending on whether datasets exhibit local versus global anomalies?
  • RQ3Can a small, practical toolbox of algorithms effectively identify anomalies across a representative corpus of datasets?
  • RQ4How do computational considerations (complexity) influence the practical choice of algorithms?
  • RQ5What are the generalizable guidelines for unsupervised anomaly detection without hyperparameter optimization?

Key findings

  • A substantial portion of algorithms perform comparably, with median performance around 90% of the best on a dataset.
  • kth-NN and kNN variants consistently outperform many others and often dominate, especially on local anomaly datasets.
  • Extended Isolation Forest (EIF) shows the strongest performance on global anomaly datasets.
  • CBLOF is consistently outperformed by many alternatives and is the weakest performer overall.
  • Neural-network based methods (DeepSVDD, ALAD, SO-GAAL) tend to underperform on tabular real-world data due to design and hyperparameter sensitivity.
  • Two dataset clusters emerge: a local-anomaly cluster where local methods excel, and a global-anomaly cluster where broader-method ensembles perform best.
  • A three-algorithm toolbox comprising kth-NN (or kNN family), EIF, and a robust global detector suffices for the considered datasets, balancing accuracy and efficiency.
(b) Peripheral anomaly example
(b) Peripheral anomaly example

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.