首页 | 本学科首页   官方微博 | 高级检索  
     

基于改进YOLOv5的印刷电路板缺陷检测
引用本文:李大华,徐傲,王笋,李栋,于晓. 基于改进YOLOv5的印刷电路板缺陷检测[J]. 电子测量技术, 2023, 46(23): 112-119
作者姓名:李大华  徐傲  王笋  李栋  于晓
作者单位:天津理工大学电气工程与自动化学院 天津 300380;天津鸿磁速保科技有限公司 天津 300400
基金项目:国家自然科学基金(61502340)、天津市自然科学基金(18JCQNJC01000)、天津理工大学教学基金(YB20-05)、天津市复杂系统控制理论与应用重点实验室开放基金(TJKL-CATCS-201907)项目资助
摘    要:为解决印刷电路板缺陷检测中缺陷类别易混淆,缺陷目标微小难以检测的问题,提出了一种改进的YOLOv5检测模型。在骨干网络引入Swin-Transformer架构,获取局部和全局信息的多尺度特征。增加一个针对小目标的预测特征层,新的多尺度特征融合和检测结构使模型学习更加全面的特征信息。使用ECIoU_Loss作为损失函数,实现电路板缺陷检测速度和准确率协同优化。实验结果表明,改进后的YOLOv5模型在PCB Defect数据集上的平均准确率为98.7%,达到了99.7%的预测精确率和97.4%的召回率,比当前主流的检测模型性能更优越,改进后的YOLOv5模型能更有效的对电路板缺陷进行分类和定位。

关 键 词:印刷电路板  Swin Transformer  YOLOv5  ECIoU  缺陷检测

Printed circuit board defect detection based on improved YOLOv5
Li Dahu,Xu Ao,Wang Sun,Li Dong,Yu Xiao. Printed circuit board defect detection based on improved YOLOv5[J]. Electronic Measurement Technology, 2023, 46(23): 112-119
Authors:Li Dahu  Xu Ao  Wang Sun  Li Dong  Yu Xiao
Abstract:To address the challenges of confusion among defect categories and the difficulty in detecting small defect targets in printed circuit board defect detection, an improved YOLOv5 detection model was proposed. The Swin-Transformer is incorporated into the backbone network to extract multi-scale features, capturing both local and global information. A prediction feature layer is added specifically for small targets, and the new multi-scale feature fusion and detection structure enable the model to learn more comprehensive feature information. The ECIoU_Loss is employed as the loss function, facilitating collaborative optimization between detection speed and accuracy in circuit board defect detection. Experimental results demonstrate that the improved YOLOv5 model achieves a mean average precision of 98.7% on the PCB Defect dataset, with a precision of 99.7% and a recall of 97.4%. These performance metrics outperform current mainstream detection models, showcasing the improved YOLOv5 model''s effectiveness in classifying and localizing circuit board defects.
Keywords:
点击此处可从《电子测量技术》浏览原始摘要信息
点击此处可从《电子测量技术》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号