Comparison of deep learning models for multivariate prediction of time series wind power generation and temperature
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Mishra, Sambeet; Bordin, Chiara; Taharaguchi, Kota; Palu, Ivo Article Comparison of deep learning models for multivariate prediction of time series wind power generation and temperature Energy Reports Provided in Cooperation with: Elsevier Suggested Citation: Mishra, Sambeet; Bordin, Chiara; Taharaguchi, Kota; Palu, Ivo (2020) : Comparison of deep learning models for multivariate prediction of time series wind power generation and temperature, Energy Reports, ISSN 2352-4847, Elsevier, Amsterdam, Vol. 6, Iss. 3, pp. 273-286, https://doi.org/10.1016/j.egyr.2019.11.009 This Version is available at: https://hdl.handle.net/10419/243998 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by-nc-nd/4.0/
Available online at www.sciencedirect.com ScienceDirect Energy Reports 6 (2020) 273–286 www.elsevier.com/locate/egyr Tmrees, EURACA, 04 to 06 September 2019, Athens, Greece Comparison of deep learning models for multivariate prediction of time series wind power generation and temperature Sambeet Mishraa,∗, Chiara Bordinb,∗, Kota Taharaguchia, Ivo Palua aTallinn University of Technology, Estonia bThe Arctic University of Norway, Norway Received 19 September 2019; received in revised form 29 October 2019; accepted 4 November 2019 Abstract Wind power experienced a substantial growth over the past decade especially because it has been seen as one of the best ways towards meeting climate change and emissions targets by many countries. Since wind power is not fully dispatchable, the accuracy of wind forecasts is a key element for the electric system operators, as it strongly affects the decision-making processes. The planning horizon can be short term (1 -3 months) and long-term (6–12 months) depending on the process. The objective of this paper is to conduct a performance comparison of five deep learning models each combined with three types of data pre-processing and used for short term and long-term multi-variate predictions. The input data are time series of the wind power capacity factor and the temperature. In addition, this paper sets out to demonstrate and review the state-of-the-art deep learning models for prediction with a secondary objective to present the reader a reference point to better understand which model to choose and what factors are significant. The first contribution of this paper is to apply, assess and compare a selection of the novel and cutting-edge deep learning models for multi-variate prediction. Multi-variate predication is achieved through a proposed multiple input and multiple output (MIMO) architecture. Compared to traditional prediction models, machine learning techniques have the advantage of generalization. Among various techniques deep learning is particularly getting more attention due to the applicability to various dataset such as numerical and character. This investigation focuses on five models — Deep Feed Forward (DFF), Deep Convolutional Network (DCN), Recurrent Neural Network (RNN), Attention mechanism (Attention) and Long Short-Term Memory Networks (LSTM). The second contribution is to propose a novel approach to transform the time series dataset to signal for input and reconstruct the model predictions through inverse transformation, by means of the so-called discrete wavelet transformation and fast Fourier transformation. The different models are assessed also by comparing their performance with and without the input dataset manipulation through wavelet and FFT transformation. Beyond that, the model performances are outlined in detail, to give the reader an overview of the models to choose from for short-term or long-term prediction. The results demonstrate that the Attention and DCN perform best with Wavelet or FFT signal, whereas some other models perform better with no data preprocessing. c 2019 Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/). Peer-review under responsibility of the scientific committee of the Tmrees, EURACA, 2019. Keywords: Unsupervised machine learning; Multi-variate prediction; Short and long term prediction; Wind power forecasting; Time series to frequency transformation; Performance evaluation and comparison ∗Corresponding authors. E-mail addresses: [email protected] (S. Mishra), [email protected] (C. Bordin). https://doi.org/10.1016/j.egyr.2019.11.009 2352-4847/ c 2019 Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/ licenses/by-nc-nd/4.0/). Peer-review under responsibility of the scientific committee of the Tmrees, EURACA, 2019.
274 S. Mishra, C. Bordin, K. Taharaguchi et al. / Energy Reports 6 (2020) 273–286 1. Introduction Even if wind energy is intermittent and stochastic in nature, it is increasingly important in the power generation because it is a clean, sustainable and pollution-free source [1]. Since wind power is not fully dispatchable, the accuracy of wind forecasts is a key element for the electric system operators, as it strongly affects the decisionmaking processes [2]. In fact, wind generation can impact the electricity costs and prices and its potential effects on the overall power system are of interest to power system planners and policy makers globally [3]. The variation in wind power can jeopardize the power system quality and stability as well as affect the market participants who bear the economic losses due to failure of producing the contracted amount of energy [1]. As discussed in [3] day-ahead electricity spot prices are affected by day-ahead wind power forecasts. The relationship between wind power forecasts and spot prices is shown not only to exist, but also to be highly non-linear and time dependent. The spot price is, on average, shown to decrease with increased predicted wind power penetration, while intraday price variations diminish to some extent. The relationship between intermittent wind power generation and electricity price has been investigated also in [4]. The results show that variable wind power reduces the price level but increases its volatility. The dramatic impact of wind power generation on the overall power system and market outlined in the studies mentioned above, motivates to study the problem of prediction of time-series wind power. There is a need of tools to accurately forecast wind power generation in order to mitigate the undesirable influences of integrating wind energy into the electric power grids. Moreover, several studies showed the impact of weather regime and meteorological data on the wind power ramp forecasts [5,6]. Temperature has been found as an important meteorological factor affecting the wind speed [7,8]. This motivates to study wind power generation forecast by considering not only historical wind data, but also weather data, such as temperature. Forecasting of wind power generation has therefore received wide attention in literature. Several reviews of different approaches, models and methodologies for wind speed and power prediction can be found in [9–13]. Such works emphasize the diversity of various forecasting methods available and the need for comparisons in order to investigate which approaches perform better, in which conditions and why. No forecasting models can be perfect in every condition, hence more in-depth comparative studies and methodologies assessments should be carried out by the ongoing research. Moreover, novel machine learning techniques should be further investigated, applied and compared to further improve the forecasting approaches within the wind power generation field. The main objective of this paper is to forecast wind power both from historical wind generation data and from meteorological data (namely, temperature), using deep learning models. The first contribution of our paper is to apply, assess and compare a selection of the cutting-edge deep learning models for wind power prediction. Compared to traditional learning methods, deep learning methods have the advantage of data learning and generalization ability. The focus will be given in particular to Long Short-Term Memory Networks (LSTM), Artificial Neural Networks (ANN), Attention based models and Deep Convolutional Networks (DCN). The wind power forecast will be performed by focusing on one particular deep learning modeling structure, namely “Multiple Input, Multiple Output” (MIMO). This means that the deep learning models will be fed with multiple input dataset (wind power and temperature historical values) and they will provide a multiple set of predictions as output (wind power and temperature predictions). The second contribution is to enhance the model’s comparisons by analyzing their performance in forecasting over different time horizons. Four different time horizons for forecast will be assessed, from short term to long term. Performance indexes will be calculated based on established evaluation criteria (Average gap, MSE, RMSE and RMSLE) for each model in order to analyze the performance in forecasting over 1 month, 3 months, 6 months and a year. The third contribution is to propose a novel approach to manipulate the input dataset for the deep learning models, by using a so-called wavelet transformation and fast Fourier transformation. This will provide a smoother input dataset into the models and therefore will improve the overall computational time compared to the traditional data generation approaches. Of course, smoothing the dataset will also affect the model’s performance in terms of accuracy of predictions. Hence the different models will be assessed also by comparing their performance with and without the input dataset manipulation through wavelet and fast Fourier transformations respectively. The LSTM approach has been applied for wind power forecast in [14] and compared with neural network and support vector machine models. According to this study, LSTM showed a higher prediction accuracy and greater potential for engineering applications. A wind speed forecasting method based on LSTM can be found also in [15]. The experimental results indicate that the LSTM network has the strong nonlinear processing ability and it is suitable for the non-stationary wind speed forecasting computation. As discussed in [16], the ANN have been widely applied
S. Mishra, C. Bordin, K. Taharaguchi et al. / Energy Reports 6 (2020) 273–286 275 in literature for forecasting purposes within the wind power generation field. A comparative study considering three ANN is presented in [17]. The results show that even for the same wind dataset, no single neural network model outperforms others universally in terms of all evaluation metrics. Moreover, the selection of the type of neural networks for best performance is also dependent upon the data sources. Five different ANN models are developed and assessed in [7] where results are compared with real data and show a very good accuracy of 70%. Another successful application of ANN for wind power prediction can be found in [18] where high prediction accuracy is shown by the results and validations. Regarding Attention based models there is still very little in literature in terms of wind power forecast applications. However, a good introduction to the Attention based models’ specific properties can be found in [19]. Attention mechanisms are also introduced in [20] as deep learning methods able to improve the accuracy on many tasks, particularly within natural language processing and image recognition. The importance of attention mechanisms is also discussed in [21] as a promising method to better address the real-world complexity. In addition, an automatic forecasting of time series data with Multifactor Neural Attention can be found in [22]. The novel methodology achieves a 23.9% improvement of forecasts in comparison to other neural networks proposed for time series forecasting to date. Deep Convolutional Networks have been utilized for wind power predictions. An application can be found in [23] where the results demonstrate that the uncertainties in wind power data can be better learned using the proposed approach and that a competitive performance is obtained. Another successful application is presented in [24] where authors obtained a mean square error reduction by 49.83% compared to state- of-the-art methods. A survey to get an overview of Adversarial Networks applications can be found in [25] where applications in different fields are discussed. However, more focused applications on wind power are discussed in [22,26]. The former addresses wind speed forecasting, while the latter focuses on Wind power scenarios for stochastic optimization problems for power systems in which wind power is a significant component. The rest of the paper is organized as follows: section Machine Learning Models for Prediction will introduce the key properties of the deep learning models addressed in this paper. Section Input data preparation and transformation will outline the data pre-processing tasks and their implications. Finally, section Model Tests and Results will demonstrate the results obtained after the models’ comparison. 2. Machine learning models for prediction In [27] the authors presented the view that there is a vast literature available on machine learning algorithms, and they presented the advances over existing algorithms. However very little has been done is investigating the relative performance of the models. This paper aims at addressing this issue and provide a comparative overview about models and their performances. The input parameters for the prediction are wind capacity factor and temperature time-series dataset. The predictions can be of univariate or multi-variate type. The former is used in case of single variable predictions and the latter is used for predicting multiple variables that captures the relation between the input parameters. The purpose of this section is to briefly introduce the main properties of the machine learning models addressed in this paper. For prediction a multiple input and multiple output (MIMO) architecture is chosen that takes two parameters, wind capacity factor and temperature, as inputs and performs forecasts as shown in Fig. 1. State-of-the- art deep learning models will be compared based on their performance on predictions, in order to demonstrate and outline their potential and their differences. The following paragraphs will introduce the most important aspects of Deep Feed Forward (DFF), Deep Convolutional Network (DCN), Attention mechanism (Attention) and Long Short-Term Memory Networks (LSTM). Fig. 2 illustrates the schematics of the models considered for this investigation. The models are programmed using TensorFlow [28] package from Google in Python environment [29]. The fundamental principles behind machine learning algorithms can be summarized as in (1) and (2). The (1) reflects the feed forward network where the input value iis multiplied with the weight matrix w[28] while hpresents the hidden state. In addition to that a bias bis introduced. Note that in (1), the output is not time dependent, therefore the memory effect (namely the ability to carry forward information from past events) is not taken into account. On the contrary, in (2) the output is time dependent and therefore the memory effect is included [28]. In particular, htpresents the hidden state at time step twhich is a function of the input it altered with a weight matrix W. Moreover, the hidden state of the previous time step ht−1 is multiplied with a transition matrix S. The weight refers to the level of importance for present and past hidden states. The errors are returned through back propagation and used to adjust weights until the best performance is achieved. The activation function
276 S. Mishra, C. Bordin, K. Taharaguchi et al. / Energy Reports 6 (2020) 273–286 Fig. 1. General structure for predictions. Fig. 2. Model structures and input parameters. η, groups the sum of different weights and hidden states, through logistic sigmoid function, or tanh or Rectified Linear Unit (ReLU) [30]. For the purpose of this paper, the ReLU is adopted. h=η(wi)+b(1) ht=η(w·it+S·ht−1)(2) Deep convolutional network [31] is a Deep Learning algorithm which can take any input and identify the underlying patterns. While in primitive methods filters are hand-engineered, with enough training, convolutional networks have the ability to learn these characteristics themselves. There are two unidimensional convolutions from the input to the first layer. Then, followed by the form of output, the algorithm builds each layer that shapes the output data. The pooling layer is a layer that performs element compression. DFF [32] consists of neurons, that are ordered into layers which contain input, hidden layer, and output. Each neuron in one layer is connected to every neuron on the next layer. Therefore, information is constantly feed forward from the current state. Firstly, a dense layer can receive the input data and generate an output of 512 dimensions. Next, there is an activation layer which calculates a weighted sum of the input, followed by a dropout layer which is a simple way to prevent neural networks from over-fitting. Lastly, a dense layer adapts the multi outputs which have two dimensions. RNN is a network with feedback loops that allows information to persist. However, the challenge for RNN is long-term dependency. In fact, as the gap between the relevant information and the point where it is needed grows, RNN becomes unable to
S. Mishra, C. Bordin, K. Taharaguchi et al. / Energy Reports 6 (2020) 273–286 277 learn how to connect the incorrect information. At this point, LSTM is explicitly designed to avoid the long-term dependency problem, with four interacting layers. The LSTM networks are categorized as the kind of RNN which is able to predict long-term dependencies. This idea was introduced in [33]. LSTM has the same structure of RNN, but different modules inside. This can avoid the long-term dependency issues. The significant achievement of LSTM is the ability to make use of short-term memory over a long period. The model consists of three layers (two LSTM layers and one dense layer). These layers can receive the input data and generate an output of 512 dimensions. There is a dropout layer which is a simple way to prevent neural networks from over fitting. Lastly, a dense layer adapts the multi outputs which have two dimensions. The sequence to sequence (seq-to-seq) algorithm is one of the most promising methodologies for prediction in deep learning models. A seq-to-seq model has two components, an encoder and a decoder. The former encodes the input to a context vector, and the latter decodes the context vector with each time step. Attention is a seq-to-seq type mechanism. It was developed in [34] to overcome the issue of fixed context vector, by introducing filtering priority for each time step. The authors in [35] presented the Adaptive Moment estimation (ADAM) optimizer as an extension to stochastic gradient descendent. ADAM is based on adaptive moment estimation. ADAM has two parts — Adaptive Gradient Algorithm (AdaGrad) and Root Mean Square Propagation (RMSProp). ADAM computes the individual adaptive learning rates for different parameters, from estimates of first and second moments of the gradient. The Table 1 outlines the input parameters for the models considered for investigation. Standard parameters based on literature were selected for a comparative analysis among the five models. In a future study hyper parameter tuning will be performed wherein the parameters would be optimized for each model for better performance. Table 1. Parameters selected for the deep learning models for comparison. Model Batches Epoch Optimizer Learning rate Attention 168 200 ADAM 1.00E−03 DCN 168 200 DFF 168 200 indRNN 168 200 LSTM 168 200 3. Input data preparation and transformation The wind power production and temperature data for 6 years (2011–2016) are collected from [36] for Paldiski, Estonia. Using the min–max normalization method wind capacity factors (WF) are generated. The Fig. 3, in section (a) and (c), shows the heat map and the three-dimensional plot for temperature and wind power factor input data structure. In particular, for the heat map, the lighter the color is, the higher the temperature or wind values are. It is evident that the temperature is high from June to August due to the influence of the summer season, while the temperature is low from December to February. According to the plot, the temperature rises from April to May in all the years. Moreover, a comparison between January in 2011 and 2016 shows that the temperature was lower in 2011. There has been a little change in temperature year by year since May. It turns out that there is relatively higher production in winter than in summer season. On the other hand, it is evident that the smallest amount of wind power capacity factor is in July for most of the years. From 2011 to 2016, the most significant wind power capacity factor was 0.97, the lowest was 0. The Fig. 3, in section (b) and (d), shows that the capacity factor for December is the highest in any year. Furthermore, in January and March on 2013 and 2014, the capacity factor is lower compared to other years, and the same trend can be seen in May and July. According to the procured data the highest temperature from 2011 to 2016 was 29.47 ◦C, and the lowest temperature was −30.11 ◦C. Historical time-series from 2011–2015 have been used as input. A 50–50 division was used for training and testing to avoid over or under fitting problems. Historical data for 2016 was used for validation. For example, January 2016 is used for one-month validation, January to March 2016 was used for 3 months validation. Similarly, January to June 2016 and January to December 2016 were used for 6 months and 12 months validations respectively. The input dataset has been manipulated through wavelet transformation and fast Fourier transformation (FFT). These are methodologies that can be used to transform the data from time to frequency domain. Wavelets are a popular tool for computational analysis. They provide localization in both the temporal domain as well as in the frequency domain [37]. A prominent feature is the ability to perform a multi-resolution analysis [38]. This method is key
278 S. Mishra, C. Bordin, K. Taharaguchi et al. / Energy Reports 6 (2020) 273–286 Fig. 3. Input wind power and temperature data set. to ensure a good performance of wavelets in applications such as data compression and de-noising. The discrete wavelet transform (DWT) operates over scales and positions based on the power of two components. As per [39,40] when decomposing the original signal yt, two components A j and DJ are produced by convoluting the signal with a decomposition low pass filter (DLP) and a decomposition high pass filter (DHP) respectively. In (3) ytpresents the actual value at time t, while cA presents the approximation coefficient, and cD stands for detail coefficient. yt=cA j+ J ∑ j=1 cDJ(3) The Fast Fourier transformation (FFT) is applied to transform the time-series data as in [41]. This transformation computes the n-dimensional, n-point discrete Fourier transform with the efficient Fast Fourier Transform algorithm. As shown in Fig. 4, through wavelets and FFT transformations, the dataset can be converted from a time series domain into a frequency domain, which is smoother and therefore easier to process by the deep learning algorithms. Pywavelet package [42,43] for python is used for the transformations. The Scipy package in python provides forward and reverse FFT transformation which was used for this investigation. Fig. 5 gives an overview of the input data processing process, while Fig. 6 shows how wavelet and FFT transformations are placed within the forecasting process. The original time series-based dataset is first converted into a frequency domain signals and fed into the prediction model. The predicted signal is then converted back into a time series domain through inverse transformation. Note that the original time-series data has many variations in contrast with the signal which are smoother by nature. To better understand the implications of wavelet and FFT transformations, let us look at a prediction example. Fig. 7 shows an example of wind power prediction using indirect recurrent neural networks (IndRNN), when using an original time-series data structure, which means, a data structure that has not been manipulated. The Figs. 8 and 9shows the prediction results when wavelet and FFT transformation are applied respectively. The performance
S. Mishra, C. Bordin, K. Taharaguchi et al. / Energy Reports 6 (2020) 273–286 279 Fig. 4. Sample time-series to signal transformation using discrete wavelet (top) and Fast Fourier Transformation (bottom). Fig. 5. Schematic representation of the input data processing. measures including average gap, mean average percentage error, mean square error, mean square root error and logarithmic mean square root error are presented for 1, 3, 6- and 12-months prediction period respectively. The figures show that there is a loss in reconstruction of signals from frequency domain to time-series. in fact, the two curves (namely the prediction curve in red and the actual curve in blue) visually look similar, but there is a slight gap when wavelet and FFT transformation are applied. A detailed comparison of model performances is presented in the following section. The Table 2 presents the machine specifications used for the purpose of this investigation. To avoid over or under fitting the input dataset is divided in 50–50 ratio for training and validation purpose. The execution times are also recorded to demonstrate the reader what to expect while performing similar tests. The models are saved in Hierarchical Data Format (HDF) for re-usage.
280 S. Mishra, C. Bordin, K. Taharaguchi et al. / Energy Reports 6 (2020) 273–286 Fig. 6. Insertion of data transformation within the pre-processing and post-processing operations. Fig. 7. Prediction using indRNN using original input data. Table 2. Machine specifications where the simulation was run. Windows edition Windows 10 Pro Processor Intel i7 [email protected] GHz Installed memory (RAM) 16 GB System type 64-bit operating system 4. Model tests and results The selected deep learning models have been tested for wind and temperature prediction, with and without wavelet and FFT transformation and over different time horizons, from short term to long term. The objective is to get insight in the overall performance of the different models and investigate their suitability in different conditions. It is possible to note that a common machine specification with average computational capabilities has been used. Therefore, the proposed models can perform well with conventional machines and there is no need to use special computational power or expensive IT infrastructures. However, finding optimal parameters for the model to improve