首页|基于融合MBAM与YOLOv5的PCB缺陷检测方法

基于融合MBAM与YOLOv5的PCB缺陷检测方法

扫码查看
随着电子信息产业迅速发展,PCB行业作为电子信息产业的基础,其产品质量对后续生产的电子产品有着决定性影响.针对PCB缺陷目标较小,缺陷类型多,特征不明显,在实际生产过程中易产生误检、漏检等问题,提出了一种多分支注意力MBAM模块方法,在 3 个不同维度对特征图进行关注,以增强特征提取的能力,对缺陷区域给予更多的注意力表示.通过改进YOLOv5 结构,将MBAM与YOLOv5 网络结合,有效的提升了对PCB中小目标的检测性能.最后通过在网络不同位置添加MBAM模块进行对比实验,选取了最佳的添加位置.通过在PCB缺陷数据集上的实验结果表明,改进后的PCB缺陷检测算法具有良好的检测性能,优于其他对比算法,最终的AP达到了 96.7%,对比标准YOLOv5 的 94.7%提高了 2 个百分点,其他项指标均有涨点,在保持检测速度基本不变的情况下,精准地识别PCB缺陷类型.
PCB defect detection method based on fusion of MBAM and YOLOv5
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.

target detectionPCB defectssmall target defectsYOLOv5multi-branch attention module

胡欣、胡帅、马丽军、司利云、肖剑、袁晔

展开 >

长安大学能源与电气工程学院,陕西 西安 710064

国网甘肃省电力公司天水电力公司,甘肃 天水 741000

长安大学电子与控制工程学院,陕西 西安 710064

西安交通大学电子与信息学部,陕西 西安 710049

展开 >

目标检测 PCB缺陷 小目标缺陷 YOLOv5 多分支注意力模块

陕西省秦创原"科学家+工程师"队伍建设项目西安市重点产业链项目宁夏回族自治区重点研发计划

2024QGY-KXJ-16123ZDCYJSGG0013-20232022BEG03072

2024

图学学报
中国图学学会

图学学报

CSTPCD北大核心
影响因子:0.73
ISSN:2095-302X
年,卷(期):2024.45(1)
  • 1
  • 25