Research Article  Open Access
Tianhe Sun, Tieyan Zhang, Yun Teng, Zhe Chen, Jiakun Fang, "Monthly Electricity Consumption Forecasting Method Based on X12 and STL Decomposition Model in an Integrated Energy System", Mathematical Problems in Engineering, vol. 2019, Article ID 9012543, 16 pages, 2019. https://doi.org/10.1155/2019/9012543
Monthly Electricity Consumption Forecasting Method Based on X12 and STL Decomposition Model in an Integrated Energy System
Abstract
With the rapid development and wide application of distributed generation technology and new energy trading methods, the integrated energy system has developed rapidly in Europe in recent years and has become the focus of new strategic competition and cooperation among countries. As a key technology and decisionmaking approach for operation, optimization, and control of integrated energy systems, power consumption prediction faces new challenges. The userside power demand and load characteristics change due to the influence of distributed energy. At the same time, in the open retail market of electricity sales, the forecast of electricity consumption faces the power demand of smallscale users, which is more easily disturbed by random factors than by a traditional load forecast. Therefore, this study proposes a model based on X12 and Seasonal and Trend decomposition using Loess (STL) decomposition of monthly electricity consumption forecasting methods. The first use of the STL model according to the properties of electricity each month is its power consumption time series decomposition individuation. It influences the factorization of monthly electricity consumption into season, trend, and random components. Then, the change in the characteristics of the three components over time is considered. Finally, the appropriate model is selected to predict the components in the reconfiguration of the monthly electricity consumption forecast. A forecasting program is developed based on R language and MATLAB, and a case study is conducted on the power consumption data of a university campus containing distributed energy. Results show that the proposed method is reasonable and effective.
1. Introduction
1.1. Literature Review
An integrated energy system generally refers to the optimization of the allocation of various energy resources in accordance with the energy structure and energy endowment of a region. It often combines advanced technologies, such as waste heat utilization, heat pump, and energy storage, thereby fully using high and lowgrade energy to provide technical solutions for cold, hot, and electric products for users in the region. As an important approach to accelerate the transformation to sustainable energy worldwide, the integrated energy system has attracted much attention in recent years. Accurate electricity consumption forecasting not only plays a decisive role in comprehensive planning, operation, management, and cascade utilization of energy system, but also acts as a key technology to promote the energy market. To date, load forecasting technology is mature [1–4], but it cannot be fully applied to power consumption forecasting in integrated energy systems because of the following reasons: (1) the demand and load characteristics of energy users change accordingly with the integration of distributed energy; (2) the reorganization of the opencompetition electricity market causes the monthly electricity consumption forecast to become an issue faced by smallscale users, and the impact of randomness on the forecast results is greatly increased; and (3) in the mechanism of the electricity retail market, the performance appraisal system is measured monthly. Therefore, finding a new monthly electricity consumption forecasting method is important.
Electricity consumption forecasting of integrated energy systems involves studying power data and analyzing their characteristics, determining the internal variation law of historical data and the relationship between historical data and their influencing factors, and then predicting power demand [5]. The monthly electricity consumption data is a time series, which is usually influenced by season, user behavior, and economic development. Therefore, such time series can be decomposed into components that represent various influencing factors. A time series forecasting method based on decomposition technology has been applied in many fields, including power demand information [6–9]. In reference [10], moving regression and smoothing spline are used as decomposition models to decompose the time series of power demand. Two neural networks (NNs) are trained to predict the decomposition results. Results show that the decomposition prediction is more accurate than direct prediction. Damrongkulkamjorn P. and Churueang P. [11] used a classical decomposition model to decompose the time series into the trend component and the seasonal component, and Seasonal AutoRegressive Integral Moving Average (SARIMA) and weighted method are used to predict each component. Yan et al. [12] used an X12 multiplier model to decompose monthly electricity consumption series and establish different models to predict each component. The X12 model not only overcomes the shortcomings of the classical decomposition model, that is, the trend values of several samples at the beginning and the end of the model cannot be estimated, but also has more advantages for the series whose prediction properties change with time. Wu et al. [13] used three methods, namely, AutoRegressive Integral Moving Average (ARIMA) model, X12ARIMA model, and polynomial regression, to predict the software monthly error number. The superiority of the X12ARIMA model was verified, and the limitations of the X12 model, such as its ability to deal with quarterly or monthly data only and its inability to control the rate of change of seasonal components, were identified. Guo et al. [14] considered the impact of economic disturbance on electricity consumption and used the X12ARIMA model to combine economic factors and electricity consumption series to predict the final electricity consumption. This method can predict the final electricity consumption more accurately, but it requires the data of economic factors. A brief summary of the studied literature is presented in Table 1, including [15–18] that will be further explained in Section 1.2.

