JOURNAL ARTICLE

Research on PCB Defect Detection Algorithm Based on Improved YOLOv5

Abstract

Printed circuit boards (PCB) are defective in industrial manufacturing. To address the current problem of low accuracy of small target defect detection, a YOLOv5 improvement algorithm for more accurate small target detection is proposed to improve the accuracy. Firstly, the k-means clustering algorithm is used at the input side to cluster the dataset and analyze the anchor frames that match this dataset to improve the localization accuracy of the model. Second, a dual-attention mechanism is added to the backbone network to improve the feature extraction capability of the target. Then, a small target detection layer is added to the network at the output end to improve the efficiency of small target detection. Finally, the loss function at the output side is improved to reduce the loss value of the bounding box and speed up the rate of bounding box regression. The experimental results show that the accuracy rate of the improved YOLOv5 algorithm is improved from 84.2% to 95.2%, which can meet the require.

Keywords:
Minimum bounding box Computer science Bounding overwatch Cluster analysis Function (biology) Feature extraction Backbone network Feature (linguistics) Algorithm Artificial intelligence Pattern recognition (psychology) Image (mathematics)

Metrics

3
Cited By
0.48
FWCI (Field Weighted Citation Impact)
4
Refs
0.69
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Industrial Vision Systems and Defect Detection
Physical Sciences →  Engineering →  Industrial and Manufacturing Engineering
Advanced Neural Network Applications
Physical Sciences →  Computer Science →  Computer Vision and Pattern Recognition

Related Documents

JOURNAL ARTICLE

Research on Improved YOLOv5 Pipeline Defect Detection Algorithm

J. C. ZengYiming ZhengXinping JinLin Jin-hongY. T. Feng

Journal:   Journal of Pipeline Systems Engineering and Practice Year: 2024 Vol: 16 (2)
JOURNAL ARTICLE

Research on strip surface defect detection based on improved YOLOv5 algorithm

Shuaishuai LvChuanzhen TaoZhuangzhuang HaoHongjun NiZhengjie HouXiaoyuan LiGu HaiWeidong ShiLinfei Chen

Journal:   Ironmaking & Steelmaking Processes Products and Applications Year: 2024 Vol: 51 (10)Pages: 1046-1064
JOURNAL ARTICLE

Fabric defect detection algorithm based on improved YOLOv5

Li FengKang XiaoZhenpeng HuGuozheng Zhang

Journal:   The Visual Computer Year: 2023 Vol: 40 (4)Pages: 2309-2324
JOURNAL ARTICLE

Insulator defect detection algorithm based on improved YOLOv5

Xin LianDewen Wang

Journal:   Frontiers in Computing and Intelligent Systems Year: 2023 Vol: 3 (2)Pages: 44-47
© 2026 ScienceGate Book Chapters — All rights reserved.