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

被引:0
|
作者
Shi, Weiya [1 ,2 ,3 ]
Zhang, Shiqiang [2 ,4 ]
Zhang, Shaowen [2 ,4 ]
机构
[1] Henan Univ Technol, Key Lab Grain Informat Proc & Control, Minist Educ, Zhengzhou, Peoples R China
[2] Henan Univ Technol, Henan Key Lab Grain Photoelect Detect & Control, Zhengzhou, Peoples R China
[3] Henan Univ Technol, Coll Artificial Intelligence & Big Data, Zhengzhou 450001, Henan, Peoples R China
[4] Henan Univ Technol, Coll Informat Sci & Engn, Zhengzhou 450001, Henan, Peoples R China
基金
中国国家自然科学基金;
关键词
YOLOX; Defect detection; Attention mechanism; Feature interaction;
D O I
10.1007/s00138-025-01681-0
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页数:14
相关论文
共 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] Research on Small Object Detection Based on Feature Fusion and Attention Mechanism
    Liu, Jianwei
    Liu, Zheng
    Lu, Jingwen
    Li, Chuancan
    Chen, Gangqiang
    39TH YOUTH ACADEMIC ANNUAL CONFERENCE OF CHINESE ASSOCIATION OF AUTOMATION, YAC 2024, 2024, : 2285 - 2291
  • [35] 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
  • [36] 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
  • [37] 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
  • [38] 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
  • [39] 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):
  • [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)