Intelligent Defect Identification in Girth Welds of Phased Array Ultrasonic Testing Images Using Median Filtering, Spatial Enrichment, and YOLOv8
Abstract
1. Introduction
- (1)
- Domain-specific image quality: PAUT B/S-scan images suffer from coherent speckle, structural noise, and an intrinsically low edge contrast caused by the limited bandwidth of phased array probes. Therefore, the networks trained on raw PAUT images tend to confuse the small slag inclusions with background speckle and miss thin LOF strips at the weld root.
- (2)
- Lack of a transparent, reproducible preprocessing pipeline: Most existing PAUT-AI papers use either raw images or single-step CLAHE enhancement without comparing alternatives or publishing the algorithm in sufficient detail to be reproduced.
- (3)
- Insufficient experiments: The reported accuracies in the PAUT-AI literature are often based on a single train/test split, are not compared with strong baselines, and do not include ablation studies of the preprocessing modules, leaving the contribution of each component unverifiable.
- (1)
- We design and explicitly formulate a SEA tailored to the PAUT speckle statistics, including its mathematical definition, parameter selection rationale and pseudocode.
- (2)
- We construct an annotated PAUT girth weld dataset containing slag inclusion, porosity and LOF samples and document the acquisition, annotation and split protocol (Section 2.4), using it to systematically benchmark the proposed framework with a five-fold cross-validation.
- (3)
- We provide rigorous comparative evidence through (i) a baseline comparison against YOLOv5n and YOLOv7-tiny, (ii) an ablation study isolating the contributions of denoising and enhancement, and (iii) a computational cost analysis demonstrating real-time feasibility (Section 3).
2. Image Processing
2.1. Dataset Preparation
2.2. Image Denoising
2.3. Image Enhancement
2.4. Image Recognition
3. Results and Discussion
3.1. Image Denoising
3.2. Image Enhancement
3.3. Image Recognition
3.4. Baseline Comparison and Computational Cost
3.5. Cost Cross-Validation and Generalization Evaluation
4. Conclusions
- (1)
- Median filtering is used for image denoising. After median filtering, the noise is effectively reduced, and the information characteristics are preserved. The PSNR of slag inclusion, pore, and lof is 35.132, 35.938, and 36.183, respectively.
- (2)
- SEA is applied for enhancement due to its reinforcement effect and lack of noise increase. The PSNR, SSIM, contrast, and edge strength are 33.710, 0.960, 95.279, and 10.865, respectively.
- (3)
- YOLOv8 is applied for recognition due to its recognition rate and efficiency. The proposed model achieves a mean average precision (mAP@0.5) of 95%; a precision of 98%; a recall of 97%; an inference speed of 117 FPS, demonstrating high reliability; an ideal balance between accuracy and recall; and strong robustness and high efficiency in practical applications.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| PAUT | Phased Array Ultrasonic Testing |
| ECA | Efficient Channel Attention |
| ECAL | Efficient Channel Attention |
| CLAHE | Contrast Constrained Adaptive Histogram Equalization |
| PCC | Precision Confidence Curve |
| RCC | Recall Confidence Curve |
| MSE | Mean Squared Error |
| PSNR | Peak Signal-to-Noise Ratio |
| SSIM | Structural Similarity Index Measure |
| LOF | Lack of Fusion |
| CNN | Convolutional Neural Network |
| R-CNN | Region-based Convolutional Neural Network |
References
- Bakas, G.; Bei, K.; Skaltsas, I.; Gkartzou, E.; Tsiokou, V.; Papatheodorou, A.; Karatza, A.; Koumoulos, E.P. Object Detection: Custom Trained Models for Quality Monitoring of Fused Filament Fabrication Process. Processes 2022, 10, 2147. [Google Scholar] [CrossRef]
- Khormali, A. Using a New Mixture of Reagents for Effective Inhibition of Corrosion and Salt Precipitation in the Petroleum Industry. J. Chem. Pet. Eng. 2021, 55, 257–276. [Google Scholar] [CrossRef]
- Alonso, J.; Pavon, S.; Vidal, J.; Perdigones, J.; Carpena, I. A New Insight on Phased Array Ultrasound Inspection in MIG/MAG Welding. Materials 2022, 15, 2793. [Google Scholar] [CrossRef]
- Chen, Y.; He, D.; He, S.; Jin, Z.; Miao, J.; Shan, S.; Chen, Y. Welding defect detection based on phased array images and two-stage segmentation strategy. Adv. Eng. Inform. 2024, 62, 102879. [Google Scholar] [CrossRef]
- Han, Z.; Li, S.; Chen, X.; Huang, B.; Sun, J.; Zhang, Q.; Liu, C. DFW-YOLO: YOLOv5-based algorithm using phased array ultrasonic testing for weld defect recognition. Nondestruct. Test. Eval. 2024, 40, 2516–2539. [Google Scholar] [CrossRef]
- Lee, D.; Lee, H.J.; Park, C.-S.; Lee, S. DiffectNet: Diffusion-enabled conditional target generation of internal defects in ultrasonic non-destructive testing. Mech. Syst. Signal Process. 2025, 240, 113454. [Google Scholar] [CrossRef]
- Li, J.; Ju, G.; Chen, H.; Wu, L.; Jiang, Y.; Zhang, J. An intelligent recognition method for weak ultrasonic images of internal defects in composite material based on the improved YOLOv11 model. Nondestruct. Test. Eval. 2026, 1–23. [Google Scholar] [CrossRef]
- Hu, Y.; Lu, L.; Zhan, S. Simulation and reliability evaluation of automated ultrasonic testing technology in semi-automatic welding of oil and gas pipelines. Int. J. Adv. Manuf. Technol. 2022, 124, 4131–4141. [Google Scholar] [CrossRef]
- Jayasudha, J.C.; Lalithakumari, S. Weld defect segmentation and feature extraction from the acquired phased array scan images. Multimed. Tools Appl. 2022, 81, 31061–31074. [Google Scholar] [CrossRef]
- Li, S.; Gao, J.; Zhou, E.; Pan, Q.; Wang, X. Deep learning-based fusion hole state recognition and width extraction for thin plate TIG welding. Weld. World 2022, 66, 1329–1347. [Google Scholar] [CrossRef]
- Liang, D.; Wu, Y.; Hu, K.; Bu, J.J.; Liang, D.T.; Feng, Y.F.; Ma, J.Q. Weld seam track identification for industrial robot based on illumination correction and center point extraction. J. Adv. Mech. Des. Syst. Manuf. 2022, 16, JAMDSM0028. [Google Scholar] [CrossRef]
- Na, Y.; He, Y.; Deng, B.; Yang, C.; Li, Q.; Wang, L.; Cao, Y. A deep mutual learning-based framework for wind turbine blade defect detection in multimodal phased array ultrasonic data. Ultrasonics 2026, 164, 108035. [Google Scholar] [CrossRef]
- Lim, S.J.; Kim, Y.L.; Cho, S.; Park, I.K. Ultrasonic Inspection for Welds with Irregular Curvature Geometry Using Flexible Phased Array Probes and Semi-Auto Scanners: A Feasibility Study. Appl. Sci. 2022, 12, 748. [Google Scholar] [CrossRef]
- Lindgren, E.; Zach, C. Industrial X-ray Image Analysis with Deep Neural Networks Robust to Unexpected Input Data. Metals 2022, 12, 1963. [Google Scholar] [CrossRef]
- Nowroth, C.; Gu, T.; Grajczak, J.; Nothdurft, S.; Twiefel, J.; Hermsdorf, J.; Kaierle, S.; Wallaschek, J. Deep Learning-Based Weld Contour and Defect Detection from Micrographs of Laser Beam Welded Semi-Finished Products. Appl. Sci. 2022, 12, 4645. [Google Scholar] [CrossRef]
- Sun, H.; Ramuhalli, P.; Jacob, R.E. Machine learning for ultrasonic nondestructive examination of welding defects: A systematic review. Ultrasonics 2023, 127, 106854. [Google Scholar] [CrossRef]
- Wang, W.; Yamane, S.; Wang, Q.; Shan, L.; Zhang, X.; Wei, Z.; Yan, Y.; Song, Y.; Numazawa, H.; Lu, J.; et al. Visual sensing and quality control in plasma MIG welding. J. Manuf. Process. 2023, 86, 163–176. [Google Scholar] [CrossRef]
- Wang, X.; Wang, X.; Zhang, B.; Cui, J.; Lu, X.; Ren, C.; Cai, W.; Yu, X. Binary classification of welding defect based on deep learning. Sci. Technol. Weld. Join. 2022, 27, 407–417. [Google Scholar] [CrossRef]
- Wang, X.; Yu, X. Understanding the effect of transfer learning on the automatic welding defect detection. NDT E Int. 2023, 134, 102784. [Google Scholar] [CrossRef]
- Wang, Z.; Gao, W.; Song, J. Applying SDR with CNN to Identify Weld Defect: A New Processing Method. J. Pipeline Syst. Eng. Pract. 2023, 14. [Google Scholar] [CrossRef]
- Yang, L.; Fan, J.; Huo, B.; Li, E.; Liu, Y. A nondestructive automatic defect detection method with pixelwise segmentation. Knowl.-Based Syst. 2022, 242, 108338. [Google Scholar] [CrossRef]
- Yang, L.; Song, S.; Fan, J.; Huo, B.; Li, E.; Liu, Y. An Automatic Deep Segmentation Network for Pixel-Level Welding Defect Detection. IEEE Trans. Instrum. Meas. 2022, 71, 5003510. [Google Scholar] [CrossRef]








