Park 2021

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Journal of Mechanical Science and Technology 35 (2) 2021 DOI 10.

1007/s12206-021-0140-0

Journal of Mechanical Science and Technology 35 (2) 2021


Original Article
DOI 10.1007/s12206-021-0140-0
Predictive model for PV power generation
using RNN (LSTM)
Keywords:
· Recurrent neural network
Min Kyeong Park1, Jong Man Lee1, Won Hee Kang1, Jong Min Choi2 and Kwang Ho Lee3
· Deep learning
· Model predictive control 1
Graduate School, Department of Architecture, College of Engineering, Korea University, 145 Anam-ro,
· Renewable energy 2
· PV power generation
Seongbuk-gu, Seoul 02841, Korea, Department of Mechanical Engineering, Hanbat National University,
3
125 Dongseo-daero, Yuseong-gu, Daejeon 34158, Korea, Department of Architecture, College of Engi-
neering, Korea University, 145 Anam-ro, Seongbuk-gu, Seoul 02841, Korea
Correspondence to:
Kwang Ho Lee
kwhlee@korea.ac.kr Abstract In recent years, advanced information technologies, such as deep learning and
big data, have been actively applied in building energy management systems to improve en-
Citation: ergy efficiency. Various studies have been conducted on the prediction of renewable energy
Park, M. K., Lee, J. M., Kang, W. H., Choi, performance using machine learning techniques. In this study, a recurrent neural network
J. M., Lee, K. H. (2021). Predictive model
for PV power generation using RNN
(RNN) was utilized in predicting photovoltaic (PV) power generation. An RNN is an artificial
(LSTM). Journal of Mechanical Science neural network in which the connection between units is composed of a cyclic structure that can
and Technology 35 (2) (2021) 795~803. reflect the characteristics of time series. Therefore, to eventually incorporate a model predictive
http://doi.org/10.1007/s12206-021-0140-0
control technique for energy demand and supply matching, this study uses previously meas-
ured weather data and PV power generation data to predict the future PV power generation.
Received September 22nd, 2020 Various optimization processes, such as normalization, classification of learning data, and set-
Revised October 19th, 2020 ting of layer options, are performed to create a predictive model. Furthermore, 500 hidden neu-
Accepted October 19th, 2020 rons and 1 and 3 hidden layers are created and compared. The initial learning rate for both
single and multiple-layer options was set to 0.05. As a result, the coefficient of variation of the
† Recommended by Editor
Yong Tae Kang
root mean squared error, Cv(RMSE), which is a statistical index to assess the overall accuracy
of the predicted values, was 13.8 % for a single layer and 13.2 % for a multiple-layer long short
term memory model. Although no significant difference was observed between the two models,
the multiple-layer model showed a slightly reduced error rate than the single-layer model, and
the accurate prediction was confirmed to be achievable. Based on this study, a stable energy
supply system can be established through linkage with energy storage control by predicting the
amount of energy production through renewable energy sources and the amount of energy
demand at urban scale.

1. Introduction
According to the World Energy Outlook 2018 published by the International Energy Agency,
global energy demand is expected to increase by approximately 25 % by 2040, and, if energy
efficiency is not improved, the global demand will rise by approximately 50 % over the same
period [1]. Accordingly, several countries have set energy conservation and efficiency im-
provement as core strategies to address climate change and energy security by establishing
and promoting various countermeasures [2]. In addition, the global expansion of smart cities,
which intend to use information and communication technology as a new growth engine, is
rapidly progressing in accordance with the 4th industrial revolution fields such as big data
analysis, artificial intelligence, and robotics [3]. A smart city is a model that can solve urban
problems and achieve sustainability by incorporating new technologies into urban platforms
that address transportation, energy, and environmental issues [4]. At present, the Korean gov-
ernment is working to promote the greening of energy suppliers, for instance, by announcing
plans to expand the share of renewable energy generation, such as solar, geothermal, and fuel
cells, to 20 % by 2030 [5]. As part of these efforts, the implementation of zero-energy buildings
© The Korean Society of Mechanical
Engineers and Springer-Verlag GmbH and smart zero-energy cities has accelerated, and the share of renewable energy has in-
Germany, part of Springer Nature 2021 creased by 68 % [6].

795
Journal of Mechanical Science and Technology 35 (2) 2021 DOI 10.1007/s12206-021-0140-0

