Ren Xiwei, Yu Jie, Han Xin, et al. PHOTOVOLTAIC MODULE DEFECT DETECTION METHOD BASED ON IMPROVED YOLOV5S NETWORK[J]. 2025, 46(3): 428-434. DOI: 10.19912/j.0254-0096.tynxb.2023-1934.
PHOTOVOLTAIC MODULE DEFECT DETECTION METHOD BASED ON IMPROVED YOLOV5S NETWORK
摘要
鉴于光伏组件排列密集
缺陷目标较小
难以检测维护
直接影响光伏组件发电效率
提出一种改进YOLOv5s网络的光伏组件缺陷检测方法。首先
针对光伏组件红外图像中缺陷尺寸特性
使用K-均值++算法对缺陷目标重新聚类
确定合适的锚框大小
使其聚类锚框更符合小目标特征;然后
使用简化BiFPN融合更多的特征
在融合之前添加一个多通路残差连接模块
提高对小目标光伏缺陷的敏感度;其次
将YOLOv5s骨干网络进行融合
简化网络结构
减少下采样次数
提高图像分辨率以及丰富小目标特征信息;之后
将S
IoU
损失函数引入到YOLOv5s架构中
提高网络性能
让网络部署到小型、轻量化设备;最后
将改进的YOLOv5s网络在自建的光伏组件红外图像缺陷数据集进行测试。实验结果表明
改进的YOLOv5s网络光伏组件缺陷检测方法优于对比方法
相比于原始网络
改进网络的m
AP@0.5
提高1.7%
每秒帧率达到46.3
完全满足光伏组件缺陷检测过程中的实际需求。
Abstract
Given the dense arrangement and small target size of photovoltaic modules
which make defect detection and maintenance challenging and directly impact the power generation efficiency of photovoltaic modules
an improved method for detecting defects in photovoltaic modules using the YOLOv5s network is proposed. Firstly
considering the size charact eristics of defects in infrared images of photovoltaic modules
the K-means++ algorithm is used to re-cluster defect targets
determining appropriate anchor box sizes to ensure that the clustered anchor boxes better fit the characteristics of small targets. Then
a simplified BiFPN is employed to fuse more feat
ures
with a multi-path residual connection module added before fusion to enhance sensitivity to small target photovoltaic defects. Furthermore
the YOLOv5s backbone network is merged
simplifying the network structure
reducing the number of downsampling operations
increasing image resolution
and enriching information on small target features. Subsequently
the S
IoU
loss function is introduced into the YOLOv5s architecture to improve network performance
enabling deployment on small
lightweight devices. Finally
the improved YOLOv5s network is tested on a self-built dataset of infrared images of photovoltaic module defects. Experimental results demonstrate that the improved YOLOv5s network for photovoltaic module defect detection outperforms the baseline methods. Compared to the original network
the improved network’s m
AP@0.5
increased by 1.7%
reaching an FPS of 46.3
fully meeting the practical requirements of photovoltaic module defect detection.
SONG X Y, YANG L, XIA X H, et al.Defect detection method for solar cells based on human visual characteristics[C]//2020 5th International Conference on Mechanical, Control and Computer Engineering (ICMCCE). Harbin, China, 2020: 515-518.
ALI M U, KHAN H F, MASUD M, et al.A machine learning framework to identify the hotspot in photovoltaic module using infrared thermography[J]. Solar energy, 2020, 208: 643-651.
TAN M X, PANG R M, LE Q V.EfficientDet: scalable and efficient object detection[C]//2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Seattle, WA, USA, 2020: 10778-10787.
WANG K X, LIEW J H, ZOU Y T, et al.PANet: few-shot image semantic segmentation with prototype alignment[C]//2019 IEEE/CVF International Conference on Computer Vision (ICCV). Seoul, Korea (South), 2019: 9196-9205.
SRIVASTAVA A, CHANDA S, JHA D, et al.PAANet: progressive alternating attention for automatic medical image segmentation[C]//2021 4th International Conference on Bio-Engineering for Smart Technologies (BioSMART). Paris, France, 2021: 1-4.
LIU W, ANGUELOV D, ERHAN D, et al.SSD: single shot MultiBox detector[M].Lecture Notes in Computer Science. Cham: Springer International Publishing, 2016: 21-37.
REDMON J, FARHADI A. YOLOv3: an incremental improvement[J]. ArXiv preprint arXiv:1804.02767, 2018.