基于YOLOv8n改进的太阳能电池板缺陷检测

Improved Solar Panel Defect Detection Based on YOLOv8n

  • 摘要: 随着太阳能技术的快速发展,高效的太阳能电池片缺陷检测方法变得至关重要。传统的缺陷检测方法由于精度不足,难以满足工业应用的需求,特别是在检测微小或细微缺陷方面表现不佳。针对这一问题,本文提出了一种基于改进的YOLOv8n算法,通过引入新的结构和损失函数来提高检测效果。首先,本研究设计了C2f_RVB模块,该模块采用RepViTBlock技术优化了特征表达能力,并有效减少了模型参数。通过增强深层特征的表达,C2f_RVB模块显著提升了对小目标缺陷的识别精度。其次,引入的TFE模块通过改善多尺度特征融合,增强了模型在检测微小缺陷方面的能力。此外,本文还采用了SSFF-Dysample模块,结合DySample动态上采样技术,进一步优化了模型处理不同尺度特征的能力。最后,采用了Slide loss作为损失函数,优化了模型对难以识别样本的学习效率,尤其是在处理高度不均匀的缺陷分布时更为有效。经过实验验证,改进后的YOLOv8n模型在精度、召回率和平均精确率上分别比原始模型提高了6.7%、8%和8.5%,检测速度达到了221.7 FPS,充分满足了太阳能电池片缺陷检测的高效率和高精度需求。这些改进不仅提高了模型的性能,也为太阳能电池片缺陷检测提供了一种新的技术路径。

     

    Abstract: With the rapid advancement of solar technology, efficient methods for detecting defects in solar cell panels have become crucial. Traditional defect detection methods often fail to meet the requirements of industrial applications because of their inadequate precision, particularly in detecting minute or subtle defects. To address this issue, this paper presents an enhanced YOLOv8n algorithm that introduces new structures and a loss function to improve the detection effectiveness. Initially, the study designed a C2f_RVB module that employs RepViTBlock technology to optimize the feature expression capability and effectively reduce the model parameters. By enhancing the expression of deep features, the C2f_RVB module significantly improves the accuracy of detecting small-scale defects. Additionally, the introduced TFE module enhances the capability of the model to detect minute defects through improved multiscale feature fusion. Furthermore, this study incorporates the SSFF–DySample module that utilizes DySample dynamic upsampling technology to further optimize the model ability to process features of varying scales. Finally, Slide loss is adopted as the loss function, optimizing the learning efficiency of the model for difficult-to-recognize samples, and is particularly effective in dealing with highly uneven defect distributions. Experimental validation shows that the improved YOLOv8n model enhances precision, recall, and average precision rates by 6.7%, 8%, and 8.5% respectively, with detection speeds reaching 221.7 FPS, fully meeting the requirements for high-efficiency and high-precision in solar cell panel defect detection. These improvements enhance the model performance and provide a new technical pathway for defect detection in solar cell panels.

     

/

返回文章
返回