Cigarette defect detection algorithm based on attention mechanism and multi-gradient feature fusion

被引:0
|
作者
Weiya Shi [1 ]
Shiqiang Zhang [2 ]
Shaowen Zhang [3 ]
机构
[1] Henan University of Technology,Key Laboratory of Grain Information Processing and Control
[2] Ministry of Education,Henan Key Laboratory of Grain Photoelectric Detection and Control
[3] Henan University of Technology,College of Artificial Intelligence and Big Data
[4] Henan University of Technology,College of Information Science and Engineering
[5] Henan University of Technology,undefined
关键词
YOLOX; Defect detection; Attention mechanism; Feature interaction;
D O I
10.1007/s00138-025-01681-0
中图分类号
学科分类号
摘要
Surface defect detection remains a persistent and challenging task. Aiming at the detection of surface defects in cigarettes, we propose an enhanced YOLOX-S model. Firstly, an improved attention mechanism named MS-GCT (Multi-Spectral Gaussian Context Transformer) is introduced into the model’s backbone to enhance the model’s ability of capturing the global context information within images and improve its comprehension of semantic feature information; secondly, we propose the DMG (Dynamic convolution and MS-GCT) module, and combined with the C2f (CSPLayer with 2 convolutions) module to construct the C2f-DMG module,which is introduced into the model to enhance feature interaction and feature extraction ability, to strengthen long-distance dependency ability of global features; finally, we replace the loss function with SIoU to enhance model performance and accelerate model convergence. To validate the effectiveness of our model, we conduct experiments on both the self-made cigarette dataset and the public dataset. The experimental results indicate that the improved model not only ensures the lightweight of the model, but also boosts the model’s mAP by 2.02, while achieving a detection speed of 73.17 frames−1. Furthermore, the proposed algorithm fulfills the real-time detection requirements for cigarette appearance defects.
引用
下载
收藏
相关论文
共 50 条
  • [31] AMFF-YOLOX: Towards an Attention Mechanism and Multiple Feature Fusion Based on YOLOX for Industrial Defect Detection
    Chen, Yu
    Tang, Yongwei
    Hao, Huijuan
    Zhou, Jun
    Yuan, Huimiao
    Zhang, Yu
    Zhao, Yuanyuan
    ELECTRONICS, 2023, 12 (07)
  • [32] Underwater object detection algorithm based on channel attention and feature fusion
    Zhang Y.
    Li X.
    Sun Y.
    Liu S.
    Xibei Gongye Daxue Xuebao/Journal of Northwestern Polytechnical University, 2022, 40 (02): : 433 - 441
  • [33] Small object detection model based on feature fusion of attention mechanism
    Chen H.
    Zhen X.
    Zhao T.
    Huazhong Keji Daxue Xuebao (Ziran Kexue Ban)/Journal of Huazhong University of Science and Technology (Natural Science Edition), 2023, 51 (03): : 60 - 66
  • [34] Fabric defect detection based on multi-source feature fusion
    Liu, Zhoufeng
    Liu, Shanliang
    Li, Chunlei
    Li, Bicao
    INTERNATIONAL JOURNAL OF CLOTHING SCIENCE AND TECHNOLOGY, 2022, 34 (02) : 156 - 177
  • [35] A Surface Defect Detection Method Based on Multi-Feature Fusion
    Wu, Xiaojun
    Xiong, Huijiang
    Yu, Zhiyang
    Wen, Peizhi
    NINTH INTERNATIONAL CONFERENCE ON DIGITAL IMAGE PROCESSING (ICDIP 2017), 2017, 10420
  • [36] Insulator Defect Detection Based on Multi-Scale Feature Fusion
    Bin L.
    Luyao Q.
    Xinshan Z.
    Zhimin G.
    Yangyang T.
    Diangong Jishu Xuebao/Transactions of China Electrotechnical Society, 2023, 38 (01): : 60 - 70
  • [37] A Crack Detection Algorithm for Concrete Pavement Based on Attention Mechanism and Multi-Features Fusion
    Qu, Zhong
    Chen, Wen
    Wang, Shi-Yan
    Yi, Tu-Ming
    Liu, Ling
    IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS, 2022, 23 (08) : 11710 - 11719
  • [38] Classroom Behavior Detection Based on Improved YOLOv5 Algorithm Combining Multi-Scale Feature Fusion and Attention Mechanism
    Tang, Longyu
    Xie, Tao
    Yang, Yunong
    Wang, Hong
    APPLIED SCIENCES-BASEL, 2022, 12 (13):
  • [39] Object Detection of Remote Sensing Image Based on Multi-Scale Feature Fusion and Attention Mechanism
    Du, Zuoqiang
    Liang, Yuan
    IEEE ACCESS, 2024, 12 : 8619 - 8632
  • [40] Detection of Rice Pests Based on Self-Attention Mechanism and Multi-Scale Feature Fusion
    Hu, Yuqi
    Deng, Xiaoling
    Lan, Yubin
    Chen, Xin
    Long, Yongbing
    Liu, Cunjia
    INSECTS, 2023, 14 (03)