题名: | 基于深度学习的X射线图像焊缝缺陷检测方法研究 |
作者: | |
学号: | SZ2203063 |
保密级别: | 公开 |
语种: | chi |
学科代码: | 085400 |
学科: | 工学 - 电子信息 |
学生类型: | 硕士 |
学位: | 工学硕士 |
入学年份: | 2022 |
学校: | 南京航空航天大学 |
院系: | |
专业: | |
研究方向: | 无损检测 |
导师姓名: | |
导师单位: | |
完成日期: | 2025-01-13 |
答辩日期: | 2025-03-11 |
外文题名: |
Research on X-ray Image Weld Defect Detection Method Based on Deep Learning |
关键词: | |
外文关键词: | deep learning ; weld defect ;   ; image generation ;   ; object detection ; automatic detection system |
摘要: |
焊接是连接、支撑和强化各种结构和设备的重要技术,在承压管道设施中广泛应用。焊缝中若存在缺陷,会影响设备的使用性能甚至引发严重事故,因此,开展焊缝缺陷检测研究对于保障工业生产安全与效率具有重要意义。传统的X射线胶片中焊缝缺陷的判别方式为技术人员检视,效率低且检测结果易受人为因素影响。近年来,基于深度学习的X射线图像焊缝缺陷检测技术因其具有精测精度较高、检测速度快且无需手动设计特征提取网络的优势成为研究热点。本论文围绕实际工业中,焊缝缺陷图像公开数据集数量较少、类别不平衡的问题,以及焊缝缺陷检测算法精度低的问题,开展了基于深度学习的X射线图像焊缝缺陷检测方法研究。论文的主要研究工作如下: 针对公开数据集数量较少、类别不平衡的问题,本论文采集、处理并标注了1709张承压管道焊缝缺陷图像,形成了初始数据集WeldDefect,其中缺陷标注实例共2813个。为扩充WeldDefect数据集中稀缺的裂纹、夹渣和未熔合缺陷,展开了基于深度学习的图像生成算法研究,提出了WD-DCGAN网络,将总样本数量增加到2280张,其中缺陷标注实例为4047个,形成规模更大、类别更均衡的数据集WeldDefect-K。实验结果表明,数据集扩充后,裂纹、夹渣和未熔合缺陷的检测精度分别提升了10%、2.5%和3.2%,数据集总体识别精度提升了1.4%,为焊缝缺陷检测算法的研究提供了高质量数据集支持。 针对现有焊缝缺陷检测算法精度低的问题,本论文展开了基于深度学习的目标检测算法研究,提出了一种基于Transformer的HTS-DETR焊缝缺陷检测算法。以RT-DETR为基线模型,通过引入特征筛选融合模块、跨维度交互三重注意力机制以及轻量化GSConv和VoV-GSCSP模块,改进了网络的颈部结构,增强其对小尺寸目标的表征能力,提高模型精度的同时降低了计算复杂度。实验结果表明,HTS-DETR模型在PASCAL VOC数据集上,AP值达到68.4%,APs值达29.2%,均优于其他主流目标检测算法;在WeldDefect-K数据集上的mAP50值达到了86.3%,比基线网络提高了4.5%,同时参数量降低了18%,更适用于实际工业应用。 针对人工评片效率低的问题,本文结合HTS-DETR模型,开发了一套X射线图像焊缝缺陷自动检测系统,具有注册与登录、图像上传查看、图像预处理、图像检测及缺陷信息管理五大功能。实验结果表明,该系统检测速度达到136张/秒,平均检测精度达到了86.3%,能够显著提高焊缝缺陷的检测效率。 |
外摘要要: |
Welding is an essential technology for connecting, supporting, and strengthening various structures and equipment, and it is widely used in pressurized pipeline facilities. If defects exist in the weld seam, it can affect the performance of the equipment and even lead to serious accidents. Therefore, research on weld defect detection is of great significance for ensuring industrial production safety and efficiency. In traditional X-ray film, weld defect detection is carried out through manual inspection by technicians, which is inefficient and the results are easily influenced by human factors. In recent years, deep learning-based X-ray image weld defect detection technology has become a research hotspot due to its high precision, fast detection speed, and the advantage of not requiring manual design of feature extraction networks. This thesis focuses on the issues of limited public weld defect image datasets and class imbalance, as well as the low accuracy of weld defect detection algorithms in practical industrial applications. The research on deep learning-based X-ray image weld defect detection methods is conducted. The main work in this thesis is as follows: To address the problem of limited public dataset quantity and class imbalance, this thesis collected, processed, and labeled 1,709 images of weld defects in pressurized pipelines, forming the initial dataset WeldDefect, which contains 2,813 labeled defect instances. To expand the underrepresented defects such as cracks, slag inclusion, and lack of fusion in the WeldDefect dataset, a deep learning-based image generation algorithm was developed, and the WD-DCGAN network was proposed. This increased the total number of samples to 2,280, with 4,047 defect instances, forming a larger and more balanced dataset, WeldDefect-K. Experimental results show that after dataset expansion, the detection accuracy of cracks, slag inclusion, and lack of fusion defects increased by 10%, 2.5%, and 3.2%, respectively, and the overall recognition accuracy of the dataset increased by 1.4%, providing high-quality dataset support for weld defect detection algorithm research. To address the problem of low accuracy in existing weld defect detection algorithms, this thesis conducted research on deep learning-based object detection algorithms and proposed a Transformer-based HTS-DETR weld defect detection algorithm. Using RT-DETR as the baseline model, the network's neck structure was improved by introducing a feature selection and fusion module, a cross-dimensional interaction triple attention mechanism, and lightweight GSConv and VoV-GSCSP modules. These improvements enhanced the network's ability to represent small-sized objects, improved model accuracy, and reduced computational complexity. Experimental results show that the HTS-DETR model achieved an AP of 68.4% and an APs of 29.2% on the PASCAL VOC dataset, outperforming other mainstream object detection algorithms. On the WeldDefect-K dataset, the mAP50 value reached 86.3%, a 4.5% improvement over the baseline network, while the parameter count was reduced by 18%, making it more suitable for practical industrial applications. To address the issue of low manual inspection efficiency, this thesis, in combination with the HTS-DETR model, developed an automatic X-ray image weld defect detection system. The system includes five key functions: registration and login, image upload and viewing, image preprocessing, image detection, and defect information management. Experimental results show that the system achieves a detection speed of 136 images per second, with an average detection accuracy of 86.3%, significantly improving the efficiency of weld defect detection. |
参考文献: |
[1]唐志成. 无损检测技术在承压类特种设备检验检测中的应用[J]. 中国质量监管, 2024, (06): 76-77. [2]李少波, 杨静, 王铮, 等. 缺陷检测技术的发展与应用研究综述[J]. 自动化学报, 2020, 46(11): 2319-2336. [3]赵家炜, 蔺健宁. 特种设备检验中无损检测技术的应用分析[J]. 中国设备工程, 2024, (21): 153-155. [4]沈锦军, 罗展慧. 无损检测技术在压力容器和压力管道检验中的应用[J]. 设备监理, 2024, (03): 58-61. [5]王睿, 高少泽, 刘卫朋, 等. 一种轻量级高效 X 射线焊缝图像缺陷检测方法[J]. 焊接学报, 2024, 45(7): 41-49. [6]肖文凯, 南水鱼, 张琳琳. 基于卷积神经网络的X射线焊缝缺陷检测算法研究[J]. 自动化仪表, 2022, 43(08): 67-72. [7]吴昉, 王伟, 刘卫朋. 结合注意力机制和卷积神经网络的 X 射线焊缝缺陷检测[J]. 科学技术与工程, 2023, 23(8): 3387-3395. [8]王靖然, 王桂棠, 杨波, 等. 深度学习在焊缝缺陷检测的应用研究综述[J]. 机电工程技术, 2021, 50(3): 65-68. [9]李超, 孙俊. 基于机器视觉方法的焊缝缺陷检测及分类算法[J]. 计算机工程与应用, 2018, 54(06): 264-270. [10]李柯泉, 陈燕, 刘佳晨, 等. 基于深度学习的目标检测算法综述[J]. 计算机工程, 2022, 48(07): 1-12. [11]张阳婷, 黄德启, 王东伟, 等. 基于深度学习的目标检测算法研究与应用综述[J]. 计算机工程与应用, 2023, 59(18): 1-13. [12]李亚森, 李晔, 李赵辉. 基于深度学习的焊缝缺陷检测方法综述[J]. 焊接技术, 2024, 53(04): 6-13. [33]Cengil E. Weld Defect Detection with YOLOv10[J]. NATURENGS, 2024, 5(2): 77-81. [71]李新越, 刘春秘, 于涵, 等. X射线平板探测器图像噪声分布数学模型构建[J]. 核电子学与探测技术, 2022, 42(06): 1095-1100. [82]邓聪, 罗伟坚, 李绪丰. 人工智能技术在射线检测底片评定系统中的应用[J]. 无损检测, 2022, 44(8): 65-68, 73. |
中图分类号: | TG115.28 |
馆藏号: | 2025-003-0093 |
开放日期: | 2025-09-25 |