journal article·2025-12-03Open access

Automated Weld Defect Classification Enhanced by Synthetic Data Augmentation in Industrial Ultrasonic Images

Amir-M. Naddaf-Sh, Vinay S. Baburao, Zina Ben-Miled, Hassan Zargarzadeh

Applied Sciences· Volume 15· Issue 23

Abstract

Automated ultrasonic testing (AUT) serves as a vital method for evaluating critical infrastructure in industries such as oil and gas. However, a significant challenge in deploying artificial intelligence (AI)-based interpretation methods for AUT data lies in improving their reliability and effectiveness, particularly due to the inherent scarcity of real-world defective data. This study directly addresses data scarcity in a weld defect classification task, specifically concerning the detection of lack of fusion (LOF) defects in weld inspections using a proprietary industrial ultrasonic B-scan image dataset. This paper leverages state-of-the-art generative models, including Generative Adversarial Networks (GANs) and Denoising Diffusion Probabilistic Models (DDPM) (StyleGAN3, VQGAN with an unconditional transformer, and Stable Diffusion), to produce realistic B-scan images depicting LOF defects. The fine-tuned Transformer-based models, including ViT-Base, Swin-Tiny, and MobileViT-Small classifiers, on the regular B-scan image dataset are then applied to retain only high-confidence positive synthetic samples from each method. The impact of these synthetic images on the classification performance of a ResNet-50 model is evaluated, where it is fine-tuned with cumulative additions of synthetic images, ranging from 10 to 200 images. Its accuracy on the test set increases by 38.9% relative to the baseline with the addition of either 80 synthetic images using VQGAN with an unconditional transformer or 200 synthetic images by StyleGAN3 to the training set, and by 36.8% with the addition of 150 synthetic images by Stable Diffusion. This also outperforms Transformer-based vision models that are trained on regular training data. Concurrently, knowledge distillation experiments involve training ResNet-50 as a student model, leveraging the expertise of ViT-Base and Swin-Tiny as teacher models to demonstrate the effectiveness of adding the synthetic data to the training set, where the greatest enhancement is observed to be 34.7% relative to the baseline. This work contributes to advancing robust, AI-assisted tools for critical infrastructure inspection and offers practical pathways for enhancing available models in resource-constrained industrial environments.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Ultrasonics and Acoustic Wave Propagation · Non-Destructive Testing Techniques · Welding Techniques and Residual Stresses

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

Affiliations

Phillip M. Drayer Electrical and Computer Engineering Department, Lamar University, Beaumont, TX 77705, USA

CRC-Evans, Houston, TX 77066, USA

Funding

Dr. Zina Ben-Miled

References (35)

