EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

A High-Accuracy PCB Defect Detection Algorithm Based on Improved YOLOv12

Zhi Chen, Bingxiang Liu

Symmetry · 20.06.2025 · 17 (7) · 978

DOI: 10.3390/sym17070978 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Symmetry, online erschienen am 20.06.2025. Verfasst von Zhi Chen und 1 weiteren Autor:innen. Die Arbeit wurde bisher 14-mal zitiert (Crossref) und nennt 33 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

To address the common issues of high small object miss rates, frequent false positives, and poor real-time performance in PCB defect detection, this paper proposes a multi-scale fusion algorithm based on the YOLOv12 framework. This algorithm integrates the Global Attention Mechanism (GAM) into the redesigned A2C2f module to enhance feature response strength of complex objects in symmetric regions through global context modeling, replacing conventional convolutions with hybrid weighted downsampling (HWD) modules that preserve copper foil textures in PCB images via hierarchical weight allocation. A bidirectional feature pyramid network (BiFPN) is constructed to reduce bounding box regression errors for micro-defects by fusing shallow localization and deep semantic features, employing a parallel perception attention (PPA) detection head combining dense anchor distribution and context-aware mechanisms to accurately identify tiny defects in high-density areas, and optimizing bounding box regression using a normalized Wasserstein distance (NWD) loss function to enhance overall detection accuracy. The experimental results on the public PCB dataset with symmetrically transformed samples demonstrate 85.3% recall rate and 90.4% mAP@50, with AP values for subtle defects like short circuit and spurious copper reaching 96.2% and 90.8%, respectively. Compared to the YOLOv12n, it shows an 8.7% enhancement in recall, a 5.8% increase in mAP@50, and gains of 16.7% and 11.5% in AP for the short circuit and spurious copper categories. Moreover, with an FPS of 72.8, it outperforms YOLOv5s, YOLOv8s, and YOLOv11n by 12.5%, 22.8%, and 5.7%, respectively, in speed. The improved algorithm meets the requirements for high-precision and real-time detection of multi-category PCB defects and provides an efficient solution for automated PCB quality inspection scenarios.

Zitieren

APA

Chen, Z., & Liu, B. (2025). A High-Accuracy PCB Defect Detection Algorithm Based on Improved YOLOv12. Symmetry, 17(7), 978. https://doi.org/10.3390/sym17070978

Vancouver

Chen Z, Liu B. A High-Accuracy PCB Defect Detection Algorithm Based on Improved YOLOv12. Symmetry. 2025;17(7):978. doi:10.3390/sym17070978

BibTeX
@article{Chen2025,
  author = {Chen, Zhi and Liu, Bingxiang},
  title = {A High-Accuracy PCB Defect Detection Algorithm Based on Improved YOLOv12},
  journal = {Symmetry},
  year = {2025},
  volume = {17},
  number = {7},
  pages = {978},
  doi = {10.3390/sym17070978}
}
Kostenlos starten →