Multi-Granularity Content-Aware Network with Semantic Integration for Unsupervised Anomaly Detection
Source abstract
Abstract
Unsupervised anomaly detection has been widely applied to industrial scenarios. Recently, transformer-based methods have also been developed and have produced good performance. Although the global dependencies in anomaly images are considered, the typical patch partition strategy in the vanilla self-attention mechanism ignores the content consistencies in anomaly defects or normal regions. To sufficiently exploit the content consistency in images, we propose the multi-granularity content-aware network with semantic integration (MGCA-Net), in which superpixel segmentation is introduced into feature space to divide images according to their spatial structures. Specifically, we adopt a pre-trained ResNet as the encoder to extract features. Then, we design content-aware attention blocks (CAABs) to capture the global information in features at different granularities. In this block, we impose superpixel segmentation on the features from the encoder and employ the superpixels as tokens for the learning of global relationships. Because the superpixels are divided according to their content consistencies, the spatial structures of objects in anomaly or normal regions are preserved. Meanwhile, the multi-granularity semantic integration block is devised to further integrate the global information of all granularities. Next, we use semantic-guided fusion blocks (SGFBs) to progressively upsample the features with the help of CAABs. Finally, the differences between the outputs of CAABs and SGFBs are calculated and merged to predict the anomaly defects. Thanks to the preservation of content consistency of objects, experimental results on two benchmark datasets demonstrate that our proposed MGCA-Net achieves superior anomaly detection performance over state-of-the-art methods.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Anomaly Detection Techniques and Applications · Domain Adaptation and Few-Shot Learning · Advanced Neural Network Applications
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Artificial Intelligence, Nankai University, Tianjin 300350, China
North Automatic Control Technology Institute, Taiyuan 030006, China
References (50)
Show source-provided references
1. Leveraging computer vision towards high-efficiency autonomous industrial facilities10.1007/s10845-024-02396-1 ↗
2. Deep learning for unsupervised anomaly localization in industrial images: A survey10.1109/TIM.2022.3196436 ↗
3. IM-IAD: Industrial image anomaly detection benchmark in manufacturing10.1109/TCYB.2024.3357213 ↗
4. Gong, D., Liu, L., Le, V., Saha, B., Mansour, M.R., Venkatesh, S., and Hengel, A.V.D. (November, January 27). Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection. Proceedings of the 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea.10.1109/ICCV.2019.00179 ↗
5. f-AnoGAN: Fast unsupervised anomaly detection with generative adversarial networks10.1016/j.media.2019.01.010 ↗
6. Yao, H., and Yu, W. (2022). Generalizable industrial visual anomaly detection with self-induction vision transformer. arXiv.
7. AnoViT: Unsupervised anomaly detection and localization with vision transformer-based encoder-decoder10.1109/ACCESS.2022.3171559 ↗
8. Yang, Q., and Guo, R. (2024). An unsupervised method for industrial image anomaly detection with vision transformer-based autoencoder. Sensors, 24.10.3390/s24082440 ↗
9. Dual-attention transformer and discriminative flow for industrial visual anomaly detection10.1109/TASE.2023.3322156 ↗
10. Huang, H., Zhou, X., Cao, J., He, R., and Tan, T. (2022). Vision transformer with super token sampling. arXiv.
11. Multiscale super token transformer for hyperspectral image classification10.1109/LGRS.2024.3431538 ↗
12. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep residual learning for image recognition. Proceedings of the 2016 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
13. Deep learning advancements in anomaly detection: A comprehensive survey
14. Deep industrial image anomaly detection: A survey10.1007/s11633-023-1459-z ↗
15. Baitieva, A., Hurych, D., Besnier, V., and Bernard, O. (2024, January 16–22). Supervised anomaly detection for complex industrial images. Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR52733.2024.01681 ↗
16. Kawachi, Y., Koizumi, Y., and Harada, N. (2018, January 15–20). Complementary set variational autoencoder for supervised anomaly detection. Proceedings of the 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Calgary, AB, Canada.10.1109/ICASSP.2018.8462181 ↗
17. Yao, X., Li, R., Zhang, J., Sun, J., and Zhang, C. (2023, January 18–22). Explicit boundary guided semi-push-pull contrastive learning for supervised anomaly detection. Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada.10.1109/CVPR52729.2023.02346 ↗
18. Yeh, M.-F., Luo, C.-C., and Liu, Y.-C. (2025). Optimization of Gabor convolutional networks using the Taguchi method and their application in wood defect detection. Appl. Sci., 15.10.20944/preprints202508.0885.v1 ↗
19. Semi-supervised anomaly detection via neural process10.1109/TKDE.2023.3266755 ↗
20. Semi-supervised anomaly detection with dual prototypes autoencoder for industrial surface inspection10.1016/j.optlaseng.2020.106324 ↗
21. Wu, P., Zhou, X., Pang, G., Yang, Z., Yan, Q., Wang, P., and Zhang, Y. (2024, January 20–27). Weakly supervised video anomaly detection and localization with spatio-temporal prompts. Proceedings of the 32nd ACM International Conference on Multimedia, New York, NY, USA.10.1145/3664647.3681442 ↗
22. Yang, Z., Liu, J., and Wu, P. (2024, January 16–22). Text prompt with normality guidance for weakly supervised video anomaly detection. Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR52733.2024.01788 ↗
23. Feature encoding with autoencoders for weakly supervised anomaly detection10.1109/TNNLS.2021.3086137 ↗
24. Bilal, M., and Hanif, M.S. (2025). Fast anomaly detection for vision-based industrial inspection using cascades of Null subspace PCA detectors. Sensors, 15.10.3390/s25154853 ↗
25. Tang, S., Xu, X., Li, H., and Zhou, T. (2025). Unsupervised detection of surface defects in varistors with reconstructed normal distribution under mask constraints. Appl. Sci., 15.10.3390/app151910479 ↗
26. LRGAN: Visual anomaly detection using GAN with locality-preferred recoding10.1016/j.jvcir.2021.103201 ↗
27. Lin, S.C., Lee, H.W., Hsieh, Y.S., Ho, C.Y., and Lai, S.H. (2023, January 20–24). Masked attention ConvNeXt Unet with multi-synthesis dynamic weighting for anomaly detection and localization. Proceedings of the 34th British Machine Vision Conference (BMVC), Aberdeen, UK.
28. Zhou, W., Zhou, S., Cao, Y., Yang, J., and Liu, H. (2025). Unsupervised anomaly detection method for electrical equipment based on audio latent representation and parallel attention mechanism. Appl. Sci., 15.10.3390/app15158474 ↗
29. He, H., Zhang, J., Chen, H., Chen, X., Li, Z., Chen, X., and Xie, L. (2024, January 20–27). A diffusion-based framework for multi-class anomaly detection. Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), Vancouver, BC, Canada.10.1609/aaai.v38i8.28690 ↗
30. Akshay, S., Narasimhan, N.L., George, J., and Balasubramanian, V.N. (2025, January 11–15). A unified latent schrodinger bridge diffusion model for unsupervised anomaly detection and localization. Proceedings of the 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA.10.1109/CVPR52734.2025.02377 ↗
31. Zhang, X., Li, N., Li, J., Dai, T., Jiang, Y., and Xia, S.T. (2023, January 18–22). Unsupervised surface anomaly detection with diffusion probabilistic model. Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada.10.1109/ICCV51070.2023.00624 ↗
32. Park, S., and Choi, D. (2025). Exploring the potential of anomaly detection through reasoning with large language models. Appl. Sci., 15.10.3390/app151910384 ↗
33. He, H., Bai, Y., Zhang, J., He, Q., Chen, H., Gan, Z., and Xie, L. (2024, January 16–20). MambaAD: Exploring state space models for multi-class unsupervised anomaly detection. Proceedings of the 38th Advances in Neural Information Processing Systems (NeuriPS), Vancouver, BC, Canada.
34. Guo, J., Lu, S., Zhang, W., Chen, F., Li, H., and Liao, H. (2025, January 11–15). Dinomaly: The less is more philosophy in multi-class unsupervised anomaly detection. Proceedings of the 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA.10.1109/CVPR52734.2025.01900 ↗
35. Scalable industrial visual anomaly detection with partial semantics aggregation vision transformer
36. Fault Diagnosis of air handling units in an auditorium using real operational labeled data across different operation modes10.1061/JCCEE5.CPENG-6677 ↗
37. A hybrid SMOTE and Trans-CWGAN for data imbalance in real operational AHU AFDD: A case study of an auditorium building10.1016/j.enbuild.2025.116447 ↗
38. Jampani, V., Sun, D., Liu, M.Y., Yang, M.H., and Kautz, J. (2018, January 8–14). Superpixel sampling networks. Proceedings of the 2018 European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01234-2_22 ↗
39. Woo, S., Park, J., Lee, J., and Kweon, I. (2018, January 8–14). CBAM: Convolutional Block Attention Module. Proceedings of the 2018 European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01234-2_1 ↗
40. Bergmann, P., Fauser, M., Sattlegger, D., and Steger, C. (2019, January 15–20). MVTec AD—A comprehensive real-world dataset for unsupervised anomaly detection. Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00982 ↗
41. Zou, Y., Jeong, J., Pemula, L., Zhang, D., and Dabeer, O. (2022, January 23–27). Spot-the-difference self-supervised pre-training for anomaly detection and segmentation. Proceedings of the 2022 European Conference on Computer Vision (ECCV), Tel Aviv, Israel.10.1007/978-3-031-20056-4_23 ↗
42. Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., and Li, F. (2009, January 20–25). ImageNet: A large-scale hierarchical image database. Proceedings of the 2009 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Miami, FL, USA.10.1109/CVPR.2009.5206848 ↗
43. Zavrtanik, V., Kristan, M., and Skocaj, D. (2021, January 11–17). DRAEM-A discriminatively trained reconstruction embedding for surface anomaly detection. Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Virtual.10.1109/ICCV48922.2021.00822 ↗
44. You, Z., Cui, L., Shen, Y., Yang, K., Lu, X., Zheng, Y., and Le, X. (December, January 28). A unified model for multi-class anomaly detection. Proceedings of the 36th Advances in Neural Information Processing Systems (NeuriPS), New Orleans, LA, USA.
45. Deng, H., and Li, X. (2022, January 19–24). Anomaly detection via reverse distillation from one-class embedding. Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA.10.1109/CVPR52688.2022.00951 ↗
46. Liu, Z., Zhou, Y., Xu, Y., and Wang, Z. (2023, January 18–22). SimpleNet: A Simple Network for Image Anomaly Detection and Localization. Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada.10.1109/CVPR52729.2023.01954 ↗
47. Exploring plain ViT features for multi-class unsupervised visual anomaly detection10.1016/j.cviu.2025.104308 ↗
48. A survey of deep learning for industrial visual anomaly detection
49. Selvaraju, R.R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., and Batra, D. (2017, January 22–29). Grad-cam: Visual explanations from deep networks via gradient-based localization. Proceedings of the 2017 IEEE/CVF International Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.74 ↗
50. Building change detection in earthquake: A multi-scale interaction network with offset calibration and a dataset