journal article·2025-09-02

Data enhanced YOLOv8s algorithm for X-ray weld defect detection

Beidou Ding, Huiming Zhang, Huang Zhenhua, Ding Shanze

Publisher page

Abstract

X-ray weld images often suffer from low contrast, poor quality, and other limitations. Additionally, due to factors such as inspection equipment and cost constraints, the number of available samples for weld images is limited, which may not suffice for deep learning training requirements. To address these challenges and enable intelligent weld seam image detection, a comprehensive approach is proposed, comprising a data enhancement method and an enhanced YOLOv8s defect detection algorithm. The method unfolds as follows: firstly, 4k+ images are reorganised into weld defect images with consistent size utilising a weld defect image feature reorganisation method, which retains as much of the weld defect information. Subsequently, data enhancement of X-ray weld defect images is carried out through translation, luminance, noise, mirroring, and cropping degradation models and the improved SRGAN model. Finally, a novel data enhancement method is proposed based on the Multi-Head Self-Attention (MHSA), the detection head, and the Channel-wise Convolutional Spatial Gating (C2f_SGE) in the improved YOLOv8s model. This enhanced defect detection method, YOLOv8sDMS, compared with the YOLOv8s model, indicates improvements in mAP50 by 0.035, mAP50:95 by 0.021, Precision by 0.037, and Recall by 0.050. The proposed improved method achieves superior results in weld defect detection.
Source: openalex_inverted_index · Quality: baseline

Research context

OpenAlex topics: Advanced X-ray and CT Imaging · Welding Techniques and Residual Stresses · Industrial Vision Systems and Defect Detection

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

China University of Mining and Technology

Jiangsu Building Energy Conservation and Construction Technology Collaborative Innovation Center

University of North Texas

Jiangsu Vocational Institute of Architectural Technology

Funding

National Key Research and Development Program of China · Jiangsu Collaborative lnnovation Center for Building Energy Saving and Construction Technology Industrial Development Fund Program Project · Xuzhou Science and Technology Program

References (35)

Show source-provided references
1. Wang C, Jiang X, Chao Y, et al. Multi-defect detection of welding surface based on eddy current pulse thermography. Infrared Technol. 2023;45(1):84–90.(in Chinese.
2. 10.1016/j.ijleo.2018.07.12610.1016/j.ijleo.2018.07.126 ↗
3. 10.1109/i2mtc.2019.882715310.1109/i2mtc.2019.8827153 ↗
4. 10.1088/0957-0233/27/7/07200110.1088/0957-0233/27/7/072001 ↗
5. 10.1109/TIM.2024.349387810.1109/TIM.2024.3493878 ↗
6. Bai X, Lu G, Yan Y. Flame image segmentation using multiscale color and wavelet-based texture features. Comput Eng Appl. 2017;53(9):213–219.(in Chinese.
7. Liu L, Li B, Wang Y et al. Remote sensing image segmentation based on improved canny edge Detection.Computer engineering and applications. Computer Engineering and Applications. 2019;55(12):54–58+180.(in Chinese).
8. 10.1016/j.ijleo.2021.16634210.1016/j.ijleo.2021.166342 ↗
9. 10.1016/j.ndteint.2022.10276410.1016/j.ndteint.2022.102764 ↗
10. 10.1016/j.ijpvp.2023.10489310.1016/j.ijpvp.2023.104893 ↗
11. Wu Z, Gao P, Han J, et al. Real-time segmentation network for accurate weld detection in large weldments. Eng Appl Artif Intel: Int J Intell Real-Time Automation. 2023;117:1–9.
12. 10.1016/j.matpr.2020.12.80610.1016/j.matpr.2020.12.806 ↗
13. 10.1109/TII.2024.339993410.1109/TII.2024.3399934 ↗
14. 10.1109/ElConRus51938.2021.939630110.1109/ElConRus51938.2021.9396301 ↗
15. 10.1155/2020/157435010.1155/2020/1574350 ↗
16. 10.1061/JPSEA2.PSENG-135010.1061/JPSEA2.PSENG-1350 ↗
17. 10.1016/j.jmapro.2020.12.06710.1016/j.jmapro.2020.12.067 ↗
18. Zhang L, Tian Y. Improved YOLOv8 multi-scale and lightweight vehicle object detection algorithm. Comput Eng Appl. 2024;60(3):129–137.(in Chinese.
19. 10.3390/electronics1222462810.3390/electronics12224628 ↗
20. Shen L, Lang B, Song Z, et al. DS-YOLOv8-based object detection method for remote sensing images. IEEE. 2023;11:125122–125137.
21. 10.1007/978-3-031-44754-9_210.1007/978-3-031-44754-9_2 ↗
22. 10.3390/s2324990610.3390/s23249906 ↗
23. Ashish V, Noam S, Miki P, et al. Attention is all you need. Adv Neural Inf Process Syst. 2017.
24. Li X, Hu X, Yang J. Spatial group-wise enhance: improving semantic feature learning in convolutional networks. Arxiv. 2019. https://arxiv.org/abs/1905.09646.
25. 10.1016/j.icte.2024.02.00710.1016/j.icte.2024.02.007 ↗
26. 10.1007/s10921-015-0315-710.1007/s10921-015-0315-7 ↗
27. 10.1109/CVPR.2017.1910.1109/CVPR.2017.19 ↗
28. Liu Y, Shao Z. Global attention mechanism: retain information to enhance channel-spatial interactions. Arxiv. 2021. https://arxiv.org/abs/2112.05561.
29. 10.1109/CVPR42600.2020.0016510.1109/CVPR42600.2020.00165 ↗
30. 10.1109/TPAMI.2015.238982410.1109/TPAMI.2015.2389824 ↗
31. Johnson J, Alahi A, Li F. Perceptual losses for real-Time style transfer and super-resolution. ArXiv. 2016:694–711.
32. 10.1109/CVPR.2018.0047410.1109/CVPR.2018.00474 ↗
33. Lim B, Son S, Kim H, et al. Enhanced deep residual networks for single image super-resolution. Comput Vision Pattern Recognit. 2017:1132–1140.
34. 10.1109/TPAMI.2020.303242210.1109/TPAMI.2020.3032422 ↗
35. 10.1016/j.apsusc.2013.09.00210.1016/j.apsusc.2013.09.002 ↗