Electricity Sales Forecasting Method Based on Multi-model Fusion Learning

Created on:Jul 19, 2018
넶PV:2

Electricity Sales Forecasting Method Based on Multi-model Fusion Learning

Yang Binyuan

(Chengdu Forward Technology Co., Ltd., Chengdu 611731)

summary:electricity sales forecast is an important basis for power grid construction planning, because the change and development of electricity sales are affected by many uncertain factors, the traditional method is difficult to achieve satisfactory prediction effect, so it is urgent to put forward the prediction method with high prediction accuracy and good stability. In this paper, a multi-model fusion prediction method is proposed, which combines the accuracy of the prediction results of various basic prediction methods under different conditions, and fuses these information together to obtain the final prediction value of electricity sales, which can not only improve the accuracy of the prediction results of electricity sales, but also ensure the stability of the prediction error. The method proposed in this paper is used to predict the actual monthly electricity sales in a city, and the results show that the method can predict the monthly electricity sales with high accuracy and has strong adaptability.

:electricity sales; multi-model fusion; prediction

 

0, Introduction

With the rapid development of China's power industry, the demand for electricity sales forecast in the power system is getting higher and higher. It is of great significance to correctly predict the level of regional sales of electricity and provide marketing decision support for power enterprises to guide the rational operation of power plants and transmission and distribution networks, and to promote the development and construction of the power market.

, which are basically divided into two categories: traditional prediction methods and intelligent prediction methods. Traditional prediction methods are mainly empirical and regression analysis.1, gray prediction method2. Time series method3, exponential smoothing, etc. Intelligent prediction methods mainly include wavelet analysis prediction method, chaos prediction method, fuzzy theory prediction method, artificial neural network prediction method, support vector machine prediction method.4and so on. However, the application of a single method has its limitations, the traditional prediction method for different types of electricity sales prediction has no unified and reasonable treatment method, and the stability is poor under the influence of climate conditions, holidays and so on. Intelligent prediction algorithm is difficult to describe by mathematical model due to many random factors affecting the change of electricity sales, which also brings some difficulties to the accuracy of prediction. Therefore, the use of a variety of mathematical methods of fusion technology, make full use of the advantages of different algorithms, learn from each other, fusion to form an accurate and stable electricity sales prediction system.

multi-model fusion prediction method is a method of weighted summation prediction of a variety of single prediction models. As far as a forecasting method is concerned, the accuracy of forecasting electricity sales varies under different conditions and types. For a variety of forecasting methods, in the same conditions and the same type of electricity sales forecast, the prediction results of each model are very different. Considering the accuracy of the prediction results of various basic prediction methods under different conditions, and fusing these information together, it can not only improve the accuracy of the prediction results of electricity sales, but also ensure the stability of the prediction error. In this paper, Logistics regression analysis, ARIMA model and support vector machine regression model are used as the basic prediction methods to study the prediction of monthly electricity sales.

1, multi-model fusion of electricity sales prediction method.

are affected by economic development, industrial structure changes, seasonal changes and other factors, which make it show obvious trend, seasonal periodicity and randomness.

is a non-stable load with trend, seasonality and randomness, which is difficult to predict directly, and a multi-model fusion prediction method is established by using data fusion technology to solve the problem that the prediction accuracy and stability of a single prediction model are not high.

1.1, ARIMA model prediction method

ARIMA model is a model that converts a non-smooth time series into a smooth time series and then regressions the dependent variable only on its lag value and the present value and lag value of the random error term.5. Includes moving average process (MA), autoregressive process (AR), autoregressive moving average process (ARMA), and ARIMA process6.

combined with the ARIMA model definition, the monthly electricity sales sequence y can be obtained.tARIMA(p,d,q) model is:

Where:ytis the monthly electricity sales sequence, d is the number of differences, and B is the lag operator;wtis a stable sequence formed after d differences in the monthly electricity sales sequence; & empty;1,∅2,..., ∅pis the self-regression coefficient and p is the self-regression order;θ1,θ2,...,θqis the moving average coefficient and q is the moving average order;εtis mean 0 and variance & sigma;2white noise sequence; c is constant;

rightytThe ARIMA model and prediction steps are as follows:

