Skip to main content

An Unsupervised Surface Anomaly Detection Method Based on Attention and ASPP

  • Conference paper
  • First Online:
Machine Learning for Cyber Security (ML4CS 2022)

Abstract

It is the main task of visual anomaly detection to find local regions whose saliency is inconsistent with normal appearance. However, existing mainstream anomaly detection models suffer from low detection accuracy and poor generalization performance. Therefore, this paper designs an unsupervised surface anomaly detection model based on attention and atrous spatial pyramid pooling. The proposed model learns anomaly images and their normal reconstruction and simultaneously learns the decision boundaries of normal and anomaly images. The method utilizes a squeeze-and-excitation block to assign attention to feature channels to improve the sensitivity of related favorable features, thus enhancing the model’s ability to learn normal and anomaly boundaries. In addition, atrous spatial pyramid pooling is introduced in the discriminative sub-network to obtain the multi-scale semantic information of the training image, which improves the detection ability of defects of different sizes and enhances the universality of the model. The superiority of our method is demonstrated in the anomaly detection benchmark MVTec dataset.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Li, S.B., Yang, J., Wang, Z.: Review of development and application of defect detection technology. Acta Automatica Sinica 46(11), 2319–2336 (2020)

    Google Scholar 

  2. Wu, C., Li, W.: Enhancing intrusion detection with feature selection and neural network. Int. J. Intell. Syst. 36(7), 3087–3105 (2021)

    Article  Google Scholar 

  3. Yan, H., Chen, M., Hu, L., Jia, C.: Secure video retrieval using image query on an untrusted cloud. Appl. Soft Comput. 97, 106782 (2020)

    Article  Google Scholar 

  4. Fang, M., Jin, Z., Qin, F., Peng, Y., Jiang, C., Pan, Z.: Re-transfer learning and multi-modal learning assisted early diagnosis of Alzheimer’s disease. Multimedia Tools Appl. 81, 29159–29175 (2022). https://doi.org/10.1007/s11042-022-11911-6

    Article  Google Scholar 

  5. Mei, S., Yang, H., Yin, Z.: An unsupervised-learning-based approach for automated defect inspection on textured surfaces. IEEE Trans. Instrum. Meas. 67(6), 1266–1277 (2018)

    Article  Google Scholar 

  6. Bergmann, P., Fauser, M., Sattlegger, D., et al.: MVTec AD–a comprehensive real-world dataset for unsupervised anomaly detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9592–9600 (2019)

    Google Scholar 

  7. Xia, X., Pan, X., He, X.: Discriminative-generative representation learning for one-class anomaly detection (2021)

    Google Scholar 

  8. Perera, P., Nallapati, R., Bing, X.: OCGAN: one-class novelty detection using GANs with constrained latent representations. In: 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2898–2906 (2019)

    Google Scholar 

  9. Hou, J., Zhang, Y., Zhong, Q., et al.: Divide-and-assemble: learning block-wise memory for unsupervised anomaly detection. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 8791–8800 (2021)

    Google Scholar 

  10. Rippel, O., Mertens, P., Merhof, D.: Modeling the distribution of normal data in pre-trained deep features for anomaly detection. In: 2020 25th International Conference on Pattern Recognition, pp. 6726–6733 (2021)

    Google Scholar 

  11. Defard, T., Setkov, A., Loesch, A., Audigier, R.: PaDiM: a patch distribution modeling framework for anomaly detection and localization. In: Del Bimbo, A., Cucchiara, R., Sclaroff, S., Farinella, G.M., Mei, T., Bertini, M., Escalante, H.J., Vezzani, R. (eds.) ICPR 2021. LNCS, vol. 12664, pp. 475–489. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-68799-1_35

    Chapter  Google Scholar 

  12. Rudolph, M., Wandt, B., Rosenhahn, B.: Same same but DifferNet: semi-supervised defect detection with normalizing flows. In: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 1907–1916. (2021)

    Google Scholar 

  13. Zavrtanik, V., Kristan, M., Skočaj, D.: DRAEM-a discriminatively trained reconstruction embedding for surface anomaly detection. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 8330–8339 (2021)

    Google Scholar 

  14. Hu, J., Shen, L., Sun, G.: Squeeze-and-excitation networks. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7132–7141 (2018)

    Google Scholar 

  15. Chen, LC., Papandreou, G., Kokkinos, I.: Semantic image segmentation with deep convolutional nets and fully connected CRFs. In: International Conference on Learning Representations, pp. 357–361 (2014)

    Google Scholar 

  16. Lin, T.Y., Goyal, P., Girshick, R., et al.: Focal loss for dense object detection. In: Proceedings of the IEEE International Conference on Computer Vision, pp. 2980–2988 (2017)

    Google Scholar 

  17. Cimpoi, M., Maji, S., Kokkinos, I.: Describing textures in the wild. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3606–3613 (2014)

    Google Scholar 

  18. Akcay, S., Atapour-Abarghouei, A., Breckon, T.P.: GANomaly: semi-supervised anomaly detection via adversarial training. In: Jawahar, C.V., Li, H., Mori, G., Schindler, K. (eds.) ACCV 2018. LNCS, vol. 11363, pp. 622–637. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-20893-6_39

    Chapter  Google Scholar 

  19. Bergmann, P., Fauser, M., Sattlegger, D., Steger C.: Uninformed students: student-teacher anomaly detection with discriminative latent embeddings. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4183–4192 (2020)

    Google Scholar 

Download references

Acknowledgments

This paper is supported by the National Natural Science Foundation of China, under Grant No. 62162026, the Science and Technology Key Research and Development Program of Jiangxi Province, under Grant No. 20202BBEL53004 and Science and Technology Project supported by Education Department of Jiangxi Province, under Grant No. GJJ210611.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yuhui Huang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Huang, Y., Xie, X., Ning, W., Wu, D., Li, Z., Yang, H. (2023). An Unsupervised Surface Anomaly Detection Method Based on Attention and ASPP. In: Xu, Y., Yan, H., Teng, H., Cai, J., Li, J. (eds) Machine Learning for Cyber Security. ML4CS 2022. Lecture Notes in Computer Science, vol 13656. Springer, Cham. https://doi.org/10.1007/978-3-031-20099-1_16

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-20099-1_16

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-20098-4

  • Online ISBN: 978-3-031-20099-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics