Computer Engineering and Applications ›› 2024, Vol. 60 ›› Issue (21): 244-253.DOI: 10.3778/j.issn.1002-8331.2308-0023

• Graphics and Image Processing • Previous Articles     Next Articles

Improved YOLOX Algorithm for Carbon Contact Strip Detection Method

ZHENG Aiyun, JIANG Xinyu, LIU Weimin, CHEN Shujun, ZHENG Zhi   

  1. 1.College of Mechanical Engineering, North China University of Science and Technology, Tangshan, Hebei 063210, China
    2.CRRC Tangshan Co., Ltd., Tangshan, Hebei 064000, China
  • Online:2024-11-01 Published:2024-10-25

改进YOLOX算法的碳滑板缺陷检测方法

郑爱云,蒋新宇,刘伟民,陈澍军,郑直   

  1. 1.华北理工大学 机械工程学院,河北 唐山 063210
    2.中车唐山机车车辆有限公司,河北 唐山 064000

Abstract: In view of the large number of dense small target defects in the carbon slide defect image, it is easy to misdetect and miss the problem, an improved YOLOX carbon slide defect detection algorithm is proposed based on YOLOX algorithm. Firstly, expansive convolution is used in the backbone network to increase the receptive field of the feature map to solve the problem of insufficient feature extraction capability in the backbone network. Secondly, in order to further reduce the loss, new connections are built in YOLOX and CBAM attention module is added to reduce the missed detection of small target defects, and the detection capability is further improved. Thirdly, the adaptive feature fusion network ASFF is introduced in the neck to fuse the feature layers of different scales to enhance the feature expression ability of the network. Finally, the EIOU loss function is used to replace the IOU loss function, and the influence of the aspect ratio between the predicted frame and the real frame is fully considered. The convergence speed of the model is accelerated and the accuracy is improved. The experimental results on the self-made carbon slide data set show that compared with the original YOLOX algorithm, the average accuracy is improved by 4.89?percentage points, and the recognition rate of small targets is significantly improved.

Key words: defect detection, YOLOX, attention mechanism, loss function, small target detection

摘要: 针对碳滑板缺陷图像中存在大量密集小目标缺陷,容易出现误检及漏检的问题,基于YOLOX算法提出一种改进的YOLOX碳滑板缺陷检测算法。在主干网络中使用膨胀卷积,增大特征图的感受野,解决主干网络特征提取能力不足的问题;为了进一步降低损失,在YOLOX中构建新的连接并加入CBAM注意力模块,减少小目标缺陷漏检,检测能力也进一步提升;在颈部引入自适应特征融合网络ASFF,将不同尺度特征层进行融合,增强网络特征表达能力;用EIOU损失函数代替IOU损失函数,充分考虑了预测框和真实框纵横比对模型优化的影响,加快模型收敛速度的同时精度也有所提升。在自制碳滑板数据集上的实验结果表明,相比于原始YOLOX算法平均精确率提升4.89个百分点,对小目标识别率明显提升。

关键词: 缺陷检测, YOLOX, 注意力机制, 损失函数, 小目标检测