首页|期刊导航|北京交通大学学报|基于两阶段视觉检测的动车螺栓缺陷识别算法

基于两阶段视觉检测的动车螺栓缺陷识别算法OA

Bolt defect recognition algorithm for EMU based on two-stage visual detection

中文摘要英文摘要

针对动车组运行状态图像检测中转向架精密部件缺陷识别需求,提出一种结合模板匹配与改进YOLOv5的转向架螺栓松动与丢失的识别算法.该算法首先进行转向架提取,通过双线性插值缩小图像尺寸以显著减少计算量,并采用归一化相关系数模板匹配在缩小图像上保持高精度的目标定位;然后进行缺陷识别,使用改进YOLOv5模型.针对缺陷识别任务,模型改进主要包括三方面:一是针对模型参数量大、计算开销高的问题,引入跨尺度特征融合模块(CNN-based Cross-scale Feature-fusion Module,CCFM)替代路径聚合网络(Path Aggregation Network,PANet)精简参数量和模型大小;二是针对数据集中微小目标的检测需求,增设小目标检测层强化微小缺陷捕捉能力;三是为解决特征感知范围不足的问题,在浅层网络嵌入大型选择性卷积核(Large Selective Kernel,LSK)扩展特征感知范围,提高检测精度.最后,对算法的转向架提取效率与缺陷识别性能进行实验验证.实验结果表明:在转向架提取阶段,缩小图像后的模板匹配平均处理时间由929.58 ms/张降至74.87 ms/张,缩短约92%;在缺陷识别阶段,相较于基准模型在IoU阈值0.5和0.5~0.95下的平均精度均值(mean Average Precision,mAP)为89.1%和43.1%,改进模型在参数量减少约23%的情况下分别提升至91.5%和46.2%,提高了2.4%和3.1%.该方法有效提升了动车组精密部件的检测效率和准确性,为动车组的安全运维提供了技术参考.

To address the need for defect identification in precision components of electric multiple unit(EMU)bogies during operational image inspection,this paper proposes a recognition algorithm for de-tecting loose and missing bogie bolts by combining template matching with an improved YOLOv5 model.The proposed algorithm first performs bogie extraction.During bogie extraction,bilinear inter-polation is utilized to downscale the images,significantly reducing computational overhead.Simultane-ously,normalized cross-correlation template matching is employed to maintain high-precision target localization on the downscaled images.Then,the proposed algorithm performs defect recognition,for which an improved YOLOv5 model is applied.For the defect recognition task,the model improve-ments mainly include three aspects:first,to address the large parameter size and high computational cost of the baseline model,a CNN-based Cross-Scale Feature-Fusion Module(CCFM)replaces the Path Aggregation Network(PANet),effectively reducing both the parameter count and overall model size;second,to meet the requirements for detecting tiny targets within the dataset,a small-object detec-tion layer is added to enhance the capture of minute defects;third,to overcome the limited feature per-ception range,Large Selective Kernel(LSK)modules are embedded into the shallow network layers to expand the receptive field and improve detection accuracy.Finally,the bogie extraction efficiency and de-fect recognition performance of the algorithm are experimentally verified.Experimental results demon-strate that,in the bogie extraction stage,the average processing time of template matching on down-scaled images is reduced by approximately 92%,from 929.58 ms to 74.87 ms per image.In the defect recognition stage,compared with the baseline model's mean Average Precision(mAP)values of 89.1%at an IoU threshold of 0.5(mAP@0.5)and 43.1%over IoU thresholds from 0.5 to 0.95(mAP@0.5:0.95),respectively,the improved model achieves 91.5%and 46.2%while simultaneously reducing the parameter count by approximately 23%,yielding improvements of 2.4%and 3.1%.The proposed method effectively enhances both the efficiency and accuracy of defect detection for precision components in EMUs,providing a valuable technical reference for safe operation and maintenance.

吕涂;周航;张一凡;陈业泓;王慧

北京交通大学 电子信息工程学院,北京 100044北京交通大学 电子信息工程学院,北京 100044北京交通大学 电子信息工程学院,北京 100044北京交通大学 电子信息工程学院,北京 100044北京交通大学 电子信息工程学院,北京 100044

信息技术与安全科学

缺陷识别视觉检测转向架螺栓YOLOv5模板匹配

defect recognitionvisual inspectionbogie boltsYOLOv5template matching

《北京交通大学学报》 2026 (2)

153-164,12

国家重点研发计划(K24B05200020)中国国家铁路集团有限公司科技研究开发计划重点课题(M23D00101)太原市"揭榜挂帅"项目(W25M200071)北京交通大学自然科学横向项目(W21L00390)National Key R&D Plan(K24B05200020)Science and Technology Research and Development Key Program of China Railway Corporation(M23D00101)Taiyuan"Leading the Charge with Open Competition"Project(W25M200071)Project of Beijing Jiaotong University(W21L00390)

10.11860/j.issn.1673-0291.20250053

评论