面向工务巡检系统评定的钢轨扣件图像合成
Rail-fastener image synthesis for evaluating track inspection systems
铁路工务巡检系统性能评定依赖于大量高质量异常扣件图像,而真实异常样本获取困难,使得图像合成成为解决数据不足问题的重要手段. 图像和谐化作为图像合成的关键步骤,现有扩散模型方法未充分考虑铁路巡检图像中前景扣件与背景轨面的结构差异,同时噪声预测与图像和谐化目标耦合,限制了生成图像质量. 针对上述问题,提出一种基于随机微分方程(Stochastic Differential Equation,SDE)的双分支钢轨扣件图像和谐化方法. 首先,采用变分自编码器(Variational Autoencoder,VAE)将输入图像映射至隐空间,在降低高分辨率图像计算开销的同时保留关键结构信息;然后,设计内容匹配注意力模块,通过建立前景扣件与背景区域之间的内容匹配关系,引导模型重点关注背景中与前景结构相似的扣件区域,抑制轨面等无关背景区域带来的干扰,提高前景与背景的视觉一致性;最后,构建由重建分支和和谐化分支组成的双分支扩散网络,其中重建分支负责学习稳定的噪声预测能力,并通过多尺度特征约束引导和谐化分支训练,缓解去噪目标与和谐化目标之间的优化冲突,进一步提升图像生成质量. 在自建铁路异常扣件图像数据集上开展的实验结果表明:所提方法相比现有主流图像和谐化方法,在均方误差(Mean Squared Error,MSE)和前景均方误差(foreground Mean Squared Error,fMSE)上分别提升 14.37% 和 8.91%,同时在峰值信噪比(Peak Signal-to-Noise Ratio,PSNR)和结构相似性指数(Structural Similarity Index Measure,SSIM)上取得最优性能. 主观评价实验及下游异常扣件检测实验进一步验证了所生成图像具有较高的真实性和视觉一致性,可为铁路工务巡检系统性能评定提供高质量的数据支撑.
Evaluating railway track inspection systems requires a large number of high-quality images of defective fasteners. Because real defective samples are difficult to obtain, image synthesis provides an effective means of addressing data scarcity. Image harmonization is a critical step in this process. However, existing diffusion-based methods do not adequately account for the structural differences between foreground fasteners and background rail surfaces in railway inspection images, and the coupling between noise prediction and image harmonization limits the quality of the generated images. To address these issues, this study proposes a dual-branch rail-fastener image harmonization method based on Stochastic Differential Equations (SDEs). First, a Variational Auto-Encoder (VAE) maps the input image into a latent space, reducing the computational cost of processing high-resolution images while preserving essential structural information. Next, a Content-Matching Attention Module (CMAM) establishes correspondences between foreground fasteners and background regions. This module directs the model toward background fasteners that are structurally similar to the foreground fastener while suppressing interference from irrelevant rail-surface regions, thereby improving visual consistency between the foreground and background. Finally, a dual-branch diffusion framework comprising reconstruction and harmonization branches is constructed. The reconstruction branch learns stable noise prediction and guides the training of the harmonization branch through multiscale feature constraints, alleviating the optimization conflict between the denoising and harmonization objectives and further improving image quality. Experiments on a self-constructed dataset of defective railway fasteners show that the proposed method outperforms state-of-the-art image harmonization methods, reducing Mean Squared Error (MSE) and foreground Mean Squared Error (fMSE) by 14.37% and 8.91%, respectively, while achieving the best Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index Measure (SSIM). Subjective evaluations and downstream fastener-detection experiments further confirm the high realism and visual consistency of the generated images, demonstrating that the proposed method can provide high-quality data for evaluating railway track inspection systems.
| [1] |
武福, 蒋鹏民, 李忠学, |
| [2] |
|
| [3] |
陈修忻 . 基于改进 YOLOv5s 算法的钢轨扣件状态检测方法. 城市轨道交通研究, 2024, 27 (增1): 147-151. |
| [4] |
|
| [5] |
|
| [6] |
|
| [7] |
|
| [8] |
|
| [9] |
|
| [10] |
|
| [11] |
|
| [12] |
|
| [13] |
|
| [14] |
|
| [15] |
|
| [16] |
|
| [17] |
|
| [18] |
|
| [19] |
|
| [20] |
|
| [21] |
|
| [22] |
|
| [23] |
|
| [24] |
|
| [25] |
|
| [26] |
|
| [27] |
|
北京市自然科学基金(L232033)
中央高校基本科研业务费专项资金(2025JBZY011)
中国铁道科学研究院集团有限公司科技研究开发计划(2024YJ392)
/
| 〈 |
|
〉 |