Research on steel rail surface defects detection based on improved YOLOv4 network
Related Experiment Video
Updated: Aug 8, 2025

Author Spotlight: Efficient Image Recognition Using Directional Gradient Histogram Technique and Support Vector Machines
Published on: January 5, 2024
Zengzhen Mi1, Ren Chen1, Shanshan Zhao1
1College of Mechanical Engineering, Chongqing University of Technology, Chongqing, China.
Introduction:
The surface images of steel rails are extremely difficult to detect and recognize due to the presence of interference such as light changes and texture background clutter during the acquisition process.
Methods:
To improve the accuracy of railway defects detection, a deep learning algorithm is proposed to detect the rail defects. Aiming at the problems of inconspicuous rail defects edges, small size and background texture interference, the rail region extraction, improved Retinex image enhancement, background modeling difference, and threshold segmentation are performed sequentially to obtain the segmentation map of defects. For the classification of defects, Res2Net and CBAM attention mechanism are introduced to improve the receptive field and small target position weights. The bottom-up path enhancement structure is removed from the PANet structure to reduce the parameter redundancy and enhance the feature extraction of small targets.
Results:
The results show the average accuracy of rail defects detection reaches 92.68%, the recall rate reaches 92.33%, and the average detection time reaches an average of 0.068 s per image, which can meet the real-time of rail defects detection.
Discussion:
Comparing the improved method with the mainstream target detection algorithms such as Faster RCNN, SSD, YOLOv3 and other algorithms, the improved YOLOv4 has excellent comprehensive performance for rail defects detection, the improved YOLOv4 model obviously better than several others in P , R , and F1 value, and can be well-applied to rail defect detection projects.
Related Concept Videos
Lumber Defects
Shakes are minor fractures that run along or across the wood's annual rings, while wane is...
Reducing Line Loss
With a step-up transformer at the source, the voltage is increased, thereby reducing the current in the transmission lines since power loss...
Detection of Gross Error: The Q Test
Improving Translational Accuracy
Differential Leveling
Sight Distance in a Vertical Curve