Therefore, advanced information technologies such as deep eration prediction results demonstrated that the proposed ap-
learning and big data have been actively applied in the building proach outperforms the persistence and SVM models and can
energy management system to improve energy efficiency. A have widespread applicability in limited data samples. Wang et
variety of studies have been performed thus far on the predic- al. [13] proposed a hybrid model based on convolutional neural
tion of renewable energy sources using machine learning network and LSTM network models, which were applied to the
technique. One such technology is recurrent neural network obtained data in the PV system. The results of the deep learn-
(RNN), an artificial neural network in which the connection ing model proposed on PV power prediction also indicate that
between units is composed of a cyclic structure that reflects the deep learning is useful in improving the accuracy of PV power
characteristics of time series. The RNN has a disadvantage in prediction.
that when the distance between the related information and the Shin and Kim [14] proposed a short-term deep learning pre-
point using the information is far, the gradient gradually de- diction model for solar power generation using meteorological
creases and the learning ability is degraded [7]. To compen- data from the Mokpo meteorological agency and generation
sate for this limitation, recent studies have explored the use of data from the Yeongam solar power plant. The forecasted
long short-term memory (LSTM) technique of RNN. The re- power generation of the proposed model show an average
search directions related to RNN and LSTM techniques in the RMSE and mean absolute error of 0.177 and 0.095 for deep
building and urban energy field are the following. neural network and 0.116 and 0.067 for RNN. Furthermore,
In a study by Jeon et aI. [7], unpredictable occupancy infor- LSTM produced the best results at 0.100 and 0.054. In another
mation was fed to a deep-learning model by assuming that, in study by Wang et al. [15], a hybrid deep learning model
the future, the occupants may actively interact with the control (LSTM-convolutional network) is proposed and applied to PV
systems through various smart devices. Deep-learning models power prediction. The results show that the hybrid prediction
with single and deeper layers were tested in this study, and model has a better prediction effect than the single prediction
both showed excellent performance for data matching during model and that the proposed hybrid model, which first extracts
the learning periods. Wen et al. [8] developed a deep RNN with the temporal characteristics of the data and then the spatial
LSTM units (DRNN-LSTM) model to forecast aggregated characteristics, is more effective than the LSTM-convolutional
power load and photovoltaic (PV) power output in a community network, which first extracts the spatial characteristics and then
microgrid. Two real-world datasets were used to test the pro- the temporal characteristics of the data. Su et al. [16] proposed
posed forecasting model, and the results show that the DRNN- a robust hybrid hours-ahead gas consumption method by inte-
LSTM model performs better than a multi-layer perception grating a wavelet transform, RNN-structured deep learning,
(MLP) network and support vector machine (SVM). The study and a genetic algorithm. The wavelet transform is used to re-
found that the energy storage system and coordinated charg- duce the complexity of the forecasting tasks by decomposing
ing mode of electric vehicles can promote peak load shifting the original series of gas loads into several sub-components.
and reduce daily costs by 8.97. Jullian et al. [9] trained deep Gensler et al. [17] introduced powerful algorithms in renewable
learning models to predict the performance of a solar hot water energy power forecasting by using different deep learning
system under different meteorological conditions. Techniques methods, such as deep belief networks, an autoencoder, and
such as artificial neural networks (ANN), RNN, and LSTM were LSTM. In their experiments, combinations of these algorithms
explored. The LSTM models achieved a low mean absolute were used to show their forecasting strength compared with a
error of 0.55 °C and the lowest root mean square error scores standard MLP and a physical forecasting model in predicting
(1.27 °C) for temperature sequence predictions, as well as the the energy output of 21 solar power plants.
lowest variance (0.52 °C) and relative prediction errors Qing and Niu [18] proposed a novel solar prediction scheme
(3.45 %) for single value predictions, indicating a more reliable for hourly day-ahead solar irradiance prediction by using
prediction performance. weather forecasting data. For a case using 10 years of histori-
Ghimire et al. [10] ascertained that a proposed hybrid model cal data to predict a year of irradiance data, the prediction
based on a convolutional network framework can accurately RMSE using the proposed LSTM algorithm decreased by
predict global solar radiation and enable energy availability to 42.9 % against back-propagation neural network. Srivastava
be regularly monitored over multi-step horizons when coupled and Lessmann [19] also investigated the LSTM technique,
with a low-latency LSTM network. Gao et al. [11] proposed comparing its forecasting accuracy to alternative methods with
day-ahead power output time-series forecasting methods in a proven track record in solar energy forecasting. From an
which ideal and non-ideal weather types were separately dis- academic point of view, LSTM and the proposed framework for
cussed. A prediction performance comparison between the experimental design provided a valuable environment for future
proposed methods with traditional algorithms revealed that the studies assessing new forecasting technology. Salman et al.
RMSE accuracy of forecasting methods based on LSTM net- [20] proposed a robust and adaptive statistical model and ex-
works can reach 4.62 % in ideal weather conditions. Han et al. plored the effect of intermediate weather variables related to
[12] proposed a method for mid-to long-term wind and PV accuracy prediction using a single-layer LSTM and multi-layer
power generation prediction based on a copula function and LSTM models. The best LSTM model was a multi-layer LSTM,
LSTM network. The study’s independent and joint power gen- and the best intermediate data were pressure variable. Based

