Modeling the Distribution of Normal Data in Pre-Trained Deep Features for Anomaly Detection
Open accessThe DOI matches its Crossref record; 43 of the 43 references it cites were found in a registry or an index.
Abstract
Anomaly Detection (AD) in images is a fundamental computer vision problem and refers to identifying images and/or image substructures that deviate significantly from the norm. Popular AD algorithms commonly try to learn a model of normality from scratch using task specific datasets, but are limited to semi-supervised approaches employing mostly normal data due to the inaccessibility of anomalies on a large scale combined with the ambiguous nature of anomaly appearance. We follow an alternative approach and demonstrate that deep feature representations learned by discriminative models on large natural image datasets are well suited to describe normality and detect even subtle anomalies in a transfer learning setting. Our model of normality is established by fitting a multivariate Gaussian (MVG) to deep feature representations of classification networks trained on ImageNet using normal data only. By subsequently applying the Mahalanobis distance as the anomaly score we outperform the current state of the art on the public MVTec AD dataset, achieving an Area Under the Receiver Operating Characteristic curve of 95.8 ± 1.2% (mean ± SEM) over all 15 classes. We further investigate why the learned representations are discriminative to the AD task using Principal Component Analysis. We find that the principal components containing little variance in normal data are the ones crucial for discriminating between normal and anomalous instances. This gives a possible explanation to the often subpar performance of AD approaches trained from scratch using normal data only. By selectively fitting a MVG to these most relevant components only, we are able to further reduce model complexity while retaining AD performance. We also investigate setting the working point by selecting acceptable False Positive Rate thresholds based on the MVG assumption. Code is publicly available at https://github.com/ORippler/gaussian-ad-mvtec.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Deep Residual Learning for Image Recognition
He, K., Zhang, X., Ren, S., & Sun, J. (2016) · 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2016.90 · Cited by 235,474
ImageNet classification with deep convolutional neural networks
Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2017) · Communications of the ACM · doi:10.1145/3065386 · Cited by 112,155
Adam: A Method for Stochastic Optimization
Kingma, D. P., & Ba, J. (2014) · arXiv · doi:10.48550/arxiv.1412.6980 · Cited by 98,946
ImageNet: A large-scale hierarchical image database
Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., & Fei-Fei, L. (2009) · 2009 IEEE Conference on Computer Vision and Pattern Recognition · doi:10.1109/cvpr.2009.5206848 · Cited by 65,333
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
Tan, M., & Le, Q. V. (2019) · arXiv · doi:10.48550/arxiv.1905.11946 · Cited by 17,072
Chandola, V., Banerjee, A., & Kumar, V. (2009) · ACM Computing Surveys · doi:10.1145/1541880.1541882 · Cited by 11,687 · cited 1×
“Anomaly Detection (AD) relates to identifying instances in data that are significantly different to the norm [1], [2].”
BackgroundEstimating the Support of a High-Dimensional Distribution
Schölkopf, B., Platt, J. C., Shawe-Taylor, J., Smola, A. J., & Williamson, R. C. (2001) · Neural Computation · doi:10.1162/089976601750264965 · Cited by 6,168 · cited 1×
“Alternatively, classical shallow ML methods such as k-Nearest Neighbor (k-NN) or one class Support Vector Machine (oc-SVM) [16] are also applied to embeddings learned by an AE [17].”
MethodOn the generalized distance in statistics
Mahalanobis, P. C. (1936) · DOAJ (DOAJ: Directory of Open Access Journals) · Cited by 6,068
A well-conditioned estimator for large-dimensional covariance matrices
Ledoit, O., & Wolf, M. (2004) · Journal of Multivariate Analysis · doi:10.1016/s0047-259x(03)00096-4 · Cited by 3,046 · cited 1×
“obtain a closed form solution for the amount of shrinkage that allows optimal selection of ρ given an unstable estimate of Σ̂ [31].”
BackgroundA Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attacks
Lee, K., Lee, K., Lee, H., & Shin, J. (2018) · arXiv · doi:10.48550/arxiv.1807.03888 · Cited by 2,450
Cited by
Towards Total Recall in Industrial Anomaly Detection
Roth, K., Pemula, L., Zepeda, J., Scholkopf, B., Brox, T., & Gehler, P. (2022) · 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr52688.2022.01392 · Cited by 1,810
“AD [40] PaDiM∗ [14] PatchCore−25% PatchCore−10% PatchCore−1% AUROC ↑ 85.”
ResultPaDiM: A Patch Distribution Modeling Framework for Anomaly Detection and Localization
Defard, T., Setkov, A., Loesch, A., & Audigier, R. (2021) · Lecture Notes in Computer Science · doi:10.1007/978-3-030-68799-1_35 · Cited by 1,415
CutPaste: Self-Supervised Learning for Anomaly Detection and Localization
Li, C.-L., Sohn, K., Yoon, J., & Pfister, T. (2021) · 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr46437.2021.00954 · Cited by 1,107
DRÆM – A discriminatively trained reconstruction embedding for surface anomaly detection
Zavrtanik, V., Kristan, M., & Skocaj, D. (2021) · 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv48922.2021.00822 · Cited by 1,086
Gudovskiy, D., Ishizaka, S., & Kozuka, K. (2022) · 2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) · doi:10.1109/wacv51458.2022.00188 · Cited by 669
Deep Industrial Image Anomaly Detection: A Survey
Liu, J., Xie, G., Wang, J., Li, S., Wang, C., Zheng, F., & Jin, Y. (2024) · Machine Intelligence Research · doi:10.1007/s11633-023-1459-z · Cited by 463
“[46] Cross-Entropy ResNet, EfficientNet The paper establishes a model of normality by fitting a multivariate Gaussian to feature representations of a pre-trained network.”
GAN-based anomaly detection: A review
Xia, X., Pan, X., Li, N., He, X., Ma, L., Zhang, X., & Ding, N. (2022) · Neurocomputing · doi:10.1016/j.neucom.2021.12.093 · Cited by 392
Fully Convolutional Cross-Scale-Flows for Image-based Defect Detection
Rudolph, M., Wehrbein, T., Rosenhahn, B., & Wandt, B. (2022) · 2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) · doi:10.1109/wacv51458.2022.00189 · Cited by 348
DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detection
Zhang, X., Li, S., Li, X., Huang, P., Shan, J., & Chen, T. (2023) · 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr52729.2023.00381 · Cited by 287
Asymmetric Student-Teacher Networks for Industrial Anomaly Detection
Rudolph, M., Wehrbein, T., Rosenhahn, B., & Wandt, B. (2023) · 2023 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) · doi:10.1109/wacv56688.2023.00262 · Cited by 280
“For example, the Mahalanobis distance of pre-extracted features can be applied as an anomaly score [12, 35] which is equivalent to computing the negative log likelihood of a multivariate Gaussian.”
Omni-Frequency Channel-Selection Representations for Unsupervised Anomaly Detection
Liang, Y., Zhang, J., Zhao, S., Wu, R., Liu, Y., & Pan, S. (2023) · IEEE Transactions on Image Processing · doi:10.1109/tip.2023.3293772 · Cited by 238
“Some researches [22], [23], [24], [25], [26], [27] train the model on the entire image, while works [12], [13], [28], [29] on the patch image.”
BackgroundNatural Synthetic Anomalies for Self-supervised Anomaly Detection and Localization
Schlüter, H. M., Tan, J., Hou, B., & Kainz, B. (2022) · Lecture Notes in Computer Science · doi:10.1007/978-3-031-19821-2_27 · Cited by 218
“An embedding-similarity metric can be defined using any method for one-class classification such as support vector data description (SVDD) used in [34], Gaussian distributions used in [6,14,23], or nearest neighbour search used in [5,24].”
BackgroundMethodInfluentialFastFlow: Unsupervised Anomaly Detection and Localization via 2D Normalizing Flows
Yu, J., Zheng, Y., Wang, X., Li, W., Wu, Y., Zhao, R., & Wu, L. (2021) · arXiv · doi:10.48550/arxiv.2111.07677 · Cited by 210
“…networks to obtain the features of normal images and model the distribution with some statistical methods, then detect the abnormal samples that have different distributions (Bergman and Hoshen 2020; Rippel, Mertens, and Merhof 2021; Yi and Yoon 2020; Cohen and Hoshen 2020; Defard et al. 2020).”
MethodDivide-and-Assemble: Learning Block-wise Memory for Unsupervised Anomaly Detection
Hou, J., Zhang, Y., Zhong, Q., Xie, D., Pu, S., & Zhou, H. (2021) · 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv48922.2021.00867 · Cited by 191
“Then SPADE and MAHA identify anomaly by comparing the semantic features of a test sample with a set of normal samples.”
UTRAD: Anomaly detection and localization with U-Transformer
Chen, L., You, Z., Zhang, N., Xi, J., & Le, X. (2022) · Neural Networks · doi:10.1016/j.neunet.2021.12.008 · Cited by 166
A Survey on Unsupervised Anomaly Detection Algorithms for Industrial Images
Cui, Y., Liu, Z., & Lian, S. (2022) · arXiv · doi:10.48550/arxiv.2204.11161 · Cited by 154
“Gaussian-AD [102] extracts discriminative feature vectors from normal images.”
BackgroundSalehi, M., Mirzaei, H., Hendrycks, D., Li, Y., Rohban, M. H., & Sabokrou, M. (2021) · arXiv · doi:10.48550/arxiv.2110.14051 · Cited by 118
A Unified Model for Multi-Class Anomaly Detection
You, Z., Cui, L., Shen, Y., Yang, K., Lu, X., Zheng, Y., & Le, X. (2022) · Advances in Neural Information Processing Systems 35 · doi:10.52202/068431-0330 · Cited by 303
Industrial Image Anomaly Localization Based on Gaussian Clustering of Pretrained Feature
Wan, Q., Gao, L., Li, X., & Wen, L. (2022) · IEEE Transactions on Industrial Electronics · doi:10.1109/tie.2021.3094452 · Cited by 94
“The single MVG model was applied to model the distribution of all the training images’ features for image-level anomaly detection [14] and showed effective progress on image-level anomly detection.”
BackgroundMethodInfluentialAnomaly Detection Via Self-Organizing Map
Li, N., Jiang, K., Ma, Z., Wei, X., Hong, X., & Gong, Y. (2021) · 2021 IEEE International Conference on Image Processing (ICIP) · doi:10.1109/icip42928.2021.9506433 · Cited by 44
Self-Supervised Learning for Anomaly Detection With Dynamic Local Augmentation
Yoa, S., Lee, S., Kim, C., & Kim, H. J. (2021) · IEEE Access · doi:10.1109/access.2021.3124525 · Cited by 38
A Semantic-Enhanced Method Based On Deep SVDD for Pixel-Wise Anomaly Detection
Hu, C., Chen, K., & Shao, H. (2021) · 2021 IEEE International Conference on Multimedia and Expo (ICME) · doi:10.1109/icme51207.2021.9428370 · Cited by 24
“This phenomenon is similar to the improvement caused by dimensionality reduction technology, such as Principal Component Analysis (PCA) [19, 21].”
BackgroundMethodPEDENet: Image anomaly localization via patch embedding and density estimation
Zhang, K., Wang, B., & Kuo, C.-C. J. (2022) · Pattern Recognition Letters · doi:10.1016/j.patrec.2021.11.030 · Cited by 22
Kamoona, A. M., Gostar, A. K., Bab-Hadiashar, A., & Hoseinnezhad, R. (2021) · arXiv · doi:10.48550/arxiv.2108.12159 · Cited by 19
Transfer Learning Gaussian Anomaly Detection by Fine-tuning Representations
Rippel, O., Chavan, A., Lei, C., & Merhof, D. (2022) · Proceedings of the 2nd International Conference on Image Processing and Vision Engineering · doi:10.5220/0011063900003209 · Cited by 17
“Furthermore, EfficientNet-B4s have been shown to offer a good trade-off between model complexity and AD performance in [42].”
BackgroundMethodResultInfluentialSelf-citationZUMA: Training-Free Zero-Shot Unified Multimodal Anomaly Detection
Ma, Y., Liu, M., Jiang, S., Zhou, J., Bian, Y., Wang, X., & Wang, Y. (2026) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2026.3658856 · Cited by 4
Metadata
- Authors
- Rippel, O., Mertens, P., & Merhof, D.
- Venue
- 2020 25th International Conference on Pattern Recognition (ICPR)
- Publisher
- IEEE
- Published
- 2021-01-10
- Pages
- 6726-6733
- ISSN
- 1041-3278 (ISSN-L)
- OpenAlex
- W3031571129
- Cited by
- 254
- References
- 43
- FWCI
- 24.43
- Type
- conference paper
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.