High-Precision Detection Algorithm for Metal Workpiece Defects Based on Deep Learning

Xiujin Xu,Gengming Zhang,Wenhe Zheng,Anbang Zhao,Yi Zhong,Hongjun Wang
DOI: https://doi.org/10.3390/machines11080834
IF: 2.899
2023-08-17
Machines
Abstract:Computer vision technology is increasingly being widely applied in automated industrial production. However, the accuracy of workpiece detection is the bottleneck in the field of computer vision detection technology. Herein, a new object detection and classification deep learning algorithm called CSW-Yolov7 is proposed based on the improvement of the Yolov7 deep learning network. Firstly, the CotNet Transformer structure was combined to guide the learning of dynamic attention matrices and enhance visual representation capabilities. Afterwards, the parameter-free attention mechanism SimAM was introduced, effectively enhancing the detection accuracy without increasing computational complexity. Finally, using WIoUv3 as the loss function effectively mitigated many negative influences during training, thereby improving the model's accuracy faster. The experimental results manifested that the mAP@0.5 of CSW-Yolov7 reached 93.3%, outperforming other models. Further, this study also designed a polyhedral metal workpiece detection system. A large number of experiments were conducted in this system to verify the effectiveness and robustness of the proposed algorithm.
engineering, mechanical, electrical & electronic
What problem does this paper attempt to address?