Next Article in Journal
NOx Emissions from Euro 5 and Euro 6 Heavy-Duty Diesel Vehicles under Real Driving Conditions
Next Article in Special Issue
Characterising Seasonality of Solar Radiation and Solar Farm Output
Previous Article in Journal
Spatiotemporal Characterization and Suppression Mechanism of Supersonic Inlet Buzz with Proper Orthogonal Decomposition Method
Previous Article in Special Issue
Solar Power Interval Prediction via Lower and Upper Bound Estimation with a New Model Initialization Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel Ensemble Algorithm for Solar Power Forecasting Based on Kernel Density Estimation

by
Mohamed Lotfi
1,2,
Mohammad Javadi
2,
Gerardo J. Osório
3,
Cláudio Monteiro
1 and
João P. S. Catalão
1,2,*
1
Faculty of Engineering, University of Porto, 4200-465 Porto, Portugal
2
INESC TEC, 4200-465 Porto, Portugal
3
C-MAST, University of Beira Interior, 6201-001 Covilha, Portugal
*
Author to whom correspondence should be addressed.
Energies 2020, 13(1), 216; https://doi.org/10.3390/en13010216
Submission received: 30 October 2019 / Revised: 14 December 2019 / Accepted: 29 December 2019 / Published: 2 January 2020
(This article belongs to the Special Issue Ensemble Forecasting Applied to Power Systems)

Abstract

:
A novel ensemble algorithm based on kernel density estimation (KDE) is proposed to forecast distributed generation (DG) from renewable energy sources (RES). The proposed method relies solely on publicly available historical input variables (e.g., meteorological forecasts) and the corresponding local output (e.g., recorded power generation). Given a new case (with forecasted meteorological variables), the resulting power generation is forecasted. This is performed by calculating a KDE-based similarity index to determine a set of most similar cases from the historical dataset. Then, the outputs of the most similar cases are used to calculate an ensemble prediction. The method is tested using historical weather forecasts and recorded generation of a PV installation in Portugal. Despite only being given averaged data as input, the algorithm is shown to be capable of predicting uncertainties associated with high frequency weather variations, outperforming deterministic predictions based on solar irradiance forecasts. Moreover, the algorithm is shown to outperform a neural network (NN) in most test cases while being exceptionally faster (32 times). Given that the proposed model only relies on public locally-metered data, it is a convenient tool for DG owners/operators to effectively forecast their expected generation without depending on private/proprietary data or divulging their own.

Graphical Abstract

1. Introduction

Accurate prediction of power generation from renewable energy sources (RES) is a challenging task, posing problems for short-term operation of modern power systems [1]. This difficulty is due to the high uncertainties and complexity of both the associated variables and the equipment used for generation and grid connection. On the one hand, generation from RES is a function of multiple meteorological factors (temperature, humidity, wind flow, etc.) which are in and of themselves highly chaotic in nature and difficult to quantify [2,3]. On the other hand, the equipment used is also a source of significant uncertainty with reliability issues and failures commonly occurring in installed power electronics, inverter-side, grid-side, and even the metering apparatus [4]. The combined effect of chaotic input variables and complex energy conversion models render deterministic approaches infeasible for the prediction of distributed generation (DG) from RES. As such, statistical and/or probabilistic models are commonly employed not only to forecast DG but also to predict market behavior in the case of high RES deployment [5,6] which allows for a computationally efficient way of accounting for uncertainties in inputs.
In recent years, there has been increased interest in the use of ensemble methods for power system applications. Ensemble techniques have a decades-long track record in meteorological prediction, proving their potential to effectively predict highly chaotic processes [7].
The main premise of ensemble methods is to overcome both input and model uncertainties by compiling a set (ensemble) of separate predictions into a forecast of most likely outcomes. Each separate prediction is a result of varying input variables within their uncertainty range in addition to the model uncertainty. Therefore, a combination of these separate predictions yields a range of possible outputs representing a confidence/uncertainty region surrounding a most likely scenario.
In Figure 1, the concept of an ensemble forecast is visualized considering the case of DG production from RESs. Various meteorological factors are independent input variables and are associated with a significant level of uncertainty. In addition, the physical energy conversion models of DG units are also associated with a high uncertainty, leading to a significant change in energy generation as a result of small perturbances in the meteorological variables. Ensemble methods combine different scenarios based on both input and model uncertainties and establish a confidence interval around a most likely outcome. One can see that the employment of an ensemble technique involves the (continuously improving) prediction of some variable based on historical data, without knowledge of the physical model relating the inputs with the outputs. This is, in fact, the definition of machine learning (ML), and, as such, ensemble methods are often classified accordingly [8].

Paper Organization

This manuscript is organized as follows: Section 1 provides the motivation behind this study and an introduction to ensemble forecasting. Section 2 provides a comprehensive state-of-the-art review of recent literature on the topic. Section 3 describes the mathematical formulation of the proposed model. Section 4 presents the case study based on a solar photovoltaic (PV) installation in the center region of Portugal. Section 5 provides the simulation results and a comparison between the proposed method, a deterministic irradiance-based prediction, and a neural network (NN) approach. A discussion of the obtained results is then presented followed by prospects for future work following up on the current study. The conclusions are finally summarized in Section 6. More detailed supplementary data regarding the case study used are provided in Appendix A.

2. State-of-the-Art and Novel Contributions

As mentioned, the use of ensemble methods is gaining popularity with the increased complexity and uncertainty of distributed energy resources (DERs). Before presenting the proposed method, a review of recent works is presented to highlight the state-of-the-art scientific literature on ensemble methods applications to power systems in recent years.