796
Journal of Mechanical Science and Technology 35 (2) 2021 DOI 10.1007/s12206-021-0140-0

on the pressure variable, the model gained validation accuracy


of 0.8060 and RMSE of 0.0775. In the study by Kang et al.
performance prediction model of a DX AHU (direct expansion
air handling unit)-water source VRF heat pump system was
constructed. The validity test results after the calibrations
showed reliable results with a Cv(RMSE) of 14.5 %, and a
sensitivity analysis of the DX AHU-water source VRF system’s
cooling energy was performed according to important control
variables [21]. Ning et al. developed a dynamic system model
of a two-zone variable air volume heating, ventilation and air
conditioning and refrigeration (VAV-HVAC&R) system and five
adaptive controllers were designed to achieve good tracking
control of set points of zone air temperatures, discharge air
temperature, chilled water supply temperature and static pres- Fig. 1. Input and output layer setting.
sure of the VAV-HVAC&R system [22]. Li et al. developed a
model of a water-cooled centrifugal chiller system is developed
and a multi-mode control strategy was designed to simulate the
operation of the centrifugal chiller as it transitions between
start-up, speed control mode, IGV control mode and shutdown
mode during a typical day operation [23]. In the research by
Swarup et al., value engineering (VE) is presented to calculate
the heating cost and cooling cost of the air conditioner with the Fig. 2. LSTM cell structure [27].
assistance of an ANN with an optimization model. For improv-
ing the prediction accuracy of VE in the ANN model, some possible, and algorithms can be implemented through pro-
training algorithms and optimized the network hidden layer and gramming [25]. MATLAB itself provides useful toolboxes, such
hidden neuron by opposition genetic algorithm (OGA) were as interfaces to multiple hardware, to enable reliable deep
incorporated [24]. learning implementations.
Research on the prediction of energy production and con-
sumption based on RNN (LSTM) has been conducted in vari-
2.2 Simulation conditions
ous fields. The RNN is more accurate than other ANNs be-
cause the connection between units is composed of a cyclic In this study, we used weather data from Jincheon, Korea,
structure and can achieve prediction through continuous learn- provided by the Korea Meteorological Administration. Modeling
ing, with the characteristic of time series. However, existing was conducted by applying the measured solar PV power
studies lack not only consideration of the predictive perform- generation. The measured weather data and the amount of
ance of the multi-layer LSTM model composed of three or solar PV power generation reflected the time-phase data from
more layers but also consideration of the optimal operation of 9:00 to 17:00 from January 1 to July 9, 2019. The input layer of
energy supply systems when demand (building) and supply deep learning to model for prediction was set to weather data
(solar PV) are linked to each other. (outdoor air temperature, humidity, direct solar radiation, dif-
In the present study, previously measured weather data and fuse solar radiation, and wind speed), day, and time. The out-
PV power generation data are used in predicting PV power put layer was set to the solar PV power generation and the
generation to eventually incorporate a model predictive control simulation was performed.
technique for energy demand and supply matching for build-
ings based on the developed algorithm. This study adopts an
2.3 Overview of RNN
LSTM technique that transfers memory through iterative learn-
ing because it requires continuous data processing. Therefore, The deep learning technique used in this study is an RNN
to implement reliable modeling, the modeling was performed model, which keeps information from previous stages through
using the LSTM toolbox in MATLAB, a platform that provides a repetition. However, if a long learning period is required, the
numerical analysis and programming environment developed degree of change decreases and the learning ability is de-
by MathWorks. graded. The proposed technique to solve this problem is the
LSTM, a type of RNN that has the ability to smoothly perform
2. Method long learning periods [26]. Although the RNN only has one
2.1 Simulation tool layer, the LSTM is configured such that four layers exchange
information with one another. Among these layers, the cell
The MATLAB software is ideal for iterative analysis and de- state, which acts like a conveyor belt, keeps the information
sign processes. Additionally, matrix-based calculations are unchanged and enables unit movement. The LSTM technique

