Lightweight Algorithm for Rail Fastener Status Detection Based on YOLOv8n

Xingsheng Zhang,Benlan Shen,Jincheng Li,Jiuhong Ruan
DOI: https://doi.org/10.3390/electronics13173399
IF: 2.9
2024-08-29
Electronics
Abstract:To improve the accuracy of rail fastener detection and deploy deep learning models on mobile platforms for fast real-time inference, this paper proposes a defect detection model for rail fasteners based on an improved YOLOv8n. Considering the significant aspect ratio differences of rail fasteners, we designed the EIOU+ as the regression box loss function. The model is compressed and trained using an improved channel-wise knowledge distillation (CWD+) approach to address the challenge of accurately recognizing minor defects in rail fasteners. We introduced a feature extraction module to design a feature extraction network as the distillation teacher model (YOLOv8n-T) and a lightweight cross-stage partial bottleneck with two convolutions and a fusion module (C2f) to improve the YOLOv8n backbone network as the distillation student model (YOLOv8n-S). Experiments conducted on data collected from actual rail lines demonstrate that after CWD+ distillation training, the model's mean detection accuracy (IOU = 0.5) reached 96.3%, an improvement of 2.7% over the original YOLOv8n algorithm. The recall rate increased by 4.5%, the precision by 2.7%, the number of floating-point operations decreased by 13%, and the detection frame rate frames per second (FPS) increased by 6.1 frames per second. Compared with other one-stage object detection algorithms, the CWD+ distilled model achieves the precise real-time detection of rail fastener conditions.
engineering, electrical & electronic,computer science, information systems,physics, applied
What problem does this paper attempt to address?