Next Article in Journal
Reliability Assessment of Distribution Networks with Optimal Coordination of Distributed Generation, Energy Storage and Demand Management
Previous Article in Journal
The Application of Ontologies in Multi-Agent Systems in the Energy Sector: A Scoping Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Short-Term Load Prediction Based on Seq2seq Model

1
Beijing Engineering Research Center of Energy Electric Power Information Security, North China Electric Power University, Beijing 102206, China
2
School of Applied Science, Beijing Information Science and Technology University, Beijing 100192, China
*
Author to whom correspondence should be addressed.
Energies 2019, 12(16), 3199; https://doi.org/10.3390/en12163199
Submission received: 21 July 2019 / Revised: 15 August 2019 / Accepted: 16 August 2019 / Published: 20 August 2019
(This article belongs to the Section F: Electrical Engineering)

Abstract

:
Electricity load prediction is the primary basis on which power-related departments to make logical and effective generation plans and scientific scheduling plans for the most effective power utilization. The perpetual evolution of deep learning has recommended advanced and innovative concepts for short-term load prediction. Taking into consideration the time and nonlinear characteristics of power system load data and further considering the impact of historical and future information on the current state, this paper proposes a Seq2seq short-term load prediction model based on a long short-term memory network (LSTM). Firstly, the periodic fluctuation characteristics of users’ load data are analyzed, establishing a correlation of the load data so as to determine the model’s order in the time series. Secondly, the specifications of the Seq2seq model are given preference and a coalescence of the Residual mechanism (Residual) and the two Attention mechanisms (Attention) is developed. Then, comparing the predictive performance of the model under different types of Attention mechanism, this paper finally adopts the Seq2seq short-term load prediction model of Residual LSTM and the Bahdanau Attention mechanism. Eventually, the prediction model obtains better results when merging the actual power system load data of a certain place. In order to validate the developed model, the Seq2seq was compared with recurrent neural network (RNN), LSTM, and gated recurrent unit (GRU) algorithms. Last but not least, the performance indices were calculated. when training and testing the model with power system load data, it was noted that the root mean square error (RMSE) of Seq2seq was decreased by 6.61%, 16.95%, and 7.80% compared with RNN, LSTM, and GRU, respectively. In addition, a supplementary case study was carried out using data for a small power system considering different weather conditions and user behaviors in order to confirm the applicability and stability of the proposed model. The Seq2seq model for short-term load prediction can be reported to demonstrate superiority in all areas, exhibiting better prediction and stable performance.

Graphical Abstract

1. Introduction

Short-term load forecasting has an important impact on major decisions, such as the day-to-day operation of the power grid and dispatch planning [1]. Many scholars have carried out numerous studies on power system load prediction, among which the traditional prediction methods include the time series method [2], the regression analysis method [3,4], trend extrapolation [5], etc. The implementation principle of these methods is simple, fast operation speeds that are suitable for processing data characteristics of a single and small data set. However, despite their nonlinear characteristics, large data volumes, lack of robustness, and poor adaptability, modern load prediction methods mainly include gray mathematical theory [6,7], fuzzy prediction method [8], neural network method [9,10], and so on. In recent years, artificial intelligence has come to be widely used in image processing, speech recognition, power systems [11], and other fields. In the smart grid, artificial intelligence is widely used in power generation, transmission, power distribution, and the power market, while on the power side, accurate load prediction is carried out using the artificial intelligence algorithm [12], which effectively reduces the cost of power generation, making reasonable power generation plans for the power system. Through the real-time prediction of user-side power consumption, the power grid dispatch work is carried out in a punctual and appropriate manner, so as to maintain the safe and stable operation of the power grid.
Deep learning algorithms exhibit a good ability to extract data characteristics when processing large amounts of power data, and power system load prediction is designed to extract typical features from complex and variable historical load data, so as to make accurate load predictions. The power system load data is typical time-series data. Therefore, the use of deep learning algorithms to process the load data achieves better results. The literature has put forward a time series decomposition model [13], which effectively reflects the factors that affect load prediction in order to achieve the accurate prediction of load data; however, it is easy to ignore the correlation between time periods, and the load prediction of some time periods is significantly biased. The paper proposes a time series prediction method based on the lifting of wavelets [14], which predicts the electricity consumption in residential areas by means of denoising the historical load data, exhibiting a stronger nonlinear feature extraction ability than the time series model deep learning algorithm. Studying the factors influencing load prediction, a load prediction model based on artificial neural network (ANN) was developed [15]; however, the model is easily caught in local extreme values and lacks the modeling of time factors during ANN training. By using an ant colony optimization algorithm to optimize the recurrent neural network (RNN) prediction model, the prediction accuracy of traditional RNN is improved [16], there is a problem of gradient disappearance and long-term dependence. To improve the accuracy of traditional RNN prediction, the problems of gradient disappearance and long-term dependence need to be solved, and the authors adopt the long-term and short-term memory network (LSTM) prediction model method, combined with the real-time electricity load data, in order to solve the problems of gradient disappearance and long-term dependence [17], but lacks consideration of the influence of historical information and future information on the current state. Self-encoders are unsupervised deep learning models with stronger feature extraction abilities, and a stack-based self-encoder prediction model was introduced that extracts the characteristics of the input data in a comprehensive way [18], which has strong prediction accuracy and generalization ability.
Based on our research into the above literature, and by observing the shortcomings of the above prediction methods, this paper proposes a short-term load prediction model of the Seq2seq codec based on LSTM and improves the performance of the multi-layer LSTM network by adopting the Residual mechanism. The introduction of the Attention mechanism into the decoding process achieves selective feature extraction of load prediction data, improves the correlation of input and output data, improves the accuracy of model prediction, and ultimately, comparison with other prediction methods indicates that the method proposed in this paper has better prediction effect.

