对抗型半监督光伏面板故障检测
Generative adversarial networks based semi-supervised fault detection for photovoltaic panel
- 2022年27卷第10期 页码:3031-3042
收稿:2021-03-31,
修回:2021-7-1,
录用:2021-7-8,
纸质出版:2022-10-16
DOI: 10.11834/jig.210220
移动端阅览

浏览全部资源
扫码关注微信
收稿:2021-03-31,
修回:2021-7-1,
录用:2021-7-8,
纸质出版:2022-10-16
移动端阅览
目的
2
传统的光伏面板故障检测主要依靠人工巡检,效率低下且误检率很高,而流行的基于机器视觉的智能检测方法又面临缺少大量负样例造成故障检测模型准确性偏低的问题。针对上述问题,本文提出一种基于对抗训练的半监督异常检测模型
通过应用梯度中心化(gradient centralization,
$$ {\rm{GC}}$$
)和
$$ {\rm{Smooth}}\ {\rm{L1}}$$
损失函数,使模型具有更好的准确性和鲁棒性。
方法
2
通过构建半监督异常检测模型并定义目标函数,将正常的光伏面板图像作为正样例原图输入半监督异常检测模型进行模型训练。然后将待测光伏面板图像输入到训练好的半监督异常检测模型,生成该待测图像对应的重建图像。最后通过计算待测原图像与其重建图像隐空间向量之间的误差来判断该待测光伏面板是否存在异常。
结果
2
本文以浙江某光伏电站采集的光伏面板为实验对象,将本文方法与Pre-trained VGG16(Visual Geometry Group 16-layer network)、AnoGAN(anomaly generative adversarial network)、GANomaly等方法进行比较,AUC(area under curve)分别提高了0.12、0.052和0.033。
结论
2
实验结果证明,本文提出的基于生成对抗网络的半监督异常检测模型大幅提高了光伏面板故障检测的准确率。
Objective
2
Global clean energy development has promoted the annual installed capacity of photovoltaic (PV)
and the following failure rate of PV panel has been increasing as well. Traditional PV panel fault detection relies on manual inspection
which has low efficiency and high false detection rate. Currently
the intelligent PV panel fault detection method is more practical based on machine vision. To solve PV panel fault detection
many studies used convolutional neural networks (CNNs)
and these models are based on supervised learning. However
supervised learning method is not adequate due to the lack of negative samples. Our research is focused on training a semi supervised network that detects anomalies using a dataset that is highly biased towards a particular class
i.e.
only use positive samples for training. The generative adversarial network (GAN) can produce good output through the mutual game learning of two modules (at least) in the framework
including the generative model and the discriminant model. Conditional GAN introduces condition variable via generator and discriminator. This additional condition variable can be used to guide the generated data by generator. The gradient descent is challenged more while the number of layers of neural network increasing. Most activation or weight execution methods are challenged in the context of gradient disappearance
gradient explosion and non-convergence. To improve the generalization performance of the deep convolution network
gradient centralization (
$$ {\rm{GC}}$$
) is applied on conditional GAN to resist over fitting through regularizing weight space and output feature space.
Method
2
To complete the PV panel fault detection with efficiency and accuracy
we use a semi supervised anomaly detection model which combines the adversarial auto-encoders and the conditional GAN. First
a novel model is constructed based on semi supervised generative countermeasure network. Second
three loss functions are defined to optimize individual sub-networks
i.e.
adversarial loss
encoder loss
and contextual loss. This model use smooth L1 loss to define the loss because it can optimize the advantages of L1 loss and L2 loss to speed up the training of the model. Next
the objective function
$$ L$$
is obtained by the weighted sum of the three loss functions. Third
the original optimization function is added with
$$ {\rm{GC}}$$
to regularize the weight and output space for over fitting prevention. To reduce the error between the reconstructed image and its input original image
the generator network is used to learn the data distribution of the positive sample in the PV panel dataset
and the discriminator network is used for adversarial training. The generator can capture the training data distribution within PV panel image and its latent space vector both. Fourthly
the generator will first encode it into latent space vector for testing when the normal PV panel image is put into the trained model
and then decode it into the reconstructed image. The illustration of reconstructed image generated by the model is equivalent to the input image. Thanks to the data distribution learned by the generator
the error between the input normal PV panel image and its reconstructed image is smaller than the threshold
which is defined by the anomaly model. However
the reconstructed image is not similar to the input image when the abnormal PV panel image is put into the model. The error between the input image and its reconstructed image is bigger than the threshold due to no learned data distribution by the generator. Finally
the model can detect abnormal PV panel via the existing error between the input image and its reconstructed image.
Result
2
This dataset of the PV panel image is collected by Zhejiang Power Plant and photographed by unmanned aerial vehicle (UAV). The original image size is 3 840 × 2 048 pixels. The color and pattern of PV panel image are single and regular. The original images are cut into the size of 32 × 32 pixels and the following 32 000 sub images are obtained because dividing a large image into several small images has no negative impact on the model. The training set is randomly selected from the total sample by 80%
and the test set is the remaining 20%
that is
the size of the training set is 25 600
and the size of the test set is 6 400. Because the image size is 32 × 32 pixels and the color image is reflected in three channels
the input size of the encoder is 32 × 32 × 3
the convolution kernel of 4 × 4 is used. The first three layers of convolution are filled with 0 edges and the number is 1
and the step size of convolution kernels is 2. In the last step
1 × 100 convolution space is used to fill the final volume. The structure of decoder and encoder is symmetrical. The first layer of transposed convolution has no filling
and the last three layers are filled with 1 and 2 steps. The first three layers transpose the convolution layer
and then add batch standardization layer and ReLU activation function layer. The reconstructed image with the size of 32 × 32 × 3 is as the output. Then
the normal PV panel image is used as input of the semi supervised anomaly detection model as the original image of the positive sample
then the model is trained. The momentum parameter is set to 0.999
the learning rate is set to 0.000 2
and the batch size is set to 64. After the training of the model
the test PV panel image is input into the trained semi supervised anomaly detection model
and its reconstructed image is generated by the generator network. The error is calculated between the original PV panel image and its reconstructed image. Finally
the model can clarify the PV panel is normal or abnormal in terms of the error is less than the adaptive threshold or not. Our method is compared to the pretrained Visual Geometry Group 16-layer network(VGG16)
anomaly generative adversarial network(AnoGAN)
GANomaly
etc
and the area under curve (AUC) is improved by 0.12
0.052 and 0.033
respectively.
Conclusion
2
In this semi supervised anomaly detection model
a large number of positive samples are needed to be included in the training samples with no labels. The semi supervised anomaly detection model does not need a large number of negative examples in comparison with supervised learning
which solves the problem of the lack of negative examples. Furthermore
the proposed model combines the advantages of
$$ {\rm{GC}}$$
and ganomaly to make the PV panel anomaly detection results more accurate.
Akcay S, Atapour-Abarghouei A and Breckon T P. 2018. GANomaly: semi-supervised anomaly detection via adversarial training//Proceedings of the 14th Asian Conference on Computer Vision. Perth, Australia: Springer: 622-637 [ DOI: 10.1007/978-3-030-20893-6_39 http://dx.doi.org/10.1007/978-3-030-20893-6_39 ]
Bastari A, Bruni A and Cristalli C. 2010. Classification of silicon solar cells using electroluminescence texture analysis//Proceedings of 2010 IEEE International Symposium on Industrial Electronics. Bari, Italy: IEEE: 1722-1727 [ DOI: 10.1109/ISIE.2010.5636322 http://dx.doi.org/10.1109/ISIE.2010.5636322 ]
Dolara A, Lazaroiu G C, Leva S, Manzolini G and Votta L. 2016. Snail trails and cell microcrack impact on PV module maximum power and energy production. IEEE Journal of Photovoltaics, 6(5): 1269-1277 [DOI: 10.1109/JPHOTOV.2016.2576682]
Goodfellow I J, Pouget-Abadie J and Mirza M. 2014. Generative adversarial nets//Proceedings of the 27th International Conference on Neural Information Processing Systems. Montreal, Canada: ACM: 2672-2680 [ DOI: 10.5555/2969033.2969125 http://dx.doi.org/10.5555/2969033.2969125 ]
Ioffe S and Szegedy C. 2015. Batch normalization: accelerating deep network training by reducing internal covariate shift//Proceedings of the 32nd International Conference on International Conference on Machine Learning. Lille, France: ACM: 448-456 [ DOI: 10.5555/3045118.3045167 http://dx.doi.org/10.5555/3045118.3045167 ]
Kontges M, Kurtz S, Packard C, Jahn U, Berger K A, Kato K, Friesen T, Liu H T and Van Iseghem M. 2014. Review of Failures of Photovoltaic Modules. Report IEA-PVPS T13-01: 2014. IEA: 1-140
Li X X, Yang Q and Chen Z B. 2017. Visible defects detection based on UAV-based inspection in large-scale photovoltaic systems. IET Renewable Power Generation, 11(10): 1234-1244 [DOI: 10.1049/iet-rpg.2017.0001]
Li X X, Yang Q, Yan W J and Chen Z B. 2018. Intelligent fault pattern recognition of aerial photovoltaic module images based on deep learning technique. Journal of Systemics, Cybernetics and Informatics, 16(2): 67-71
Makhzani A, Shlens J, Jaitly N, Goodfellow I and Frey B. 2015. Adversarial autoencoders [EB/OL]. [2021-05-25] . https://arxiv.org/pdf/1511.05644.pdf https://arxiv.org/pdf/1511.05644.pdf
Mao X D, Li Q, Xie H R, Lau R Y K, Wang Z and Smolley S P. 2017. Least squares generative adversarial networks//Proceedings of 2017 IEEE International Conference on Computer Vision. Venice, Italy: IEEE: 2813-2821 [ DOI: 10.1109/ICCV.2017.304 http://dx.doi.org/10.1109/ICCV.2017.304 ]
Quater P, Grimaccia F, Leva S, Mussetta M and Aghaei M. 2014. Light unmanned aerial vehicles (UAVs) for cooperative inspection of PV plants. IEEE Journal of Photovoltaics, 4(4): 1107-1113 [DOI: 10.1109/JPHOTOV.2014.2323714]
Sadok M, Benyoucef B and Benmedjahed M. 2016. Assessment of PV modules degradation based on performances and visual inspection in Algerian Sahara. International Journal of Renewable Energy Research, 6(1): 106-116
Sawyer D E and Kessler H K. 1980. Laser scanning of solar cells for the display of cell operating characteristics and detection of cell defects. IEEE Transactions on Electron Devices, 27(4): 864-872 [DOI: 10.1109/T-ED.1980.19948]
Schlegl T, Seebck P, Waldstein S M, Schmidt-Erfurth U and Langs G. 2017. Unsupervised anomaly detection with generative adversarial networks to guide marker discovery//Proceedings of the 25th International Conference on Information Processing in Medical Imaging. Boone, USA: Springer: 146-147 [ DOI: 10.1007/978-3-319-59050-9_12 http://dx.doi.org/10.1007/978-3-319-59050-9_12 ]
Tabanjat A, Becherif M and Hissel D. 2015. Reconfiguration solution for shaded PV panels using switching control. Renewable Energy, 82: 4-13 [DOI: 10.1016/j.renene.2014.09.041]
Tatapudi S, Libby C, Raupp C, Srinivasan D, Kuitche J, Bicer B and TamizhMani G. 2016. Defect and safety inspection of 6 PV technologies from 56 000 modules representing 257 000 modules in 4 climatic regions of the United States//Proceedings of the 43rd IEEE Photovoltaic Specialists Conference (PVSC). Portland, USA: IEEE: 1747-1751 [ DOI: 10.1109/PVSC.2016.7749923 http://dx.doi.org/10.1109/PVSC.2016.7749923 ]
Tsuzukik K, Murakamit T and Yoshinot T. 2001. Method of inspection and production of solar cell modules. USA, No. 6271462
Xu B, Wang N Y, Chen T Q and Li M. 2015. Empirical evaluation of rectified activations in convolutional network [EB/OL]. [2021-11-27] . http://arxiv.org/pdf/1505.00853.pdf http://arxiv.org/pdf/1505.00853.pdf
Yang T, Zhao L Y and Wang C S. 2019. Review on application of artificial intelligence in power system and integrated energy system. Automation of Electric Power Systems, 43(1): 2-14
杨挺, 赵黎媛, 王成山. 2019. 人工智能在电力系统及综合能源系统中的应用综述. 电力系统自动化, 43(1): 2-14 [DOI: 10.7500/AEPS20180706005]
Yong H W, Huang J Q, Hua X S and Zhang L. 2020. Gradient centralization: a new optimization technique for deep neural networks//Proceedings of the 16th European Conference on Computer Vision. Glasgow, UK: Springer: 635-652 [ DOI: 10.1007/978-3-030-58452-8_37 http://dx.doi.org/10.1007/978-3-030-58452-8_37 ]
Zhao Z X, Li B, Dong R and Zhao P. 2018. A surface defect detection method based on positive samples//Proceedings of the 15th Pacific Rim International Conference on Artificial Intelligence. Nanjing, China: Springer: 473-481 [ DOI: 10.1007/978-3-319-97310-4_54 http://dx.doi.org/10.1007/978-3-319-97310-4_54 ]
Zhou N C, Liao J Q, Wang Q G, Li C Y and Li J. 2019. Analysis and prospect of deep learning application in smart grid. Automation of Electric Power Systems, 43(4): 180-191
周念成, 廖建权, 王强钢, 李春艳, 李剑. 2019. 深度学习在智能电网中的应用现状分析与展望. 电力系统自动化, 43(4): 180-191 [DOI: 10.7500/AEPS20180323002]
相关作者
相关机构
京公网安备11010802024621