Beyond Dents and Scratches: Logical Constraints in Unsupervised Anomaly Detection and Localization

The unsupervised detection and localization of anomalies in natural images is an intriguing and challenging problem. Anomalies manifest themselves in very different ways and an ideal benchmark dataset for this task should contain representative examples for all of them. We find that existing datasets are biased towards local structural anomalies such as scratches, dents, or contaminations. In particular, they lack anomalies in the form of violations of logical constraints, e.g., permissible objects occurring in invalid locations. We contribute a new dataset based on industrial inspection scenarios that evenly covers both types of anomalies. We provide pixel-precise ground truth data for each anomalous region and define a generalized evaluation metric that addresses localization ambiguities that can arise for logical anomalies. Furthermore, we propose a novel algorithm that improves over the state of the art in the joint detection of structural and logical anomalies. It consists of a local and a global network branch. The first one inspects confined regions independent of their spatial locations in the input image and is primarily responsible for the detection of entirely new local structures. The second one learns a globally consistent representation of the training data through a bottleneck that enables the detection of violations of long-range dependencies, a key characteristic of many logical anomalies. We perform extensive evaluations on our new dataset to corroborate our claims.

PDF Abstract

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Benchmark
Anomaly Detection MVTec LOCO AD GCAD Avg. Detection AUROC 83.3 # 16
Detection AUROC (only logical) 86.0 # 11
Detection AUROC (only structural) 80.6 # 27
Segmentation AU-sPRO (until FPR 5%) 70.1 # 6
Anomaly Detection MVTec LOCO AD L2AE Avg. Detection AUROC 57.3 # 34
Detection AUROC (only logical) 58.1 # 34
Detection AUROC (only structural) 56.5 # 34
Segmentation AU-sPRO (until FPR 5%) 37.8 # 17
Anomaly Detection MVTec LOCO AD Variation Model Avg. Detection AUROC 57.7 # 33
Detection AUROC (only logical) 56.5 # 35
Detection AUROC (only structural) 58.9 # 33
Segmentation AU-sPRO (until FPR 5%) 22.5 # 22
Anomaly Detection VisA GCAD Detection AUROC 89.1 # 14
Segmentation AUPRO (until 30% FPR) 83.7 # 13

Methods


No methods listed for this paper. Add relevant methods here