Please wait a minute...
浙江大学学报(工学版)  2025, Vol. 59 Issue (9): 1846-1855    DOI: 10.3785/j.issn.1008-973X.2025.09.008
计算机技术     
基于改进CycleGAN的水下桥墩裂缝图像生成
吕振鸣1(),董绍江1,*(),何婧瑶2,杨金龙3,张佳伟1
1. 重庆交通大学 机电与车辆工程学院,重庆 400074
2. 重庆交通大学 河流与海洋工程学院,重庆 400074
3. 重庆交通大学 交通运输学院,重庆 400074
Underwater bridge pier crack image generation based on improved CycleGAN
Zhenming LV1(),Shaojiang DONG1,*(),Jingyao HE2,Jinlong YANG3,Jiawei ZHANG1
1. School of Mechatronics and Vehicle Engineering, Chongqing Jiaotong University, Chongqing 400074, China
2. School of River and Ocean Engineering, Chongqing Jiaotong University, Chongqing 400074, China
3. School of Traffic and Transportation, Chongqing Jiaotong University, Chongqing 400074, China
 全文: PDF(3634 KB)   HTML
摘要:

基于深度学习的水下桥墩裂缝检测依赖大量的裂缝图像,然而桥墩裂缝稀缺且受水体环境干扰导致裂缝图像质量不佳,为此提出改进的CycleGAN网络用于生成水下桥墩裂缝图像数据. 通过水下机器人采集水下桥墩壁面图像数据,结合桥梁裂缝数据构建数据集. 为了保证生成数据质量,在CycleGAN的生成器中添加scSE注意力,并在颈部处添加DehazeFormer模块,使生成的水下桥墩裂缝的图像质量提升,在特征空间中具有更好的分布和区分度. 采用像素感知判别器对生成的图像进行精准判别. 采用所提方法,水下图像质量UIQM、水下色彩质量UCIQE和峰值信噪比PSNR分别达到0.818、0.443和24.673,生成的水下桥墩裂缝效果优于其他主流图像转换算法的. 为了验证裂缝图像质量,结合机器人采集的水下桥墩裂缝数据,采用目标检测任务对比生成的水下图像质量和真实的水下桥墩裂缝质量,结果表明,F1分数和mAP50指标分数相差均小于0.1%. 所提方法有望解决目标检测任务数据不足问题,为水下桥墩的安全评估提供有力的数据支持.

关键词: 水下桥墩裂缝数据稀缺CycleGANscSE注意力DehazeFormer模块像素感知判别器    
Abstract:

Deep learning-based underwater bridge pier crack detection relies heavily on a large number of crack images. However, pier cracks are scarce and disturbed by the water environment, resulting in poor crack image quality. Thus, an improved CycleGAN network was proposed to generate underwater bridge pier crack image data. Underwater bridge pier wall image data were collected by an underwater robot and combined with bridge crack data to form a dataset. The scSE attention was added to the generator of CycleGAN, and the DehazeFormer module was added at the neck, to ensure the quality of the generated data. These enhancements improved the quality of the generated underwater bridge pier crack images, enabling better distribution and discriminative ability in the feature space. A pixel-aware discriminator was used to accurately discriminate the generated images. When compared with mainstream image conversion algorithms, the proposed method demonstrated superiority in terms of underwater image quality (UIQM), underwater color quality (UCIQE), and peak signal-to-noise ratio (PSNR). The UIQM score reached 0.818, the UCIQE score reached 0.443, and the PSNR metric score reached 24.673. To verify the crack image quality, target detection tasks were performed using both the generated underwater images and real underwater bridge pier crack data collected by the robot. The results showed that the F1 score and mAP50 indicator scores differed by less than 0.1%. The proposed method was expected to solve the problem of insufficient data for target detection tasks and provide strong data support for the safety assessment of underwater bridge piers.

