首页|期刊导航|重庆工商大学学报(自然科学版)|基于改进YOLOv8n的光伏电池缺陷检测算法

基于改进YOLOv8n的光伏电池缺陷检测算法OA

Defect Detection Algorithm for Photovoltaic Cells Based on Improved YOLOv8n

中文摘要英文摘要

目的 在光伏电池电致发光(Electroluminescence,EL)材料生产过程中,存在背景复杂、缺陷尺度差别大、缺陷类别不平衡等问题,导致漏检、误检的情况.针对此类问题,提出一种基于改进YOLOv8n的光伏电池缺陷检测算法.方法 首先,在改进YOLOv8n的主干部分,将C2f模块替换为C2f-Faster模块,最大程度降低模型参数量的同时,提升了模型的检测速度和特征融合能力;其次,在颈部引入可变卷积,增大局部感受野,进而精确定位缺陷,降低识别误差;最后,引入 WIoU(Wise Intersection over Union)损失函数,替换原模型的 CIoU(Complet Intersection over Union)损失函数,改善数据集标签不平衡的问题,提高模型对小目标缺陷的检测性能.结果 改进后的YOLOv8n算法在实验数据集上mAP@0.5达到93.2%,检测速度达到110 FPS,计算量仅为6.7 GFLOPs;该算法相较于YOLOv8n基准算法,mAP@0.5提升了 2.2%,参数量下降13.3%,计算量下降17.2%.结论 通过消融实验并与主流目标检测模型进行对比证明了改进模型的有效性,改进后的模型在轻量化的同时又提升了模型的准确率,且具有实时性,相较于其他算法具有一定优势,满足工业部署要求.

Objective In the production process of electroluminescence(EL)materials for photovoltaic cells,there are problems such as complex background,large difference in defect scale,and imbalance of defect categories,which lead to missed and false detections in defect detection.To address these problems,a photovoltaic cell defect detection algorithm based on an improved YOLOv8n is proposed.Methods Firstly,the backbone of YOLOv8n was improved by replacing the C2f module with the C2f-Faster module.This change significantly reduced the number of model parameters while enhancing the model's detection speed and feature fusion capability.Secondly,deformable convolution was introduced in the neck to increase the local receptive field,thereby precisely locating defects and reducing recognition errors.Finally,the wise intersection over union(WIoU)loss function was introduced to replace the complete intersection over union(CIoU)loss function of the original model.This change addressed the issue of label imbalance in the dataset and improved the model's performance in detecting small-target defects.Results The improved YOLOv8n algorithm achieved an mAP@0.5 of 93.2%on the experimental dataset,with a detection speed of 110 FPS and a computational load of only 6.7 GFLOPs.Compared with the YOLOv8n benchmark algorithm,the proposed method improved mAP@0.5 by 2.2%,reduced the number of parameters by 13.3%,and decreased computational load by 17.2%.Conclusion Ablation experiments and comparisons with mainstream object detection models demonstrate the effectiveness of the improved model.The proposed model achieves higher accuracy while maintaining a lightweight structure and real-time performance.It exhibits clear advantages over other methods and meets the requirements for industrial deployment.

王涛;黎远松;石睿;侯宪庆

四川轻化工大学计算机科学与工程学院,四川 宜宾 644000四川轻化工大学计算机科学与工程学院,四川 宜宾 644000四川轻化工大学计算机科学与工程学院,四川 宜宾 644000四川轻化工大学计算机科学与工程学院,四川 宜宾 644000

信息技术与安全科学

缺陷检测深度学习YOLOv8nWIoU

defect detectiondeep learningYOLOv8nWIoU

《重庆工商大学学报(自然科学版)》 2026 (4)

42-51,10

国家自然科学基金项目资助(42374227).

10.16055/j.issn.1672-058X.2026.0004.006

评论