JOURNAL ARTICLE

Metal surface defect detection based on improved YOLOv5

Abstract

Abstract During the production of metal material, various complex defects may come into being on the surface, together with large amount of background texture information, causing false or missing detection in the process of small defect detection. To resolve those problems, this paper introduces a new model which combines the advantages of CSPlayer module and Global Attention Enhancement Mechanism based on the YOLOv5s model. First of all, we replace C3 module with CSPlayer module to augment the neural network model, so as to improve its flexibility and adaptability. Then, we introduce the Global Attention Mechanism (GAM) and build the generalized additive model. In the meanwhile, the attention weights of all dimensions are weighted and averaged as output to promote the detection speed and accuracy. The results of the experiment in which the GC10-DET augmented dataset is involved, show that the improved algorithm model performs better than YOLOv5s in precision, [email protected] and [email protected]: 0.95 by 5.3%, 1.4% and 1.7% respectively, and it also has a higher reasoning speed.

Keywords:
Computer science Flexibility (engineering) Adaptability Mechanism (biology) Process (computing) Texture (cosmology) Data mining Artificial neural network Artificial intelligence Surface (topology) Pattern recognition (psychology) Algorithm Image (mathematics) Mathematics Statistics

Metrics

34
Cited By
9.71
FWCI (Field Weighted Citation Impact)
26
Refs
0.97
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Industrial Vision Systems and Defect Detection
Physical Sciences →  Engineering →  Industrial and Manufacturing Engineering
Advanced Neural Network Applications
Physical Sciences →  Computer Science →  Computer Vision and Pattern Recognition
Surface Roughness and Optical Measurements
Physical Sciences →  Engineering →  Computational Mechanics
© 2026 ScienceGate Book Chapters — All rights reserved.