Key words: underwater bridge pier crack    data scarcity    CycleGAN    scSE attention    DehazeFormer module    pixel-aware discriminator
收稿日期: 2024-09-26 出版日期: 2025-08-25
CLC:  U 446  
基金资助: 重庆市自然科学基金创新发展联合基金资助项目(CSTB2024NSCQ-LZX0024);重庆市教育委员会科学技术研究资助项目(KJZD-K202300711);重庆市研究生科研创新资助项目(CYS240489).
通讯作者: 董绍江     E-mail: 13946501711@163.com;dongshaojiang100@163.com
作者简介: 吕振鸣(2000—),男,硕士生,从事水下机器人研究. orcid.org/0009-0009-3520-7523. E-mail:13946501711@163.com
服务  
把本文推荐给朋友
加入引用管理器
E-mail Alert
作者相关文章  
吕振鸣
董绍江
何婧瑶
杨金龙
张佳伟

引用本文:

吕振鸣,董绍江,何婧瑶,杨金龙,张佳伟. 基于改进CycleGAN的水下桥墩裂缝图像生成[J]. 浙江大学学报(工学版), 2025, 59(9): 1846-1855.

Zhenming LV,Shaojiang DONG,Jingyao HE,Jinlong YANG,Jiawei ZHANG. Underwater bridge pier crack image generation based on improved CycleGAN. Journal of ZheJiang University (Engineering Science), 2025, 59(9): 1846-1855.

链接本文:

https://www.zjujournals.com/eng/CN/10.3785/j.issn.1008-973X.2025.09.008        https://www.zjujournals.com/eng/CN/Y2025/V59/I9/1846

