Submitted:
17 October 2024
Posted:
18 October 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Proposed Approaches
2.1. Principle of Defect Detection Algorithm Based on Improved Faster R-CNN
2.2.RPN Candidate Region Decision-Making

3. Experiments and Discussions
3.1. Dataset
3.2. Experimental Results and Discussions
3.2.1 Pruning Optimization Experiment Results
3.2.2. Comparison between the Proposed Model and Typical Model
| Model | mAP | Time/s |
|---|---|---|
| SSD | 79.13% | 0.727 |
| CNN-Lenet5 | 84.69% | 0.837 |
| The proposed model | 92.50% | 0.969 |

4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Zhou, K.; Yao, P. Overview of recent advances of process analysis and quality control in resistance spot welding. Mech. Syst. Signal Process. 2019, 124, 170–198. [Google Scholar] [CrossRef]
- Wang, J.; Zhang, Z.; Bai, Z.; Zhang, S.; Qin, R.; Huang, J.; Wen, G. On-line defect recognition of MIG lap welding for stainless steel sheet based on weld image and CMT voltage: Feature fusion and attention weights visualization. J. Manuf. Process. 2023, 108, 430–444. [Google Scholar] [CrossRef]
- Hong, Y.; He, X.; Xu, J.; Yuan, R.; Lin, K.; Chang, B.; Du, D. AF-FTTSnet: An end-to-end two-stream convolutional neural network for online quality monitoring of robotic welding. J. Manuf. Syst. 2024, 74, 422–434. [Google Scholar] [CrossRef]
- Dai, W.; Li, D.; Tang, D.; Jiang, Q.; Wang, D.; Wang, H.; Peng, Y. Deep learning assisted vision inspection of resistance spot welds. J. Manuf. Process. 2020, 62, 262–274. [Google Scholar] [CrossRef]
- ‘A Review of Ultrasonic Testing Applications in Spot Welding: Defect Evaluation in Experimental and Simulation Results | Transactions of the Indian Institute of Metals’. Accessed: Oct. 17, 2024. [Online]. Available: https://link.springer.com/article/10.1007/s12666-022-02738-8.
- Ultrasonic Non-Destructive Testing and Evaluation of Stainless-Steel Resistance Spot Welding Based on Spiral C-Scan Technique’. Accessed: Oct. 17, 2024. [Online]. Available: https://www.mdpi.com/1424-8220/24/15/4771.
- Amiri, N.; Farrahi, G.; Kashyzadeh, K.R.; Chizari, M. Applications of ultrasonic testing and machine learning methods to predict the static & fatigue behavior of spot-welded joints. J. Manuf. Process. 2020, 52, 26–34. [Google Scholar] [CrossRef]
- Nondestructive Testing of Welds | SpringerLink’. Accessed: Oct. 17, 2024. [Online]. Available: https://link.springer.com/referenceworkentry/10.1007/978-3-030-73206-6_2.
- ‘Investigating delayed cracking behaviour in laser welds of high strength steel sheets using an X-ray transmission in-situ observation system: Science and Technology of Welding and Joining: Vol 25, No 5’. Accessed: Oct. 17, 2024. [Online]. Available: https://www.tandfonline.com/doi/abs/10.1080/13621718.2020.1714873.
- ‘Evaluation of the reliability of resistance spot welding control via on-line monitoring of dynamic resistance | Journal of Intelligent Manufacturing’. Accessed: Oct. 17, 2024. [Online]. Available: https://link.springer.com/article/10.1007/s10845-022-01987-0.
- A new measurement method for the dynamic resistance signal during the resistance spot welding process - IOPscience’. Accessed: Oct. 17, 2024. [Online]. Available: https://iopscience.iop.org/article/10.1088/0957-0233/27/9/095009/meta.
- Dahmene, F.; Yaacoubi, S.; El Mountassir, M.; Bouzenad, A.E.; Rabaey, P.; Masmoudi, M.; Nennig, P.; Dupuy, T.; Benlatreche, Y.; Taram, A. On the nondestructive testing and monitoring of cracks in resistance spot welds: recent gained experience. Weld. World 2022, 66, 629–641. [Google Scholar] [CrossRef]
- Safari, M.; Mostaan, H.; Kh, H.Y.; Asgari, D. Effects of process parameters on tensile-shear strength and failure mode of resistance spot welds of AISI 201 stainless steel. Int. J. Adv. Manuf. Technol. 2016, 89, 1853–1863. [Google Scholar] [CrossRef]
- D. J. Radakovic and M. Tumuluru, ‘Predicting Resistance Spot Weld Failure Modes in Shear Tension Tests of Advanced High-Strength Automotive Steels’.
- Tsukada, K.; Miyake, K.; Harada, D.; Sakai, K.; Kiwa, T. Magnetic Nondestructive Test for Resistance Spot Welds Using Magnetic Flux Penetration and Eddy Current Methods. J. Nondestruct. Evaluation 2013, 32, 286–293. [Google Scholar] [CrossRef]
- Ye, S.; Guo, Z.; Zheng, P.; Wang, L.; Lin, C. A Vision Inspection System for the Defects of Resistance Spot Welding Based on Neural Network. In Computer Vision Systems. ICVS 2017. Lecture Notes in Computer Science; Springer: Cham, Swizerland, 2017; Volume 10528, pp. 161–168. [Google Scholar] [CrossRef]
- Yang, Y.; Zheng, P.; He, H.; Zheng, T.; Wang, L.; He, S. An Evaluation Method of Acceptable and Failed Spot Welding Products Based on Image Classification with Transfer Learning Technique. In Proceedings of the 2nd International Conference on Computer Science and Application Engineering (CSAE2018), Hohhot, China, 22–24 October 2018; p. 109. [Google Scholar] [CrossRef]
- M. Jaderberg, K. Simonyan, A. Zisserman, and koray kavukcuoglu, ‘Spatial Transformer Networks’, in Advances in Neural Information Processing Systems, Curran Associates, Inc., 2015. Accessed: Oct. 17, 2024. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2015/hash/33ceb07bf4eeb3da587e268d663aba1a-Abstract.html.
- J. Redmon, S. Divvala, R. Girshick, and A. Farhadi, ‘You Only Look Once: Unified, Real-Time Object Detection’. arXiv, May 09, 2016. [CrossRef]
- ‘[1512.02325] SSD: Single Shot MultiBox Detector’. Accessed: Oct. 17, 2024. [Online]. Available: https://arxiv.org/abs/1512.02325.
- Lin, T.Y.; Goyal, P.; Girshick, R.; He, K.; Dollar, P. Focal loss for dense object detection. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 42, 318–327. [Google Scholar] [CrossRef]
- Girshick, R.; Donahue, J.; Darrell, T.; Malik, J. Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA, 23–28 June 2014; pp. 580–587. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Spatial pyramid pooling in deep convolutional networks for visual recognition. In European Conference on Computer Vision; Springer: Cham, Switzerland, 2014; Volume 8691, pp. 346–361. [Google Scholar]
- Girshick, R. Fast R-CNN. In Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV), Santiago, Chile, 7–13 December 2015; pp. 1440–1448. [Google Scholar] [CrossRef]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [PubMed]
- Lin, T.Y.; Dollár, P.; Girshick, R.; He, K.; Hariharan, B.; Belongie, S. Feature pyramid networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017. [Google Scholar] [CrossRef]
- PDF) Research on a Surface Defect Detection Algorithm Based on MobileNet-SSD’, ResearchGate. Accessed: Oct. 17, 2024. [Online]. Available: https://www.researchgate.net/publication/327705107_Research_on_a_Surface_Defect_Detection_Algorithm_Based_on_MobileNet-SSD.
- Wang, H.; Li, M.; Wan, Z. Rail surface defect detection based on improved Mask R-CNN. Comput. Electr. Eng. 2022, 102. [Google Scholar] [CrossRef]
- Luo, W.; Luo, J.; Yang, Z. FPC surface defect detection based on improved Faster R-CNN with decoupled RPN. 2020 Chinese Automation Congress (CAC). LOCATION OF CONFERENCE, ChinaDATE OF CONFERENCE; pp. 7035–7039.
- K. Simonyan and A. Zisserman, ‘Very Deep Convolutional Networks for Large-Scale Image Recognition’. arXiv, Apr. 10, 2015. [CrossRef]
- Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. ArXiv 2014. [Google Scholar] [CrossRef]
- Lecun, Y.; Bottou, L.; Bengio, Y.; Haffner, P. Gradient-based learning applied to document recognition. Proc. IEEE 1998, 86, 2278–2324. [Google Scholar] [CrossRef]
- S. Hassanein, S. Mohammad, M. Sameer, and M. E. Ragab, ‘A Survey on Hough Transform, Theory, Techniques and Applications’. arXiv, Feb. 07, 2015. [CrossRef]





