Hybrid CNN-transformer with adaptive multi-scale fusion for tiny PCB defect identification

Printed circuit board (PCB) defect detection is essential for industrial quality control, yet it remains challenging due to the tiny size and low contrast of defects, as well as complex backgrounds. Existing detectors still struggle with the loss of fine defect details, inefficient global context modeling in repetitive PCB background patterns, and suboptimal multi-scale feature fusion under defect-size variations. To address these issues, we propose HTA-Det, a hybrid CNN–Transformer detector with three synergistic components. First, we propose a detail-preserving backbone that uses cascaded RepNCSP blocks for progressive feature refinement to mitigate the early-stage loss of fine-grained details crucial for tiny defects. The aggregated features are then passed through an attention refinement stage to selectively enhance defect-relevant features. Second, a hybrid polarity-aware linear-attention encoder, enhanced by three submodules, is developed for efficient global context modeling. Finally, an adaptive fusion strategy is designed to learn content-aware and scale-specific weights for feature maps from different levels. Experiments on the PKU-Market-PCB and DeepPCB datasets show that HTA-Det achieves mAP$$_{50}$$ scores of 99.3% and 99.1%, respectively, with only 9.2M parameters. These results indicate that HTA-Det provides an effective and efficient solution for PCB defect detection.

Authors

Institutions

Publication Details

Journal
Complex & Intelligent Systems
Published
2026-05-12
DOI
https://doi.org/10.1007/s40747-026-02326-z
Primary Topic
Advanced Neural Network Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hybrid CNN-transformer with adaptive multi-scale fusion for tiny PCB defect identification

Ye Gu, Yunfei Yan, Gengliang Chen, Xiaojiang Peng
Complex & Intelligent Systems
Advanced Neural Network Applications
article

Hybrid CNN-transformer with adaptive multi-scale fusion for tiny PCB defect identification

Ye Gu, Yunfei Yan, Gengliang Chen, Xiaojiang Peng
article en

Abstract

Printed circuit board (PCB) defect detection is essential for industrial quality control, yet it remains challenging due to the tiny size and low contrast of defects, as well as complex backgrounds. Existing detectors still struggle with the loss of fine defect details, inefficient global context modeling in repetitive PCB background patterns, and suboptimal multi-scale feature fusion under defect-size variations. To address these issues, we propose HTA-Det, a hybrid CNN–Transformer detector with three synergistic components. First, we propose a detail-preserving backbone that uses cascaded RepNCSP blocks for progressive feature refinement to mitigate the early-stage loss of fine-grained details crucial for tiny defects. The aggregated features are then passed through an attention refinement stage to selectively enhance defect-relevant features. Second, a hybrid polarity-aware linear-attention encoder, enhanced by three submodules, is developed for efficient global context modeling. Finally, an adaptive fusion strategy is designed to learn content-aware and scale-specific weights for feature maps from different levels. Experiments on the PKU-Market-PCB and DeepPCB datasets show that HTA-Det achieves mAP$$_{50}$$ scores of 99.3% and 99.1%, respectively, with only 9.2M parameters. These results indicate that HTA-Det provides an effective and efficient solution for PCB defect detection.

Complex & Intelligent Systems
Shenzhen Technology University (CN)
Industry, innovation and infrastructure
Openalex Percentile: Top 5%
Advanced Neural Network Applications
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.