Classification and Contour Recognition of Welding Defects in Magneto-Optical Images
Abstract
1. Introduction
2. Mask R-CNN Detection of Original Magneto-Optical Images of Welding Defects
2.1. Detection Model of Mask R-CNN
2.2. Mask R-CNN Detection
2.3. Evaluation of Mask R-CNN Model Detection Results
3. Preprocessing of Magneto-Optical Images of Welding Defects
4. Detection of Welding Defects in Preprocessed Magneto-Optical Images Using Mask R-CNN
4.1. Mask R-CNN Detection of Preprocessed Magneto-Optical Images
4.2. Analysis of Mask R-CNN Detection Results for Preprocessed Magneto-Optical Images
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Li, X.J.; Mo, F.; Wang, X.H.; Wang, B.; Liu, K.X. Numerical study on mechanism of explosive welding. Sci. Technol. Weld. Join. 2012, 17, 36–41. [Google Scholar] [CrossRef]
- Yu, X.; Zhang, Y.; Zhou, K. A method for detecting small target weld defects based on feature reorganization network. Meas. Sci. Technol. 2024, 36, 016046. [Google Scholar] [CrossRef]
- Taufiqurrahman, I.; Ahmad, A.; Mustapha, M.; Lenggo Ginta, T.; Ady Farizan Haryoko, L.; Ahmed Shozib, I. The Effect of Welding Current and Electrode Force on the Heat Input, Weld Diameter, and Physical and Mechanical Properties of SS316L/Ti6Al4V Dissimilar Resistance Spot Welding with Aluminum Interlayer. Materials 2021, 14, 1129. [Google Scholar] [CrossRef]
- El-Zathry, N.E.; Akinlabi, S.; Woo, W.L.; Patel, V.; Mahamood, R.M.; Sabry, I. Enhancing friction stir-based techniques with machine learning: A comprehensive review. Mach. Learn. Sci. Technol. 2025, 6, 021001. [Google Scholar] [CrossRef]
- Sabry, I.; Mourad, A.H.I.; ElWakil, M. Multi-response optimization of friction stir welding parameters for AA6063-T6 using hybrid RSM–ANN–GRA–TOPSIS. Mater. Today Commun. 2026, 51, 114524. [Google Scholar] [CrossRef]
- Deepak, J.; Bupesh Raja, V.; Srikanth, D.; Surendran, H.; Nickolas, M. Non-destructive testing (NDT) techniques for low carbon steel welded joints: A review and experimental study. Mater. Today Proc. 2021, 44, 3732–3737. [Google Scholar] [CrossRef]
- Silva, M.I.; Malitckii, E.; Santos, T.G.; Vilaça, P. Review of conventional and advanced non-destructive testing techniques for detection and characterization of small-scale defects. Prog. Mater. Sci. 2023, 138, 101155. [Google Scholar] [CrossRef]
- Yang, Z.; He, Y.; Zhang, Z.; Liu, Y.; Li, X.; Zhang, D. Research on detection and classification of automotive body surface defects based on image processing and machine learning. Meas. Sci. Technol. 2024, 36, 015408. [Google Scholar] [CrossRef]
- Alvarado, J.W.V.; Caballero García, L.F.; Taboada Neira, M.; Flores, J.W.V. Probability of defects detection in welded joints using the magnetic particle method. Arch. Metall. Mater. 2024, 69, 607–612. [Google Scholar] [CrossRef]
- Efriandi, I.F. Analysis of Penetrant Test Results of S355J2 Steel Welding Connections for Qualification Welding. J. Metall. Eng. Process. Technol. 2023, 4, 41–48. [Google Scholar] [CrossRef]
- He, D.; Chen, J.; Chen, Y.; Miao, J.; Deng, J.; Chen, J.; Liu, J. Exploration of the correlation between welding flaw geometrical parameters and floating potential based on an ultrasonic duplex finite element model. Measurement 2021, 167, 108269. [Google Scholar] [CrossRef]
- Ghoni, R.; Dollah, M.; Sulaiman, A.; Ibrahim, F.M. Defect characterization based on eddy current technique: Technical review. Adv. Mech. Eng. 2014, 6, 182496. [Google Scholar] [CrossRef]
- Rodríguez-Martín, M.; Rodríguez-Gonzálvez, P.; González-Aguilera, D.; Fernández-Hernández, J. Feasibility study of a structured light system applied to welding inspection based on articulated coordinate measure machine data. IEEE Sens. J. 2017, 17, 4217–4224. [Google Scholar] [CrossRef]
- Hou, W.; Zhang, D.; Wei, Y.; Guo, J.; Zhang, X. Review on computer aided weld defect detection from radiography images. Appl. Sci. 2020, 10, 1878. [Google Scholar] [CrossRef]
- Yang, Y.; Liang, Z. The Needle Assembly Mixed Anomaly Ray Image Detection Method for Needle Roller Bearings Based on Double Threshold Segmentation. Meas. Sci. Technol. 2025, 36, 035406. [Google Scholar] [CrossRef]
- Mirmahdi, E.; Afshari, D.; Karimi Ivanaki, M. A review of ultrasonic testing applications in spot welding: Defect evaluation in experimental and simulation results. Trans. Indian Inst. Met. 2023, 76, 1381–1392. [Google Scholar] [CrossRef]
- Fitzpatrick, G.L.; Thome, D.K.; Skaugset, R.L.; Shih, E.Y.; Shih, W.C.L. Magneto-Optic/Eddy Current Imaging of Subsurface Corrosion and Fatigue Cracks in Aging Aircraft. In Review of Progress in Quantitative Nondestructive Evaluation: Volume 15A; Thompson, D.O., Chimenti, D.E., Eds.; Springer: Boston, MA, USA, 1996; pp. 1159–1166. [Google Scholar] [CrossRef]
- Fitzpatrick, G.L.; Thome, D.K.; Skaugset, R.L.; Shih, E.Y.; Shih, W.C. Magneto-optic/eddy current imaging of aging aircraft: A new NDI technique. Mater. Eval. 1993, 51, 12. [Google Scholar]
- Xu, C.; Gao, H.; Zhang, Y.; Wang, Z.; Luo, Y.; Wang, J.; Hasan, M.R.; Mondal, T.; Li, Y. Research on Defect Detection by Finite Element Simulation Combined with Magnetic Imaging. Metals 2026, 16, 95. [Google Scholar] [CrossRef]
- Gao, X.; Liu, Y.; You, D. Detection of micro-weld joint by magneto-optical imaging. Opt. Laser Technol. 2014, 62, 141–151. [Google Scholar] [CrossRef]
- Gao, X.; Chen, Y.; You, D.; Xiao, Z.; Chen, X. Detection of micro gap weld joint by using magneto-optical imaging and Kalman filtering compensated with RBF neural network. Mech. Syst. Signal Process. 2017, 84, 570–583. [Google Scholar] [CrossRef]
- Gao, X.; Lan, C.; You, D.; Li, G.; Zhang, N. Weldment nondestructive testing using magneto-optical imaging induced by alternating magnetic field. J. Nondestruct. Eval. 2017, 36, 55. [Google Scholar] [CrossRef]
- He, X.; Wang, T.; Wu, K.; Liu, H. Automatic defects detection and classification of low carbon steel WAAM products using improved remanence/magneto-optical imaging and cost-sensitive convolutional neural network. Measurement 2021, 173, 108633. [Google Scholar] [CrossRef]
- Li, Y.; Gao, X.; Gao, Q.; Liu, J.; Zhang, Y.; Zhu, Y.; Wu, W.; Xu, W. Magneto-optical imaging detection and classification of weld defects under alternating/rotating magnetic field excitation. Opt. Lasers Eng. 2025, 184, 108679. [Google Scholar] [CrossRef]
- He, G.; Gao, X.; Yang, H. AETMC-FCVT: An end-to-end welding defect detection and classification method based on magneto-optical infrared bi-imaging system. Mech. Syst. Signal Process. 2025, 224, 112058. [Google Scholar] [CrossRef]
- He, K.; Gkioxari, G.; Dollár, P.; Girshick, R. Mask R-CNN. arXiv 2017, arXiv:1703.06870. [Google Scholar] [CrossRef]
- Qin, X.; Xu, B.; Wang, C.; Liu, L.; Xie, L.; Liu, R.; Hu, M.; Chen, X. Enhanced mask R-CNN for luminaire detection through brightness balancing and distribution-guided optimization in tunnels. Int. J. Digit. Earth 2025, 18, 2482102. [Google Scholar] [CrossRef]
- Wu, C.; He, X.; Wu, Y. An object detection method for catenary component images based on improved Faster R-CNN. Meas. Sci. Technol. 2024, 35, 085406. [Google Scholar] [CrossRef]
- Ma, N.; Gao, X.; Tian, M.; Wang, C.; Zhang, Y.; Gao, P.P. Magneto-Optical Imaging of Arbitrarily Distributed Defects in Welds under Combined Magnetic Field. Metals 2022, 12, 55. [Google Scholar] [CrossRef]











