计算机科学与技术登峰学科专刊

融合多尺度信息与限制范围可变形注意力的铆钉检测方法

  • 王伟志 ,
  • 胡海洋 ,
  • 顾盼 ,
  • 崔高宾 ,
  • 李正华 ,
  • 李渊
展开
  • 杭州电子科技大学 计算机学院,浙江 杭州 310018
王伟志(2000-),男,硕士研究生,研究方向:目标检测,E-mail:wangweizhi@hdu.edu.cn。
胡海洋(1977-),男,教授,研究方向:机器视觉、智能制造,E-mail:huhaiyang@hdu.edu.cn。

收稿日期: 2025-04-11

  网络出版日期: 2025-08-04

基金资助

浙江省重点研发计划“领雁”项目(2023C01145)

A rivet detection method combining multi-scale information with limited range deformable attentions

  • WANG Weizhi ,
  • HU Haiyang ,
  • GU Pan ,
  • CUI Gaobin ,
  • LI Zhenghua ,
  • LI Yuan
Expand
  • School of Computer, Hangzhou Dianzi University, Hangzhou Zhejiang 310018, China

Received date: 2025-04-11

  Online published: 2025-08-04

摘要

铆钉在工业领域中常被用于金属零件或者结构体的连接,一旦出现漏装,就可能发生严重的安全事故。为了解决上述的问题,提出了一种用于铆钉连接检测的新模型LRD-DETR。模型在提取网络进行特征提取后,加入了一个多尺度融合模块DSPANet,加强了特征图的语义信息;在编码器中设计了一种限制范围的可变形注意力机制,限制了每一个参考点选取采样点的范围;在解码器中使用了DAB-DETR的解码器部分,并在其基础上设计了一种新的MLP(Multilayer Perceptron)模块用于更新每一次的4D锚框信息。在自建的铆钉数据集中,模型取得了令人满意的结果,mAP值达到了59.2%,实验结果表明,相比于主流的目标检测算法,本文提出的铆钉检测方法效果更优。

本文引用格式

王伟志 , 胡海洋 , 顾盼 , 崔高宾 , 李正华 , 李渊 . 融合多尺度信息与限制范围可变形注意力的铆钉检测方法[J]. 杭州电子科技大学学报, 2025 , 45(4) : 42 -50 . DOI: 10.13954/j.cnki.hdu.2025.04.005

Abstract

Rivets are often used to connect different metal parts or structures in the industrial field, and some serious safety problems may occur once assembly errors or missing installation occur. In order to solve the above problems, a LRD-DETR (Limited Ranged-Deformable-DETR) model for detecting rivet is proposed. After feature extraction in the feature extraction network, a multi-scale fusion module DSPANet is added to enhance the semantic information of feature maps. A range-limiting deformable attention mechanism is designed in the encoder, which limits the sampling range of each reference point. The DAB-DETR is used in the decoder; and based on it, a new MLP module is designed to update the 4D anchor frame information every time. The experimental results showed that the model in the self-built rivet dataset achieved a satisfactory result of 59.2% mAP value, which was better than prevailing target detection algorithms.

参考文献

[1]刘颖,刘红燕,范九伦,等. 基于深度学习的小目标检测研究与应用综述[J].电子学报, 2020, 48 (3):590-601.
[2]ALPAYDIN E, KAYNAK C. Cascading classifiers[J]. Kybernetika, 1998, 34(4): 369-374.
[3]DALAL N, TRIGGS B. Histograms of oriented gradients for human detection[C]//2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05). June 20-25, 2005, San Diego, CA, USA. IEEE, 2005: 886-893.
[4]LOWE D G .Distinctive Image Features from Scale-Invariant Keypoints[J].International Journal of Computer Vision, 2004, 60(2):91-110.
[5]GIRSHICK R, DONAHUE J, DARRELL T, et al. Rich feature hierarchies for accurate object detection and semantic segmentation[C]//2014 IEEE Conference on Computer Vision and Pattern Recognition. June 23-28, 2014, Columbus, OH, USA. IEEE, 2014: 580-587.
[6]GIRSHICK R. Fast R-CNN[C]//2015 IEEE International Conference on Computer Vision (ICCV). December 7-13, 2015, Santiago, Chile. IEEE, 2015: 1440-1448.
[7]REN S Q, HE K U, GIRSHICK R, et al. Faster R-CNN: Towards real-time object detection with region proposal networks[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017, 39(6): 1137-1149.
[8]REDMON J, DIVVALA S, GIRSHICK R, et al. You only look once: unified, real-time object detection[C]//2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). June 27-30, 2016, Las Vegas, NV, USA. IEEE, 2016: 779-788.
[9]LIU W, ANGUELOV D, ERHAN D, et al. SSD: single shot MultiBox detector[C]//Computer Vision-ECCV 2016. Cham: Springer International Publishing, 2016: 21-37.
[10]LAW H, DENG J. Cornernet: Detecting objects as paired keypoints[C]//Proceedings of the European conference on computer vision (ECCV). Cham: Springer, 2018: 765-781.
[11]VASWANI A, SHAZEER N, PARMAR N, et al. Attention is all you need[EB/OL]. (2023-08-02)[2025-03-04]. https://arxiv.org/abs/1706.03762.
[12]LIU Z, LIN Y T, CAO Y, et al. Swin transformer: hierarchical vision transformer using shifted windows[C]//2021 IEEE/CVF International Conference on Computer Vision (ICCV). October 10-17, 2021, Montreal, QC, Canada. IEEE, 2021: 9992-10002.
[13]CARION N, MASSA F, SYNNAEVE G, et al. End-to-end object detection with transformers[C]//Computer Vision-ECCV 2020. Cham: Springer International Publishing, 2020: 213-229.
[14]ZHU X, SU W, LU L, et al. Deformable DETR: Deformable Transformers for End-to-End Object Detection[EB/OL]. (2021-03-18)[2025-03-04]. https://arxiv.org/abs/2010.04159.
[15]LIU S, LI F, ZHANG H, et al. DAB-DETR: Dynamic Anchor Boxes are Better Queries for DETR[EB/OL]. (2022-03-30)[2025-03-04]. https://arxiv.org/abs/2201.12329.
[16]ZHAO Y, LV W, XU S, et al. DETRs Beat YOLOs on Real-time Object Detection[EB/OL]. (2024-04-03)[2025-03-04]. https://arxiv.org/abs/2304.08069.
[17]HE K M, ZHANG X Y, REN S Q, et al. Deep residual learning for image recognition[C]//2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). June 27-30, 2016, Las Vegas, NV, USA. IEEE, 2016: 770-778.
[18]LIU S, QI L, QIN H F, et al. Path aggregation network for instance segmentation[C]//2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition. June 18-23, 2018, Salt Lake City, UT, USA. IEEE, 2018: 8759-8768.
[19]MENG D P, CHEN X K, FAN Z J, et al. Conditional DETR for fast training convergence[C]//2021 IEEE/CVF International Conference on Computer Vision (ICCV). October 10-17, 2021, Montreal, QC, Canada. IEEE, 2021: 3631-3640.
[20]BA J L, KIROS J R, HINTON G E. Layer normalization[EB/OL].(2016-07-21)[2025-03-04]. https://arxiv.org/abs/1607.06450.
[21]XU J, LI Z, DU B, et al. Reluplex made more practical: Leaky ReLU[C]//2020 IEEE Symposium on computers and communications (ISCC). IEEE, 2020: 1-7.
文章导航

/

〈 〉