面向工务巡检系统评定的钢轨扣件图像合成

罗伟 ,  贺雨 ,  邬俊

北京交通大学学报 ›› 2026, Vol. 50 ›› Issue (4) : 119 -128.

PDF (2632KB)
北京交通大学学报 ›› 2026, Vol. 50 ›› Issue (4) : 119 -128. DOI: 10.11860/j.issn.1673-0291.20250138
轨道交通智能感知与运能优化

面向工务巡检系统评定的钢轨扣件图像合成

作者信息 +

Rail-fastener image synthesis for evaluating track inspection systems

Author information +
文章历史 +
PDF (2694K)

摘要

铁路工务巡检系统性能评定依赖于大量高质量异常扣件图像,而真实异常样本获取困难,使得图像合成成为解决数据不足问题的重要手段. 图像和谐化作为图像合成的关键步骤,现有扩散模型方法未充分考虑铁路巡检图像中前景扣件与背景轨面的结构差异,同时噪声预测与图像和谐化目标耦合,限制了生成图像质量. 针对上述问题,提出一种基于随机微分方程(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)上取得最优性能. 主观评价实验及下游异常扣件检测实验进一步验证了所生成图像具有较高的真实性和视觉一致性,可为铁路工务巡检系统性能评定提供高质量的数据支撑.

Abstract

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.

关键词

铁路运输 / 工务巡检 / 图像合成 / 图像和谐化 / 扩散模型

Key words

railway transportation / railway track inspection / image synthesis / image harmonization / diffusion model

引用本文

引用格式 ▾
罗伟,贺雨,邬俊. 面向工务巡检系统评定的钢轨扣件图像合成[J]. 北京交通大学学报, 2026, 50(4): 119-128 DOI:10.11860/j.issn.1673-0291.20250138

登录浏览全文

4963

注册一个新账户 忘记密码

参考文献

[1]

武福, 蒋鹏民, 李忠学, 等 . 基于轻量化 YOLOv8s 的轨道扣件状态检测方法. 北京交通大学学报, 2024, 48(5): 59-68.

[2]

Fu Wu , Pengmin Jiang , Zhongxue Li , et al. Lightweight detection method for track fastener status based on improved YOLOv8s. Journal of Beijing Jiaotong University, 2024, 48(5): 59-68.

[3]

陈修忻 . 基于改进 YOLOv5s 算法的钢轨扣件状态检测方法. 城市轨道交通研究, 2024, 27 (增1): 147-151.

[4]

Chen Xiuxin . Rail fastener status detection method based on improved YOLOv5s algorithm. Urban Mass Transit, 2024, 27(S1): 147-151.

[5]

Zheng X Y, Zhang L F, Luo Y H, et al. A generation-based defect detection system for rail transit infrastructure[J]. High-speed Railway, 2026, 4(1): 1-9.

[6]

Tsai Y H, Shen X H, Lin Z, et al. Deep image harmonization[C]// 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). Honolulu, 2017: 2799-2807.

[7]

Cong W Y, Zhang J F, Niu L, et al. DoveNet: deep image harmonization via domain verification [C]// 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Seattle, 2020: 8391-8400.

[8]

Ling J, Xue H, Song L, et al. Region-aware adaptive instance normalization for image harmonization[C]// 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Nashville, 2021: 9357-9366.

[9]

Cong W Y, Niu L, Zhang J F, et al. Bargainnet: background-guided domain translation for image harmonization[C]// 2021 IEEE International Conference on Multimedia and Expo (ICME). Shenzhen, 2021: 1-6.

[10]

Sofiiuk K, Popenova P, Konushin A . Foreground-aware semantic representations for image harmonization[C]// 2021 IEEE Winter Conference on Applications of Computer Vision (WACV). Waikoloa, 2021: 1619-1628.

[11]

Hang Y C, Xia B, Yang W M, et al. SCS-co: self-consistent style contrastive learning for image harmonization[C]// 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). New Orleans, 2022: 19678-19687.

[12]

Guo Z H, GU Z R, Zheng B, et al. Transformer for image harmonization and beyond[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023, 45(11): 12960-12977.

[13]

Guo Z H, Guo D S, Zheng H Y, et al. Image harmonization with transformer[C]// 2021 IEEE/CVF International Conference on Computer Vision (ICCV). Montreal, 2021: 14850-14859.

[14]

Cong W Y, Tao X H, Niu L, et al. High-resolution image harmonization via collaborative dual transformations [C]// 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). New Orleans, 2022: 18449-18458.

[15]

Xue B, Ran S H, Chen Q, et al. DCCF: deep comprehensible color filter learning framework forHigh-resolution image harmonization[C]// Computer Vision-ECCV 2022. Cham, 2022: 300-316.

[16]

Ke Z H, Sun C Y, Zhu L, et al. Harmonizer: learning toPerform white-box image andVideo harmonization [C]// Computer Vision-ECCV 2022. Cham: Springer, 2022: 690-706.

[17]

Liang J T, Cun X D, Pun C M, et al. Spatial-separated curve rendering network forEfficient andHigh-resolution image harmonization[C]// Computer Vision-ECCV 2022. Cham: Springer, 2022: 334-349.

[18]

Zhou P F, Feng F X, Wang X J . DiffHarmony: latent diffusion model meets image harmonization[C]// Proceedings of the 2024 International Conference on Multimedia Retrieval. Phuket Thailand. ACM, 2024: 1130-1134.

[19]

Zhou P F, Feng F X, Liu G, et al. DiffHarmony++ : enhancing image harmonization with harmony-VAE and inverse harmonization model[C]// Proceedings of the 32nd ACM International Conference on Multimedia. Melbourne VIC Australia. ACM, 2024: 10592-10601.

[20]

Cao J Y, Hong Y, Niu L . Painterly image harmonization in dual domains[J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2023, 37(1): 268-276.

[21]

Ho J, Jain A, Abbeel P . Denoising diffusion probabilistic models [C]// Proceedings of the 33rd Conference on Neural Information Processing Systems (NeurIPS). Vancouver, 2020: 6840-6851.

[22]

Song Y, Ermon S . Score-based generative modeling through stochastic differential equations [C]// Proceedings of the 34th Conference on Neural Information Processing Systems (NeurIPS). Virtual, 2020: 1856-1866.

[23]

Rombach R, Blattmann A, Lorenz D, et al. High-resolution image synthesis with latent diffusion models [C]// 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). New Orleans, 2022: 10674-10685.

[24]

Ramesh A, Dhariwal P, Nichol A, et al. Hierarchical text-conditional image generation with CLIP latents [C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Vancouver, 2023: 10242-10252.

[25]

Watanabe T, Chen W, Hedman P, et al. Dprecon: Diffusion prior for generalizable neural reconstruction [C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Vancouver, 2023: 2664-2674.

[26]

Luo Z, Gustafsson F K, Zhao Z, et al. Image Restoration with Mean-Reverting Stochastic Differential Equations [C]// Proceedings of the 40th International Conference on Machine Learning (ICML). Hono lulu, 2023: 23045-23066.

[27]

Luo W. DB-CMAM[EB/OL]. (2026-03-08)[2026-03-10]. https://github.com/luo-0728/DB-CMAM.

基金资助

北京市自然科学基金(L232033)

中央高校基本科研业务费专项资金(2025JBZY011)

中国铁道科学研究院集团有限公司科技研究开发计划(2024YJ392)

AI Summary AI Mindmap
PDF (2632KB)

0

访问

0

被引

详细

导航
相关文章

AI思维导图

/

〈 〉