YOLO-GSD-seg: YOLO for Guide Rail Surface Defect Segmentation and Detection
To address the challenges of accurately extracting features from elongated scratches, irregular defects, and small-scale surface flaws on high-precision linear guide rails, this paper proposes a novel instance segmentation algorithm tailored for guide rail surface defect detection. The algorithm integrates the YOLOv8 instance segmentation framework with deformable convolutional networks and multi-scale feature fusion to enhance defect feature extraction and segmentation performance. A dedicated guide rail surface Defect (GSD) segmentation dataset is constructed to support model training and evaluation. In the backbone, the DCNv3 module is incorporated to strengthen the extraction of elongated and irregular defect features while simultaneously reducing model parameters. In the feature fusion network, a multi-scale feature fusion module and a triple-feature encoding module are introduced to jointly capture global contextual information and preserve fine-grained local defect details. Furthermore, a Channel and Position Attention Module (CPAM) is employed to integrate global and local features, improving the model’s sensitivity to channel and positional cues of small-target defects and thereby enhancing segmentation accuracy. Experimental results show that, compared with the original YOLOv8n-Seg, the proposed method achieves improvements of 3.9% and 3.8% in Box and Mask mAP50, while maintaining a real-time inference speed of 148 FPS. Additional evaluations on the public MSD dataset further demonstrate the model’s strong versatility and robustness.
Authors
- Kai Yuan (ORCID: https://orcid.org/0000-0001-6105-4772)
- Y. Mi
- S. Lai
- Qian Wang (ORCID: https://orcid.org/0000-0002-6052-9665)
- Zuoxi Zhao
Institutions
- South China Agricultural University (CN)
Publication Details
- Journal
- Applied Sciences
- Published
- 2026-01-26
- DOI
- https://doi.org/10.3390/app16031261
- Primary Topic
- Railway Engineering and Dynamics
- Type
- article
- Field-Weighted Citation Impact
- 0.00