基于改进YOLOv5s的动车配件裂纹荧光磁粉检测研究
Research on Fluorescent Magnetic Particle Crack Detection of Bullet Train Accessories Based on Improved YOLOv5s
DOI: 10.12677/MOS.2023.126505, PDF,    国家自然科学基金支持
作者: 杨 冲, 曾 勇, 窦同旭, 乔 辉, 徐仟祥:盐城工学院机械工程学院,江苏 盐城
关键词: 动车配件裂纹YOLOv5s荧光磁粉检测Bullet Train Parts Crack YOLOv5s Fluorescent Magnetic Particle Detection
摘要: 针对目前动车配件裂纹缺陷磁粉检测存在数据样本少,没有公开数据集,网络模型体积大,识别精度低等问题,本文建立数据集并提出一种改进YOLOv5s目标检测算法。首先,针对数据样本少的问题,为了提高模型泛化性,同时针对荧光磁粉图像的特点,对小样本数据集使用HSV (Augment HSV (Hue, Saturation, Value))随机增强图像进行数据增强。然后,将YOLOv5s中backbone层的主干网络CSPDarknet-53更换为轻量化ShuffleNet-v2,减少模型体积。其次,在此基础上添加A2-Nets注意力模块,并结合Focal Loss损失函数使用。以确保网络更好地关注细小裂纹,改善裂纹检测任务精度。配合荧光磁粉技术,使动车配件裂纹增强显示,有利于算法更好地识别到裂纹。实验结果表明:本文提出的改进YOLOv5s目标检测算法提高了检测精度,具有较强的合理性。在动车裂纹荧光磁粉数据集上,检测精度mAP_0.5由86.00%提高到93.74%。为YOLOv5s目标检测算法在荧光磁粉检测项目上应用提供借鉴。
Abstract: Aiming at the problems of limited data samples, no public data set, the network model is large, and low recognition accuracy in magnetic particle detection of crack defects of bullet train parts, this paper establishes a data set and proposes an improved YOLOv5s target detection algorithm. Firstly, for the problem of small data samples, in order to improve the generalization of the model and the characteristics of fluorescent magnetic powder images, HSV (Hue, Saturation, Value) randomly en-hanced images were used to Augment the small sample data set. Then, the backbone network CSPDarknet-53 of the backbone layer in YOLOv5s is replaced with lightweight ShuffleNet-v2 to re-duce model size. Secondly, the A2-Nets attention module is added on this basis and used in combi-nation with Focal Loss function. To ensure that the network pays more attention to small cracks and improve the precision of crack detection tasks. With the help of fluorescent magnetic particle tech-nology, the crack display of bullet train parts is enhanced, which is helpful for the algorithm to identify the crack better. The experimental results show that the improved YOLOv5s target detec-tion algorithm proposed in this paper can improve the detection accuracy and has strong rationali-ty. The detection accuracy of mAP_0.5 is increased from 86.00% to 93.74% on the fluorescent mag-netic particle data set of the crack of the motor vehicle. This paper provides reference for the appli-cation of YOLOv5s target detection algorithm in fluorescent magnetic particle detection projects.
文章引用:杨冲, 曾勇, 窦同旭, 乔辉, 徐仟祥. 基于改进YOLOv5s的动车配件裂纹荧光磁粉检测研究[J]. 建模与仿真, 2023, 12(6): 5563-5571. https://doi.org/10.12677/MOS.2023.126505

参考文献

[1] 段建国, 万坚, 余卫巍, 等. 高铁综合维修生产一体化管理模式探讨与思考[J]. 中国铁路, 2019(4): 21-27.
[2] 刘茂. 高铁机械设备维护措施探讨[J]. 工程技术研究, 2022, 7(10): 105-107.
[3] 葛祥凯, 张悦, 杨昊, 等. 磁粉检测技术应用及发展[J]. 无损探伤, 2022, 46(2): 18-22.
[4] 李跃, 王子铭, 李鑫林, 等. 带钢表面缺陷检测方法研究进展[J]. 钢铁研究学报, 2023, 35(8): 950-962.
[5] 厉荣宣, 沈希忠. 图像处理技术的荧光磁粉探伤法[J]. 上海应用技术学院学报(自然科学版), 2014, 14(4): 323-327.
[6] 凌张伟, 孔帅, 蒋政培, 陶竑杰, 耿洁. 焊缝磁粉检测图像自动分拣系统的设计与应用[J]. 无损检测, 2019, 41(10): 67-70.
[7] 陆宝春, 李建文, 王婧, 等. 基于特征差异性的荧光磁粉探伤图像分割算法[J]. 南京理工大学学报, 2011, 35(6): 797-800.
[8] 马涛, 孙振国, 陈强. 基于几何与纹理特征相融合的磁粉探伤裂纹提取算法[J]. 清华大学学报(自然科学版), 2018, 58(1): 50-54.
[9] 张静, 杨薛涛, 王姮, 等. 荧光磁粉探伤智能图像识别技术研究[J]. 西南科技大学学报, 2014, 29(2): 82-86.
[10] Lei, K., Mykola, S., Szabolcs, F., et al. (2022) Optical Rail Surface Crack Detection Method Based on Semantic Segmentation Replacement for Magnetic Particle Inspection. Sensors, 22, 8214. [Google Scholar] [CrossRef] [PubMed]
[11] 石爱贤, 秦训鹏, 吴强, 等. 基于卷积神经网络的车用锻件磁粉视觉检测裂纹分割方法[J]. 合肥工业大学学报(自然科学版), 2023, 46(5): 619-626.
[12] 张睿, 文传博. WTB-Net: 基于ShuffleNet V2的轻量级风机叶片表面缺陷识别算法[J]. 复合材料科学与工程, 2023(8): 66-71+128.
[13] Chen, Y., Kal-antidis, Y., Li, J., et al. (2018) A2-Nets: Double Attention Networks. CoRR. [Google Scholar] [CrossRef
[14] Tsung-Yi, L., Priya, G., Ross, G., et al. (2020) Focal Loss for Dense Object Detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 42, 318-327. [Google Scholar] [CrossRef