Show source-provided references
1. Adegboye, M.A., Fung, W.-K., and Karnik, A. (2019). Recent Advances in Pipeline Monitoring and Oil Leakage Detection Technologies: Principles and Approaches. Sensors, 19.10.20944/preprints201905.0041.v1 ↗
2. Advanced Faster-RCNN Model for Automated Recognition and Detection of Weld Defects on Limited X-Ray Image Dataset10.1007/s10921-023-01032-x ↗
3. Karimi, H. (2021). 9—Defect Detection and Classification in Welding Using Deep Learning and Digital Radiography. Fault Diagnosis and Prognosis Techniques for Complex Engineering Systems, Academic Press.
4. Real-Time Explainable Multiclass Object Detection for Quality Assessment in 2-Dimensional Radiography Images10.1155/2022/4637939 ↗
5. Automated Defect Detection from Ultrasonic Images Using Deep Learning10.1109/TUFFC.2021.3081750 ↗
6. Ye, J., Ito, S., and Toyama, N. (2018). Computerized Ultrasonic Imaging Inspection: From Shallow to Deep Learning. Sensors, 18.10.3390/s18113820 ↗
7. Advances and Researches on Non Destructive Testing: A Review10.1016/j.matpr.2017.11.620 ↗
8. Scanning of the Internal Structure Part with Laser Ultrasonic in Aviation Industry10.1002/sca.20260 ↗
9. A Framework for Computing Directivities for Ultrasonic Sources in Generally Anisotropic, Multi-Layered Media10.1016/j.wavemoti.2024.103299 ↗
10. Valvano, G., Agostino, A., De Magistris, G., Graziano, A., and Veneri, G. (2024, January 3–8). Controllable Image Synthesis of Industrial Data Using Stable Diffusion. Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA.10.1109/WACV57701.2024.00527 ↗
11. Capogrosso, L., Girella, F., Taioli, F., Dalla Chiara, M., Aqeel, M., Fummi, F., Setti, F., and Cristani, M. (2024). Diffusion-Based Image Generation for In-Distribution Data Augmentation in Surface Defect Detection. arXiv.10.5220/0012350400003660 ↗
12. Girella, F., Liu, Z., Fummi, F., Setti, F., Cristani, M., and Capogrosso, L. (2024, January 4–6). Leveraging Latent Diffusion Models for Training-Free In-Distribution Data Augmentation for Surface Defect Detection. Proceedings of the 2024 International Conference on Content-Based Multimedia Indexing (CBMI), Reims, France.10.1109/CBMI62980.2024.10858875 ↗
13. Augmented Ultrasonic Data for Machine Learning10.1007/s10921-020-00739-5 ↗
14. Generative Adversarial Network with Object Detector Discriminator for Enhanced Defect Detection on Ultrasonic B-Scans10.1016/j.neucom.2021.06.094 ↗
15. Generative Adversarial Nets
16. DiffUT: Diffusion-Based Augmentation for Limited Ultrasonic Testing Defects in High-Speed Rail10.1016/j.ndteint.2025.103388 ↗
17. Automated Weld Defect Detection in Industrial Ultrasonic B-Scan Images Using Deep Learning10.3390/ndt2020007 ↗
18. Naddaf-Sh, A.M., Baburao, V.S., and Zargarzadeh, H. (2025). Leveraging Segment Anything Model (SAM) for Weld Defect Detection in Industrial Ultrasonic B-Scan Images. Sensors, 25.10.3390/s25010277 ↗
19. Krautkrämer, J., and Krautkrämer, H. (2013). Ultrasonic Testing of Materials, Springer Science and Business Media.
20. Alias-Free Generative Adversarial Networks
21. Denoising Diffusion Probabilistic Models
22. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and Ommer, B. (2022, January 18–24). High-Resolution Image Synthesis with Latent Diffusion Models. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.01042 ↗
23. Ruiz, N., Li, Y., Jampani, V., Pritch, Y., Rubinstein, M., and Aberman, K. (2023, January 17–24). DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada.10.1109/CVPR52729.2023.02155 ↗
24. Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., and Chen, W. (2022, January 25–29). LoRA: Low-Rank Adaptation of Large Language Models. Proceedings of the ICLR 2022, Online.
25. Esser, P., Rombach, R., and Ommer, B. (2021, January 20–25). Taming Transformers for High-Resolution Image Synthesis. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.01268 ↗
26. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep Residual Learning for Image Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
27. Attention Is All You Need
28. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2020). An Image Is Worth 16×16 Words: Transformers for Image Recognition at Scale. arXiv.
29. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021, January 11–17). Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada.10.1109/ICCV48922.2021.00986 ↗
30. Mehta, S., and Rastegari, M. (2021). MobileViT: Light-Weight, General-Purpose, and Mobile-Friendly Vision Transformer. arXiv.
31. Hinton, G., Vinyals, O., and Dean, J. (2015). Distilling the Knowledge in a Neural Network. arXiv.
32. Paszke, A. (2019). PyTorch: An Imperative Style, High-Performance Deep Learning Library. arXiv.
33. Language Models Are Few-Shot Learners
34. Habib, G., Kaleem, S.M., Rouf, T., and Lall, B. (2024). A Comprehensive Review of Knowledge Distillation in Computer Vision. arXiv.
35. Naddaf Shargh, A. (2025). Deep Learning Methods for Defect Analysis in Industrial Ultrasonic Images. [Ph.D. Thesis, Lamar University]. Available online: https://www.proquest.com/openview/2f717dbb11a339f3c9747c35937880cc/1?pq-origsite=gscholar&cbl=18750&diss=y.