Assessment of Different Deep Learning Methods of Power Generation Forecasting for Solar PV System
Abstract
:1. Introduction
2. Data Description
2.1. Photovoltaic Generation Data
2.2. Meteorological Data from the CWB
2.3. AccuWeather Data
2.4. Local Weather Station (LWS) and Pyrheliometer
3. Data Pre-Processing
3.1. Data Classification
3.2. Data Filtering
- The filtration method of solar photovoltaic power data: When collecting solar photovoltaic power data, very little electricity consumption is needed to maintain the standby status of the inverter when no power generation occurs. In addition, solar photovoltaic power generation is too low in the early morning. These data not only affect the forecast calculation but are useless in the actual power generation forecast. Therefore, the pre-processing method of solar photovoltaic data entails replacing values less than 0.5 kW and the standby value of −0.002 W by 0. In the zoomed-in area of the collected data illustrated in Figure 5, the values are much lower than −0.002 W, so these values are replaced by 0.
- The filtration method of weather feature data: There are 55 different weather feature parameters in CWB’s historical data but only 16 features from CWB’s weekly forecast data. Thus, 16-parameter weather forecast data were compared to 55-historical-parameter data to find exact matches. The eigenvalues used in the model training process must be the same as those used in the predictive model so that the calculated weights of the deep-learning model are consistent. After cross-checking with the complete data used in this research, there were only 5 parameters that could be used, as shown in Table 4. Among these 5 parameters, the value subject to rainfall has a certain influence on the forecast for the next day. It was obtained from the AccuWeather website and used as one of the parameters.
3.3. Missing Data Processing
- The pre-processing method of the historical data, including the data from the CWB and local weather station, involved directly deleting abnormal and missing data. The data for such days were erased when the historical data were −9999, null, or intermittently lost. The number of processed data points is shown in Figure 6. The hollow bars show the amount of data that can be used for one-day-ahead solar photovoltaic forecasting training after processing by the above method. There are 170 days of hybrid data, 308 days of local weather station data, and 181 days of CWB data. The original data are from 1 August 2020 to 20 June 2021, a total of 324 days.
- However, the pre-processing method used for lost weather forecast data differs from that used for historical data. There were two methods used in this study. The first was the interpolation of data that were missing for one or two hours of the day. If more than one-fourth of the forecast data for a day were lost, the following method was used. The historical data of the next day’s forecast were searched on the CWB’s database, and similar weather data were directly used as the forecast weather factor for the next day. For example, if the forecast for the next day was mostly clear from 6:00 to 18:00, the forecast data for the same weather were searched in the historical database and used as the next day’s forecast data. The reason for adopting this method is that the unavailability of weather information for the next day will cause the predictive system to crash. As a result, it cannot be applied to actual cases, and it will be meaningless to introduce the predictive module into the energy management system.
4. Methods and Evaluation
4.1. Artificial Neural Network (ANN)
4.2. Long Short-Term Memory (LSTM)
4.3. Gated Recurrent Unit (GRU)
4.4. Hyperparameter Adjustment Process
4.5. Evaluation Indices
- Mean Absolute Error (MAE). MAE can be used to measure the error between predicted values and actual values. It depends on the scale of continuous variables. The lower the value, the higher the accuracy of the predicted model. The equation is given below:
- Root Mean Squared Error (RMSE). RMSE can be used to measure the deviation between predicted values and actual values. The difference between RMSE and MAE is that RMSE is sensitive to outliers. That means that RMSE is easily influenced by large deviations. Hence, a smaller error indicates better performance. The equation is given below:
- Mean Absolute Percentage Error (MAPE). MAPE measures the accuracy as a percentage. It can be used to judge the quality of the predicted result. The definition is:
5. Numerical Results
5.1. Results of Hyperparameter Adjustment
5.2. Forecast Performance with Different Weather Data Groups
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Morrissey, K.; Kahrobaee, S.; Ioan, A. Optimal Energy Storage Schedules for Load Leveling and Ramp Rate Control in Distribution Systems. In Proceedings of the 2020 IEEE Conference on Technologies for Sustainability (SusTech), Santa Ana, CA, USA, 23–25 April 2020; pp. 1–4. [Google Scholar]
- Ahmed, M.; Kamalasadan, S. An approach for local net-load ramp rate control using integrated energy storage based on least square error minimization technique. In Proceedings of the 2018 IEEE Power and Energy Conference at Illinois (PECI), Champaign, IL, USA, 22–23 February 2018; pp. 1–6. [Google Scholar]
- Vegvari, Z.; Bokony, V.; Barta, Z.; Kovacs, G. Life history predicts advancement of avian spring migration in response to climate change. Glob. Chang. Biol. 2010, 16, 1–11. [Google Scholar] [CrossRef] [Green Version]
- Behrang, M.A.; Assareh, E.; Ghanbarzadeh, A.; Noghrehabadi, A.R. The potential of different artificial neural network (ANN) techniques in daily global solar radiation modeling based on meteorological data. Sol. Energy 2010, 84, 1468–1480. [Google Scholar] [CrossRef]
- Bianchini, G.; Paoletti, S.; Vicino, A.; Corti, F.; Nebiacolombo, F. Model estimation of photovoltaic power generation using partial information. In Proceedings of the IEEE PES ISGT Europe 2013, Lyngby, Denmark, 6–9 October 2013; pp. 1–5. [Google Scholar]
- Sangrody, H.; Sarailoo, M.; Zhou, N.; Tran, N.; Motalleb, M.; Foruzan, E. Weather forecasting error in solar energy forecasting. IET Renew. Power Gener. 2017, 11, 1274–1280. [Google Scholar] [CrossRef] [Green Version]
- Sangrody, H.; Sarailoo, M.; Zhou, N.; Shokrollahi, A.; Foruzan, E. On the performance of forecasting models in the presence of input uncertainty. In Proceedings of the 2017 North American Power Symposium (NAPS), Morgantown, WV, USA, 17–19 September 2017; pp. 1–6. [Google Scholar]
- Rehman, S.; Mohandes, M. Artificial neural network estimation of global solar radiation using air temperature and relative humidity. Energy Policy 2008, 36, 571–576. [Google Scholar] [CrossRef] [Green Version]
- Alluhaidah, B.M.; Shehadeh, S.H.; El-Hawary, M.E. Most Influential Variables for Solar Radiation Forecasting Using Artificial Neural Networks. In Proceedings of the 2014 IEEE Electrical Power and Energy Conference, Washington, DC, USA, 12–14 November 2014; pp. 71–75. [Google Scholar]
- Ghanbarzadeh, A.; Noghrehabadi, A.R.; Assareh, E.; Behrang, M.A. Solar radiation forecasting based on meteorological data using artificial neural networks. In Proceedings of the 2009 7th IEEE International Conference on Industrial Informatics, Cardiff, Wales, UK, 23–26 June 2009; pp. 227–231. [Google Scholar]
- De Giorgi, M.G.; Congedo, P.M.; Malvoni, M. Photovoltaic power forecasting using statistical methods: Impact of weather data. IET Sci. Meas. Technol. 2014, 8, 90–97. [Google Scholar] [CrossRef]
- Gigoni, L.; Betti, A.; Crisostomi, E.; Franco, A.; Tucci, M.; Bizzarri, F.; Mucci, D. Day-Ahead Hourly Forecasting of Power Generation From Photovoltaic Plants. IEEE Trans. Sustain. Energy 2018, 9, 831–842. [Google Scholar] [CrossRef] [Green Version]
- Mahmud, K.; Azam, S.; Karim, A.; Zobaed, S.; Shanmugam, B.; Mathur, D. Machine Learning Based PV Power Generation Forecasting in Alice Springs. IEEE Access 2021, 9, 46117–46128. [Google Scholar] [CrossRef]
- Shah, A.S.B.M.; Yokoyama, H.; Kakimoto, N. High-Precision Forecasting Model of Solar Irradiance Based on Grid Point Value Data Analysis for an Efficient Photovoltaic System. IEEE Trans. Sustain. Energy 2015, 6, 474–481. [Google Scholar] [CrossRef]
- Suksamosorn, S.; Hoonchareon, N.; Songsiri, J. Influential Variable Selection for Improving Solar Forecasts from Numerical Weather Prediction. In Proceedings of the 2018 15th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON), Chiang Rai, Thailand, 18–21 July 2018; pp. 333–336. [Google Scholar]
- Liu, Z.; Zhang, Z. Solar forecasting by K-Nearest Neighbors method with weather classification and physical model. In Proceedings of the 2016 North American Power Symposium (NAPS), Denver, CO, USA, 18–20 September 2016; pp. 1–6. [Google Scholar]
- Hossain, M.S.; Mahmood, H. Short-Term Photovoltaic Power Forecasting Using an LSTM Neural Network and Synthetic Weather Forecast. IEEE Access 2020, 8, 172524–172533. [Google Scholar] [CrossRef]
- Cheng, L.; Zang, H.; Ding, T.; Wei, Z.; Sun, G. Multi-Meteorological-Factor-Based Graph Modeling for Photovoltaic Power Forecasting. IEEE Trans. Sustain. Energy 2021, 12, 1593–1603. [Google Scholar] [CrossRef]
- Yu, Y.; Cao, J.; Zhu, J. An LSTM Short-Term Solar Irradiance Forecasting Under Complicated Weather Conditions. IEEE Access 2019, 7, 145651–145666. [Google Scholar] [CrossRef]
- Silvia, P.; Alfredo, N. A New Probabilistic Ensemble Method for an Enhanced Day-Ahead PV Power Forecast. IEEE J. Photovolt. 2022, 12, 581–588. [Google Scholar]
- Wan, C.; Zhao, J.; Song, Y.; Xu, Z.; Lin, J.; Hu, Z. Photovoltaic and solar power forecasting for smart grid energy management. CSEE J. Power Energy Syst. 2015, 1, 38–46. [Google Scholar] [CrossRef]
- Perveen, G.; Rizwan, M.; Goel, N. Comparison of intelligent modelling techniques for forecasting solar energy and its application in solar PV based energy system. IET Energy Syst. Integr. 2019, 1, 34–51. [Google Scholar] [CrossRef]
- Yona, A.; Senjyu, T.; Funabashi, T.; Kim, C. Determination Method of Insolation Prediction with Fuzzy and Applying Neural Network for Long-Term Ahead PV Power Output Correction. IEEE Trans. Sustain. Energy 2013, 4, 527–533. [Google Scholar] [CrossRef]
- Yang, H.; Huang, C.; Huang, Y.; Pai, Y. A Weather-Based Hybrid Method for 1-Day Ahead Hourly Forecasting of PV Power Output. IEEE Trans. Sustain. Energy 2014, 5, 917–926. [Google Scholar] [CrossRef]
- Sorkun, M.C.; Paoli, C.; Incel, Ö.D. Time series forecasting on solar irradiation using deep learning. In Proceedings of the 2017 10th International Conference on Electrical and Electronics Engineering (ELECO), Bursa, Turkey, 30 November–2 December 2017; pp. 151–155. [Google Scholar]
- Hanafi, R.A.; Liu, C.; Suwarno. In One-Hour-Ahead Solar Power Forecasting Using Artificial Neural Networks in Taiwan. In Proceedings of the 2019 2nd International Conference on High Voltage Engineering and Power Systems (ICHVEPS), Denpasar, Indonesia, 1–4 October 2019; pp. 169–174. [Google Scholar]
- Liu, C.H.; Gu, J.C.; Yang, M.T. A Simplified LSTM Neural Networks for One Day-Ahead Solar Power Forecasting. IEEE Access 2021, 9, 17174–17195. [Google Scholar] [CrossRef]
- Das, U.K.; Tey, K.S.; Seyedmahmoudian, M.; Mekhilef, S.; Idris, M.Y.I.; Van Deventer, W.; Horan, B.; Stojcevski, A. Forecasting of photovoltaic power generation and model optimization: A review. Renew. Sustain. Energy Rev. 2018, 81, 912–928. [Google Scholar] [CrossRef]
- Mehtah, E.; Adel, M. Solar Power Forecasting Using Deep Learning Techniques. IEEE Access 2022, 10, 31692–31698. [Google Scholar]
- Seyedmahmoudian, M.; Jamei, E.; Thirunavukkarasu, G.S.; Soon, T.K.; Mortimer, M.; Horan, B.; Stojcevski, A.; Mekhilef, S. Short-Term Forecasting of the Output Power of a Building-Integrated Photovoltaic System Using a Metaheuristic Approach. Energies 2018, 11, 1260. [Google Scholar] [CrossRef] [Green Version]
- VanDeventer, W.; Jamei, E.; Thirunavukkarasu, G.S.; Seyedmahmoudian, M.; Soon, T.K.; Horan, B.; Mekhilef, S.; Stojcevski, A. Short-term PV power forecasting using hybrid GASVM technique. Renew. Energy 2019, 140, 367–379. [Google Scholar] [CrossRef]
- Muhammad, A.; Lee, S.J.; Khang, S.H.; Jong, S. Two-Stage Attention over LSTM with Bayesian Optimization for Day-Ahead Solar Power Forecasting. IEEE Access 2021, 9, 107387–107398. [Google Scholar]
- CWB Observation Data Inquire System. Available online: https://e-service.cwb.gov.tw/HistoryDataQuery/index.jsp (accessed on 1 August 2020).
- Open Weather Data. Available online: https://opendata.cwb.gov.tw/index (accessed on 1 August 2020).
- AccuWeather. Available online: https://www.accuweather.com/ (accessed on 1 August 2020).
- Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; Salakhutdinov, R. Dropout: A simple way to prevent neural networks from overfitting. J. Mach. Learn. Res. 2014, 15, 1929–1958. [Google Scholar]
- Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
- Gers, F.A.; Schmidhuber, J.; Cummins, F. Learning to forget: Continual prediction with LSTM. Neural Comput. 2000, 12, 2451–2471. [Google Scholar] [CrossRef]
- Cho, K.; Van Merriënboer, B.; Gulcehre, C.; Bahdanau, D.; Bougares, F.; Schwenk, H.; Bengio, Y. Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv 2014, arXiv:1406.1078. [Google Scholar]
- Chen, Z.; Yang, Y. Assessing forecast accuracy measures. Prepr. Ser. 2004, 2010, 2004–2010. [Google Scholar]
- Lewis, C.D. Industrial and Business Forecasting Methods: A Practical Guide to Exponential Smoothing and Curve Fitting; Butterworth-Heinemann: London, UK, 1982. [Google Scholar]
Ref. | Year | Method | Inputs | Horizon | Best Results of Accuracy |
---|---|---|---|---|---|
[10] | 2009 | ANN | Air temperature, relative humidity, and sunshine | Hour | MAPE (%): 8.84 |
[16] | 2016 | KNN | DNI, DHI, ambient temperature | Hour | MAPE (%): 18.25 MRAE 4 (%): 2.01 |
[17] | 2020 | LSTM | Solar irradiance, temperature, relative humidity, and wind speed | 24 h | MAPE (%): 22.31 RMSE: 0.71 MAE: 0.36 |
[23] | 2014 | SVR | Temperature, probability of precipitation, and solar irradiance | One-day-ahead hourly | MRE 5 (%): 3.295 |
[26] | 2019 | BPNN ELM 1 | Sunshine hours, global radiation, and UV index | One-hour-ahead | nRMSE 6 (%): 7.75 |
[30] | 2018 | DEPSO 2 | Tipping Bucket Rain Gauge, wind speed, wind direction, air temperature, relative humidity, and solar radiation | Hour | RMSE (%): 4.4% MAE: 0.03 MBE: −1.63 VAR 7: 0.01 WME 8: 0.16 MRE (%): 3.1 |
[31] | 2019 | Hybrid GA-SVM 3 | Tipping Bucket Rain Gauge, wind speed, wind direction, air temperature, relative humidity, and solar radiation | Hour | MAPE (%): 1.7052 RMSE: 11.226 |
[32] | 2021 | Two-stage attention-based encoder–decoder over LSTM | Forty-one features, including solar radiation, temperature, humidity, snowfall, albedo, etc. | One-day-ahead | RMSE: 0.0638 MAE: 0.0324 |
Feature | Range |
---|---|
Temperature [°C] | 0~60 |
Relatively Humidity [%] | 0~100 |
Average Wind Speed [m/s] | 0~60 |
Wind Direction [Degree] | 0~360 |
Rainfall [mm/h] | 0~200 |
Pressure [hPa] | 600~1100 |
Specification | Range |
---|---|
Measurement Range [W/m2] | 0~2000 |
Spectral Range [nm] | 305~2800 |
Feature | Unit |
---|---|
Temperature | °C |
Relative Humidity | % |
Rainfall | mm |
Average Wind Speed | m/s |
UV Index | - |
Model | Input Time | Layers | Epochs | Learning Rate | Batch Size | MAE | MAPE | RMSE |
---|---|---|---|---|---|---|---|---|
LSTM | 2 days | 3 | 2000 | 1 × 10−3 | 8 | 0.5074 | 17% | 0.9979 |
GRU | 2 days | 3 | 2000 | 1 × 10−3 | 8 | 0.4898 | 18% | 0.8397 |
ANN | 3 days | 5 | 2000 | 1 × 10−3 | 8 | 0.8999 | 34% | 1.6067 |
Model | Input Time | Layers | Epochs | Learning Rate | Batch Size | MAE | MAPE | RMSE |
---|---|---|---|---|---|---|---|---|
LSTM | 2 days | 3 | 2000 | 1 × 10−3 | 8 | 0.3992 | 12% | 0.7105 |
GRU | 2 days | 3 | 2000 | 1 × 10−3 | 8 | 0.4083 | 12% | 0.7059 |
ANN | 1 day | 3 | 2000 | 1 × 10−3 | 8 | 0.4377 | 12% | 1.3326 |
Model | Input Time | Layers | Epochs | Learning Rate | Batch Size | MAE | MAPE | RMSE |
---|---|---|---|---|---|---|---|---|
LSTM | 1 day | 4 | 2000 | 1 × 10−3 | 8 | 0.31242 | 9% | 0.5921 |
GRU | 1 day | 4 | 2000 | 1 × 10−3 | 8 | 0.36907 | 11% | 0.6911 |
ANN | 2 days | 5 | 2000 | 1 × 10−3 | 8 | 0.35434 | 10% | 1.3326 |
Model | CWB Weather Data | Local Weather Data | Hybrid Weather Data | Average | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
MAPE | MAE | RMSE | MAPE | MAE | RMSE | MAPE | MAE | RMSE | MAPE | MAE | RMSE | |
ANN | 29% | 2.020 | 1.400 | 23% | 1.415 | 1.179 | 24% | 1.333 | 1.147 | 25.3% | 1.598 | 1.242 |
LSTM | 21% | 0.931 | 0.940 | 23% | 1.839 | 1.240 | 16% | 0.706 | 0.831 | 20.0% | 1.158 | 1.004 |
GRU | 19% | 1.083 | 1.003 | 23% | 2.207 | 1.362 | 20% | 0.828 | 0.888 | 20.7% | 1.372 | 1.084 |
Day | ANN Model | LSTM Model | GRU Model | ||||||
---|---|---|---|---|---|---|---|---|---|
MAPE | MAE | RMSE | MAPE | MAE | RMSE | MAPE | MAE | RMSE | |
27 June 2021 | 15% | 1.090 | 1.044 | 11% | 0.531 | 0.729 | 8% | 0.263 | 0.513 |
28 June 2021 | 35% | 1.863 | 1.365 | 21% | 1.046 | 1.023 | 25% | 1.205 | 1.098 |
29 June 2021 | 31% | 1.506 | 1.227 | 23% | 0.861 | 0.928 | 26% | 0.864 | 0.930 |
30 June 2021 | 20% | 0.968 | 0.984 | 13% | 0.535 | 0.731 | 18% | 0.944 | 0.972 |
1 July 2021 | 21% | 1.240 | 1.113 | 14% | 0.556 | 0.745 | 22% | 0.863 | 0.929 |
2 July 2021 | 18% | 2.364 | 1.538 | 11% | 0.986 | 0.993 | 7% | 0.494 | 0.703 |
3 July 2021 | 36% | 3.720 | 1.929 | 24% | 1.230 | 1.109 | 24% | 1.320 | 1.149 |
Average | 24% | 1.33 | 1.15 | 16% | 0.71 | 0.83 | 20% | 0.83 | 0.89 |
Paper | Method Used | Inputs | Horizon | Best Results for Accuracy |
---|---|---|---|---|
[17] | LSTM NN | Solar irradiance, temperature, relative humidity, and wind speed | 24 h | MAPE (%): 22.31 RMSE: 0.71 MAE: 0.36 |
[23] | Weather-based hybrid method: SOM, LVQ, and SVR | Temperature, probability of precipitation, and solar irradiance | One-day-ahead hourly | RMSE: 1.6811 |
This manuscript | LSTM | Temperature, relative humidity, rainfall, average wind speed, and UV index | One-day-ahead 24 h | MAPE (%): 16.984 RMSE: 1.764 MAE: 1.283 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Kuo, W.-C.; Chen, C.-H.; Hua, S.-H.; Wang, C.-C. Assessment of Different Deep Learning Methods of Power Generation Forecasting for Solar PV System. Appl. Sci. 2022, 12, 7529. https://doi.org/10.3390/app12157529
Kuo W-C, Chen C-H, Hua S-H, Wang C-C. Assessment of Different Deep Learning Methods of Power Generation Forecasting for Solar PV System. Applied Sciences. 2022; 12(15):7529. https://doi.org/10.3390/app12157529
Chicago/Turabian StyleKuo, Wen-Chi, Chiun-Hsun Chen, Shih-Hong Hua, and Chi-Chuan Wang. 2022. "Assessment of Different Deep Learning Methods of Power Generation Forecasting for Solar PV System" Applied Sciences 12, no. 15: 7529. https://doi.org/10.3390/app12157529
APA StyleKuo, W. -C., Chen, C. -H., Hua, S. -H., & Wang, C. -C. (2022). Assessment of Different Deep Learning Methods of Power Generation Forecasting for Solar PV System. Applied Sciences, 12(15), 7529. https://doi.org/10.3390/app12157529