797
Journal of Mechanical Science and Technology 35 (2) 2021 DOI 10.1007/s12206-021-0140-0

can also add or remove information in the cell state, which is Table 1. Cv(RMSE) value (%) according to number of hidden neurons and
controlled by gates [27]. In the first step, the forget gate deter- hidden layers with a learning rate of 0.05.
mines what data are discarded from the cell state. Then, the Number of hidden layers
input gate determines the data to be added and stores it in the Sort
1 2 3 4
cell state. Finally, the output gate is controlled by determining
10 14.89 13.92 13.79 13.96
the output data and propagating them to the next node. There-
Number 100 15.95 13.54 13.96 14.53
fore, the LSTM technique is suitable for the continuous data
of hidden 250 16.25 13.77 13.08 13.92
processing in the present simulation.
neurons
300 16.11 13.8 13.65 14.45
3. Predictive model based on deep learn- 500 13.8 13.65 13.28 50.45
ing
3.1 Learning process Table 2. Cv(RMSE) value (%) according to number of hidden neurons and
hidden layers with a learning rate of 0.01.
In this study, we attempted to implement an RNN, an ANN
Number of hidden layers
capable of continuous input processing, to predict solar PV Sort
1 2 3 4
power generation. The RNN model consisted of various learn-
ing variables, such as learning rate, number of layers, number 10 15.83 14.53 50.45 50.54
of units, and optimization techniques that constitute LSTM [7]. Number 100 15.64 13.89 13.75 50.54
This study developed its models using the LSTM toolbox pro- of hidden 250 15.68 13.61 13.71 14.21
vided by MATLAB. MATLAB recommends using the stochastic neurons
300 15.89 14.14 13.54 14.38
gradient descent (SGD) method and Adam algorithms as the 500 15.96 13.92 14.34 13.48
optimization method of LSTM for RNN implementation [25].
The SGD technique is considered inefficient because it takes a Table 3. Cv(RMSE) value (%) according to number of hidden neurons and
significant amount of time to find an optimal solution when the hidden layers with a learning rate of 0.005.
working environment is insufficient for iterative calculation [7].
Number of hidden layers
Therefore, in this study, to repeatedly predict the amount of Sort
solar PV power generation, we used the Adam algorithm, 1 2 3 4
which can find the optimal solution efficiently by flexibly adjust- 10 15.01 13.91 50.45 50.45
ing the learning rate and model building time through learning. Number 100 15.62 14.24 50.45 50.45
Then, various training options work as variables that influence of hidden 250 15.78 14.07 50.45 13.75
learning. We set the number of hidden layers and hidden neu- neurons
300 15.71 14.75 14.17 50.45
rons by which the predictive model could derive the most accu- 500 15.23 13.83 14.25 13.48
rate results.
The learning rate is an additional factor that directly affects Table 4. Cv(RMSE) value (%) according to number of hidden neurons and
the prediction results. If the learning rate is extremely small or hidden layers with a learning rate of 0.001.
large, learning can take a long time or expand considerably.
Therefore, an important task is to find the suitable learning rate Number of hidden layers
Sort
for the predictive model. Predictive values were calculated 1 2 3 4
through the aforementioned learning variables by applying the 10 14.72 15.33 50.45 50.45
coefficient of variation of the root mean squared error, Number 100 15.18 14.87 50.45 50.45
Cv(RMSE), which is a statistical concept for determining overall of hidden 250 15.18 13.59 50.45 50.45
accuracy; the optimal LSTM model was set by adopting the neurons
300 15.31 13.71 50.45 50.45
variable with the lowest Cv(RMSE) value [27, 28]. Although the 500 15.32 13.96 13.87 50.45
model shows the prediction accuracy of more than a certain
level within the training dataset, when applied to new data, what
does not fit well is called overfitting. To prevent this condition, RMSE period
CV ( RMSE ) = (2)
we divided the learning and test sets. The simulation was per- Aperiod
formed by classifying 80 % of the total data as learning data and
20 % as testing data. In addition, the model was normalized for Aperiod =
∑ period
M interval
. (3)
accurate prediction, preventing the distortion or diversion of N interval
learning results through normalization of input and output values.
3.2 Development of predictive model
∑(S − M )
2

RMSE = interval
(1) Tables 1-4 show the Cv(RMSE) values according to the
N interval learning rate. Four learning rates were set: 0.05, 0.01, 0.005,

798
Journal of Mechanical Science and Technology 35 (2) 2021 DOI 10.1007/s12206-021-0140-0

Fig. 4. Recurrent neural network model - deeper LSTM.

