基于TDS-YOLO的自适应多尺度PCB缺陷检测算法
Adaptive Multi-Scale PCB Defect Detection Algorithm Based on TDS-YOLO
摘要 针对当前印刷电路板(PCB)缺陷检测中存在的检测精度不足、小缺陷识别效果差等难点,提出了一种改进的基于 YOLOv11n 的 PCB 缺陷检测算法.设计了新型 C3k2_TSSA 主干特征提取单元,利用具有线性复杂度的令牌统计自注意力机制,强化缺陷区域与规则电路背景之间的差异;将动态双曲正切(DyT)模块融合至传统 C2PSA 中的归一化层,构建 C2PSA_DyT 模块,降低了模型前向传播成本;在检测头部分融入空间增强注意力模块(SEAM),有效增强了模型对复杂背景下微小缺陷的识别能力.实验结果表明,与原 YOLOv11n 算法相比,改进后算法的平均精度均 值 mAP@0.5 提高了 4.2%,达到 90.1%,召回率提高了 2.5%,参数量减少了12.4%.该算法在工业 PCB 缺陷检测中具备应用潜力.
Abstract:
To address insufficient accuracy and poor recognition of small defects in printed circuit board(PCB)defect detection,an improved YOLOv11n-based algorithm for PCB defect detection algo-rithm was proposed.A novel C3k2_TSSA backbone feature extraction module was designed,which leve-raged a token statistics self-attention mechanism with linear complexity to enhance the difference between defective regions and regular circuit backgrounds.The C2PSA_DyT module was constructed by integrating a dynamic tanh(DyT)module into the traditional C2PSA normalization layer,which reduced forward propagation costs.A spatial enhanced attention module(SEAM)was incorporated into the detection head,which effectively enhanced the model's ability to identify small defects in complex backgrounds.Experimental results demonstrate that compared with the original YOLOv11n algorithm,the improved algorithm increases the mean average precision mAP@0.5 by 4.2%to reach 90.1%,increases the recall rate by 2.5%,and reduces parameters by 12.4%,showing application potential for industrial PCB defect detection.
刊 名 半导体技术 ISTICPKU
年,卷(期): 2026, 51(11)
分类号: TN41 TN407
机标分类号: TP391.41 TN41 TN911.73
在线出版日期: 2026年11月10日
基金项目: 252300421893:河南省自然科学基金项目NSFRF240819:河南省高校基本科研业务费专项,