Computer Science ›› 2026, Vol. 53 ›› Issue (7): 45-53.doi: 10.11896/jsjkx.250900131

• Computer Graphics & Multimedia • Previous Articles     Next Articles

Image Anomaly Detection Based on Masked Convolutional Kernel

CHEN Yifan, DING Cong, CAO Min   

  1. School of Computer Science and Technology,Soochow University,Suzhou,Jiangsu 215006,China
  • Received:2025-09-21 Revised:2025-12-09 Online:2026-07-15 Published:2026-07-10
  • About author:CHEN Yifan,born in 2003,undergra-duate.His main research interests include anomaly detection,and so on.
    CAO Min,born in 1992,Ph.D,associate professor,is a member of CCF(No.D0909M).Her main research interests include anomaly detection,visual language multimodal learning,and so on.
  • Supported by:
    National Natural Science Foundation of China(62476188).

Abstract: Image anomaly detection,which exploits patterns in normal images to detect abnormal images that do not conform to these patterns,plays a vital role in industrial production.Currently,one successful approach constructs a mask for normal images and uses a reconstruction network to predict the mask.The prediction error serves as the discriminant for image anomaly detection.However,this approach significantly increases model complexity when constructing the mask,compromising the reconstruction of normal image regions.To address this issue,this paper proposes a lightweight image anomaly detection method based on masked convolution kernels.This method applies a mask to the center of the convolution kernel and predicts the masked information through masked convolution and a channel-wise attention mechanism,effectively reducing the complexity of traditionalmas-king methods.A correction loss is introduced to constrain the reconstruction process of the masked predicted features,improving the reconstruction quality of normal regions.This method is validated on three industrial datasets MVTec,BTAD,and VISA,achieving AUROCs of 99.0%,93.7%,and 93.4%,respectively.This method can be combined with various existing reconstruction methods to effectively improve model performance without increasing model complexity.

Key words: Anomaly detection, Masked convolutional kernel, Unsupervised learning, Reconstruction network, Channel attention

CLC Number: 

  • TP391.41
