PDF (7194K)
摘要
针对动车组运行状态图像检测中转向架精密部件缺陷识别需求,提出一种结合模板匹配与改进 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%. 该方法有效提升了动车组精密部件的检测效率和准确性,为动车组的安全运维提供了技术参考.
Abstract
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 detecting 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 interpolation is utilized to downscale the images, significantly reducing computational overhead. Simultaneously, 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 improvements 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 detection layer is added to enhance the capture of minute defects; third, to overcome the limited feature perception 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 defect recognition performance of the algorithm are experimentally verified. Experimental results demonstrate that, in the bogie extraction stage, the average processing time of template matching on downscaled 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.
关键词
Key words
[Author(id=1332036120867521259, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, orderNo=0, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=23125038@bjtu.edu.cn, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1332036120934630126, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, authorId=1332036120867521259, language=EN, stringName=Tu LYU, firstName=Tu, middleName=null, lastName=LYU, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1332036120989156080, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, authorId=1332036120867521259, language=CN, stringName=吕涂, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=北京交通大学 电子信息工程学院, 北京 100044, bio={"content":"吕涂(2002-),男,安徽界首人,硕士生. 研究方向为基于计算机视觉的缺陷检测. email: 23125038@bjtu.edu.cn.
"}, bioImg=null, bioContent=吕涂(2002-),男,安徽界首人,硕士生. 研究方向为基于计算机视觉的缺陷检测. email: 23125038@bjtu.edu.cn.
, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1332036120779440870, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, xref=null, ext=[AuthorCompanyExt(id=1332036120800412391, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, companyId=1332036120779440870, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China), AuthorCompanyExt(id=1332036120817189608, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, companyId=1332036120779440870, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=北京交通大学 电子信息工程学院, 北京 100044)])]), Author(id=1332036121039487731, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, orderNo=1, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=hangzhou@bjtu.edu.cn, emailSecond=null, emailThird=null, correspondingAuthor=1, authorType=1, ext={EN=AuthorExt(id=1332036121106596598, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, authorId=1332036121039487731, language=EN, stringName=Hang ZHOU, firstName=Hang, middleName=null, lastName=ZHOU, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1332036121156928248, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, authorId=1332036121039487731, language=CN, stringName=周航, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=北京交通大学 电子信息工程学院, 北京 100044, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1332036120779440870, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, xref=null, ext=[AuthorCompanyExt(id=1332036120800412391, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, companyId=1332036120779440870, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China), AuthorCompanyExt(id=1332036120817189608, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, companyId=1332036120779440870, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=北京交通大学 电子信息工程学院, 北京 100044)])]), Author(id=1332036121207259898, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, orderNo=2, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=null, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1332036121274368766, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, authorId=1332036121207259898, language=EN, stringName=Yifan ZHANG, firstName=Yifan, middleName=null, lastName=ZHANG, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1332036121324700417, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, authorId=1332036121207259898, language=CN, stringName=张一凡, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=北京交通大学 电子信息工程学院, 北京 100044, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1332036120779440870, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, xref=null, ext=[AuthorCompanyExt(id=1332036120800412391, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, companyId=1332036120779440870, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China), AuthorCompanyExt(id=1332036120817189608, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, companyId=1332036120779440870, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=北京交通大学 电子信息工程学院, 北京 100044)])]), Author(id=1332036121375032070, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, orderNo=3, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=null, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1332036121437946635, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, authorId=1332036121375032070, language=EN, stringName=Yehong CHEN, firstName=Yehong, middleName=null, lastName=CHEN, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1332036121488278285, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, authorId=1332036121375032070, language=CN, stringName=陈业泓, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=北京交通大学 电子信息工程学院, 北京 100044, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1332036120779440870, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, xref=null, ext=[AuthorCompanyExt(id=1332036120800412391, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, companyId=1332036120779440870, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China), AuthorCompanyExt(id=1332036120817189608, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, companyId=1332036120779440870, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=北京交通大学 电子信息工程学院, 北京 100044)])]), Author(id=1332036121538609937, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, orderNo=4, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=null, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1332036121601524503, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, authorId=1332036121538609937, language=EN, stringName=Hui WANG, firstName=Hui, middleName=null, lastName=WANG, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null), CN=AuthorExt(id=1332036121651856153, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, authorId=1332036121538609937, language=CN, stringName=王慧, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=null, address=北京交通大学 电子信息工程学院, 北京 100044, bio=null, bioImg=null, bioContent=null, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1332036120779440870, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, xref=null, ext=[AuthorCompanyExt(id=1332036120800412391, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, companyId=1332036120779440870, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=School of Electronic and Information Engineering, Beijing Jiaotong University, Beijing 100044, China), AuthorCompanyExt(id=1332036120817189608, tenantId=1045748351789510663, journalId=1327662321632509959, articleId=1332004637418943124, companyId=1332036120779440870, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=北京交通大学 电子信息工程学院, 北京 100044)])])]
吕涂,周航,张一凡,陈业泓,王慧.
基于两阶段视觉检测的动车螺栓缺陷识别算法[J].
北京交通大学学报, 2026, 50(2): 153-164 DOI:10.11860/j.issn.1673-0291.20250053
| [1] |
杨凯 . 动车组运行故障图像监测系统(TEDS)自动分类监测作业技术研究[J]. 铁道运输与经济, 2023, 45(2): 76−82, 146.
|
| [2] |
YANG Kai . TEDS automatic classified monitoring technology research[J]. Railway Transport and Economy, 2023, 45(2): 76-82, 146. (in Chinese)
|
| [3] |
ZHANG H D, YUAN X, LI D Y, et al. An effective framework using identification and image reconstruction algorithm for train component defect detection[J]. Applied Intelligence, 2022, 52(9): 10116-10134.
|
| [4] |
GAO X R, WU Y Y, YANG K, et al. Vehicle bottom anomaly detection algorithm based on SIFT[J]. Optik, 2015, 126(23): 3562-3566.
|
| [5] |
刘祖胜, 方凯, 刘硕研 . 用于动车组故障检测的图像识别算法[J]. 铁路计算机应用, 2015, 24(12): 1-4.
|
| [6] |
LIU Zusheng, FANG Kai, LIU Shuoyan . Image recognition algorithm for EMU trouble detection[J]. Railway Computer Application, 2015, 24(12): 1-4. (in Chinese)
|
| [7] |
耿庆华, 刘伟铭, 刘瑞康 . 基于空间尺度标准化的动车组底部异常检测[J]. 铁道学报, 2022, 44(5): 67-75.
|
| [8] |
GENG Qinghua, LIU Weiming, LIU Ruikang . Anomaly detection of bottom of EMU based on space-scale standardization[J]. Journal of the China Railway Society, 2022, 44(5): 67-75. (in Chinese)
|
| [9] |
黄粤豫, 周航, 陈业泓, 等 . 借助弱纹理匹配的TEDS 车底故障区域定位算法[J]. 智能系统学报, 2024, 19(3): 670-678.
|
| [10] |
HUANG Yueyu, ZHOU Hang, CHEN Yehong, et al. TEDS underbody fault location algorithm in virtue of weak texture matching[J]. CAAI Transactions on Intelligent Systems, 2024, 19(3): 670-678. (in Chinese)
|
| [11] |
SUN J H, XIAO Z W, XIE Y X . Automatic multi-fault recognition in TFDS based on convolutional neural network[J]. Neurocomputing, 2017, 222: 127-136.
|
| [12] |
周雯, 史天运, 李平, 等 . 基于卷积神经网络的动车组行车安全图像缺陷检测与分割[J]. 铁道学报, 2019, 41(10): 76-83.
|
| [13] |
ZHOU Wen, SHI Tianyun, LI Ping, et al. Defects detection and segmentation of operation safety image of EMU based on convolutional neural network[J]. Journal of the China Railway Society, 2019, 41(10): 76-83. (in Chinese)
|
| [14] |
罗隆福, 叶威, 王健 . 基于深度学习的高铁接触网顶紧螺栓的缺陷检测[J]. 铁道科学与工程学报, 2021, 18(3): 605-614.
|
| [15] |
LUO Longfu, YE Wei, WANG Jian . Defect detection of the puller bolt in high-speed railway catenary based on deep learning[J]. Journal of Railway Science and Engineering, 2021, 18(3): 605-614. (in Chinese)
|
| [16] |
秦荣荣, 高晓蓉, 罗林, 等 . 基于注意力反向知识蒸馏的车轮踏面异常检测[J]. 激光与光电子学进展, 2023, 60(24): 2415002.
|
| [17] |
QIN Rongrong, GAO Xiaorong, LUO Lin, et al. Wheel tread anomaly detection based on attentional reverse knowledge distillation[J]. Laser & Optoelectronics Progress, 2023, 60(24): 2415002. (in Chinese)
|
| [18] |
丁凤霞 . 基于新型对抗自编码器的铁路货车车辆异物检测算法[J]. 北京交通大学学报, 2023, 47(5): 25-33.
|
| [19] |
DING Fengxia . Foreign object detection algorithm for railway freight cars based on a novel adversarial autoencoder[J]. Journal of Beijing Jiaotong University, 2023, 47(5): 25-33. (in Chinese)
|
| [20] |
ZENG Y, ZHANG P P, LIN Z, et al. Towards high-resolution salient object detection[C]// 2019 IEEE/CVF International Conference on Computer Vision (ICCV). Seoul, 2019: 7233-7242.
|
| [21] |
BRIECHLE K, HANEBECK U D . Template matching using fast normalized cross correlation[C]// SPIE Optical Pattern Recognition XII. Orlando, 2001: 95-102.
|
| [22] |
ZHAO Y A, LV W Y, XU S L, et al. DETRs beat YOLOs on real-time object detection[C]// 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Seattle, 2024: 16965-16974.
|
| [23] |
LIU S, QI L, QIN H F, et al. Path aggregation network for instance segmentation[C]// 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition. Salt Lake City, 2018: 8759-8768.
|
| [24] |
DUAN Y L, WU X, DENG H Y, et al. Content-adaptive non-local convolution for remote sensing pansharpening[C]// 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Seattle, 2024: 27738-27747.
|
| [25] |
LI Y X, HOU Q B, ZHENG Z H, et al. Large selective kernel network for remote sensing object detection[C]// 2023 IEEE/CVF International Conference on Computer Vision (ICCV). Paris, 2024: 16748-16759.
|
| [26] |
KISANTAL M. Augmentation for Small Object Detection[EB/OL].(2019-02-19)[2025-12-08]. https://arxiv.org/abs/1902.07296.
|
| [27] |
WANG C Y, BOCHKOVSKIY A, LIAO H M . YOLOv7: trainable bag-of-freebies sets new state-of-the-art for real-time object detectors[C]// 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Vancouver, 2023: 7464-7475.
|
| [28] |
WANG A, CHEN H, LIU L, et al. Yolov10: Real-time end-to-end object detection[J]. Advances in neural information processing systems, 2024, 37: 107984-108011.
|
基金资助
国家重点研发计划(K24B05200020)
中国国家铁路集团有限公司科技研究开发计划重点课题(M23D00101)
太原市“揭榜挂帅”项目(W25M200071)
北京交通大学自然科学横向项目(W21L00390)