计算机与现代化 ›› 2023, Vol. 0 ›› Issue (07): 119-126.doi: 10.3969/j.issn.1006-2475.2023.07.020

• 图像处理 • 上一篇    

基于改进YOLOv5s的太阳能电池缺陷检测算法

  

  1. (东北石油大学物理与电子工程学院,黑龙江 大庆 163318)
  • 出版日期:2023-07-26 发布日期:2023-07-27
  • 作者简介:罗伟(1977—),男,黑龙江绥化人,副教授,博士,研究方向:人工智能,计算机视觉,E-mail: lwsy711@163.com; 通信作者:刘思远(1999—),男,黑龙江绥化人,硕士研究生,研究方向:人工智能,计算机视觉,E-mail: 95254378@qq.com。徐健祥(1996—),男,河南洛阳人,硕士研究生,研究方向:人工智能,计算机视觉,E-mail: xujianxiang1231@163.com; 董天培(1996—),男,河南洛阳人,硕士研究生,研究方向:人工智能,计算机视觉,E-mail: 595537197@qq.com。

Improved Solar Cell Defect Detection Algorithm Based on YOLOv5s

  1. (School of Physics and Electronic Engineering, Northeast Petroleum University, Daqing 163318, China)
  • Online:2023-07-26 Published:2023-07-27

摘要: 太阳能电池生产制造的过程中,由于制造工艺的不完善和人为操作失误等原因可能导致太阳能电池片出现破损、裂缝、断栅和硅材料缺失等类型的缺陷。为了提高太阳能电池缺陷检测准确率,本文提出一种基于YOLOv5s算法的太阳能电池缺陷检测算法YOLOv5s-CG。在主干网络和特征融合层不同位置引入卷积注意力机制(CBAM),主干网络的注意力机制关注全局信息,特征融合层的注意力机制关注局部信息,同时在空间和通道2种维度上进行特征增强,并用GIOU损失函数评估检测效果。使用重新标注的公开太阳能电池数据集对提出的算法进行实验验证,实验结果表明,YOLOv5s-CG算法的全类平均精度(mAP)达到了75.1%,与YOLOv5s算法比较,各种类型的缺陷检测精度都有所提升,其中裂缝和硅材料缺失的精度分别提升了0.036、0.033,全类平均精度(mAP)提高了0.026;与主流的目标检测算法SSD相比,全类平均精度(mAP)提升了0.123。本文算法能够更加高效地检测太阳能电池的缺陷,为实际生产提供更好的检测算法。

关键词: 太阳能电池缺陷检测, 目标检测, 深度学习, YOLOv5, 注意力机制

Abstract:  In the process of manufacturing solar cells, due to the imperfect manufacturing processes and operational failure of humans, the defects, such as broken cell, crack, finger failure and silicon material missing might be found in the solar cells. A solar cell defect detection model based on YOLOv5s, namely YOLOv5s_CG, is proposed to improve the precision of the solar cell defects detection. The algorithm introduces convolutional attention mechanism (CBAM) blocks in different positions of the backbone network and feature fusion layer. The attention mechanism of the backbone network focuses on the global information, and the attention mechanism of the feature fusion layer focuses on the local information. At the same time, it enhances the features in both spatial and channel dimensions and uses the GIOU loss function to evaluate the detection effect of the algorithm. The proposed method is tested on the open source solar cell dataset which is re-labeled by the authors. The experimental results show that the overall mean average precision (mAP) of the YOLOv5s-CG algorithm reaches 75.1%. Compared with the algorithm of YOLOv5s, various types of defect detection accuracy have been improved, among which the accuracy of crack and silicon material missing has increased by 0.036 and 0.033 respectively, and the average accuracy (mAP) of all classes has increased by 0.026. Compared with the mainstream target detection algorithm of SSD, the overall mean average precision (mAP) has improved by 0.123. The algorithm can accurately detect the defects of solar cells, which could provide a better defects detection algorithm for real solar cell production.

Key words: solar cell defect detection, object detection, deep learning, YOLOv5, attention mechanism

中图分类号: