Next Article in Journal
Ensemble Precipitation Estimation Using a Fuzzy Rule-Based Model
Previous Article in Journal
Automatic Hierarchical Time-Series Forecasting Using Gaussian Processes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Quantifying Uncertainty for Predicting Renewable Energy Time Series Data Using Machine Learning †

1
Department of Mathematics and Computer Science, Karlstad Universitet, Universitetsgatan 2, 651 88 Karlstad, Sweden
2
Glava Energiezentrum, Arvika Näringslivscentrum, 671 29 Arvika, Sweden
3
Faculty of Engineering and Computer Science, University of Applied Science Osnabrück, Albrechtstraße 30, 49076 Osnabrueck, Germany
*
Author to whom correspondence should be addressed.
Presented at the 7th International conference on Time Series and Forecasting, Gran Canaria, Spain, 19–21 July 2021.
Published: 9 July 2021
(This article belongs to the Proceedings of The 7th International Conference on Time Series and Forecasting)

Abstract

:
Recently, there has been growing interest in using machine learning based methods for forecasting renewable energy generation using time-series prediction. Such forecasting is important in order to optimize energy management systems in future micro-grids that will integrate a large amount of solar power generation. However, predicting solar power generation is difficult due to the uncertainty of the solar irradiance and weather phenomena. In this paper, we quantify the impact of uncertainty of machine learning based time-series predictors on the forecast accuracy of renewable energy generation using long-term time series data available from a real micro-grid in Sweden. We use clustering to build different ML forecasting models using LSTM and Facebook Prophet. We evaluate the accuracy impact of using interpolated weather and radiance information on both clustered and non-clustered models. Our evaluations show that clustering decreases the uncertainty by more than 50%. When using actual on-side weather information for the model training and interpolated data for the inference, the improvements in accuracy due to clustering are the highest, which makes our approach an interesting candidate for usage in real micro-grids.

1. Introduction

Increasing renewable energy usage is imperative for achieving a climate neutral Europe by 2050, which requires the reduction of greenhouse gas emissions by at least 55% by 2030 [1] according to the Climate Target Plan. Furthermore, refs. [2] and [3] show that the energy capacity of photovoltaic increased from 22 GW in 2009 to 707 GW globally in 2020. To achieve the goal of zero emissions, and to effectively integrate photovoltaic energy into the global energy system, an important cornerstone is the deployment of micro-grids that integrate a large amount of solar power generation photovoltaic panels (PV-Systems). To optimize energy exchanges, recent developments in the area of digitalization, such as the Internet of Things (IoT), Machine Learning and Cloud Computing, aim to develop smart-grids, which provide uninterrupted energy to prosumers while aiming to reduce the stress from the main grid [4,5].
Consequently, there has been growing interest in using machine learning based methods for accurately predicting renewable energy generation for PV-Systems, as such predictions are important for optimal energy management strategies. However, predicting solar power generation is difficult due to the inherent uncertainty of the solar irradiance and weather phenomena that are the most influential factors for the PV output power. Reference [6] measured an uncertainty of 9.5% for the radiation during a period of one year and 8.9% for an increasing span of ten years. As weather stations may not be co-located with each PV-System, interpolated weather and radiance information available from close-by stations may be required for making such predictions, further contributing to the uncertainty of the forecast.
In this paper, we aim to evaluate different factors that impact the uncertainty of PV power forecasting. We use a large dataset available from a Swedish PV power grid and cluster the data according to weather information. Using those clusters, we build different forecasting models using LSTM and Facebook Prophet. We compare the forecasting accuracy of clustered versus non clustered models. Because, in reality, exact weather information from co-located weather stations may not be available, we evaluate the impact of using interpolated data for training and inference on prediction accuracy. Our evaluation shows that clustering decreases the uncertainty by more than 50%. When using actual on-side weather information for the model training and interpolated data for the inference, the improvements in accuracy due to clustering are the highest, which makes our approach an interesting candidate for usage in real PV micro-grids.
The rest of this paper is structured as follows: in Section 2, we review related work. Section 3 presents our methodology and approach. In Section 4, we show our evaluation setup and analyse the results. Finally, Section 5 concludes the paper and lists ideas for potential future work.

