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 | 513 | |
| Anomaly Detection | MVTec-AD (test) | I-AUROC97.9 | 327 | |
| Anomaly Detection | VisA | AUROC83.28 | 261 | |
| Anomaly Localization | MVTec-AD (test) | Pixel AUROC97.5 | 211 | |
| Anomaly Detection | MVTec-AD (test) | P-AUROC97.5 | 152 | |
| Anomaly Detection | MVTec 3D-AD 1.0 (test) | Mean Score0.764 | 134 | |
| Anomaly Localization | VisA | P-AUROC0.981 | 119 | |
| Anomaly Segmentation | MVTec AD | AUROC (Pixelwise)0.975 | 105 | |
| Anomaly Detection | VisA (test) | I-AUROC89.1 | 91 | |
| Image-level Anomaly Detection | MVTec-AD (test) | Overall AUROC97.9 | 86 |