1.2. Motivation
This paper proposes a monthly power consumption comprehensive forecasting method based on the Seasonal and Trend decomposition using Loess (STL) model, which is a time series decomposition model based on the local weighted regression scatter smoothing method. The model can process data for any type of seasonal variation factor, and users can control the seasonal component change rate and the smoothness of the trend component. In addition, it is more robust to outliers. The STL model has been applied in many fields [15–17]. Lu et al. [18] successfully applied the STL model to load prediction but did not consider the influence of seasonal inflection point on the change rate of seasonal components. In the present study, the proposed method made full use of the advantages of the STL model; set up different components of the rate of change in season; realized the seasonal component of periodic and aperiodic decomposition; decomposed the power sequence into trend, seasonal, and stochastic components; and utilized the X12 model to extract the trend component in economic data fitting. The Vector AutoRegression (VAR) model was used to predict the trend component, the neural network was used to predict the seasons, the average method was used to predict the random component, and the component projection reconstruction was used for monthly electricity consumption forecasting. This paper adopts R language and MATLAB to compile the algorithm and verifies and analyzes the effectiveness of the proposed method through the actual monthly electricity consumption data of a university park.
2. Problem Description
In the monthly electricity sales forecast, predicting the electricity sales of the following month based on the historical electricity sales data is necessary, taking into account the climate, seasons, holidays, user types, economy, and other factors. In the prediction process, monthly electricity consumption can be decomposed into components that represent various influencing factors, and the effects of different influencing factors on each component can be considered to select an appropriate model to predict the monthly electricity consumption. The problem description of the monthly electricity sales forecast is shown in Figure 1.
2.1. Analysis of the Relationship between Electricity Consumption and Months
Monthly electricity consumption with the development of time is variable. The change in the nature of human activity, such as seasonal change (e.g., in schools, electricity use is reduced during winter and summer vacations), causes power consumption to increase or decrease [19]. A month contains not only social behavior information, such as holidays, but also natural information represented by seasons. This section takes the monthly electricity consumption of a university park in North China in 2017 as an example to analyze the influence of months on electricity consumption from two aspects: the relationship between electricity consumption and holidays, and the relationship between electricity consumption and seasons. The monthly power consumption curve of a university park in the north is shown in Figure 2.
2.1.1. Relationship between Electricity Consumption and Holidays
Figure 2 shows that power consumption started to decline in January and generally reached a low point in February and March, given that the park included the university. The winter holiday was in January and March, and the Spring Festival was in February and March. From March to April, electricity consumption began to reach a slight peak because of various student activities in the backtoschool season. Electricity consumption was relatively stable from May to July. Electricity consumption decreased in July due to the summer holiday and rebounded in September during the backtoschool season. Holiday factors that affect monthly electricity consumption cannot be easily reflected in short holidays. Therefore, the relationship between winter and summer vacations and the Spring Festival and monthly electricity consumption can indirectly reflect the relationship between holidays and electricity consumption.
2.1.2. Relationship between Electricity Consumption and Seasons
In addition to the winter and summer holidays and the Spring Festival, the turning point of the electricity consumption curve is related to the abrupt change of seasons. Winter and spring occur in January, spring and summer in March, summer and autumn in July, and autumn and winter in October. Figure 2 shows that the alternating seasons use the power curve to produce an inflection point.
2.2. Analysis of the Relationship between Electricity Consumption and Economic Development
Electric power is required for a developing economy, and regional economic development is closely related to electric power demand [20]. The relationship between electricity consumption and economic development in a university park in North China is analyzed based on the actual situation of a city in North China.
2.2.1. Data Sources
The quarterly gross domestic product (GDP) data of a northern city from January 2010 to December 2017 and the monthly electricity consumption data of a university park in North China from January 2010 to December 2017 are used in the analysis because GDP is an important indicator to measure the regional economic conditions. However, monthly GDP data cannot be obtained at present due to limited data availability [21]. Therefore, in this section, the quarterly GDP with the data sample size closest to the monthly is selected to represent the economic factor and analyze its qualitative relationship with monthly electricity consumption.
2.2.2. Data Processing and Analysis
A university park in a northern city provided the power consumption data from January 2010 to December 2017. The National Bureau of Statistics provided the quarterly GDP data of a certain northern city from January 2010 to December 2017. The quarterly GDP growth rate and power consumption quarteronquarter growth changes over time clusters are plotted in the bar chart, as shown in Figure 3. This section presents the standardized data processing to unify the dimension and for easy comparison.
Figure 3 shows that the peak of quarterly GDP growth rate is always ahead of the peak of the monthly electricity consumption growth rate because of the timelag effect of economic factors on electricity consumption. However, the fluctuation of GDP can be reflected in the fluctuation of electricity consumption after a period of time. Therefore, the relationship between quarterly GDP and monthly electricity consumption can indirectly reflect the relationship between economic development and electricity consumption. The analysis reveals that monthly electricity consumption is closely related to the impact of economic development. Assuming that economic changes develop in a volatile manner over a certain period of time, electricity consumption can be approximately considered a volatile change.
3. Monthly Electricity Consumption Forecasting Method Based on X12 and STL Decomposition Model
The variation characteristics of time series of each component are different due to different influencing factors [22]. Among them, the trend component is mainly affected by economic factors to reflect a longer period of development direction. Seasonal component is a periodic fluctuation with a fixed length and amplitude under the influence of seasonal variation. Random components are formed by various accidental factors [23]. The individual components were predicted by using a decomposition technique, and then the predicted values of each component were reduced to the predicted values of monthly electricity consumption. Therefore, different decomposition strategies should be adopted for power consumption sequences in different months, and then the characteristics of each component should be predicted. The comprehensive prediction strategy of monthly electricity consumption based on the X12 and STL decomposition model is shown in Figure 4.
The proposed monthly electricity consumption prediction method based on the X12 and STL decomposition models combines a variety of mathematical models. The trend components in economic data were extracted by the X12 decomposition model, and the trend components of economic factors and electricity consumption were fitted by the VAR model. The seasonal component can be extracted from the historical data of electricity consumption because the time contains the information of seasons and holidays, and the BP neural network model is established for prediction. If the random component changes irregularly and its value fluctuates at approximately 1, then the average value method is used for direct calculation. This paper takes a university campus in North China as an example to verify the validity of the monthly electricity consumption prediction method based on the X12 and STL decomposition models.
3.1. Monthly Electricity Consumption and Economic Factor Decomposition
3.1.1. Decomposition of Monthly Electricity Consumption Based on the STL Model
The STL model is a time series decomposition method that uses robust localweighted regression as a smoothing method. When estimating the value of a response variable, a subset of data is selected from the vicinity of the predicted variable, and then linear or quadratic regression is performed on the subset by using the weighted least squares method to reduce the weight of the value far from the estimated point. Finally, the value of the response variable can be estimated by the local regression model. This pointbypoint method is generally used to fit the whole curve to decompose the time series accurately [24].
The decomposition model is mainly divided into the time series additive model and the time series multiplication model. The additive model assumes that the influence of each component is independent of each other, and each component is expressed in absolute terms. The multiplication model assumes that the influence of each component on the development of phenomena is interrelated based on the absolute amount of the trend component, and the other components are expressed in proportion. The decomposition model adopts the multiplication model because of the interactive influence of each factor on electricity consumption. The monthly electricity consumption series is expressed by the product of three components, which represent the trend, seasonal, and random factors. The original time series can be decomposed as follows:where Y is the time series of electricity consumption, is the trend component, is the seasonal component, and is the random component.
When decomposing, the seasonal component of the month at the seasonal inflection point fluctuates greatly with time, and the seasonal component of the same month should be changed every year. Thus, the nonperiodic decomposition of seasonal component is adopted, whereas the seasonal component of the month at the nonseasonal inflection point fluctuates slightly with time, and the seasonal component of the same month every year is almost constant. The seasonal component is used for periodic decomposition.
3.1.2. Decomposition of Economic Factors Based on the X12 Model
The economic factors and electricity consumption are affected by seasonal changes and random factors, but the influence of economic factors on electricity consumption is mainly reflected in the trend components [25]. To avoid the influence of redundant components, this study adopts the X12 model to perform seasonal adjustment on the GDP data, stripping out the seasonal component and random component and leaving the trend component of GDP to predict the trend component of electricity consumption. The X12 model is a seasonal decomposition model proposed by the Census Bureau of the US Department of Commerce. This paper selects the multiplicative decomposition model to express the GDP sequence as the product of trend factors, seasonal factors, and random factors because the influences of various factors on GDP are interactive.where is the time series of the monthly GDP, is the trend component, is the seasonal component, and is the random component.
3.2. ThreeComponent Prediction Models of Monthly Electricity Consumption
The trend component is a development direction formed by the influence of economic growth over a long period of time; it shows a stable trend. Seasonal component is a periodic fluctuation that is affected by seasonal alternation. Random components are small perturbations that exhibit no obvious change in characteristics under the influence of accidental factors. Three models are selected to predict the trend, seasonal, and random components.
3.2.1. VAR Prediction Model of Trend Component
The VAR model is one of the most commonly used econometric models for the analysis and prediction of economic indicators. GDP data were taken as the influencing factors of monthly electricity consumption and included in the VAR model to predict the trend component of electricity consumption. The model is built based on the statistical properties of data and takes each endogenous variable in the system as a function of the lagged value of all endogenous variables to construct the model [26] as follows:where is an endogenous variable vector of kdimension, is a vector of the ddimensional exogenous variable, p is the hysteresis order, are the coefficient matrices that must be estimated, and is a kdimensional disturbance vector. Assuming that the covariance matrix of is a positive definite matrix with kdimensions, the formula is as follows:
That is, the VAR (p) model with k time series variables is composed of k equations, and the endogenous variable lags behind the VAR (n) model of order n. The above equation is simply transformed intowhere is the residual of ’s regression with respect to exogenous variable , namely,where is the korder parameter square matrix of lagging operator L and impact vector is a white noise vector, which has no structural meaning [27].
When considering the unrestricted VAR model without exogenous variables, the expression is as follows:
If the determinant satisfies the stability condition, then it can be expressed as the vector dynamic average form of the infinite order:where and .
The estimation of the VAR model can be performed through the least square method, and the estimator of the matrix can be obtained as follows:where . When the parameter of VAR is estimated, given that , the parameter estimation of the corresponding vector dynamic average model can be obtained. The estimator of the VAR model can be obtained by the ordinary least squares (OLS) method because no contemporaneity correlation problem exists [28].
3.2.2. Prediction Models of Seasonal Components
When forecasting seasonal components, we should consider the month on season alternation points and season stabilization points.(1)For months on season stabilization points, the seasonal components are decomposed periodically. The seasonal component of the predicted month is the same as that of the same period in history, that is, where represents the seasonal component of the monthly electricity consumption in the jth month of the ith year.(2)For months on season alternation points, the seasonal components are decomposed nonperiodically, and the seasonal components change greatly during the historical period. The BP neural network is adopted to predict the seasonal component, and the process includes forward propagation process deduction and error reverse propagation process deduction. The BP neural network prediction model iswhere is the predicted value of the seasonal component of the ith month; is the observed value of the first n cycles; and are the output bias weight and the hidden layer bias weight, respectively; is the connection weight from the hidden layer to the output layer; is the activation function of the hidden layer; and is the connection weight between the input layer neurons and the hidden layer neurons [29]. The detailed steps of the BP neural network are given in Algorithm 1.

