Abstract
Machine learning is routinely used to forecast solar radiation from inputs, which are forecasts of meteorological variables provided by numerical weather prediction (NWP) models, on a spatially distributed grid. However, the number of features resulting from these grids is usually large, especially if several vertical levels are included. Principal Components Analysis (PCA) is one of the simplest and most widelyused methods to extract features and reduce dimensionality in renewable energy forecasting, although this method has some limitations. First, it performs a global linear analysis, and second it is an unsupervised method. Locality Preserving Projection (LPP) overcomes the locality problem, and recently the Linear Optimal LowRank (LOL) method has extended Linear Discriminant Analysis (LDA) to be applicable when the number of features is larger than the number of samples. Supervised Nonnegative Matrix Factorization (SNMF) also achieves this goal extending the Nonnegative Matrix Factorization (NMF) framework to integrate the logistic regression loss function. In this article we try to overcome all these issues together by proposing a Supervised Local Maximum Variance Preserving (SLMVP) method, a supervised nonlinear method for feature extraction and dimensionality reduction. PCA, LPP, LOL, SNMF and SLMVP have been compared on Global Horizontal Irradiance (GHI) and Direct Normal Irradiance (DNI) radiation data at two different Iberian locations: Seville and Lisbon. Results show that for both kinds of radiation (GHI and DNI) and the two locations, SLMVP produces smaller MAE errors than PCA, LPP, LOL, and SNMF, around 4.92% better for Seville and 3.12% for Lisbon. It has also been shown that, although SLMVP, PCA, and LPP benefit from using a nonlinear regression method (Gradient Boosting in this work), this benefit is larger for PCA and LPP because SMLVP is able to perform nonlinear transformations of inputs.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Considerable efforts have been made in the past decades to make solar energy a real alternative to the conventional energy generation system. There are two main technologies, solar thermal electricity (STE) and solar photovoltaic (PV) energy, and many countries have already reached a notable solar share in their energy mixes. Moreover, important growth is expected in the near future (International Energy Agency, 2018).
Contrary to conventional generation, solar electricity generation is conditioned by weather, and thus it is highly intermittent. Transient clouds and aerosol intermittency lead to considerable variability in the solar power plants yield on a wide range of temporal scales, particularly in minutes to hours time scales. This presents serious issues regarding solar power plant management and their yield integration into the electricity grid [1]. Currently, in addition to expensive storagebased solutions, the use of solar radiation forecasts is the only plausible way to mitigate the intermittency. Therefore, the development of accurate solar radiation forecasting methods has become an essential research topic [2].
Solar forecasting methods can be classified depending on the forecasting horizon. Nowcasting methods are mostly related to onehour ahead forecasts, shortterm forecasting with up to 6 hours ahead forecasts and forecasting methods are aimed at producing days ahead forecasts. The techniques associated with these methods are essentially different [3,4,5]. In recent years, these has been increasing interest, particularly, in shortterm forecasting, fostered by the expected massive deployment of solar PV energy. Accurate shortterm solar forecasts are important to ensure the quality of the PV power delivered to the electricity network and, thus, to reduce the ancillary costs [6, 7]. Shortterm forecasting has also been successfully used for the management of STE plants [8, 9] and for the participation of PV and STE plants in the energy market [8, 10].
Shortterm forecasts can be derived either from satellite imagery [11, 12] or from Numerical Weather Prediction (NWP) models [13,14,15]. As solar radiation measured datasets have become progressively available, the use of datadriven methods have become increasingly popular [16]. In [15, 17, 18] a comparison of the performance of different methods is assessed.
The use of NWP models for shortterm solar forecasting has some important advantages, such as the global and easy availability of the forecasts. Because of that, this approach was extensively evaluated during the past decade [14, 15, 19]. Nevertheless, the reliability is far from optimal and machinelearning methods play an important role in providing enhanced solar forecasts derived from NWPs models [20, 21]. In this context, the inputs for machine learning techniques are forecasts of several meteorological variables provided by numerical weather prediction (NWP) physical models such as the European Center for Medium Weather Forecasts (ECMWF) and the Global Ensemble Forecast System (GEFS). Meteorological variables are forecast for the points of a grid over the area of interest. However, the number of features resulting from these grids is usually large, especially if several vertical levels are included in the grid. This may result in models that do not generalize well, and techniques to reduce the dimensionality of data are required.
Dimensionality reduction techniques can be divided into feature selection and feature extraction. Feature selection methods select the most relevant variables in the grid, while feature extraction summarizes information from the whole grid into fewer features. Both approaches have been used in the context of renewable energy forecasting with machine learning [22, 23]. Feature selection techniques have been used in [24] where methods such as Linear Correlation, ReliefF, and Local Information Analysis have been explored to study the influence on forecast accuracy of the number of NWP grid nodes used as input for the solar forecasting model.
In [25], feature extraction (PCA) is compared with feature selection (a minimal redundancy and maximalrelevance method) to reduce the dimensionality of variables in a grid for wind power forecasting in the east of China. The authors conclude that PCA is a good choice to simplify the feature set, while obtaining competitive results. PCA has also been used in [26] together with domain knowledge to extract features from a NWP grid to improve renewable energy forecasting. Advanced machine learning methods, such as convolutional neural networks, have also been used as a feature extraction scheme for wind power prediction using NWPs, showing competitive results compared to a PCA baseline [27]. GarcíaHinde et al. [28] presents a study on feature selection and extraction methods for solar radiation forecasting. The study includes classical methods, such as PCA or variance and correlation filters, and novel methods based on the adaptation of the support vector machines and deep Boltzmann machines for the task of feature selection. Results show that one of the novel methods (the adaptation of support vector machine) and PCA select high relevance features. Verbois et al. [29] combine feature extraction (PCA) and stepwise feature selection of NWP variables for solar irradiance forecasting, comparing favorably with other benchmark methods. In [30] a hybrid approach that combines PCA and deep learning is presented to forecast wind power from hours to years, showing a good performance. A recent study on solar irradiance forecasting has compared many methods on different datasets, where PCA has been used as the main method for feature extraction and dimensionality reduction [31]. In general, it is observed that PCA, even in recent works, is one of the most widelyused methods to extract features in renewable energy forecasting.
PCA is a multivariate statistical analysis that transforms a number of correlated variables into a smaller group of uncorrelated variables called principal components [32]. PCA has two main limitations. First, it performs a global linear analysis by an axis transformation that best represents the mean and variance of the given data, but lacks the ability to give local information representation. Second, PCA is an unsupervised method, that is, the target output is not used to extract the new features and this may be a drawback to finding the best low dimensional representation whenever labels are available.
In this article we propose Supervised Local Maximum Variance Preserving (SLMVP), a kernel method for supervised feature extraction and dimensionality reduction. The method considers both characteristics: it preserves the maximum local variance and distribution of the data, but also considers the distribution of the data by the response variable to find an embedding that best represents the given data structure. This method can be applied to multiclass and regression problems when the sample size m is small and the dimensionality p is relatively large or very large as opposed to Fisher’s Linear Discriminant Analysis (LDA) [33], one of the foundational and most important approaches to classification. In summary, SLMVP uses the full or partially labeled dataset to extract new features that maximize the variance of the embedding that best represents the common local distances [34] and computationally is based on weighted graphs [35]. Additionally, this method is able to perform a linear and nonlinear transformation of the original space by using different kernels as the similarity metric.
To validate the SLMVP method, it has been tested to extract features in order to improve solar radiation forecasting (both Global Horizon Irradiance (GHI) and Direct Normal Irradiance (DNI)) for a 3hour forecasting horizon, and compared to PCA (the most popular workhorse in the area), but also to other stateoftheart methods that have not been previously used in the context of solar radiation forecasting. These methods are (1) Locality Preserving Projection (LPP, an unsupervised local dimensionality reduction method) that finds linear projective maps that arise by solving a variational problem that optimally preserves the neighborhood structure of the dataset [36]; (2) Linear Optimal LowRank (LOL, a supervised dimensionality reduction method) that learns a lowerdimensional representation in a highdimensional low sample size setting extending PCA by incorporating classconditional moment estimates into the lowdimensional projection [37], and (3) Supervised Nonnegative Matrix Factorization (SNMF) that extends Negative Matrix Factorization (NMF) to be supervised [38, 39]. SNMF integrates the logistic regression loss function into the NMF framework and solves it with an alternating optimization procedure. All of these methods are able to solve the “large p, small m” problem as opposed to many classical statistical approaches that were designed with a “small p, large m” situation in mind (e.g. LDA). Features have been extracted from meteorological forecasts (obtained from the GEFS) in points of a grid around two locations in the Iberian peninsula: Seville and Lisbon. Two grid sizes have been tested, small and large. The performance of SLMVP has been compared with PCA, LPP, LOL, and SNMF using two different regressors, a linear one (standard Linear Regression (LR)) and a nonlinear technique (Gradient Boosting). Thus the main contributions of this work are:

