Abstract
The incorporation of weather variables is crucial in developing an effective demand forecasting model because electricity demand is strongly influenced by weather conditions. The dependence of demand on weather conditions may change with time during a day. Therefore, the time stamped weather information is essential. In this paper, a multi-layer moving window approach is proposed to incorporate the significant weather variables, which are selected using Pearson and Spearman correlation techniques. The multi-layer moving window approach allows the layers to adjust their size to accommodate the weather variables based on their significance, which creates more flexibility and adaptability thereby improving the overall performance of the proposed approach. Furthermore, a recursive model is developed to forecast the demand in multi-step ahead. An electricity demand data for the state of New South Wales, Australia are acquired from the Australian Energy Market Operator and the associated results are reported in the paper. The results show that the proposed approach with dynamic incorporation of weather variables is promising for day-ahead and week-ahead load demand forecasting.
LOAD forecasting is crucial in an electricity network operation as it can provide critical information for not only maintaining the balance between the load and the generation, but also planning further expansion of the network. While over-forecast may lead to unnecessary generator commitments in the dispatch schedule, under-forecast could lead to purchases of expensive generators supplying peak demands [
A short-term load forecasting for individual residential households is proposed in [
The influences of climatic variables on electricity demand have been highlighted by numerous studies [
Due to the strong influence of weather variables on electricity demand [
In the above-mentioned models, the incorporation of weather variables in the forecasting model is static; however, the impacts of temperature on demand may be dynamic. Consequently, if a dynamic inclusion of the weather variable is considered, it will result in more effective demand forecasting model. For example, a moving window model based on the autoregressive model with exogenous variables is used in [
From the research reported in the literature, it can be seen that some demand forecasting models do not include weather variables although they have strong influence on the electricity demand. This limits the performance of the proposed forecasting models. Realizing this limitation, some studies include weather variable variables in their models, but the dynamic characteristic of the weather variation is not fully addressed. There are many other considerations such as forecasting horizons, the significance of the exogenous variables, and the development of recursive algorithm, which have been thoroughly investigated through the proposed methodology. The main motivation behind the proposed work is to develop a dynamic model to forecast electricity demand in short-term period with high accuracy.
In this paper, a recurring multi-layer moving window approach is proposed, which includes three stages to guarantee the robust implementation of the load demand forecasting. At the first stage, two correlation techniques namely Pearson and Spearman correlation techniques are employed to analyze the impacts of weather variables on electricity demand. At the second stage, a multi-layer moving window approach is used to incorporate the predominant weather variables on the electricity demand forecasting model. The size of the layers is adjustable to accommodate the weather variables based on their significance. This creates more flexibility and adaptability to forecast the demand in different ranges. Meanwhile, it reduces the calculations since the layer size can be assigned based on the most recent and important roleplaying factors that affect the demand. At the third stage, a recursive structure is employed to forecast the day- and week-ahead load demand. This structure allows the forecasted values to be reused as inputs thus updating the model consecutively and improving the overall forecasting results.
The main contributions of the paper can be summarized as follows.
1) At the first stage, the designed approach pervasively analyses the impacts of available weather variables on electricity demand using Pearson and Spearman correlation techniques. Meanwhile, the significance of weather effects is estimated using p-values derived from the t-test.
2) A multi-layer moving window approach is proposed to incorporate the assigned weather variables at the first stage into the demand forecasting model. This approach allows adjustable layer size to accommodate the weather variables based on their significance, which offers more flexibility and adaptability thereby improving the model performance significantly.
3) A recursive model is developed to forecast the demand in multi-step ahead. This model allows the forecasted values to be reused before finalising the forecasting outcome. This provides more useful information and consequently, reduces the error of multi-step-ahead forecasting.
4) The electricity demand data for the state of NSW, Australia are acquired from the Australian Energy Market Operator (AEMO) for a case study analysis. The results show that the proposed approach is robust and effective. The day- and week-ahead demand forecasting results are promising.
The rest of the paper is organized as follows. Section II presents the impacts of weather variables on electricity demand. Section III introduces a forecasting approach which employs a single- and multi-layer moving window approach to include the weather variables and uses a recursive model to forecast the demand in multi-step ahead. Section IV highlights some experimental results and model validation, and Section V provides the concluding remarks.
The weather variables may have significant influence on the electricity demand. Among all the weather variables, temperature is reported to be the most important variable that can have significant impact on the electricity demand [
Electricity demand data used in this study are available from the AEMO [

Fig. 1 Historical data of electricity demand for NSW, Australia.
It can be observed from
Weather variables, which represent atmospheric conditions, typically include temperature, humidity, and wind speed. These variables may experience considerable variation following calendar seasons in a year. In order to illustrate the variation of weather variables, a dataset has been acquired from the Sydney airport weather station at NSW, Australia [

Fig. 2 Historical data of weather variables at Sydney airport weather station at NSW, Australia. (a) Temperature. (b) Humidity. (c) Wind speed.
It can be observed from
The variabilities associated with temperature, humidity, and wind speed are shown in

Fig. 3 Hourly variation of temperature, humidity, and wind speed for a typical week in July 4-11, 2015.
Weather variables may have strong influence on human feeling and living style. In order for humans to maintain the living comfortability, the adverse weather impacts can be reduced using modern electric equipment. As a result, small variations in weather variables can have enormous influence on an electricity consumption [
Considering the threshold value, the balance point that is the threshold value for the weather variables, namely, the temperature, humidity and wind speed, is specified based on the lowest electricity demand for the studied data in NSW, Australia. Particularly, the balance point or the threshold value for the temperature is normally about 18.30 ℃ and 21.00 ℃ for moderate and warm environments, respectively [
The Pearson correlation technique is commonly used to estimate the linear interdependency among different variables [
While the calculated correlation coefficients measure the strength of the relationship between two variables, the significance of the relationship or the correlation coefficients can be tested using the t-test proposed in [
(1) |
where r is the correlation coefficient; and n is the number of observations.
Furthermore, a p-value (denoted as pv), which represents a probability level indicating how unlikely a given correlation coefficient will occur given no relationship in the population, is estimated based on the obtained test score as:
(2) |
where pro() is the probability of an incident to occur; and T conforms to a normal distribution.
It is noted that the pv also represents the probability of incorrectly rejecting a true null hypothesis. It is interpreted as an indicator of statistical significance of the correlation between two variables. For example, if a threshold value of 0.05 is considered, it is accepted that a true null hypothesis (there is no correlation between the two variables) may be incorrectly rejected with a probability of 5%. This threshold value is widely accepted in the literature as indicated in [
The Pearson and Spearman correlation coefficients (denoted as and ) and their significance values are calculated and the results are presented in Tables
It can be observed from Tables
On the other hand, it can be observed from
In the above analyses, only the temperature shows strong and significant correlation to the electricity demand. Consequently, only the temperature should be considered to be included in the forecasting model for the data acquired from NSW, Australia.
In this section, a new forecasting approach is proposed to build a demand forecasting model using a multi-layer moving window approach and a recursive model. While the multi-layer moving window approach is employed to incorporate weather variables, the recursive model is introduced for day- and week-ahead forecasting of electricity demand.
The conceptual diagram of the proposed forecasting approach is given in

Fig. 4 Conceptual diagram of proposed forecasting approach.
In the single-layer moving window approach, a dataset is rearranged based on the observed patterns and the forecast can be represented in the form of links between sub-windows. A typical single-layer moving window with a size of sub-windows is given in

Fig. 5 Diagrammatic representation of single-layer moving window approach.
It is noted from [
(3) |
where is the forecasting demand; is the coefficient; is the lag (li) of the current demand value ; and is the error.
If (3) is used to represent the window in
In the multi-layer moving window approach, additional layers will be included to signify the dependence of demand on other variables thereby improving the performance of the forecasting model. For example, if a weather variable contributes to the improvement of the model in (3), this variable can be used to model the residual of (3) as:
(4) |
where bi is the coefficient; is the historical value of variable x; hi is the respective hour; and is the residual.
Substituting (4) into (3) and extending the expression for different weather variables, the autoregressive-based forecasting model can be rewritten as:
(5) |
where is the error term; and includes different layers of a moving window, which can be calculated as:
(6) |
where ci () is the coefficient; and is the historical value of variable .
It is noted that (5) represents the summation of different window layers Wi, which is a numerical representation of multi-layer moving window. Graphically, the multi-layer moving window can be represented as in

Fig. 6 Graphical representation of multi-layer moving window approach.
The recursive model is employed to forecast electricity demand in multi-step ahead. This model allows the newly forecasted value to be used as one of the inputs to forecast the demand in the consecutive forecasting steps.
It is noted that (5) is used to forecast one-step ahead only. To forecast s-step ahead, (5) can be extended as:
(7) |
where y(k+s) is the s-step-ahead forecasting value.
In (7), there are two main types of windows, namely, internal and external windows. The external window includes Wi(k+s) layers, where , which are independent from the historical demand thus can be updated accordingly. On the other hand, the internal window, i.e., the first window layer W1(k+s), is associated with the historical data, so that it can only be updated using a recursive structure. The recursive structure allows the forecasting process to consider the forecasting value at a previous step as one of the inputs to the model to forecast the subsequent value. For illustration, the representation of two-step-ahead forecasting is given as:
(8) |
where is the estimated/forecasted demand.
Similarly, the s-step-ahead forecasting can be achieved by expanding (8) into (9).
(9) |
In (9), while the second part represents the historical dependence, the first part represents the previous forecasting dependence. If s is greater than m, the second part of (9) is not required to be considered. Therefore, from the m-step-ahead forecasting, the forecasting outcome is only dependent on the previously obtained forecasting values.
The problem of error accumulation is expected to be not significant for the proposed approach. This is because normally the forecasting value at a previous step is the actual value for the electricity load, and clearly this won’t introduce any model’s error to forecast the subsequent value.
A case study has been conducted with the aid of electricity demand data, acquired from AEMO, for the state of NSW, Australia to demonstrate the effectiveness and robustness of the forecasting model developed in this paper. Also, the forecasting result from this model is compared with three different benchmark models for the validation purpose.
It is noted that the size of the window indicated in Figs.
The data used in this study are available from AEMO [
To evaluate the performance of the proposed model, various error measures can be employed. In the literature, three error measures which are root mean square error (RMSE), mean absolute percentage error (MAPE), and coefficient of determination
(10) |
(11) |
(12) |
where yi is the actual demand; is the forecasted demand; is the mean value of actual data; and N is the number of the forecasted data points.
Furthermore, the testing results are employed to investigate the significant contribution of weather variables to the accuracy of the demand forecasting model. In order to examine this contribution, the proposed multi-layer moving window model is compared with the single-layer moving window model, in which only historical demand data are considered, as discussed in Section III-B. The two models are investigated in two main forecasting horizons which are day-ahead and week-ahead.
In this sub-section, the forecasting is conducted for one-day ahead forecasting. The model is trained with data from 2010 to 2014, and the trained model is tested on the dataset (2015). In order to visualize the performance of the model based on the proposed approach, the forecasting results in one typical week, i.e., June 6-13, 2015, are extracted and presented in in

Fig. 7 Day-ahead demand forecasting using model based on proposed approach and single-layer moving window model in June 6-13, 2015.

Fig. 8 Variation of temperature on June 6 and 7, 2015.
It can be observed from
To evaluate the performances of the model based on the proposed approach and the single-layer moving window model for day-ahead forecasting, MAPE values are calculated and presented in

Fig. 9 MAPE values for day-ahead forecasting using model based on proposed approach and single-layer moving window model.
Furthermore, the difference between the MAPE values for the two models is more significant at larger forecasting horizon. While this difference is only 0.01% for half-hour-ahead forecasting, it is about 0.8% for day-ahead forecasting. This signifies that the weather variables play a key role in demand forecasting at larger forecasting horizon.
In this sub-section, the model based on the proposed approach and the single-layer moving window model are employed to forecast electricity demand one-week ahead. The forecasting performance of these two models are compared and shown in

Fig. 10 MAPE values for week-ahead forecasting using model based on proposed approach and single-layer moving window model.
It is noted from
The model based on the proposed approach is employed to forecast the electricity demand for NSW, Australia for the entire year of 2015. The dispersion of obtained forecasting errors is investigated in different hours of a day and different days of a week. To reveal these dispersions of the error, the box plot is used and the results are given in Figs.

Fig. 11 Forecasting error for different hours of a day.

Fig. 12 Forecasting error for different days of a week.
It can be observed from
In order to validate the proposed model, other load forecasting models including naïve model, autoregressive model, neural network model, and single-layer moving window model are employed as benchmark models for the comparison purpose. The comparison is conducted for day-ahead and week-ahead forecasting. The comparative results of MAPE values are given in
It can be observed from
Although the machine learning (ML) approaches, e.g., artificial neural network (ANN) and SVR, can also show effective performance in some aspects, e.g., to exploit the non-linear relationship of load demand and other variables, they have the following drawbacks: ML models are normally non-flexible models that are based on highly complex commercial systems, as such, they are regarded as black-box approaches where the mathematics of the system is not available in detail. This is particularly problematic when the system is required to be adjusted by the network users for different conditions. The other disadvantage is that the implementation of ML models requires advanced calculation packages with complex structure [
Unlike the ML models, the proposed approach offers flexibility and adaptability to the user control, e.g., the window size of the variables’ layer can be changed based on the significance of variables under different regional conditions. Moreover, the proposed approach can be implemented with uncomplicated structure and minimized mathematical calculations, and guarantees the robust performance to capture the variation of weather variables for the day-ahead and week-ahead forecasting.
In this paper, the patterns of typical weather variables including temperature, humidity, and wind speed are revealed using time series plots. Furthermore, the impacts of these variables on electricity demand are analyzed using correlation techniques. The results from these analyses illustrate that the demand is significantly influenced with the variation of weather variables, especially temperature.
Since weather variables may dynamically be associated with an electricity demand, a multi-layer moving window based model is developed to incorporate the influence of weather variables in demand forecasting. Each layer of the window can represent a weather variable effectively because the individual layer can adjust the size based on significance of each weather variable. The model is then extended to forecast the day-ahead and week-ahead demands using a recursive technique. This technique allows the forecasting value to be reused as an input in the model, and hence the overall performance of the forecasting model has been improved further. A typical dataset for the state of NSW, Australia is used to illustrate the effectiveness of the proposed approach, which can pave the way for state-wide demand management strategy in future. The obtained results demonstrate the significance of weather variables in electricity demand forecasting. Dynamic incorporation of weather variables in the model based on the proposed approach helps improve the performance of the multi-step-ahead forecasting significantly.
References
D. K. Ranaweera, G. G. Karady, and R. G. Farmer, “Economic impact analysis of load forecasting,” IEEE Transactions on Power Systems, vol. 12, no. 3, pp. 1388-1392, Aug. 1997. [Baidu Scholar]
W. Kong, Z. Dong, Y. Jia et al., “Short-term residential load forecasting based on LSTM recurrent neural network,” IEEE Transactions on Smart Grid, vol. 10, no. 1, pp. 841-851, Jan. 2019. [Baidu Scholar]
D. H. Vu, K. M. Muttaqi, A. P. Agalgaonkar et al., “Short-term electricity demand forecasting using autoregressive based time varying model incorporating representative data adjustment,” Applied Energy, vol. 205, pp. 790-801, Nov. 2017. [Baidu Scholar]
H. Takeda, Y. Tamura, and S. Sato, “Using the ensemble Kalman filter for electricity load forecasting and analysis,” Energy, vol. 104, pp. 184-198, Jun. 2016. [Baidu Scholar]
P. Jiang, F. Liu, and Y. Song, “A hybrid forecasting model based on date-framework strategy and improved feature selection technology for short-term load forecasting,” Energy, vol. 119, pp. 694-709, Jan. 2017. [Baidu Scholar]
T. K. Mideksa and S. Kallbekken, “The impact of climate change on the electricity market: a review,” Energy Policy, vol. 38, no. 7, pp. 3579-3585, Jul. 2010. [Baidu Scholar]
R. Schaeffer, A. S. Szklo, A. F. P. de Lucena et al., “Energy sector vulnerability to climate change: a review,” Energy, vol. 38, no. 1, pp. 1-12, Feb. 2012. [Baidu Scholar]
M. Noussan, M. Jarre, and A. Poggio, “Real operation data analysis on district heating load patterns,” Energy, vol. 129, pp. 70-78, Jun. 2017. [Baidu Scholar]
I. M. Trotter, T. F. Bolkesjø, J. G. Féres et al., “Climate change and electricity demand in Brazil: a stochastic approach,” Energy, vol. 102, pp. 596-604, May 2016. [Baidu Scholar]
S. Mirasgedis, Y. Sarafidis, E. Georgopoulou et al., “Modeling framework for estimating impacts of climate change on electricity demand at regional level: case of Greece,” Energy Conversion and Management, vol. 48, no. 5, pp. 1737-1750, May 2007. [Baidu Scholar]
S. J. Parkpoom and G. P. Harrison, “Analyzing the impact of climate change on future electricity demand in Thailand,” IEEE Transactions on Power Systems, vol. 23, no. 3, pp. 1441-1448, Sept. 2008. [Baidu Scholar]
D. J. Sailor and J. R. Muñoz, “Sensitivity of electricity and natural gas consumption to climate in the U.S.A. – methodology and results for eight states,” Energy, vol. 22, no. 10, pp. 987-998, Oct. 1997. [Baidu Scholar]
T. Ahmed, K. M. Muttaqi, and A. P. Agalgaonkar, “Climate change impacts on electricity demand in the state of New South Wales, Australia,” Applied Energy, vol. 98, pp. 376-383, Oct. 2012. [Baidu Scholar]
S. M. Howden and S. Crimp. (2001, Aug.). Effect of climate and climate change on electricity demand in Australia. [Online]. Available: https://www.mssanz.org.au/MODSIM01/Vol%202/Howden.pdf [Baidu Scholar]
C. G. Hing and L. T. Tjing, “The impact of climate change on New Zealand's electricity demand,” in Proceedings of IEEE International Conference on Probabilistic Methods Applied to Power Systems (PMAPS), Singapore, Jun. 2010, pp. 1-9. [Baidu Scholar]
D. J. Sailor and A. A. Pavlova, “Air conditioning market saturation and long-term response of residential cooling energy demand to climate change,” Energy, vol. 28, no. 9, pp. 941-951, Jul. 2003. [Baidu Scholar]
T. Wilson, L. Williams, J. Smith et al., “Global climate change and California: potential implications for ecosystem health and the economy,” California Energy Commission, California, Consultant Report 500-03-058CF, Aug. 2003. [Baidu Scholar]
J. A. Dirks, W. J. Gorrissen, J. H. Hathaway et al., “Impacts of climate change on energy consumption and peak demand in buildings: a detailed regional approach,” Energy, vol. 79, pp. 20-32, Jan. 2015. [Baidu Scholar]
Y. Feng and S. M. Ryan, “Day-ahead hourly electricity load modeling by functional regression,” Applied Energy, vol. 170, pp. 455-465, Mar. 2016. [Baidu Scholar]
K. M. Powell, A. Sriprasad, W. J. Cole et al., “Heating, cooling, and electrical load forecasting for a large-scale district energy system,” Energy, vol. 74, pp. 877-885, Sept. 2014. [Baidu Scholar]
J. D. Black and W. L. W. Henson, “Hierarchical load hindcasting using reanalysis weather,” IEEE Transactions on Smart Grid, vol. 5, no. 1, pp. 447-455, Jan. 2014. [Baidu Scholar]
Y. He, R. Liu, H. Li et al., “Short-term power load probability density forecasting method using kernel-based support vector quantile regression and copula theory,” Applied Energy, vol. 185, pp. 254-266, Jan. 2017. [Baidu Scholar]
E. Paparoditis and T. Sapatinas, “Short-term load forecasting: the similar shape functional time-series predictor,” IEEE Transactions on Power Systems, vol. 28, no. 4, pp. 3818-3825, Jul. 2013. [Baidu Scholar]
C. Tong, J. Li, C. Lang et al., “An efficient deep model for day-ahead electricity load forecasting with stacked denoising auto-encoders,” Journal of Parallel and Distributed Computing, vol. 117, pp. 267-273, Jul. 2018. [Baidu Scholar]
M. Khodayar, J. Wang, and M. Manthouri, “Interval deep generative neural network for wind speed forecasting,” IEEE Transactions on Smart Grid, vol. 10, no. 4, pp. 3974-3989, Jul. 2019. [Baidu Scholar]
Y. He, J. Deng, and H. Li, “Short-term power load forecasting with deep belief network and copula models,” in Proceedings of 9th International Conference on Intelligent Human-Machine Systems and Cybernetics (IHMSC), Hangzhou, China, Aug. 2017, pp. 1-5. [Baidu Scholar]
B. Yildiz, J. I. Bilbao, and A. B. Sproul, “A review and analysis of regression and machine learning models on commercial building electricity load forecasting,” Renewable and Sustainable Energy Reviews, vol. 73, pp. 1104-1122, Jun. 2017. [Baidu Scholar]
D. H. Vu, K. M. Muttaqi, and A. P. Agalgaonkar, “Short-term load forecasting using regression based moving windows with adjustable window-sizes,” in Proceedings of IEEE Industry Applications Society Annual Meeting, Vancouver, Canada, Oct. 2014, pp. 1-10. [Baidu Scholar]
S. Jovanović, S. Savić, M. Bojić et al., “The impact of the mean daily air temperature change on electricity consumption,” Energy, vol. 88, pp. 604-609, Aug. 2015. [Baidu Scholar]
T. Ahmed, D. H. Vu, K. M. Muttaqi et al., “Load forecasting under changing climatic conditions for the city of Sydney, Australia,” Energy, vol. 142, pp. 911-919, Oct. 2018. [Baidu Scholar]
Australian Energy Market Operator. (2020, Dec.). Electricity price and demand. [Online]. Available: http://www.aemo.com.au [Baidu Scholar]
Bureau of Meteorology. (2021, Jan.). Warmings current. [Online]. Available: http://www.bom.gov.au [Baidu Scholar]
Y. Hong, H. Chang, and C. S. Chiu, “Hour-ahead wind power and speed forecasting using simultaneous perturbation stochastic approximation (SPSA) algorithm and neural network with fuzzy inputs,” Energy, vol. 35, no. 9, pp. 3870-3876, Sept. 2010. [Baidu Scholar]
P. M. Berthouex and L. C. Brown, Statistics for Environmental Engineers. Boca Raton: Lewis Publishers, 2002. [Baidu Scholar]
W. W. S. Wei, Time Series Analysis – Univariate and Multivariate Methods. San Francisco: Pearson Addison Wesley, 2006. [Baidu Scholar]
D. C. Montgomery and G. C. Runger, Applied Statistics and Probability for Engineers. Hoboken: John Wiley & Sons, Inc, 2003. [Baidu Scholar]