首页|期刊导航|电子科技|基于动态蛇形卷积的轻量化PCB缺陷检测算法

基于动态蛇形卷积的轻量化PCB缺陷检测算法OA

Lightweight PCB Defect Detection Algorithm Based on Dynamic Snake Convolution

中文摘要英文摘要

针对现有 PCB(Printed Circuit Board)缺陷检测算法存在检测精度不足和参数量较大的问题,文中基于YOLOv8(You Only Look Once version 8)提出了一种高精度轻量化检测算法 YOLO-DLN(YOLO-Dynamic Lightweight Net-work).在主干网络中引入动态蛇形卷积以捕获更多 PCB 表面的细微结构特征,采用轻量化检测头 LSCDHead(Light-weight Shared Convolutional Detection Head)处理提取到的特征.不同尺度的特征共享同一组卷积以降低模型参数量,并进行组归一化操作.利用对目标尺度敏感度较低的 NWD(Normalized Wasserstein Distance)损失函数评估边界框相似度,进一步提高所提方法的检测精度.在实验中,YOLO-DLN 在使用原始模型 88.1%参数量的情况下使 mAP50(mean Aver-age Precision50)和 mAP50:95 分别提升了 4.4%和 4.6%.实验结果表明,YOLO-DLN 在显著减少模型参数量的同时仍能保持较高的检测精度,适用于资源受限环境下的 PCB 缺陷检测.

In view of the problems of insufficient detection accuracy and large number of parameters in the ex-isting PCB(Printed Circuit Board)defect detection algorithms,a high-precision lightweight detection algorithm YO-LO-DLN(YOLO-Dynamic Lightweight Network)is proposed based on YOLOv8(You Only Look Once version 8).Dynamic serpentine convolution is introduced into the backbone network to capture more fine structural features of the PCB surface,and the extracted features are processed by the lightweight detection head LSCDHead(Lightweight Shared Convolutional Detection Head).Features of different scales share the same set of convolution to reduce the number of model parameters and perform group normalization operations.The NWD(Normalized Wasserstein Dis-tance)loss function with low sensitivity to the target scale is utilized to evaluate the bounding box similarity,further improving the detection accuracy of the proposed method.In the experiment,YOLO-DLN increases mAP50(mean Average Precision50)and MAP50:95 by 4.4%and 4.6%respectively while using 88.1%of the parameters of the original model.The experimental results show that YOLO-DLN can maintain a high detection accuracy while signifi-cantly reducing the number of model parameters,and is suitable for PCB defect detection in resource-constrained en-vironments.

辛长明;王博

沈阳工业大学 理学院,辽宁 沈阳 110870沈阳工业大学 理学院,辽宁 沈阳 110870

信息技术与安全科学

深度学习PCB缺陷检测YOLO组归一化动态蛇形卷积轻量化检测头NWD

deep learningPCBdefect detectionYOLOgroup normaldynamic snake convolutionlightweight-ing detection headNWD

《电子科技》 2026 (4)

28-34,7

国家自然科学基金(61803273)辽宁省教育厅青年项目(JYTQN2023284)National Nature Science Foundation of China(61803273)Youth Project of Liaoning Provincial Department of Education(JYTQN2023284)

10.16180/j.cnki.issn1007-7820.2026.04.004

评论