A new local and supervised dimensionality reduction method capable of solving the “large p, small m” problem.

The application of SLMVP to reduce the dimensionality of the NWP variables in a grid for the solar radiation forecasting problem.

The comparison with PCA, one of the most widelyused methods in the context of renewable energy for feature extraction, LPP, and two stateoftheart recent supervised methods, LOL and SNMF, showing the usefulness of the proposed method.
The structure of the article is as follows. Section 2 explains the SLMVP method, which is tested using the data described in Section 3 and the experimental design included in Section 4. The Conclusions section summarizes the main results.
2 Supervised dimensionality reduction method: KernelSLMVP
As has been mentioned in Section 1, PCA is an unsupervised method that performs a global analysis of the whole dataset. As opposed to the globalbased data projection techniques like PCA, other methods based on local structure preservation i.e. ISOMAP [40], LLP [36], Laplacian Eigenmaps [41], and Locally Linear Embedding [42] have been proposed in order to overcome the characteristic of being global. Although these techniques use linear optimization solutions, they are also able to represent nonlinear geometric features by local linear modeling representation that lies in a low dimensional manifold [43]. Note that these nonlinear methods still do not consider labeled data, that is, they are unsupervised methods. Recently, Linear Optimal LowRank (LOL) projection has been proposed incorporating classconditional means. The key intuition behind LOL is that it can jointly use the means and variances from each class (like LDA), but without requiring more dimensions than samples [37]. Another recent method is Supervised Nonnegative Matrix Factorization (SNMF) that extends Negative Matrix Factorization (NMF) to be supervised [38]. SNMF integrates the logistic regression loss function into the NMF framework and solves it with an alternating optimization procedure. For both methods, regression can be done by projecting the data onto a lowerdimensional subspace followed by the application of linear or nonlinear regression techniques. This mitigates the curse of highdimensions.
The Supervised Local Maximum Variance Preserving (SLMVP) dimensionality reduction method solves the problem of LPP to work on problems with “large p small m” and the global approach of LOL and SNMF, despite being supervised. Therefore, SLMVP preserves the maximum local variance of the data being able to represent nonlinear properties, but also considers the output information (in a supervised mode) to preserve the local patterns between inputs and outputs. In summary, it uses the full or partially labeled dataset to extract new features that best represent the local maximum joint variance.
SLMVP is based on a graph representation for a given set of inputs x_{1},x_{2},…,x_{m} ∈R^{p}, and a set of outputs y_{1},y_{2},…,y_{m} ∈R^{l}. With m being the sample data points and, p and l the number of input and output features, in our case the dimensionality of l = 1 and p = 342 for the small grid, and m = 12274 for the large grid. The application of any similarity function \({\mathscr{S}}\) on the inputs \({\mathscr{S}}_{x}(\textbf {X}) : \textbf {X} \in \Re ^{m \times p}\) and \({\mathscr{S}}_{y}(\textbf {Y}) : \textbf {Y} \in \Re ^{m \times l}\) defines an input weighted graph {H,U} and an output weighted graph {I,V} with H and I being the nodes, and U and V the vertex, respectively. The graphs are not constrained and can be fully connected, or some weights can have a zero value meaning that the connection between those points disappears. The weight of the links represents the similarity between two data points. These characteristics allow the method with the capability of being local. Following [41] and [35] a graph embedding viewpoint can be used to reduce the dimensionality, mapping a weighted connected graph G = (V,E) to a line so that the connected points stay as close together as possible.
The unsupervised dimensionality reduction problem aims to choose the mapping \(\textbf {y}_{i}^{\prime } = \textbf {A}^{T}\textbf {x}_{i} : \textbf {y}_{i}^{\prime } \in \Re ^{k}\) and k ≪ p, which minimizes the distance with its neighbors in multidimensional data and can be expressed by the next cost function:
where W ∈R^{mxm} is the similarity matrix \({\mathscr{S}}_{x}(\textbf {X})\).
Following this graph embedding approach, SLMVP solves the supervised version and the wish to choose the mapping \(\textbf {y}_{i}^{\prime } = \textbf {A}^{T}\textbf {x}_{i} : \textbf {y}_{i}^{\prime } \in \Re ^{k}\) and k ≪ p, which minimizes the distance with its neighbors in multidimensional data but preserves only those distances that are shared in the input and output spaces, given the similarity functions for each of them \({\mathscr{S}}_{x}\) and \({\mathscr{S}}_{y}\). The cost function is then expressed by:
where Z ∈R^{m×m} represents the joint similarity matrix between input \({\mathscr{S}}_{x}(\textbf {X})\) and output \({\mathscr{S}}_{y}(\textbf {Y})\) similarity matrices, being \(z_{ij} = {\sum }^{m}_{k=1}u_{ik}v_{kj}\). Note the difference between (1) that is non supervised and (2) that defines a supervised manifold learning problem using the similarity matrix between inputs and outputs.
The minimization of the cost function (2) can be expressed in its kernelization form (KernelSLMVP) after some transformations as the following maximization problem:
where \(\textbf {K}_{x} = {\mathscr{S}}_{x}(\textbf {X})\) and \(\textbf {K}_{y} = {\mathscr{S}}_{y}(\textbf {Y})\) are the input and output similarity graphs expressed as kernel functions (i.e. polynomial K(a,b) = (1 + a ⋅ b)^{p} or Gaussian \(K(a,b)=e^{\frac {\lvert ab \lvert ^{2}}{2\sigma ^{2}}}\)). Finally, the (3) can be solved as an eigenvector problem on B as follows:
where B is the learned latent space. The projection of the input space data X on this space P = B^{T}X are the new extracted features to be used by the machine learning model. The Python code of SLMVP has been released publicly at [44].
3 Data description
The dataset used in this study concerns GHI and DNI measurements at two radiometric solar stations in the Iberian Peninsula: Seville and Lisbon. GHI and DNI have been acquired with a Kipp & Zonen CMP6 pyranometer, with a 15minute resolution.
The set of inputs is a collection of forecasted meteorological variables obtained from GEFS at different levels of the atmosphere and at different latitudes and longitudes. More specifically, 9 meteorological variables at different levels are used (see Table 1), making a total of 38 attributes at each latitudelongitude pair. Latitudes go from 32 to 51 and longitudes go from 18 to 6 with a resolution of 0.5 degrees. In this work, two grids of different sizes have been used: a small grid with 3 × 3 = 9 points around the solar station (Seville and Lisbon) and a larger one with 17 × 19 = 323 points. For Seville, the larger grid covers the Iberian Peninsula (latitudes: 36 to 44, longitudes: 350 to 359.5, both with a resolution of 0.5 degrees). In the case of the Lisbon solar station, the larger grid has been shifted to cover part of the Atlantic Ocean (latitudes also go from 36 to 44 and longitudes go from 346 to 355.5). Figure 1 shows both the wide and narrow grids, centered around Seville and Lisbon (in blue). Since each point in the grid contains 38 attributes, the small grid results in 3 × 3 × 38 = 342 input variables, and the larger one in 17 × 19 × 38 = 12274 inputs.
GEFS provides predictions of meteorological variables for a 3hour forecasting horizon every 6 hours each day (00:00am, 06:00am, 12:00pm, and 18:00pm). The corresponding GHI and DNI measurements are also used. To select the relevant hours of the day for GHI and DNI, samples with a zenithal angle larger than 75 degrees have been removed. Given this restriction, data times range from 9:15am to 6:00pm. The total input–output data covers from March 2015 to March 2017.
In this study, GHI and DNI are normalized by the irradiance of clear sky according to (5).
where I(t) stands for GHI or DNI at time t and I_{cs}(t) is the irradiance of clear sky at a particular at time t.
4 Experimental validation
In order to study the performance of the SLMVP algorithm, it has to be combined with a regression method to predict normalized GHI and DNI for a 3hour forecasting horizon and compared with the other above mentioned methods PCA, LPP, LOL, and SNMF. The regression technique uses as inputs the attributes/features from the inputspace transformation obtained by the SLMVP, PCA, LPP, LOL, and SNMF methods. As suggested in [37], to learn the projection matrix for the LOL method, we partition the data into K partitions (we select K = 10) equally separated between the target variable range [0 − 1] to obtain a Kclass classification problem. In this work, linear and nonlinear regression methods have been tested. As a nonlinear method, a stateoftheart machine learning technique has been used: Gradient Boosting Regression (GBR) [45, 46]. This technique has shown considerable success in predictive accuracy in recent years (see for instance [24, 47,48,49]).
In this Section, first the methodology employed is described. Then, the results comparing SLMVP with PCA, LPP, LOL, and SNMF for different GEFS grid sizes will be presented.
4.1 Methodology
Crossvalidation (CV) has been applied to study the performance of SLMVP, PCA, LPP, LOL, and SNMF. In standard CV, instances are distributed randomly into CV partitions. But our study involves time series of data, and therefore there are temporal dependencies between consecutive samples (in other words, consecutive samples can be highly correlated). Hence, in this study, group 4fold CV has been used, as explained next. Data has been split into 4 groups, one for each week of every month. Fold 1 thus contains the first week of each month (January, February, ...). Fold 2, the second week of every month and so on. This guarantees that, at least training and testing partitions will never contain instances belonging to the same week, which allows a more realistic analysis of the performance of the methods. Since in this work the optimal number of features must be selected, a validation set strategy has been used. For this purpose, each training partition (that contains 3 folds) is again divided into training and validation sets. The validation set contains a week of each month out of the three weeks of data available in the training partition. The remaining two weeks (the ones not used for validation) are used for training.
Mean Absolute Error (MAE) has been used as the performance measure (6). Given that a 4fold CV has been employed, results are the CVaverage of MAE.
where N is the number of samples and y_{i} and o_{i} are the actual value and the output of the model, respectively. Note that the number of samples for training are 480, which is smaller than the number of dimensions for the large grid 480 << 12274 and within the same scale factor for the small grid 342 <≈ 480.
The performance of the methods are evaluated as follows. Recall that the number of the selected projected features is very relevant and the obtained features for the different methods are also ordered by their importance. Then, in order to analyze the optimal number of dimensions, the performance of both linear and GBR regression methods is evaluated for 5, 10, 20, 50, 100 and 150 projected features. Given that 4fold CV is used for performance evaluation, in each of the 4 CV iterations there is a training, validation, and testing partition. For each iteration, the regression models are trained with the training partition and then, the validation and test errors are obtained. The averages of the 4 iterations are obtained for the three errors (train, validation and test). The validation error is used to select the optimal number of features.
SLMVP, SNMF, and GBR have some hyperparameters that require tuning in order to improve results. Five hyperparameters were fitted: gamma parameter \(\gamma = \frac {1}{2\sigma }^{2}\) that defines the Gaussian kernel function of the SLMVP method, α, β, and 𝜃 that defines the weight of each term of the SNMF method, and number of estimators and tree depth (which belongs to GBR). The following range of values for each hyperparameter were tested:

