An Efficient Intelligent Power Detection Method for Photovoltaic System
An Efficient Intelligent Power Detection Method for Photovoltaic System
I. INTRODUCTION
Nowadays, producing Energy from solar system is very II. 1 MWP TTU PV POWER PLANT
important as the conventional energy has noticeable bad impact
Jordan government encourages all public universities to
on environment. Many methods are used to analyze, develop, invest in solar PV system to decrease their electricity bills.
design, and control the photovoltaic system. Such methods are Tafila Technical University started with 1 MWp project in 2016
very important especially when integrating renewable sources that cost € 1.4 million. After three years, this successful project
with conventional power [5-7]. has generated 5.4 GWH and save about € 1.5 million. The 1
The efficiency of a solar panel depends on three main factors: MWp TTU PV power plant (Fig.4) consists of 3,876 265-Wp
the efficiency of the model used for a particular panel, the PV modules of type SR-P660 245-265 manufactured by Sunrise
Energy Co. The modules are distributed on the rooftops of
number of photovoltaic model inside each solar cell, and the university buildings and car parks inside the university campus
amount of sunlight that the PV panel received. After installing as shown in Fig. 4. Four transformers are used in TTU electrical
the PV panels, inverters are added to transfer electricity from system to supply the output AC power to the buildings as shown
direct current (DC) to alternating current (AC). The efficiency in Tables 1.
of a solar panel depends on the solar incident angle. When the
The learning model (Fig. 8) is based on Decision Tree. predicted based on the training instances. The Decision maker
Decision Tree classifier uses the training data to build a tree output will be the amount of output power. It has four labels;
model that can be used later for classification purposes. Very Low, Medium, High, Very High. Fig. 9 shows the testing
Currently, many decision tree algorithms exist including model block diagram.
Random Forest, Random Tree, J48, and CART. Based on the
output accuracy, the features set is selected. The best set is A decision tree partition the input space of the dataset into
associated with the higher output power accuracy. There are mutually exclusive regions by giving each region a label. The
many different reduction techniques available including decision tree that consists of a root and internal nodes grows
Principal Component Analysis (PCA), and Chi-Squared for from a root node, by determining the best split that partition the
feature selection and reduction. In this paper, PCA is used as a region at internal nodes in to disjoint smaller subset and proceed
reduction technique [13],[15]. down to the leaf node (terminal nodes) labeled as – Very Low,
Medium, High, and Very High. In order to do the split an error
function that quantifies the performance of a node t in separating
The extracted data from the databases includes Average data from different classes. The used error function is impurity
Temperature, Wind speed, Humidity, Visibility, Heat index, function. The best-known impurity functions for splitting is
Pressure, Weather description, cloud cover and generated entropy function and Gini index. By using the impurity
power. After preprocessing phase and feature selection, six Function φ, the impurity measure of a given node is calculated
features are used. Five features are used as input features and to do the splitting. Fig 10 shows the steps of decision tree
one feature is used as output class. The six features are Average methodology.
Temperature, Humidity, Pressure, cloud cover, Heat index and
generated output (output class). The Decision maker is based
on decision tree classifiers. When a new data values, previously
unseen, is presented to the decision maker, the class is
A normalization is applied to the output power values in Level 4: value from 0.80 to 1.0 represents Very
order to label them. The power values are normalized to values High Similarity generated power amount.
between zero and one. Each generated output power is assigned
as a level that belongs to one of the four levels, i.e., The levels The blended database has been constructed from the two
are shown below: databases in order to train and test the decision maker model
Level 1: value from 0.00 to 0.39 represents Very after assigning the power output level for each record. Table 5
Low generated power amount. shows some records from the bended database.
Level 2: value from 0.40 to 0.59 represents
Medium Similarity generated power amount. Fig. 16 shows the histogram of five feature with a projection
Level 3: value from 0.60 to 0.79 represents High of output power label presented as colors.
Similarity generated power amount.
Recall (R) is the ratio of the relevant data among the retrieved.
In this study, WEKA (Waikato Environment for Knowledge Precision (P) is the ratio of the accurate data among the
Analysis) is used to construct decision trees according to the retrieved data. Their formulas are given as follow:
training set with the standard algorithm J48. Weka is a popular
suite of machine learning software written in Java, developed at 𝑹𝒆𝒄𝒂𝒍𝒍(𝑹) =
𝑻𝑷
if TP+FN > 0, otherwise undefined.
the University of Waikato, New Zealand. Weka is a free 𝑻𝑷 𝑭𝑵
software tool available under the GNU General Public License. The recall of a class “Very Low” is defined as:
It contains a collection of visualization tools and algorithms for 𝑎
data analysis and predictive modelling that support data pre- 𝑅 =
processing, clustering, classification, regression, visualization, 𝑆𝑢𝑚_𝐶1
and feature selection. Weka has a powerful Graphical User 𝑻𝑷
Interface that supports its functionality. 𝑷𝒓𝒆𝒄𝒊𝒔𝒊𝒐𝒏(𝑷) = if TP+FN > 0, otherwise undefined.
𝑻𝑷 𝑭𝑷
Once the features are extracted and grouped into a feature The precision of a class “Very Low” is defined as:
vector, classification takes place, where the output power
values are classified in one of the following classes: Very Low, 𝑎
𝑃 =
Medium, High, Very High. J48 (C4.5) is an algorithm used to 𝑆𝑢𝑚_𝑟1
generate a decision tree. It has been developed by John Ross
Quinlan [33]. C4.5 is an extension of Quinlan's earlier ID3 Classifier F1 rating is the harmonic mean of the classifier recall
algorithm. The decision trees generated by C4.5 is normally and the precision. It is given as
used for classification. It has been ranked first in the Top 10
Algorithms in Data Mining algorithm [34]. 𝟐∗𝑷∗𝑹
𝑭𝟏 =
Java was selected as the development language, and J2SDK 𝑷+𝑹
version 1.6.0_22 was used for the Java running environment. where R represents the recall, , and P represents the precision
Access database 2013 is adopted for the development of
database. Java database connectivity (JDBC), an application- Accuracy, which indicates the fraction of correctly classified
programming interface for the Java programming language, is samples among all the samples, obtained by:
used to access the database. JDBC could wrap a structured
query language (SQL) statement, send it to the database, and 𝑻𝑷 + 𝑻𝑵
𝑨𝒄𝒄𝒖𝒓𝒂𝒄𝒚 =
retrieve the desire. 𝑻 𝑷 + 𝑻 𝑵 + 𝑭𝑷 + 𝑭𝑵
Part of extracted data from January, 1st, 2017 to February 12,
2020 (774 records excluding 2018 in order to be used later for 𝑎+𝑓+𝑘+𝑃
validation) has been used for training and testing the decision =
𝑇𝑜𝑡𝑎𝑙
maker module. The confusion matrix for each class (Very Low,
Medium, High Very High) is constructed. The confusion matrix Kappa statistic is used to give the agreement between
has the form shown in Table 6. developed model and the actual PV system. A Kappa score
ranges between 1 which shows full agreement and 0 which
Table 6. Confusion matrix shows no agreement. Table 7 shows the resulted power output
Very Medium High Very evaluation results.
Low High
Very Low a b c D Sum_r1 Table 7. Overall performance results (training and testing set).
Medium e f g H Sum_r2 Decision Tree
High i j k L Sum_r3 Correctly Classified Instances 634
Very m n o P Sum_r4 Correctly Classified 82.0181 %
High Percentage
Sum Sum_c1 Sum_c2 Sum_c3 Sum_c4 Total Incorrectly Classified 139
Instances
Incorrectly Classified 17.9819 %
10-fold cross validation is used in this paper. In K-fold the Percentage
training set will be randomly splitted into K sets that have Kappa statistic 0.7547
approximately the same size. Then the Decision Tree will be Mean absolute error 0.1356
trained using (K-2) subset. One of the two remaining subsets Root mean squared error 0.2604
will be used for validation and the last for testing. This process Relative absolute error 37.1043 %
will be repeated K times, while a different subset is used for Root relative squared error 60.9173 %
testing and validation. Total Number of Instances 773
The performance measurements used for this paper are recall, Another performance indicated by confusion matrix is shown
precision, classifier F1 rating and accuracy. They are defined as in Table 8. This confusion matrix is built based on data testing.
follows:
We constructed the confusion matrix for each class (Very Low, than 0.4, and fair to good agreement for kappa coefficient
Medium, High, Very High). between 0.40 and 0.75. In this paper, Kappa coefficient is 0.75,
which shows excellent agreement.
Table 8. Confusion matrix (training and testing set).
Output Real System As the number of features in database was eight features, we
Power used PCA dimensionality reduction method, and we selected
Very Medium High Very around 63% of the features (5 features) with the highest
Low High importance. The Accuracy percentage for each number of
Very 128 3 4 0 features is shown in Table 10.
Low
Medium 19 112 11 3 Table 10. Feature selection
High 6 9 182 50 Number of Features Accuracy (%)
Model
Temperature
(real System)
Cloud Cover
Heat Index
Power out
Power out
Humidity
Pressure
Average
(Model)
ID
1 36 30 1006 5 36 medium medium
2 35 26 1010 5 35 medium medium
3 32 45 1012 5 33 medium medium
4 26 44 1014 8 27 medium high
5 27 24 1010 19 26 medium medium
6 25 24 1017 25 24 medium medium
7 25 27 1011 35 24 medium medium
8 30 24 1008 6 29 medium medium
9 28 41 1006 7 28 medium medium
10 27 17 1011 15 26 medium medium
11 34 29 1011 9 33 high high
12 32 37 1016 5 32 high high
13 30 48 1016 5 31 high high
14 32 34 1015 13 31 high high
15 31 21 1006 11 30 high high
16 28 45 1015 7 29 high high
17 29 43 1014 7 29 high high
18 31 25 1008 12 29 high high
19 28 47 1013 8 28 high high
20 29 15 1008 42 28 high high
21 29 25 1008 35 28 high high
22 29 29 1008 19 28 high high
23 29 28 1007 10 28 high high
24 27 48 1005 6 28 high high
25 28 29 1015 8 27 high high
26 26 52 1014 9 27 high high
27 26 54 1013 19 27 high very low
28 28 22 1010 27 27 high high
29 25 51 1015 10 26 high high
30 27 22 1014 24 26 high high
31 27 25 1010 33 26 high high
32 26 18 1010 16 25 high high
33 25 33 1009 16 25 high high
34 25 21 1011 67 24 high high
35 34 15 1014 6 32 high high
36 33 26 1013 16 32 high high
37 30 23 1012 31 29 high high
38 26 29 1012 5 25 very high Very high
39 25 32 1012 5 25 very high very high
40 25 17 1012 10 24 very high very high
41 25 31 1012 6 24 very high very high
42 30 47 1015 14 32 very high very high
43 28 34 1008 7 28 very high very high
44 27 42 1008 20 27 very high very high
[15] D.A. Al Nadi and Ayman Mansour, "Independent International Conference on Renewable Energy Research
Component Analysis (ICA) for texture classification", 5th and Applications (ICRERA). IEEE, 2016.
International Multi-Conference on Signals and Devices, [29] Ebrahimi, S. Mohammadreza, et al. "Parameters
IEEE SSD, 2008. identification of PV solar cells and modules using flexible
[16] Almonacid, F. J. M. F., Rus, C., Hontoria, L., & Munoz, F. particle swarm optimization algorithm." Energy 179: 358-
J. “Characterisation of PV CIS module by artificial neural 372, 2019.
networks. A comparative study with other methods,” [30] Rajan, Naik Aashay, et al. "Solar PV array reconfiguration
Renewable Energy, 35(5), 973-980,2010. using the concept of standard deviation and genetic
[17] Garud, Kunal Sandip, Simon Jayaraj, and Moo‐Yeon Lee. algorithm." Energy Procedia 117: 1062-1069, 2017.
"A review on modeling of solar photovoltaic systems using [31] Kumari, P. Ashwini, and P. Geethanjali. "Adaptive genetic
artificial neural networks, fuzzy logic, genetic algorithm algorithm based multi-objective optimization for
and hybrid models." International Journal of Energy photovoltaic cell design parameter extraction." Energy
Research, 2020. Procedia 117: 432-441, 2017.
[18] Almonacid, Florencia, et al. "Review of techniques based [32] Ordiano, Jorge Ángel González, et al. "Photovoltaic power
on artificial neural networks for the electrical forecasting using simple data-driven models without
characterization of concentrator photovoltaic technology." weather data." Computer Science-Research and
Renewable and Sustainable Energy Reviews 75 : 938-953, Development 32.1-2: 237-246, 2017.
2017. [33] Quinlan JR. “C4. 5: programs for machine learning,”
[19] Rodríguez, Fermín, et al. "Predicting solar energy Elsevier; 2014.
generation through artificial neural networks using weather [34] Wu X, Kumar V, Quinlan JR, Ghosh J, Yang Q, Motoda
forecasts for microgrid control." Renewable energy 126: H, et al. “Top 10 algorithms in data mining,” Knowledge
855-864,2018. and Information Systems volume 14, pp 1–37, 2008.
[20] Monteiro, Raul VA, et al. "Estimating photovoltaic power
generation: performance analysis of artificial neural
networks, Support Vector Machine and Kalman filter." Dr. Ayman M Mansour received his
Electric Power Systems Research 143:643-656, 2017. Ph.D. degree in Electrical
[21] Kazem, Hussein A., Jabar H. Yousif, and Miqdam T. Engineering from Wayne State
Chaichan. "Modeling of daily solar energy system University in 2012. Dr. Mansour
prediction using support vector machine for Oman." received his M.Sc degree in Electrical
International Journal of Applied Engineering Research Engineering from University of
11.20: 10166-10172, 2016. Jordan, Jordan, in 2006 and his B.Sc
[22] Zendehboudi, Alireza, M. A. Baseer, and R. Saidur. degree in Electrical and Electronics
"Application of support vector machine models for Engineering from University of
forecasting solar and wind energy resources: A review." Sharjah, UAE, in 2004. He graduated top of his class in both
Journal of cleaner production 199: 272-285, 2018. Bachelor and Master. Currently, Dr. Mansour is an Associate
[23] Bae, Kuk Yeol, Han Seung Jang, and Dan Keun Sung. Professor in the Department of Communication and Computer
"Hourly solar irradiance prediction based on support vector Engineering, Tafila Technical University, Jordan. He is also the
machine and its error analysis." IEEE Transactions on director of the Energy Research Center at Tafila Technical
Power Systems 32.2: 935-945, 2016. University. His areas of research include Communication
[24] Mojumder, Juwel Chandra, et al. "Application of support Systems, Multi-agent Systems, Fuzzy Systems, Data Mining
vector machine for prediction of electrical and thermal and Intelligent Systems. He conducted several researches in his
performance in PV/T system." Energy and Buildings 111: area of interest. Dr. Mansour is a member of IEEE, Michigan
267-277,2016. Society of Professional Engineers, IEEE Honor Society (HKN),
[25] Liu, Zhao, and Ziang Zhang. "Solar forecasting by K- Society of Automotive Engineers (SAE), Tau Beta Pi Honor
Nearest Neighbors method with weather classification and Society, Sigma Xi and Golden Key Honor Society.
physical model." 2016 North American Power Symposium .
(NAPS). IEEE, 2016.
[26] Kartini, Unit Three, and Chao Rong Chen. "Short term Prof, Jalal M. Abdallah was born in
forecasting of global solar irradiance by k-nearest neighbor Amman, Jordan. He received his
multilayer backpropagation learning neural network M.S.1994 and Ph.D.1998 in electrical
algorithm." Proceedings of the International Conference on engineering from Vinitsa Stat Technical
Graphics and Signal Processing. 2017. University, Ukraine. Since 2005, he has
[27] Valgaev, Oleg, Friederich Kupzog, and Hartmut Schmeck. joined Tafila Technical University where
"Building power demand forecasting using K-nearest he is currently a Professor at the electrical
neighbours model–practical application in Smart City Engineering Department and the vice president of academic
Demo Aspern project." CIRED-Open Access Proceedings affairs. Dr. Jalal Abdallah main research interests are power
Journal 2017.1: 1601-1604, 2017. system analysis, monitoring, and diagnostic of high-voltage
[28] Mercado, Katheryn Donado, Jamer Jiménez, and M. power transformers.
Christian G. Quintero. "Hybrid renewable energy system
based on intelligent optimization techniques." 2016 IEEE
Dr. Mohammed Obeidat Received his He is a member of IEEE, Tau Beta PI Honor Society and
PhD in Electrical Engineering from Golden Key Honor Society. He was given the honor to be a
Wayne State University in 2013, M.Sc Sigma Xi member from the Board of Governor, in 2012. He
degree in Electrical Engineering was demonstrated excellent research and academic abilities as well
from Yarmouk University , Jordan in as professional potentials.
2006, and B.Sc degree in Electrical Dr. Obeidat has published several journal papers. Dr. Obeidat
Engineering from Jordan University of research of interest in the field of intelligent control systems,
Science & Technology, Jordan in 1999. renewable energy, intelligent systems, and mechatronics
He is an Associate professor in power and mechatronics
department at Tafila Technical University. Creative Commons Attribution License 4.0
(Attribution 4.0 International, CC BY 4.0)
This article is published under the terms of the Creative
Commons Attribution License 4.0
https://creativecommons.org/licenses/by/4.0/deed.en_US