Transformers or Not: A Comparative Study on Defect Inspection in Printed Circuit Boards
DOI:
https://doi.org/10.22456/2175-2745.145580Keywords:
Automated Optical Inspection, Artificial Intelligence, Printed Circuit BoardAbstract
A Printed Circuit Board (PCB) is a fundamental component in the manufacturing process of electronic devices. When talking about the process of fabrication of these devices, the quality control stage represents, in general, the biggest cost in production. This stage is usually realized by humans, which are prone to fail, as well as being slower and less consistent when compared to computers. This study presents the utlization of six distincts Artificial Intelligence archtiectures trained for PCB defect detection. The results of the experiments highlighted key differences in training time, accuracy, and computational complexity across various models. YOGA-s achieved a good balance with the second-best mAP 50 accuracy (83.2%) and a moderate training time of 50 minutes. YOLOv11n, despite its shorter training time (40 minutes), outperformed YOGA-s in mAP 50-95 (42.7%). DETR demonstrated the highest accuracy (92.4% mAP 50), but at the cost of significantly longer training times and higher complexity. LW-DETR, while efficient, showed limited performance improvements as its scale increased. YOLOv11n emerged as the most cost-effective option for PCB inspection tasks.
Downloads
References
[1] WU, W.-Y.; WANG, M.-J. J.; LIU, C.-M. Automated inspection of printed circuit boards through machine vision. Computers in Industry, v. 28, n. 2, p. 103–111, 1996. ISSN 0166-3615. Disponível em: ⟨https://www.sciencedirect.com/science/article/pii/0166361595000631⟩.
[2] SILVA, C. et al. The visual inspection of solder balls in semiconductor encapsulation. In: . [S.l.: s.n.], 2022. p. 750–757.
[3] JIN, J. et al. Defect detection of printed circuit boards using efficientdet. In: 2021 IEEE 6th International Conference on Signal and Image Processing (ICSIP). [S.l.: s.n.], 2021. p. 287–293.
[4] CARION, N. et al. End-to-end object detection with transformers. In: SPRINGER. European conference on computer vision. [S.l.], 2020. p. 213–229.
[5] CHEN, Q. et al. Lw-detr: A transformer replacement to yolo for real-time detection. arXiv preprint arXiv:2406.03459, 2024.
[6] SUNKARA, R.; LUO, T. YOGA: Deep object detection in the wild with lightweight feature learning and multiscale attention. Pattern Recognition, Elsevier, v. 139, p. 109451, 2023.
[7] KHANAM, R.; HUSSAIN, M. YOLOv11: An Overview of the Key Architectural Enhancements. 2024. Disponível em: ⟨https://arxiv.org/abs/2410.17725⟩.
[8] YT7589. YOLOv11. [S.l.]: GitHub, 2024. ⟨https://github.com/yt7589/yolov11⟩.
[9] YOU, S. Pcb defect detection based on generative adversarial network. In: 2022 2nd International Conference on Consumer Electronics and Computer Engineering (ICCECE). [S.l.: s.n.], 2022. p. 557–560.
[10] HUANG, W. et al. Hripcb: a challenging dataset for pcb defects detection and classification. The Journal of Engineering, v. 2020, 05 2020.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Pedro Luiz Henriques Benedetti, Marcelo Ricardo Stemmer

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Autorizo aos editores a publicação de meu artigo, caso seja aceito, em meio eletrônico de acordo com as regras do Public Knowledge Project.Accepted 2025-11-22
Published 2026-01-30













