Laser & Optoelectronics Progress, Volume. 62, Issue 10, 1012004(2025)

Multi-Scale Fusion Optimization Algorithm for Printed Circuit Board Defect Detection

Kun Mao, Xuejun Zhu*, Huige Lai, Checao Yu, Leilei Xiong, Ming Yang, and Da Peng
Author Affiliations
  • School of Mechanical Engineering, Ningxia University, Yinchuan 750021, Ningxia , China
  • show less

    A printed circuit board (PCB) defect detection algorithm based on multi-scale fusion optimization is proposed to address the low accuracy of traditional detection algorithms, which struggle with small surface defects resembling background features. Building on YOLOv8, a Swin Transformer module is integrated at the end of the backbone network's feature fusion layer to capture global information and enhance the understanding of both detailed and overall features. A global attention mechanism is embedded in the backbone to focus on target areas and reduce background interference. The WIoU loss function replaces the original CIoU, incorporating differential weighting to improve regression performance for small targets and complex backgrounds. Comparative experiments are conducted using different algorithms on the PCB_DATASET and DeepPCB datasets. The proposed algorithm improves detection accuracy by 3.64 and 2.42 percentage points on the PCB_DATASET and DeepPCB datasets, respectively, significantly enhancing defect recognition accuracy.

    Keywords
    Tools

    Get Citation

    Copy Citation Text

    Kun Mao, Xuejun Zhu, Huige Lai, Checao Yu, Leilei Xiong, Ming Yang, Da Peng. Multi-Scale Fusion Optimization Algorithm for Printed Circuit Board Defect Detection[J]. Laser & Optoelectronics Progress, 2025, 62(10): 1012004

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: Instrumentation, Measurement and Metrology

    Received: Jan. 9, 2025

    Accepted: Feb. 10, 2025

    Published Online: Apr. 23, 2025

    The Author Email: Xuejun Zhu (zhxj@nxu.edu.cn)

    DOI:10.3788/LOP250474

    CSTR:32186.14.LOP250474

    Topics