Spot-Weld Defect Detection with YOLOv8n Integrating Multi-Receptive-Field Attention and Structural Re-Parameterization
Abstract
1. Introduction
2. Improved YOLOv8n Network
2.1. Overall Architecture of YOLOv8-RFA-iEMA-RH
2.2. RFACM
2.3. iEMA Module
2.4. RepHead Module
3. Experimental Results and Analysis
3.1. Experimental Dataset
3.2. Experimental Settings
3.3. Evaluation Metrics
3.4. Ablation Experiments
- Ablation experiments
- Comparative experiments
- Class-wise recognition analysis
- Cross-dataset validation
4. Conclusions and Outlook
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Feng, Y.; Wang, Y.; Liu, F. Four-diagnosis and four-dimensional analysis method for open weld problems in automotive body spot welding. Automob. Maint. 2025, 5–10. [Google Scholar]
- Yang, C.; Wang, Y.; Hu, Y.; Wang, W. Vehicle minor damage detection algorithm based on deep learning. Comput. Eng. Des. 2025, 46, 2986–2993. [Google Scholar]
- Jocher, G.; Chaurasia, A.; Qiu, J.; Jaiswal, A.; Mehta, A.; Karthik, R.; Mankowski, D.; Qiao, S.; Ultralytics Team. Ultralytics YOLOv8. 2023. Available online: https://github.com/ultralytics/ultralytics (accessed on 7 September 2026).
- 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; IEEE: Honolulu, HI, USA, 2017; pp. 2117–2125. [Google Scholar]
- Liu, S.; Qi, L.; Qin, H.; Shi, J.; Jia, J. Path Aggregation Network for Instance Segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Salt Lake City, UT, USA, 2018; pp. 8759–8768. [Google Scholar]
- Hu, J.; Shen, L.; Sun, G. Squeeze-and-Excitation Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Salt Lake City, UT, USA, 2018; pp. 7132–7141. [Google Scholar]
- Woo, S.; Park, J.; Lee, J.Y.; Kweon, I.S. CBAM: Convolutional Block Attention Module. In Proceedings of the European Conference on Computer Vision; Springer: Munich, Germany, 2018; pp. 3–19. [Google Scholar]
- Hou, Q.; Zhou, D.; Feng, J. Coordinate Attention for Efficient Mobile Network Design. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Nashville, TN, USA, 2021; pp. 13713–13722. [Google Scholar]
- Lu, M.; Sheng, W.; Zou, Y.; Chen, Z. WSS-YOLO: An Improved Industrial Defect Detection Network for Steel Surface Defects. Measurement 2024, 245, 115060. [Google Scholar] [CrossRef] [Scilit]
- Zhang, T.; Pan, P.; Zhang, J.; Zhang, X. Steel Surface Defect Detection Algorithm Based on Improved YOLOv8n. Appl. Sci. 2024, 14, 5325. [Google Scholar] [CrossRef] [Scilit]
- Luo, Y.; Ling, J.; Wang, J.; Zhang, H.; Chen, F.; Xiao, X.; Lu, N. SFW-YOLO: A Lightweight Multi-Scale Dynamic Attention Network for Weld Defect Detection in Steel Bridge Inspection. Measurement 2025, 257, 117608. [Google Scholar] [CrossRef] [Scilit]
- Zhang, X.; Liu, C.; Yang, D.; Song, T.; Ye, Y.; Li, K.; Song, Y. RFAConv: Innovating Spatial Attention and Standard Convolutional Operation. arXiv 2023, arXiv:2304.03198. [Google Scholar] [CrossRef] [Scilit]
- Ouyang, D.; He, S.; Zhang, G.; Luo, M.; Guo, H.; Zhan, J.; Huang, Z. Efficient Multi-Scale Attention Module with Cross-Spatial Learning. arXiv 2023, arXiv:2305.13563. [Google Scholar] [CrossRef] [Scilit]
- Zhang, J.; Li, X.; Li, J.; Liu, L.; Xue, Z.; Zhang, B.; Jiang, Z.; Huang, T.; Wang, Y.; Wang, C. Rethinking Mobile Block for Efficient Attention-based Models. arXiv 2023, arXiv:2301.01146. [Google Scholar] [CrossRef] [Scilit]
- Ioffe, S.; Szegedy, C. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. In Proceedings of the 32nd International Conference on Machine Learning; PMLR: Lille, France, 2015; pp. 448–456. [Google Scholar]
- Huang, G.; Sun, Y.; Liu, Z.; Sedra, D.; Weinberger, K.Q. Deep Networks with Stochastic Depth. In Proceedings of the European Conference on Computer Vision; Springer: Amsterdam, Netherlands, 2016; pp. 646–661. [Google Scholar]
- Ding, X.; Zhang, X.; Ma, N.; Han, J.; Ding, G.; Sun, J. RepVGG: Making VGG-style ConvNets Great Again. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 19–25 June 2021; pp. 13733–13742. [Google Scholar] [CrossRef] [Scilit]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet Classification with Deep Convolutional Neural Networks. Adv. Neural Inf. Process. Syst. 2012, 25, 1097–1105. [Google Scholar]
- Shorten, C.; Khoshgoftaar, T.M. A survey on Image Data Augmentation for Deep Learning. J. Big Data 2019, 6, 60. [Google Scholar] [CrossRef] [Scilit]
- Tharwat, A. Classification assessment methods. Appl. Comput. Inform. 2021, 17, 168–192. [Google Scholar] [CrossRef] [Scilit]
- Song, K.; Yan, Y. A noise robust method based on completed local binary patterns for hot-rolled steel strip surface defects. Appl. Surf. Sci. 2013, 285, 858–864. [Google Scholar] [CrossRef] [Scilit]


















