Modern Manufacturing Engineering ›› 2024, Vol. 524 ›› Issue (5): 113-120.doi: 10.16731/j.cnki.1671-3133.2024.05.015

Previous Articles     Next Articles

Copper threaded part surface defect detection algorithm based on MFA-UNet

MA Tao, LI Jingzhao   

  1. School of Computer Science and Engineering,Anhui University of Science and Technology, Huainan 232001,China
  • Received:2023-07-12 Online:2024-05-18 Published:2024-05-30

Abstract: In industrial settings, detecting surface defects on copper threaded parts often faces challenges of low efficiency and poor accuracy. To address this, it proposes a copper threaded part surface defect detection algorithm based on MFA-UNet (Multi-Scale Features and Attention Fused UNet). Firstly, a dual down sampling module is designed, utilizing both ordinary convolution and dilated convolution to enhance the model′s feature extraction capabilities. Secondly, a compound spatial attention module is integrated into the skip-connection part to improve the model′s ability to extract spatial and edge information. Subsequently, a squeeze and excitation module is incorporated during the upsampling process to enhance the model′s expressive power and feature selection ability. Lastly, it proposes a similarity comparison algorithm that measures the similarity between segmented images and mask images to obtain the defect detection results. Experimental results demonstrate that the proposed segmentation model achieves a PA of 94.81 % and an MIoU of 93.78 % on the copper threaded part defect detection dataset. The defect detection accuracy of the proposed algorithm reaches 98.9 %, meeting the requirements for industrial field applications.

Key words: part defect detection, image segmentation, attention mechanism, similarity comparison

CLC Number: 

Copyright © Modern Manufacturing Engineering, All Rights Reserved.
Tel: 010-67126028 E-mail: 2645173083@qq.com
Powered by Beijing Magtech Co. Ltd