2.1. State-of-the-Art

In Reference [9], different strategies for combining forecasts of solar photovoltaic (PV) generation were presented. In this study, the ensemble prediction was obtained by combining different probabilistic models rather than an ensemble of results of the same model. It used three models (i.e., QKNN, QRF, and QR) and the inputs were historical PV power and weather data.
By testing using the GEFCOM 2014 data, the results showed that the use of an ensemble of various probabilistic forecasts resulted in a significant increase in forecasting accuracy for solar photovoltaic (PV) systems as opposed to the use of individual ones, regardless of the ensemble strategy and/or scenarios considered. In Reference [10], the advantages and disadvantages of applying an ensemble to improve empirical mode decomposition (EMD) techniques were reported, which are mentioned as being commonly applied to wind forecasting. While the ensemble improved EMD models are associated with additional computational burden, they are reported to outperform other techniques, specifically in tackling the challenge of mode mixing. In addition, the authors reported it was significantly more beneficial to apply ensemble decomposition to artificial neural network (ANN) models as compared to using optimization methods to tune the ANN parameters. The previous statements were shown to hold for all time resolutions in wind power forecasting. In Reference [8], a comparison of numerous commonly used ensemble, ANN, and other ML techniques was performed for solar power forecasting. Random Forest (RF), an ensemble method, was found to exhibit the best performance. Two main conclusions were made by the study: (1) a seasonal bias was shown with spring and winter being more challenging to forecast than summer and autumn (keeping in mind that the data were from Norwich, UK) and, more importantly, that (2) a combination of simple algorithms yielded better and more reliable results than any individual algorithm on its own, regardless of its complexity.
In Reference [11], a short-term probabilistic forecasting method was proposed based on a competitive ensemble of different base predictors of PV power. The method was implemented using different probabilistic approaches which were trained as base predictors in order to obtain an ensemble of the predictive distribution with optimal characteristics of accuracy and reliability. In Reference [12], the reliability, robustness, and computational burden of a proposed PV power forecasting model based on the RF method was combined with the extra trees technique on an hourly basis and compared against supervised support vector regression. For a fair and comparative analysis, the models used comparable forecasting data, applicable for forecasting hourly PV power.
A probabilistic PV power forecasting model was proposed in Reference [13] and applied to several French PV plants considering six days of lead time with a resolution of thirty minutes. The proposed model was derived from multiple forecasts considering the national numerical weather predictions and including ensemble forecasts. Then, a free online parameter learning technique generated a weighted combination of the individual PV outputs, and the resulting weights were later sequentially computed before each forecast, using only historical data, with the goal of minimizing the continuous ranked probability score criterion.
An analog ensemble forecasting method for day-ahead regional with hourly resolution was presented in Reference [14]. The proposed model considered publicly available weather forecasts and power measurement data, considering some historical sets of temperature, irradiance, and terrain slopes as well, among others. To process the input data, clustering and blending strategies were used to improve the PV forecasting results which were compared and validated against several numerical models based on weather forecasts.
Photovoltaic power variability was studied in Reference [15], proposing a data-driven ensemble modeling technique to improve the forecasting of PV output. Also, three different models were analyzed within a recursive arithmetic average technique, considering stand-alone forecasting results. To prove the superiority of the proposed model, the comparison was carried out considering a considerable number of different training and testing samples, showing that the ensemble model generally outperforms different stand-alone forecasting models.
A PV forecasting model in Reference [16] used an ANN ensemble scheme based on particle swarm optimization with trained feed-forward neural network. The proposed model was constructed considering five different structures with varying network complexities, in order to improve the forecasting results. Then, the model was combined using trim aggregation after removing the error boundaries. Exogenous data, such as physical specification and environmental, were used as model inputs. Moreover, a clearness index was used to classify days accordingly with their features, considering a yearly basis analysis with a real case study. It was shown that ensemble schemes improve the forecast results in comparison with benchmark models.
In Reference [17], an hourly PV power forecasting model was presented based on clustering and ensemble prediction using the RF method. First, clustering was used to improve the computational burden by selecting the necessary weather variables. Then, the RF method with different parameters was implemented as a component model to find weather regimes making up the ensemble prediction. Finally, weighted computation was carried to analyze the different forecasting weather regimes in order to obtain the final results. Ridge regression was used to determine the weight of each weather variable automatically.
In Reference [18], a hybrid PV forecasting model combined the ML method with the Theta statistical method. Multiple ML components were used: long short-term memory, gate recurrent unit, and unsupervised learning. Structural and data diversity were key to improving the accuracy of the model. Four different approaches were implemented for validation, considering two real case studies. The proposed hybrid model was shown to be superior to traditional ML without statistical components.
In Reference [5], a new ensemble technique was employed to improve probabilistic forecasting of day-ahead price forecasting of the Iberian market. An approach based on kernel density estimation (KDE) was used to “activate” the best set of input variables which minimize the forecasting error. This study is an example of numerous others applying probabilistic and ML techniques for electricity price forecasting which has been increasing exponentially in the past decade as shown by Reference [6]. The latter shows that, while non-existent before 2003, probabilistic methods (or hybrid ones) have quickly gained ground as one of the main approaches used contemporarily for price forecasting [19,20,21]. The analysis in Reference [22] has shown that, for the case of price forecasting, while combining different forecasts in an ensemble framework does not necessarily always bring about improved accuracy, it does contribute to more reliable forecasting by decreasing the risk associated with an individual method.
Based on the conducted literature review, the following points were noted and were carried forth in the formulation, analysis, and discussion made throughout this paper:
  • The use of combinatorial ensemble techniques is shown to significantly improve the accuracy of RES-based DG forecasting in addition to guaranteeing a more reliable and/or robust prediction;
  • An ensemble of simple probabilistic/statistical techniques is shown to produce better and more robust DG forecasting than individual complex models;
  • KDE has been recently employed to “activate” input sets for probabilistic price forecasting models, showing great success in improving the accuracy. This was only found to be tested on price forecasting, and no studies were found using this methodology for DG forecasting [5].