| Model | Precision (%) | Recall (%) | F1 | mAP@0.5 (%) | mAP@0.5:0.95 (%) | Params (M) | GFLOPs (G) |
|---|---|---|---|---|---|---|---|
| YOLOv8n | 89.4 | 90.4 | 89.9 | 95.4 ± 0.12 | 68.8 ± 0.15 | 3.4158 | 8.1 |
| YOLOv8-RFA | 89.4 | 92.0 | 90.7 | 96.3 ± 0.16 | 70.6 ± 0.16 | 3.0332 | 8.6 |
| YOLOv8-iEMA | 90.0 | 91.9 | 90.9 | 96.4 ± 0.20 | 71.1 ± 0.16 | 3.3667 | 8.8 |
| YOLOv8-RH | 89.8 | 90.9 | 90.3 | 95.9 ± 0.10 | 69.9 ± 0.14 | 4.0106 | 8.4 |
| YOLOv8-RFA-iEMA | 90.1 | 91.9 | 91.0 | 96.5 ± 0.14 | 71.3 ± 0.20 | 3.3731 | 9.0 |
| YOLOv8-RFA-RH | 88.8 | 92.0 | 90.4 | 96.3 ± 0.26 | 70.5 ± 0.18 | 4.0409 | 8.7 |
| YOLOv8-iEMA-RH | 89.3 | 92.3 | 90.8 | 96.4 ± 0.18 | 71.4 ± 0.12 | 4.2605 | 9.1 |
| YOLOv8-RFA-iEMA-RH | 89.6 | 92.7 | 91.2 | 97.9 ± 0.18 | 71.9 ± 0.10 | 4.3869 | 9.2 |
| Model | Precision (%) | Recall (%) | FPS | mAP@0.5 (%) | mAP@0.5:0.95 (%) | Params (M) | GFLOPs (G) |
|---|---|---|---|---|---|---|---|
| YOLOv3-tiny | 84.9 | 80.1 | 34.0 | 85.4 | 65.3 | 12.1307 | 18.9 |
| YOLOv5 | 88.3 | 89.5 | 45.8 | 95.2 | 68.1 | 2.5041 | 7.1 |
| YOLOv6 | 89.4 | 92.9 | 19.6 | 96.7 | 73.8 | 16.299 | 43.7 |
| YOLOv8n | 89.4 | 90.4 | 41.6 | 95.3 | 68.8 | 3.4158 | 8.1 |
| YOLOv9t | 88.0 | 91.4 | 47.5 | 94.9 | 69.1 | 2.0066 | 7.9 |
| YOLOv10n | 88.6 | 91.3 | 42.3 | 96.3 | 71.4 | 2.7094 | 8.4 |
| YOLOv11 | 90.4 | 91.3 | 47.2 | 96.5 | 70.9 | 2.5833 | 6.3 |
| RT-DETR | 89.3 | 91.2 | 45.8 | 96.3 | 71.1 | 2.5246 | 6.9 |
| YOLOv8-RFA-iEMA-RH | 89.6 | 92.7 | 38.9 | 97.9 | 71.9 | 4.3869 | 9.2 |
| Model | Precision (%) | Recall (%) | F1 | mAP@0.5 (%) | mAP@0.5:0.95 (%) | Params (M) | GFLOPs (G) |
|---|---|---|---|---|---|---|---|
| YOLOv8n | 64.6 | 68.3 | 66.4 | 71.1 | 43.3 | 3.068 | 8.1 |
| YOLOv8-RFA-iEMA-RH | 79.5 | 69.8 | 74.3 | 78.8 | 48.7 | 4.387 | 9.2 |
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
Zhou, Y.; Zhuang, S.; Sheng, A.; Ge, Y.; Zhu, J.; Wang, Z.; Lei, Y.; Cao, X. Spot-Weld Defect Detection with YOLOv8n Integrating Multi-Receptive-Field Attention and Structural Re-Parameterization. AI 2026, 7, 379. https://doi.org/10.3390/ai7090379
Zhou Y, Zhuang S, Sheng A, Ge Y, Zhu J, Wang Z, Lei Y, Cao X. Spot-Weld Defect Detection with YOLOv8n Integrating Multi-Receptive-Field Attention and Structural Re-Parameterization. AI. 2026; 7(9):379. https://doi.org/10.3390/ai7090379
Chicago/Turabian StyleZhou, Yuxuan, Shudong Zhuang, Ao Sheng, Yizheng Ge, Jiarui Zhu, Zhizhou Wang, Yuxian Lei, and Xinyan Cao. 2026. "Spot-Weld Defect Detection with YOLOv8n Integrating Multi-Receptive-Field Attention and Structural Re-Parameterization" AI 7, no. 9: 379. https://doi.org/10.3390/ai7090379
APA StyleZhou, Y., Zhuang, S., Sheng, A., Ge, Y., Zhu, J., Wang, Z., Lei, Y., & Cao, X. (2026). Spot-Weld Defect Detection with YOLOv8n Integrating Multi-Receptive-Field Attention and Structural Re-Parameterization. AI, 7(9), 379. https://doi.org/10.3390/ai7090379