Fig. 3. Recurrent neural network model - single LSTM.


a multiple-layer model consisting of three hidden layers and
500 hidden neurons. Multiple layers can further deepen the
and 0.001. The optimization process was performed by chang- learning than a single-layer model. The multiple-layer deep
ing the number of hidden layers and hidden neurons with the learning model sets the number of LSTM layers to three in the
set initial learning rate as a fixed value. The Cv(RMSE) values MATLAB environment, where the optimal number of hidden
in Tables 1-4 are the results after the outlier work, which re- neurons and learning rate were determined. In this study, the
moves samples that deviate significantly from the average simulations were repeated, as shown in Tables 1-4, to optimize
value. We developed prediction models of single and multiple the number of hidden neurons and hidden layers. Thus, in the
LSTM by selecting the learning rate of the smallest error rate multiple-layer model, the lowest Cv(RMSE) was 13.2 % with
before and after the outlier. In this study, we compared the four 500 hidden neurons and a learning rate of 0.05. This result
learning rates through the optimization process and showed shows an approximately 0.6 % improvement in the error rate
the lowest error rate at 0.05. Consequently, the simulation was over the single LSTM model.
conducted with 0.05 as the default setting. When the number of
hidden neurons of the single LSTM was set to 500, the lowest 4. Analysis and discussion of results
error rate was 13.8 %. In the multiple LSTM, the lowest error
4.1 Analysis of outdoor weather conditions
rate was 13.2 %, similar to that of the single LSTM, when the
learning rate was set to 0.05 and the number of hidden units Fig. 5 shows the outdoor air temperature and total solar ra-
was 500 with three hidden layers. However, if the learning rate diation hourly data in May, which was used as input in the
was set extremely high or low in the optimal learning rate set- simulation. The average outside air temperature in May was
ting phase of the simulation, the prediction was not made and 18.6 °C, with a maximum of 32.4 °C and a minimum of 4.2 °C.
divergent cases appeared. The Cv(RMSE) value at that time Various temperature ranges were shown over time. In addition,
was 50.54 % or 50.45 %. the total amount of insolation combined with diffuse solar radia-
Fig. 3 shows an initial learning rate of 0.05. The diagram tion and direct solar radiation was measured from 06:00 to
shows a single-layer deep learning model consisting of a hid- 20:00 in May; the average solar radiation was 0.28 kWh. At
den layer and 500 hidden neurons. In the single-layer deep sunrise, the maximum was 1.05 kWh and the minimum was
learning model, the LSTM layer is set to one layer in the 0.01 kWh, and at sunset the radiation was 0 kWh.
MATLAB environment to determine the optimal number of
hidden neurons and learning rate. In this study, the simulations 4.2 Analysis of PV power generation
were repeated as shown in Tables 1-4 to optimize the number
of hidden neurons and hidden layers. As a result, in a single Fig. 6 shows the total solar radiation and PV power genera-
layer, the lowest Cv(RMSE) was shown as 13.8 % with 500 tion hourly data for May. The average monthly solar radiation in
hidden neurons and a learning rate of 0.05. May was 0.28 kWh, with maximum of 1.05 kWh and minimum
Fig. 4 shows the initial learning rate of 0.05 and a diagram of of 0.01 kWh. The average amount of solar PV power genera-

799
Journal of Mechanical Science and Technology 35 (2) 2021 DOI 10.1007/s12206-021-0140-0

Fig. 5. Solar radiation and outdoor air temperature.


Fig. 8. Learning performance: single layer.

Fig. 6. Solar radiation and PV power generation.


Fig. 9. Learning performance: multiple layer.

amount of PV power generation used as test data was


293.1 kWh, the maximum value was 562.5 kWh, and the mini-
mum value was 8.8 kWh. The average solar PV power genera-
tion predicted by the MATLAB program’s deep learning model
was 286.8 kWh, with a maximum value of 539.2 kWh and a
minimum value of 43.67 kWh. The averages of the measured
and predicted values of solar PV power generation are similar.
However, the reason for the slight error rate as a result of the
prediction is that the accuracy of the prediction model de-
Fig. 7. Predicting solar PV power generation: measured vs. single LSTM.
creased slightly as the value of solar PV power generation
increased.
tion set as output data was 143.5 kWh, with a maximum of Figs. 8 and 9 present scatter plots of measured and pre-
545 kWh and minimum of 1.4 kWh. Most of the solar radiation dicted values for the single-layer and multiple-layer models. Fig.
was measured from 06:00 to 20:00. The amount of solar PV 8 shows an error rate of 13.8 % with the single LSTM model.
power generation changed in the same pattern as the amount Fig. 9 shows an error rate of 13.2 % with the multiple LSTM
of solar radiation. In addition, from 20:00 to 06:00, the total model, which is approximately 0.6 % lower than that of the
amount of solar radiation and solar PV power generation was single LSTM model. In Figs. 8 and 9, the closer the dots are to
0 kWh. the diagonal, the higher is the accuracy of the model. For the
single-LSTM and multi-LSTM models used in this study, most
4.3 Comparison and analysis of predictive of the dots are close to diagonal. A comparison of Figs. 8 and 9
data shows that as the solar PV power generation value increases,
the multiple LSTM model indicates a graph pattern in which the
Fig. 7 shows a comparison of the PV power generation dots are collected more densely than for the single LSTM
when the actual measurement-based solar PV power genera- model. To improve the prediction accuracy of the model
tion test data collected at the beginning of the study was simu- through deep learning, the simulation was separately con-
lated using a trained deep learning model (single layer). The ducted using the single-LSTM and multiple-LSTM models. By
Cv(RMSE) value showed an error of 13.8 %. The average using the multiple LSTM model, we can confirm that more ac-

800
Journal of Mechanical Science and Technology 35 (2) 2021 DOI 10.1007/s12206-021-0140-0

Table 5. Prediction performance of single LSTM and multiple LSTM mod-


els.

Hidden units RMSE (kWh) Cv(RMSE) (%)


Single LSTM 500 38.6 13.8
Multiple LSTM 500 x 3 37.1 13.2

Fig. 10. PV power generation learning performance for 1 week.

Fig. 12. Comparison of measured and predicted solar PV generation.

tion value of the single LSTM model was 157.3 kWh, and the
prediction value of the multiple LSTM model was 147.2 kWh.
Although a slight difference was observed between the meas-
ured and predicted values, the error rate rarely occurred in the
last two days. On the other hand, the maximum amount of
solar radiation was 0.96 kWh. During the same 4-day period,
the measured value of solar PV power generation was
Fig. 11. Solar PV power generation and solar radiation in a 4-day period.
488 kWh, the prediction value of the single-LSTM model was
484.4 kWh and the prediction value of the multi-LSTM model
curate prediction is possible. was 468 kWh. An accurate prediction was made, with a mini-
Fig. 10 shows some of the learning performance that pref- mal error rate between the measured and predicted values.
aced the predictions. Six days of data training were performed Finally, with regard to the averages of solar radiation and solar
and one-day testing was presented. During the learning period, PV power generation, the average value of solar radiation over
the measured and predicted graphs moved in the same pat- the 4 days was 0.59 kWh. The measured solar PV power gen-
tern; however, a slight difference was observed in the amount eration was 303.3 kWh, the single LSTM prediction was
of power generation. The difference appears to be largely due 285.1 kWh and the multiple LSTM prediction was 286.2 kWh.
to the lack of learning data, and if the number of learning data This mean value was similar for the measured and predicted
is increased, the errors should be reduced in both the learning values.
and prediction periods. Furthermore, the difference was im- Fig. 12 shows a comparison of the three graphs: the actually
proved during the prediction (testing) period of one day be- measured solar PV power generation and solar PV power
cause the testing was performed after the data training for six generation predicted by the single-LSTM and multi-LSTM
days. The multiple-layer LSTM model also changes in a pattern models. The graph shows that the measured and predicted
more similar to the measured data than does the single-layer graphs move in a similar pattern, although errors are found at
LSTM model. some intervals. The single-LSTM model and multi-LSTM mod-
Fig. 11 displays the predictions of solar PV power generation els moved in almost the same pattern. A Cv(RMSE) of the
from 09:00 to 17:00 for 4 days after data training and the single LSTM showed an error rate of 13.8 %, while the
amount of solar radiation for 4 days. The bar graph indicates Cv(RMSE) of the multiple LSTM showed a 13.2 % error rate.
the amount of solar radiation during that period. The solar ra- At high solar PV power generation, the multi-LSTM model was
diation strengthens in the daytime as the time changes and the able to predict more accurately than the single-LSTM model.
solar PV power generation moves in the same pattern as the Although no noticeable difference was found, the multi-LSTM
solar radiation does. The minimum solar radiation level over 4 model showed a slightly improved Cv(RMSE) and a prediction
days is 0.18 kWh. During the same 4-day period, the meas- closer to the measured value. Table 5 summarizes the learning
ured amount of PV power generation was 80 kWh, the predic- performance of the two LSTM models.

801
Journal of Mechanical Science and Technology 35 (2) 2021 DOI 10.1007/s12206-021-0140-0

age facilities and smart grids to maximize energy efficiency by


5. Conclusion
matching the energy flow between demand and supply re-
This study developed an RNN model for predicting solar PV sources.
power generation using the neural network toolbox function of
MATLAB. Accuracy was verified through Cv(RMSE) analysis.
To implement the RNN model, we conducted modeling by
Acknowledgments
using the LSTM technique, which can overcome the disadvan- This study was partly supported by a Korea Institute of En-
tage of conventional RNN that makes accurate prediction diffi- ergy Technology Evaluation and Planning (KETEP) grant
cult due to a decrease in the gradient as learning time in- funded by the Korean government (MOTIE) (2019271010015B,
creases. The measured data used in this study’s predictive Development of Eco-friendly Energy Supply Resource Control
modeling were hourly data from 09:00 to 17:00 from January 1 System). This work was supported by a Korea University Grant
to July 9. The results are as follows. (No. K1921431).
An optimized model was developed through various optimi-
zation processes, such as normalization, classification of learn-
ing data, and setting of layer options. The number of hidden
Nomenclature-----------------------------------------------------------------------------------
neurons of the predictive model of this study was set to 500, S : RNN model predicted
and the hidden layers were set to 1 and 3 layers. In addition, M : Measured
because finding an appropriate learning rate for repetitive pre- Ninterval : Number of measured data
diction of usage is important, four learning rate adjustments — Aperiod : Average of measurement period
0.05, 0.01, 0.005, and 0.001 — were tested to determine the
optimal learning rate. Finally, the simulation was conducted by
setting the initial learning rate at 0.05, which is the most suit-
References
able for this predictive model. [1] World Energy Market Insight, Korea Energy Economics Insti-
Based on the data from January to July, the total solar radia- tute, 18 (2018) 43.
tion and solar PV power generation were compared using the [2] Research on Innovation in Energy Demand Management and
May hourly data. As the amount of solar radiation changes, the Policy Governance Improvement, Green Growth Korea (2012).
amount of solar PV power generation changes in the same [3] A Study of Smart City Strategy in the Era of 4th Industrial
pattern. The minimum and maximum values of solar radiation Revolution, Gyeongggi Research Institute (2018).
were 1.05 kWh and 0.01 kWh, and the solar PV power genera- [4] 4th Industrial Revolution Core Convergence Case Smart City
tion values were 545 kWh and 1.4 kWh. From 20:00 to 06:00, Concept and Standardization Status, Standardization Issue
both solar radiation and solar PV power generation were 2018-1, Telecommunications Technology Association (2018).
0 kWh. [5] A Study on the Reorganization Scheme to Achieve Energy
As a result of comparing the measured value of the solar PV Conversion in Power Generation Sector, Korea Energy Eco-
power generation with the predicted value of the single-layer nomics Institute.
model, Cv(RMSE) was 13.8 %. This result indicates that the [6] Energy Statistics Yearbook, Korea Energy Economics Institute
larger the amount of solar PV power generation, the lower the (2018).
accuracy of the predictive model. The solar PV power genera- [7] B. K. Jeon, E. J. Kim, K. H. Lee, M. S. Kong and Y. G. Shin,
tion was predicted using a model composed of three layers to Short-term electricity consumption prediction based on occu-
overcome the error of the single-layer model; the Cv(RMSE) pancy information using deep-learning network models, Jour-
was 13.2 %. Although no significant difference was observed, nal of the Society of Air-Conditioning Refrigeration Engineers
as the solar PV power generation increased, the prediction was of Korea, 31 (1) (2019) 22-31.
more accurate and the error rate was slightly improved. [8] L. Wen, K. Zhou, S. Yang and X. Lu, Optimal load dispatch of
Finally, as a result of comparing the PV power generation community microgrid with deep learning based solar power
with solar radiation, both the measured solar PV power genera- and load forecasting, Energy, 171 (2019) 1053-1065.
tion and the predicted values (from single and multiple LSTM) [9] C. C. Jullian, J. M. Cardemil, E. L. Droguett and M. Behzad,
fluctuate in the same pattern as the amount of solar radiation Assessment of deep learning techniques for prognosis of solar
increases and decreases. A comparison of the two LSTM thermal systems, Renewable Energy, 145 (2020) 2178-2191.
models showed that the multi-LSTM model produced accurate [10] S. Ghimire, R. C. Deo, N. Raj and J. Mi, Deep solar radiation
predictions with a slightly improved Cv(RMSE) than the single- forecasting with convolutional neural network and long short-
LSTM model. term memory network algorithms, Applied Energy, 253 (C)
Therefore, the optimized control process of urban energy (2019) 113541.
systems will be included in future research. By predicting the [11] M. Gao, J. Li, F. Hong and D. Long, Day-ahead power fore-
energy supply of various renewable energy sources other than casting in a large-scale photovoltaic plant based on weather
solar PV power generation, countries can eventually establish classification using LSTM, Energy, 187 (2019) 115838.
a stable energy supply system directly linked with energy stor- [12] S. Han, Y. H. Qiao, J. Yan, Y. Q. Liu, L. Li and Z. Wang, Mid-

802
Journal of Mechanical Science and Technology 35 (2) 2021 DOI 10.1007/s12206-021-0140-0

to-long term wind and photovoltaic power generation prediction adaptive control of a VAV-HVAC&R system, Int. J. Air-Cond.
based on copula function and long short term memory network, Ref., 27 (2019) 1950006.
Applied Energy, 239 (2019) 181-191. [23] S. Li and M. Zaheeruddin, A model and multi-mode control of
[13] K. Wang, X. Qi and H. Liu, A comparison of day-ahead a centrifugal chiller system: a computer simulation study, Int. J.
photovoltaic power forecasting models based on deep learning Air-Cond. Ref., 27 (2019) 1950031.
neural network, Applied Energy, 251 (2019) 113315. [24] M. P. Swarup and A. P. Kumar, Effective implementation of
[14] D. H. Shin and C. B. Kim, Short term forecast model for solar value engineering using artificial neural network aid of optimi-
power generation using RNN-LSTM, The Journal of Korea zation techniques, Int. J. Air-Cond. Ref., 27 (2019) 1950022.
Navigation Institute, 22 (3) (2018) 233-239. [25] MathWorks, http://www.mathworks.com (2019).
[15] K. Wang, X. Qi and H. Liu, Photovoltaic power forecasting [26] T. H. Jo, Deep-learning for Everyone, Gilbut (2019) 234-238.
based LSTM-convolutional network, Energy, 189 (2019) [27] J. M. Lee, S. H. Hong, B. M. Seo and K. H. Lee, Application of
116225. artificial neural networks for optimized AHU discharge air tem-
[16] H. Su, E. Zio, J. Zhang, M. Xu, X. Li and Z. Zhang, A hybrid perature set-point and minimized cooling energy in VAV sys-
hourly natural gas demand forecasting method based on the tem, Applied Thermal Engineering, 153 (2019) 726-738.
integration of wavelet transform and enhanced deep-RNN [28] S. Yeon, B. Yu, B. Seo, Y. Yoon and K. H. Lee, ANN based
model, Energy, 178 (2019) 585-597. automatic slat angle control of venetian blind for minimized to-
[17] A. Gensler, J. Henze, B. Sick and N. Raabe, Deep learning tal load in an office building, Solar Energy, 180 (2019) 133-145.
for solar power forecasting — an approach using autoencoder
and LSTM neural networks, IEEE International Conference on
Systems, Man, and Cybernetics (SMC) (2016) 002858-002865. Minkyeong Park is pursuing a Master’s
[18] X. Qing and Y. Niu, Hourly day-ahead solar irradiance predic- degree at the Department of Architecture,
tion using weather forecasts by LSTM, Energy, 148 (2018) College of Engineering, Korea University,
461-468. Seoul, Korea.
[19] S. Srivastava and S. Lessmann, A comparative study of
LSTM neural networks in forecasting day-ahead global hori-
zontal irradiance with satellite data, Solar Energy, 162 (2018)
232-247.
[20] A. G. Salman, Y. Heryadi, E. Abdurahman and W. Suparta,
Single layer & multi-layer long short-term memory (LSTM) Kwang Ho Lee is an Associate Profes-
model with intermediate variables for weather forecasting, Pro- sor of the Department of Architecture,
cedia Computer Science, 135(2018) 89-98. College of Engineering, Korea University,
[21] W. H. Kang, J. M. Lee, S. H. Yeon, M. K. Park, C. H. Kim, J. Seoul, Korea. He received his Ph.D.
H. Lee, J. W. Moon and K. H. Lee, Modeling, calibration, and from the School of Architecture from the
sensitivity analysis of direct expansion AHU-water source VRF University of Illinois at Urbana-Cham-
system, Energy, 199 (2020) 117435. paign. His research interests include
[22] M. Ning and M. Zaheeruddin, Neural network model-based advanced HVAC system control.

803

You might also like