2.2. Novel Contributions

In this study, we proposed an ensemble algorithm based on the following key points:
  • The objective was to develop an algorithm suitable for predicting DG from RESs. The specific focus of this study was on solar PV; however, the proposed approach is generalizable;
  • Only historical, publicly available data (e.g., meteorological forecasts) and the corresponding local output (i.e., recorded power generation) were given as inputs (i.e., no knowledge of any physical model was known and no dependence on private/proprietary data were needed);
  • The algorithm can run despite inconsistency or loss of data points. Using KDE, the most suitable inputs are “activated” from the historical dataset.

3. Proposed Methodology

Consider an output variable P that has a value which depends on a set of inputs V : = { v 1 , v 2 , N V } through some unknown model f:
P = f ( V ) = f ( v 1 , v 2 , N V )
where N V is the number of independent variables which affect output P. For the purpose of generalization, the inputs V are considered multidimensional, such that:
v 1 = { v 1 , 1 ,   v 1 , 2 ,   v 1 , H 1 }
In this case, H 1 is the number of dimensions of v 1 . Now, consider scenario “new” for which we are trying to predict the output P n e w , given a set of conditions V n e w :
P n e w = f ( V n e w ) = f ( v 1 n e w , v 2 n e w , N V n e w )
The goal is to predict the value of P n e w given only the new conditions V n e w and a historical set of N o cases (with no knowledge of f):
P o l d , o = f ( V o l d , o ) = f ( v 1 o l d , o , v 2 o l d , o , N V o l d , o ) ;             o = 1 , 2 , ,   N o
While the model function f is assumed to be chaotic, in this model we assume that the number of independent input variables and their dimensions remain constant and, therefore, the following equations hold:
N V n e w = N V o l d , o = N V ;     H i n e w = H i o l d , o = N H ;       o = 1 , 2 , ,   N o ;     i = 1 , 2 , ,   N V
At this stage, the objective was to select a subset of Ns cases which were most suitable to form an ensemble prediction of P n e w . To do this, the KDE function similar to Reference [5] was used to calculate a similarity index s o l d , n e w between the new case and each of the old cases in the historical dataset. In this case, the most similar Ns cases (with the highest similarity index) can be activated by means of the product of kernel functions of each variable. This is visualized in Figure 2.
The Gaussian kernel functions were used to construct the similarity index KDE, as they are most suitable for cases when little or no knowledge of the model is known.
s o l d , n e w = ( i N V j N H e 1 2 ( v i , h o l d v i , h n e w b i ) 2 ) 1 N V N H  
The bandwidth value bi can be used to increase or decrease the sampling window (relative to the full range of the historical samples) for each variable in the same manner that KDE works, i.e., the narrower the bandwidth, the higher assumed correlation between variable v and the output P. Therefore, the value of bi for each variable i can be expressed by means of a tuning coefficient α i :
b i = α i ( max o ( v i o l d , o ) min o ( v i o l d , o ) ) ;                 o = 1 , 2 , ,   N o   ;     i = 1 , 2 , ,   N V
In this way, this normalized tuning coefficient is varied from 0 (exclusive) to 1 (inclusive), corresponding to a bandwidth value between zero (exclusive) and the maximum range of the historical value of the variable (inclusive):
0 < α i 1                     i = 1 , 2 , ,   N V
The similarity index in Equation (6) can be simplified in case all input independent variables are scalars. In this case, N H is equal to one, and the equation is reduced accordingly:
s o l d , n e w = ( i N V e 1 2 ( v i o l d v i n e w b i ) 2 ) 1 N V  
Given a new case, the similarity index is calculated for all old cases in the historical dataset. We can now construct a sorted array S which has elements that correspond to the index of the old case; this array thus contains the indices of the historical dataset, sorted from most to least similar to the current case based on their calculated similarity index for Equation (9):
S = [ k 1 , k 2 k N o ]
In this case, k 1 is the index o of the historical case with the highest, k 2 to the second highest, etc. Now, the top Ns samples can be selected to perform the ensemble prediction. The simplest prediction is to calculate the mean value of the top Ns P o l d values:
P ^ n e w i = 1 N s P k i o l d N s
To obtain a confidence/uncertainty interval around this expected output, percentile ranks can be used by constructing a cumulative distribution function of the top Ns values. By doing so, a confidence interval can be determined as follows:
P ^ l b , x % n e w P ^   n e w P ^ u b , x % n e w
P ^ l b , x % n e w = ρ 1 2 ( 100 x ) % ( { P k 1 o l d , P k 2 o l d , , P k N s o l d } )
P ^ u b , x % n e w = ρ 1 2 ( 100 + x ) % ( { P k 1 o l d , P k 2 o l d , , P k N s o l d } )
What Equation (12) means is that for a confidence of x%, P ^   n e w lies between the lower and upper bounds equal to P ^ l b , x % n e w and P ^ u b , x % n e w , respectively; which are calculated, as per Equations (13) and (14), by means of the percentile ρ 1 2 ( 100 x ) % and ρ 1 2 ( 100 + x ) % of the top Ns values ( { P k 1 o l d , P k 2 o l d , , P k N s o l d } ) , respectively.
It must be noted that there are clearly more complex means of calculating P ^ n e w and the confidence bounds. However, the main focus of this study was to highlight the use of the similarity index to extract the set S, and the choice of the simplest ensemble prediction afterwards was intentional to demonstrate the power of such a selection algorithm even with the most basic ensemble applied.

