Welcome to Journal of Graphics share: 

Journal of Graphics ›› 2024, Vol. 45 ›› Issue (1): 47-55.DOI: 10.11996/JG.j.2095-302X.2024010047

• Image Processing and Computer Vision • Previous Articles     Next Articles

PCB defect detection method based on fusion of MBAM and YOLOv5

HU Xin1(), HU Shuai1, MA Lijun2, SI Liyun1(), XIAO Jian3, YUAN Ye4   

  1. 1. School of Energy and Electrical Engineering, Chang’an University, Xi’an Shaanxi 710064, China
    2. State Grid Gansu Electric Power Company TianShui Power Supply Company, Tianshui Gansu 741000, China
    3. School of Electronics and Control Engineering, Chang’an University, Xi’an Shaanxi 710064, China
    4. Faculty of Electronic and Information Engineering, Xi’an Jiaotong University, Xi’an Shaanxi 710049, China
  • Received:2023-08-26 Accepted:2023-11-03 Online:2024-02-29 Published:2024-02-29
  • About author:

    HU Xin (1975-), associate professor, Ph.D. Her main research interests cover energy management, computer vision and machine learning, etc. E-mail:huxin@chd.deu.cn

  • Supported by:
    Shaanxi Province Qin Chuangyuan “Scientist+Engineer” Team Construction Project(2024QGY-KXJ-161);Key Industrial Chain(23ZDCYJSGG0013-2023);Key R&D Projects of Ningxia Hui Autonomous Region(2022BEG03072)

Abstract:

With the rapid development of the electronic information industry, the printed circuit board (PCB) industry, serving as its foundation, plays a crucial role in determining the quality of electronic products produced subsequently. Addressing the challenges of small defect target in PCBs, numerous defect types, and indistinct features, which often lead to false detection and missed detection in the actual production process, a multi-branch attention multi-branch attention module (MBAM) module method was proposed. This method focused on the feature map in three different dimensions to enhance feature extraction capabilities and allocate more attention to defect areas. By enhancing the YOLOv5 structure and integrating MBAM with YOLOv5 network, the detection performance for small and medium-sized targets in PCBs was effectively improved. Finally, by comparing the MBAM modules at different locations of the network, the best location was selected. The experimental results on the PCB defect dataset demonstrated that the improved PCB defect detection algorithm exhibited superior detection performance compared to other algorithms. The final AP reached 96.7%, a 2 percentage points increase over 94.7% of the standard YOLOv5. Other indicators all showed an upward trend, and the algorithm could accurately identify PCB defect types while maintaining the detection speed.

Key words: target detection, PCB defects, small target defects, YOLOv5, multi-branch attention module

CLC Number: