首页|期刊导航|重庆工商大学学报(自然科学版)|改进YOLOV4-tiny的印刷电路板缺陷检测

改进YOLOV4-tiny的印刷电路板缺陷检测OA

Improved YOLOv4-tiny for Detecting Defects on Printed Circuit Boards

中文摘要英文摘要

目的 针对印刷电路板表面缺陷检测中目标小以及检测精度不够等问题,提出一种改进的YOLOv4-tiny模型印刷电路板缺陷检测方法,该算法在确保实时检测效率的同时,显著提升了检测的准确度.方法 在主干特征提取网络第二残差块输出52*52*128特征层后引入预测头YOLO Head-P3,增加FPN(Feature Pyramid Network)层结构,提升了层结构的特征融合能力,解决了原YOLOv4-tiny模型针对小目标检测的网络结构缺陷问题;同时,在FPN结构中引入改进的SPP(Spatial Pyramid Pooling)结构,加强不同尺度特征层的特征融合机制,以提高检测精度;最后,引入ECAnet(Efficient Channel Attention network),通过自适应调节特征权重和注意力机制,进一步增强了网络模型的自适应特征提取能力,同时减少了复杂性和计算需求,以满足对小目标缺陷信息的精准需求.结果 实验结果表明:改进的算法模型检测平均精度(mAP)达到了 97.32%,相较于原算法模型提高了 7.69%,检测速度达到了 113.67 fps.结论 改进后的模型相较于原模型各指标都有所提升,能够完成对小目标缺陷的实时监测,具有很好的性能.

Objective To address the issues of small targets and insufficient detection accuracy in surface defect detection of printed circuit boards(PCBs),an improved YOLOv4-tiny model is proposed for PCB defect detection.This algorithm significantly improves detection accuracy while maintaining real-time efficiency.Methods First,the second residual block of the backbone feature extraction network outputted a 52×52×128 feature map.Based on this feature map,a prediction head named YOLO Head-P3 and a feature pyramid network(FPN)layer were added.These improvements enhanced the multi-scale feature fusion capability of the FPN layer and solved the structural deficiency of the original YOLOv4-tiny model in detecting small targets.Second,an improved spatial pyramid pooling(SPP)structure was integrated into the FPN to strengthen multi-scale feature fusion,thereby improving detection accuracy.Finally,the efficient channel attention network(ECAnet)was introduced.By adaptively adjusting feature weights through an attention mechanism,this network further enhanced the adaptive feature extraction capability of the model,while reducing complexity and computational demands to meet the precise requirements for small-target defect information.Results Experimental results showed that the improved algorithm achieved a mean average precision(mAP)of 97.32%,which was 7.69%higher than that of the original model,with a detection speed of 113.67 frames per second(fps).Conclusion Compared with the original model,all evaluation metrics of the improved model have been enhanced.The improved model enables real-time monitoring of small-target defects and exhibits excellent performance.

钱青霞;姜媛媛

安徽理工大学 电气与信息工程学院,安徽芜湖 241003安徽理工大学 电气与信息工程学院,安徽芜湖 241003||安徽理工大学 环境友好材料与职业健康研究院,安徽芜湖 241003

信息技术与安全科学

YOLOv4-tiny缺陷检测印刷电路板特征融合

YOLOv4-tinydefect detectionprinted circuit boardfeature fusion

《重庆工商大学学报(自然科学版)》 2026 (4)

59-67,9

安徽省重点研究与开发计划项目资助(202104G01020012)安徽理工大学环境友好材料与职业健康研究院研发专项基金(ALW2020YF18).

10.16055/j.issn.1672-058X.2026.0004.008

评论