| Type | Algorithm |
|---|---|
| One stage | Transformer [18], YOLO [19], SSD [20], RetinaNet [21] |
| Two stage | R-CNN [22], SPPNet [23], Fast R-CNN [24], Faster R-CNN [25], FPN [26] |
| Name | CL | PL | AL | Parameter | mAP | fps |
|---|---|---|---|---|---|---|
| VGG-16 | 13 | 5 | ReLU | 14.7M | 73.2% | 5 |
| ZF | 5 | 2 | ReLU | 3.17M | 62.1% | 17 |
| Number | Experiment | Parameter | Ts/frame | Ps/frame | mAP |
|---|---|---|---|---|---|
| 1 | Faster R-CNN | 57.8M | 0.043 | 0.031 | 89.8% |
| 2 | 1/2 Network-wide pruning | 14.6M | 0.021 | 0.008 | 88.7% |
| 3 | 1/4 Network-wide pruning | 3.7M | 0.008 | 0.004 | 86.5% |
| 4 | 1/8 Network-wide pruning | 0.9M | 0.005 | 0.002 | 85.1% |
| 5 | Delete the 4th Conv Layer | 56.5M | 0.041 | 0.030 | 90.7% |
| 6 | 1/2 connected layer pruning | 26.3M | 0.026 | 0.020 | 91.2% |
| 7 |
Delete the 4th ConvLayer and 1/2 connected layer pruning |
25.5M | 0.025 | 0.018 | 92.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. |
© 2024 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 (https://creativecommons.org/licenses/by/4.0/).