2. Related Work

There are several studies regarding the prediction of PV-Station energy outcome based on physical, statistical and machine learning methodologies [7]. Statistical prediction models use historic stationary time-series environmental data, which are not that well applicable to non-stationary weather dependent time-series. References [8,9] proposed the usage of LSTM networks for short-term prediction of PV-Station energy production, while [10,11] improved their machine learning approaches by clustering the dataset into four clusters, each of which represent different weather types and train a specific model for each cluster. The findings indicate that the clustered machine learning models provide more accurate and more stable results for the prediction than a model that was trained with a non-clustered dataset. In our approach, we evaluate how clustered models impact prediction accuracy when using interpolated data for training and/or inference.

3. Methodology

Weather phenomena, such as radiation, temperature and clouds, have a significant effect on PV power production. In order to predict such production, machine learning based methods can be used that either use only historical power production information or use additional weather features. However, precise weather information from a co-located weather station may not be readily available. Consequently, we aim to evaluate whether interpolated weather information can be feasible for the prediction of PV-Station energy outcome within a smart-grid and, if so, what the additional uncertainty is when using interpolated weather features. Interpolated data can be used in machine learning based time series prediction at two different stages: during the training time and during inference (when making the prediction).
We compare the following combinations for assessing the prediction accuracy: training on actual co-located weather data and using actual weather data for prediction (denoted A to A, e.g., a micro-grid operator predicts its PV power using its own weather station), training on interpolated data and using interpolated data for the prediction (denoted I to I, e.g., a micro-grid does not have a weather station and uses interpolated weather data for both model training and inference), training on actual co-located weather data and using interpolated data for the prediction (denoted A to I, e.g., a micro-grid operator trains the model using information available from its weather station and provides the model to close-by users that use the interpolated data for inference). For predicting the PV output power, we cluster both datasets and use the associated model for prediction (Figure 1) while comparing it with a non-clustered model.

3.1. Dataset

