基于多基准图差异建模与对抗学习的缺陷检测方法
柳杨,姬裕鹏,韩茂林,韦南林,田鹏,李钊,韩磊
(长园深瑞继保自动化有限公司,广东 深圳 518057)
摘 要 :变电站设备的自动化巡检对电力系统安全稳定运行至关重要。针对传统单图像建模方法易受环境变化、视角偏移及设备老化影响,导致检测准确率低、鲁棒性差的问题,提出了一种基于多基准图差异建模与对抗学习的缺陷检测方法。该方法利用 SuperPoint 与 SuperGlue 算法实现高精度图像配准,构建多基准图差异建模机制与轻量级差异评分网络,动态融合多基准图与待测图的差异特征 ;结合特征金字塔与通道-空间注意力机制构建双分支检测网络 ;并引入正负样本差异对抗机制,提升模型对微小缺陷的识别能力。实验结果表明,该方法在平均精度均值、准确率、召回率等指标上优于主流算法,具备良好的鲁棒性与工程应用价值。
关键词 : 缺陷检测 ;多基准图差异建模 ;图像配准 ;对抗学习 ;特征金字塔网络
中图分类号 :TM63 文献标识码 :A 文章编号 :2097-6623(2026)10-0063-06
A Defect Detection Method Based on Multi-Reference Image Difference
Modeling and Adversarial Learning
LIU Yang, JI Yu-peng, HAN Mao-lin, WEI Nan-lin, TIAN Peng, LI Zhao, HAN Lei
( CYG SUNRI Co., Ltd., Shenzhen 518057, China)
Abstract: Automated inspection of substation equipment is crucial for the safe and stable operation of power systems. To address the low detection accuracy and poor robustness of traditional single-image modeling methods, which are susceptibility to environmental variations,viewpoint shifts, and equipment aging, a defect detection method based on multi-reference image difference modeling and adversarial learning is proposed. This method uses SuperPoint and SuperGlue algorithms to achieve high-precision image registration, constructs a multi-reference image difference modeling mechanism and a lightweight difference scoring network, and dynamically fuses the difference features between multiple-reference images and the test image. A dual-branch detection network is constructed by combining a feature pyramid and a channel-spatial attention mechanism, and a positive-negative sample discrepancy adversarial mechanism is introduced to enhance the model’s ability to identify minor defects. Experimental results show that the proposed method outperforms mainstream algorithms in terms of mean average precision,accuracy, and recall, and exhibits good robustness and engineering application value.
Key words: defect detection; multi-reference image difference modeling; image registration; adversarial learning; feature pyramid network
参考文献
[1] 刘华锋,韩翊,茅耀斌 . 基于自监督学习的变电站缺陷检测 [J]. 计算机系统应用,2023,32(5) :112-122.
[2] 陈婷,周旻,韩勤,等 . 基于改进 YOLOv4 的变电站缺陷检测 [J]. 计算机系统应用,2022,31(6) :245-251.
[3] 张可,黄文礼,侯仕杰,等 . 基于多尺度特征图的变电站设备缺陷递进检测 [J]. 计算技术与自动化,2025,44(2) :134-141.
[4] Detone D,Malisiewicz T,Rabinovich A.Superpoint:self-supervised interest point detection and description[C]//2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops(CVPRW),2018 :224-236.
[5] 王康涛 . 基于深度学习 SuperGlue 的图像拼接与实现 [J]. 山东理工大学学报 ( 自然科学版 ),2025,39(2) :10-15.
[6] Xu Wanni,Fu Youlei,Zhu Dongmei.ResNet and its application to medical image processing :research progress and challenges[J].Computer Methods and Programs in Biomedicine,2023,240 :107660.
[7] 陈雷,杨吉斌,曹铁勇,等 . 一种基于 Transformer 特征金字塔的自蒸馏目标分割方法 [J]. 电子与信息学报,2025,47(2) :551-560.
[8] 杨淇,孟羽,陈思磊,等 . 基于注意力机制的光伏系统故障电弧检测与定位研究 [J]. 中国电机工程学报,2024,44(19) :7840-7851.
[9] Zhong Xiaopin,Wang Guankun,Liu Weixiang,et al.Mask focal loss :a unifying framework for dense crowd counting with canonical object detection networks[J].Multimedia Tools & Applications,2024,83(27) :70571-70593.
[10] 梁俊杰,韦舰晶,蒋正锋 . 生成对抗网络 GAN 综述 [J].计算机科学与探索,2020,14(1) :1-17.
[11] 姚咏儿,曹一青,闫恪涛 .SAF-YOLOv8 :改进 YOLOv8 金属表面缺陷检测算法 [J]. 激光与光电子学进展,2025,62(20) :173-181.
[12] Ren Shaoqing,He Kaiming,Girshick Ross,et al. Faster R-CNN :towards real-time object detection with region proposal networks[J].IEEE Transactions on Pattern Analysis & Machine Intelligence,2017,39(6) :1137-1149.
[13] Li Yan,Weng Liguo,Xia Min,et al.Multiscale fusion siamese network based on threebranch attention mechanism for high-resolution remote sensing image change detection[J].Remote Sensing,2024,16(10) :1665.
[14] Roshankar R,Keyvanpour M R.STANet :spatiotemporal attention-enhanced WaveNet for crime hotspot prediction[C]//2024 15th International Conference on Information and Knowledge Technology(IKT),2024 :6-11.