%0 Journal Article
%T 基于改进YOLOv8模型的PCB电路板缺陷检测方法研究
Research on PCB Circuit Board Defect Detection Method Based on Improved YOLOv8 Model
%A 朱凯
%A 李凌霄
%A 何宇楠
%J Computer Science and Application
%P 501-516
%@ 2161-881X
%D 2024
%I Hans Publishing
%R 10.12677/CSA.2024.142050
%X 针对现有PCB电路板缺陷检测方法普遍存在的准确率低、处理速度慢、适应性差等问题,本文设计提出了一种基于YOLOv8的改进电路板缺陷检测模型YOLOv8-PCB。该模型通过引入注意力机制,并结合数据增强和多尺度训练策略,能够有效提升缺陷检测准确率和处理速度。与此同时,考虑到PCB电路板的背景信息比较单一,通用目标检测模型性能受限的问题,本文进一步设计采用了一种LSKNet注意力机制,通过在特征提取时自适应动态调整目标感受视野,从而提升模型对小缺陷的目标检测能力。通过各项试验结果表明,本文提出的算法模型在测试数据集下的平均准确率、召回率分别为95.0%和93.3%,分别优于原始YOLOv8算法91.8%和90.9%。且模型参数量更小,在提升检测性能的同时能够兼顾算法计算效率,因此可以快速地、准确地实现PCB电路板的缺陷检测,为智慧工厂、智能装备等领域提供技术支持。
Aiming at the problems of low accuracy, slow processing speed and poor adaptability of existing PCB circuit board defect detection methods, this paper designed and proposed an improved circuit board defect detection model, YOLOV8-PCB, based on YOLOv8. By introducing an attention mechanism, combining data enhancement and a multi-scale training strategy, the model can effectively improve the accuracy and processing speed of defect detection. At the same time, considering that the background information of the PCB is relatively simple and the performance of the general tar-get detection model is limited, this paper further designed and adopted a LSKNet attention mecha-nism to improve the model’s target detection ability for small defects by dynamically adjusting the target perception field during feature extraction. The experimental results show that the average accuracy and recall rate of the proposed algorithm model under the test data set are 95.0% and 93.3%, respectively, which are better than 91.8% and 90.9% of the original YOLOv8 algorithm. Moreover, the number of model parameters is smaller, and the algorithm calculation efficiency can be taken into account while improving the detection performance, so the defect detection of PCB circuit boards can be quickly and accurately realized, providing technical support for smart facto-ries, intelligent equipment and other fields.
%K PCB,YOLOv8s,LSKNet,注意力机制,目标检测,机器学习
PCB
%K YOLOv8s
%K LSKNet
%K Attention Mechanism
%K Object Detection
%K Machine Learning
%U http://www.hanspub.org/journal/PaperInformation.aspx?PaperID=82253