4. Case Study and Validation

4.1. PV Installation in Portugal

In order to test and validate the proposed algorithm, a real case study was used based on solar PV installations located in the vicinity of the city of Coimbra in the center region (“Região do Centro”) of Portugal as shown in Figure 3. The technical specifications of the plant are listed in Table 1. Historical forecasts and measurements are available for the same installation for a full year from 15 March 2015 to 15 March 2016 as detailed in Table 2. Annual plots of all variables are provided in Appendix A1.
In this case, the historical weather forecasts were the input variables (V) and are publicly provided by the Global Forecasting System (GFS) model with a 22 km resolution. The GFS’s data are available for any region of the world and is publicly available online [23]. The forecasts are made at 18:00 (UTC time) of each day for the day-ahead with a 3 h resolution (average of each 3 h interval of the day: 0:00, 3:00, 6:00, ..., 21:00). The provided forecasts are for wind speed, temperature, solar irradiance, precipitation, and humidity.
The output AC power of the inverter was recorded for the same year. A 20 kW SMA Sunny Tripower inverter was installed with 2 maximum power point trackers (MPPTs) installed (4 strings per inverter). The logging frequency of the AC power output was approximately 5 min. For this study, the recorded AC power was synchronized with the forecasts by applying a 3 h average (averaging can be seen in Figure A6). It is important to stress that the proposed prediction method was only given the averaged output power as input. However, high-resolution data were used for validation to test if uncertainties associated with high frequencies were captured.

4.2. Numerical Irradiance-Based Forecast

Given that the GFS data and the output power were synchronized, and since MPPTs were installed with the inverters, one can use the following equation to predict the maximum possible power output from the current installation for each data point.
P t P t i r r = η a v g N p A p R t w f
where P t i r r is the predicted power output at time t calculated numerically from the irradiance forecast,   η a v g is the overall average energy conversion efficiency of the PV plant (accounting for the PV conversion and inverter efficiency), N p and A p are the number of panels and the area of each panel (in m2), respectively, and R t w f is the direct incident solar irradiance (W/m2) obtained from the weather forecast for time t.

4.3. Seasonal Test Weeks

Also, in order to check for seasonal effects and/or bias, four test weeks were extracted from the annual data corresponding to all four seasons. The annual measured output power, annual predicted maximum output (based on irradiance estimation in Equation (15)), and detailed plots thereof for all four representative weeks are shown in Figure 4.
By inspecting the plots shown in Figure 4, particularly comparing the maximum theoretical output based on irradiance and recorded power, two important observations are worthy of noting:
  • During the summer, the maximum power output prediction based on Equation (15) was greater than the recorded value. This is what one would expect, and the operating efficiency and/or reliability of the installation would seldom reach the maximum theoretical power output;
  • During the winter, the prediction based only on solar irradiation failed to predict any value of output power (one can see that the predicted values were zeros throughout the winter and also by looking at the plot of the winter week). This is due to the fact that the meteorological forecasts provided by GFS are averaged over large temporal and spatial resolutions. As such, the forecasted irradiance would dissipate during winter weather conditions.
As such, it is clear that relying solely on the irradiance models, is insufficient to make any prediction of the expected power output of the solar PV installations.
Therefore, the objective of this case study was to check if the proposed method, taking into consideration GFS data as input variables and the recorded (and synchronized) AC power output of the plant, would be capable of accurately forecasting the power output under different meteorological conditions.
The GFS meteorological data are plotted for the entire year in Figure A1, Figure A2, Figure A3, Figure A4, Figure A5 and Figure A6 in the Appendix A. Zoomed-in plots are also provided for each test week in order to show the seasonal differences and highlight some visible correlation between the weather conditions and the recorded AC power output. The plots of spring, summer, autumn, and winter are shown in Figure 5, Figure 6, Figure 7 and Figure 8, respectively.

4.4. Implementation and Validation

