PPMA-YOLO: A Method for Metal Surface Defect Detection
DOI:
https://doi.org/10.63313/CS.8022Keywords:
Metal Surface Defects, Ppma-Yolo, Object Detection, LightweightAbstract
Metal sheets are vital to core industries like aerospace, automotive, and bridge construction, where their quality directly determines the safety and lifespan of final products. During production, fac-tors like material impurities and equipment wear often cause surface defects such as stains, scratches, and cracks, which can lead to structural failure and corrosion. As manufacturing stand-ards rise, detecting these defects has become essential for maintaining quality and optimizing production processes. To address this, this paper introduces a detection method called PPMA-YOLO. We first replaced the standard YOLOv8 backbone with a lightweight PP-LCNet struc-ture to make the model faster and more efficient, using the H-Swish activation function and adding an SE attention module with large-kernel convolutions to balance precision and speed. In the neck section, we improved the Multi-Contextual Attention (MCALayer) and combined it with multi-scale feature fusion and small residual blocks to create the MAFR module. This module, embedded in the detection head, helps the model capture refined features while avoiding common training issues like gradient explosion. Finally, we updated the SIoU loss function with an adaptive weight and a shape-matching cost, allowing the model to better locate defects of various sizes and shapes. Tests on the NEU-DET dataset show that our method is highly effective; with a model size of only 4.8 MB, it achieved an 83.87% [email protected]. Compared to existing methods, PPMA-YOLO is both more accu-rate and faster, making it an ideal solution for real-time defect detection in industrial settings.
References
[1] 周济. 智能制造 ——“中国制造 2025”的主攻方向[J]. 中国机械工程, 2015, 26(17): 2273-2284.
[2] 刘忠明, 王长路, 张元国, 等. 中国齿轮工业的现状、挑战与 2030 年愿景—《机械工业工程技术路线图》齿轮部分解读[J]. 机械传动, 2011, 35(12): 1-6.
[3] 龙阳,肖小玲.改进YOLOv8的金属表面缺陷检测模型[J].制造技术与机床,2024,(08):187-194. DOI:10.19287/j.mtmt.1005-2402.2024.08.027.
[4] Li H , Li J , Wei H ,et al.Slim-neck by GSConv: a lightweight-design for real-time detector architectures[J].Journal of Real-Time Image Processing, 2024, 21(3). DOI:10.1007/s11554-024-01436-6.
[5] 赵佰亭,张敏,贾晓芬.YOLOv8n-CSG:轻量化钢材表面缺陷检测算法[J].电子测量与仪器学报,2025,39(08):115-125. DOI:10.13382/j.jemi.B2508110.
[6] Guo S, Zhong P, Sun Y, et al. Fast detection algorithm for surface defects of metal parts based on YOLOv4-mobilenet network[C]//International Conference on Intelligent Equipment and Special Robots (ICIESR 2021). SPIE, 2021, 12127: 528-534.
[7] Wu T Y, Tang S, Zhang R, et al. Cgnet: a light-weight context guided network for semantic segmentation[J]. IEEE Transactions on Image Processing,2020,30:1169-1179.
[8] 赵小虎,谢礼逊,慕灯聪,等.基于TCM-YOLO网络的金属表面缺陷检测方法[J].计算机工程,2025,51(06):338-348. DOI:10.19678/j.issn.1000-3428.0069285.
[9] Hou Q, Zhou D, Feng J. Coordinate attention for efficient mobile network design[C]//Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 2021: 13713-13722.
[10] 陶友凤,姜麟,大妹.基于RCD-YOLO的钢材表面缺陷检测算法[J/OL].控制工程,1-9
[11] 任伟建,陈明文,康朝海,等.基于YOLOv3的金属表面缺陷检测研究[J].控制工程,2024,31(07):1219-1228. DOI:10.14107/j.cnki.kzgc.20220773.
[12] 叶卓勋.基于深度学习网络的金属小目标外观缺陷检测.2023.浙江大学,MA thesis. doi:10.27461/d.cnki.gzjdx.2023.001743.
[13] 王少杰,朱皓然.基于轻量化YOLOv8s算法的金属表面缺陷检测研究[J].邵阳学院学报(自然科学版), 2025,22(02):11-18.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 by author(s) and Erytis Publishing Limited.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.







