RSD-Diff: Boundary-Frequency Feature-Enhanced Rail Surface Defect Inspection with Diffusion-Based Transformer Decoder

Authors:

Abstract
Rail surface defect inspection is an essential task for the railway system. However, due to the similarity of the background and defect foreground pixels, uneven textures, irregular shapes and multiple scales of the existing defects, the inspection accuracy is still required to be further improved. In this paper, we first expand our dataset by GAN-based method for the scarcity of the defect samples. Then, we propose a diffusion-based model to perform the classification and segmentation task. The diffusion model predicts the mask from the Gaussian noise broken ground truth by successive designed transformer decoder. Meanwhile, to better distinguish the pixels in the boundary or other illegible regions, a boundary-frequency feature enhancement module (BFM) is proposed to make the model pay more attention to the defect-related features. Experiments on the rail surface defect dataset revealed that the proposed diffusion-based transformer decoder and BFM can work well together and efficiently improve the rail surface defect segmentation accuracy.
Funding Information
  • National Natural Science Foundation of China (62271143)
  • China Railway Group (K2019G046)