To test the proposed algorithm in Section 2, the power output for each of the four test weeks was forecasted, only taking as input variables the meteorological forecasts provided by GFS. The hour of the day and day of the year were appended to the array of input variables in order to give the potential of favoring closer times/dates. The input variable array for this case was as follows:
V = { v 1 , v 2 , v 3 , v 4 , v 5 , v 6 , v 7 }
The description of each variable and the choice of the bandwidth tuning coefficients (Equations (7) and (8)) are provided in Table 3. As explained in Section 2, the smaller the value of α , the higher the assumed correlation between the output variable and its corresponding input variable. The values used in this study were assumed based on the well-established physical relationships between each meteorological variable and the target one (PV output power). For instance, solar irradiance was associated with the most dependence and thus a value of 0.1 was chosen, etc. This can heuristically be set based on visual inspection of Figure 5, Figure 6, Figure 7 and Figure 8.
In order to investigate the performance of the proposed algorithm, the results obtained for the four test weeks are against the numerical irradiance-based forecast based on Equation (15), and an ANN (trained using the same data). A feed-forward ANN was used with 1 hidden layer and 10 neurons. The performance of all three methods was compared in terms of computational time and accuracy. Since the ANN was trained using the Levenberg–Marquardt algorithm [24], its results and computational time both varied in every run due to the random data division and training process employed. Therefore, to evaluate the results in a fair manner, the ANN was run a sufficiently large number of times (10,000 runs), and the average runtime and forecast results were used for comparison.
To quantify the forecast error, three criteria were used: the mean absolute error (MAE), root mean square deviation (RMSD), and the normalized root mean square deviation (NRMSD). The MAE provides a simple overall measurement of the mean error between forecasted ( P ^ ) and real ( P ) values:
M A E = t = 1 N t | P ^ t P t |   N T
where the subscript t corresponds to the value at time step t and Nt is the total number of time steps. The RMSD is based on the on the quadratic mean:
R M S D = t = 1 N t ( P ^ t P t ) 2   N T
Both the MAE and RMSD provide a scale-dependent measure of the deviation between the forecasted and real values. The NRMSD provides a normalized measure as a percentage which is sometimes more favorable when comparing different models.
N R M S D = R M S D ( P m a x P m i n ) 100 %
P m a x and P m i n are the maximum and minimum values of the real data, respectively. As such, the NRMSD provides a scale-independent measure. The MAE, RMSD, NRMSD, and computational time are all used to assess the performance of the different approaches for all four test weeks.
The proposed algorithm was developed as original code by the authors using the MATLAB R2019b environment on a standard laptop computer with the following specifications: Intel Core i7-8550U CPU @ 1.80 GHz, 16.0 GB RAM, Windows 10 64 bit operating system. The neural network used for validation was based on the MATLAB 2019b Statistics and Machine Learning Toolbox [24].

5. Results and Discussion

5.1. Results of the Proposed Ensemble Algorithm

The results of the proposed ensemble algorithm are shown in Figure 9. The predicted value was plotted, along with confidence intervals of 68%, 95%, and 99.7%. The following points are noted:
  • The proposed ensemble algorithm successfully managed to forecast the wind power output, relying only on the historical GFS meteorological data, for all four tests weeks of all seasons;
  • The power production in cases when the deterministic model based on irradiance was inadequate (i.e., winter season) was successfully predicted;
  • Despite only being provided averaged data, the confidence intervals successfully managed to cover high-frequency fluctuations during most days;
  • The confidence interval grows and shrinks in response to such fluctuations even within the same day (e.g., Summer week, day 5);
  • The forecasted mostly underestimated the power output than. This is favorable to overestimation particularly from the point of view of operators of DG installations.

5.2. Comparison and Validation

A comparison between the forecast obtained and that of an irradiance-based numerical model (Equation (15)) and an ANN was used to validate the proposed method. As elaborated in the previous section, the same data were used to train the ANN. Since a random data division and training method was employed (which aimed to minimize the computational time of the ANN), the average of a sufficiently large number of runs of the ANN (i.e., 10,000 runs) was used for a fair comparison.
The comparison was made considering the MAE, RMSD, and NRMSD error criteria for each of the test weeks and is shown in Table 4. The different forecasts are visualized in the plots shown in Figure 10. The computational time to forecast all four weeks by the proposed method and the ANN (average of 10,000 runs in each case) is shown in Table 5.
By comparing the results of the different models, the following points can be verified:
  • According to all error criteria used, the proposed method outperformed the irradiance-based prediction for all seasons. It outperformed the ANN in all seasons except winter;
  • Both the ANN and the proposed method managed to provide a reasonably accurate prediction of the output power in the winter, where a numerical irradiance-based model completely fails;
  • Despite the ANN being capable of providing a better average error for the winter, the capability of the proposed method to capture high-frequency fluctuations in its confidence intervals provides an advantage over the ANN;
  • The proposed method was extraordinarily fast in terms of computational time, being 32 times faster than the ANN while outperforming the ANN in the majority of situations.

5.3. Prospects for Future Work

After testing the proposed method, confirming its validity, and taking note of its superior performance particularly in terms of providing a highly computationally efficient forecast, the following recommendations are provided for future work following on this study:
  • The effect of using additional meteorological variables (e.g., absolute and relative atmospheric pressure) should be investigated in terms of the forecast accuracy and computational burden;
  • Optimal tuning of the bandwidth coefficients should be studied. This can be performed in a pre-processing stage (e.g., with correlation analysis) or using a reinforcement learning-based design in which the values are self-tuned every time the code is run. In the latter, using an optimization method to determine the optimal values may be an option for a hybrid structure;
  • Due to the fact of its high computational efficiency and its reliance only on publicly available historical weather forecasts, the proposed method seems to have great potential to be applied to forecast RES-based DG. As such, follow-up work should test the proposed method on other RES technologies such as wind power.

6. Conclusions

In this study, a novel ensemble algorithm based on kernel density estimation (KDE) was proposed to forecast RES-based DG, particularly PV power. The proposed method relies solely on publicly available historical series of independent input variables (i.e., historical meteorological forecasts) and the corresponding local output (i.e., recorded power generation). Given a new case (with forecasted meteorological variables), the resulting power generation was forecasted. For the new case to be forecasted, a KDE-based similarity index was used to determine a set of most similar cases from the historical dataset. Then, the corresponding outputs of the most similar cases were used to calculate an ensemble prediction for the forecasted power generation. The proposed method was tested by considering meteorological and recorded power generation from a PV installation around the city of Coimbra, in the center region of Portugal. Despite only being given averaged data as inputs, the developed algorithm was capable of predicting uncertainties associated with high frequency variations in weather conditions, outperforming deterministic prediction based on solar irradiance forecasts. The proposed method outperformed an ANN in most cases while being exceptionally faster (32 times more than the computational time). Given its exceptional computational efficiency and its reliance solely on public data (weather forecasts) and local metered data (power generation), it is a convenient tool for use by owners or operators of solar power installations to effectively forecast their expected generation without depending on private/proprietary data or divulging their own.