3.2.3. Average Prediction Model of Random Components
No evident change trend is observed in the random components, and the value is less than 1. The average method is used to predict the random components of the sequence. The random components of the predicted month are considered the historical average of the random components of the same month. The average prediction model iswhere is the random component of the monthly electricity consumption in the jth month of the ith year.
3.3. Reconstructing the Predicted Value of Monthly Electricity Consumption
After the predicted value of each component is obtained, the final predicted value of the monthly electricity consumption is obtained by using exponential multiplication, that is,where is the prediction value of electricity consumption in the jth month of the ith year; is the prediction value of the trend component in the jth month of the ith year; is the prediction value of the seasonal component in the jth month of the ith year; and is the prediction value of the random component in the jth month of the ith year.
The detailed steps of the monthly electricity consumption forecasting method based on the X12 and STL decomposition models are presented in Algorithm 2.

4. Sample Analysis
A comprehensive forecasting program for monthly electricity consumption based on the STL model is compiled by using R. The data are obtained from the measured monthly electricity consumption in a university park over a period of eight years. A fixed sample size is used to model and forecast the monthly electricity consumption. The monthly electricity consumption data in the first seven years are used as the sample model, and the monthly electricity consumption data in the eightyear period are used as the true value evaluation model.
4.1. Decomposition of Monthly Electricity Consumption Based on STL Model
The STL model can control the seasonal component change rate and then change the seasonal component of the sequence. The seasonal component of electricity consumption in the inflection point month and common month can be separated. The season of the same month changes every year, whereas the seasonal fluctuation of electricity consumption in other months decreases because January and February are affected by the Spring Festival and winter vacation, July and August are affected by summer vacation, and March and November are affected by seasonal alternation. Therefore, the seasonal components of January to March, July to August, and November are decomposed nonperiodically, and the seasonal components of April to June, September to October, and December are decomposed periodically. The monthly electricity consumption is decomposed by the STL function in R language. The multiplicative model is transformed into the logarithmic additive model by logarithmic transformation because the STL function can only deal with the additive model, that is,where Y is the time series of the original time series; is the time series object obtained by logarithmic transformation of Y; is the trend component; is the season component; and is the random component.
Taking March and April as examples, the STL function is used to draw the change curve of the sequence object , and the curve is decomposed into , , and . The change trend of each component is shown in Figure 5. The figure shows that the seasonal component of the seasonal inflection month changes gradually with time, but the seasonal component of the noninflection month changes periodically; has a steady growth trend, and has no development rule.
(a)
(b)
4.2. Monthly Electricity Consumption Trend Component Prediction Based on EV
Econometric Views or EViews is commonly referred to as an econometric package. It is a time series software specially developed for large organizations to process time series data [30]. A fixed sample size was used for simulation analysis. When power consumption in different months was predicted, the sample changed. For convenient description, the data from January 2010 to December 2016 were used as input for explanation. The specific steps of the improved method of monthly electricity consumption prediction combined with EViews are as follows.
4.2.1. Data Decomposition
The GDP of each quarter is divided into months, on average, to obtain the approximate monthly GDP data to ensure that the sample size of the economic factors is consistent with monthly electricity consumption. The monthly GDP data of a city in the north are obtained and decomposed using the X12 model. Proc/Seasonal Adjustment/X12 is used to obtain the trend component data of GDP. The natural logarithm of trend components can be initially obtained, and then the VAR model can be established after data processing to ensure the stability of data. The trend component of GDP is shown in Figure 6.
4.2.2. Determining the Lag Order
The lag order is represented by p (, in which n is the sample size). The upper limit of the lag order is set to 12 because the time lag of monetary policy is generally 6–12 months. The trend components of GDP and electricity consumption are opened in the VAR package, the lag/length/criteria are clicked, and the confidence interval of the lag order pops up, as shown in Table 2.