| Parameters/Hardware | Configuration/Value |
|---|---|
| Hardware Specifications | |
| CPU | Intel Core i9-13900K |
| GPU | NVIDIA GeForce RTX 4090 (24 GB) |
| Training Hyper-parameters | |
| Epochs | 500 |
| Batch Size | 32 |
| Initial Learning Rate | 0.01 |
| Optimizer | SGD |
| Momentum | 0.937 |
| Weight Decay | 0.0005 |
| Training Time | 12.5 h |
| Sample | Slag Inclusion | Pore | Lof | Cracks |
|---|---|---|---|---|
| Bilateral filter | 6.598 | 5.578 | 6.598 | 4.671 |
| Gaussian filter | 10.198 | 11.649 | 12.606 | 9.584 |
| Median filtering | 11.798 | 13.283 | 15.658 | 10.268 |
| Mean filtering | 6.298 | 5.774 | 6.113 | 4.331 |
| Sample | Slag Inclusion | Pore | Lof | Cracks |
|---|---|---|---|---|
| Bilateral filter | 37.563 | 38.639 | 39.589 | 32.159 |
| Gaussian filter | 35.896 | 36.534 | 37.125 | 36.289 |
| Median filtering | 35.132 | 35.938 | 36.183 | 35.675 |
| Mean filtering | 38.432 | 39.867 | 40.268 | 36.846 |
| Method | PSNR | SSIM | Contrast | Edge Strength |
|---|---|---|---|---|
| CLAHE | 33.174 | 0.856 | 91.403 | 11.120 |
| SEA | 33.710 | 0.960 | 95.279 | 10.865 |
| Model | mAP@0.5 (%) | Precision (%) | Recall (%) | Parameters (M) | GFLOPs | Inference Time (ms) |
|---|---|---|---|---|---|---|
| Faster R-CNN | 92.4 | 91.5 | 90.8 | 41.5 | 180.2 | 85.0 |
| YOLOv5 | 94.6 | 93.2 | 94.1 | 7.2 | 16.5 | 12.5 |
| YOLOv7 | 96.3 | 95.8 | 95.5 | 36.9 | 104.7 | 22.4 |
| Proposed Method | 95 | 98 | 97 | 11.1 | 28.6 | 8.5 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Bu, M.; Niu, S.; Li, X.; Han, B. Intelligent Defect Identification in Girth Welds of Phased Array Ultrasonic Testing Images Using Median Filtering, Spatial Enrichment, and YOLOv8. Metals 2026, 16, 458. https://doi.org/10.3390/met16050458
Bu M, Niu S, Li X, Han B. Intelligent Defect Identification in Girth Welds of Phased Array Ultrasonic Testing Images Using Median Filtering, Spatial Enrichment, and YOLOv8. Metals. 2026; 16(5):458. https://doi.org/10.3390/met16050458
Chicago/Turabian StyleBu, Mingzhe, Shengyuan Niu, Xueda Li, and Bin Han. 2026. "Intelligent Defect Identification in Girth Welds of Phased Array Ultrasonic Testing Images Using Median Filtering, Spatial Enrichment, and YOLOv8" Metals 16, no. 5: 458. https://doi.org/10.3390/met16050458
APA StyleBu, M., Niu, S., Li, X., & Han, B. (2026). Intelligent Defect Identification in Girth Welds of Phased Array Ultrasonic Testing Images Using Median Filtering, Spatial Enrichment, and YOLOv8. Metals, 16(5), 458. https://doi.org/10.3390/met16050458