2. Motivation and Problem Statement

At present, although the power industry is vigorously developing huge energy storage devices, because of the special nature of electricity, it is still difficult to implement large-scale storage at this stage. The prediction of electricity load is carried out so as to reasonably plan power generation and reduce power wastage, with each increase in load forecast accuracy of 1% saving about 0.1% to 0.3% in energy costs [19]. With the large-scale grid interconnection of new loads, such as renewable energy and flexible loads (such as electric vehicles), the components of user-involved load consumption are growing more complex every day. The uncertainty and nonlinearity of the electricity load are gradually increasing, and the relationship between the demand of the source and the load-side consumption is maintained, which is consistently increasing the accuracy of load prediction. Improving the accuracy of user-side load prediction plays an important role in power grid power planning and power scheduling [20].
Increasing the load forecasting level saves coal and reduces power generation costs, helping to formulate reasonable power supply construction plans, which will then help in increasing the economic benefits of power systems and society [21,22].
A key area of investigation in power load forecasting is the means by which existing historical data can be used to establish suitable forecasting models to predict the load at a future time or in a given time period. Therefore, the reliability of historical load data and the choice of the predictive model are the main factors influencing precision. As the nonlinearity and uncertainty of the power dataset increase, the difficulty of obtaining accurate load forecasting results increases. The accuracy of the prediction results has always been a process that needs to be continuously improved, from the traditional regression prediction method to the current deep learning algorithm [23,24]. The prediction method is improving constantly. The deep learning algorithm has the characteristics of information memory, self-learning, optimization calculation, etc. It also has strong computing power, complex mapping ability, and various intelligent processing capabilities [25].

3. Seq2seq Codec

The Seq2seq model is Google’s mainstream machine translation architecture. It was originally applied in the field of machine translation [26], which is suitable for sequence-to-sequence applications. Seq2seq consists of two parts, an encoder and a decoder, which effectively extracts the features of the input data. The users’ power system load data has typical time-series characteristics. Load prediction using the Seq2seq model achieves better results. Therefore, this paper proposes using the Seq2seq model in order to calculate the electricity consumption of residents.

3.1. LSTM

The RNN has many advantages with respect to the processing of sequence data, but it is more prone to gradient disappearance and gradient explosion. LSTM is an algorithm developed on the basis of RNN to solve the gradient vanishing problems faced by RNN, and has an advantage over RNN with respect to handling complex long-term data.
Figure 1 shows the typical structure of LSTM, consisting of three main gate structures: forget gate, input gate, and output gate. Here, x t denotes the input data, h t denotes the hidden state, c t is defined as cell state, f t denotes the output state of the updated forgotten gate, i t and c are the updated input gate and output state respectively, and o t is the output state of the updated output gate. The calculated equations for each state are as follows [27]:
f t = σ ( W f h t 1 + V f x t + b f )
i t = σ ( W i h t 1 + V i x t + b i )
c ˜ t = tanh ( W c ˜ h t 1 + V c ˜ x t + b c ˜ )
c t = c t 1 f t + i t c ˜ t
o t = σ ( W o [ h t 1 , x t ] + b o )
r t = o t × tanh ( c t )
h t = W p r t
where, W and V correspond to the weight matrix, b is the bias coefficient, σ and tanh are the activation function.

3.2. Seq2seq Codec Principle

Seq2seq places no limit on the length of the input sequence or the output sequence. Recently, the Seq2seq model has been widely used in the field of machine translation [26,28,29]. The structure of Seq2seq is shown in Figure 2.
As shown in Figure 2, the Seq2seq codec consists of an encoder, an intermediate vector c , and a decoder. Codecs are typically multi-layer RNN or LSTM structures, wherein the intermediate vector c incorporates the sequence of x 1 , x 2 x m encoding information. For time t , the output of the previous moment y t 1 , the hidden layer state of the previous moment s t 1 , and c are fed as input into the decoder. Finally, the decoder’s hidden layer state s t is obtained, which predicts the output value.

4. A Short-Term Load Prediction Model Based on Seq2seq Codec Structure

4.1. Attention Mechanism