Table 2 shows that when , the evaluation index is the best; thus, the lag order is 11.
4.2.3. Exogenous Test of Variables
The VAR model is effective in predicting the interrelated time series variable system. If the variables are not related to each other, then the VAR model [31, 32] is unsuitable. Exogenous tests are conducted on two variables to determine whether GDP changes play a major role in electricity consumption. View/lag structure/Granger causality is clicked, and the exogenous test results pop up, as shown in Table 3. The table shows that if the Prob value is less than 0.05, then no exogeneity is observed, indicating that GDP significantly affects electricity consumption, that is, it has predictive power, and establishing the VAR model is meaningful.
 
Dependent variable: LNGDP. Dependent variable: GDP_HP. 
4.2.4. Establishing the VAR Model
The model parameters are estimated. Then, the VAR setting box of GDP and electricity consumption data is opened, the OK button is clicked, and the estimation result window pops up, as shown in Table 4.

The first part of the output shows the ordinary least squares (OLS) regression statistics for each equation. The second part of the output shows the regression statistics of the VAR model [33]. “Forecast” on the estimation result interface is clicked, static prediction is selected, and “OK” is clicked to obtain the predicted value of the monthly electricity consumption trend component.
4.2.5. Impulse Response
The impulse response is performed to understand the interaction between variables and the degree of influence [34]. Impulse is clicked and set as electricity consumption and GDP, and the response is set as electricity consumption. The impulse response of electricity consumption is shown in Figure 7.
In the figure, the horizontal axis represents the number of lag periods of impact; the vertical axis represents the growth rate reflecting the trend component of GDP and electricity consumption; the solid line represents the impulse response function, the response degree, and duration of this variable at present and in the future after the impact of one standard deviation of the random error term of other variables; and the dotted line represents the deviation zone of plus or minus two standard deviations [35]. The figure shows that the response of electricity consumption is caused by the change of GDP. At the beginning, the change in GDP greatly affects electricity consumption. However, the impact of impulse gradually declines from the third stage.
4.3. Monthly Electricity Consumption Using Seasonal Component and Random Component Prediction Based on MATLAB
4.3.1. Seasonal Component Prediction
(1)For months on season stabilization points: historical contemporaneous values were directly taken as the predicted values of seasonal components in the current period.(2)For months on season alternation points: the BP neural network is written in MATLAB editor program code to predict the profits in the first 12 months as samples. Thus, the set of 12 input neurons and output neurons is 1. The current monthly electricity consumption is forecasted. Then, the “run” button is clicked, and the simulation results on the normalized prediction data, namely, the electricity consumption forecast of the current month using seasonal cycle components, are obtained. The training process and parameters of the BP neural network are shown in Figure 8.
4.3.2. Random Component Prediction
The predicted value of the random component in the current period is expressed by the average historical value of the random component of the fixed sample size, according to Model 12.
4.4. Monthly Electricity Consumption Forecasting and Result Analysis
Four models are programmed and analyzed using the combined R language and MATLAB.
4.4.1. Model 1
The ARIMA model is established based on the previous change law of electricity consumption in accordance with the time series characteristics of electricity consumption, without considering the influence of many factors, and the monthly electricity consumption are predicted using conventional linear regression.
4.4.2. Model 2
The SARIMA model is established to predict the monthly electricity consumption by eliminating the seasonal effects on the series through the seasonal difference method in accordance with the time series characteristics of electricity consumption, considering only the seasonal factors affecting the monthly electricity consumption.
4.4.3. Model 3
The monthly electricity consumption series is expressed by the product of three components, which represent the trend, seasonal, and random factors, in accordance with the time series characteristics of electricity consumption, and three components are modeled and predicted by considering the influence of different factors.
4.4.4. Proposed Method
The change rate of seasonal components is set, and the time series is customized and decomposed by the STL model in accordance with the time series characteristics of electricity consumption in different months. Three components are predicted considering the influence of different factors.
The actual monthly electricity consumption data and forecast results of a university park in 2017 are shown in Table 5 and Figure 9.

