An Approach for Defect Detection in Friction Stir Welding Based on the Welding Force and Machine Learning
Abstract
1. Introduction
2. Experiment
2.1. FSW Experiment
2.2. Machine Learning
- In the DT model, each non-leaf node is responsible for a specific feature, while each leaf node stores a probability distribution corresponding to the predicted class labels. This hierarchical tree structure renders the underlying decision-making process intrinsically interpretable, as classification proceeds via a transparent sequence of feature-based splits from the root node to the terminal leaves.
- SVM constructs an optimal separating hyperplane by identifying critical training samples known as support vectors. The objective is to maximize the margin, defined as the aggregate of the minimum distances from the training data to the hyperplane, thereby enhancing the model’s generalization capability.
- KNN operates on the principle of locality, classifying unlabeled samples by minimizing the distance to their k-nearest training observations. The class label of a test sample is determined through a majority voting scheme based on the labels of its closest neighbors in the feature space.
- ANN emulates the information-processing mechanisms of biological neural systems and typically comprises three fundamental layers: an input layer, one or more hidden layers, and an output layer. Within the hidden layers, computational nodes receive input signals and iteratively optimize the network parameters—including the weight matrix, activation function, and bias vector—to minimize prediction error during training.
3. Results
3.1. Force Signals
3.2. Force Features for Defect Detection
3.3. Machine Learning for Defect Detection
3.4. Pin-Breaking Experimentation
4. Discussion
5. Conclusions
- (1)
- The characteristics of the welding forces have high correlations with defects in the FSW joints, such as the increase in , decrease in and waveform distortions in , and .
- (2)
- Defect detection based on and has an accuracy of 82.1% for the 724 datasets. In addition, the accuracy of the DT, KNN, SVM and ANN models for defect detection with the force features as input reached 93.5%, 95.7%, 97.5% and 94.9%, respectively. The decision process of the DT model reveals that has the highest importance in defect formation.
- (3)
- and result mainly from the extrusion and shear action between the probe and workpiece due to the traverse and rotation motions of the tool. is mainly caused by the compression action from the shoulder. The top five important features from , and in defect formation contain , , , and .
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Mishra, R.S.; Ma, Z.Y. Friction Stir Welding and Processing. Mater. Sci. Eng. R 2005, 50, 1–78. [Google Scholar] [CrossRef] [Scilit]
- Meng, X.; Huang, Y.; Cao, J.; Shen, J.; dos Santos, J.F. Recent progress on control strategies for inherent issues in friction stir welding. Prog. Mater. Sci. 2021, 115, 100706. [Google Scholar] [CrossRef] [Scilit]
- Chen, G.; Zhang, S.; Zhu, Y.; Yang, C.; Shi, Q. Thermo-mechanical Analysis of Friction Stir Welding: A Review on Recent Advances. Acta Metall. Sin. (Engl. Lett.) 2019, 33, 3–12. [Google Scholar] [CrossRef] [Scilit]
- Aziz, S.B.; Dewan, M.W.; Huggett, D.J.; Wahab, M.A.; Okeil, A.M.; Liao, T.W. A fully coupled thermomechanical model of friction stir welding (FSW) and numerical studies on process parameters of lightweight aluminum alloy joints. Acta Metall. Sin. (Engl. Lett.) 2017, 31, 1–18. [Google Scholar] [CrossRef] [Scilit]
- Li, B.; Shen, Y.; Hu, W. The study on defects in aluminum 2219-T6 thick butt friction stir welds with the application of multiple non-destructive testing methods. Mater. Des. 2011, 32, 2073–2084. [Google Scholar] [CrossRef] [Scilit]
- Kadian, A.K.; Biswas, P. Effect of tool pin profile on the material flow characteristics of AA6061. J. Manuf. Process. 2017, 26, 382–392. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Y.; Han, J.; Domblesky, J.P.; Yang, Z.; Li, Z.; Liu, X. Investigation of void formation in friction stir welding of 7N01 aluminum alloy. J. Manuf. Process. 2019, 37, 139–149. [Google Scholar] [CrossRef] [Scilit]
- Shrivastava, A.; Pfefferkorn, F.E.; Duffie, N.A.; Ferrier, N.J.; Smith, C.B.; Malukhin, K.; Zinn, M. Physics-based process model approach for detecting discontinuity during friction stir welding. Int. J. Adv. Manuf. Technol. 2015, 79, 605–614. [Google Scholar] [CrossRef] [Scilit]
- Eslami, S.; Mourão, L.; Viriato, N.; Tavares, P.J.; Moreira, P.M.G.P. Multi-axis force measurements of polymer friction stir welding. J. Mater. Process. Technol. 2018, 256, 51–56. [Google Scholar] [CrossRef] [Scilit]
- Das, B.; Pal, S.; Bag, S. Design and development of force and torque measurement setup for real time monitoring of friction stir welding process. Measurement 2017, 103, 186–198. [Google Scholar] [CrossRef] [Scilit]
- Das, B.; Pal, S.; Bag, S. Weld defect identification in friction stir welding using power spectral density. In Proceedings of the IOP Conference Series: Materials Science and Engineering, Dubai, United Arab Emirates, 28–29 November 2017; Volume 346, p. 012049. [Google Scholar]
- Guan, W.; Li, D.; Cui, L.; Wang, D.; Wu, S.; Kang, S.; Wang, J.; Mao, L.; Zheng, X. Detection of tunnel defects in friction stir welded aluminum alloy joints based on the in-situ force signal. J. Manuf. Process. 2021, 71, 1–11. [Google Scholar] [CrossRef] [Scilit]
- Shrivastava, A.; Zinn, M.; Duffie, N.A.; Ferrier, N.J.; Smith, C.B.; Pfefferkorn, F.E. Force measurement-based discontinuity detection during friction stir welding. J. Manuf. Process. 2017, 26, 113–121. [Google Scholar] [CrossRef] [Scilit]
- Kumari, S.; Jain, R.; Kumar, U.; Yadav, I.; Ranjan, N.; Kumari, K.; Kesharwani, R.K.; Kumar, S.; Pal, S.; Pal, S.K.; et al. Defect identification in friction stir welding using continuous wavelet transform. J. Intell. Manuf. 2016, 30, 483–494. [Google Scholar] [CrossRef] [Scilit]
- Kumar, U.; Yadav, I.; Kumari, S.; Kumari, K.; Ranjan, N.; Kesharwani, R.K.; Jain, R.; Kumar, S.; Pal, S.; Chakravarty, D.; et al. Defect identification in friction stir welding using discrete wavelet analysis. Adv. Eng. Softw. 2015, 85, 43–50. [Google Scholar] [CrossRef] [Scilit]
- Das, B.; Pal, S.; Bag, S. Weld quality prediction in friction stir welding using wavelet analysis. Int. J. Adv. Manuf. Technol. 2016, 89, 711–725. [Google Scholar] [CrossRef] [Scilit]
- Dehabadi, V.M.; Ghorbanpour, S.; Azimi, G. Application of artificial neural network to predict Vickers microhardness of AA6061 friction stir welded sheets. J. Cent. South Univ. 2016, 23, 2146–2155. [Google Scholar] [CrossRef] [Scilit]
- Senapati, N.P.; Panda, D.K.; Bhoi, R.K. Prediction of multiple characteristics of Friction-Stir welded joints by Levenberg–Marquardt algorithm based artificial neural network. Mater. Today Proc. 2020, 27, 871–876. [Google Scholar]
- Sudhagar, S.; Sakthivel, M.; Ganeshkumar, P. Monitoring of friction stir welding based on vision system coupled with Machine learning algorithm. Measurement 2019, 144, 135–143. [Google Scholar] [CrossRef] [Scilit]
- Dhanraj, J.A.; Lingampalli, B.; Prabhakar, M.; Sivakumar, A.; Krishnamurthy, B.; Ramanathan, K.C. A credal decision tree classifier approach for surface condition monitoring of friction stir weldment through vibration patterns. Mater. Today Proc. 2021, 46, 1127–1133. [Google Scholar] [CrossRef] [Scilit]
- Du, Y.; Mukherjee, T.; DebRoy, T. Conditions for void formation in friction stir welding from machine learning. npj Comput. Mater. 2019, 5, 68. [Google Scholar] [CrossRef] [Scilit]
- Du, Y.; Mukherjee, T.; Mitra, P.; DebRoy, T. Machine learning based hierarchy of causative variables for tool failure in friction stir welding. Acta Mater. 2020, 192, 67–77. [Google Scholar] [CrossRef] [Scilit]
- Liu, F.C.; Nelson, T.W. In-situ material flow pattern around probe during friction stir welding of austenitic stainless steel. Mater. Des. 2016, 110, 354–364. [Google Scholar] [CrossRef] [Scilit]
- Franke, S.R.D.; Zinn, M.; Pfefferkorn, F.E. Understanding process force transients with application towards defect detection during friction stir welding of aluminum alloys. J. Manuf. Process. 2020, 54, 251–261. [Google Scholar] [CrossRef] [Scilit]
- Zaeh, M.F.; Gebhard, P. Dynamical behaviour of machine tools during friction stir welding. Prod. Eng. 2010, 4, 615–624. [Google Scholar] [CrossRef] [Scilit]
- Chen, Y.; Wang, H.; Wang, X.; Ding, H.; Zhao, J.; Zhang, F.; Ren, Z. Influence of tool pin eccentricity on microstructural evolution and mechanical properties of friction stir processed Al-5052 alloy. Mater. Sci. Eng. A 2019, 739, 272–276. [Google Scholar] [CrossRef] [Scilit]
- Mao, Y.; Ke, L.; Liu, F.; Liu, Q.; Huang, C.; Xing, L. Effect of tool pin eccentricity on microstructure and mechanical properties in friction stir welded 7075 aluminum alloy thick plate. Mater. Des. (1980–2015) 2014, 62, 334–343. [Google Scholar] [CrossRef] [Scilit]
- Shah, L.H.; Walbridge, S.; Gerlich, A. Tool eccentricity in friction stir welding: A comprehensive review. Sci. Technol. Weld. Join. 2019, 24, 566–578. [Google Scholar] [CrossRef] [Scilit]
- Su, H.; Wu, C. Numerical simulation for the optimization of polygonal pin profiles in friction stir welding of aluminum. Acta Metall. Sin. (Engl. Lett.) 2021, 34, 1065–1078. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.C.; Wu, C.S. Elimination of tunnel defect in ultrasonic vibration enhanced friction stir welding. Mater. Des. 2016, 90, 350–358. [Google Scholar] [CrossRef] [Scilit]












