Defect detection in rail fasteners constitutes a fundamental requirement for ensuring safe and reliable railway operations. Confronted with increasingly demanding inspection requirements of modern rail networks, traditional manual visual inspection methods have proven inadequate. To achieve accurate, efficient, and intelligent detection of rail fasteners, this paper presents an enhanced YOLOv5m-based defect detection model. Firstly, a dual-attention mechanism comprising Squeeze-and-Excitation and Coordinate Attention modules is employed to enhance the model. Secondly, the network architecture is redesigned by adopting MobileNetv3 as the backbone while incorporating structures with Ghost Shuffle Convolution (GSConv) modules and lightweight upsampling operators to reduce computational overhead. Finally, the original CIoU loss function in YOLOv5 is replaced with SIoU to accelerate convergence rate during training. Experimental results on a custom-built rail fastener dataset comprising 6500 images demonstrate that the enhanced model achieves 96.5% mAP and 17.9 FPS, surpassing the baseline by 3.1% and 2.1 FPS, respectively. Compared to existing detection models, this solution exhibits higher accuracy, faster inference, and lower memory consumption, providing critical technical support for edge deployment of rail fastener defect detection systems.
Railway track fasteners, serving as critical connecting components, have a reliability that directly impacts railway operational safety. To address the performance bottlenecks of existing detection methods in handling complex scenarios with diverse fastener types and co-occurring multiple defects, this paper proposes a Type-Guided Expert Model-based Fastener Detection and Diagnosis framework (TGEM-FDD) based on You Only Look Once (YOLO) v8. This framework follows a “type-identification-first, defect-diagnosis-second” paradigm, decoupling the complex task: the first stage employs an enhanced YOLOv8s with Deepstar, SPPF-attention, and DySample (YOLOv8s-DSD) detector integrating Deepstar Block, Spatial Pyramid Pooling Fast with Attention (SPPF-Attention), and Dynamic Sample (DySample) modules for precise fastener localization and type identification; the second stage dynamically invokes a specialized multi-label classification “expert model” based on the identified type to achieve accurate diagnosis of multiple defects. This study constructs a multi-label fastener image dataset containing 4800 samples to support model training and validation. Experimental results demonstrate that the proposed YOLOv8s-DSD model achieves a remarkable 98.5% mean average precision at an Intersection over Union threshold of 0.5 (mAP@0.5) in the first-stage task, outperforming the original YOLOv8s baseline and several mainstream detection models. In end-to-end system performance evaluation, the TGEM-FDD framework attains a comprehensive Task mean average precision (Task mAP) of 88.1% and a macro-average F1 score for defect diagnosis of 86.5%, significantly surpassing unified single-model detection and multi-task separate-head methods. This effectively validates the superiority of the proposed approach in tackling fastener type diversity and defect multi-label complexity, offering a viable solution for fine-grained component management in complex industrial scenarios.
Minor displacements and deflections of rail fastener clips pose a critical risk to railway safety, which are difficult to quantify accurately using traditional object detection methods. This paper proposes an improved YOLOv8-pose-based method, You Only Look Once version 8-pose with GAM, SPPF-Attention, and Wise-IoU (YOLOv8-pose-GSW) for automated and quantitative pose detection of fastener clips. Firstly, a high-precision keypoint detection network is constructed by integrating a Global Attention Mechanism (GAM) into the neck, enhancing the Spatial Pyramid Pooling Fast (SPPF) module to Spatial Pyramid Pooling Fast with Attention (SPPF-Attention) in the backbone, and adopting the Wise Intersection over Union (Wise-IoU) loss function. Subsequently, a posterior verification mechanism based on spatial constraint error is designed to eliminate unreliable detections by leveraging the inherent geometric priors of fasteners. Finally, the deflection angle, longitudinal displacement, and lateral displacement of the clip are calculated from the verified keypoints. Experimental results demonstrate that the proposed method achieves an Average Precision at IoU threshold from 0.5 to 0.95 (AP@0.5:0.95) of 77.5%, representing a 3.6% improvement over the baseline YOLOv8s-pose model, effectively balancing detection accuracy and computational efficiency. This work provides a reliable technical solution for the refined maintenance of rail fasteners.
The stochastic fluctuation characteristics of wind speed can significantly affect the control performance of train suspension systems. To enhance the running quality of trains in non-stationary wind fields, this paper proposes a semi-active control method for trains based on fuzzy rules of non-stationary wind fields. Firstly, a dynamic model of the train and suspension system was established based on the CRH2 (China Railway High-Speed 2) high-speed train and magnetorheological dampers. Then, using frequency–time transformation technology, the non-stationary wind load excitation and train response patterns under 36 common operating conditions were calculated. Finally, by analyzing the response patterns of the train under different operating conditions, a comprehensive control rule table for the semi-active suspension system of the train under non-stationary wind fields was established, and a fuzzy controller suitable for non-stationary wind fields was designed. To verify the effectiveness of the proposed method, the running smoothness of the train was analyzed using a train-semi-active suspension system co-simulation model based on real wind speed data from the Lanzhou–Xinjiang railway line. The results demonstrate that the proposed method significantly improves the running quality of the train. Specifically, when the wind speed reaches 20 m/s and the train speed reaches 200 km/h, the lateral Sperling index is increased by 46.4% compared to the optimal standard index, and the vertical Sperling index is increased by 71.6% compared to the optimal standard index.