图 1  水下桥墩裂缝生成网络框架
图 2  所提出的水下桥墩裂缝生成CycleGAN网络框架
图 3  水下桥墩裂缝采集实验设备及采集数据过程
图 4  改进的CycleGAN生成的数据集和真实水下桥墩裂缝数据
模型UIQMUCIQEPSNR
CycleGAN0.7230.33918.902
Cycle-Dehaze0.7900.31420.194
Cycle-SNSPGAN0.8120.35722.037
UCL-Dehaze0.6840.32521.402
所提方法0.8180.44324.673
表 1  多种水下桥墩裂缝生成算法的定量比较
图 5  多种算法的视觉比较结果
数据UIQMUCIQE
真实水下桥墩裂缝0.8010.423
所提方法产生的裂缝0.8180.443
表 2  真实水下桥墩裂缝与所提方法生成裂缝的无参考指标评估结果
模型UIQMUCIQEPSNRt/hParm/106
不含scSE注意力0.8090.42021.9173.826109.492
不含DehazeFormer模块0.7790.38218.3293.594104.891
不含PA判别器0.8020.41922.8293.925113.502
完整模型0.8180.44324.6734.127114.648
表 3  消融实验指标结果
图 6  改进CycleGAN生成器的消融实验视觉比较
数据模型Precision/%Recall/%F1/%mAP/%
生成样本YOLOv8n88.787.588.186.2
RT-DETRr1888.988.188.586.9
真实样本YOLOv8n89.286.688.085.4
RT-DETRr1889.387.888.586.8
表 4  生成样本和真实样本的目标检测效果验证
图 7  生成的水下桥墩裂缝的目标检测视觉效果
图 8  检测水下桥墩裂缝任务下的热力图对比
1 LI X, MENG Q, WEI M, et al Identification of underwater structural bridge damage and BIM-based bridge damage management[J]. Applied Sciences, 2023, 13 (3): 1348
doi: 10.3390/app13031348
2 ORINAITĖ U, KARALIŪTĖ V, PAL M, et al Detecting underwater concrete cracks with machine learning: a clear vision of a murky problem[J]. Applied Sciences, 2023, 13 (12): 7335
doi: 10.3390/app13127335
3 KOV’ARI K, PETER G Continuous strain monitoring in the rock foundation of a large gravity dam[J]. Rock Mechanics and Rock Engineering, 1983, 16 (3): 157- 171
doi: 10.1007/BF01033277
4 FAN X, CAO P, SHI P, et al An underwater dam crack image segmentation method based on multi-level adversarial transfer learning[J]. Neurocomputing, 2022, 505: 19- 29
doi: 10.1016/j.neucom.2022.07.036
5 HUANG B, KANG F, LI X, et al Underwater dam crack image generation based on unsupervised image-to-image translation[J]. Automation in Construction, 2024, 163: 105430
doi: 10.1016/j.autcon.2024.105430
6 YE X, LUO K, WANG H, et al An advanced AI-based lightweight two-stage underwater structural damage detection model[J]. Advanced Engineering Informatics, 2024, 62: 102553
doi: 10.1016/j.aei.2024.102553
7 程风雯, 甘进, 李星, 等 基于DCGAN的水下结构物表面缺陷图像生成[J]. 长江科学院院报, 2023, 40 (9): 155- 161
CHENG Fengwen, GAN Jin, LI Xing, et al Image generation for surface defects of underwater structures based on deep convolutional generative adversarial networks[J]. Journal of Changjiang River Scientific Research Institute, 2023, 40 (9): 155- 161
doi: 10.11988/ckyyb.20220421
8 王桂平, 陈旺桥, 杨建喜, 等 基于迁移学习的桥梁表观病害检测技术研究[J]. 铁道科学与工程学报, 2022, 19 (6): 1638- 1646
WANG Guiping, CHEN Wangqiao, YANG Jianxi, et al A bridge surface distress detection technology based on transfer learning[J]. Journal of Railway Science and Engineering, 2022, 19 (6): 1638- 1646
9 ZHAO S, SHADABFAR M, ZHANG D, et al Deep learning-based classification and instance segmentation of leakage-area and scaling images of shield tunnel linings[J]. Structural Control and Health Monitoring, 2021, 28 (6): e2732
10 马金祥, 范新南, 吴志祥, 等 暗通道先验的大坝水下裂缝图像增强算法[J]. 中国图象图形学报, 2016, 21 (12): 1574- 1584
MA Jinxiang, FAN Xinnan, WU Zhixiang, et al Underwater dam crack image enhancement algorithm based on improved dark channel prior[J]. Journal of Image and Graphics, 2016, 21 (12): 1574- 1584
doi: 10.11834/jig.20161202
11 XIN G, FAN X, SHI P, et al A fine extraction algorithm for image-based surface cracks in underwater dams[J]. Measurement Science and Technology, 2023, 34 (3): 035402
doi: 10.1088/1361-6501/ac9db2
12 QI Z, LIU D, ZHANG J, et al Micro-concrete crack detection of underwater structures based on convolutional neural network[J]. Machine Vision and Applications, 2022, 33 (5): 74
doi: 10.1007/s00138-022-01327-5
13 雍子叶, 郭继昌, 李重仪 融入注意力机制的弱监督水下图像增强算法[J]. 浙江大学学报: 工学版, 2021, 55 (3): 555- 562,570
YONG Ziye, GUO Jichang, LI Chongyi Weakly supervised underwater image enhancement algorithm incorporating attention mechanism[J]. Journal of Zhejiang University: Engineering Science, 2021, 55 (3): 555- 562,570
14 范新南, 顾丽萍, 巫鹏, 等 一种仿水下生物视觉的大坝裂缝图像增强算法[J]. 光电子 激光, 2014, 25 (2): 372- 377
FAN Xinnan, GU Liping, WU Peng, et al A dam crack image enhancement algorithm based on underwater biological vision[J]. Journal of Optoelectronics Laser, 2014, 25 (2): 372- 377
15 温佩芝, 陈君谋, 肖雁南, 等 基于生成式对抗网络和多级小波包卷积网络的水下图像增强算法[J]. 浙江大学学报: 工学版, 2022, 56 (2): 213- 224
WEN Peizhi, CHEN Junmou, XIAO Yannan, et al Underwater image enhancement algorithm based on GAN and multi-level wavelet CNN[J]. Journal of Zhejiang University: Engineering Science, 2022, 56 (2): 213- 224
16 ZHU J Y, PARK T, ISOLA P, et al. Unpaired image-to-image translation using cycle-consistent adversarial networks [C]//Proceedings of the IEEE International Conference on Computer Vision. Venice: IEEE, 2017: 2242–2251.
17 ROY A G, NAVAB N, WACHINGER C. Concurrent spatial and channel ‘squeeze&excitation’ in fully convolutional networks [C]// Medical Image Computing and Computer Assisted Intervention – MICCAI 2018. Cham: Springer, 2018: 421–429.
18 SONG Y, HE Z, QIAN H, et al Vision transformers for single image dehazing[J]. IEEE Transactions on Image Processing, 2023, 32: 1927- 1941
doi: 10.1109/TIP.2023.3256763
19 LIU Z, LIN Y T, CAO Y, et al. Swin transformer: hierarchical vision transformer using shifted windows [C]// Proceedings of the IEEE/CVF International Conference on Computer Vision. Montreal: IEEE, 2021: 10012-10022.
20 BA J L, KIROS J R, HINTON G E. Layer normalization [EB/OL]. [2024-06-01]. https://arxiv.org/abs/1607.06450.
21 HENDRYCKS D, GIMPEL K. Gaussian error linear units (gelus)[EB/OL]. [2024-06-01]. https://arxiv.org/abs/1606.08415v5.
22 WANG P, CHEN P, YUAN Y, et al. Understanding convolution for semantic segmentation [C]// IEEE Winter Conference on Applications of Computer Vision. Lake Tahoe: IEEE, 2018: 1451–1460.
23 ENGIN D, GENÇ A, KEMAL EKENEL H. Cycle-dehaze: Enhanced cyclegan for single image dehazing [C]// Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops. Salt Lake City: IEEE, 2018: 825-833.
24 WANG Y, YAN X, GUAN D, et al Cycle-SNSPGAN: towards real-world image dehazing via cycle spectral normalized soft likelihood estimation patch GAN[J]. IEEE Transactions on Intelligent Transportation Systems, 2022, 23 (11): 20368- 20382
doi: 10.1109/TITS.2022.3170328
25 WANG Y, YAN X, WANG F L, et al UCL-dehaze: toward real-world image dehazing via unsupervised contrastive learning[J]. IEEE Transactions on Image Processing, 2024, 33: 1361- 1374
doi: 10.1109/TIP.2024.3362153
26 YANG M, SOWMYA A An underwater color image quality evaluation metric[J]. IEEE Transactions on Image Processing, 2015, 24 (12): 6062- 6071
doi: 10.1109/TIP.2015.2491020
27 PANETTA K, GAO C, AGAIAN S Human-visual-system-inspired underwater image quality measures[J]. IEEE Journal of Oceanic Engineering, 2016, 41 (3): 541- 551
doi: 10.1109/JOE.2015.2469915
28 YANG X, LI H, YU Y, et al Automatic pixel-level crack detection and measurement using fully convolutional network[J]. Computer-Aided Civil and Infrastructure Engineering, 2018, 33 (12): 1090- 1109
doi: 10.1111/mice.12412
29 WANG W, YANG Y A color image fusion model by saturation-value total variation[J]. Journal of Computational and Applied Mathematics, 2024, 446: 115832
doi: 10.1016/j.cam.2024.115832
30 ZHAO Y, LV W, XU S, et al. Detrs beat yolos on real-time object detection [C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle: IEEE, 2024: 16965-16974.
[1] 吕振鸣,董绍江,夏宗佑,牟小燕,王明权. 基于改进CycleGAN的多失真类型水下图像增强[J]. 浙江大学学报(工学版), 2025, 59(6): 1148-1158.