# Railway fastener defect detection using RFD-DETR: A lightweight real-time transformer-based approach

**Authors:** Huixiang Zhou, Yuhao Liu, Jian Wang, Aiqing Fang, Ardashir Mohammadzadeh, Ardashir Mohammadzadeh, Ardashir Mohammadzadeh

PMC · DOI: 10.1371/journal.pone.0331513 · PLOS One · 2025-11-10

## TL;DR

This paper introduces RFD-DETR, a lightweight and efficient transformer-based model for detecting railway fastener defects in real-time.

## Contribution

The novel RFD-DETR model integrates wavelet-based modules to improve defect detection while reducing computational costs.

## Key findings

- RFD-DETR achieves 98.27% mean average precision on a rail fastener dataset.
- The model reduces computational costs by 18.8% and parameter count by 14.7%.
- Wavelet-based modules enhance multi-scale feature extraction and detection accuracy.

## Abstract

Railway fasteners play a crucial role in ensuring track stability and safety; however, manual inspection is both inefficient and prone to errors. Deep learning models, such as YOLO, are widely utilized for defect detection. However, these methods demand comparatively larger model sizes, greater computational power, and more storage capacity, yet their defect feature extraction remains inadequate. To overcome these challenges, this research introduces RFD-DETR, an enhanced detection transformer model specifically optimized for real-time rail fastener defect identification. The model incorporates three distinct modules to facilitate multi-scale feature extraction, enhance model efficiency, and improve defect detection. Firstly, a wavelet transform convolution module (WTConv) is employed, which integrates a wavelet transform to enhance multi-scale feature extraction while reducing model computation. Secondly, a cross-scale feature fusion module (CSPPDC) is utilised, incorporating channel gated attention downsampling (CGAD) to refine defect detection. Finally, a wavelet transform feature upgrading (WFU) module is integrated within the neck module, enhancing feature fusion and contributing to the overall efficacy of the model. Experimental findings based on an expanded rail fastener dataset indicate that RFD-DETR achieves a 98.27% mean average precision (mAP) when evaluated at an IoU threshold of 0.5, outperforming the baseline model. Furthermore, it lowers computational expenses by 18.8% and reduces parameter count by 14.7%.

## Full-text entities

- **Diseases:** rail fastener defect (MESH:D000013)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12599954/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12599954/full.md

## References

29 references — full list in the complete paper: https://tomesphere.com/paper/PMC12599954/full.md

---
Source: https://tomesphere.com/paper/PMC12599954