Small PCB Defect Detection Based on Convolutional Block Attention Mechanism and YOLOv8

Automated defect detection in printed circuit boards (PCBs) is a critical process for ensuring the quality and reliability of electronic products. To address the limitations of existing detection methods, such as insufficient sensitivity to minor defects and limited recognition accuracy in complex backgrounds, this paper proposes an enhanced YOLOv8 detection framework. The core contribution lies not merely in the integration of the Convolutional Block Attention Module (CBAM), but in a principled and task-specific integration strategy designed to address the multi-scale and low-contrast nature of PCB defects. The complete CBAM is integrated into the multi-scale feature layers (P3, P4, P5) of the YOLOv8 backbone network. By leveraging sequential channel and spatial attention submodules, CBAM guides the model to dynamically optimise feature responses, thereby significantly enhancing feature extraction for tiny, morphologically diverse defects. Experiments on a public PCB defect dataset demonstrate that the proposed model achieves a mean average precision (mAP@50) of 98.8% while maintaining real-time inference speed, surpassing the baseline YOLOv8 model by 9.5%, with the improvements of 7.4% in precision and 12.3% in recall. While the model incurs a higher computational cost (79.4 GFLOPs), it maintains a real-time inference speed of 109.11 FPS, offering a viable trade-off between accuracy and efficiency for high-precision industrial inspection. The proposed model demonstrates superior performance in detecting small-scale defects, making it highly suitable for industrial deployment.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2026-01-21
DOI
https://doi.org/10.3390/app16021078
Primary Topic
Industrial Vision Systems and Defect Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Small PCB Defect Detection Based on Convolutional Block Attention Mechanism and YOLOv8

Ruihan Ma, Qujiang Lei, Zhe Sun
Applied Sciences
Industrial Vision Systems and Defect Detection
article

Small PCB Defect Detection Based on Convolutional Block Attention Mechanism and YOLOv8

Ruihan Ma, Qujiang Lei, Zhe Sun
article en

Abstract

Automated defect detection in printed circuit boards (PCBs) is a critical process for ensuring the quality and reliability of electronic products. To address the limitations of existing detection methods, such as insufficient sensitivity to minor defects and limited recognition accuracy in complex backgrounds, this paper proposes an enhanced YOLOv8 detection framework. The core contribution lies not merely in the integration of the Convolutional Block Attention Module (CBAM), but in a principled and task-specific integration strategy designed to address the multi-scale and low-contrast nature of PCB defects. The complete CBAM is integrated into the multi-scale feature layers (P3, P4, P5) of the YOLOv8 backbone network. By leveraging sequential channel and spatial attention submodules, CBAM guides the model to dynamically optimise feature responses, thereby significantly enhancing feature extraction for tiny, morphologically diverse defects. Experiments on a public PCB defect dataset demonstrate that the proposed model achieves a mean average precision (mAP@50) of 98.8% while maintaining real-time inference speed, surpassing the baseline YOLOv8 model by 9.5%, with the improvements of 7.4% in precision and 12.3% in recall. While the model incurs a higher computational cost (79.4 GFLOPs), it maintains a real-time inference speed of 109.11 FPS, offering a viable trade-off between accuracy and efficiency for high-precision industrial inspection. The proposed model demonstrates superior performance in detecting small-scale defects, making it highly suitable for industrial deployment.

Applied SciencesVol. 16(2)
The University of Sydney (AU), University of Chinese Academy of Sciences (CN), Beijing University of Chemical Technology (CN)
Industry, innovation and infrastructure
Openalex Percentile: Top 83%
Industrial Vision Systems and Defect Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Small PCB Defect Detection Based on Convolutional Block Attention Mechanism and YOLOv8 — Ruihan Ma, Qujiang Lei, et al. · Applied Sciences (2026) | TGRS Research Map | TGRS