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 条
  • [21] Cloth Defect Detection Network Based on Feature Subtraction and Attention Mechanism
    Xu, Weiwei
    Jiang, Mengyao
    Li, Shuhan
    Yu, Li
    2022 3rd International Conference on Pattern Recognition and Machine Learning, PRML 2022, 2022, : 459 - 464
  • [22] A Multi-Attention Fusion Mechanism for Collaborative Industrial Surface Defect Detection
    Yue, Xiaoli
    Zhong, Guoqiang
    Chu, Boce
    FOURTEENTH INTERNATIONAL CONFERENCE ON GRAPHICS AND IMAGE PROCESSING, ICGIP 2022, 2022, 12705
  • [23] Multi-feature fusion gaze estimation based on attention mechanism
    Hu, Zhangfang
    Xia, Yanling
    Luo, Yuan
    Wang, Lan
    OPTOELECTRONIC IMAGING AND MULTIMEDIA TECHNOLOGY VIII, 2021, 11897
  • [24] Domain adaptation based on feature fusion and multi-attention mechanism*
    Wang, Tiansheng
    Liu, Zhonghua
    Ou, Weihua
    Huo, Hua
    COMPUTERS & ELECTRICAL ENGINEERING, 2023, 108
  • [25] Attention-Based Multiscale Feature Fusion for Efficient Surface Defect Detection
    Zhao, Yuhao
    Liu, Qing
    Su, Hu
    Zhang, Jiabin
    Ma, Hongxuan
    Zou, Wei
    Liu, Song
    IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, 2024, 73 : 1 - 10
  • [26] A Method for Surface Defect Detection Based on Multiscale Feature Fusion and Pyramid Attention
    Tang, Ying
    Wang, Hongyuan
    Zhou, Qunying
    Sun, Boyan
    IEEE ACCESS, 2024, 12 : 36457 - 36465
  • [27] An efficient model for metal surface defect detection based on attention mechanism and multi-scale feature
    Heng Zhang
    Wei Fu
    Xiaoming Wang
    Dong Li
    Danchen Zhu
    Xingwang Su
    The Journal of Supercomputing, 2025, 81 (1)
  • [28] Adaptive feature fusion with attention mechanism for multi-scale target detection
    Ju, Moran
    Luo, Jiangning
    Wang, Zhongbo
    Luo, Haibo
    NEURAL COMPUTING & APPLICATIONS, 2021, 33 (07): : 2769 - 2781
  • [29] Adaptive feature fusion with attention mechanism for multi-scale target detection
    Moran Ju
    Jiangning Luo
    Zhongbo Wang
    Haibo Luo
    Neural Computing and Applications, 2021, 33 : 2769 - 2781
  • [30] RETRACTED: Surface Defect Detection Method Based on Improved Attention Mechanism and Feature Fusion Model (Retracted Article)
    Chen, Yongbin
    Wang, Guitang
    Fu, Qinshen
    COMPUTATIONAL INTELLIGENCE AND NEUROSCIENCE, 2022, 2022