Unsupervised anomaly segmentation model for rail damage based on image-inpainting and cold diffusion
Ensuring structural health of rail tracks is critical for safe train operations. While deep learning-based vision models are widely used for rail damage detection, supervised methods suffer from limited generalization due to scarce and diverse annotated data. Unsupervised models often experience missed detections and false positives when handling complex and variable rail background textures, as well as rail damage with significant intra-class variability. To address these limitations, this paper proposes an unsupervised pixel-level rail damage segmentation model based on a cold diffusion framework, called InpRailDiffusion. It introduces inpainting-based noise and uses a Mamba-enhanced, time-conditioned U-Net for progressive noise removal. Damage segmentation is achieved by analyzing pixel-wise differences between generated and original images with adaptive thresholding. A multi-scale masking strategy fuses reconstruction features at various spatial resolutions, reducing false positives and missed detections. Evaluated on RSDDs-I and RSDDs-II, InpRailDiffusion outperformed state-of-the-art baselines with MIoU/F1-Scores of 0.864/0.844 and 0.845/0.814, respectively. • An unsupervised pixel-level rail damage detection model InpRailDiffusion is proposed. • Cold diffusion enhanced by image inpainting patch noise is designed. • A multi-scale mask patch fusion training and complementary generation method is designed. • A Mamba-enhanced time-conditioned U-Net model is designed. • On two open datasets, InpRailDiffusion achieves the best MIoU with 0.864 and 0.844.
Authors
- Yiqing Dong (ORCID: https://orcid.org/0000-0001-8813-5839)
- Chengjia Han (ORCID: https://orcid.org/0000-0003-1851-9487)
- Liwei Dong (ORCID: https://orcid.org/0000-0001-7008-5597)
- Yaowen Yang
- Mei Gao (ORCID: https://orcid.org/0000-0002-1781-6132)
Institutions
- Nanyang Technological University (SG)
Publication Details
- Journal
- Automation in Construction
- Published
- 2025-06-16
- DOI
- https://doi.org/10.1016/j.autcon.2025.106342
- Citations
- 4
- Primary Topic
- Infrastructure Maintenance and Monitoring
- Type
- article
- Field-Weighted Citation Impact
- 3.81
Funders
- National Research Foundation Singapore