| IoU | mD | LF | WR | Crack | Pit | Total | |
|---|---|---|---|---|---|---|---|
| RB | 0.50:0.95 | 1 | 0.483 | 0.258 | 0.294 | 0.096 | 0.345 |
| 0.50:0.95 | 10 | 0.505 | 0.474 | 0.299 | 0.128 | 0.394 | |
| 0.50:0.95 | 100 | 0.505 | 0.474 | 0.299 | 0.128 | 0.394 | |
| CS | 0.50:0.95 | 1 | 0.502 | 0.214 | 0.13 | 0.058 | 0.321 |
| 0.50:0.95 | 10 | 0.522 | 0.384 | 0.132 | 0.095 | 0.362 | |
| 0.50:0.95 | 100 | 0.522 | 0.384 | 0.132 | 0.095 | 0.362 |
| AP | LF | WR | Crack | Pit | Total | |
|---|---|---|---|---|---|---|
| RB | 0.441 | 0.336 | 0.1808 | 0.0738 | 0.2762 | |
| 0.756 | 0.7064 | 0.5126 | 0.1504 | 0.5203 | ||
| 0.495 | 0.3211 | 0.0814 | 0.0628 | 0.2797 | ||
| CS | 0.491 | 0.2857 | 0.066 | 0.0454 | 0.2688 | |
| 0.7439 | 0.6764 | 0.218 | 0.1383 | 0.5192 | ||
| 0.5866 | 0.2483 | 0.013 | 0.0206 | 0.2497 |
| - | IoU | mD | LF | WR | Crack | Pit | Total |
|---|---|---|---|---|---|---|---|
| RB | 0.50:0.95 | 1 | 0.720 | 0.434 | 0.733 | 0.447 | 0.589 |
| 0.50:0.95 | 10 | 0.720 | 0.691 | 0.733 | 0.551 | 0.689 | |
| 0.50:0.95 | 100 | 0.720 | 0.691 | 0.733 | 0.551 | 0.689 | |
| CS | 0.50:0.95 | 1 | 0.637 | 0.391 | 0.563 | 0.429 | 0.529 |
| 0.50:0.95 | 10 | 0.637 | 0.627 | 0.563 | 0.526 | 0.624 | |
| 0.50:0.95 | 100 | 0.637 | 0.627 | 0.563 | 0.526 | 0.624 |
| AP | LF | WR | Crack | Pit | Total | |
|---|---|---|---|---|---|---|
| RB | 0.6886 | 0.5982 | 0.6605 | 0.4776 | 0.6077 | |
| 0.8240 | 0.9162 | 0.9592 | 0.7932 | 0.8710 | ||
| 0.7907 | 0.6437 | 0.7421 | 0.4670 | 0.6723 | ||
| CS | 0.6160 | 0.5426 | 0.4737 | 0.4541 | 0.5470 | |
| 0.8245 | 0.9042 | 0.9345 | 0.7808 | 0.8592 | ||
| 0.7843 | 0.5950 | 0.4569 | 0.4506 | 0.6277 |
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
Ma, N.; Zhang, G.; Liang, H.; Gu, S.; Wang, C.; Zhang, Y.; Gao, X. Classification and Contour Recognition of Welding Defects in Magneto-Optical Images. Metals 2026, 16, 267. https://doi.org/10.3390/met16030267
Ma N, Zhang G, Liang H, Gu S, Wang C, Zhang Y, Gao X. Classification and Contour Recognition of Welding Defects in Magneto-Optical Images. Metals. 2026; 16(3):267. https://doi.org/10.3390/met16030267
Chicago/Turabian StyleMa, Nvjie, Guoying Zhang, Huazhuo Liang, Shichao Gu, Congyi Wang, Yanxi Zhang, and Xiangdong Gao. 2026. "Classification and Contour Recognition of Welding Defects in Magneto-Optical Images" Metals 16, no. 3: 267. https://doi.org/10.3390/met16030267
APA StyleMa, N., Zhang, G., Liang, H., Gu, S., Wang, C., Zhang, Y., & Gao, X. (2026). Classification and Contour Recognition of Welding Defects in Magneto-Optical Images. Metals, 16(3), 267. https://doi.org/10.3390/met16030267

