Machines (Aug 2023)

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
Journal volume & issue
Vol. 11, no. 8
p. 834

Abstract

Read online

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 [email protected] 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.

Keywords