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 条
  • [1] Jellyfish detection algorithm based on multi-gradient flow feature fusion
    Gao, Meijing
    Wang, Kunda
    Xie, Yunjia
    Zhang, Bozhi
    Yan, Yonghao
    DIGITAL SIGNAL PROCESSING, 2024, 152
  • [2] Electrode defect YOLO detection algorithm based on attention mechanism and multi-scale feature fusion
    Li Y.-W.
    Sun H.-R.
    Hu Y.-M.
    Han Y.-J.
    Kongzhi yu Juece/Control and Decision, 2023, 38 (09): : 2578 - 2586
  • [3] Research on injection molded parts defect detection algorithm based on multiplicative feature fusion and improved attention mechanism
    Rongnan Zhang
    Yang Li
    Zhiguang Guan
    Scientific Reports, 14 (1)
  • [4] Text Detection Algorithm Based on Multi-Scale Attention Feature Fusion
    She, Xiangyang
    Liu, Zhe
    Dong, Lihong
    Computer Engineering and Applications, 2024, 60 (01) : 198 - 206
  • [5] Pedestrian detection algorithm based on multi-scale feature extraction and attention feature fusion
    Xia, Hao
    Ma, Jun
    Ou, Jiayu
    Lv, Xinyao
    Bai, Chengjie
    DIGITAL SIGNAL PROCESSING, 2022, 121
  • [6] Textile defect detection based on multi-proportion spatial attention mechanism and channel memory feature fusion network
    Ji, Yaxin
    Di, Lan
    IET IMAGE PROCESSING, 2024, 18 (02) : 412 - 427
  • [7] Fabric Defect Classification Algorithm Based on Multi-Scale Feature Fusion of Spatial Attention
    Song Zhiyong
    Pan Haipeng
    LASER & OPTOELECTRONICS PROGRESS, 2022, 59 (10)
  • [8] LCD character defect detection algorithm based on multi-feature moment fusion
    Chen Xin
    Fang Cheng-gang
    CHINESE JOURNAL OF LIQUID CRYSTALS AND DISPLAYS, 2022, 37 (10) : 1326 - 1333
  • [9] Surface defect detection of hot rolled steel based on multi-scale feature fusion and attention mechanism residual block
    Hongkai Zhang
    Suqiang Li
    Qiqi Miao
    Ruidi Fang
    Song Xue
    Qianchuan Hu
    Jie Hu
    Sixian Chan
    Scientific Reports, 14
  • [10] Surface defect detection of hot rolled steel based on multi-scale feature fusion and attention mechanism residual block
    Zhang, Hongkai
    Li, Suqiang
    Miao, Qiqi
    Fang, Ruidi
    Xue, Song
    Hu, Qianchuan
    Hu, Jie
    Chan, Sixian
    SCIENTIFIC REPORTS, 2024, 14 (01)