[1]YAO H,CAO Y,LUO W,et al.Prior Normality Prompt Transformer for Multi-class Industrial Image Anomaly Detection[J].arXiv:2406.11507,2024.
[2]XIANG T,ZHANG Y,LU Y,et al.Squid:Deep feature in-painting for unsupervised anomaly detection[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2023:23890-23901.
[3]ROTH K,PEMULA L,ZEPEDA J,et al.Towards total recall in industrial anomaly detection[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2022:14318-14328.
[4]TIOSANO L,ABUTBUL R,LENDER R,et al.Anomaly Detection and Biomarkers Localization in Retinal Images[J].Journal of Clinical Medicine,2024,13(11):3093.
[5]THOMINE S,SNOUSSI H.Dual model knowledge distillation for industrial anomaly detection[J].Pattern Analysis and Applications,2024,27(3):77.
[6]DENG H,ZHANG Z,ZOU S,etal.Bi-directional frame interpolation for unsupervised video anomaly detection[C]//Procee-dings of the IEEE/CVF Winter Conference on Applications of Computer Vision.2023:2634-2643.
[7]ZOU Z,CHEN K,SHI Z,et al.Object detection in 20 years:A survey[J].Proceedings of the IEEE,2023,111(3):257-276.
[8]DONG Y F,SUN S Y,WANG Z,et al.Attention Mechanism Based Joint Optimization Algorithm for Defect Detection[J].Journal of Computer-Aided Design & Computer Graphics,2024,36(1):102-111.
[9]RISTEA N C,MADANN,IONESCU R T,et al.Self-supervised predictive convolutional attentive block for anomaly detection[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2022:13576-13586.
[10]ZHANG Z,ZHAO Z,ZHANG X,et al.Industrial anomaly detection with domain shift:A real-world dataset and masked multi-scale reconstruction[J].Computers in Industry,2023,151:103990.
[11]LIANG Y,ZHANG J,ZHAO S,et al.Omni-frequency channel-selection representations for unsupervised anomaly detection[J].IEEE Transactions on Image Processing,2023,32:4327-4340.
[12]MIAO J,TAO H,XIE H,et al.Reconstruction-based anomaly detection for multivariate time series using contrastive generative adversarial networks[J].Information Processing &Mana-gement,2024,61(1):103569.
[13]LI Z,LI N,JIANG K,et al.Superpixel Masking and Inpainting for Self-Supervised Anomaly Detection[C]//BMVC.2020.
[14]HOU J,ZHANG Y,ZHONG Q,et al.Divide-and-assemble:Learning block-wise memory for unsupervised anomalydetection[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision.2021:8791-8800.
[15]WANG S,LU H,YANG F,et al.Superpixel tracking[C]//2011 International Conference on Computer Vision.IEEE,2011:1323-1330.
[16]BERGMANN P,FAUSER M,SATTLEGGER D,et al.MVTec AD--A comprehensive real-world dataset for unsupervised anomaly detection[C]//Proceedings of the IEEE/CVF Confe-rence on Computer Vision and Pattern Recognition.2019:9592-9600.
[17]MISHRA P,VERK R,FORNASIER D,et al.VT-ADL:A vision transformer network for image anomaly detection and loca-lization[C]//2021 IEEE 30th International Symposium on Industrial Electronics(ISIE).IEEE,2021:1-6.
[18]ZOU Y,JEONG J,PEMULA L,et al.Spot-the-difference self-supervised pre-training for anomaly detection and segmentation[C]//European Conference on Computer Vision.Cham:Sprin-ger,2022:392-408.
[19]CHEN Y D,CHEN L R,YU W B,et al.Knowledge Distillation Anomaly Detection with Multi-Scale Fea1ure Fusion[J].Journal of Computer-Aided Design & Computer Graphics,2022,34(10):1542-1549.
[20]HE K,ZHANG X,REN S,et al.Deep residual learning forimage recognition[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.2016:770-778.
[21]RIPPEL O,MERTENS P,MERHOF D.Modeling the distribution of normal data in pre-trained deep features for anomaly detection[C]//2020 25th International Conference on Pattern Recognition(ICPR).IEEE,2021:6726-6733.
[22]ZAVRTANIK V,KRISTAN M,SKOČAJ D.Draem-a discriminatively trained reconstruction embedding for surface anomaly detection[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision.2021:8330-8339.
[23]AKCAY S,ATAPOUR-ABARGHOUEI A,BRECKONT P.Ganomaly:Semi-supervised anomaly detection via adversarial training[C]//Computer Vision-ACCV 2018:14th Asian Conference on Computer Vision.Springer,2019:622-637.
[24]VASWANI A.Attention is all you need[C]//Proceedins of the 31st International Conference on Neural Information Processing Systems.2017.
[25]HU J,SHEN L,SUN G.Squeeze-and-excitation networks[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.2018:7132-7141.
[26]DEFARD T,SETKOV A,LOESCH A,et al.Padim:a patch distribution modeling framework for anomaly detection and localization[C]//International Conference on Pattern Recognition.Cham:Springer 2021:475-489.
[27]LI C L,SOHN K,YOON J,et al.Cutpaste:Self-supervisedlearning for anomaly detection and localization[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2021:9664-9674.
[28]FAN F Y,ZHANG L,DAI Y.FEGAN:A Feature Extraction Based Approach For GAN Anomaly Detection And Localization[J].IEEE Access,2024,12:76154-76168.
[29]WU D,FAN S,ZHOU X,et al.Unsupervised Anomaly Detection via Masked Diffusion Posterior Sampling[J].arXiv:2404.17900,2024.
[30]JIANG B,LU Y,ZHANG B,et al.AGP-Net:Adaptive graph prior network for image denoising[J].IEEE Transactions on Industrial Informatics,2023,20(3):4753-4764.
[31]YI J,YOON S.Patch svdd:Patch-level svdd for anomaly detection and segmentation[C]//Proceedings of the Asian Conference on Computer Vision.2020.
[32]YU J,ZHENG Y,WANG X,et al.Fastflow:Unsupervisedanomaly detection and localization via 2d normalizing flows[J].arXiv:2111.07677,2021.
[33]GUDOVSKIY D,ISHIZAKA S,KOZUKA K.Cflow-ad:Real-time unsupervised anomaly detection with localization via conditional normalizing flows[C]//Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision.2022:98-107.
[34]JEONG J,ZOU Y,KIM T,et al.Winclip:Zero-/few-shot ano-maly classification and segmentation[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2023:19606-19616.
[1] JI Wendi, WANG Yongquan. Autoregressive Sequence Reconstruction for Unsupervised Anomaly Detection in Medical Insurance [J]. Computer Science, 2026, 53(7): 298-307.
[2] WANG Jia, GAN Yongqiang. Multivariate Mimic Voting Method Based on Anomaly Perception [J]. Computer Science, 2026, 53(7): 414-421.
[3] ZHU Yifei, LIU Tianpeng, SUN Tengzhong, LI Yanchen, CHEN Zhihong, FANG Pengfei. Survey of Hyperbolic Geometry in Computer Vision [J]. Computer Science, 2026, 53(7): 9-23.
[4] XU Jian, CHEN Shijie, FENG Jiancong, YANG Geng. CBT-AD:CNN-BiLSTM-Transformer Hybrid Model for Time Series Anomaly Detection [J]. Computer Science, 2026, 53(7): 230-241.
[5] ZHANG Juling, ZHAO Yibing, WANG Sheng, XI Ning, SHE Wenkui. Robust Time Series Anomaly Detection Model Based on Multi-view Cross Filtering [J]. Computer Science, 2026, 53(6A): 250600105-10.
[6] ZHANG Xiaohan, YANG Fei, MA Jingyao, ZHAO Hanyue, ZHAO Xu. CA-MLNet:Dual-stream Memory and Channel Attention Based High-precision Trajectory Prediction Model [J]. Computer Science, 2026, 53(6A): 250600118-8.
[7] CHANG Yanan, SUN Yi, CUI Jianqun, YAN Xianglong, ZONG Chenglu. Fuzzy Clustering-based DTN Routing Algorithm for IoT [J]. Computer Science, 2026, 53(6): 358-366.
[8] HUANG Siyang, YAO Ye, ZHU Yian, HAI Duo, XIONG Zhihai. Anomaly Detection and Localization Technology for Gravity Wave Spectral Images Based onPre-trained Networks [J]. Computer Science, 2026, 53(5): 193-206.
[9] CHEN Peng, HAO Junfeng, XIA Yunni, LI Xi. Novel Multi-task Federated Learning Based Approach for Detecting and Diagnosing Anomalies inCloud Microservices [J]. Computer Science, 2026, 53(5): 388-403.
[10] XU Jingtao, YANG Yan, JIANG Yongquan. Time-Frequency Attention Based Model for Time Series Anomaly Detection [J]. Computer Science, 2026, 53(2): 161-169.
[11] LIU Fujie, FANG Xianwen. Anomaly Detection and Repair Methods for Dynamic Adjustment of Business Process [J]. Computer Science, 2026, 53(2): 207-215.
[12] TANG Chenghai, YANG Yuqing, YANG Haifeng, CAI Jianghui, ZHOU Lichan. Adaptive Data Stream Anomaly Detection Algorithm Based on Variable Density [J]. Computer Science, 2026, 53(2): 216-226.
[13] HAN Lei, SHANG Haoyu, QIAN Xiaoyan, GU Yan, LIU Qingsong, WANG Chuang. Constrained Multi-loss Video Anomaly Detection with Dual-branch Feature Fusion [J]. Computer Science, 2026, 53(2): 236-244.
[14] WANG Cheng, JIN Cheng. KAN-based Unsupervised Multivariate Time Series Anomaly Detection Network [J]. Computer Science, 2026, 53(1): 89-96.
[15] JIANG Rui, FAN Shuwen, WANG Xiaoming, XU Youyun. Clustering Algorithm Based on Improved SOM Model [J]. Computer Science, 2025, 52(8): 162-170.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!