| Load Rating/kN | Sensitivity/‰ | Repeatability Error/‰ | Hysteresis Error/‰ | |
|---|---|---|---|---|
| 40 | 1.00 | 1.0 | 0.15 | |
| 40 | 1.00 | |||
| 60 | 0.90 |
| Feature | Formula | Abbreviation | |
|---|---|---|---|
| Algorithm | Recommended Reproducibility Configuration |
|---|---|
| Decision Tree | criterion = gini; max_depth = 8; min_samples_split = 10; min_samples_leaf = 4; ccp_alpha = 0.001 |
| Support Vector Machine | kernel = rbf; C = 10.0; gamma = scale; class_weight = balanced; probability = True |
| K-Nearest Neighbors | n_neighbors = 7; weights = distance; algorithm = auto; p = 2; metric = minkowski |
| Artificial Neural Network | hidden_layers = [64, 32]; optimizer = Adam; learning_rate = 0.001; batch_size = 32; dropout = 0.20 |
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
Zeng, M.; Zhu, J.; Zhang, W. An Approach for Defect Detection in Friction Stir Welding Based on the Welding Force and Machine Learning. Crystals 2026, 16, 573. https://doi.org/10.3390/cryst16090573
Zeng M, Zhu J, Zhang W. An Approach for Defect Detection in Friction Stir Welding Based on the Welding Force and Machine Learning. Crystals. 2026; 16(9):573. https://doi.org/10.3390/cryst16090573
Chicago/Turabian StyleZeng, Ming, Jun Zhu, and Wei Zhang. 2026. "An Approach for Defect Detection in Friction Stir Welding Based on the Welding Force and Machine Learning" Crystals 16, no. 9: 573. https://doi.org/10.3390/cryst16090573
APA StyleZeng, M., Zhu, J., & Zhang, W. (2026). An Approach for Defect Detection in Friction Stir Welding Based on the Welding Force and Machine Learning. Crystals, 16(9), 573. https://doi.org/10.3390/cryst16090573
