A spectral–morphological enhanced lightweight framework for real-time rail surface defect detection
- 1 July 2026
- journal article
- Published by IOP Publishing in Engineering Research Express
- Vol. 8 (14) , 145207
Abstract
To address the trade-off between detection accuracy and real-time inference in rail surface defect detection, this paper proposes a lightweight algorithm named Slim-MRM. Built upon YOLOv5s, the framework adopts a collaborative ‘structural enhancement and deep compression’ strategy and is evaluated on a self-constructed field-captured dataset. At the structural level, a Mixed-domain modulation mechanism is designed to construct a spectral-spatial dual-branch topology, which reduces background-dominated interference through learnable spectral-spatial reweighting. A Morphological reparameterization (MR) module is further introduced to enhance minute and elongated defect features via asymmetric convolutions, while being converted into an equivalent single-path structure during inference. For model compression, BN-layer sparsity-based structured pruning is combined with knowledge distillation to reduce redundancy and recover part of the accuracy loss. Experimental results show that Slim-MRM improves mAP@0.5 and recall by 3.9 and 6.3 percentage points, respectively, compared with the YOLOv5s baseline. Meanwhile, the parameters and GFLOPs are reduced by 26.5% and 25.9%, respectively, and the forward-inference speed reaches 200.7 FPS under the unified GPU protocol. Comparative evaluations on external test datasets further indicate that the proposed algorithm achieves a favorable balance between detection accuracy and computational efficiency, providing a lightweight solution for real-time rail surface defect detection.Keywords
This publication has 30 references indexed in Scilit:
- Advances in computer vision for comprehensive railway engineering: from track inspection to rolling stock and safety monitoringRailway Engineering Science, 2026
- RAP-DETR: Enhancing RT-DETR for Railway Track Defect DetectionMeasurement, 2025
- A systematic literature review of defect detection in railways using machine vision-based inspection methodsInternational Journal of Transportation Science and Technology, 2025
- Crack-YOLOv8: multi-class crack detection method for track slabs based on improved YOLOv8Measurement Science and Technology, 2025
- A lightweight algorithm for steel surface defect detection using improved YOLOv8Scientific Reports, 2025
- Lightweight rail surface defect detection algorithm based on an improved YOLOv8Measurement, 2024
- ODCS-YOLO detection algorithm for rail surface defects based on omni-dimensional dynamic convolution and context augmentation moduleMeasurement Science and Technology, 2024
- Improved YOLOv8 for B-scan image flaw detection of the heavy-haul railwayMeasurement Science and Technology, 2024
- Rail wheel tread defect detection using improved YOLOv3Measurement, 2022
- A literature review of Artificial Intelligence applications in railway systemsTransportation Research Part C: Emerging Technologies, 2022