Research on Printed Circuit Board (PCB) Defect Detection Algorithm Based on Convolutional Neural Networks (CNN)
Source abstract
Abstract
Printed Circuit Board (PCB) defect detection is critical for quality control in electronics manufacturing. Traditional manual inspection and classical Automated Optical Inspection (AOI) methods face challenges in speed, consistency, and flexibility. This paper proposes a CNN-based approach for automatic PCB defect detection using the YOLOv5 model. The method leverages a Convolutional Neural Network to identify various PCB defect types (e.g., open circuits, short circuits, and missing holes) from board images. In this study, a model was trained on a PCB image dataset with detailed annotations. Data augmentation techniques, such as sharpening and noise filtering, were applied to improve robustness. The experimental results showed that the proposed approach could locate and classify multiple defect types on PCBs, with overall detection precision and recall above 90% and 91%, respectively, enabling reliable automated inspection. A brief comparison with the latest YOLOv8 model is also presented, showing that the proposed CNN-based detector offers competitive performance. This study shows that deep learning-based defect detection can improve the PCB inspection efficiency and accuracy significantly, paving the way for intelligent manufacturing and quality assurance in PCB production. From a sensing perspective, we frame the system around an industrial RGB camera and controlled illumination, emphasizing how imaging-sensor choices and settings shape defect visibility and model robustness, and sketching future sensor-fusion directions.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Industrial Vision Systems and Defect Detection · Advanced Neural Network Applications · Surface Roughness and Optical Measurements
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Semiconductor Engineering, Hoseo University, Asan 31499, Republic of Korea
Funding
Institute of Information & Communications Technology Planning & Evaluation (IITP)-Innovative Human Resource Development for Local Intellectualization
References (31)
Show source-provided references
1. Automated inspection of printed circuit boards through machine vision10.1016/0166-3615(95)00063-1 ↗
2. A review and analysis of automatic optical inspection and quality monitoring methods in electronics industry10.1109/ACCESS.2020.3029127 ↗
3. Krizhevsky, A., Sutskever, I., and Hinton, G.E. (2011, January 12–15). ImageNet classification with deep convolutional neural networks. Proceedings of the 25th International Conference on Neural Information Processing Systems (NIPS), Granada, Spain.
4. Redmon, J., Divvala, S., Girshick, R., and Farhadi, A. (2016, January 27–30). You Only Look Once: Unified, real-time object detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.91 ↗
5. SGT-YOLO: A Lightweight Method for PCB Defect Detection
6. Yuan, T., Jiao, Z., and Diao, N. (2025). YOLO-SSW: An Improved Detection Method for Printed Circuit Board Surface Defects. Mathematics, 13.10.3390/math13030435 ↗
7. TDD-Net: A tiny defect detection network for printed circuit boards10.1049/trit.2019.0019 ↗
8. Detection of PCB surface defects with improved Faster R-CNN and feature pyramid network10.1109/ACCESS.2020.3001349 ↗
9. PCB defect detection method based on Transformer-YOLO10.1109/ACCESS.2022.3228206 ↗
10. Printed circuit board defect detection based on MobileNet–YOLO–Fast10.1117/1.JEI.30.4.043004 ↗
11. Liao, X., Song, Z., Yang, S., Xie, B., and Sun, Y. (2021). YOLOv4-MN3 for PCB surface defect detection. Appl. Sci., 11.10.3390/app112411701 ↗
12. Defect detection of printed circuit board assembly based on YOLOv510.1038/s41598-024-70176-1 ↗
13. PCB defect detection algorithm based on CDI-YOLO10.1038/s41598-024-57491-3 ↗
14. SMA-YOLO: A Lightweight Small Object Detection Algorithm Based on Shannon Entropy and Feature Interaction
15. Lin, T.-Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollár, P., and Zitnick, C.L. (2014, January 6–12). Microsoft COCO: Common objects in context. Proceedings of the European Conference on Computer Vision (ECCV), Zurich, Switzerland.10.1007/978-3-319-10602-1_48 ↗
16. (2025, September 26). COCO API (Pycocotools). GitHub Repository, 2014–2025. Available online: https://github.com/cocodataset/cocoapi.
17. Gonzalez, R.C., and Woods, R.E. (2018). Digital Image Processing, Pearson. [4th ed.].
18. A survey on image data augmentation for deep learning10.1186/s40537-019-0197-0 ↗
19. SMG-YOLO: PCB Defect Detection Algorithm Based on Improved Multiscale Fusion
20. Wang, Y., Yin, T., Chen, X., and Zhu, Y. (2025). SCP-DETR: A Efficient Small-Object-Enhanced Feature Pyramid Approach for PCB Defect Detection. PLoS ONE, 20.10.1371/journal.pone.0330039 ↗
21. DGYOLOv8: An Enhanced Algorithm for Steel Surface Defect Detection Combining Deformable Convolution and Attention Mechanisms10.3390/math13050831 ↗
22. Understanding machine vision illumination
23. Heckbert, P.S. (1994). Contrast Limited Adaptive Histogram Equalization. Graphics Gems IV, Academic Press.
24. Jocher, G., Chaurasia, A., and Qiu, J. (2025, December 06). Ultralytics YOLOv8. Available online: https://github.com/ultralytics/ultralytics.
25. Tang, S., He, F., Huang, X., and Yang, J. (2020, January 2–4). A real-time PCB defect detector based on supervised and semi-supervised learning. Proceedings of the European Symposium on Artificial Neural Networks (ESANN), Online.
26. Review of vision-based defect detection research and its perspectives for printed circuit board10.1016/j.jmsy.2023.08.019 ↗
27. Ding, H., Wang, W., and Li, X. (2025, September 27). A Comprehensive Review of Research on Surface Defect Detection of PCBs, J. Manuf. Process., Available online: https://www.sciencedirect.com/science/article/pii/S259012302502506X.10.1016/j.rineng.2025.106437 ↗
28. Printed Circuit Board Defect Detection Methods Based on Image Processing, Machine Learning and Deep Learning: A Survey10.1109/ACCESS.2023.3245093 ↗
29. Wang, A., Foucher, S., and Bhuiyan, H. (2024). PCB-Vision: A multiscene RGB–hyperspectral benchmark dataset of printed circuit boards. arXiv.
30. Calibration of fringe projection profilometry: A comparative review
31. (2025, December 10). VT-S730 3D AOI System. Product Catalog Q325-E1-04, 2024 and Zenith 3D AOI,” Product Notes, 2025. Available online: https://www.ia.omron.com/products/family/3739/.