Step 1:stationarity test. Using the ADF testytd(d= 0,1,2,...) The order difference sequence is tested for smoothness in turn until the sequence is smooth, and the corresponding number of differences d is determined at this time. Generald≤ 2.

Step2:the model order (determine the order p and q). Based on the autocorrelation and partial autocorrelation coefficients, the ARIMA model orders p and q are determined based on the truncated and trailing properties of these two statistics, as shown in Table 1-1 below.

Table 1-1 Model order determination method

autocorrelation coefficient Partial autocorrelation coefficient Model Order
tailing p0Stage Truncator q= 0,p=p0
q0Stage Truncator tailing q=q0,p= 0
q0Stage Truncator p0Stage Truncator q=q0,p=p0

Step3:parameter estimation. Estimating parameters other than P, d, and q in model (2) by least squares: c, & empty;1,∅2,..., ∅pandθ1,θ2,...,θq.

Step4:model checking. Check whether the residual sequence of the built model is a white noise sequence. This process is still based on autocorrelation coefficients and partial autocorrelation coefficients. If ink(k= 0,1,2,...) The autocorrelation and partial autocorrelation coefficients of the period lag tend to be 0, indicating that the residual sequence is a white noise sequence, go to step 5; otherwise, return to step 2 to reconstruct the model.

Step5:forecast. After obtaining the appropriate model, the model (2) is applied to predict the monthly electricity sales.

1.2, support vector machine regression model prediction method.

support vector machine regression (Support Vector Regression,SVR) algorithm is based on the Mercer nuclear expansion theorem, which is the case where the support vector machine is used in regression. The basic principle of the support vector machine is to find an optimal classification line that not only separates the samples without error, but also maximizes the classification interval (Margin), as shown in Figure 1-1 H. For the case where the sample is non-linearly separable, the input variable x can be mapped to a high-dimensional space (Hilbert space) by nonlinear transformation, and the classification operation can be performed in the high-dimensional space to obtain the optimal classification surface, so as to separate the sample without error. The support vector machine finds the best compromise between the complexity of the model and the learning ability according to the limited sample information, so as to minimize the structural risk and obtain the best learning generalization ability. Therefore, this method can solve the problem of small sample, nonlinear and high dimension, and is often used to identify8and forecast9.

Fig. 1-1 Schematic diagram of optimal classification surface

By constructing a loss function and based on the idea of structural risk minimization, the support vector machine usually uses the following minimization optimization model to determine the regression function.10, namely:

 

(1)

(2)

where: & omega; is a vector of weights;is an expression of model complexity;Сis the equilibrium coefficient;is a relaxation factor; & empty;(x) is a nonlinear transformation that maps data to a high-dimensional space;Bis offset;εis the upper limit of error.

introduce Lagrange multiplier αIand alphaI*, the optimization model shown in the formula (1) and the formula (2) can be transformed into the following pair optimization problem solution:

solving the above problem, the support vector machine regression function can be obtained:

k(XI,X) is called a nuclear function, which needs to satisfy the Mercer condition, and the Gaussian RBF nuclear function is selected.11,:

in the support vector machine calculation process involves two parameters, namely: weight coefficient.Cand kernel function parametersg. In this paper, the grid search method is used to optimize12.

1.3, multi-model fusion prediction method.

1.3.1, the establishment of the fusion model.

power enterprises are affected by economic development, industrial structure changes, seasonal changes and other factors, so that it shows a clear trend, seasonal periodicity and randomness, therefore, the prediction of monthly electricity sales, the use of a single prediction method of direct prediction is difficult, it is difficult to get more ideal results. Therefore, considering the prediction results of various prediction models, taking the output results of different prediction models as the information source, and using data fusion technology to study the monthly electricity sales prediction method for the purpose of improving the prediction accuracy.13.

predicts the monthly electricity sales, if it can adjust the weight coefficient of various prediction methods in the fusion prediction model in real time according to the prediction effect of various prediction methods in the previous few periods, it can improve the accuracy and stability of the prediction results. In the first few time periods, the prediction method with a small prediction error has a large weight in the fusion prediction model in the next time period; conversely, the weight in the fusion prediction model in the next time period is small. This fusion prediction model can not only improve the accuracy of traffic flow parameter prediction, but also ensure the stability of prediction. The calculation process of the multi-model fusion prediction algorithm is shown in Figure 1-2.

Figure 1-2 Multi-model fusion prediction algorithm calculation process.

multi-model fusion prediction method has the following steps:

Step 1:prediction method: According to the prediction effect and applicable conditions of the prediction method, n kinds of widely used more mature prediction methods are selected as the basic method of fusion prediction method. In this paper, time series and support vector machine regression are selected as the basic methods of fusion prediction method.

Step2:the basic prediction method to make a separate prediction of the monthly electricity sales to be predicted using each of the prediction methods selected in Step 1. The prediction will result in the prediction of n prediction methods, I .e.y1(t),y2(t),...,yn(t).

Step3:determine the weight coefficient of each basic prediction method in the fusion prediction method: the weight of each basic prediction method in the fusion prediction method (I. e.w1(t),w2(t),...,wn(t) ) is determined based on the prediction accuracy of various basic prediction methods over the previous several time periods. The principle of weight determination is that the higher the accuracy, the greater the weight.

Step4:Multiple basic predictions are fused: at time period t, the predictions of various basic prediction methods are combined.y1(t),y2(t),...,yn(t) Based on weight coefficientw1(t),w2(t),...,wn(t) weighted fusion, you can get the prediction results of the fusion prediction method.y'(t), the calculation formula is:

1.3.2 Determination of weight coefficients

In the fusion prediction method, the weight coefficient of a basic prediction method determines the effect of the prediction value output by the method on the final prediction result. In fact, with the change of season and weather temperature, the prediction accuracy of each basic prediction method will change constantly, so the weight coefficient of each basic prediction method in the fusion prediction method should also be adjusted constantly, for which the concept of dynamic error is introduced.

dynamic errored, I(t) is defined:

Where:ed, I(t) is the dynamic error of the I method in period t, which is the error of the I method in the m period before t.epre, I(t) mean; m is the cumulative number of errors;epre, I(t) is the absolute relative error of the prediction results of the t-period I method.

epre, I(t) is calculated:

Where:is the measured data at time t;is the predicted value of the I method at time t.

weight coefficientwI(t) and dynamic errored, I(t-1) is an inverse proportional change, I .e. the prediction method with a larger dynamic error is given a smaller weight coefficient, and the prediction method with a smaller dynamic error is given a larger weight coefficient. First, we obtain the initial weight coefficient by the inverse proportion method.wI*(t), the calculation formula is:

The final weight coefficient of each basic prediction model in the fusion prediction model.wI(t):

 

2. Case analysis

2.1, case data description

In order to test the feasibility of the multi-model fusion prediction model, 60 monthly electricity sales data of A city from January 2008 to December 2012 were selected as the original data of the model, and the data from January to December 2013 were used as the verification data. Then the prediction results were compared with the actual value, and the error evaluation index was obtained to verify the validity of the model. City A is an economically developed city in China, according to the city's power financial statement data as shown in Table 2-1 below.

Table 2-1 Statistics of Monthly Electricity Sales in City A (2008-2013) (Unit :)

plots a line chart of electricity sales for a total of 60 months from January 2008 to December 2012 (as shown in Figure 2-1), which is a highly volatile sequence with a clear growth trend and seasonality, and is a non-stationary stochastic process.

Figure 2-1 Sequence diagram of electricity sales

2.2, electricity sales forecast and result analysis

A total of 60 monthly electricity sales data from January 2008 to December 2012 were used as training time series data, and the data from January to December 2013 were used as test time series data. First, the Logistics regression prediction method is directly used to predict the electricity sales from January to December 2013 after training. Secondly, ARIMA prediction method is used to predict the electricity sales from January to December 2013 after training. Then, after training, the support vector regression prediction method is used to predict the electricity sales from January to December 2013. Finally, the multi-model fusion prediction method proposed in this paper is used to predict the electricity sales from January to December 2013, in this case, the multi-model fusion selects the Logistics regression prediction method, the ARIMA prediction method and the support vector machine prediction method as the basic prediction method. Figure 2-2 is a graph of the predicted results of the four forecasting methods described above versus the actual electricity sold.

Figure 2-2 The prediction results of the four prediction methods are compared with the actual sales.

In order to compare the prediction effect of the above four methods, the maximum absolute error (MaxE), the average absolute relative error (MARE) and the maximum absolute error (MaxARE) are introduced, which are calculated as follows:

In the above formula, N is the number of predicted data, in this case N is 12;is the actual value of electricity sold in month I;is the forecast value of electricity sales in the first month.

used MaxE, MARE, and MaxARE to evaluate the prediction results of the Logistics regression prediction method, the prediction results of the ARIMA prediction method, the prediction results of the support vector machine prediction method, and the prediction results of the multi-model fusion prediction method, and the comparison of the prediction error indicators of each prediction method is shown in Table 2-2 below.

Table 2-2 Comparison of prediction errors of each prediction method.

Through the comparative analysis of the monthly electricity sales prediction value and the actual value, the prediction effect of the multi-model fusion prediction method proposed in this paper is better than the Logistics regression prediction method, the ARIMA prediction method and the support vector machine prediction method. Therefore, the use of multi-model fusion prediction method for electricity sales prediction can improve the prediction accuracy and ensure the stability of the prediction error.

 

3. Conclusion

power system is affected by factors such as climate, temperature and human activities, and its variation characteristics are random and unstable. In this paper, a multi-model fusion prediction method is proposed, which uses Logistics regression prediction method, ARIMA prediction method and support vector machine prediction method through multi-model fusion algorithm to obtain its combined weight coefficient. This method combines the accuracy of prediction results of various basic prediction methods under different conditions, and fuses these information together to obtain the final electricity sales prediction value. This method is used as a case verification in the monthly electricity sales data prediction of a city, and the case analysis results show that it is feasible and reliable to predict the electricity sales by multi-model fusion prediction method, which provides an important theoretical basis for power distribution and power grid transformation. However, the multi-model fusion prediction method proposed in this paper also has room for further optimization, because the use of multi-model fusion prediction method is quantitative and completely data-driven, how to add some qualitative analysis on the basis of this method to make up for the lack of data-driven still needs further research.

 


1Cao Kuikang, Shen Haibin. Online Support Vector Regression Algorithm Based on Multiple Samples [J]. Journal of Zhejiang University, 2011,38(4):405-408
2Wang Haitao, Ren Zhen. Application of gray system theory in rolling forecast of power demand [J]. Journal of South China University of Technology, 2009,29(9):37-39
3Yang Yunying, Ren Yulong et al. Forecasting of electricity demand based on dummy variables and time series method [J]. Electric Power Demand Management, 2011,31(05):17-20
4ZHU Zhiyu, JIANG Changsheng, ZHANG Bing. Prediction Method of Chaotic Series Based on Support Vector Machine [J]. Journal of Electrotechnical Technology, 2005,20(6)
5Si Shoukui, Sun Xijing. Mathematical modeling algorithm and application [M]. Beijing: National Defense Industry Press, 2014
6Cui Herui, Wang Di. Forecast of Electricity Sales in North China Power Grid Based on Seasonal ARIMA Model [J]. East China Power, January 2009, Volume 37, Issue 1
7Gao Tiemei. Econometric analysis method and modeling [M]. Beijing: Tsinghua University Press, 2009
8Bian Li, Bian Chenyuan. Overview of intelligent methods for power grid fault diagnosis [J]. Power System Protection and Control, 2014, 42(3): 146-153.
9Liu Aiguo, Xue Yuntao, Hu Jianglu, et al. Ultra-short-term Prediction of Wind Power Based on GA Optimized SVM [J]. Power System Protection and Control, 2015, 43(2): 90-95
10. Support vector machine regression algorithm and application research [D]. South China University of Technology, 2005
11Wang Dong, Shi Xiaoxia et al. Comparative study of support vector machines with different kernel functions for air conditioning load forecasting [J]. Journal of Electrotechnical Technology, 2015, 30 (Supp1): 531-535
12Zhuang Chuqiang, He Chunxiong. Fundamentals of Applied Mathematical Statistics [M]. Guangzhou: South China University of Technology Press, 2013
13Tang Xiao-I, Ma Yongkai et al. Modern portfolio forecasting and portfolio investment decision-making methods and applications [M]. Beijing: Science Press, 2003:56-77

Home Page ꄲ NEWS & INSIGHTS