[Paper Review] Rail-5k: a Real-World Dataset for Rail Surface Defects Detection
Rail-5k is a real-world dataset of 5,000 high-quality rail surface images, with 1,100 fully annotated for 13 defect types, enabling benchmarking in both fully-supervised and semi-supervised object detection. The dataset presents unique challenges due to fine-grained defect classes, long-tailed class distribution (imbalance ratio up to 40.98), and unlabeled images with real-world corruptions, making it a robust benchmark for evaluating vision models under realistic conditions.
This paper presents the Rail-5k dataset for benchmarking the performance of visual algorithms in a real-world application scenario, namely the rail surface defects detection task. We collected over 5k high-quality images from railways across China, and annotated 1100 images with the help from railway experts to identify the most common 13 types of rail defects. The dataset can be used for two settings both with unique challenges, the first is the fully-supervised setting using the 1k+ labeled images for training, fine-grained nature and long-tailed distribution of defect classes makes it hard for visual algorithms to tackle. The second is the semi-supervised learning setting facilitated by the 4k unlabeled images, these 4k images are uncurated containing possible image corruptions and domain shift with the labeled images, which can not be easily tackle by previous semi-supervised learning methods. We believe our dataset could be a valuable benchmark for evaluating robustness and reliability of visual algorithms.
Motivation & Objective
- To address the lack of large-scale, high-quality, real-world datasets for rail surface defect detection in computer vision.
- To provide a benchmark for evaluating visual algorithms in both fully-supervised and semi-supervised learning settings.
- To challenge existing methods with realistic data distribution, including long-tailed class imbalance and image corruptions in unlabeled data.
- To support the development of robust, reliable models for industrial rail maintenance applications.
- To enable research on fine-grained defect detection and segmentation, particularly for texture-like defects such as cracks.
Proposed method
- Collected 5,000 high-resolution RGB rail images from real railway lines across China, with 1,100 images fully annotated for 13 defect types at instance-level.
- Used a two-stage benchmarking approach: (1) fully-supervised detection using 1,100 labeled images, and (2) semi-supervised detection using 4,000 additional unlabeled images.
- Applied YOLOv5-s with ImageNet pretraining and fine-tuned on the labeled set using standard hyperparameters from the YOLOv5 repository.
- For crack detection, which is poorly captured by detection models due to its texture-like nature, applied DeepLabv3 with ResNet50 backbone for semantic segmentation.
- For semi-supervised learning, used a pseudo-labeling strategy with confidence thresholding (s_thr ∈ {0.6, 0.7, 0.8, 0.9}) on predictions from the fully-supervised model to generate pseudo-labels for the 4,000 unlabeled images.
- Evaluated models using standard metrics: mAP@0.5:0.95, AP@0.5, precision, recall, and IoU for segmentation.
Experimental results
Research questions
- RQ1How do state-of-the-art object detection models perform on a real-world rail defect detection dataset with fine-grained, long-tailed, and rare defect categories?
- RQ2Can semi-supervised learning methods effectively leverage 4,000 unlabeled rail images that contain real-world corruptions and domain shift compared to the labeled set?
- RQ3How does the performance of detection models degrade on texture-like defects such as cracks, and can segmentation-based approaches outperform detection for such classes?
- RQ4To what extent do image corruptions in the unlabeled set negatively impact the performance of semi-supervised learning pipelines?
- RQ5What is the impact of confidence thresholding on pseudo-label quality and downstream model accuracy in semi-supervised rail defect detection?
Key findings
- The baseline YOLOv5-s model achieved a mean average precision (mAP@0.5:0.95) of 90.6 on the fully-supervised setting, with high performance on common defects like Rail Surface (mAP 98.6) and Contact Band (mAP 96.3).
- Performance on rare defects such as Spalling (mAP 58.9) and Grinding (mAP 24.1) was significantly lower, highlighting the challenge of long-tailed distribution.
- Crack detection via YOLOv5 achieved near-zero performance (mAP - , AP@0.5:0.95 - ), confirming that detection models fail to recognize texture-like defects.
- DeepLabv3 with ResNet50 backbone achieved 67.8% IoU on crack segmentation, significantly outperforming detection, demonstrating the superiority of segmentation for texture-based defects.
- Semi-supervised fine-tuning with pseudo-labels led to a drop in mAP@0.5 from 63.29 (s_thr=0.6) to 61.55 (s_thr=0.9), indicating that noise and corruptions in the unlabeled set degrade performance.
- Despite the degradation, the semi-supervised benchmark remains valuable, as it reveals model robustness under real-world data distribution shifts and corruptions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.