首页|期刊导航|华南理工大学学报(自然科学版)|基于SBC-YOLOv8n的光伏电池片缺陷检测

基于SBC-YOLOv8n的光伏电池片缺陷检测OA

Defect Detection of Photovoltaic Cells Based on SBC-YOLOv8n

中文摘要英文摘要

光伏电池片表面缺陷尺度细微、与背景特征高度重叠,传统检测算法频繁出现漏检与误检,现有方法的缺陷识别鲁棒性亟待提升.该文对YOLOv8n模型进行改进,提出SBC-YOLOv8n(SE-BiFPN-CA-YOLOv8n)模型提升其在复杂工业场景中的识别准确率与稳定性,增强对光伏电池片微小缺陷的检测能力.首先在主干网络SPPF(快速空间金字塔池化)模块前后融合双重注意力机制(坐标注意力机制+压缩与激励注意力机制),分别从空间位置感知和通道权重调整两个维度,增强对细微缺陷的特征提取能力;其次采用加权双向特征金字塔网络(BiFPN)替代原颈部网络结构,通过精简节点和双向加权融合机制强化多尺度特征交互,抑制背景干扰;最后针对类别不平衡问题,优化焦点损失函数参数,将聚焦参数γ从2提升至3,以加强对难分类样本的关注,并将类别平衡因子α从0.25调整至0.5,显著增加缺陷样本的损失权重、降低背景权重.改进后的SBC-YOLOv8n模型在测试集上达到mAP0.5为80.2%,较原始YOLOv8n模型提升了4.2个百分点;同时,精确率、召回率和F1分数也均显著提升,在保持模型实时性的前提下有效改善了对微小缺陷的检出能力与整体鲁棒性.

The surface defects of photovoltaic cells are characterized by fine scales and significant overlap with background features,leading to frequent missed detections and false alarms in traditional detection algorithms.Moreover,the robustness of defect recognition in existing methods urgently requires improvement.This paper pro-poses an improved model based on YOLOv8n,termed SBC-YOLOv8n(SE-BiFPN-CA-YOLOv8n),to enhance recog-nition accuracy and stability in complex industrial scenarios,thereby strengthening the detection capability for mi-nute defects on photovoltaic cell surfaces.First,a dual-attention mechanism combining coordinate attention and squeeze-and-excitation attention is integrated before and after the SPPF module in the backbone network.This en-ables the feature extraction ability for minute defects from two dimensions:spatial location perception and channel-wise weight adjustment.Second,the original neck network structure is replaced with a weighted bidirectional fea-ture pyramid network(BiFPN),which simplifies nodes and adopts a bidirectional weighted fusion mechanism to rein-force multi-scale feature interaction while suppressing background interference.Finally,to address class imba-lance,the focal loss function is optimized by increasing the focusing parameter γ from 2 to 3 to enhance the atten-tion on hard-to-classify samples,and adjusting the class balance factor α from 0.25 to 0.5 to substantially raise the loss weight of defect samples while reducing that of the background.The improved SBC-YOLOv8n model achieves an mAP0.5 of 80.2%on the test set,representing a 4.2 percentage point improvement over the original YOLOv8n model.Meanwhile,precision,recall,and F1 score are significantly enhanced,effectively improving the detection capability of minute defects and overall robustness while maintaining the model's real-time performance.

郭建;谢鹤鸣;钟琪峰;温雅晴

广州城市理工学院 机械工程学院,广东 广州 510800广州城市理工学院 机械工程学院,广东 广州 510800广州城市理工学院 机械工程学院,广东 广州 510800广州城市理工学院 机械工程学院,广东 广州 510800

信息技术与安全科学

缺陷检测YOLOv8n深度学习坐标注意力机制压缩与激励注意力机制焦点损失函数

defect detectionYOLOv8ndeep learningcoordinate attention mechanismsqueeze-and-excitation attention mechanismfocal loss function

《华南理工大学学报(自然科学版)》 2026 (5)

37-46,10

广东省科技创新战略专项资金项目(pdjh2025bk306)Supported by the Guangdong Province Special Fund for Science and Technology Innovation Strategy(pdjh2025bk306)

10.12141/j.issn.1000-565X.250294

评论