Author Contributions

Writing, M.L. and G.J.O.; visualization, M.L., M.J., and G.J.O.; conceptualization, C.M. and M.L.; methodology, M.L. and C.M.; validation, M.L., C.M., G.J.O., M.J., and J.P.S.C.; supervision, C.M. and J.P.S.C. All authors have read and agreed to the published version of the manuscript.

Funding

M.L. would like to acknowledge the support of the MIT Portugal Program (in Sustainable Energy Systems) by Portuguese funds through FCT, under grant PD/BD/142810/2018. M.S. Javadi and J.P.S. Catalão acknowledge the support of the FEDER funds through COMPETE 2020 and by the Portuguese funds through FCT, under POCI-01-0145-FEDER-029803 (02/SAICT/2017).

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Annual Data

Figure A1. Annual wind speed data for the case study provided by GFS.
Figure A1. Annual wind speed data for the case study provided by GFS.
Energies 13 00216 g0a1
Figure A2. Annual temperature data for the case study provided by GFS.
Figure A2. Annual temperature data for the case study provided by GFS.
Energies 13 00216 g0a2
Figure A3. Annual solar irradiance data for the case study provided by GFS.
Figure A3. Annual solar irradiance data for the case study provided by GFS.
Energies 13 00216 g0a3
Figure A4. Annual precipitation data for the case study provided by GFS.
Figure A4. Annual precipitation data for the case study provided by GFS.
Energies 13 00216 g0a4
Figure A5. Annual humidity data for the case study provided by GFS.
Figure A5. Annual humidity data for the case study provided by GFS.
Energies 13 00216 g0a5
Figure A6. Annual recorded AC output power data for the case study: recorded (left) and averaged for GFS synchronization (right).
Figure A6. Annual recorded AC output power data for the case study: recorded (left) and averaged for GFS synchronization (right).
Energies 13 00216 g0a6

