PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localization
About
We present a new framework for Patch Distribution Modeling, PaDiM, to concurrently detect and localize anomalies in images in a one-class learning setting. PaDiM makes use of a pretrained convolutional neural network (CNN) for patch embedding, and of multivariate Gaussian distributions to get a probabilistic representation of the normal class. It also exploits correlations between the different semantic levels of CNN to better localize anomalies. PaDiM outperforms current state-of-the-art approaches for both anomaly detection and localization on the MVTec AD and STC datasets. To match real-world visual industrial inspection, we extend the evaluation protocol to assess performance of anomaly localization algorithms on non-aligned dataset. The state-of-the-art performance and low complexity of PaDiM make it a good candidate for many industrial applications.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Anomaly Localization | MVTec AD | Pixel AUROC99 | 369 | |
| Anomaly Detection | MVTec-AD (test) | I-AUROC97.9 | 226 | |
| Anomaly Detection | VisA | AUROC83.28 | 199 | |
| Anomaly Localization | MVTec-AD (test) | Pixel AUROC97.5 | 181 | |
| Anomaly Detection | MVTec-AD (test) | P-AUROC97.5 | 132 | |
| Anomaly Localization | VisA | P-AUROC0.981 | 119 | |
| Anomaly Detection | MVTec 3D-AD 1.0 (test) | Mean Score0.764 | 107 | |
| Anomaly Detection | VisA (test) | I-AUROC89.1 | 91 | |
| Anomaly Segmentation | MVTec-AD (test) | AUROC (Pixel)97.8 | 85 | |
| Anomaly Detection | MVTec AD | Overall AUROC97.9 | 83 |