In this paper, the Seq2seq codec structure is used as the load prediction model, in which the LSTM structure is used by the encoder and the decoder. The encoding end outputs the variable-length sequence as a fixed-length sequence. As the input sequence is lengthy, it is difficult for the decoding end to obtain effective information. Therefore, the output of the LSTM encoder to the input sequence is preserved by introducing the Attention mechanism. Then, the model is trained to selectively learn these inputs, associating the output sequence with the model outputs. In turn, highly correlated useful features are extracted with the output sequence. The main equations that describe the Seq2seq codec structure model are as follows:
The input and output sequences of the model are recorded as x and y:
x = ( x 1 , x 2 x m )
y = ( y 1 , y 2 y n )
The hidden layer status of the encoder section is recorded as h t :
h t = LSTM enc ( x t , h t 1 )
In the decoding process, the Attention mechanism is introduced, comparing the two attention mechanisms: Bahdanau Attention [30] and Luong Attention [31]. These two attention mechanisms are similar in structure, but their alignment functions are different in the decoding process.
(1)
Bahdanau Attention: During decoding, the first step is to generate the semantic vector for particular time:
c t = i = 1 T α t i h i
α t i = exp ( e t i ) k = 1 T exp ( e t k )
e t i = V a T tanh ( W a [ s t 1 , h i ] )
where c t is the semantic vector at time t, e t i is the degree of influence of the hidden state h i of LSTM in the process of encoding, and of the hidden state s t of LSTM in the process of decoding. α t i is a normalized value given by the softmax function. V and W are the weight parameters of the model.
The second step passes the hidden layer information:
s t = tanh ( W [ s t 1 , y t 1 , c t ] )
(2)
Luong Attention: During decoding, the first step is to generate the semantic vector for time t:
c t = i = 1 T α t i h i
α t i = exp ( e t i ) k = 1 T exp ( e t k )
s t = tanh ( W [ s t 1 , y t 1 ] )
e t i = s t T W a h i
The second step passes the hidden layer information:
s ˜ t = tanh ( W c [ s t , c t ] )
Unlike the Bahdanau Attention mechanism, Luong Attention computes the initial state of the hidden layer s t and then the hidden layer state of the decoder s ˜ t .
During the decoding process, the new weight vector of the decoder LSTM is obtained by the Attention mechanism, and the power system load is predicted using the trained LSTM.

4.2. Residual Mechanism

LSTM has an internal storage unit that enables LSTM to learn time series data for long-term dependence. Compared to RNN, LSTM avoids to some extent the gradient disappearance or gradient explosion problems associated with the increase in training number. However, with the increase in the data volume, the number of LSTM layers and the amount of training data leads to the model being overtrained. Therefore, this paper adopts Residual LSTM [32], modeled on the residual neural network ResNet, which was proposed by Kaiming He [33] to overcome this overtraining problem. Residual LSTM provides an additional low-space shortcut path, which uses the output layer to separate the fast path of space from the fast path of time when training multi-layer LSTM. Residual LSTM uses LSTM’s output projection matrix and output gate to control the spatial information flow, rather than the additional gate network. When the network reaches the optimal state, the network only retains the constant mapping value of the input vector, effectively reducing the network parameters and improving the network performance. A structural diagram of the Residual LSTM is illustrated in Figure 3.
The residual network is calculated by a quick path, and since the identity map is always on, the function output only needs to learn the residual mapping, as shown in Equation (20):
y = F ( x ; W ) + x
where y is the output layer, x is the input layer, F ( x ; W ) is the mapping, and W is the internal weight parameters of the network. In the absence of the shortcut path, F ( x ; W ) represents the output y obtained by the input x , and when there is a constant map of input x, F ( x ; W ) only needs to learn the residual mapping y x . When the model training is stable, no new mapping is required, and the network is transmitted directly by constant mapping F ( x ; W ) , thus simplifying the training of deep networks.
There was no change in the Residual LSTM type (1)–(5), and the update changes are as follows:
r t = tanh ( c t )
m t = W p r t
h t = o t ( m t + W h x t )
Here, W is the weight of the model.

4.3. Short-Term Load Forecasting Model and Flowchart

Figure 4 shows the load prediction model used in this paper. First of all, the electricity load data is obtained from the data center, then the data is pre-processed, and finally, a short-term load prediction is made through the intelligent algorithm presented in this paper.
In this paper, the Seq2seq model based on LSTM is used to realize the short-term load prediction model for users, and the specific implementation process is illustrated in Figure 5. Firstly, the raw data is collected and carried out with respect to the residents. Then, the historical electricity load data is passed through data cleaning and pre-processing, using mean value substitution for missing values, etc. The processed data is separated into a training data set and a test data set. The model is trained with the training data, the parameters of LSTM of the Seq2seq model, the Attention mechanism and the Residual mechanism are optimized, and the trained Seq2seq model is implemented by TensorFlow. The preservation and extraction of the model are realized by tf.train Saver, and the effectiveness of the model is verified using the test data set, from which it predicts the short-term user electricity load, and these prediction results are analyzed to determine any shortcomings and to continuously improve the model.
In [34], Niu et al. analyzed the RNN structure using the numerical method of ordinary differential equations, and proposed an ODE theoretical framework to prove the training stability of the LSTM architecture. In [35], the residual neural network (ResNets) composition rules were mapped between hidden variables and the Euler discretization of continuous differential equations, thereby improving the training stability. Thus, the proposed model consists of a residual neural network and an Attention mechanism, showing better stability under a variety of conditions, as described in Section 5.4.