References

  1. Kotsalos, K.; Miranda, I.; Silva, N.; Leite, H. A Horizon Optimization Control Framework for the Coordinated Operation of Multiple Distributed Energy Resources in Low Voltage Distribution Networks. Energies 2019, 12, 1182. [Google Scholar] [CrossRef] [Green Version]
  2. Dev, S.; Alskaif, T.; Hossari, M.; Godina, R.; Louwen, A.; Van Sark, W. Solar Irradiance Forecasting Using Triple Exponential Smoothing. In 2018 International Conference on Smart Energy Systems and Technologies, SEST 2018-Proceedings; Institute of Electrical and Electronics Engineers Inc.: Piscataway, NJ, USA, 2018. [Google Scholar] [CrossRef] [Green Version]
  3. Gough, M.; Lotfi, M.; Castro, R.; Madhlopa, A.; Khan, A.; Catalão, J.P.S. Urban Wind Resource Assessment: A Case Study on Cape Town. Energies 2019, 12, 1479. [Google Scholar] [CrossRef] [Green Version]
  4. Formica, T.J.; Khan, H.A.; Pecht, M.G. The Effect of Inverter Failures on the Return on Investment of Solar Photovoltaic Systems. IEEE Access 2017, 5, 21336–21343. [Google Scholar] [CrossRef]
  5. Monteiro, C.; Ramirez-Rosado, I.J.; Fernandez-Jimenez, L.A.; Ribeiro, M. New Probabilistic Price Forecasting Models: Application to the Iberian Electricity Market. Int. J. Electr. Power Energy Syst. 2018, 103, 483–496. [Google Scholar] [CrossRef]
  6. Nowotarski, J.; Weron, R. Recent Advances in Electricity Price Forecasting: A Review of Probabilistic Forecasting. Renew. Sustain. Energy Rev. 2018, 81, 1548–1568. [Google Scholar] [CrossRef]
  7. Palmer, T. The ECMWF Ensemble Prediction System: Looking Back (More than) 25 Years and Projecting Forward 25 Years. Q. J. R. Meteorol. Soc. 2018. [CrossRef] [Green Version]
  8. Su, D.; Batzelis, E.; Pal, B. Machine Learning Algorithms in Forecasting of Photovoltaic Power Generation. In Proceedings of the 2019 International Conference on Smart Energy Systems and Technologies (SEST), Porto, Portugal, 9–11 September 2019. [Google Scholar] [CrossRef]
  9. Bracale, A.; Carpinelli, G.; De Falco, P. Developing and Comparing Different Strategies for Combining Probabilistic Photovoltaic Power Forecasts in an Ensemble Method. Energies 2019, 12, 11. [Google Scholar] [CrossRef] [Green Version]
  10. Qian, Z.; Pei, Y.; Zareipour, H.; Chen, N. A Review and Discussion of Decomposition-Based Hybrid Models for Wind Energy Forecasting Applications. Appl. Energy. 2019, 235, 939–953. [Google Scholar] [CrossRef]
  11. Bracale, A.; Carpinelli, G.; De Falco, P. A Probabilistic Competitive Ensemble Method for Short-Term Photovoltaic Power Forecasting. IEEE Trans. Sustain. Energy 2017, 8, 551–560. [Google Scholar] [CrossRef]
  12. Ahmad, M.W.; Mourshed, M.; Rezgui, Y. Tree-Based Ensemble Methods for Predicting PV Power Generation and Their Comparison with Support Vector Regression. Energy 2018, 164, 465–474. [Google Scholar] [CrossRef]
  13. Thorey, J.; Chaussin, C.; Mallet, V. Ensemble Forecast of Photovoltaic Power with Online CRPS Learning. Int. J. Forecast. 2018, 34, 762–773. [Google Scholar] [CrossRef] [Green Version]
  14. Zhang, X.; Li, Y.; Lu, S.; Hamann, H.F.; Hodge, B.M.; Lehman, B. A Solar Time Based Analog Ensemble Method for Regional Solar Power Forecasting. IEEE Trans. Sustain. Energy 2019, 10, 268–279. [Google Scholar] [CrossRef]
  15. Liu, L.; Zhan, M.; Bai, Y. A Recursive Ensemble Model for Forecasting the Power Output of Photovoltaic Systems. Sol. Energy 2019, 189, 291–298. [Google Scholar] [CrossRef]
  16. Raza, M.Q.; Nadarajah, M.; Li, J.; Lee, K.Y.; Gooi, H.B. An Ensemble Framework For Day-Ahead Forecast of PV Output in Smart Grids. IEEE Trans. Ind. Inform. 2018, 15, 4624–4634. [Google Scholar] [CrossRef] [Green Version]
  17. Pan, C.; Tan, J. Day-Ahead Hourly Forecasting of Solar Generation Based on Cluster Analysis and Ensemble Model. IEEE Access 2019, 7, 112921–112930. [Google Scholar] [CrossRef]
  18. AlKandari, M.; Ahmad, I. Solar Power Generation Forecasting Using Ensemble Approach Based on Deep Learning and Statistical Methods. Appl. Comput. Inform. 2019. [CrossRef]
  19. Osório, G.J.; Matias, J.C.O.; Catalão, J.P.S. Electricity Prices Forecasting by a Hybrid Evolutionary-Adaptive Methodology. Energy Convers. Manag. 2014, 80, 363–373. [Google Scholar] [CrossRef]
  20. Catalao, J.P.S.; Pousinho, H.M.I.; Mendes, V.M.F. Hybrid Wavelet-PSO-ANFIS Approach for Short-Term Electricity Prices Forecasting. IEEE Trans. Power Syst. 2011, 26, 137–144. [Google Scholar] [CrossRef]
  21. Osório, G.; Lotfi, M.; Shafie-khah, M.; Campos, V.; Catalão, J.; Osório, G.J.; Lotfi, M.; Shafie-khah, M.; Campos, V.M.A.; Catalão, J.P.S. Hybrid Forecasting Model for Short-Term Electricity Market Prices with Renewable Integration. Sustainability 2018, 11, 57. [Google Scholar] [CrossRef] [Green Version]
  22. Nowotarski, J.; Weron, R. To Combine or Not to Combine? Recent Trends in Electricity Price Forecasting. In HSC Research Report; Hugo Steinhaus Center, Wroclaw University of Technology: Wrocław, Poland, 2016. [Google Scholar]
  23. Global Forecast System (GFS) | National Centers for Environmental Information (NCEI) formerly known as National Climatic Data Center (NCDC). Available online: https://www.ncdc.noaa.gov/data-access/model-data/model-datasets/global-forcast-system-gfs (accessed on 14 December 2019).
  24. The Mathworks Inc. Statistics and Machine Learning Toolbox User’s Guide R2019; The Mathworks Inc.: Natick, MA, USA, 2019. [Google Scholar]
