6617597
6617597
Research Article
Faults Detection for Photovoltaic Field Based on K-Means, Elbow,
and Average Silhouette Techniques through the Segmentation of a
Thermal Image
Copyright © 2020 Abdelilah Et-taleby et al. This is an open access article distributed under the Creative Commons Attribution
License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is
properly cited.
Clustering or grouping is among the most important image processing methods that aim to split an image into different groups.
Examining the literature, many clustering algorithms have been carried out, where the K-means algorithm is considered among
the simplest and most used to classify an image into many regions. In this context, the main objective of this work is to detect
and locate precisely the damaged area in photovoltaic (PV) fields based on the clustering of a thermal image through the K-
means algorithm. The clustering quality depends on the number of clusters chosen; hence, the elbow, the average silhouette, and
NbClust R package methods are used to find the optimal number K. The simulations carried out show that the use of the K-
means algorithm allows detecting precisely the faults in PV panels. The excellent result is given with three clusters that is
suggested by the elbow method.
1. Introduction trol the renewable energy system over recent years [5–7].
These techniques are based on the use of thermal cameras
Solar energy source is considered one of the most important and drones in order to detect the hottest areas in the PV field,
energy sources, which has attracted considerable attention as shown in Figure 1.
worldwide because it provides clean, reliable, and unlimited In this context, the applications of the machine learning
power. Furthermore, solar energy receives significant invest- algorithms to detect and locate the damaged area precisely
ments to develop and improve the productivity of the solar through the segmentation of a thermal image are
panels, which was evaluated for $131.1 billion in 2019 [1]. investigated.
Solar energy is captured using photovoltaic panels; these Segmentation, clustering, or grouping of data is an unsu-
latter present several faults and anomalies that influence the pervised machine learning technique that aims for the parti-
production of the PV systems. On this way, several tech- tion of data into many groups based on the similarity of
niques have been proposed in many works in the literature properties (e.g., color, size, and shapes). This technique has
to ensure reliable and efficient PV operation; these tech- been widely studied in the literature in a wide range of fields
niques are mainly split into two categories: electrical methods over recent years [8–11]. Therefore, several algorithms have
and nonelectrical methods. been proposed, such as the K-means algorithm (KMA)
Electrical methods are mostly based on I-V characteris- [12], the Fuzzy C Means algorithm (FCM) [13], and the
tics analysis [2], power losses analysis (PLA) [3], statistical Mean Shift algorithm (MSA) [14]. Among them, the K-
and signal processing approaches (SSPA) [4], etc. On the means method is acknowledged as the simplest, fastest, and
other hand, the nonelectrical techniques are based on infra- most popular clustering method. In spite of having these fea-
red thermography, which has known increasing use to con- tures, K-means has a disadvantage related to the number of
2 International Journal of Photoenergy
Clustering
Figure 1: Control photovoltaics field using thermal camera on
drone.
Hierarchical Partitional
Start
Define k from 1 to 10
Calculate the SSE value for each K Calculate the ASO value for each K
Locate the bend (knee) in the curve Locate the maximum point of the curve
End
1 bi − ai
Ck = 〠 〠 pðx, yÞ ð2Þ Si = , ð4Þ
k y∈C x∈C max ðai , bi Þ
k k
Step 5. Repeat steps 2, 3, and 4 until the center Ck no longer where bi = min ð∑ j dði, jÞ/jC j jÞ, C i ≠ C j and ai = min ð∑ j d
moves. ði, jÞ/jCi jÞ, Ci = C j .
The SW is considered as a performance indicator varying
Step 6. Reconstruction of the image by reshaping the pixels of from -1 to +1, where the optimal number of clusters is corre-
the cluster. sponding to the highest value.
4 International Journal of Photoenergy
43 67 96 78 43 100
78 96 115
96 67 123
96 122 143
…
…
113 145 172
1e9 The elbow method showing the optimal k The silhouette method showing the optimal k
2.00
0.7
1.75
0.6
1.50
Average silhouette
0.5
1.25
Inertia
0.4
1.00
0.75 0.3
0.50 0.2
0.25 0.1
0.00 0.00
2 4 6 8 10 2 4 6 8 10
Number of clusters k Number of clusters k
Figure 8: Optimal number of clusters suggested by the elbow and the average silhouette methods.
Segment 1 Segment 2
Figures 10 and 11 present the outputs results of applying sents excellent results that allow to detect and identify the
the K-means algorithm on a thermal image of solar panels, damaged areas that are presented in segment 3. Hence, the
using the optimal values of clusters suggested, respectively, elbow method has given the most optimal number of clusters
by the Elbow and the average silhouette methods. than the average silhouette method.
The output results are fragmented into segments depend- Four results were carried out in Figure 12 in order to val-
ing on the number of clusters. It is evident that Figure 11 pre- idate the effectiveness of the K-means algorithm for detecting
6 International Journal of Photoenergy
the faults in PV panels. As can be noticed from this table, the of the article by all the team, M. Bousseta submitted the arti-
K-means algorithm has successively detected all faults pre- cle to the journal. All authors of this research paper have
sented in the four thermal images of PV panels. directly participated in the planning, execution, or analysis
Finally, the K-means algorithm with the optimal number of this study. All authors read and approved the final
of clusters has demonstrated the excellent performance that manuscript.
can be integrated to the drone and the thermal system to
identify precisely the damaged solar panels in the PV field.
References
5. Conclusion [1] T. Ajadi, V. Cuming, R. Boyle et al., Global Trends in Renew-
able Energy Investment 2020, 2020.
The energy demand has increased quite fast, which requires [2] A. Mellit, G. M. Tina, and S. A. Kalogirou, “Fault detection and
the improvement of all energy sources. Especially, solar diagnosis methods for photovoltaic systems: a review,” Renew-
energy providing clean, reliable, and unlimited energy. able and Sustainable Energy Reviews, vol. 91, pp. 1–17, 2018.
Accordingly, many works have been studied to diagnose [3] J. Solórzano and M. A. Egido, “Automatic fault diagnosis in
and control the production of PV panels, among them, the PV systems with distributed MPPT,” Energy Conversion and
thermal drone system, which allows controlling the vast Management, vol. 76, pp. 925–934, 2013.
farms of PV panels. [4] F. Harrou, Y. Sun, B. Taghezouit, A. Saidi, and M.-E. Hamlati,
In this paper, the application of the K-means algorithm “Reliable fault detection and diagnosis of photovoltaic systems
is investigated to cluster a thermal image of PV panels and based on statistical monitoring approaches,” Renewable
automatically detect the damaged areas. The quality of Energy, vol. 116, pp. 22–37, 2018.
clustering depends on selecting an optimal number of clus- [5] B. Du, Y. He, Y. He, and C. Zhang, “Progress and trends in
ters; hence, the elbow and the average silhouette methods fault diagnosis for renewable and sustainable energy system
were used. based on infrared thermography: a review,” Infrared Physics
The K-means algorithm and elbow method together pro- & Technology, vol. 109, p. 103383, 2020.
vide excellent results to find and detect precisely the faulty [6] Z. A. Jaffery and A. Haque, “Temperature measurement of
panels. Therefore, this algorithm can be integrated into the solar module in outdoor operating conditions using thermal
thermal drone system to find the faults in the PV system eas- imaging,” Infrared Physics & Technology, vol. 92, pp. 134–
ily and in real-time, especially for large PV fields. 138, 2018.
[7] M. Cubukcu and A. Akanalci, “Real-time inspection and
determination methods of faults on photovoltaic power sys-
Abbreviations tems by thermal imaging in Turkey,” Renewable Energy,
ASM: Average silhouette method vol. 147, pp. 1231–1238, 2020.
EM: Elbow method [8] A. Khan, Z. ur Rehman, M. A. Jaffar et al., “Color image seg-
FCM: Fuzzy C means algorithm mentation using genetic algorithm with aggregation-based
clustering validity index (CVI),” Signal, Image and Video Pro-
GSM: Gap statistic method
cessing, vol. 13, no. 5, pp. 833–841, 2019.
HSV: Hue, saturation, and value
[9] M. Ali, M. Khan, and N. T. Tung, “Segmentation of dental X-
KMA: K-means algorithm ray images in medical imaging using neutrosophic orthogonal
MSA: Mean shift algorithm matrices,” Expert Systems with Applications, vol. 91, pp. 434–
SSE: Sum of squared errors 441, 2018.
SSPA: Statistical and signal processing approaches [10] T. Ren, H. Wang, H. Feng, C. Xu, G. Liu, and P. Ding, “Study
SW: Silhouette width on the improved fuzzy clustering algorithm and its application
PLA: Power losses analysis in brain image segmentation,” Applied Soft Computing, vol. 81,
PV: Photovoltaic p. 105503, 2019.
RGB: Red, green, and blue. [11] X. Ji, J. F. Henriques, and A. Vedaldi, “Invariant information
clustering for unsupervised image classification and segmenta-
Data Availability tion,” in Proceedings of the IEEE/CVF International Conference
on Computer Vision (ICCV), pp. 9865–9874, Seoul, Korea
The data used to support the findings of this study have not (South), 2019.
been made available because it is confidential. [12] D. Li, S. Wang, N. Gao, Q. He, and Y. Yang, “Cutting the
Unnecessary Long Tail: Cost-Effective Big Data Clustering in
Conflicts of Interest the Cloud,” IEEE Transactions on Cloud Computing, p. 1,
2019.
The authors declare that they have no competing interests. [13] J. C. Bezdek, Fuzzy Mathematics in Pattern Classification, [Ph.
D. thesis], Applied Mathematics, Cornell University, 1973.
Authors’ Contributions [14] K. Wisaeng and W. Sa-Ngiamvibool, “Exudates detection
using morphology mean shift algorithm in retinal images,”
A. Et-taleby carried out the simulations. The results were dis- IEEE Access., vol. 7, pp. 11946–11958, 2019.
cussed and evaluated by M. Boussetta and M. Benslimane. A. [15] M. A. Syakur, B. K. Khotimah, E. M. S. Rochman, and B. D.
Et-taleby wrote the first version of the paper, M. Boussetta Satoto, “Integration K-Means Clustering Method and Elbow
corrected and modified it afterwards, and after supervision Method for Identification of the Best Customer Profile
International Journal of Photoenergy 7