BAAF: Universal Transformation of One-Class Classifiers for Unsupervised Image Anomaly Detection
About
Detecting anomalies in images and video is an essential task for multiple real-world problems, including industrial inspection, computer-assisted diagnosis, and environmental monitoring. Anomaly detection is typically formulated as a one-class classification problem, where the training data consists solely of nominal values, leaving methods built on this assumption susceptible to training label noise. We present Bootstrap Aggregation Anomaly Filtering (BAAF), a method that transforms an arbitrary one-class classifier-based anomaly detector into a fully unsupervised method. This is achieved by leveraging the unique intrinsic properties of anomaly detection: anomalies are uncommon in the sampled data and generally heterogeneous. These properties enable us to design a modified Bootstrap Aggregation method that uses multiple independently trained instances of supervised one-class classifiers to filter the training dataset for anomalies. This transformation requires no modifications to the underlying anomaly detector; only the algorithmically selected data bags used for training change. We demonstrate empirically that our method can transform a wide variety of one-class classifier-based image anomaly detectors into unsupervised ones. Consequently, we present the first unsupervised logical anomaly detectors for images. We also demonstrate that our method achieves state-of-the-art performance in fully unsupervised anomaly detection on the MVTec AD, ViSA, and MVTec Loco AD datasets. As improvements to one-class classifiers are made, our method directly transfers those improvements to the unsupervised domain, linking the domains.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Anomaly Detection | VisA 10% training contamination (test) | Average Image-level AUROC0.91 | 11 | |
| Anomaly Detection | MVTec AD 10% training contamination (test) | -- | 7 | |
| Logical Anomaly Detection | LOCO AD 0% Corruptions | I-AUROC0.923 | 5 | |
| Logical Anomaly Detection | LOCO AD 10% Corruptions | I-AUROC84.9 | 5 | |
| Anomaly Detection | MvTecAD 0% Corruptions | I-AUROC0.992 | 4 | |
| Anomaly Detection | ViSA 0% Corruptions | I-AUROC0.96 | 4 |