Figure 1. Visualization of an ensemble forecast. Rather than employing a deterministic/point method (thick lines) to obtain the output from input variables, an ensemble of predictions is made from varied input conditions (dashed lines), constructing an uncertainty region and most likely output value(s).
Figure 1. Visualization of an ensemble forecast. Rather than employing a deterministic/point method (thick lines) to obtain the output from input variables, an ensemble of predictions is made from varied input conditions (dashed lines), constructing an uncertainty region and most likely output value(s).
Energies 13 00216 g001
Figure 2. Demonstration of how the proposed Kernel Density Estimation (KDE)-based similarity index is used to extract Ns cases to form an ensemble prediction of the new output value.
Figure 2. Demonstration of how the proposed Kernel Density Estimation (KDE)-based similarity index is used to extract Ns cases to form an ensemble prediction of the new output value.
Energies 13 00216 g002
Figure 3. Region in the center of Portugal used as a case study. The PV installations used in the current analysis were located within a 10 km radius of the city of Coimbra (40°12′ N, 8°25′ W).
Figure 3. Region in the center of Portugal used as a case study. The PV installations used in the current analysis were located within a 10 km radius of the city of Coimbra (40°12′ N, 8°25′ W).
Energies 13 00216 g003
Figure 4. Annual plot of recorded AC power output, annual plot of maximum theoretical power output based on solar irradiance estimation and average efficiencies, and four test weeks representing all four seasons (top); and for each test week, zoomed-in plots of recorded AC power output (un-averaged), 3 h averaged recorded AC power output (synchronized with GFS data), and maximum theoretical power output based on solar irradiance estimation and average efficiencies (bottom).
Figure 4. Annual plot of recorded AC power output, annual plot of maximum theoretical power output based on solar irradiance estimation and average efficiencies, and four test weeks representing all four seasons (top); and for each test week, zoomed-in plots of recorded AC power output (un-averaged), 3 h averaged recorded AC power output (synchronized with GFS data), and maximum theoretical power output based on solar irradiance estimation and average efficiencies (bottom).
Energies 13 00216 g004
Figure 5. Plots of recorded output power and Global Forecast System (GFS) meteorological data for the spring test week.
Figure 5. Plots of recorded output power and Global Forecast System (GFS) meteorological data for the spring test week.
Energies 13 00216 g005
Figure 6. Plots of recorded output power and GFS meteorological data for the summer test week.
Figure 6. Plots of recorded output power and GFS meteorological data for the summer test week.
Energies 13 00216 g006
Figure 7. Plots of recorded output power and GFS meteorological data for the autumn test week.
Figure 7. Plots of recorded output power and GFS meteorological data for the autumn test week.
Energies 13 00216 g007
Figure 8. Plots of recorded output power and GFS meteorological data for the winter test week.
Figure 8. Plots of recorded output power and GFS meteorological data for the winter test week.
Energies 13 00216 g008
Figure 9. Results of the proposed algorithm for all four seasons, showing real output power (un-averaged) and predicted output power. Confidence intervals of 68%, 95%, and 99.7% are highlighted.
Figure 9. Results of the proposed algorithm for all four seasons, showing real output power (un-averaged) and predicted output power. Confidence intervals of 68%, 95%, and 99.7% are highlighted.
Energies 13 00216 g009
Figure 10. Comparison of results obtained by irradiance forecast estimate, ANN, and the proposed method for all four seasons.
Figure 10. Comparison of results obtained by irradiance forecast estimate, ANN, and the proposed method for all four seasons.
Energies 13 00216 g010
Table 1. Technical specifications of the solar photovoltaic (PV) plant used as a case study.
Table 1. Technical specifications of the solar photovoltaic (PV) plant used as a case study.
ParameterValueUnits
Number of Panels (300 kWp each)53-
Panel Area (each)1.713m2
Total Installed Capacity18kWp
Inverter Capacity20kW
Nominal DC Voltage600V
Overall Efficiency20%
Table 2. Details of variables in the historical dataset provided (from 15 March 2015 to 15 March 2016).
Table 2. Details of variables in the historical dataset provided (from 15 March 2015 to 15 March 2016).
Historical VariableData SourceSpatial ResolutionTemporal ResolutionUnits
Wind SpeedMeteorological Forecast22 km3 hm/s
TemperatureMeteorological Forecast22 km3 h°C
Solar IrradianceMeteorological Forecast22 km3 hW/m2
PrecipitationMeteorological Forecast22 km3 hmm
HumidityMeteorological Forecast22 km3 h%
Inverter AC Power (Output)Real Measurement-~5 minkW
Table 3. Description of input variables for the historical dataset and value chosen for bandwidth coefficient for the KDE-based similarity index calculator.
Table 3. Description of input variables for the historical dataset and value chosen for bandwidth coefficient for the KDE-based similarity index calculator.
Bandwidth CoefficientValue
    α v 1 (hour of the day)0.4
    α v 2 (day of the year)1.0
    α v 3 (wind speed forecast)0.8
    α v 4 (temperature forecast)0.5
    α v 5 (solar irradiance forecast)0.1
    α v 6 (precipitation forecast)0.8
    α v 7 (humidity forecast)0.5
Table 4. Comparison of the MAE, RMSD, and NRMSD error criteria for the results obtained for each of the test weeks from the irradiance forecast, ANN, and the proposed method.
Table 4. Comparison of the MAE, RMSD, and NRMSD error criteria for the results obtained for each of the test weeks from the irradiance forecast, ANN, and the proposed method.
CriterionMethodWinterSpringSummerAutumn
MAE (kW)Irradiance Forecast34.615.717.415.3
Neural Network10.715.58.47.9
Proposed Method12.614.03.67.7
RMSD (kW)Irradiance Forecast3.0622.1382.5081.857
Neural Network0.9492.1141.2030.951
Proposed Method1.1151.9140.5230.928
NRMSD (%)Irradiance Forecast34.615.717.415.3
Neural Network10.715.58.47.9
Proposed Method12.614.03.67.7
Table 5. Comparison of the computational time between the proposed method and the ANN.
Table 5. Comparison of the computational time between the proposed method and the ANN.
Computational Time to Forecast all Four Weeks
(Average of 10,000 runs)
Neural Network1.46 s
Proposed Method0.045 s

Share and Cite

MDPI and ACS Style

Lotfi, M.; Javadi, M.; Osório, G.J.; Monteiro, C.; Catalão, J.P.S. A Novel Ensemble Algorithm for Solar Power Forecasting Based on Kernel Density Estimation. Energies 2020, 13, 216. https://doi.org/10.3390/en13010216

AMA Style

Lotfi M, Javadi M, Osório GJ, Monteiro C, Catalão JPS. A Novel Ensemble Algorithm for Solar Power Forecasting Based on Kernel Density Estimation. Energies. 2020; 13(1):216. https://doi.org/10.3390/en13010216

Chicago/Turabian Style

Lotfi, Mohamed, Mohammad Javadi, Gerardo J. Osório, Cláudio Monteiro, and João P. S. Catalão. 2020. "A Novel Ensemble Algorithm for Solar Power Forecasting Based on Kernel Density Estimation" Energies 13, no. 1: 216. https://doi.org/10.3390/en13010216

APA Style

Lotfi, M., Javadi, M., Osório, G. J., Monteiro, C., & Catalão, J. P. S. (2020). A Novel Ensemble Algorithm for Solar Power Forecasting Based on Kernel Density Estimation. Energies, 13(1), 216. https://doi.org/10.3390/en13010216

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop