PCB Defect Detection Algorithm Combining Cascaded-Wise Residual and Dynamic Sparse Attention

Detecting defects is crucial to ensuring the quality of printed circuit board (PCB) products. Due to the diminutive nature of surface defects on PCBs, current detection algorithms struggle to extract small defect features accurately, leading to a propensity for missed detections. To tackle these challenges, we propose a PCB defect detection algorithm that builds upon the YOLOv7 algorithm with enhancements. Firstly, we integrate the proposed CREC module into the backbone network to enhance the capture of local features about minor defects. Secondly, we propose the integration of a multi-scale feature fusion module, SPPB, within the head network to selectively activate channels or positions related to minor defects in the feature map, thereby enhancing the accuracy of local feature extraction for minor defects. Subsequently, the algorithm is endowed with higher efficiency in learning small defect features with the help of a new loss function, MPNWD. Finally, a small target detection layer P2 is added to enrich the contextual information in order to facilitate the algorithm to understand the relationship between small defects and their surrounding regions. Experimental results demonstrate the effectiveness of the enhanced YOLOv7 algorithm in testing the PCB_DATASET defect dataset, achieving a detection accuracy (mAP) of 99.3%, surpassing YOLOv7 by 5.4%, and outperforming other algorithms in terms of detection accuracy.OPEN ACCESS Received: 24/07/2024 Accepted: 19/11/2024 Published: 20/04/2025

Authors

Publication Details

Journal
Revista Internacional de Métodos Numéricos para Cálculo y Diseño en Ingeniería
Published
2025-01-01
DOI
https://doi.org/10.23967/j.rimni.2024.10.56504
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

PCB Defect Detection Algorithm Combining Cascaded-Wise Residual and Dynamic Sparse Attention

W. Fan, Shujuan Lan, Jing Peng
Revista Internacional de Métodos Numéricos para Cálculo y Diseño en Ingeniería
Industrial Vision Systems and Defect Detection
article

PCB Defect Detection Algorithm Combining Cascaded-Wise Residual and Dynamic Sparse Attention

W. Fan, Shujuan Lan, Jing Peng
article en

Abstract

Detecting defects is crucial to ensuring the quality of printed circuit board (PCB) products. Due to the diminutive nature of surface defects on PCBs, current detection algorithms struggle to extract small defect features accurately, leading to a propensity for missed detections. To tackle these challenges, we propose a PCB defect detection algorithm that builds upon the YOLOv7 algorithm with enhancements. Firstly, we integrate the proposed CREC module into the backbone network to enhance the capture of local features about minor defects. Secondly, we propose the integration of a multi-scale feature fusion module, SPPB, within the head network to selectively activate channels or positions related to minor defects in the feature map, thereby enhancing the accuracy of local feature extraction for minor defects. Subsequently, the algorithm is endowed with higher efficiency in learning small defect features with the help of a new loss function, MPNWD. Finally, a small target detection layer P2 is added to enrich the contextual information in order to facilitate the algorithm to understand the relationship between small defects and their surrounding regions. Experimental results demonstrate the effectiveness of the enhanced YOLOv7 algorithm in testing the PCB_DATASET defect dataset, achieving a detection accuracy (mAP) of 99.3%, surpassing YOLOv7 by 5.4%, and outperforming other algorithms in terms of detection accuracy.OPEN ACCESS Received: 24/07/2024 Accepted: 19/11/2024 Published: 20/04/2025

Revista Internacional de Métodos Numéricos para Cálculo y Diseño en IngenieríaVol. 41(2)
Openalex Percentile: Top 86%
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.

PCB Defect Detection Algorithm Combining Cascaded-Wise Residual and Dynamic Sparse Attention — W. Fan, Shujuan Lan, et al. · Revista Internacional de Métodos Numéricos para Cálculo y Diseño en Ingeniería (2025) | TGRS Research Map | TGRS