ASTKD-PCB-LDD: high-performance PCB defect detection model with align soft-target knowledge distillation and lightweight network design
摘要
Defects in printed circuit boards (PCBs) can degrade the performance and reliability of electronic devices. Although YOLOv5-based algorithms are commonly used to detect PCB defects, their complex parameters slow down detection speeds on industrial platforms. This paper presents a lightweight, high-performance model for PCB defect detection, called Align Soft-Target Knowledge Distillation PCB Lightweight Defect Detection (ASTKD-PCB-LDD). The model uses the k-means++ algorithm for optimal anchor box selection and the SCYLLA-IoU (SIoU) loss function to improve accuracy in detecting small defects. The Faster-Ghost backbone network and slim-neck architecture reduce computational load and improve inference speed. Additionally, Align Soft-Target Knowledge Distillation (ASTKD) is applied, with the PCB-LDD model as the teacher and a pruned model-created using Layer-Adaptive Magnitude-based Pruning (LAMP)-as the student. This strategy helps to maintain detection accuracy while reducing model size. Experimental results show that the model size is reduced from 14.5 to 4 MB (a 27.6