Volume 26 Issue 7
Jul.  2026
Turn off MathJax
Article Contents
CUI Guang-yan, LI Yu-jie, WANG Yan-hui, AN Jie, ZHAO Wen-yue, ZHANG Tai. Intelligent detection method for metro track defect targets based on improved YOLOv8s algorithm[J]. Journal of Traffic and Transportation Engineering, 2026, 26(7): 27-38. doi: 10.19818/j.cnki.1671-1637.2026.049
Citation: CUI Guang-yan, LI Yu-jie, WANG Yan-hui, AN Jie, ZHAO Wen-yue, ZHANG Tai. Intelligent detection method for metro track defect targets based on improved YOLOv8s algorithm[J]. Journal of Traffic and Transportation Engineering, 2026, 26(7): 27-38. doi: 10.19818/j.cnki.1671-1637.2026.049

Intelligent detection method for metro track defect targets based on improved YOLOv8s algorithm

doi: 10.19818/j.cnki.1671-1637.2026.049
Funds:

National Key R&D Program of China 2020YFB1600700

Natural Science Foundation of Beijing L231001

More Information
  • Corresponding author: WANG Yan-hui, professor, PhD, E-mail: wangyanhui@bjtu.edu.cn
  • Received Date: 2025-03-07
  • Accepted Date: 2025-09-26
  • Rev Recd Date: 2025-08-13
  • Publish Date: 2026-07-28
  • For the problems of small-sized targets, sample imbalance, low detection accuracy, and high real-time requirements in track state detection, a detection method for metro track defect targets fusing a small target detection algorithm and the Focal Loss function was proposed. The TrackScanner defect dataset was constructed through data cleaning and image annotation. For the problems of "small target samples" and "unbalanced positive and negative samples" existing in the dataset, targeted improvements were made on the basis of the YOLOv8s algorithm. To address the problem of "small target samples", a lightweight dual attention mechanism module, an involution module, and a small target detection head with a detection scale of 160 × 160 were added. The attention of the algorithm to key details was enhanced through joint improvement measures. To address the problem of "unbalanced positive and negative samples", the Focal Loss function was introduced. This improvement regulated the predicted result value of the loss function through a weight factor and a loss factor. Through model training and ablation experiments, the effects and advantages of the proposed algorithm in the field of track state detection were compared and analyzed. Research results indicate that the mAP50, F1, and defection efficiency of the improved YOLOv8s algorithm are 71.70%, 73.43%, and 46.84 frame·s-1, respectively, and the detection accuracies for defect targets such as missing fastener, reversed fastener, shifted fastener, broken fastener, foreign object on the track bed, and rail surface abrasion are 82.6%, 65.8%, 72.3%, 25.3%, 95.6%, and 88.6%, respectively. This research is applicable to the detection work of metro track defect targets, can effectively enhance the work efficiency of track inspection personnel, and is crucial for ensuring the safe operation of track trains.

     

  • loading
  • [1]
    LIU R K, LIU W M, DUAN M F, et al. MemFormer: A memory based unified model for anomaly detection on metro railway tracks[J]. Expert Systems with Applications, 2024, 237: 121509. doi: 10.1016/j.eswa.2023.121509
    [2]
    YANG Biao, MEI Zi, LONG Zhi-qiang. Online anomaly detection method integrating LSTM and MGD for suspension system of maglev trains[J]. Journal of Traffic and Transpor-tation Engineering, 2023, 23(6): 216-231. doi: 10.19818/j.cnki.1671-1637.2023.06.014
    [3]
    WEI Xiu-kun, SUO Da, WEI De-hua, et al. A survey of the application of machine vision in rail transit system inspection[J]. Control and Decision, 2021, 36(2): 257-282.
    [4]
    JIANG Shi-xin, ZOU Xiao-xue, YANG Jian-xi, et al. Con-crete bridge crack detection method based on improved YOLO v8s in complex backgrounds[J]. Journal of Traffic and Transportation Engineering, 2024, 24(6): 135-147. doi: 10.19818/j.cnki.1671-1637.2024.06.009
    [5]
    YANG Wei, FANG Hong-su, TANG Xiang-song, et al. Lightweight YOLOv8-ALTE algorithm for bridge crack disease detection[J]. Journal of Traffic and Transportation Engineering, 2025, 25(6): 75-89. doi: 10.19818/j.cnki.1671-1637.2025.06.007
    [6]
    ZHAI Jun-zhi, SUN Zhao-yun, PEI Li-li, et al. Pavement crack detection method based on multi-scale feature enhan-cement[J]. Journal of Traffic and Transportation Engi-neering, 2023, 23(1): 291-308. doi: 10.19818/j.cnki.1671-1637.2023.01.022
    [7]
    HAMISHEBAHAR Y, GUAN H, SO S, et al. A compre-hensive review of deep learning-based crack detection approaches[J]. Applied Sciences, 2022, 12(3): 1374. doi: 10.3390/app12031374
    [8]
    LI Qing-yong, WANG Jian-zhu, ZHU Ye-zhou, et al. Abnor-mal fastener detection model based on deep convolutional autoencoder with structural similarity[J]. Journal of Traffic and Transportation Engineering, 2022, 22(4): 186-195. doi: 10.19818/j.cnki.1671-1637.2022.04.014
    [9]
    ZHU Sheng-yang, ZHANG Qing-lai, YUAN Zhan-dong, et al. Damage detection for floating-slab track steel-spring based on residual convolutional network[J]. Journal of Traffic and Transportation Engineering, 2022, 22(2): 123-135. doi: 10.19818/j.cnki.1671-1637.2022.02.009
    [10]
    CAI Zhi-chao, CHEN Lan, LI Hao, et al. Wear detection method of CL60 railway wheel and U75V rail steel based on nonlinear ultrasound[J]. Journal of Traffic and Transporta-tion Engineering, 2021, 21(6): 136-146. doi: 10.19818/j.cnki.1671-1637.2021.06.010
    [11]
    DONG Y Q, YANG Y W, HAN C J, et al. Heterogeneous graph attention network for rail fastener looseness detection using distributed acoustic sensing and accelerometer data fusion[J]. Automation in Construction, 2025, 172: 106051. doi: 10.1016/j.autcon.2025.106051
    [12]
    QIU S, ZAHEER Q, MUHAMMAD AHMED HASSAN SHAH S, et al. Multimodal geometric AutoEncoder (MGAE) for rail fasteners tightness evaluation with point clouds & monocular depth fusion[J]. Measurement: Journal of the International Measurement Confederation, 2025, 244: 116557. doi: 10.1016/j.measurement.2024.116557
    [13]
    WANG W D, YIN Q, AI C B, et al. Automation railway fastener tightness detection based on instance segmentation and monocular depth estimation[J]. Engineering Structures, 2025, 322: 119229. doi: 10.1016/j.engstruct.2024.119229
    [14]
    HUANG Shi-pu, CAO Guang-ru, LI Bin, et al. Overview of the application of machine vision on the test of rail fasteners[J]. Materials for Rail Transportation System, 2024, 3(3): 45-53.
    [15]
    ZHAN Y, DAI X X, YANG E H, et al. Convolutional neu-ral network for detecting railway fastener defects using a developed 3D laser system[J]. International Journal of Rail Transportation, 2021, 9(5): 424-444. doi: 10.1080/23248378.2020.1825128
    [16]
    CHEN Wen-ting, LUO Wen-ting, LI Lin, et al. Intelligent detection of track fastener status based on 2D and 3D laser images[J]. Instrument Technique and Sensor, 2022(11): 88-95.
    [17]
    QIAO Yan-han, CHEN Wen, ZOU Jin-bai, et al. Defect detection method for track fastener based on Transformer and local feature fusion[J]. Railway Computer Application, 2024, 33(4): 18-22.
    [18]
    JIANG Xiang-ju, FENG Hai-zhao, LI Tao. Improved rapid detection method for foreign object intrusion on railroads based on FasterNet and YOLOv8s[J]. Journal of Beijing Jiaotong University, 2024, 48(5): 39-48.
    [19]
    GAO Jia-lin, BAI Tang-bo, YAO De-chen, et al. Detection of track fastener based on improved YOLOv4 algorithm[J]. Science Technology and Engineering, 2022, 22(7): 2872-2877.
    [20]
    LI Lang-yi, LIU Qiang, ZOU Yi-ming, et al. Rail surface defect detection based on improved YOLOv5 algorithm[J]. Journal of Wuyi University (Natural Science Edition), 2021, 35(3): 43-48, 54.
    [21]
    QIU S, CAI B X, WANG W D, et al. Automated detection of railway defective fasteners based on YOLOv8-FAM and synthetic data using style transfer[J]. Automation in Construction, 2024, 162: 105363. doi: 10.1016/j.autcon.2024.105363
    [22]
    PEI Ying-ling, LUO Hui, ZHANG Shi-hui, et al. High-speed railway fastener detection algorithm based on improved faster R-CNN[J]. Journal of East China Jiaotong University, 2023, 40(1): 75-81.
    [23]
    XU Gui-yang, LI Jin-yang, BAI Tang-bo, et al. Detection method of track fastener state based on improved mask R-CNN[J]. China Railway Science, 2022, 43(1): 44-51.
    [24]
    ZHANG Bo, LIU Xiu-bo. Detection algorithm of circular spot rail scratch based on machine vision[J]. Railway Engi-neering, 2023, 63(1): 1-3, 9.
    [25]
    ZOU Wen-wu, XU Gui-yang, BAI Tang-bo. Track fastener identification and detection based on EfficientDet[J]. Engi-neering Journal of Wuhan University, 2024, 57(7): 1006-1012.
    [26]
    CHEN Zheng-xing. Research on the detection of rail defect and ballastless bed foreign object images based on computer vision[D]. Chengdu: Southwest Jiaotong University, 2022: 35.
    [27]
    LIU Yu-ming. Vision based ballastless track abnormal object detection[D]. Beijing: Beijing Jiaotong University, 2020: 42.
    [28]
    HU Bo, LIU Pei-wen, LIU Rui-qi. An improved YOLOv10 algorithm for railway foreign object detection[J]. Journal of Xiamen University of Technology, 2025, 33(3): 19-25.
    [29]
    VARGHESE R J, SAMBATH M. YOLOv8: A novel object detection algorithm with enhanced performance and robust-ness[C]//IEEE. 2024 International Conference on Advances in Data Engineering and Intelligent Computing Systems (ADICS). New York: IEEE, 2024: 1-6.
    [30]
    WOO S, PARK J, LEE J Y, et al. CBAM: convolutional block attention module[C]//Springer. Computer Vision-ECCV 2018. Berlin: Springer, 2018: 3-19.
    [31]
    LI D, HU J, WANG C H, et al. Involution: Inverting the inherence of convolution for visual recognition[C]//IEEE. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). New York: IEEE, 2021: 12316-12325.
    [32]
    GUO Lei, WANG Qiu-long, XUE Wei, et al. A small object detection algorithm based on improved YOLOv5[J]. Journal of University of Electronic Science and Technology of China, 2022, 51(2): 251-258.
    [33]
    LIN T Y, GOYAL P, GIRSHICK R, et al. Focal loss for dense object detection[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020, 42(2): 318-327. doi: 10.1109/TPAMI.2018.2858826
    [34]
    WANG A, CHEN H, LIU L H, et al. YOLOv10: Real-time end-to-end object detection[C]//Neural Information Proce-ssing Systems. Advances in Neural Information Processing Systems 37. Vancouver: Neural Information Processing Sys-tems Foundation, 2024: 107984-108011.
    [35]
    SELVARAJU R R, COGSWELL M, DAS A, et al. Grad-CAM: Visual explanations from deep networks via gradient-based localization[C]//IEEE. 2017 IEEE International Con-ference on Computer Vision (ICCV). New York: IEEE, 2017: 618-626.

Catalog

    Article Metrics

    Article views (217) PDF downloads(59) Cited by()
    Related

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return