5. Simulation Experiments

5.1. Introduction to the Dataset

This research study was carried out on a personal computer with a single CPU of 2.6 GHz and 8 GB of memory. The simulation process was done using Python 3.6.8, and the TensorFlow deep learning framework developed by Google.
In this paper, the New York State Power history power system load data, published by NYISO Corporation [36], was selected as input for the model training and testing process. Hourly data was selected as a load point, and a total of 8760 load data, of which 80% comprises the training data set and the remaining 20% comprises the test data set. The first 7008 load data were used as a single variable load prediction training data set, and the remaining 1752 load data were used as a single variable load prediction test data set.
Figure 6 clearly shows that the load data fluctuates periodically, wherein the 168-h load data for a week are shown in Figure 7.
The electricity load is a random process, in the study of random processes, the self-correlation coefficient shows whether the random process is stable and chooses the appropriate model order. Therefore, the self-correlation coefficient of the training data is calculated, as shown in Figure 8.
Figure 7 shows the electricity load in a particular area, showing periodic fluctuations, and Figure 8 shows, with the increase in latency, that the correlation coefficient begins to decrease in the early stage, and with the increase of lag time, when the lag time is 24 h, the maximum peak is 0.87439. Therefore, the selected time series model order is 24, i.e., the historical load data of the first 24 hours of data is used as the characteristic vector rolling prediction. Hence, it is proved that the model is more applicable when using only single-dimensional data to build the model.

5.2. Performance Indices

For the performance evaluation of the proposed model, this paper uses Mean Square Error (MSE), Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and Mean Absolute Percentage Error (MAPE). The measures of error are expressed as follows:
{ MSE = 1 m i = 1 m ( y i y ^ i ) 2 RMSE = 1 m i = 1 m ( y i y ^ i ) 2 MAE = 1 m i = 1 m | y i y ^ i | MAPE = 100 % m i = 1 m | y i y ^ i y i |
Here, y ^ i represents the true value, y i represents the predicted value, and m represents the dimension of the data.
The MSE represents the expectation of the difference between the estimated values and the true values. In addition, RMSE is the square root of MSE, describing the magnitude of the errors in terms of making decision making more convenient for users. MAE is the average of the absolute errors between the estimated values and the true values, reflecting the true estimated value error. Moreover, MAPE expresses the percentage error accuracy between error and true values. The lower values of MSE, RMSE, MAE, and MAPE shows better prediction characteristics.

5.3. Seq2seq Preferred Model Parameters

In this paper, the Seq2seq codec structure is used to predict the electricity load, with both encoding and decoding using the LSTM structure, followed by the number of LSTM layers to optimize the number of layers in the model.
The initial learning rate of the experiment was set to 0.01, the attenuation rate was set to 0.5, the number of hidden layer nodes was set to 100, and after 100 trainings, the training error and test error obtained by the model under the selection of different layers are shown in Figure 9 and Figure 10, respectively.
Figure 8 shows that the training error of using quintuple layered LSTM structure is large, and the test errors after single layer, double layer, and triple layer training are comparatively lower. From Figure 10, the test error of the Seq2seq model with single layer, double layer and quintuple layer LSTM structures are highly volatile. Therefore, the combined comparison of Figure 9 and Figure 10 suggests the selection of the three-tier LSTM structure model, as the error is minimal.
In deep learning, the model learns the “universal law” of all samples from the training sample through training, which tends to cause overfitting and underfitting. By increasing the amount of model training iterations, it is possible to overcome the phenomenon of underfitting. By increasing the data set and introducing the formal approach, it is possible to overcome the overfitting phenomenon. This paper adopts Dropout [37] on this basis of the nerve unit, which is temporarily removed from the network with a probability of 0.5 during training, and the Attention mechanism and Residual mechanism are introduced.
By selecting the coalescence of the Residual mechanism and the two Attention mechanisms for simulation verification in Figure 11, the training error, test error and training time of the model are compared, and the results are shown in Table 1.
In Table 1, true and false represent whether the model uses corresponding Residual or Attention mechanisms, respectively, and Table 1 shows that when the model adopts the Residual mechanism, the training error and test error of the model are significantly reduced. It is shown that the addition of the Residual mechanism improves the predictive performance of the model, compared with two different Attention mechanisms, the model adopts the Residual mechanism and the Bahdanau mechanism adopts the model with better performance, and the training error and test error value are minimal. Therefore, the Seq2seq model used for short-term load prediction adopts the combination of Residual mechanism and Bahdanau mechanism, as shown in Figure 12.
When the Seq2seq model is trained, an iterative prediction is used, and the accuracy of the experimental results is obtained by adjusting and selecting the parameters of the model in order to achieve the desired results. The model parameters are set as shown in Table 2.
Based on the large power system dataset, 80% of the data are used for training the model and remaining are used for testing of the model. The input length of the data is set to 24, and the output length of the data is set to 1, with a learning rate of 0.01 and a decay rate of 0.5. The hidden neurons of the Residual LSTM are set as 100, with 200 decay steps. The model is trained for up to 300 iterations with a batch size of 200. The Adam optimizer is used to minimize the loss function and the disturbance optimization. The gradient value is set to 5.0.

5.4. Experimental Results and Analysis

After the model training, the test data set is predicted. The test set data is used as input to the model once it has been trained, and the input data is computed by the model to obtain the predicted values, and the forecast results obtained by the load prediction model are compared with the real values. It can be seen in Figure 13 that the predicted value and the true value basically coincide with each other.
In this paper, the performance shows that the load prediction model with Seq2seq has stronger optimization capabilities. To demonstrate the superiority of the proposed method, compared with the optimal results, the initial and optimal fitness of the Seq2seq model was significantly superior to the results of the RNN, LSTM, and GRU models. The comparison graph is shown in Figure 14.
In Figure 14, it can be observed that, compared to RNN, LSTM, and GRU, the short-term load forecasting using Seq2seq model is better. The prediction results obtained by the Seq2seq model proposed in this paper are smooth, and the fitting effect is good. The error between the prediction result and the real value obtained by the RNN, LSTM, and GRU algorithms is large. The errors under different algorithms are shown in Table 3 and Table 4.
It can be observed from the above table that short-term load prediction is used by the algorithm of this paper, and the errors are comparatively smaller than for the RNN, LSTM and GRU algorithms, showing that it has a better prediction effect.

5.5. Supplementary Experiment

To illustrate that this experiment shows better prediction results for the load forecasting of small power grids, this paper uses the data of a small power grid as the experimental data set, and uses the Seq2seq proposed in this paper to carry out load forecasting. In [38], the authors considered the impact of different types of day, which is important for load prediction. In the forecasting process, the weather (temperature, holidays, and humidity, etc.) data were also used as input variables. The detailed input data types are shown in Table 5. In addition, the experimental results with a comparatively minimized error were obtained, as shown in Figure 15 and Figure 16.
It can be observed from Figure 15 and Figure 16, that for load forecasting, if more parameters such as date and weather are selected under the same model training parameters, it will improve the model learning. With the same training times, if other relevant features are introduced, the learning performance of the model will be much higher than that of the pure load data training, and the accuracy of the model is improved when the training data is small, also improving the overall model prediction accuracy. In terms of training the model with large and small power system data, the proposed model exhibits smooth behavior, as seen in Figure 15, and thus the model can be considered to be more stable.

6. Conclusions

The outcomes of load forecasting are conducive to determining the power that needs to be generated in the coming days, the installation of new generator sets in the future, the determination of the size, location and time of the installed capacity, the determination of capacity expansion and reconstruction of the power grid, and the determination of the construction and development of the power grid. Moreover, it assists in the stable operation of the power system by predicting the demand. Therefore, the accuracy of load forecasting directly affects the stable and efficient operation of the power grid. This paper proposes a novel Seq2seq model for more precise power system load forecasting.
The main contributions of this paper are as follows:
(1)
The progressive application of the Seq2seq model for load forecasting. Initially, the model was widely used in the field of machine translation, and it has been used for load forecasting to obtain better load forecasting results.
(2)
According to the periodic characteristics of historical load data, the correlation coefficient method is used to determine the order of the input historical load, and the accuracy of data feature extraction is improved.
(3)
The coalescence of Residual and Attention mechanisms is used to optimize the Seq2seq model, which overcomes shortcomings, such as model instability and lower precision, ensuring the effectiveness of power load forecasting.
(4)
To demonstrate the robustness and the stability of the proposed model, the electricity dataset of the small power grid is used for prediction, also considering different weather conditions and user behaviors.
In this paper, the short-term load prediction model based on LSTM’s Seq2seq algorithm is developed by the coalescence of the Residual and Attention mechanism, and the effective characteristics of historical load data are extracted using the model. This reduces the error of short-term load prediction, eventually improving the prediction performance of the model and presenting a new method for short-term load prediction. By constantly optimizing the performance of various deep learning algorithm to improve the prediction accuracy, it will be possible to further develop a more advanced, faster and more accurate model for load prediction.
In the future, we look forward to studying the method’s applicability for long-term forecasting. Moreover, price prediction with respect to load forecasting can be studied comparatively. Furthermore, efficiency and prediction accuracy of load forecasting may be improved by combining various forecasting methods in order to develop a robust and stable forecasting model.

Author Contributions

Conceptualization, methodology and formal analysis were made by G.G., S.S., and X.A.; Data curation, writing—original draft preparation were made by X.A., S.C., Y.W., and N.K.M.; writing—review, and editing was made by N.K.M., S.S., and Y.W.; Resources, supervision and project administration was made by G.G., and S.S.

Funding

This project was supported by the National 863 Program Project “Key Technologies for Smart Assignment of TVU Data (2015AA050203)”.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

The following nomenclatures are used in this manuscript:
ANNArtificial neural network
GRUGated recurrent unit
LSTMLong short-term memory network
MAEMean Absolute Error
MAPEMean Absolute Percent Error
MSEMean squared error
RMSERoot Mean Square Error
RNNRecurrent neural network
f t The output state of the updated forgotten gate
σ Activation function
W and VWeight Matrices
h The hidden state
b Bias coefficient
i t The updated input gate
c The output state
tanh Activation function
x Input sequences of the model
y Output sequences of the model
e The degree of influence of the hidden state
s The hidden state of the encoder
m The dimension of the data
y ^ i True value
y i Predicted value

References

  1. Ahmad, A.; Javaid, N.; Mateen, A.; Awais, M.; Khan, Z.A. Short-Term Load Forecasting in Smart Grids: An Intelligent Modular Approach. Energies 2019, 12, 164. [Google Scholar] [CrossRef]
  2. Liu, S. Peak value forecasting for district distribution load based on time series. Electr. Power Sci. Eng. 2018, 34, 56–60. [Google Scholar]
  3. Wei, T. Medium and long-term electric load forecasting based on multiple linear regression model. Electronics World 2017, 23, 31–32. [Google Scholar]
  4. Kaytez, F.; Taplamacioglu, M.C.; Cam, E.; Hardalac, F. Forecasting electricity consumption: A comparison of regression analysis, neural networks and least squares support vector machines. Int. J. Electr. Power Energy Syst. 2015, 67, 431–438. [Google Scholar] [CrossRef]
  5. Göb, R.; Lurz, K.; Pievatolo, A. More Accurate Prediction Intervals for Exponential Smoothing with Covariates with Applications in Electrical Load Forecasting and Sales Forecasting: Prediction Intervals for Exponential Smoothing with Covariates. Qual. Reliab. Eng. Int. 2015, 31, 669–682. [Google Scholar] [CrossRef]
  6. Jiang, P.; Zhou, Q.; Jiang, H.; Dong, Y. An Optimized Forecasting Approach Based on Grey Theory and Cuckoo Search Algorithm: A Case Study for Electricity Consumption in New South Wales. Abstr. Appl. Anal. 2014, 2014, 1–13. [Google Scholar] [CrossRef] [Green Version]
  7. Wang, H.; Yang, K.; Xue, L.; Liu, S. The Study of Long-term Electricity Load Forecasting Based on Improved Grey Prediction. In Proceedings of the 21st International Conference on Industrial Engineering and Engineering Management 2014 (IEEM 2014), Selangor Darul Ehsan, Malaysia, 9–12 December 2014; Atlantis Press: Paris, France, 2015. [Google Scholar]
  8. Abreu, T.; Amorim, A.J.; Santos-Junior, C.R.; Lotufo, A.D.P.; Minussi, C.R. Multinodal load forecasting for distribution systems using a fuzzy-artmap neural network. Appl. Soft Comput. 2018, 71, 307–316. [Google Scholar] [CrossRef] [Green Version]
  9. Ncane, Z.P.; Saha, A.K. Forecasting Solar Power Generation Using Fuzzy Logic and Artificial Neural Network. In Proceedings of the 2019 Southern African Universities Power Engineering Conference/Robotics and Mechatronics/Pattern Recognition Association of South Africa (SAUPEC/RobMech/PRASA), Bloemfontein, South Africa, 28–30 January 2019; IEEE: Bloemfontein, South Africa, 2019; pp. 518–523. [Google Scholar]
  10. Alamin, Y.I.; Álvarez, J.D.; del Mar Castilla, M.; Ruano, A. An Artificial Neural Network (ANN) model to predict the electric load profile for an HVAC system. IFAC-PapersOnLine 2018, 51, 26–31. [Google Scholar] [CrossRef]
  11. Sun, Q.; Yang, L. Smart energy—Applications and prospects of artificial intelligence technology in power system. Control Decis. 2018, 33, 938–949. [Google Scholar]
  12. Dai, Y.; Wang, L. A Brief Survey on Applications of New Generation Artificial Intelligence in Smart Grids. Electr. Power Constr. 2018, 39, 10–20. [Google Scholar]
  13. Cheng, D.; Xu, J.; Zheng, Z. Analysis of Short-term Load Forecasting Problem of Power System Based on Time Series. Autom. Appl. 2017, 11, 99–101. [Google Scholar]
  14. Zhang, F.; Zhang, F. Power Load Forecasting in the Time Series Analysis Method Based on Lifting Wavelet. Electr. Autom. 2017, 39, 72–76. [Google Scholar]
  15. Dehalwar, V.; Kalam, A.; Kolhe, M.L.; Zayegh, A. Electricity load forecasting for Urban area using weather forecast information. In Proceedings of the 2016 IEEE International Conference on Power and Renewable Energy (ICPRE), Shanghai, China, 21–23 October 2016; IEEE: Shanghai, China, 2016; pp. 355–359. [Google Scholar]
  16. Sun, Y.; Zhang, Z. Short-Term Load Forecasting Based on Recurrent Neural Network Using Ant Colony Optimization Algorithm. Power Syst. Technol. 2005, 29, 59–63. [Google Scholar]
  17. Li, P.; He, S. Short-Term Load Forecasting of Smart Grid Based on Long-Short-Term Memory Recurrent Neural Networks in Condition of Real-Time Electricity Price. Power Syst. Technol. 2018, 42, 4045–4052. [Google Scholar]
  18. Wu, R.; Bao, Z. Research on Short-term Load Forecasting Method of Power Grid Based on Deep Learning. Mod. Electr. Power 2018, 35, 43–48. [Google Scholar]
  19. Lin, Q. Research on Power System Short-term Load Forecasting Based on Neural Network Intelligent Algorithm. Master’s Thesis, Lanzhou University of Technology, Lanzhou, China, 2017. [Google Scholar]
  20. Khuntia, S.; Rueda, J.; van der Meijden, M. Long-Term Electricity Load Forecasting Considering Volatility Using Multiplicative Error Model. Energies 2018, 11, 3308. [Google Scholar] [CrossRef]
  21. Mujeeb, S.; Javaid, N.; Ilahi, M.; Wadud, Z.; Ishmanov, F.; Afzal, M. Deep Long Short-Term Memory: A New Price and Load Forecasting Scheme for Big Data in Smart Cities. Sustainability 2019, 11, 987. [Google Scholar] [CrossRef]
  22. Tian, C.; Ma, J.; Zhang, C.; Zhan, P. A Deep Neural Network Model for Short-Term Load Forecast Based on Long Short-Term Memory Network and Convolutional Neural Network. Energies 2018, 11, 3493. [Google Scholar] [CrossRef]
  23. Zhang, X.; Shu, Z.; Wang, R.; Zhang, T.; Zha, Y. Short-Term Load Interval Prediction Using a Deep Belief Network. Energies 2018, 11, 2744. [Google Scholar] [CrossRef]
  24. Ran, X.; Shan, Z.; Fang, Y.; Lin, C. An LSTM-Based Method with Attention Mechanism for Travel Time Prediction. Sensors 2019, 19, 861. [Google Scholar] [CrossRef]
  25. Zhu, J.; Yang, Z.; Mourshed, M.; Guo, Y.; Zhou, Y.; Chang, Y.; Wei, Y.; Feng, S. Electric Vehicle Charging Load Forecasting: A Comparative Study of Deep Learning Approaches. Energies 2019, 12, 2692. [Google Scholar] [CrossRef]
  26. Huang, J.; Sun, Y.; Zhang, W.; Wang, H.; Liu, T. Entity Highlight Generation as Statistical and Neural Machine Translation. IEEE/ACM Trans. Audio Speech Lang. Process. 2018, 26, 1860–1872. [Google Scholar] [CrossRef]
  27. Kim, J.-G.; Lee, B. Appliance Classification by Power Signal Analysis Based on Multi-Feature Combination Multi-Layer LSTM. Energies 2019, 12, 2804. [Google Scholar] [CrossRef]
  28. He, X.; Haffari, G.; Norouzi, M. Sequence to Sequence Mixture Model for Diverse Machine Translation. arXiv 2018, arXiv:1810.07391. [Google Scholar]
  29. Jang, M.; Seo, S.; Kang, P. Recurrent neural network-based semantic variational autoencoder for Sequence-to-sequence learning. Inf. Sci. 2019, 490, 59–73. [Google Scholar] [CrossRef] [Green Version]
  30. Bahdanau, D.; Cho, K.; Bengio, Y. Neural Machine Translation by Jointly Learning to Align and Translate. arXiv 2014, arXiv:1409.0473. [Google Scholar]
  31. Luong, M.T.; Pham, H.; Manning, C.D. Effective Approaches to Attention-based Neural Machine Translation. arXiv 2015, arXiv:1508.04025. [Google Scholar] [Green Version]
  32. Kim, J.; El-Khamy, M.; Lee, J. Residual LSTM: Design of a Deep Recurrent Architecture for Distant Speech Recognition. arXiv 2017, arXiv:1701.03360. [Google Scholar] [Green Version]
  33. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. arXiv 2015, arXiv:1512.03385. [Google Scholar]
  34. Niu, M.Y.; Horesh, L.; Chuang, I. Recurrent Neural Networks in the Eye of Differential Equations. arXiv 2019, arXiv:1904.12933. [Google Scholar]
  35. Haber, E.; Ruthotto, L. Stable architectures for deep neural networks. Inverse Probl. 2017, 34, 014004. [Google Scholar] [CrossRef] [Green Version]
  36. New York Independent System Operator (NYISO). Available online: http://www.nyiso.com/public/markets_operations/market_data/load_data/index.jsp (accessed on 18 February 2019).
  37. Srivastava, N.; Hinton, G.E.; Krizhevsky, A.; Sutskever, I.; Salakhutdinov, R. Dropout: A simple way to prevent neural networks from overfitting. J. Mach. Learn. Res. 2014, 15, 1929–1958. [Google Scholar]
  38. López, M.; Sans, C.; Valero, S.; Senabre, C. Classification of Special Days in Short-Term Load Forecasting: The Spanish Case Study. Energies 2019, 12, 1253. [Google Scholar] [CrossRef]
Figure 1. Typical structure of LSTM.
Figure 1. Typical structure of LSTM.
Energies 12 03199 g001
Figure 2. The structure of Seq2seq.
Figure 2. The structure of Seq2seq.
Energies 12 03199 g002
Figure 3. The structure of Residual LSTM.
Figure 3. The structure of Residual LSTM.
Energies 12 03199 g003
Figure 4. A short-term load forecasting model.
Figure 4. A short-term load forecasting model.
Energies 12 03199 g004
Figure 5. Short-term load forecasting flowchart.
Figure 5. Short-term load forecasting flowchart.
Energies 12 03199 g005
Figure 6. The graph of a year of load data.
Figure 6. The graph of a year of load data.
Energies 12 03199 g006
Figure 7. The graph of a week of load data.
Figure 7. The graph of a week of load data.
Energies 12 03199 g007
Figure 8. The autocorrelation of load data.
Figure 8. The autocorrelation of load data.
Energies 12 03199 g008
Figure 9. The training error under different layers.
Figure 9. The training error under different layers.
Energies 12 03199 g009
Figure 10. The test error under different layers.
Figure 10. The test error under different layers.
Energies 12 03199 g010
Figure 11. The errors of different mechanisms.
Figure 11. The errors of different mechanisms.
Energies 12 03199 g011
Figure 12. The short-term load forecasting model of Seq2seq.
Figure 12. The short-term load forecasting model of Seq2seq.
Energies 12 03199 g012
Figure 13. The comparison of real data and forecast data.
Figure 13. The comparison of real data and forecast data.
Energies 12 03199 g013
Figure 14. Forecast comparison chart under different methods.
Figure 14. Forecast comparison chart under different methods.
Energies 12 03199 g014
Figure 15. Forecast comparison chart under different types of input data.
Figure 15. Forecast comparison chart under different types of input data.
Energies 12 03199 g015
Figure 16. The error of different types of input data.
Figure 16. The error of different types of input data.
Energies 12 03199 g016
Table 1. The algorithm performance comparison between the Residual mechanism and the different Attention mechanisms.
Table 1. The algorithm performance comparison between the Residual mechanism and the different Attention mechanisms.
ResidualAttentionTrainTest
MSERMSEMSERMSE
FalseFalse0.0007110.0270.0001240.011
Bahdanau0.0002970.0170.0001690.013
Luong0.0003170.0180.0001980.014
TrueFalse0.0000910.00950.0001060.01
Bahdanau0.0000830.00910.0001040.01
Luong0.0001120.01050.0001550.012
Table 2. Setting of model parameters.
Table 2. Setting of model parameters.
ParameterParameter SettingParameterParameter Setting
Training data7008Test data1752
Length input24Length output1
Learning rate0.01Decay rate of learning rate0.5
Node in hidden layer100Decay steps200
Number of trainings300Batch200
Optimization algorithmAdamGradient value5.0
Table 3. The comparison of prediction errors of normalized data under different algorithms.
Table 3. The comparison of prediction errors of normalized data under different algorithms.
Different MethodError of Normalized Data
MSERMSEMAEMAPE
Seq2seq0.0000830.00910.00765.20%
RNN0.000190.01380.010157.35%
LSTM0.000390.019640.015814.04%
GRU0.00020.014490.010668.29%
Table 4. The comparison of the prediction errors of the raw data under different algorithms.
Table 4. The comparison of the prediction errors of the raw data under different algorithms.
Different MethodError of Raw Data
MSERMSEMAEMAPE
Seq2seq0.03190.17870.13470.8262%
RNN0.05990.24480.17991.1143%
LSTM0.12120.34820.28091.7847%
GRU0.06590.25670.18901.1760%
Table 5. The specific meaning of input data.
Table 5. The specific meaning of input data.
Type of DataSpecific Meaning
F_day1Load value one day before the date to be tested
F_weekThe load value of the day of the previous week
Day of weekWhich day of the week
WorkdayWhether it is working day or not
HolidayWhether it is a holiday or not
Tem_maxMaximum temperature
Tem_minMinimum temperature
RH_maxMaximum humidity
RH_minMinimum humidity

Share and Cite

MDPI and ACS Style

Gong, G.; An, X.; Mahato, N.K.; Sun, S.; Chen, S.; Wen, Y. Research on Short-Term Load Prediction Based on Seq2seq Model. Energies 2019, 12, 3199. https://doi.org/10.3390/en12163199

AMA Style

Gong G, An X, Mahato NK, Sun S, Chen S, Wen Y. Research on Short-Term Load Prediction Based on Seq2seq Model. Energies. 2019; 12(16):3199. https://doi.org/10.3390/en12163199

Chicago/Turabian Style

Gong, Gangjun, Xiaonan An, Nawaraj Kumar Mahato, Shuyan Sun, Si Chen, and Yafeng Wen. 2019. "Research on Short-Term Load Prediction Based on Seq2seq Model" Energies 12, no. 16: 3199. https://doi.org/10.3390/en12163199

APA Style

Gong, G., An, X., Mahato, N. K., Sun, S., Chen, S., & Wen, Y. (2019). Research on Short-Term Load Prediction Based on Seq2seq Model. Energies, 12(16), 3199. https://doi.org/10.3390/en12163199

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