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
Searching for activation functions
Ramachandran, P., Zoph, B., & Le, Q. V. (2017) · arXiv · doi:10.48550/arxiv.1710.05941 · Cited by 2,335 · cited 1×
“higher ImageNet accuracy per trainable weight) and the output range of the Swish activation function [34].”
BackgroundSelf-Normalizing Neural Networks
Klambauer, G., Unterthiner, T., Mayr, A., & Hochreiter, S. (2017) · arXiv · doi:10.48550/arxiv.1706.02515 · Cited by 2,267 · cited 1×
“Here, Self-Normalizing Neural Networks (SNNs) provide a basis for learning Gaussian-distributed features [43].”
BackgroundMVTec AD — A Comprehensive Real-World Dataset for Unsupervised Anomaly Detection
Bergmann, P., Fauser, M., Sattlegger, D., & Steger, C. (2019) · 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2019.00982 · Cited by 2,203 · cited 4×
“control [3] to medical image analysis [4].”
BackgroundMethodInfluentialGong, D., Liu, L., Le, V., Saha, B., Mansour, M. R., Venkatesh, S., & Van Den Hengel, A. (2019) · 2019 IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv.2019.00179 · Cited by 1,930
Ruff, L., Vandermeulen, R. A., Görnitz, N., Deecke, L., Siddiqui, S. A., Binder, A., Müller, E., & Kloft, M. (2018) · International Conference on Machine Learning · Cited by 1,719
Pimentel, M. A. F., Clifton, D. A., Clifton, L., & Tarassenko, L. (2014) · Signal Processing · doi:10.1016/j.sigpro.2013.12.026 · Cited by 1,649 · cited 1×
“Anomaly Detection (AD) relates to identifying instances in data that are significantly different to the norm [1], [2].”
Backgroundf-AnoGAN: Fast unsupervised anomaly detection with generative adversarial networks
Schlegl, T., Seeböck, P., Waldstein, S. M., Langs, G., & Schmidt-Erfurth, U. (2019) · Medical Image Analysis · doi:10.1016/j.media.2019.01.010 · Cited by 1,545
Uninformed Students: Student-Teacher Anomaly Detection With Discriminative Latent Embeddings
Bergmann, P., Fauser, M., Sattlegger, D., & Steger, C. (2020) · 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr42600.2020.00424 · Cited by 990
Latent Space Autoregression for Novelty Detection
Abati, D., Porrello, A., Calderara, S., & Cucchiara, R. (2019) · 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2019.00057 · Cited by 508 · cited 1×
“Hybrid approaches also exist, where anomaly scores are generated by combining measures proposed on the embeddings with reconstruction errors [19]–[21], enhancing model performance at cost of further increased complexity.”
BackgroundGeneralized ODIN: Detecting Out-of-Distribution Image Without Learning From Out-of-Distribution Data
Hsu, Y.-C., Shen, Y., Jin, H., & Kira, Z. (2020) · 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr42600.2020.01096 · Cited by 499
Deep-anomaly: Fully convolutional neural network for fast anomaly detection in crowded scenes
Sabokrou, M., Fayyaz, M., Fathy, M., Moayed, Z., & Klette, R. (2018) · Computer Vision and Image Understanding · doi:10.1016/j.cviu.2018.02.006 · Cited by 470
Deep Semi-Supervised Anomaly Detection
Ruff, L., Vandermeulen, R. A., Görnitz, N., Binder, A., Müller, E., Müller, K.-R., & Kloft, M. (2019) · arXiv · doi:10.48550/arxiv.1906.02694 · Cited by 388 · cited 1×
“have initialized their proposed Deep Support Vector Data Description (Deep SVDD) using pre-trained AEs [5], [18].”
MethodSub-Image Anomaly Detection with Deep Pyramid Correspondences
Cohen, N., & Hoshen, Y. (2020) · arXiv · doi:10.48550/arxiv.2005.02357 · Cited by 372 · cited 4×
“[9] evaluate a k-NN using L2-distance on ResNet [28] features.”
BackgroundMethodInfluentialDeep Anomaly Detection Using Geometric Transformations
Golan, I., & El‐Yaniv, R. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1805.10917 · Cited by 372
Improving Unsupervised Defect Segmentation by Applying Structural Similarity to Autoencoders
Bergmann, P., Löwe, S., Fauser, M., Sattlegger, D., & Steger, C. (2019) · Proceedings of the 14th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications · doi:10.5220/0007364500002108 · Cited by 336
Anomaly Detection in Nanofibrous Materials by CNN-Based Self-Similarity
Napoletano, P., Piccoli, F., & Schettini, R. (2018) · Sensors · doi:10.3390/s18010209 · Cited by 285 · cited 2×
“While there has been recent success in adapting deep feature representations for anomaly segmentation [7], [22], [23], these proposals compute features patch-wise to yield the pixelwise output.”
BackgroundGenerative Probabilistic Novelty Detection with Adversarial Autoencoders
Pidhorskyi, S., Almohsen, R., Adjeroh, D. A., & Doretto, G. (2018) · arXiv · doi:10.48550/arxiv.1807.02588 · Cited by 255 · cited 1×
“Common approaches try to model the distribution of normal data in the AE embedding in a generative way using variational AEs [14] that are oftentimes trained using an adversarial objective [15].”
BackgroundGANomaly: Semi-supervised Anomaly Detection via Adversarial Training
Akcay, S., Atapour-Abarghouei, A., & Breckon, T. P. (2019) · Lecture Notes in Computer Science · doi:10.1007/978-3-030-20893-6_39 · Cited by 188
Christiansen, P., Nielsen, L., Steen, K., Jørgensen, R., & Karstoft, H. (2016) · Sensors · doi:10.3390/s16111904 · Cited by 153
Anomaly Detection Using Deep Learning Based Image Completion
Haselmann, M., Gruber, D. P., & Tabatabai, P. (2018) · 2018 17th IEEE International Conference on Machine Learning and Applications (ICMLA) · doi:10.1109/icmla.2018.00201 · Cited by 134
Transfer representation-learning for anomaly detection
Andrews, J. T. A., Tanay, T., Morton, E., & Griffin, L. D. (2016) · UCL Discovery (University College London) · Cited by 128
Is the deconvolution layer the same as a convolutional layer?
Shi, W., Caballero, J., Theis, L., Huszár, F., Aitken, A. P., Ledig, C., & Wang, Z. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1609.07009 · Cited by 103
Deep Nearest Neighbor Anomaly Detection
Bergman, L., Cohen, N., & Hoshen, Y. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2002.10445 · Cited by 100
Open Category Detection with PAC Guarantees
Liu, S., Garrepalli, R., Dietterich, T. G., Fern, A., & Hendrycks, D. (2018) · International Conference on Machine Learning · doi:10.48550/arxiv.1808.00529 · Cited by 75
q-Space Novelty Detection with Variational Autoencoders
Vasilev, A., Golkov, V., Meissner, M., Lipp, I., Sgarlata, E., Tomassini, V., Jones, D. K., & Cremers, D. (2020) · Mathematics and visualization · doi:10.1007/978-3-030-52893-5_10 · Cited by 61
Feature Extraction for One-Class Classification
Tax, D. M. J., & Müller, K.-R. (2003) · Lecture notes in computer science · doi:10.1007/3-540-44989-2_41 · Cited by 56
Fast Distance-Based Anomaly Detection in Images Using an Inception-Like Autoencoder
Sarafijanovic-Djukic, N., & Davis, J. (2019) · Lecture notes in computer science · doi:10.1007/978-3-030-33778-0_37 · Cited by 43
Covariance-guided One-Class Support Vector Machine
Khan, N., Ksantini, R., Ahmad, I. S., & Guan, L. (2014) · Pattern Recognition · doi:10.1016/j.patcog.2014.01.004 · Cited by 42
Attribute Restoration Framework for Anomaly Detection
Huang, C., Ye, F., Cao, J., Li, M., Zhang, Y., & Lu, C. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1911.10676 · Cited by 39
Inverse-Transform AutoEncoder for Anomaly Detection
Huang, C., Cao, J., Ye, F., Li, M., Zhang, Y., & Lu, C. (2019) · Cited by 35
Deep Variational Semi-Supervised Novelty DetectionPreprint
Daniel, T., Kurutach, T., & Tamar, A. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1911.04971 · Cited by 25
Are pre-trained CNNs good feature extractors for anomaly detection in surveillance videos?
de Nazaré, T. S., de Mello, R. F., & Ponti, M. A. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1811.08495 · Cited by 18
Ahmed, F., & Courville, A. (2020) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v34i04.5712 · Cited by 5
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
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.