Our dataset contains five consecutive years of weather and PV-Station information from 1 January 2015 to 31 December 2019 for each six seconds, which we average to create one minute time slots. The data are available from a solar park at the Glava Energy Center in Arvika, Sweden (Altitude 220 m, latitude 59.31°N, longitude 12.37°E). The PV panels are oriented to the south with a 40 degr. inclination. The PV modules are comprised of 20xITS 200WP + 20xITS 210WP + 20xITS 210WP + 19xITS 220WP at a total PV Power of 16.580WP (Watt-Peak) using a 4xEltek Valere 4300W inverter. In addition to the Produced Energy (kW) of the solar panels, the Glava Energy Center has a co-located weather station providing the features presented in Table 1.
An open source subset of the used dataset is available (https://github.com/AI-4-Energy/Dataset, last accessed: 29 June 2021). For interpolated weather features, we use information available from Meteostat [12] and SMHI [13], using the weather station at the Karlstad Airport (Altitude 107 m, latitude 59.44° N, longitude 13.34° E) at one minute resolution. This dataset contains the same features as the on-site dataset with the exception of radiation, since only the global radiation is available.

3.2. Data Preparation

Both datasets contain several outliers and missing values due to failures in the sensors or systems. For data cleaning, we used the interquartile range (IQR) technique [14], which divides the dataset into quartiles and computes the mean of each segment. Data points that were not within a percentile of the mean were detected as outliers. We also removed data points during the night as they are not as relevant for the prediction [15], because the PV-Systems do not produce energy during this period of the day. Since, especially in Sweden, the night times change throughout the year, the datasets were adapted to consider sunset and sunrise in Sweden, available from [16].
Furthermore, we used the Pearson correlation and the Wrapper selection [17] for feature selection [18]. Our results are inline with [10], which shows that the highest correlations with the energy production of PV-Systems are Wind Speed, Temperature, Humidity, Global Radiation, 30 Degrees Radiation, 40 Degrees Radiation and Indirect Radiation.

3.3. Clustering

We applied the density based clustering method DBSCAN [19,20] to define different clusters, which represent different weather characteristics on the co-located and interpolated historical data. We used global radiation (GR) as an input for the DBSCAN clustering and as an indicator of the weather types. DBSCAN clustering requires as input the maximum distance ϵ between two points.
To automatically determine the optimal ϵ , ref. [21] proposes the usage of the nearest-neighbour algorithm to find the distance from each point to its closest neighbour. When applying this technique, we found the optimal value for ϵ o of 1.6 for both datasets, which resulted in four different clusters. Table 2 presents the results of the clustering, representing the different weather conditions (sunny, partially overcast, overcast and rainy). As can be seen, most of the data points map to the overcast cluster, while the least of the points map to the rainy cluster.

3.4. Machine Learning Models for PV Power Prediction

We used both LSTM [22] and Facebook Prophet [23] to build models to predict the Produced Energy of the PV panels. Figure 2 presents the architecture used for the Bi-Directional LSTM model. The eight input features that comprise the weather and PV Power were sent through four Bi-Directional LSTM Layers, with the Return Sequence set to True. The last layer in the model contains a Dense Layer, which is used to compress the result to a singular output value. To evaluate the right amount of neurons within each layer and other parameters, we used hyper-parameter tuning [18].
In addition to the bi-directional LSTM model, we developed a model based on the Facebook Prophet API. In comparison to the LSTM model, the Facebook Prophet model consists of three different types of model—Trend, Seasonality and Holiday model [18,23]—which are combined to form an additive model. As Prophet is designed to only compute univariate inputs, we used the Python library Multi Prophet [24] to overcome this restriction and use multivariate input data. This library is a wrapper around the Facebook Prophet interface to handle multiple models for each input feature which can then be used for the prediction of the output value. Prophet creates a model for each input feature as a regressor for the prediction of the PV-Station energy outcome.

4. Experimental Evaluation and Results

In our experimental evaluation, we want to answer the following questions:
  • How does the usage of interpolated features impact forecast accuracy?
  • How are clustered models impacted by interpolated features during both training and inference?
  • How can Facebook Prophet compare with LSTM for predicting PV Power?
To answer these questions, we clustered the first dataset (1 January 2015 to 31 December 2018) into the four categories and created a training (75%) and testing (25%) dataset to train both approaches. The second dataset (1 January 2019 to 31 December 2019) was used for the evaluation. We trained a model for each weather category on the training dataset. To evaluate the results with a baseline model, we also built a model on the combined dataset for both LSTM and Facebook Prophet. Each of our models were trained on actual weather information (A) and on interpolated information (I). The first step of the prediction included a clustering of the input variables into a matching weather type. Once this had been detected, the corresponding model (e.g., as it was rainy, we used the model trained on rainy data for prediction) was chosen for the prediction.

4.1. Prediction Accuracy for On-Site and Interpolated Features

We compared the predicted PV Power with the measured data point and used the normalized Mean Squared Error (MSE) to calculate forecast accuracy. We used both actual on-site (A) and interpolated (I) weather information for the training and prediction. For example, A to A means that the model was trained on actual (A) data and we used actual (A) data for the prediction. The left side of each sub figure in Figure 3 shows violin plots that illustrate the distribution of normalized MSE for the LSTM models when trained on the clustered dataset. The right side (in the red box) shows the normalized error distribution for the baseline LSTM model, trained on the whole dataset, where we evaluated the forecast error separately for each cluster (e.g., we calculated the error distribution over all rainy data points in cluster 0, etc.).
As can be seen from Figure 3a, clustering decreased the normalized MSE for the A to A case. For example, the average normalized MSE decreased from 0.03 to 0.01 in cluster 3 (sunny), which is an improvement of 66%. Furthermore, clustering reduced the standard deviation of the forecast error in general. This can best be observed with cluster 0 (rainy). Without using clustering, the violin graph shows that for some rainy data points the normalized MSE prediction error was as large as 0.26. The forecast accuracy improved when using clustering for rainy days where the maximum observed normalized MSE was around 0.15. When using interpolated data for both training and prediction (I to I, Figure 3b), a similar improvement in accuracy was observed (both mean normalized MSE reduced as well as standard deviation). However, the normalized MSE is higher when using interpolated data for both training and prediction than when using actual data. While this can be observed for each cluster, clusters 1 and 2, especially, have high inaccuracy due to their more uncertain weather. Figure 3c shows the normalized MSE when training on actual data while using interpolated data for predicting PV Power (A to I). The example use-case is that the micro grid operator has a co-located weather station, and trains the model and provides it to another member of the micro grid that does not have a weather station but uses interpolated weather features. Clearly, using actual data for training reduces the error compared to using interpolated data for training. For example, when using clustering for cluster 1, using I to I resulted in the maximum normalized MSE of 0.31, which reduced to 0.18 when using A to I.

4.2. Prediction Uncertainty for Facebook Prophet

In this section, we evaluate the uncertainty of PV Power prediction when using Facebook Prophet trained on on-site versus interpolated weather features. Compared with the last section, when using the non-clustered model, we used the whole dataset for the prediction instead of the clustered data for the base-model. This was due to the structure of Prophet, which performs best with consecutive data. Figure 4 shows the normalized MSE distribution characterising the prediction error when using both actual on-site weather information and interpolated information. The error characteristics are similar to when using the bi-directional LSTM model, where we can observe an increasing uncertainty while using interpolated weather information. Furthermore, we can see that Prophet handles interpolated weather information better than LSTM models. For example, the mean of the normalized MSE for the clustering based models is below 0.05 in the Prophet model while it fluctuates just below 0.10 when using the LSTM model for the I to I case. Contrary to the mean MSE, Facebook Prophet shows a bigger deviation in the error than the LSTM model, which results in a bigger uncertainty within the prediction.

5. Conclusions

In this paper, we evaluate the impact of using interpolated weather information for the prediction of PV Power within smart micro grids, as a co-located weather station may not be readily available. We clustered five years of detailed weather and PV Power information available from a Swedish PV power plant using DBSCAN and evaluate how clustering improves forecast accuracy when using both Facebook Prophet and bi-directional LSTM as predictors. The clustered LSTM model (A to A) performed best of the three scenarios, with an overall normalized MSE of below 0.05 and a small error deviation. The usage of interpolated data increased the error span for both LSTM and Prophet, where mean normalized MSE increased to around 0.10. However, when training on actual data and using interpolated data for inference, the mean normalized MSE dropped, for most cases, to under 0.05, but a significant larger error deviation was determined compared to using on-site data for both training and inference. Consequently, interpolated data are feasible for the prediction of PV-Station energy outcome. Finally, Facebook Prophet outperformed the LSTM model in terms of the average normalized MSE. On the other hand, the LSTM model delivered better results in terms of error standard deviation, which correlates to the uncertainty of the prediction.

Author Contributions

All authors contributed to this work. All authors have read and agreed to the published version of the manuscript.

Funding

Parts of this work have been funded by the Swedish Energy Agency (Energimyndigheten) through the project AI4ENERGY.

Data Availability Statement

A public available subset of the dataset is accessible: https://github.com/AI-4-99Energy/Dataset, last accessed: 29 June 2021.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. European Commission. Energy, Climate Change. Available online: https://www.ec.europa.eu/clima/policies/eu-climate-action/2030_ctp_en (accessed on 4 March 2021).
  2. Grid Integration of Large-Capacity Renewable Energy Sources and Use of Large-Capacity Electrical Energy Storage; IEC White Paper; Project Team Under Market Strategy Board (MSB) IEC, International Electrotechnical Commission: Geneva, Switzerland, 2012; Available online: https://www.iec.ch/whitepaper/pdf/iecWP-gridintegrationlargecapacityLR-en.pdf (accessed on 17 May 2021).
  3. IRENA. Renewable Capacity Statistics 2021; International Renewable Energy Agency: Abu Dhabi, United Arab Emirates, 2021. [Google Scholar]
  4. Camarinha-Matos, L.M. Collaborative smart grids—A survey on trends. Renew. Sustain. Energy Rev. 2016, 65, 283–294. [Google Scholar] [CrossRef]
  5. Bayindir, R.; Hossain, E.; Kabalci, E.; Perez, R. A Comprehensive Study on Microgrid Technology. Int. J. Renew. Energy Res. 2014, 4, 1094–1107. [Google Scholar]
  6. Jamil, I.; Zhao, J.; Zhang, L.; Rafique, S.F.; Jamil, R. Uncertainty Analysis of Energy Production for a 3 × 50 MW AC Photovoltaic Project Based on Solar Resources. Int. J. Photoenergy 2019, 2019, 12. [Google Scholar] [CrossRef]
  7. Kostylev, V.; Pavlovski, A. Solar Power Forecasting Performance—Towards Industry Standards. In Proceedings of the 1st International Workshop on the Integration of Solar Power into Power Systems, Aarhus, Denmark, 24 October 2011. [Google Scholar]
  8. Konstantinou, M.; Peratikou, S. Solar Photovoltaic Forecasting of Power Output Using LSTM Networks. Atmosphere 2021, 12, 124. [Google Scholar] [CrossRef]
  9. Mellit, A.; Pavan, A. Short-term forecasting of power production in a large-scale photovoltaic plant. Sol. Energy 2014, 105, 401–413. [Google Scholar] [CrossRef]
  10. Lui, L.; Zhao, Y.; Chang, D.; Xie, J.; Ma, Z.; Sun, Q.; Wennersten, R. Prediction of short-term PV power output and uncertainty analysis. Appl. Energies 2018, 228, 1–711. [Google Scholar]
  11. Acero, J.A.; Koh, E.J.; Pignatta, G.; Norford, L.K. Clustering Weather Types for Urban Outdoor Thermal Comfort Evaluation in a Tropical Area; Springer: Friesach, Austria, 2020. [Google Scholar]
  12. Meteostat—Historical Weather and Climate Data. Available online: https://meteostat.net/en (accessed on 18 May 2021).
  13. SMHI. Available online: https://www.smhi.se/q/Alster/Karlstad/2726416 (accessed on 18 May 2021).
  14. Bajpai, N. Business Statistics; Pearson Education India: Gwalior, India, 2009. [Google Scholar]
  15. Isaksson, E.; Conde, M. Solar Power Forecasting with Machine Learning Techniques; School of Engineering Sciences: Stockholm, Sweden, 2018. [Google Scholar]
  16. World Data. Sunrise and Sunset in Sweden. Available online: https://www.worlddata.info/europe/sweden/sunset.php (accessed on 18 May 2021).
  17. Benesty, J.; Chen, J.; Huang, Y.; Cohen, I. Pearson Correlation Coefficient; Springer: Berlin/Heidelberg, Germany, 2009. [Google Scholar]
  18. Aupke, P. Uncertainty in Renewable Energy Time Series Prediction Using Neural Networks. Master’s Thesis, Karlstad Universitet, Karlstad, Sweden, 2021. [Google Scholar]
  19. Li, X.; Ramachandran, R.; Movva, S.; Graves, S.; Plale, B.; Vijayakumar, N. Storm Clustering for Data-Driven Weather Forecasting; University of Alabama in Huntsville: Huntsville, AL, USA, 2008. [Google Scholar]
  20. Sharma, A.; Chaturvedi, S.; Gour, B. A Semi- Supervised Technique for Weather Condition Prediction using DBSCAN and KNN. Int. J. Comput. Appl. 2014, 95, 79–183. [Google Scholar] [CrossRef]
  21. Rahmah, N.; Sitanggang, I. Determination of Optimal Epsilon (Eps) Value on DBSCAN Algorithm to Clustering Data on Peatland Hotspots in Sumatra. Earth Environ. Sci. 2012, 31, 012012. [Google Scholar] [CrossRef] [Green Version]
  22. Hochreiter, S.; Schmithuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [PubMed]
  23. Facebook Prophet. Available online: https://facebook.github.io/prophet/ (accessed on 18 May 2021).
  24. Multi Prophet. Available online: https://github.com/vonum/multi-prophet (accessed on 25 May 2021).
Figure 1. Flowchart for the clustering and the subsequent ML Model.
Figure 1. Flowchart for the clustering and the subsequent ML Model.
Engproc 05 00050 g001
Figure 2. Architecture of the Bi-Directional LSTM model.
Figure 2. Architecture of the Bi-Directional LSTM model.
Engproc 05 00050 g002
Figure 3. LSTM Accuracy evaluation—normalized MSE for Actual (A) versus Interpolated (I) weather features. Clustered LSTM model (left), non-clustered model (right).
Figure 3. LSTM Accuracy evaluation—normalized MSE for Actual (A) versus Interpolated (I) weather features. Clustered LSTM model (left), non-clustered model (right).
Engproc 05 00050 g003
Figure 4. Facebook Prophet Accuracy evaluation—normalized MSE for Actual (A) versus Interpolated (I) weather features.
Figure 4. Facebook Prophet Accuracy evaluation—normalized MSE for Actual (A) versus Interpolated (I) weather features.
Engproc 05 00050 g004
Table 1. Features of Glava dataset.
Table 1. Features of Glava dataset.
FeatureUnit
Wind DirectionGradient
PrecipitationL/m 2
TemperatureC
HumidityPercentage
Barometric PressuremBar
Wind Speedm/s
Global Radiation (GR)W/m 2
Radiation 30 DegreesW/m 2
Radiation 40 DegreesW/m 2
Indirect RadiationW/m 2
Produced EnergykW
Table 2. DBSCAN–Clustering.
Table 2. DBSCAN–Clustering.
ClusterDefinitionGR RangePercentage
Cluster 0Rainy0–15%13%
Cluster 1Partially Overcast15–35%28.9%
Cluster 2Overcast35–65%40.5%
Cluster 3Sunny65–100%17.6%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Aupke, P.; Kassler, A.; Theocharis, A.; Nilsson, M.; Uelschen, M. Quantifying Uncertainty for Predicting Renewable Energy Time Series Data Using Machine Learning. Eng. Proc. 2021, 5, 50. https://0-doi-org.brum.beds.ac.uk/10.3390/engproc2021005050

AMA Style

Aupke P, Kassler A, Theocharis A, Nilsson M, Uelschen M. Quantifying Uncertainty for Predicting Renewable Energy Time Series Data Using Machine Learning. Engineering Proceedings. 2021; 5(1):50. https://0-doi-org.brum.beds.ac.uk/10.3390/engproc2021005050

Chicago/Turabian Style

Aupke, Phil, Andreas Kassler, Andreas Theocharis, Magnus Nilsson, and Michael Uelschen. 2021. "Quantifying Uncertainty for Predicting Renewable Energy Time Series Data Using Machine Learning" Engineering Proceedings 5, no. 1: 50. https://0-doi-org.brum.beds.ac.uk/10.3390/engproc2021005050

Article Metrics

Back to TopTop