γ (SLMVP): from 0 to 2 in steps of 0.1

α, β, 𝜃 (SNMF): from 0, 0.1, 0.01, 0.001

Number of estimators (GBR): from 10 to 200 in steps of 10

Tree depth (GBR): from 1 to 10 in steps of 1
In order to tune the hyperparameters, a systematic procedure known as gridsearch was used. This method tries all possible combinations of hyperparameter values. Models for each hyperparameter combination are trained with the training partition and evaluated with the validation partition. The best combination on the validation set is selected.
4.2 Results
Table 2 shows the average GHI MAE for the best number of components for different methods and grid sizes. Table 3 displays the same information for DNI. The best number of components has been selected using the MAE for the validation set. In all cases, it is observed that the use of the nonlinear regression technique (GBR) improves considerably the errors for PCA and LPP, in some cases for LOL and SNMF, and always minor improvements for SLMVP. For instance, in the case of the smallgrid for GHI in Seville (Table 2 top left), the use of GBR with PCA improves the MAE considerably (from 0.6467 with LR to 0.0126 with GBR accountable for a 6.8% improvement). Similar improvements for PCA, LPP, and LOL MAE can be observed for the largegrid, from 0.6084 to 0.0155 accountable for a 8.51% improvement (Table 2 top right). Lisbon GHI (Table 2 bottom) behaves in a similar way. For SNMF the differences are almost nonexistent. In the case of SLMVP, although GBR obtains better errors than LR, the difference between linear and nonlinear is smaller than for PCA and LPP cases. For instance, observing the GHI results for Seville (top of Table 2), it can be seen that for the small grid (top left), the difference between GBR and LR (when using SLMVP) is only 0.1562 vs. 0.1673, and for the largegrid (top right), is 0.1653 vs. 0.1845. Similar differences can be observed for GHI at Lisbon (bottom of Table 2). This is reasonable because SLMVP uses a nonlinear kernel, so even when using LR, some of the nonlinearity of the problem has been included by SLMVP feature extraction process. Conclusions for DNI (Table 3) follow a similar trend: PCA and LPP benefit more from using a nonlinear method (GBR) than SLMVP and SNMF, but LOL benefits more using a regularized linear regressor. LOL includes linear class prior information about which is beneficial for LR.
Analyzing the results depending on the size of grid (small vs. large), it is observed that the use of a large grid does not result in better MAE values. The best errors are always obtained with the small grid in all cases of Tables 2 (GHI) and 3 (DNI). When the large grid is used, more components are used for SLMVP but, as already mentioned, this does not improve the results.
Summarizing the results so far, for both irradiances, GHI and DNI, and both locations (Seville and Lisbon), the best performance is always obtained with the SLMVP method and the nonlinear regression method (GBR). In order to quantify this improvement better, Table 4 shows the percentage improvement of SLMVP relative to PCA, LPP, LOL, and SNMF for the best models (SLMVP+GBR, PCA+GBR, LPP+GBR, LOL+LR, and SNMFGBR/LR). In summary, it can be said that SLMVP offers results 4.92% better than LOL for Seville and around 3.99% than LOL for Lisbon, 5.88% better than PCA for Seville and around 3.12% than PCA for Lisbon, 25.93% better than LPP for Seville and around 16.29% than LPP for Lisbon, 6.21% better than SNMF for Seville and around 2.82% for Lisbon.
In order to visualize the relation between the number of components and error, Fig. 2 shows the GHI validation and test MAE for the different number of components. This is done for SLMVP, PCA, LPP, LOL and SNMF using GBR as regressor, for Seville and Lisbon (top/botton, respectively), and for small and large grids (left/right, respectively). The same information is displayed in Fig. 3 for DNI. It is observed that the best number of PCA components is usually smaller than for other methods and that LPP and LOL usually benefit slightly with larger number of components.
SNMF and SLMVP have similar behavior with the number of components with the optimal number being slightly smaller for SLMVP. In contrast to PCA and LPP, the information and components found by SLMVP benefits the performance of the regression method. In Figs. 2 and 3 it is observed that up to 20 components, the errors decrease in all study cases. With a small grid, 20 components is the best solution for all datasets except Lisbon DNI, which reached the best solution with 50 components (see left part in Fig. 2 for GHI and for DNI left part of Fig. 3). When a large grid is used, more than 20 components are generally beneficial, with 50 or 100 components being selected as the best options (50 components for Seville and 100 components for Lisbon, although 50 and 100 components perform similarly for both locations). In those figures, it is also observed that although validation and test errors follow a similar trend, it is not always the case that the best error in validation corresponds to the best error in test. This should be expected because validation error is only an estimation obtained with a finite independent sample. But at least it can be seen that in all cases, using the validation error to determine the best number of components is a reliable way of achieving a reasonable test error.
Figures 2 and 3 also show that the performance of SLMVP is always better than PCA, LPP, LOL, and SNMF for every number of components (but for a few PCA exceptions and one for SNMF ). In order to quantify these improvements, Tables 5, 6, 7 and 8 show the percentage of improvements of SLMVP over PCA, LPP, LOL and SNMF using the best results regression model for the different number of components used, respectively. The superiority of SLMVP is clearly observed, but it is interesting to note that when 5 components are used (and some cases with 10 components), either PCA is better or the improvement of SLMVP is smaller. This suggests that PCA is able to find relevant information when only very few components are allowed. In any case, it is clear from Figs. 2 and 3 that more than 5 components are required in order to obtain the best results.
Finally, to also verify that the SLMVP technique is superior to the current use of PCA, LPP, LOL, and SNMF not only for the optimal number of dimensions but independently of the number of dimensions selected, we have used a twosample ttest for equal means to test the hypothesis that the obtained average error improvement for the different number of dimensions for each dataset is not due to chance. The obtained significance is shown in Table 9. We applied this test under the null hypothesis that the means are equal and the observations have different standard deviations. We used as observations the 6 test error data results (5, 10, 20, 50, 100, and 150 extracted components) obtained for each dataset . We conclude that the improvement obtained for the analysis SLMVP vs. LPP is significant, rejecting the hypothesis of equal means with a pvalue always below < 0.001. Vs. PCA this pvalue is below < 0.05 in 4 out of 8 cases (3 for Lisbon and 1 for Seville), vs. LOL the pvalue is below < 0.05 also in 4 out of 8 cases (3 for Lisbon and 1 for Seville), and vs. SNMF the pvalue is below < 0.05 also in 4 out of 8 cases (2 for Lisbon and 2 for Seville) rejecting the hypothesis of equal means.
In summary, we observed that for Lisbon, the null hypothesis is rejected for 12 out of 16 cases (and the other two cases have a pvalue close to the 5% threshold being the pvalue= 0.08 and 0.1) and 8 out of 16 for Seville. These insights suggest that the source data for both locations have different properties and Lisbon may contain more noisy data and therefore our method obtains larger improvements because of its noise tolerant characteristics introduced by the use of locality.
5 Conclusions
Using Machine Learning methods to forecast GHI or DNI radiation, based on features that use NWP grids, typically results in a large number of attributes. In this article, a supervised method for feature transformation and reduction (SLMVP) has been proposed to extract the most relevant features solving the limitations of PCA technique to represent locality, nonlinear patterns, and use labeled data. The PCA method is one of the most widely used methods to extract features and reduce dimensionality in renewable energy. Three other stateoftheart dimensionality methods that include locality (LPP), and supervision (LOL and SNMF) have been also compared with.
The five methods have been tested and compared on radiation data at two different Iberian locations: Seville and Lisbon. Both linear and nonlinear (GBR) regression methods have been used on the components extracted from SLMVP, PCA, LPP, LOL, and SNMF.
Results show that for both types of radiation (GHI and DNI) and both locations, SLMVP offers smaller MAE errors than the other methods. In order to assess the influence of the size of the NWP grid, two sizes have been tested, small and large. SLMVP results in better radiation estimates, but the small size grids display slightly better errors. It has also been shown that PCA tends to underestimate the number of features required to obtain the best results. LPP obtains the worst results and this is noticeable for large grids. SNMF has also shown a degradation in its performance for the large grid compared with SLMVP. In summary, it can be said that the small grid works better and the improvement of SLMVP over the other methods is about 6.24% at Seville GHI, 3.60% at Seville DNI, 1.73% at Lisbon GHI, and around 4.50% at Lisbon DNI.
Finally, although both SLMVP, PCA, and LPP benefit from using a nonlinear regression method (GBR), this benefit is larger for PCA and LPP because they are not able to perform nonlinear transformations. LOL does not benefit from nonlinear regression and for some cases obtained better results using the regularized linear regressor. SNMF benefits slightly from nonlinear regression for all but one of the small grids, but not for large ones. Because SMLVP is able to use nonlinear transformations, the difference between using the linear and nonlinear regression method is smaller as expected (but still present).
We can conclude that SLMVP is a competitive method for dimensionality reduction in the context of solar radiation forecast using NWP variables beating PCA, which is currently the most widely used, and LOL and SNMF which are two recent supervised dimensionality reduction stateoftheart methods. Overall SLMVP also obtains better results independently of the number of dimensions used, showing its robustness.
We envision that different machine learning methods would benefit by their combination with SLMVP, and thus it will be of interest to verify it, using this and other domain datasets.
References
Yang D, Wang W, Gueymard CA, Hong T, Kleissl J, Huang J, Perez MJ, Perez R, Bright JM, Xia X et al (2022) A review of solar forecasting, its dependence on atmospheric sciences and implications for grid integration: Towards carbon neutrality. Renew Sust Energ Rev 161:112348
Haupt SE (2018) Shortrange forecasting for energy. Springer, Berlin, pp 97–107. https://doi.org/10.1007/9783319684185_7
Sobri S, KoohiKamali S, Rahim NA (2018) Solar photovoltaic generation forecasting methods: A review. Energy Convers Manag 156:459–497
Yang D, Kleissl J, Gueymard CA, Pedro HTC, Coimbra CFM (2018) History and trends in solar irradiance and pv power forecasting: A preliminary assessment and review using text mining. Sol Energy 168:60–101. https://doi.org/10.1016/j.solener.2017.11.023https://doi.org/10.1016/j.solener.2017.11.023
Singla P, Duhan M, Saroha S (2021) A comprehensive review and analysis of solar forecasting techniques. Frontiers in Energy, pp 1–37
Litjens GBMA, Worrell E, van Sark WGJHM (2018) Assessment of forecasting methods on performance of photovoltaicbattery systems. Appl Energy 221:358–373. https://doi.org/10.1016/j.apenergy.2018.03.154https://doi.org/10.1016/j.apenergy.2018.03.154
AgüeraPérez A, PalomaresSalas JC, González de la Rosa JJ, FlorenciasOliveros O (2018) Weather forecasts for microgrid energy management: Review, discussion and recommendations. Appl Energy 228(C):265–278. https://doi.org/10.1016/j.apenergy.2018.0https://doi.org/10.1016/j.apenergy.2018.0
Dersch J, SchroedterHomscheidt M, Gairaa K, Hanrieder N, Landelius T, Lindskog M, Müller SC, Ramirez Santigosa L, Sirch T, Wilbert S (2019) Impact of dni nowcasting on annual revenues of csp plants for a time of delivery based feed in tariff. Meteorol Z 28(3):235–253. https://doi.org/10.1127/metz/2019/0925
AlonsoMontesinos J, Polo J, Ballestrín J, Batlles FJ, Portillo C (2019) Impact of DNI forecasting on CSP tower plant power production. Renew Energy 138(C):368–377. https://doi.org/10.1016/j.renene.2019.01https://doi.org/10.1016/j.renene.2019.01
Antonanzas J, PozoVázquez D, Fernand ezJimenez LA, MartinezdePison FJ (2017) The value of dayahead forecasting for photovoltaics in the Spanish electricity market. Sol Energy 158:140–146. https://doi.org/10.1016/j.solener.2017.09.043
Blanc P, Remund J, Vallance L (2017) Shortterm solar power forecasting based on satellite images, pp 179–198. https://doi.org/10.1016/B9780081005040.000068https://doi.org/10.1016/B9780081005040.000068
Bright JM, Killinger S, Lingfors D, Engerer NA (2018) Improved satellitederived pv power nowcasting using realtime power data from reference pv systems. Sol Energy 168:118–139
ArbizuBarrena C, RuizArias JA, RodríguezBenítez FJ, PozoVázquez D, TovarPescador J (2017) Shortterm solar radiation forecasting by advecting and diffusing msg cloud index. Sol Energy 155:1092–1103. https://doi.org/10.1016/j.solener.2017.07.045
Lopes FM, Silva HG, Salgado R, Cavaco A, Canhoto P, CollaresPereira M (2018) Shortterm forecasts of ghi and dni for solar energy systems operation: assessment of the ecmwf integrated forecasting system in southern portugal. Sol Energy 170:14–30
RodríguezBenítez FJ, ArbizuBarrena C, HuertasTato J, AlerMur R, GalvánLeón I, PozoVázquez D (2020) A shortterm solar radiation forecasting system for the iberian peninsula. Part 1: Models description and performance assessment. Sol Energy 195:396–412. https://doi.org/10.1016/j.solener.2019.11.028
McCandless TC, Haupt SE, Young GS (2016) A regimedependent artificial neural network technique for shortrange solar irradiance forecasting. Renew Energy 89(C):351–359. https://doi.org/10.1016/j.renene.2015.12https://doi.org/10.1016/j.renene.2015.12
Lee JA, Haupt SE, Jiménez PA, Rogers MA, Miller SD, McCandless TC (2017) Solar irradiance Nowcasting case studies near sacramento. J Appl Meteorol Climatol 56(1):85–108. https://doi.org/10.1175/JAMCD160183.1https://doi.org/10.1175/JAMCD160183.1
Ahmed R, Sreeram V, Mishra Y, Arif M (2020) A review and evaluation of the stateoftheart in pv solar power forecasting: Techniques and optimization. Renew Sust Energ Rev 124: 109792
Yang D, Wang W, Bright JM, Voyant C, Notton G, Zhang G, Lyu C (2022) Verifying operational intraday solar forecasts from ecmwf and noaa. Sol Energy 236:743–755
Mellit A, Massi Pavan A, Ogliari E, Leva S, Lughi V (2020) Advanced methods for photovoltaic output power forecasting: A review. Appl Sci 10(2):487
Markovics D, Mayer MJ (2022) Comparison of machine learning methods for photovoltaic power forecasting based on numerical weather prediction. Renew Sust Energ Rev 161:112364
SalcedoSanz S, CornejoBueno L, Prieto L, Paredes D, GarcíaHerrera R (2018) Feature selection in machine learning prediction systems for renewable energy applications. Renew Sust Energ Rev 90:728–741
Liu H, Chen C (2019) Data processing strategies in wind energy forecasting models and applications: A comprehensive review. Appl Energy 249:392–408
Martin R, Aler R, Valls JM, Galván IM (2016) Machine learning techniques for daily solar energy prediction and interpolation using numerical weather models. Concurr Comput Pract Exp 28 (4):1261–1274
Wang Z, Wang W, Wang B (2017) Regional wind power forecasting model with nwp grid data optimized. Front Energy 11(2):175–183
Andrade JR, Bessa RJ (2017) Improving renewable energy forecasting with a grid of numerical weather predictions. IEEE Trans Sustain Energy 8(4):1571–1580
Higashiyama K, Fujimoto Y, Hayashi Y (2017) Feature extraction of numerical weather prediction results toward reliable wind power prediction. In: 2017 IEEE PES Innovative smart grid technologies conference europe (ISGTEurope), pp 1–6. IEEE
GarcíaHinde O, TerrénSerrano G, HombradosHerrera M, GómezVerdejo V, JiménezFernández S, CasanovaMateo C, SanzJusto J, MartínezRamón M, SalcedoSanz S (2018) Evaluation of dimensionality reduction methods applied to numerical weather models for solar radiation forecasting. Eng Appl Artif Intell 69:157–167
Verbois H, Huva R, Rusydi A, Walsh W (2018) Solar irradiance forecasting in the tropics using numerical weather prediction and statistical learning. Sol Energy 162:265–277
Khan M, Liu T, Ullah F (2019) A new hybrid approach to forecast wind power for large scale wind turbine data using deep learning with tensorflow framework and principal component analysis. Energies 12(12):2229
Verbois H, SaintDrenan YM, Thiery A, Blanc P (2022) Statistical learning for nwp postprocessing: a benchmark for solar irradiance forecasting. Sol Energy 238:132–149
Hotelling H (1933) Analysis of a complex of statistical variables into principal components. J Educ Psychol 24(6):417–441. https://doi.org/10.1037/h0071325
Fisher RA (1925) Theory of statistical estimation. Math Proc Philos Soc 22:700–725
GarcíaCuesta E, Iglesias JA (2012) User modeling: through statistical analysis and subspace learning. Expert Syst Appl 39(5):5243–5250
McInnes L, Healy J, Saul N, Großberger L (2018) Umap: Uniform manifold approximation and projection. J Open Source Softw 3(861)
He X, Niyogi P (2003) Locality preserving projections. Advances in neural information processing systems, p 16
Vogelstein JT, Bridgeford EW, Tang M et al (2021) Supervised dimensionality reduction for big data. Nat Commun 12(2872). https://doi.org/10.1038/s41467021231022
Chao G, Mao C, Wang F, Zhao Y, Luo Y (2018) Supervised nonnegative matrix factorization to predict icu mortality risk. In: 2018 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), pp 1189–1194. IEEE
Chao G, Luo Y, Ding W (2019) Recent advances in supervised dimension reduction: a survey. Mach Learn Knowl Extract 1(1):341–358
Tenenbaum JB, Silva VD, Langford JC (2000) A global geometric framework for nonlinear dimensionality reduction. Science 290(5500):2319–2323. https://doi.org/10.1126/science.290.5500.2319https://doi.org/10.1126/science.290.5500.2319
Belkin M, Niyogi P (2003) Laplacian eigenmaps for dimensionality reduction and data representation. Neural Comput 15(6):1373–1396. https://doi.org/10.1162/089976603321780317
Roweis ST, Saul LK (2000) Nonlinear dimensionality reduction by locally linear embedding. Science 290(5500):2323–2326
Weinberger KQ, Sha F, Saul LK (2004) Learning a kernel matrix for nonlinear dimensionality reduction. In: Proceedings of the Twentyfirst international conference on machine learning, p 106
GarcíaCuesta E (2022) Supervised Local Maximum Variance Preserving (SLMVP) Dimensionality Reduction Method (1.0). https://doi.org/10.5281/zenodo.6856079, Online; Accessed 18 July 2022
Friedman JH (2001) Greedy function approximation: a gradient boosting machine. Annals of statistics, pp 1189–1232
Friedman JH (2002) Stochastic gradient boosting. Comput Stat Data Anal 38(4):367–378
Aler R, Galván IM, RuizArias JA, Gueymard CA (2017) Improving the separation of direct and diffuse solar radiation components using machine learning by gradient boosting. Sol Energy 150:558–569
Wu J, Zhou T, Li T (2020) Detecting epileptic seizures in eeg signals with complementary ensemble empirical mode decomposition and extreme gradient boosting. Entropy 22(2):140
AsanteOkyere S, Shen C, Ziggah YY, Rulegeya MM, Zhu X (2019) A novel hybrid technique of integrating gradientboosted machine and clustering algorithms for lithology classification. Natural Resources Research, pp 1–17
Acknowledgements
This work has been made possible by projects funded by Agencia Estatal de Investigación (PID2019107455RBC22 / AEI / 10.13039/501100011033). This work was also supported by the Comunidad de Madrid Excellence Program and Comunidad de MadridUniversidad Politécnica de Madrid young investigators initiative.
Funding
Open Access funding provided thanks to the CRUECSIC agreement with Springer Nature.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
GarcíaCuesta, E., Aler, R., PózoVázquez, D.d. et al. A combination of supervised dimensionality reduction and learning methods to forecast solar radiation. Appl Intell 53, 13053–13066 (2023). https://doi.org/10.1007/s1048902204175y
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s1048902204175y