Mean absolute error (MAE), root mean square error (RMSE), relative error, and mean absolute percentage error (MAPE) values were selected to evaluate the performance of the model. The error evaluation of the results of the four prediction methods is shown in Table 6, and the minimum error value is marked in bold and italic in Table 6.

MAE can reflect the actual situation of the predicted error. The formula of MAE for the ith month is as follows:
RMSE is more sensitive to outliers. The calculation formula of RMSE for the ith month is as follows:
The relative error can reflect the reliability of the predicted value. MAPE can not only measure the deviation between the predicted value and the actual value but can also consider the ratio between the error and the actual value. The relative error and MAPE of the ith month are as follows:where refers to the MAE of the ith month, refers to the root mean square error of the ith month, refers to the relative error of the ith month, refers to the average absolute percentage error of the ith month, and and are the predicted electricity consumption and actual electricity consumption of the ith month, respectively.
The following conclusions can be drawn based on the evaluation of the prediction results of the four methods:(1)The relative errors of electricity consumption in 2017 reveal that the errors of the proposed method in most months are less than those of methods 1, 2, and 3. The MAPE, MAE, and RMSE values suggest that the errors of the proposed method are less than those of methods 1, 2, and 3. The forecast results show that the coincidence between the predicted value of the proposed method and the actual value is higher. These results show that the accuracy of the four methods is better than that of methods 1, 2, and 3.(2)The seasonal component change rate is adjusted by the STL model. The monthly prediction error indicates that the prediction error of the proposed method is less than that of method 3 in January, March, July–August, and November, of which the seasonal components are nonperiodically decomposed. Therefore, the decomposition method of changing the seasonal component change rates for different months of electricity consumption is effective.(3)Although the proposed method is superior to methods 1, 2, and 3 in general, the prediction error in March and November is still large because the data of seasonal inflection point month have a mutation, and the ARIMA model often has a large error when dealing with abrupt data.(4)In the process of using the STL model to decompose monthly electricity consumption, although human factors have been avoided as much as possible, some manual intervention and randomness cannot be avoided, as mainly reflected in the parameter setting of the algorithm. The mechanism of the STL model should be further studied.
5. Discussion
The proposed forecasting method by combining STL and ARIMA models has achieved better performance in comparison with other classical forecasting methods, according to results of the studied sample. This improvement is also attributed to decomposition strategy that has been applied, i.e., decomposition of periodic and nonperiodic seasonal components using the STL model. However, some limitations of the proposed method do exist; meanwhile, there may be solutions that can further improve the performance of forecasting. For instance, taking into account more humanrelated factors may improve the results. Examples of these factors are energy users’ preference on comfortable temperature range related to airconditioning devices and their charging habits related to electric vehicles. In other words, developing a more detailed classification of electricity load categories and corresponding human behavior models may be a possible way to improve our work, although this requires a welldeveloped metering infrastructure and a much larger amount of data samples.
The effectiveness of using economic variables like the GDP to support monthly energy demand forecast has also been demonstrated by this study. Considering the fact that only few countries and/or regions publish their GDP on a monthly basis, utilizing other monthly economic factors, such as relative strength index or consumer price index may also be able to improve the performance. However, before an economic factor is applied, it would be necessary to study the correlation between it and the monthly energy demand to ensure the strong correlation in both direction and strength.
6. Conclusion
Following the rapid development of integrated energy systems, forecasting electricity consumption will become a key component for enabling proactive energy system planning, smart operation, accurate billing, new business related to electricity trading, etc.
When forecasting monthly electricity consumption, most methods directly model and predict the time series of historical data. However, in the actual forecasting process, the time series of the monthly power sales often contains components with different characteristics. A new method for predicting monthly power sales is proposed based on the analysis of the factors that affect the time series. The proposed method combines the STL and ARIMA models into one framework solution. Its applicability and accuracy are verified by a case study using practical time series monthly energy consumption data and quarterly GDP values related to an integrated energy system. Because it provides better accuracy than other existing methods, the potential use of this method in forecasting the energy demand of integrated energy systems is high.
Data Availability
No data were used to support this study.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Acknowledgments
This work was supported by the National Key Research and Development Program of China (no.2017YFB0902100).
References
 I. Ghalehkhondabi, E. Ardjmand, G. R. Weckman, and W. A. Young, “An overview of energy demand forecasting methods published in 2005–2015,” Energy Systems, vol. 8, no. 2, pp. 411–447, 2017. View at: Publisher Site  Google Scholar
 C. Hamzaçebi, H. A. Es, and R. Çakmak, “Forecasting of Turkey’s monthly electricity demand by seasonal artificial neural network,” Neural Computing & Applications, vol. 31, no. 7, pp. 2217–2231, 2019. View at: Publisher Site  Google Scholar
 D. H. Vu, K. M. Muttaqi, and A. P. Agalgaonkar, “A variance inflation factor and backward elimination based robust regression model for forecasting monthly electricity demand using climatic variables,” Applied Energy, vol. 140, no. 140, pp. 385–394, 2015. View at: Publisher Site  Google Scholar
 M. Zhao, C. Zhang, and M. Song, “A load forecasting method based on load growth cycle of residential community,” Distribution & Utilization, vol. 33, no. 8, pp. 64–68, 2016. View at: Google Scholar
 Li. Xia, Research on Regional Power on Forecasting Method Based on ARIMA Model and Regression Analysis, Nanjing University of Science and Technology, Nanjing, China, 2013.
 Q. Zhang, Y. Wang, and D. Li, “Monthly electricity forecast based on X12ARIMA seasonal decomposition and annual electricity correction,” Electric Power Construction, vol. 38, no. 1, pp. 76–83, 2017. View at: Google Scholar
 J. Jiang, Z. Cheng, and M. Zhu, “Combined shortterm load forecast with accumulated temperature effect,” Electric Power Automation Equipment, vol. 31, no. 10, pp. 28–31, 2011. View at: Google Scholar
 Y. Long, Z. Su, and X. Gai, “Monthly load forecasting using component decomposition method,” in Proceedings of the CSUEPSA, vol. 29, no. 5, pp. 35–40, 2017. View at: Google Scholar
 L. I. U. Yang, P. Wang, and S. U. N. Wang, “Research on fault line selection method of distribution network based on EMD,” Distribution & Utilization, vol. 35, no. 8, pp. 67–72, 2018. View at: Google Scholar
 E. GonzalezRomera, M. A. JaramilloMoran, and D. CarmonaFernandez, “Monthly electric energy demand forecasting based on trend extraction,” IEEE Transactions on Power Systems, vol. 21, no. 4, pp. 1946–1953, 2006. View at: Publisher Site  Google Scholar
 P. Damrongkulkamjorn and P. Churueang, “Monthly energy forecasting using decomposition method with application of seasonal ARIMA,” in Proceedings of the 2005 IEEE International Power Engineering Conference, pp. 1–229, Singapore, December 2005. View at: Publisher Site  Google Scholar
 W. Yan, C. Cheng, and B. Xue, “Forecasting for monthly electricity consumption using X12 multiplication method and ARIMA model,” Proceedings of the CSUEPSA, vol. 28, no. 5, pp. 76–80, 2016. View at: Google Scholar
 W. Wu, W. Zhang, and Y. Yang, “Time series analysis for bug number prediction,” in Proceedings of the 2nd International Conference on Software Engineering and Data Mining, pp. 589–596, Chengdu, China, June 2010. View at: Google Scholar
 H. Guo, Q. Chen, and Q. Xia, “Study on midterm electricity load forecast considering time lag effects of economic factors,” Power System Technology, vol. 40, no. 2, pp. 514–520, 2016. View at: Google Scholar
 X. Han, L. I. Qing, and F. Liu, “Combination forecasting of mean flying hours between failures for aircraft based on time series decomposition,” Journal of Computer Applications, vol. 36, no. S2, pp. 99–102, 2016. View at: Google Scholar
 A. Malik, R. Maciejewski, S. Towers, S. McCullough, and D. S. Ebert, “Proactive spatiotemporal resource allocation and predictive visual analytics for community policing and law enforcement,” IEEE Transactions on Visualization and Computer Graphics, vol. 20, no. 12, pp. 1863–1872, 2014. View at: Publisher Site  Google Scholar
 M. B. Chhetri, M. Lumpe, Q. B. Vo, and R. Kowalczyk, “On estimating bids for amazon EC2 spot instances using time series forecasting,” in Proceedings of the 2017 IEEE International Conference on Services Computing (SCC), pp. 44–51, Honolulu, HI, USA, June 2017. View at: Publisher Site  Google Scholar
 Q. Lu, Q. Cai, and S. Liu, “Shortterm load forecasting based on load decomposition and numerical weather forecast,” in Proceedings of the IEEE Conference on Energy Internet and Energy System Integration, pp. 1–5, Beijing, China, November 2017. View at: Publisher Site  Google Scholar
 R. Campo and P. Ruiz, “Adaptive weathersensitive shortterm load forecast,” IEEE Transactions on Power Systems, vol. 2, no. 3, pp. 592–598, 1986. View at: Google Scholar
 R. J. Hyndman and S. Fan, “Density forecasting for longterm peak electricity demand,” IEEE Transactions on Power Systems, vol. 25, no. 2, pp. 1142–1153, 2010. View at: Publisher Site  Google Scholar
 K. Methaprayoon, W.J. Lee, S. Rasmiddatta, J. R. Liao, and R. J. Ross, “Multistage artificial neural network shortterm load forecasting engine with frontend weather forecast,” IEEE Transactions on Industry Applications, vol. 43, no. 6, pp. 1410–1416, 2007. View at: Publisher Site  Google Scholar
 Y. Wang, Q. Xia, and C. Kang, “Secondary forecasting based on deviation analysis for shortterm load forecasting,” IEEE Transactions on Power Systems, vol. 26, no. 2, pp. 500–507, 2011. View at: Publisher Site  Google Scholar
 B. Liu, J. Nowotarski, and H. Tao, “Probabilistic load forecasting via quantile regression averaging on sister forecasts,” IEEE Transactions on Smart Grid, vol. 8, no. 2, pp. 730–737, 2017. View at: Google Scholar
 Y. Wang, Q. Chen, M. Sun, C. Kang, and Q. Xia, “An ensemble forecasting method for the aggregated load with subprofiles,” IEEE Transactions on Smart Grid, vol. 9, no. 4, pp. 3906–3908, 2018. View at: Publisher Site  Google Scholar
 J. Xie, T. Hong, and J. Stroud, “Longterm retail energy forecasting with consideration of residential customer attrition,” IEEE Transactions on Smart Grid, vol. 6, no. 5, pp. 2245–2252, 2015. View at: Publisher Site  Google Scholar
 H. Qu, Y. Zhang, J. Zhao, G. Ren, and W. Wang, “A hybrid handover forecasting mechanism based on fuzzy forecasting model in cellular networks,” China Communications, vol. 15, no. 6, pp. 84–97, 2018. View at: Publisher Site  Google Scholar
 D. Fay and J. V. Ringwood, “On the influence of weather forecast errors in shortterm load forecasting models,” IEEE Transactions on Power Systems, vol. 25, no. 3, pp. 1751–1758, 2010. View at: Publisher Site  Google Scholar
 J. Xie and T. Hong, “Variable selection methods for probabilistic load forecasting: empirical evidence from seven states of the United States,” IEEE Transactions on Smart Grid, vol. 9, no. 6, pp. 6039–6046, 2018. View at: Publisher Site  Google Scholar
 S. I. Shoukui and X. Sun, Mathematical Modeling Algorithms and Applications, National Defense Industry Publications Co., Beijing, China, 2014.
 R. Kabacoff, R in Action, Manning Publications Co., Greenwich, UK, 2013.
 M. E. Lebotsa, C. Sigauke, A. Bere, R. Fildes, and J. E. Boylan, “Short term electricity demand forecasting using partially linear additive quantile regression with an application to the unit commitment problem,” Applied Energy, vol. 222, no. 37, pp. 104–118, 2018. View at: Publisher Site  Google Scholar
 M. R. Braun, H. Altan, and S. B. M. Beck, “Using regression analysis to predict the future energy consumption of a supermarket in the UK,” Applied Energy, vol. 130, no. 5, pp. 305–313, 2014. View at: Publisher Site  Google Scholar
 M. Rejc and M. Pantos, “Shortterm transmissionloss forecast for the Slovenian transmission power system based on a fuzzylogic decision approach,” IEEE Transactions on Power Systems, vol. 26, no. 3, pp. 1511–1521, 2011. View at: Publisher Site  Google Scholar
 S. Fan and R. J. Hyndman, “Shortterm load forecasting based on a semiparametric additive model,” IEEE Transactions on Power Systems, vol. 27, no. 1, pp. 134–141, 2012. View at: Publisher Site  Google Scholar
 Y. Wang, Q. Chen, N. Zhang, and Y. Wang, “Conditional residual modeling for probabilistic load forecasting,” IEEE Transactions on Power Systems, vol. 33, no. 6, pp. 7327–7330, 2018. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2019 Tianhe Sun et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.