Next Article in Journal
Modelling of Spouted and Spout-Fluid Beds: Key for Their Successful Scale Up
Previous Article in Journal
Optimal and Learning-Based Demand Response Mechanism for Electric Water Heater System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Devising Hourly Forecasting Solutions Regarding Electricity Consumption in the Case of Commercial Center Type Consumers

by
Alexandru Pîrjan
1,*,
Simona-Vasilica Oprea
2,
George Căruțașu
1,
Dana-Mihaela Petroșanu
1,3,
Adela Bâra
2 and
Cristina Coculescu
1
1
Department of Informatics, Statistics and Mathematics, Romanian-American University, Expoziției 1B, Bucharest 012101, Romania
2
Department of Economic Informatics and Cybernetics, The Bucharest Academy of Economic Studies, Romana Square 6, Bucharest 010374, Romania
3
Department of Mathematics-Informatics, University Politehnica of Bucharest, Splaiul Independenței 313, Bucharest 060042, Romania
*
Author to whom correspondence should be addressed.
Energies 2017, 10(11), 1727; https://doi.org/10.3390/en10111727
Submission received: 24 September 2017 / Revised: 14 October 2017 / Accepted: 25 October 2017 / Published: 27 October 2017
(This article belongs to the Section F: Electrical Engineering)

Abstract

:
This paper focuses on an important issue regarding the forecasting of the hourly energy consumption in the case of large electricity non-household consumers that account for a significant percentage of the whole electricity consumption, the accurate forecasting being a key-factor in achieving energy efficiency. In order to devise the forecasting solutions, we have developed a series of dynamic neural networks for solving nonlinear time series problems, based on the non-linear autoregressive (NAR) and non-linear autoregressive with exogenous inputs (NARX) models. In both cases, we have used large datasets comprising the hourly energy consumption recorded by the smart metering device from a commercial center type of consumer (a large hypermarket), while in the NARX case we have used supplementary temperature and time stamps datasets. Of particular interest was to research and obtain an optimal mix between the training algorithm (Levenberg-Marquardt, Bayesian Regularization, Scaled Conjugate Gradient), the hidden number of neurons and the delay parameter. Using performance metrics and forecasting scenarios, we have obtained results that highlight an increased accuracy of the developed forecasting solutions. The developed hourly consumption forecasting solutions can bring significant benefits to both the consumers and electricity suppliers.

Graphical Abstract

1. Introduction

For the last 45 years, worldwide energy consumption has increased by more than 2.2-fold, with the non-residential sector accounting for the most significant percentage of the whole electricity consumption, ranging from 76% in 1971 to 78% in 2015 [1]. Therefore, a very important problem that must be addressed, in order to achieve energy efficiency, consists in the accurate forecasting of the electricity consumption in the case of large non-household consumers. In order to optimize the electricity consumption for this type of consumers and attain an efficient consumption strategy, a detailed accurate hourly forecasting solution represents an extremely useful tool that creates the premises for obtaining an appropriate management of the environment’s resources.
Nowadays, the evolution of technology has made it possible to develop new methods for recording and storing different types of data in real time, by means of specialized hardware and software components, such as the ones integrated in the advanced metering infrastructure (AMI). The AMI includes specialized components for measuring, recording, sending and receiving data. An important part of the advanced metering infrastructure systems consists of the smart metering devices, specialized electronic systems that are able to record, store and make available to the customers and suppliers more detailed information than was previously possible when using regular meters. In this context, the purpose of this paper is to develop an accurate forecasting solution that uses detailed consumption data retrieved from these devices, making it possible for large non-household electricity consumers to craft a personalized efficient consumption strategy that best suits their needs, achieving significant savings on the electricity costs.
In the scientific literature, there are works that give a comprehensive review of artificial neural networks (ANNs), highlighting their evolution during the years, their mathematical formalism and countless applications in various problems [2,3,4,5,6,7,8,9]. Artificial neural networks are recognized by scientists as efficient forecasting tools as there are a lot of scientific papers that demonstrate their superiority for the forecasting accuracy when compared to other methods like statistical ones [10,11,12,13]. There are many papers that cover a wide range of artificial neural network implementations that prove their undeniable advantages in terms of performing specific tasks efficiently, with very good results [14,15,16,17,18,19].
The forecasting of time series is extensively covered in numerous scientific works [15,16,17,18,20,21,22,23,24]. In the case of non-linear systems and systems whose state varies dynamically, being influenced by their actual state, methods like the nonlinear autoregressive and the nonlinear autoregressive with exogenous inputs proved to be very efficient in forecasting future values of time series [19,25]. In recent years, there has been an increased interest in the scientific literature regarding the accurate forecasting of consumed electricity, and a lot of methods and associated applications have been developed for the prediction of time series that contain energy related data.
Thus, in [26], the authors developed, using an artificial neural network approach, a model for energy analysis in the case of office buildings located in subtropical climates. The model uses nine input parameters (four related to the meteorological conditions, four related to the building’s design and one for the type of day—weekday or weekend days) to predict the total energy consumption for the entire building and also the consumption for several categories of users. Analyzing the obtained results, the authors concluded that they reflected a very good forecasting accuracy.
In [27], the authors developed and analyzed a new stochastic model built for the purpose of forecasting the energy consumption of a building, using a dataset comprising hourly measurements of the consumed energy for a period of 7 weeks. The authors claimed that their method offered improved results when compared to other approaches, based on artificial neural networks or hidden Markov models.
In [28], the authors proposed a short-term load forecasting without meteorological data, based on: artificial neural networks; wavelet transform and artificial neural networks; wavelet transform and radial basis function neural networks; empirical mode decomposition and radial basis function neural networks. The authors proposed a regularization method that can be applied on the forecasted results in order to improve the accuracy of the prediction and finally they state that the errors study reveals that the forecasting can be achieved successfully without using meteorological data.
Reference [29] addresses issues regarding the forecasting of short term loads in electric power systems by means of artificial neural networks. The authors used feed-forward ANNs in order to achieve short-term predictions of the load demand in the national power system of Greece. Thus, they developed a series of ANNs using various networks architectures, and proposed and analyzed optimization techniques for the developed networks.
In [30], the authors proposed a model for predicting the day ahead load forecasting in the case of the power system in Turkey, based on an artificial neural network approach that takes into account the load variation caused by national or religious holidays. In what concerns the performance metrics, the authors used the mean absolute percentage error and the hourly absolute percentage error. They state that their work provides as its main contribution an improved method of prioritizing the resources for the cities according to their energetic needs.
In [31], the authors study the possibility to obtain a daily forecast of the energy consumption in the case of public buildings, by means of neural networks. The authors have used the data retrieved from an energy consumption monitoring system of a series of public buildings to develop NAR and NARX neural networks based on the Levenberg-Marquardt algorithm in order to forecast the energy consumption for these buildings. The authors concluded that their models are appropriate for predicting the consumed energy in public buildings and by comparing the results, they noticed that the NARX model has offered an improved forecasting accuracy.
In [32], the authors analyzed a non-linear forecasting method for managing the energy in the case of a residential household that incorporates a photovoltaic rooftop system and a secondary storage system based on a lithium-ion battery. The authors state that their results confirm a high degree of accuracy for long-term predictions.
Reference [33] focuses on forecasting the electricity consumption for the next week taking into account the dynamics of people based on analyzing mobile network traffic data using several regression models. The authors claim that their forecasting solution is useful in saving primary energy consumption and energy distribution costs.
In [34], the authors used artificial neural networks and autoregressive techniques in order to obtain a 24-h estimation of the solar irradiance. The authors used a meteorological dataset containing hourly records over a 5-years period for developing nonlinear autoregressive, nonlinear autoregressive with exogenous inputs, auto regressive moving average with exogenous terms, neural network fitting models in order to obtain the most accurate prediction model as to optimize the direct-current microgrid functioning.
The authors in [35] used the data provided by the Independent System Operators New England Incorporation (ISO-NE Inc., Holyoke, MA, USA) operator and targeted obtaining an accurate short-term load forecasting method, based on non-linear autoregressive artificial neural networks with exogenous variables and on the Levenberg-Marquardt training algorithm. The authors compared their results with the ones obtained through other known methods (feedforward ANNs, autoregressive–moving-average model with exogenous inputs, state space methods) and claimed to have registered an improvement of 30% in what concerns the average error, stating that in this way one can achieve significant savings by not putting into operation unnecessary power plants.
The forecasting of electricity consumption at the household level according to different behavior patterns was studied in [36]. The authors took into account the inhabitants’ daily routines along with usage patterns of household appliances in order to obtain a better accuracy when performing the forecast. The authors claimed that their results have the potential to improve the efficiency of smart metering devices and bring benefits to the residents.
In this paper, we focus on a topic of great significance in regard to forecasting the hourly energy consumption in the case of large non-household electricity consumers, a segment that represents to a considerable percentage of the total energy consumption, consequently representing a key-factor in attaining energy efficiency. We have trained, tested and validated a series of dynamic neural networks for solving non-linear time series problems with the purpose of devising forecasting solutions, based on the NAR and NARX models, using the development environment MATLAB R2017a. We have acquired and used large datasets, consisting of the hourly energy consumption for an entire year, retrieved from the smart metering device of a commercial center type of consumer (a large hypermarket) for both cases. In the case of the non-linear autoregressive with exogenous inputs model, we have used supplementary data, consisting of temperature and time stamp datasets.
The implementation of smart metering is at an incipient phase in Romania (and at the hypermarket’s level). Therefore, in order to forecast the hypermarket’s behavior, we have used the global hourly electricity consumption data retrieved by the single existing smart meter device. In the near future, the hypermarket intends to install several smart meters that would measure electricity on specific equipment such as cooling, heating, ventilation, lighting, etc. That approach would be able to detect and compare the individual consumption of different types of equipment and propose the shifting of the operational time in order to minimize the electricity payments.
We have paid particular attention to investigating and achieving an optimal mix between the training algorithm that has been used when developing the artificial neural networks (Levenberg-Marquardt, Bayesian Regularization, Scaled Conjugate Gradient), the number of neurons in the hidden layer and the delay parameter. After having analyzed a series of performance metrics and forecasting scenarios, we have noticed that the results reveal an increased accuracy of the developed forecasting solutions.
In the context of our paper, the main beneficiary of the hourly consumption forecasting solutions is the electricity supplier, as the forecasts influence his market strategies nd have a direct impact on the electricity tariff that is linked with the electricity usage. Using the developed solutions, the consumer can use the obtained forecast in order to adjust his load profile and he can also send to the supplier the day ahead consumption schedule (his forecast), thus obtaining an optimal schedule (according to a certain objective function) that would improve the energy efficiency. Our developed hourly consumption forecasting solutions can help improve the energy management, that is beneficial to both the consumers (in order to choose the appropriate billing plan corresponding to their real consumption behavior patterns and to devise an appropriate business strategy) and to the electricity suppliers (in order to devise efficient market strategies and to elaborate accurate forecasting production reports that are mandatory to be sent to the national authorities).

2. Materials and Methods

We have developed our solution for forecasting the hourly energy consumption covering five successive stages. During the first stage of our research methodology, we have devised four steps that are executed in order to acquire and process the data. The second stage of our methodology, comprising four steps, consists in developing the artificial neural networks forecasting solutions, based on the NAR model. In the third stage of our methodology, comprising four steps, we have developed the artificial neural networks forecasting solution based on the NARX model, using as exogenous variables, the meteorological and the time stamps datasets. During the fourth stage of our methodology, comprising 4 steps, we have developed the artificial neural networks forecasting solution based on the NARX model, using as exogenous variables, the time stamps datasets. In the fifth stage of our methodology, comprising five steps, we have obtained the best forecasting solution out of the available ones. A brief synthesis of the stages and steps of our methodology is given in Table 1.
The research methodology is broadly described in the following subsections.

2.1. Acquiring and Processing the Data

The first stage of our methodology consists in acquiring and processing the data, comprising four steps. In the first step of this stage, we have acquired a large dataset, consisting in a number of 8784 records, containing the hourly energy consumption for the year 2016 (measured in MWh), retrieved from the smart metering device of a commercial center type of consumer (a large hypermarket). We have also acquired a dataset containing the historical hourly meteorological data regarding the temperature (measured in Celsius degrees), recorded by the meteorological sensors of a specialized institute for the year 2016, consisting in a number of 8784 records. In Figure 1, we have represented the consumption time series and in Figure 2 the temperature time series for the year 2016.
After having analyzed Figure 1 and Figure 2, we have concluded that both time series exhibit many similar features, regarding their trend during the whole year. It is also plausible that the temperature values can influence the cooling and heating necessities of the commercial center type of consumer. Thus, the temperature series represents a good exogenous variable candidate, an external known series that significantly influences the consumption time series, useful in developing an ANN forecasting solution based on the NARX model.
We have taken into account the fact that retrieved data previously recorded by a smart metering device or by a meteorological station’s sensors are sometimes prone to errors thus resulting into missing or abnormal values. Therefore, in the second step of the first stage, we have preprocessed the data, filtering the records in order to identify and correct the data recording errors, thus managing the noise and reconstructing the dataset corresponding to the hourly measurements of the whole year. In order to correct these errors, we have developed and applied a gap filling method based on the linear interpolation, taking into account the data specific features. This method is useful for approximating the values in the case of missing data or for correcting abnormal ones. In the following, we present the mathematical formalism of the developed gap filling method.
Let be the time series x ( t ) ,   t ,   1 t T , containing both valid data and missing or abnormal ones. If the terms x ( m ) and x ( n ) , where m , n ,   1 < m < n < T are known and the intermediate terms x ( m + 1 ) ,   x ( m + 2 ) , , x ( n 1 ) must be approximated (being missing or abnormal), one first computes the step P between two neighbors of the time series, considering that all the successive steps are equidistant:
P = | x ( m ) x ( n ) n m |
If one denotes by M = m a x ( x ( m ) ,   x ( n ) ) , if M = x ( m ) , then we have chosen:
x ( m + 1 ) = x ( m ) P x ( m + 2 ) = x ( m ) 2 P x ( n 1 ) = x ( m ) ( n m 1 ) P
If M = x ( n ) , then we have chosen:
x ( m + 1 ) = x ( m ) + P x ( m + 2 ) = x ( m ) + 2 P x ( n 1 ) = x ( m ) + ( n m 1 ) P
If x ( m ) = x ( n ) , then:
x ( m ) = x ( m + 1 ) = x ( m + 2 ) = = x ( n 1 ) = x ( n )
If the terms that must be approximated are the first s terms of the time series, x ( 1 ) ,   x ( 2 ) ,   ,   x ( s ) and x ( s + 1 ) is the next term and it is known, presuming that the last term of the series is also known, then the hourly consumption forecasting solutions use only the terms x ( t ) ,   t ,   s + 1 t T and all the datasets are adjusted accordingly, in order to contain the same number of elements.
If the terms that must be approximated are the last r terms of the series, x ( T ) ,   x ( T 1 ) ,   ,   x ( T r ) and x ( T r 1 ) is the previous term and it is known, presuming that the first term of the series is also known, then the hourly consumption forecasting solutions use only the terms x ( t ) ,   t ,   1 t T r 1 and all the datasets are adjusted accordingly, in order to contain the same number of elements.
If the terms that must be approximated are the first s terms of the series ( s ,   s 1 ) and the last r terms of the series ( r ,   r 1 ) , x ( 1 ) ,   x ( 2 ) ,   ,   x ( s ) and x ( T ) ,   x ( T 1 ) ,   ,   x ( T r ) , and x ( s + 1 ) , x ( T r 1 ) are known, than the hourly consumption forecasting solutions use only the terms x ( t ) ,   t ,   s + 1 t T r 1 and all the datasets are adjusted accordingly, in order to contain the same number of elements.
If the abovementioned particular cases occur for both the energy consumption dataset and the meteorological dataset and it is necessary to truncate a subset of the first (or last) values of these time datasets, then one must truncate all the necessary datasets taking into account only the datasets having the indexes in the intersection of the indexes that have remained after both of the truncating processes, in order to adjust all the datasets accordingly, as to contain the same number of elements.
When we developed the gap filling method, we took into account the fact that it can become prone to errors when a certain threshold regarding the missing values is surpassed, especially consecutives ones. When running the experimental tests, we have noticed that after training, testing and validating the networks and even more importantly after having run a forecasting simulation using the developed neural networks for the month of December and compared the results with the actual ones, the errors did not influence the performance of the networks. In our case, there was only a small number of missing values. When devising the gap filling method, we have also tried to deliberately erase more consecutive values and we have noticed that when the number of consecutive values surpasses 10 for more than three consecutive days, and one uses the gap filling method to approximate the missing values, the performance of the networks does become impacted.
In our case study, the data retrieved from the smart metering device had no missing or abnormal values, but in the case of the meteorological dataset there were missing six out of 8784 values corresponding to 6 non-consecutive temperature values from different days (record No. 24 corresponding to the 1st of January at 24:00; record No. 32 corresponding to the 2nd of January at 8:00; record No. 3678 corresponding to the 2nd of June at 6:00; record No. 5552 corresponding to the 19th of August at 8:00; record No. 6415 corresponding to the 24th of September at 7:00 and record No. 4 corresponding to the 1st of December at 4:00), that were not the first either the last records of the time series. For these six values, we have used the abovementioned gap filling method. If more consecutive data values had been missing and our filling method risked becoming invalid, we would have tried to devise and implement another method or to reacquire (if possible) a valid dataset.
In our case, as the missing values of the time series that have to be computed are non-consecutive, in order to obtain each of the six missing values, the gap filling method has to compute only the arithmetic average of the previous and next values of the missing terms. As the missing data has corresponded to specific time moments that exclude the existence of any peak regarding the consumption or the temperature, the gap filling method based on the linear interpolation was a very good choice, as demonstrated by the experimental results. Therefore, the final number of samples is 8784 records, for both the energy consumption and the meteorological datasets.
Afterwards, in the third step of the first stage, we have constructed a time stamp dataset, corresponding to the time moments of the above-mentioned datasets, with the same number of records like the energy and the temperature datasets, comprising the hour of the day (ranging from 1 to 24), the day of the week (ranging from 1 to 7, where 1 corresponds to Monday), the day of the month (ranging from 1 to the number of days of the respective month) and the month (ranging from 1 to 12, where 1 corresponds to January). In what regards the time stamp dataset, due to its mode of construction, it is not prone to errors. Detailed information about the datasets can be found in the Supplementary Materials.
In the fourth step of the first stage, we have divided each of the three datasets into two subsets. The first subset contains 8040 samples representing the January-November period and it will be used later for developing the forecasting artificial neural networks, while the second subset contains the 744 samples representing the whole month of December, that will be used for the final validation of the developed solutions, by comparing the predicted results for the month of December with the corresponding real values, contained in the second data subset.
Analyzing the real consumption recorded by the smart metering device of the hypermarket, taking into account the Romanian purchasing behavior patterns, the local traditions and customs, we have found that there are strong similarities between the activities of the hypermarket and its supply schedule in the months of November and December. Analyzing the store’s sales reports, it is noteworthy that the preparation for winter holidays begins in the month of November, both in terms of supply and sales, the demand being higher than in the previous months. Even if in the period preceding Christmas, the commercial center has a prolonged schedule, which affects the consumption of lighting and the cash registers, the consumption related to the refrigeration and heating installations remains the same, as they are working around the clock.
Due to the fact that in Romania the implementation of smart metering devices is at an early phase, we only had available for our study case the global energy consumption recorded by a single smart meter, but not the detailed consumption of specific equipment. Thus, we have analyzed the types of energy consuming installations within the hypermarket (refrigeration, heating, lighting, cash register) and we have noticed that the refrigeration and heating installations are the biggest consumers. In this context, considering the fact that the data for the month of November were used in training the forecasting artificial neural networks, we have decided to select the month of December for the final validation, the methodology being confirmed by comparing the results provided by the three forecasting methods with the real data, corresponding to the month of December, measured by the smart metering device.
In the following, we present our developed artificial neural networks forecasting solutions, based on the NAR and NARX models. In order to achieve an increased efficiency when developing the ANNs, based on the NAR and NARX models, we have trained, validated and tested all the networks in an open loop, thus being able to provide the real past values to the ANN that is being developed, so that the network generates correct current results.
After having completed the training, validation and testing processes, we have modified the network, by putting it into the closed loop form in order to be able to perform a multi-step ahead prediction. If the network had remained in open loop mode, it would have been able to forecast one step ahead only, using previous values of the time series (in both the NAR and NARX models) and of the exogenous variables (in the NARX model). When the network is put into the closed loop form, it can forecast multiple steps ahead as it uses the prior available known values for the first prediction step and the predicted values of the time series starting with the second step in order to be able to obtain the forecast.

2.2. Developing the ANN Forecasting Solution Based on the NAR Model

The second stage of our methodology, comprising four steps, consists in developing the artificial neural networks forecasting solutions, based on the NAR (nonlinear autoregressive) model. In this purpose, we have used the energy consumption dataset. Of particular interest was to research and obtain an optimal mix between the training algorithm (Levenberg-Marquardt, Bayesian Regularization, Scaled Conjugate Gradient), the hidden number of neurons and the delay parameter.
The datasets involved in our research, both the inputs (the hourly energy consumption, the historical hourly meteorological data, the timestamps) and the output (the hourly forecasted energy consumption) ones, are time series, sequences of data points listed in a certain time order, in our case being registered (or constructed) at equally spaced points in time (1 h). Regarding from the time-variable point of view, these sequences are discrete.
In many cases, the real-life situations and phenomena are described through time series that cannot be modeled by linear frameworks, as their behavior is dynamic and depends on their previous states [31]. The model developed in our research, concerning the development of hourly consumption forecasting solutions for achieving energy efficiency in the case of large electricity non-household consumers, is in the abovementioned situation as the data involved in our study is represented by discrete, non-linear time series.
One of the most useful approaches in time series predicting is the non-linear autoregressive (NAR) neural network that is modeled by the following equation:
y ( t ) = F ( y ( t 1 ) , , y ( t d ) ) + ϵ ( t )
The neural network forecasts the actual value of the time series y ( t ) , based on the previous d values of the series, where d ,   d 1 represents the delay parameter and the terms y ( t 1 ) ,   , y ( t d ) represent the feedback delays. The forecasting’s purpose is to approximate as accurate as possible the unknown nonlinear function F , using neural network’s specific methods.
The optimization could be attained by varying the network’s weights and biases, by testing different settings regarding the number of neurons per layer and the number of hidden layers. By testing different settings, one can obtain the neural network that provides the best forecasting accuracy, but using this approach one must take into account the fact that lowering too much the number of neurons could reduce the computational power of the neural network, restricting its generalization capability, while increasing too much the number of neurons raises the system’s complexity. The last term of the Equation (5), ϵ ( t ) , represents the approximation error of the actual value of the time series y ( t ) .
In the following, the steps that we have developed for the second stage of our research methodology are presented. In the first step of the second stage, we have used the Levenberg-Marquardt (LM) training algorithm in order to develop several artificial neural networks, based on the NAR model. In the following we present a brief description of the Levenberg-Marquardt algorithm (LM), one of the most popular algorithms used in training artificial neural networks (ANNs), having extensive applications in the fields of computing and mathematics [37].
This algorithm is a curve fitting one, aiming to obtain a curve that passes through some given points that could be subjected to certain constraints. In this purpose, the method computes the errors related to a parametrized form of a function, constructed in order to approximate the given dataset, computes the sum of the squares of these errors and afterwards, targets to minimize this sum. The LM method combines two optimization methods, namely the gradient descent and the Gauss-Newton one [38].
In the following, the main mathematical formalism of the LM algorithm are briefly recalled, as they have been introduced in [37,38,39]. Denoting by x = ( x 1 ,   x 2 , ,   x n ) an n -dimensional real array, by r ( x ) = ( r 1 ( x ) , r 2 ( x ) , , r m ( x ) ) an array whose components are the residual functions r k : n , 1 k m , where m n , the purpose of the method is to minimize the function f defined as:
f ( x ) = 1 2 r ( x ) 2 = 1 2 k = 1 m r k 2
The Jacobian matrix of r is denoted by J ( x ) and is defined by:
J ( x ) = r k x i ,   1 k m ,   1 i n
If one considers the linear case, then all the functions r k are linear and thus they are of the form:
r k = r k x 1 x 1 + r k x 2 x 2 + + r k x n x n + r k ( 0 ) ,   1 k m
Equation (1) thus becomes:
f ( x ) = 1 2 J x + r ( 0 ) 2
Therefore, the gradient and the Hessian of the function f could be written as:
f ( x ) = J T ( J x + r ) 2 f ( x ) = J T J
In order to obtain a local minimum x m i n of the function f ( x ) , one has to impose the necessary condition f ( x ) = 0 and one obtains:
x m i n = ( J T J ) 1 J T r
If one considers the non-linear case, the gradient and the Hessian of the function f could be written as:
f ( x ) = k = 1 m r k ( x ) r k ( x ) = J ( x ) T r ( x )
2 f ( x ) = J ( x ) T J ( x ) + k = 1 m r k ( x ) 2 r k ( x )
In the linear approximation, if r k could be considered linear functions or the values of the residuals are small, the Hessian becomes identical to the one given by the second relation of the Equation (10). This approximation does not suit to the cases when dealing with large residual problems, as the algorithms’ performance lowers.
As mentioned before, the LM method combines two optimization methods, one of them being the gradient descent method, a technique for minimizing a function by using an iterative process. In each step, one adds the gradient f of the function multiplied by a negative parameter:
x i + 1 = x i μ f
The method’s convergence can be improved by using various approaches [39]. Among these methods, the Newton’s one is based on solving the equation f ( x ) = 0 by expanding the gradient in series around a certain state x 0 (considered to be the current state), using the Taylor’s formula:
f ( x ) = f ( x 0 ) + ( x x 0 ) T 2 f ( x 0 ) + t e r m s   o f   h i g h e r   o r d e r
In the case when f is quadratic around x 0 , the terms of higher order could be neglected. If one replaces x 0 by x i and x by x i + 1 in the necessary condition for a local minimum f ( x ) = 0 , Equation (14) becomes:
x i + 1 = x i ( 2 f ( x i ) ) 1 f ( x i )
Using the Newton’s method, considering the quadratic approximation of the function f , the Hessian becomes identical to the one given by Equation (10). This method offers certain advantages related to its rapid convergence, but it has some limitations with concern to the linearity around the initial point.
The Levenberg’s method combines the gradient-descent method with the Gauss-Newton iteration and is more powerful than both of these methods. The update rule is chosen as a combination between the two above mentioned algorithms:
x i + 1 = x i ( H + μ I ) 1 f ( x i )
where the Hessian matrix computed in x i , 2 f ( x i ) has been denoted by H .
Equation (17) helps to set the update rule, by adjusting the parameter μ according to the error. After each update, one evaluates the error. If it is lower, it means that the quadratic approximation fits and therefore, in the following step one reduces the parameter μ 10 times, thus reducing the gradient descent’s influence. On the contrary, if the computed error increases, one increases the parameter μ 10 times, thus increasing the gradient descent’s influence [39].
Using the LM algorithm, one computes the Jacobian matrix based on a back-propagation technique, while the computation of the Hessian matrix is avoided. The update rule based on the Newton’s method becomes:
x i + 1 = x i ( J T J + μ I ) 1 J T ( x i ) r ( x i )
where J T J represents the hessian matrix H computed in x i and J T ( x i ) r ( x i ) represents the gradient f ( x i ) .
Equation (18) offers the possibility to adjust the method by the values of the parameter μ . If one considers μ = 0 , one obtains the Newton method, while the gradient descent method with a small step corresponds to large values of the same parameter. The objective function is reduced at each of the algorithm’s steps by adjusting the values of the parameter μ .
Considering the fact that the LM algorithm combines the performance and features of its two component parts, offering multiple undeniable advantages to the programmers, we have decided to implement it in our research, in view of devising hourly consumption forecasting solutions for achieving energy efficiency in the case of large electricity non-household consumers.
We have trained, using the LM algorithm, a number of 15 forecasting artificial neural networks based on different architectures in order to obtain an optimum mix between the number of neurons from the hidden layer and the delay parameter, as follows: one neuron for the input data corresponding to the electricity consumption of the hypermarket, n neurons in the hidden layer, where n { 6 ,   12 ,   24 } , the delay parameter d { 2 , 6 , 12 , 24 , 48 } , one neuron for the output layer and one neuron for the output data (the forecasted electricity consumption, measured in MWh).
Regarding the dataset, we have used the abovementioned first subset of the energy consumption dataset, subset that contains 8040 samples, representing the January-November period of the year 2016. In order to train, validate and test the forecasting neural networks, we have divided the dataset in the following manner: 70% of the data has been used in the training process, 15% in the validation process and the remaining 15% in the testing process. We have randomly chosen the samples corresponding to these percentages.
The data was divided using the MATLAB R2017a “net.divideFcn = ‘dividerand’” instruction so that every time the network is trained, the divide function executes automatically, dividing the dataset randomly according to the division parameters “net.divideParam.trainRatio”, “net.divideParam.valRatio”, and “net.divideParam.testRatio”, in order to obtain the training, validation and testing subsets.
We have also tried to use the MATLAB R2017a “net.divideFcn = ‘divideblock’” instruction, case in which the input dataset was sequentially divided into three subsets allocated for the training, validation and testing purposes (in this specific order, validation being always in the middle), but we have noticed that the obtained results were slightly lower than when running 10 iterations with the random division of the dataset.
Taking into account that our developed artificial neural networks are dynamic, we have used in the development environment MATLAB R2017a the “net.divideMode = ‘time’” instruction, that specifies to divide the target data by timestep which, according to the MATLAB official documentation [40] is the most suitable choice for the time series problems. We have set the normalization performance parameter to the standard value by using the code line “net.performParam.normalization = ‘standard’”; Thus, we have instructed the development environment to compute the errors as if the output elements had values ranging from −1 to 1. In this manner, we made sure that the data ranges do not influence the final results.
As the networks’ weights and biases are initialized each time with different values and the data are allocated randomly within the percentages, we have run 10 iterations for each of the above-mentioned cases. For each iteration and each of the developed networks, we have generated plots representing the performance analysis highlighted by the mean squared error (measured in MWh 2 ), the error histogram, the regressions, the error autocorrelation. Comparing these plots, we have saved the network that has provided the best forecasting accuracy out of the 10 iterations, thus obtaining 15 forecasting artificial neural networks, developed based on the NAR (nonlinear autoregressive) model, trained using the LM algorithm.
In the second step of the second stage, in order to develop several artificial neural networks, based on the NAR model, we have used the Bayesian Regularization (BR) training algorithm.
In the following we present a brief description of the Bayesian Regularization (BR) algorithm that uses as objective function a linear combination of the squared errors and of the squared weights, adjusting this function in order to obtain, when the network’s training process has ended, a network that offers improved generalization features [41,42]. This algorithm is based both on the LM one and on the backward propagation of errors one that is useful in computing the Jacobian of the function that has to be minimized.
The BR adjusts each variable according to the LM algorithm using also an adaptive value that is increased in order to obtain the lowest value of the objective function and is decreased after the network has been modified according to the identified changes.
The Bayesian Regularization (BR) algorithm uses two parameters denoted α and β , called Bayesian hyperparameters, whose role is to indicate the direction in which the learning process has to seek: in the one of the minimal weights or in the one of the minimal errors. The objective function is a linear combination of the sum of all the squared errors S e and the sum of all the squared weights S w :
C ( i ) = α · S w + β · S e
When compared to other training algorithms, the BR algorithm has the main advantage of not requiring a validation step and this fact brings benefits, especially in the cases when reserving a data sample for the validation process cannot be achieved or results in significant costs. Another important feature offered by the Bayesian Regularization algorithm is represented by the fact that in this case the testing process of various settings related to the number of hidden neurons could be skipped, by means of a third parameter γ designed to control the network’s weights and as a consequence, its complexity.
The implementations of the BR algorithm often update the hyperparameters after each step of the training process. Because of this, there are many situations when these updates might lead to weak iterations. In order to overcome this deficiency, the researchers have devised different methods for updating the parameters, relying on the computation of the Hessian matrix’s inverse.
The BR algorithm computes first the Jacobian J and afterwards, the error gradient:
g = f ( x ) = J T E
In the subsequent step, it is computed an approximation of the Hessian matrix:
H = J T J
Using Equation (19), the objective function is computed and afterwards, in order to obtain the values of δ , the following equation is solved:
( H + λ I ) δ = g
These values are useful in updating the network’s weights and the corresponding objective function. In the case this function does not decrease, the last computed weights are rejected and the value of λ is increased by a multiplying factor v . In the case when the function does decrease, λ is decreased by a factor v . Afterwards, the updated values of the α and β hyperparameters are computed according to one of the methods depicted in [39].
The test of time has proven the effectiveness of the BR training algorithm in developing ANNs in contrast with other available algorithms and therefore we have taken the decision to see how well this algorithm performs when developing hourly consumption forecasting solutions in view of achieving energy efficiency in the case of large electricity non-household consumers.
Using the BR algorithm, we have trained a number of 15 forecasting artificial neural networks using the same methodology as in the LM case. For the training and testing processes of the forecasting neural networks, we have divided the dataset in the same manner as in the LM case, but the rest of the data was not allocated because in the case of the BR algorithm the validation process does not take place. Therefore, we have made sure that we will use the same amount of data in the training and testing phases for all the training algorithms, hence achieving a relevant comparison. The samples were divided in percentages using the same approach as in the case of the LM training algorithm, described above. The performance analysis and the selection of the best forecasting networks have been conducted using the same methodology as in the LM case.
In the third step of the second stage, we have used the Scaled Conjugate Gradient (SCG) training algorithm for developing the ANNs, based on the NAR model.
In the following we present a brief description of the Scaled Conjugate Gradient (SCG) algorithm, introduced in 1993, a supervised learning algorithm useful in developing ANNs. It is based on the conjugate gradient methods [43]. The algorithm is independent of user provided parameters, being completely automated. It has also a considerable advantage due to the fact that it avoids the procedures related to the determination of the step size consisting in the weight update’s length.
At this point, other algorithms perform a line search during each iteration in order to compute the local minimum, a task that implies certain processing costs, being time consuming due to the fact that in order to perform the search, the network’s response has to be calculated more times. In order to circumvent the line search, the Scaled Conjugate Gradient algorithm combines the Levenberg-Marquardt’s model-trust region approach with the conjugate gradient one [43]. Just like other conjugate gradient based methods do, the Scaled Conjugate Gradient algorithm relies on conjugate directions. Nevertheless, the way how SCG has been implemented makes it more efficiently in what regards the processing time as it eliminates the need for a line search.
The backward propagation of errors, a frequently used method in the training process of ANNs, is implemented along with the gradient descent or other optimization methods. In order to obtain the local minimum of the objective function, the method computes this function and its gradient with respect to the network’s weights. In order to decrease the objective function, the network’s weights are adjusted in the steepest descent directions but this convergence is not the fastest. The algorithm minimizes the objective function along the conjugate gradient directions belonging to the previous step, thus obtaining an improved convergence when compared to the general back-propagation method. In this manner, a minimizing operation from a specific step does not have to be cancelled in the next one, as it is the case for other algorithms.
The back-propagation methods are based on the first derivatives of the objective function and thus they are first order techniques. The conjugate gradient methods make use of the second derivatives of the functions that have to be minimized and therefore they are second order techniques that imply high processing costs but offer a series of advantages when compared to the first order techniques.
The SCG can be used in the case when the components of the objective function are derivable. In the first iteration, the Scaled Conjugate Gradient searches in the direction that makes the objective function decrease most rapidly and afterwards it performs a line search that aims to obtain the distance that is used as step in advancing along the search direction [39]:
x i + 1 = x i + α i g i
Subsequently, a new search is performed in a direction that is conjugated to the first one. At every new step, the searching direction is a combination between the searching direction of the previous step and the new direction that makes the objective function decrease most rapidly, using the parameters β i whose computation is specific to each version of the conjugate gradient method:
p i = g i + β i g i 1
Taking into account the advantages offered by the SCG algorithm, we have chosen to study how well suited it is in developing hourly consumption forecasting solutions for achieving energy efficiency in the case of large electricity non-household consumers. In order to attain an optimum mix between the number of neurons from the hidden layer and the delay parameter, we have used the same methodology as in the case of the LM algorithm.
In the fourth step of the second stage, we have compared the forecasting accuracy of the 45 artificial neural networks, trained using the LM, BR and SCG algorithms, developed based on the NAR (nonlinear autoregressive) model and we have chosen the one that has provided the best performance.
Afterwards, as we wanted to see if we can further improve the forecasting accuracy of the artificial neural networks developed based on the NAR model, we have developed an artificial neural network forecasting solution, based on the NARX (nonlinear autoregressive with exogenous inputs) model, using as exogenous variables the meteorological and the time stamps datasets, solution that is presented in the following.

2.3. Developing the ANN Forecasting Solution Based on the NARX Model, Using as Exogenous Variables the Meteorological and the Time Stamps Datasets

During the third stage of our methodology, comprising four steps, we have developed the artificial neural networks forecasting solution based on the NARX model. In this case, we have used as exogenous variables the meteorological and the time stamps datasets. As in the case of the forecasting solution based on the NAR model, of particular interest was to research and obtain an optimal mix between the training algorithm (Levenberg-Marquardt, Bayesian Regularization, Scaled Conjugate Gradient), the hidden number of neurons and the delay parameter.
In many situations, the time series forecasting models relate the actual value of the time series not only to previous values of the series (as in the NAR model), but also to additional external time series (exogenous data). This happens when the series that has to be forecasted is correlated with other ones that are influencing it.
The nonlinear autoregressive with exogenous inputs (NARX) model [44] is described by the following equation:
y ( t ) = F ( y ( t 1 ) , , y ( t d ) , x ( t ) , x ( t 1 ) , , x ( t d ) ) + ϵ ( t )
Similar to the case of the NAR model, the neural network forecasts the actual value of the time series of interest y ( t ) , based on the previous d values of this series, but in addition to this it is also based on the actual and previous d values of the exogenous series, where d ,   d 1 represents the delay parameter.
The forecasting’s purpose is to approximate as accurate as possible the unknown nonlinear function F and this optimization could be attained by testing different settings regarding the number of neurons per layer, the number of hidden layers, by varying the network’s weights and biases. Thus, one can obtain the neural network that provides the best forecasting accuracy, taking care (as in the case of the NAR model) not to lower or increase too much the number of neurons. The last term of the Equation (25), ϵ ( t ) , represents the approximation error of the actual value of the time series y ( t ) .
During the third stage of our methodology, we have developed four steps, similar to the ones developed in the NAR case. This time, the artificial neural networks were developed based on the LM, BR and SCG training algorithms and on the NARX model, using as exogenous variables the meteorological and the time stamps datasets. The only difference between two implementation consists in the number of neurons for the input data, that is now six (five neurons for the exogenous data, one neuron for the dataset represented by the electricity consumption of the hypermarket).
The temperature dataset that we have used above as an exogenous variable limits significantly the forecasting timeframe as when using the forecasting ANN one should know beforehand the temperature for the time steps for which he needs to forecast the consumption. Therefore, as we wanted to see if we could obtain a forecasting solution based on the NARX model, for which the exogenous variables are easier to obtain and make it possible to achieve a long-term forecasting, we have developed an ANN forecasting solution, based on the NARX model, using as exogenous variable only the time stamps dataset, solution that is presented in the following.

2.4. Developing the ANN Forecasting Solution Based on the NARX Model, Using as Exogenous Variables the Time Stamps Datasets

During the fourth stage of our methodology, comprising four steps, we have developed the artificial neural networks forecasting solution based on the NARX model. The steps that we have developed in the fourth stage of our research methodology are similar with the ones presented above, in the case of the nonlinear autoregressive with exogenous inputs model, using as exogenous variables the meteorological and the time stamps datasets, the only difference being the number of neurons for the input data, as in this situation we have not used the temperature exogenous data. Therefore, we have used five neurons for the input data (four neurons for the exogenous data, one neuron for the dataset represented by the electricity consumption of the hypermarket).

2.5. Obtaining the Best Forecasting Solution

During the fifth stage of our methodology, comprising five steps, we have obtained the best forecasting solution out of the available ones: the artificial neural networks forecasting solutions based on the NAR model, the NARX model using all exogenous data and the NARX model using the time stamps exogenous dataset. In order to obtain a final validation based on a real-world forecasting scenario, in this stage we have forecasted the electricity consumption for the month of December, using the three developed solutions and we have compared the obtained results with the corresponding real values, provided by the commercial center type of consumer.
In the first step of the fifth stage, as we wanted to use the ANNs in order to forecast more future time series values, we have first put the three selected networks into the closed loop form, due to the aspects that have been analyzed in Section 2.1.
Afterwards, in the next three steps of the fifth stage, we have forecasted the hourly energy consumption for the month of December 2016, consisting in 744 values, using the closed loop form of the ANN forecasting solutions based on the following models: NAR, NARX using as exogenous variables the meteorological and the time stamps datasets and NARX using as exogenous variables the time stamps datasets.
In the fifth step of the fifth stage, we have compared the values obtained after having executed the previous three steps with the real ones, contained in the second data subset that has been previously selected and set apart, consisting in 744 samples that represent the hourly energy consumption for the whole month of December. Thus, we have obtained a final validation of the ANN forecasting solutions based on the NAR and NARX models along with an eloquent metric, useful in comparing the forecasting accuracy of the three developed forecasting solutions. In this purpose, we have first plotted on the same chart the real consumption and the three forecasted ones. Thus, we are able to compare the values provided by the three forecasting solutions and also to compare them with the real consumption values.
Afterwards, in order to obtain a more eloquent comparison, we have plotted on a second chart the absolute values of the differences between the real consumption and each of the three forecasted ones. As we are interested in obtaining forecasting results as close as possible to the real values, based on this second chart we are able to identify the network that provides the best forecast, for which the absolute values of the differences are closest to the zero value.
The block diagram of our devised forecasting methodology, described in the above sections, is synthesized in Figure 3. In the following, we present the results obtained after having run the experimental tests.

3. Results

In developing, testing and using the ANN forecasting solutions based on the NAR and NARX models we have used as a hardware configuration the central processing unit Intel i7-5960x operating at 3.0 GHz with 32 GB (4 × 8 GB) of 2144 MHz, DDR4 quad channel and the GeForce GTX 1080 TI NVIDIA graphics card with 11 GB GDDR5X 352-bit from the Pascal architecture. The software configuration that we have used consists in the Windows 10 Educational Version 1703 operating system and the MATLAB R2017a development environment.

3.1. Results Regarding the Developed ANN Forecasting Solution Based on the NAR Model

According to the abovedescribed methodology, when we have developed the artificial neural networks forecasting solution based on the NAR model, in order to select the optimum mix between the number n of neurons from the hidden layer and the delay parameter d and to select the best training algorithm, we have run different settings for the pair ( n , d ) , for each of the LM, BR and SCG training algorithms. After having run 10 iterations for each case, we have saved the network that has provided the best hourly forecasting accuracy for each case and we have synthetized the obtained results, highlighting the values of the mean squared error MSE and the correlation coefficient R between the network targets and the network outputs, for the whole dataset (Table 2).
Having analyzed the results, we have observed that in the case of the LM training algorithm, the network developed according to the architecture that comprises n = 6 neurons in the hidden layer and a delay parameter of d = 48 provides the best hourly forecasting accuracy, having the lowest value of the mean squared error (0.00091808) and the value of the correlation coefficient computed for the whole dataset very close to 1 (0.99272). Contrariwise, the network developed using n = 24 neurons in the hidden layer and the delay parameter of d = 2 provides the worst hourly forecasting accuracy, having the highest value of the mean squared error (0.0037219) and the value of the correlation coefficient computed for the whole dataset furthest from 1 (0.97486). Despite being the network that provides the lowest hourly forecasting accuracy out of the 15 networks trained based on the LM algorithm, it still provides a good hourly forecasting accuracy.
After analyzing the obtained results, we have noticed that in the case of the BR training algorithm, the network developed using n = 24 neurons in the hidden layer and a delay parameter of d = 48 offers the best forecasting in terms of accuracy, having the lowest value of the mean squared error (0.00048272) and the value of the correlation coefficient computed for the whole dataset closest to 1 (0.99526). On the opposite side, the network developed according to the architecture that comprises n = 6 neurons in the hidden layer and a delay parameter of d = 2 provides the worst hourly forecasting accuracy, having the highest value of the mean squared error (0.0029627) and the value of the correlation coefficient computed for the whole dataset furthest from 1 (0.97709).
We have analyzed the results obtained in the case of the SCG training algorithm and we have observed that the best hourly forecasting accuracy is provided by the network developed using n = 12 neurons in the hidden layer and a delay parameter of d = 48 that registered the lowest value of the mean squared error (0.00083771) and the value of the correlation coefficient computed for the whole dataset closest to 1 (0.99241). In what concerns the worst prediction accuracy, it has been provided by the network developed according to the architecture that comprises n = 2 neurons in the hidden layer and a delay parameter of d = 12, having the highest value of the mean squared error (0.0052954) and the value of the correlation coefficient computed for the whole dataset among the furthest from 1 (0.97055). Although this network has the lowest hourly forecasting accuracy out of the 15 networks trained based on the SCG algorithm, it still provides a good hourly forecasting accuracy.
In all of the analyzed situations, the hourly forecasting accuracy improves along with the increase of the delay parameter value, the best hourly forecasting accuracy being obtained for d = 48 for all the training algorithms. One can observe that this value of d is a multiple of 24, which means that in order to obtain an improved hourly forecasting accuracy one needs 2 consecutive days values.
Comparing the forecasting accuracy obtained by the three selected networks (corresponding to the three training algorithms) that have provided the best results, based on the NAR model, we have observed that the best hourly forecasting accuracy is provided by the ANN developed using the BR algorithm, with n = 24 neurons in the hidden layer and a delay parameter of d = 48, entitled ANN_NAR_BR (Figure 4).
In order to analyze the training performance when forecasting the electricity consumption for the month of December 2016, using the ANN developed based on the BR algorithm and on the NAR model, we have first plotted the training and testing curves. We have obtained the best training performance at the 493th epoch, when the mean squared error has the value of 0.00048272. Analyzing this plot, we have noticed that the devised forecasting solution has proven to be stable (as the curves do not increase after they converge). When analyzing the results, we have also taken into consideration the testing curve evaluation and its comparison to the training one. Thus, we have noticed that the testing curve does not increase significantly before the training curve and therefore we can conclude that in this case the overfitting process does not occur. This aspect reflects the fact that the data sets have been divided appropriately and the network training has been conducted efficiently. This chart confirms the high level of accuracy and performance of the forecasting ANN, developed based on the BR algorithm and on the NAR model (Figure 5).
Afterwards, we have represented the error histogram, when forecasting the electricity consumption for the month of December using the above-mentioned forecasting ANN (Figure 6).
In this plot, the blue bars represent the training data, while the red bars represent the testing data. Analyzing the plot, we have noticed that in this case, most of the errors fall between −0.04583 and 0.05526, a very narrow interval. There are only very few training points for which the errors fall outside this range. Thus, the error histogram highlights very good results in the case of forecasting the electricity consumption for the month of December, using the ANN developed based on the BR algorithm and on the NAR model.
Another important plot that we have computed and represented in order to analyze the forecasting accuracy is represented by the regressions between the network targets and outputs (Figure 7).
We have obtained three regression plots corresponding to the training, testing and to the whole data set, in which the solid line represents the best-fitting linear regression line between the targets and outputs in each case, while the dashed line represents the ideal case, when the outputs and targets are identical. Analyzing these plots, we have noticed that we have obtained a very good fit as the values of the correlation coefficient R are very close to 1, all of them being greater than 0.98902.
In order to validate the network’s performance, we have also represented the error autocorrelation function that depicts the way in which the forecasting errors are interlinked in time. As we have used the non-normalized autocorrelations, the autocorrelation function has as units of measurement the input data’s units squared ( MWh 2 ). In the ideal case, the plot should contain only a single nonzero value of this function that corresponds to the zero lag and represents the MSE. In this situation, all the errors would have been completely uncorrelated between them. In our case, besides the zero-lag correlation, most of them fall within the 95% confidence limits around zero and thus, it is confirmed the validity of the forecasting method (Figure 8).
In the following, we present an analysis of the results that we have obtained using the artificial neural network forecasting solution, based on the NARX model, using the meteorological and the time stamps datasets as exogenous variables.

3.2. Results Regarding the Developed ANN Forecasting Solution Based on the NARX Model, Using as Exogenous Variables the Meteorological and the Time Stamps Datasets

Pursuing to the above presented methodology, we have developed the artificial neural networks forecasting solution based on the NARX model, using as exogenous variables the meteorological and the time stamps datasets and we have synthetized the obtained results, highlighting the values of the mean squared error (MSE) and the correlation coefficient (R) between the network targets and the network outputs, for the whole dataset (Table 3).
Analyzing the results, we have noticed that in the case of the LM training algorithm, the network developed according to the architecture that comprises n = 12 neurons in the hidden layer and a delay parameter of d = 24 provides the best hourly forecasting accuracy, as it has the lowest value of the mean squared error (0.00070308) and the value of the correlation coefficient computed for the whole dataset very close to 1 (0.99402). In contrast to this, the network developed using n = 6 neurons in the hidden layer and the delay parameter of d = 2 provides the worst hourly forecasting accuracy, as it provides the highest value of the mean squared error (0.0012052) and the value of the correlation coefficient computed for the whole dataset furthest from 1 (0.99036). Even if this network provides the lowest hourly forecasting accuracy out of the 15 networks trained based on the LM algorithm, it still provides a good hourly forecasting accuracy.
We have observed that in the case of the BR training algorithm, the network developed using n = 24 neurons in the hidden layer and a delay parameter of d = 48 offers the best forecasting in terms of accuracy, because it has the lowest value of the mean squared error (0.0002294) and the value of the correlation coefficient computed for the whole dataset closest to 1 (0.99701). On the contrary, the network developed according to the architecture that comprises a delay parameter of d = 2 and n = 6 neurons in the hidden layer provides the worst hourly forecasting accuracy, as it has the highest value of the mean squared error (0.0013377) and the value of the correlation coefficient computed for the whole dataset furthest from 1 (0.98865).
After analyzing the results obtained in the case of the SCG training algorithm, we have perceived that the network developed using n = 12 neurons in the hidden layer and a delay parameter of d = 24 provides the best hourly forecasting accuracy, as it has registered the lowest value of the mean squared error (0.00077795) and the value of the correlation coefficient computed for the whole dataset closest to 1 (0.99254). The network developed according to the architecture that comprises n = 12 neurons in the hidden layer and a delay parameter of d = 2 has provided the worst prediction accuracy, because it has registered the highest value of the mean squared error (0.0035236) and the value of the correlation coefficient computed for the whole dataset furthest from 1 (0.97808). Despite having the lowest hourly forecasting accuracy out of the 15 networks trained based on the SCG algorithm, this network still provides a good hourly forecasting accuracy.
The obtained results show that the best hourly forecasting accuracy is obtained when the delay parameter is 24 for the LM and SCG algorithms, while for the BR algorithm it has the value 48. In all the cases, the value of d is a multiple of 24, which means that in order to obtain an improved hourly forecasting accuracy one needs the precedent values for a full day or for 2 consecutive days.
As we were trying to further increase the delay, we have faced two drawbacks: the first one consists in a very long period of time necessary for training the networks, especially in the case of the BR algorithm (in the case of n = 24 neurons and d = 48 , there were necessary almost 2 h in order to train one iteration, on the hardware and software configuration mentioned above) and the second one consists in the fact that the performance gains that appear in the case of some iterations, when increasing the delay over 48 h, were negligible and could not be accounted on the delay value but rather on the random division of the dataset.
Once we have identified for each training algorithm the network that has provided the best results, we have compared the parameters of these 3 networks and we have observed that the best hourly forecasting accuracy is provided by the ANN developed using the BR algorithm, based on the NARX model, using as exogenous variables the meteorological and the time stamps datasets, with n = 24 neurons in the hidden layer and a delay parameter of d = 48 entitled ANN_NARX_BR_ALL (Figure 9).
In order to analyze the training performance when forecasting the electricity consumption for the month of December 2016, using the ANN developed based on BR algorithm and on the NARX model, using as exogenous variables the meteorological and the time stamps datasets, we have first plotted the training and testing curves. In this case, we have registered the best training performance at the 1000th epoch, when the mean squared error has the value of 0.0002294. As in the case of the ANN_NAR_BR neural network, analyzing this plot we can conclude that the devised forecasting solution is stable, the overfitting process does not occur and the ANN_NARX_BR_ALL neural network offers a high level of accuracy and performance (Figure 10).
Afterwards, we have represented the error histogram, when forecasting the electricity consumption for the month of December, using the above-mentioned forecasting ANN (Figure 11).
Analyzing the plot, we have noticed that most of the errors fall between −0.03776 and 0.02705, a very narrow interval. It’s only for a very few training points that the errors fall outside this range. Thus, the error histogram highlights very good results in this case.
Afterwards, in order to analyze the forecasting accuracy, we have computed and represented another important plot, the regressions between the network targets and outputs. The values of the correlation coefficient R are very close to 1, all of them being greater than 0.99701 . Therefore, we can conclude that we have obtained a very good fit (Figure 12).
In order to validate the network’s performance, we have also analyzed the way in which the forecasting errors are interlinked in time, through the error autocorrelation function. In our case, besides the zero-lag correlation, the rest of them fall within the 95% confidence limits around zero and thus, the validity of the forecasting method is confirmed (Figure 13).
In the following, we present an analysis of the results that we have obtained using the artificial neural network forecasting solution, based on the NARX model, using only the time stamps datasets as exogenous variables.

3.3. Results Regarding the Developed ANN Forecasting Solution Based on the NARX Model, Using as Exogenous Variables the Time Stamps Datasets

Carrying out the above presented methodology, after developing the artificial neural networks forecasting solution based on the NARX model, using as exogenous variables the time stamps datasets, we have synthetized the obtained results, highlighting the values of the mean squared error MSE and the correlation coefficient R between the network targets and the network outputs, for the whole dataset (Table 4).
Analyzing the results, we have noticed that in the case of the LM training algorithm, the best hourly forecasting accuracy is registered by the network developed according to the architecture that comprises n = 12 neurons in the hidden layer and a delay parameter of d = 24 , as it has the lowest value of the mean squared error (0.00076798) and the value of the correlation coefficient computed for the whole dataset closest to 1 (0.99388). Contrariwise, the network developed using n = 6 neurons in the hidden layer and the delay parameter of d = 6 provides the worst hourly forecasting accuracy, having the highest value of the mean squared error (0.0019983) and the value of the correlation coefficient computed for the whole dataset among the furthest from 1 (0.99162). Even though this network provides the lowest hourly forecasting accuracy out of the 15 ones trained based on the LM algorithm, it still provides a good hourly forecasting accuracy.
In the case of the BR training algorithm, we have observed that the network developed using n = 24 neurons in the hidden layer and a delay parameter of d = 48 offers the best forecasting accuracy, as it has the lowest value of the mean squared error (0.00032274) and the value of the correlation coefficient computed for the whole dataset closest to 1 (0.99623). On the opposite side, the network developed according to the architecture that comprises a delay parameter of d = 2 and n = 6 neurons in the hidden layer provides the worst hourly forecasting accuracy, as it has the highest value of the mean squared error (0.001611) and the value of the correlation coefficient computed for the whole dataset furthest from 1 (0.98814).
After analyzing the results obtained in the case of the SCG training algorithm, we have perceived that the network developed using n = 12 neurons in the hidden layer and a delay parameter of d = 2 provides the best hourly forecasting accuracy, as it has registered the lowest value of the mean squared error (0.00085282) and the value of the correlation coefficient computed for the whole dataset closest to 1 (0.99254). The network developed according to the architecture that comprises n = 12 neurons in the hidden layer and a delay parameter of d = 2 has provided the worst prediction accuracy, having registered the highest value of the mean squared error (0.0039318) and the value of the correlation coefficient computed for the whole dataset among the furthest from 1 (0.97681). Despite having the lowest hourly forecasting accuracy out of the 15 networks trained based on the SCG algorithm, this network still provides a good hourly forecasting accuracy.
The best hourly forecasting accuracy is obtained when the delay parameter is 24 for the LM and SCG algorithms, while for the BR algorithm it has the value 48. In these cases, the value of d is a multiple of 24, which means that in order to obtain an improved hourly forecasting accuracy, one needs the previous values for a full day or for 2 consecutive days.
When we were trying to further increase the delay, we have faced the same drawbacks as in the case of the developed ANN forecasting solution based on the NARX model using as exogenous variables the meteorological and the time stamps datasets.
After we have identified the network that has provided the best results for each of the training algorithms, we have compared the parameters of these three networks and we have observed that the best hourly forecasting accuracy is provided by the ANN developed using the BR algorithm, based on the NARX model, using as exogenous variables the time stamps datasets, with n = 24 neurons in the hidden layer and a delay parameter of d = 48 , entitled ANN_NARX_BR_TS (Figure 14).
In order to analyze the training performance when forecasting the electricity consumption for the month of December 2016, using the ANN developed based on BR algorithm and on the NARX model, using as exogenous variables the time stamps datasets, we have first plotted the training and testing curves. In this case, we have registered the best training performance at the 898th epoch, when the mean squared error has the value of 0.00032274. As in the previous case of the ANN_NAR_BR and ANN_NARX_BR_ALL networks, analyzing the performance plot, one can notice that the forecasting solution is stable, the overfitting process does not occur and thus the chart confirms the high level of accuracy and performance of the ANN_NARX_BR_TS neural network (Figure 15).
Subsequently, we have represented the error histogram, when forecasting the electricity consumption for the month of December, using the above-mentioned forecasting ANN (Figure 16). Analyzing the plot, we have noticed that most of the errors fall between −0.002324 and 0.02492, a very narrow interval. The errors fall outside this range only for a very few training points and therefore the error histogram highlights very good results.
Afterwards, in order to analyze the forecasting accuracy, we have computed and represented the regressions between the network targets and outputs. The values of the correlation coefficient R are very close to 1, all of them being greater than 0.99623 . Therefore, we can conclude that we have obtained a very good fit (Figure 17).
In order to validate the network’s performance, we have also represented the error autocorrelation function that depicts the way in which the forecasting errors are interlinked in time. Besides the zero-lag correlation, the rest of the errors fall within the 95% confidence limits around zero and thus, the validity of the forecasting method is confirmed (Figure 18).
In the following, we present the way in which, according to the above presented methodology, we have obtained the best forecasting solution out of the three developed ones, depicted above and denoted by ANN_NAR_BR, ANN_NARX_BR_ALL and ANN_NARX_BR_TS.

3.4. Results Concerning the Best Forecasting Solution

According to our research methodology, in order to obtain a final validation based on a real-world forecasting scenario, in the next step we have forecasted the electricity consumption for the month of December, using the forecasting ANNs selected above (ANN_NAR_BR, ANN_NARX_BR_ALL and ANN_NARX_BR_TS) and we have compared the obtained results with the corresponding real values, provided by the commercial center type of consumer.
In this purpose, we have first plotted on the same chart the real consumption and the forecasted ones. Analyzing the plot, we have noticed that the four curves are very close to each other, fact that reflects the high level of accuracy of the three developed forecasting solutions (Figure 19).
Afterwards, in order to obtain a more eloquent comparison, we have computed and plotted on a second chart the absolute values of the differences between the real consumption and each of the three forecasted ones (measured in MWh) (Figure 20).
Based on this second chart, we are able to identify that the network that provides the best forecasting results, as close as possible to the real values, is ANN_NARX_BR_ALL, as in this case the absolute values of the differences are closest to the zero value. On the second place is situated the ANN_NARX_BR_TS neural network. Detailed information about the predicted datasets can be found in the Supplementary Materials.
We also wanted to verify if the hierarchy of networks is confirmed by comparing their relevant parameters (the values of the mean squared error MSE and the correlation coefficient R between the network targets and the network outputs, for the whole dataset). In this purpose, we have selected the values from the above presented Table 2, Table 3 and Table 4.
Analyzing the results synthetized in this table, we have noticed that the lowest value of the mean squared error and the value of the correlation coefficient closest to 1 are those registered for the ANN_NARX_BR_ALL forecasting solution, followed by the ANN_NARX_BR_TS one. This comparison confirms the results obtained when analyzing the networks’ performance in a real-world forecasting scenario for the month of December 2016, highlighted in Figure 19 and Figure 20. The hierarchy of the three developed forecasting solutions, obtained by analyzing Table 5 is matching the one obtained by analyzing Figure 19 along with Figure 20, this fact confirming the relevance and correctness of our devised methodology.
In all the analyzed situations (the three ANNs forecasting solutions, developed based on the NAR and NARX models), we have also identified the networks that have provided the lowest performance and we have noticed that these networks still offer a good hourly forecasting accuracy.

4. Discussion

The research methodology has focused on devising three hourly consumption forecasting solutions for achieving energy efficiency in the case of large electricity non-household consumers. Thus, we have developed a series of artificial neural networks based on the NAR and NARX approaches, using LM, BR, SCG training algorithms and different settings regarding the hidden number of neurons n and the delay parameter d . According to our devised methodology, we have afterwards compared the forecasting accuracy of these networks and finally, we have obtained the network that provides the best forecasting results, as close as possible to the real values. Detailed information about the predicted datasets can be found in the Supplementary Materials.
We have conducted a detailed examination of the obtained results in order to obtain a more refined analysis. In this purpose, we have studied the results synthetized in the Table 2, Table 3 and Table 4 noticing that in most of the analyzed situations, the hourly forecasting accuracy improves along with the increase of the delay parameter value, the best results being obtained when d was 24 or 48 for all the training algorithms, in both the cases of NAR and NARX models. Therefore, in order to obtain an improved hourly forecasting accuracy, one needs 1 or 2 consecutive days’ values. The optimum mix ( n , d ) and the corresponding performance metrics are synthetized in Table 6.
In addition, in all these cases the BR has proved to be the best training algorithm, as the network developed using n = 24 neurons in the hidden layer and a delay parameter of d = 48 has offered the best forecasting accuracy, having the lowest value of the mean squared error and the value of the correlation coefficient computed for the whole dataset closest to 1. The neural networks that have provided the lowest prediction accuracy out of the 135-developed forecasting neural networks are synthetized in Table 7.
Analyzing these results, one can conclude that in most of the cases the worst results were obtained when the value of the delay parameter was d = 2 , while the number of neurons in the hidden layer varies. Even if these networks provide the lowest hourly forecasting accuracy within a certain model and training algorithm, they still offer a good hourly forecasting accuracy. Analyzing and comparing the results presented in Table 6 and Table 7, we have noticed that the improvement of the mean squared error of the best mix when compared to the worst one, ranges between 41.66% and 84.18%, while in the case of the correlation coefficient R between the network targets and the network outputs, for the whole dataset, the improvement ranges between 0.23% and 2.25% (Table 8).
.
Even if the first developed forecasting solution, based on the NAR model, has proved to provide a very good prediction accuracy, as we wanted to further improve the accuracy of the obtained results, we have first developed a forecasting solution based on the NARX model, using as exogenous datasets the temperature and the time stamps datasets. By applying this method, the forecasting accuracy has been improved but the temperature dataset used as an exogenous variable limits significantly the forecasting timeframe as when using the forecasting ANN one should know beforehand the temperature for the time steps for which he needs to forecast the consumption.
Therefore, as we wanted to see if we could obtain a forecasting solution based on the NARX model, for which the exogenous variables are easier to see if we can in the same time achieve an accurate long-term forecasting, we have developed an ANN forecasting solution, based on the NARX model, using as exogenous variable only the time stamps dataset. This solution provides a forecasting accuracy that is slightly lower but very close to the one offered by the solution that uses the two datasets of exogenous variables, while having the undeniable advantage of being easier to develop and being possible to achieve a longer forecasting timeframe, as it does not require the acquisition of a supplementary dataset (the temperature).
The results obtained using the NARX model reveal a strong relation between the exogenous variables and the electricity consumption that makes our proposed forecasting method a viable alternative to other methods from the literature. For example, comparing with [28], in which the authors do not consider the meteorological data and with [30], in which the authors consider only national and religious holidays, we have introduced some specific exogenous variables (meteorological and timestamps datasets) that influence the hypermarket’s consumption. Comparing with [29], in which the authors have used the feed-forward ANNs in order to develop a short-term forecasting of the Greek Power System load demand, our method is based on ANNs developed based on the NAR and NARX models, that are more suitable in forecasting the time series’ future terms.
In contrast with [31], where the authors have used only the Levenberg-Marquardt training algorithm for developing the forecasting neural networks, we have used three training algorithms (LM, BR and SCG) and finally we have chosen the one that has provided the best results, reflected by the best forecasting accuracy. Moreover, in order to choose the networks’ parameters (the delay parameter and the number of neurons in the hidden layer), the authors have developed a testing methodology based on a “trial-and-error procedure”, in which they adjusted first the delay parameter and afterwards, using this parameter, they searched the number of neurons using the same approach. In our paper, we have developed an approach based on testing different pairs of ( n , d ) parameters, in the same time. Therefore, our search for obtaining the best mix between the training algorithm, the delay parameter and the number of neurons in the hidden layer was conducted in a tridimensional approach, while the approach used in [31] was twice unidimensional: the training algorithm is always LM, the searching of the best delay parameter and afterwards the one regarding the number of neurons in the hidden layer are conducted separately, in two unidimensional searches. Both the approaches (the one depicted in [31] and our method) offer a very good forecasting accuracy.
Nevertheless, it is hard to obtain a 100% relevant comparison between different existing forecasting methods in the literature, without using the same dataset and moreover the same case study. Some methods can out best others in certain scenarios, while others can be the best choice, depending on the particularities of the case study. An important criterion in assessing the effectiveness of a forecasting method consists in its ability to be generalized as to be able to apply it to a wide range of case studies. Our devised method can be adapted and tested on other datasets for non-household consumers: offices with restaurant, hotels, entertainment centers, due to the ease of building the exogenous timestamps dataset. Our analyzed case study considers the electricity consumption of a hypermarket with exclusive commercial activities. The proposed forecasting methods can also be adapted for industrial activities. In this case, more input variables could be considered whether the electricity measurement is done on separate industrial equipment. In the same time, the industrial activity specificity must be taken into account (night shifts, the availability of production line, scheduled maintenance). Moreover, additional algorithms for input data could be employed in accordance with the requirements. Therefore, our proposed method can be adapted for other types of consumers using supplementary exogenous variables in accordance with their specific activities.

5. Conclusions

The research presented in this paper aimed to devise forecasting solutions for the hourly energy consumption in the case of large non-household electricity consumers, a prerequisite in attaining energy efficiency. The forecasting solutions have been developed using artificial neural networks based on the NAR and NARX models and on the LM, BR, SCG training algorithms. For all of these ANNs, the involved dataset consists in the hourly energy consumption recorded by smart metering device from a large hypermarket chain, while in the NARX case exogenous data have also been used, represented by meteorological and time stamp datasets.
By testing different settings regarding the training algorithm, the number of neurons in the hidden layer, the delay parameter, the networks’ weights and biases and by comparing the obtained results, we have obtained in each case the neural network that provides the best prediction accuracy. Afterwards, by analyzing the forecasting performance of the selected networks (highlighted by the mean squared error, the error histogram, the regressions, the error autocorrelation plots), we have noticed that the best hourly forecasting accuracy is provided by the ANN developed using the BR algorithm, based on the NARX model, using as exogenous variables the meteorological and the time stamps datasets, with n = 24 neurons in the hidden layer and a delay parameter of d = 48 (ANN_NARX_BR_ALL).
In order to obtain a final validation based on a real-world forecasting scenario, we have forecasted the electricity consumption using the selected ANNs and we have compared the obtained results with the corresponding real values, provided by the large electricity non-household consumer thus confirming the forecasting accuracy of our developed solutions.
By applying our method, based on the flexibility of the consumer, the optimum operation can be scheduled. As a further step, the consumer can send to the supplier the day ahead consumption schedule (his forecast) and obtain based on his flexibility the optimal schedule (considering a certain objective function) that would improve the energy efficiency. Our method can be further improved by adding the consumption of individual appliances or consumption devices. This topic is complex and could be approached in a future research paper.
The hourly consumption forecasting solutions developed within this paper offer a high level of accuracy, having the potential of being useful tools for both the large electricity non-household consumers and electricity producers, offering them the means to attain an appropriate management of resources and energy efficiency.

Supplementary Materials

The following are available online at www.mdpi.com/1996-1073/10/11/1727/s1, the input datasets used for developing the solutions: electricity consumption for the whole 2016 year, the environmental temperature for the whole 2016 year, the time stamps dataset; the predicted datasets for the month of December 2016; the developed ANNs.

Acknowledgments

This work was funded by a grant of the National Research Council (CNCS), the Advisory Council for Research, Development and Innovation (CCCDI), The Executive Agency for Higher Education, Research, Development and Innovation Funding (UEFISCDI), project number PN-III-P2-2.1-BG-2016-0286 “Informatics solutions for electricity consumption analysis and optimization in smart grids” and contract No. 77BG/2016, within the National Plan for Research, Development and Innovation for the period 2015-2020 (PNCDI III).

Author Contributions

All authors contributed equally to this work.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. World Energy Balances: Overview (2017 Edition). Available online: http://www.iea.org/publications/freepublications/publication/WorldEnergyBalances2017Overview.pdf (accessed on 9 January 2017).
  2. Rigatos, G. Advanced Models of Neural Networks: Nonlinear Dynamics and Stochasticity in Biological Neurons; Springer: Berlin, Germany, 2015; ISBN 9783662437636. [Google Scholar]
  3. Krawczak, M. Multilayer Neural Networks: A Generalized Net Perspective; Springer Publishing Company: Heidelberg, Germany, 2013; ISBN 978-3-319-00248-4. [Google Scholar]
  4. Chakraverty, S.; Mall, S. Artificial Neural Networks for Engineers and Scientists: Solving Ordinary Differential Equations; CRC Press: Boca Raton, FL, USA, 2017; ISBN 9781351651318. [Google Scholar]
  5. Da Silva, I.N.; Spatti, D.H.; Flauzino, R.A.; Liboni, L.H.B.; dos Reis Alves, S.F. Artificial Neural Networks: A Practical Course; Springer International Publishing: Basel, Switzerland, 2016; ISBN 9783319431628. [Google Scholar]
  6. Goodfellow, I.; Bengio, Y.; Courville, A. Deep Learning (Adaptive Computation and Machine Learning Series); MIT Press: Cambridge, UK, 2016; ISBN 9780262035613. [Google Scholar]
  7. Almonacid, F.; Fernandez, E.F.; Mellit, A.; Kalogirou, S. Review of techniques based on artificial neural networks for the electrical characterization of concentrator photovoltaic technology. Renew. Sustain. Energy Rev. 2017, 75, 938–953. [Google Scholar] [CrossRef]
  8. Qazi, A.; Fayaz, H.; Wadi, A.; Raj, R.G.; Rahim, N.A.; Khan, W.A. The artificial neural network for solar radiation prediction and designing solar systems: A systematic literature review. J. Clean. Prod. 2015, 104, 1–12. [Google Scholar] [CrossRef]
  9. Yadav, A.K.; Chandel, S.S. Solar radiation prediction using Artificial Neural Network techniques: A review. Renew. Sustain. Energy Rev. 2014, 33, 772–781. [Google Scholar] [CrossRef]
  10. Du, K.L.; Swamy, M.N.S. Neural Networks and Statistical Learning; SpringerLink: London, UK, 2013; ISBN 9781447155713. [Google Scholar]
  11. Kumar, R.; Aggarwal, R.K.; Sharma, J.D. Comparison of regression and artificial neural network models for estimation of global solar radiations. Renew. Sustain. Energy Rev. 2015, 52, 1294–1299. [Google Scholar] [CrossRef]
  12. Yadav, A.K.; Chandel, S.S. Identification of relevant input variables for prediction of 1-minute time-step photovoltaic module power using Artificial Neural Network and Multiple Linear Regression Models. Renew. Sustain. Energy Rev. 2017, 77, 955–969. [Google Scholar] [CrossRef]
  13. Paliwal, M.; Kumar, U.A. Neural networks and statistical techniques: A review of applications. Expert Syst. Appl. 2009, 36, 2–17. [Google Scholar] [CrossRef]
  14. Bou-rabee, M.; Sulaiman, S.A.; Saleh, M.S.; Mara, S. Using artificial neural networks to estimate solar radiation in Kuwait. Renew. Sustain. Energy Rev. 2017, 72, 434–438. [Google Scholar] [CrossRef]
  15. Xiao, Q.; Xing, L.; Song, G. Time series prediction using optimal theorem and dynamic Bayesian network. Opt. Int. J. Light Electron Opt. 2016, 127, 11063–11069. [Google Scholar] [CrossRef]
  16. Proskuryakov, A. Intelligent System for Time Series Forecasting. Procedia Comput. Sci. 2017, 103, 363–369. [Google Scholar] [CrossRef]
  17. Xiao, Q. Time series prediction using bayesian filtering model and fuzzy neural networks. Opt. Int. J. Light Electron Opt. 2017, 140, 104–113. [Google Scholar] [CrossRef]
  18. Tealab, A.; Hefny, H.; Badr, A. Forecasting of nonlinear time series using ANN. Future Comput. Inform. J. 2017, 2, 39–47. [Google Scholar] [CrossRef]
  19. Ibrahim, M.; Jemei, S.; Wimmer, G.; Hissel, D. Nonlinear autoregressive neural network in an energy management strategy for battery/ultra-capacitor hybrid electrical vehicles. Electr. Power Syst. Res. 2016, 136, 262–269. [Google Scholar] [CrossRef]
  20. Yang, D.; Dong, Z.; Lim, L.H.I.; Liu, L. Analyzing big time series data in solar engineering using features and PCA. Sol. Energy 2017, 153, 317–328. [Google Scholar] [CrossRef]
  21. Hirata, Y.; Aihara, K. Improving time series prediction of solar irradiance after sunrise: Comparison among three methods for time series prediction. Sol. Energy 2017, 149, 294–301. [Google Scholar] [CrossRef]
  22. Zheng, T.; Chen, R. Dirichlet ARMA models for compositional time series. J. Multivar. Anal. 2017, 158, 31–46. [Google Scholar] [CrossRef]
  23. Deb, C.; Zhang, F.; Yang, J.; Lee, S.E.; Shah, K.W. A review on time series forecasting techniques for building energy consumption. Renew. Sustain. Energy Rev. 2017. [Google Scholar] [CrossRef]
  24. Balestrassi, P.P.; Popova, E.; Paiva, A.P.; Marangon Lima, J.W. Design of experiments on neural network’s training for nonlinear time series forecasting. Neurocomputing 2009, 72, 1160–1178. [Google Scholar] [CrossRef]
  25. Benmouiza, K.; Cheknane, A. Forecasting hourly global solar radiation using hybrid k-means and nonlinear autoregressive neural network models. Energy Convers. Manag. 2013, 75, 561–569. [Google Scholar] [CrossRef]
  26. Wong, S.L.; Wan, K.K.W.; Lam, T.N.T. Artificial neural networks for energy analysis of office buildings with daylighting. Appl. Energy 2010, 87, 551–557. [Google Scholar] [CrossRef]
  27. Mocanu, E.; Nguyen, P.H.; Gibescu, M.; Kling, W.L. Comparison of machine learning methods for estimating energy consumption in buildings. In Proceedings of the 13th International Conference on Probabilistic Methods Applied to Power Systems, Durham, UK, 7–10 July 2014. [Google Scholar]
  28. Esener, I.I.; Yüksel, T.; Kurban, M. Short-term load forecasting without meteorological data using AI-based structures. Turk. J. Electr. Eng. Comput. Sci. 2015, 23, 370–380. [Google Scholar] [CrossRef]
  29. Tsekouras, G.J.; Kanellos, F.D.; Mastorakis, N. Short Term Load Forecasting in Electric Power Systems with Artificial Neural Networks. In Computational Problems in Science and Engineering; Mastorakis, N., Bulucea, A., Tsekouras, G., Eds.; Springer International Publishing: Cham, Germany, 2015; pp. 19–58. ISBN 978-3-319-15765-8. [Google Scholar]
  30. Tanıdır, Ö.; Tor, O.B. Accuracy of ANN based day-ahead load forecasting in Turkish power system: Degrading and improving factors. Neural Netw. World 2015, 25, 443–456. [Google Scholar] [CrossRef]
  31. Ruiz, L.; Cuéllar, M.; Calvo-Flores, M.; Pegalajar Jiménez, M.; Del, C. An Application of Non-Linear Autoregressive Neural Networks to Predict Energy Consumption in Public Buildings. Energies 2016, 9, 684. [Google Scholar] [CrossRef]
  32. Sun, C.; Sun, F.; Moura, S.J. Nonlinear predictive energy management of residential buildings with photovoltaics & batteries. J. Power Sources 2016, 325, 723–731. [Google Scholar] [CrossRef]
  33. Bogomolov, A.; Lepri, B.; Larcher, R.; Antonelli, F.; Pianesi, F.; Pentland, A. Energy consumption prediction using people dynamics derived from cellular network data. EPJ Data Sci. 2016, 5. [Google Scholar] [CrossRef]
  34. Mauledoux, M.; Aviles, O.; Mejia-Ruda, E.; Caldas, O.I. Analysis of autoregressive predictive models and artificial neural networks for irradiance estimation. Indian J. Sci. Technol. 2016, 9. [Google Scholar] [CrossRef]
  35. Buitrago, J.; Asfour, S. Short-term forecasting of electric loads using nonlinear autoregressive artificial neural networks with exogenous vector inputs. Energies 2017, 10. [Google Scholar] [CrossRef]
  36. Gajowniczek, K.; Zabkowski, T. Electricity forecasting on the individual household level enhanced based on activity patterns. PLoS ONE 2017, 12. [Google Scholar] [CrossRef] [PubMed]
  37. Levenberg, K. A method for the solution of certain non-linear problems in least squares. Q. J. Appl. Math. 1944, 2, 164–168. [Google Scholar] [CrossRef]
  38. Marquardt, D.W. An Algorithm for Least-Squares Estimation of Nonlinear Parameters. J. Soc. Ind. Appl. Math. 1963, 11, 431–441. [Google Scholar] [CrossRef]
  39. Kişi, Ö.; Uncuoǧlu, E. Comparison of three back-propagation training algorithms for two case studies. Indian J. Eng. Mater. Sci. 2005, 12, 434–442. [Google Scholar]
  40. Neural Network Object Properties—MATLAB & Simulink. Available online: https://www.mathworks.com/help/nnet/ug/neural-network-object-properties.html#bss4hk6-48 (accessed on 12 October 2017).
  41. MacKay, D.J.C. Bayesian Interpolation. Neural Comput. 1992, 4, 415–447. [Google Scholar] [CrossRef]
  42. Foresee, F.D.; Hagan, M.T. Guass-Newton approximation to bayesian learning. In Proceedings of the International Conference on Neural Networks, Houston, TX, USA, 9–12 June 1997; pp. 1930–1935. [Google Scholar]
  43. Møller, M.F. A scaled conjugate gradient algorithm for fast supervised learning. Neural Netw. 1993, 6, 525–533. [Google Scholar] [CrossRef]
  44. Lin, T.; Horne, B.G.; Tino, P.; Giles, C.L. Learning long-term dependencies in NARX recurrent neural networks. IEEE Trans. Neural Netw. 1996, 7, 1329–1338. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The consumption time series for the year 2016.
Figure 1. The consumption time series for the year 2016.
Energies 10 01727 g001
Figure 2. The temperature time series for the year 2016.
Figure 2. The temperature time series for the year 2016.
Energies 10 01727 g002
Figure 3. The block diagram of the devised forecasting methodology.
Figure 3. The block diagram of the devised forecasting methodology.
Energies 10 01727 g003
Figure 4. The ANN_NAR_BR’s architecture.
Figure 4. The ANN_NAR_BR’s architecture.
Energies 10 01727 g004
Figure 5. The best training performance when forecasting the electricity consumption for the month of December, using the ANN_NAR_BR network.
Figure 5. The best training performance when forecasting the electricity consumption for the month of December, using the ANN_NAR_BR network.
Energies 10 01727 g005
Figure 6. The error histogram when forecasting the electricity consumption for the month of December, using the ANN_NAR_BR network.
Figure 6. The error histogram when forecasting the electricity consumption for the month of December, using the ANN_NAR_BR network.
Energies 10 01727 g006
Figure 7. The regressions between the network targets and network outputs when forecasting the electricity consumption for the month of December, using the ANN_NAR_BR network.
Figure 7. The regressions between the network targets and network outputs when forecasting the electricity consumption for the month of December, using the ANN_NAR_BR network.
Energies 10 01727 g007
Figure 8. The error autocorrelation function when forecasting the electricity consumption for the month of December, using the ANN_NAR_BR network.
Figure 8. The error autocorrelation function when forecasting the electricity consumption for the month of December, using the ANN_NAR_BR network.
Energies 10 01727 g008
Figure 9. The ANN_NARX_BR_ALL’s architecture.
Figure 9. The ANN_NARX_BR_ALL’s architecture.
Energies 10 01727 g009
Figure 10. The best training performance when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_ALL network.
Figure 10. The best training performance when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_ALL network.
Energies 10 01727 g010
Figure 11. The error histogram when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_ALL network.
Figure 11. The error histogram when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_ALL network.
Energies 10 01727 g011
Figure 12. The regressions between the network targets and network outputs when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_ALL network.
Figure 12. The regressions between the network targets and network outputs when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_ALL network.
Energies 10 01727 g012
Figure 13. The error autocorrelation function when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_ALL network.
Figure 13. The error autocorrelation function when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_ALL network.
Energies 10 01727 g013
Figure 14. The ANN_NARX_BR_TS’s architecture.
Figure 14. The ANN_NARX_BR_TS’s architecture.
Energies 10 01727 g014
Figure 15. The best training performance when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_TS network.
Figure 15. The best training performance when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_TS network.
Energies 10 01727 g015
Figure 16. The error histogram when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_TS network.
Figure 16. The error histogram when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_TS network.
Energies 10 01727 g016
Figure 17. The regressions between the network targets and network outputs when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_TS network.
Figure 17. The regressions between the network targets and network outputs when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_TS network.
Energies 10 01727 g017
Figure 18. The error autocorrelation function when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_TS network.
Figure 18. The error autocorrelation function when forecasting the electricity consumption for the month of December, using the ANN_NARX_BR_TS network.
Energies 10 01727 g018
Figure 19. The real and forecasted consumptions.
Figure 19. The real and forecasted consumptions.
Energies 10 01727 g019
Figure 20. The absolute values of the differences between the real consumption and each of the three forecasted ones.
Figure 20. The absolute values of the differences between the real consumption and each of the three forecasted ones.
Energies 10 01727 g020
Table 1. A synthesis of the methodology’s stages and steps.
Table 1. A synthesis of the methodology’s stages and steps.
StageStepFinal Results of the Stage
I. Acquiring and processing the data1. Acquiring the energy consumption and the meteorological datasetsThe final preprocessed datasets
2. Preprocessing the data (filtering, reconstructing)
3. Constructing the time stamp dataset
4. Dividing datasets into 2 subsets
II. Developing the ANN forecasting solution based on the NAR model1. Developing ANNs based on the LM algorithmThe best forecasting solution
2. Developing ANNs based on the BR algorithm
3. Developing ANNs based on the SCG algorithm
4. Comparing the forecasting accuracy of the obtained ANNs
III. Developing the ANN forecasting solution based on the NARX model, using as exogenous variables the meteorological and the time stamps datasets1. Developing ANNs based on the LM algorithmThe best forecasting solution
2. Developing ANNs based on the BR algorithm
3. Developing ANNs based on the SCG algorithm
4. Comparing the forecasting accuracy of the obtained ANNs
IV. Developing the ANN forecasting solution based on the NARX model, using as exogenous variables the time stamps datasets1. Developing ANNs based on the LM algorithmThe best forecasting solution
2. Developing ANNs based on the BR algorithm
3. Developing ANNs based on the SCG algorithm
4. Comparing the forecasting accuracy of the obtained ANNs
V. Obtaining the best forecasting solution1. The 3 selected networks are put into the closed loop formThe forecasting solutions’ hierarchy
2. Forecasting using the best ANN forecasting solution based on the NAR model that has been put in the closed loop form
3. Forecasting using the he best forecasting solution based on the NARX model with meteorological and time stamps exogenous data that has been put in the closed loop form
4. Forecasting using the he best forecasting solution based on the NARX model with time stamps exogenous data that has been put in the closed loop form
5. Comparing the forecasting results from steps 1–4
Table 2. The synthesis of the experimental results when developing the artificial neural networks forecasting solution based on the NAR model.
Table 2. The synthesis of the experimental results when developing the artificial neural networks forecasting solution based on the NAR model.
The Levenberg-Marquardt Training Algorithm
nd26122448
6MSE0.00293070.00300220.00194030.00183490.00091808
R0.976260.980490.98670.991990.99272
12MSE0.00253060.00228520.00183630.0010850.0015098
R0.976960.984160.988110.993240.99184
24MSE0.00372190.00267840.00134280.00190620.0017245
R0.974860.981970.989860.992550.99254
The Bayesian Regularization Training Algorithm
nd26122448
6MSE0.00296270.0022280.00146560.000948660.00072544
R0.977090.9830.989090.992440.99422
12MSE0.00280510.00195790.0010460.000688360.00056501
R0.978710.984680.9920.994020.99448
24MSE0.00266050.00175080.000850380.000570530.00048272
R0.97990.985490.993990.993550.99526
The Scaled Conjugate Gradient Training Algorithm
nd26122448
6MSE0.00352690.00327010.00213930.00153750.0010847
R0.971910.972060.981450.988530.99123
12MSE0.00529540.00469870.00284870.000939680.00083771
R0.970550.96910.980610.99160.99241
24MSE0.00382860.00273530.00214940.00161370.0013316
R0.970330.97620.98060.989710.98819
Table 3. The synthesis of the experimental results when developing the artificial neural networks forecasting solution based on the NARX model, using as exogenous variables the meteorological and the time stamps datasets.
Table 3. The synthesis of the experimental results when developing the artificial neural networks forecasting solution based on the NARX model, using as exogenous variables the meteorological and the time stamps datasets.
The Levenberg-Marquardt Training Algorithm
nd26122448
6MSE0.00120520.0010880.000810510.000803460.00077934
R0.990360.992180.992910.993460.99394
12MSE0.000805560.000866190.000870070.000703080.00084926
R0.992270.992540.993860.994020.99375
24MSE0.000852230.000879590.000896690.000964890.00090853
R0.993640.99260.993380.994250.99401
The Bayesian Regularization Training Algorithm
nd26122448
6MSE0.00133770.00098880.000714820.000540330.00043039
R0.988650.992580.993870.995290.99561
12MSE0.000857730.000732910.000544380.000447080.00035744
R0.99180.994450.995550.99520.99616
24MSE0.000683620.000660450.00045770.000337960.0002294
R0.994440.994910.995780.99670.99701
The Scaled Conjugate Gradient Training Algorithm
nd26122448
6MSE0.00220160.00208580.00120620.00109870.00078457
R0.981750.989280.990790.991420.99293
12MSE0.00352360.0025180.00166230.000777950.00088082
R0.978080.982920.988140.992540.99299
24MSE0.00246640.00144220.00114210.000915610.0011415
R0.979960.989560.989740.992270.99231
Table 4. The synthesis of the experimental results when developing the artificial neural networks forecasting solution based on the NARX model, using as exogenous variables the time stamps datasets.
Table 4. The synthesis of the experimental results when developing the artificial neural networks forecasting solution based on the NARX model, using as exogenous variables the time stamps datasets.
The Levenberg-Marquardt Training Algorithm
nd26122448
6MSE0.0014550.00199830.000845180.000877280.00084281
R0.98780.991620.993250.992660.9932
12MSE0.000940450.00121280.000962370.000767980.0009589
R0.991590.991630.993470.993880.99382
24MSE0,000986550.00115640.00183150.00184740.0010069
R0.992880.992280.993770.993060.99352
The Bayesian Regularization Training Algorithm
nd26122448
6MSE0.0016110.00105590.000723090.000613560.00050737
R0.988140.992310.993930.994590.99543
12MSE0.000864530.000758940.000582580.000477630.00038671
R0.992560.993170.994750.9950.99597
24MSE0.000700190.000660890.000495560.000398660.00032274
R0.994560.993810.99480.996040.99623
The Scaled Conjugate Gradient Training Algorithm
nd26122448
6MSE0.00263670.00199620.0013490.0012950.0009588
R0.978280.983050.989740.991480.99208
12MSE0.00393180.00284430.0023920.000852820.000881
R0.976810.984970.986380.992540.99231
24MSE0.00369670.00169970.00132590.00103250.0010516
R0.973670.986090.989080.991640.99249
Table 5. The relevant parameters of the ANN_NAR_BR, ANN_NARX_BR_ALL and ANN_NARX_BR_TS forecasting solutions.
Table 5. The relevant parameters of the ANN_NAR_BR, ANN_NARX_BR_ALL and ANN_NARX_BR_TS forecasting solutions.
No.The Forecasting SolutionMSER
1ANN_NAR_BR0.000482720.99526
2ANN_NARX_BR_ALL0.00022940.99701
3ANN_NARX_BR_TS0.000322740.99623
Table 6. The optimum mix ( n , d ) and the corresponding performance metrics.
Table 6. The optimum mix ( n , d ) and the corresponding performance metrics.
The Training AlgorithmThe Model
NARNARX with Meteorological and Timestamps Exogenous DataNARX with Timestamps Exogenous Data
LM n = 6 , d = 48
M S E = 0.00091808
R = 0.99272
n = 12 , d = 24
M S E = 0.00070308
R = 0.99402
n = 12 , d = 24
M S E = 0.00076798
R = 0.99388
BR n = 24 , d = 48
M S E = 0.00048272
R = 0.99526
n = 24 , d = 48
M S E = 0.0002294
R = 0.99701
n = 24 , d = 48
M S E = 0.00032274
R = 0.99623
SCG n = 12 , d = 48
M S E = 0.00083771
R = 0.99241
n = 12 , d = 24
M S E = 0.00077795
R = 0.99254
n = 12 , d = 24
M S E = 0.00085282
R = 0.99254
Table 7. The worst mix ( n , d ) and the corresponding performance metrics.
Table 7. The worst mix ( n , d ) and the corresponding performance metrics.
The Training AlgorithmThe Model
NARNARX with Meteorological and Timestamps Exogenous DataNARX with Timestamps Exogenous Data
LM n = 24 ,   d = 2
M S E = 0.0037219
R = 0.97486
n = 6 , d = 2
M S E = 0.0012052
R = 0.99036
n = 6 , d = 6
M S E = 0.0019983
R = 0.99162
BR n = 6 ,   d = 2
M S E = 0.0029627
R = 0.97709
n = 6 , d = 2
M S E = 0.0013377
R = 0.98865
n = 6 , d = 2
M S E = 0.001611
R = 0.98814
SCG n = 12 ,   d = 2
M S E = 0.0052954
R = 0.97055
n = 12 , d = 2
M S E = 0.0035236
R = 0.97808
n = 12 ,   d = 2
M S E = 0.0039318
R = 0.97681
Table 8. The performance metrics improvement when comparing the best with the worst mix ( n , d ) .
Table 8. The performance metrics improvement when comparing the best with the worst mix ( n , d ) .
The Training AlgorithmThe Model
NARNARX with Meteorological and Timestamps Exogenous DataNARX with Timestamps Exogenous Data
LM75.33% for the MSE
1.83% for R
41.66% for the MSE
0.37% for R
61.57% for the MSE
0.23% for R
BR83.71% for the MSE
1.86% for R
82.85% for the MSE
0.85% for R
79.97% for the MSE
0.82% for R
SCG84.18% for the MSE
2.25% for R
77.92% for the MSE
1.48% for R
78.31% for the MSE
1.61% for R

Share and Cite

MDPI and ACS Style

Pîrjan, A.; Oprea, S.-V.; Căruțașu, G.; Petroșanu, D.-M.; Bâra, A.; Coculescu, C. Devising Hourly Forecasting Solutions Regarding Electricity Consumption in the Case of Commercial Center Type Consumers. Energies 2017, 10, 1727. https://doi.org/10.3390/en10111727

AMA Style

Pîrjan A, Oprea S-V, Căruțașu G, Petroșanu D-M, Bâra A, Coculescu C. Devising Hourly Forecasting Solutions Regarding Electricity Consumption in the Case of Commercial Center Type Consumers. Energies. 2017; 10(11):1727. https://doi.org/10.3390/en10111727

Chicago/Turabian Style

Pîrjan, Alexandru, Simona-Vasilica Oprea, George Căruțașu, Dana-Mihaela Petroșanu, Adela Bâra, and Cristina Coculescu. 2017. "Devising Hourly Forecasting Solutions Regarding Electricity Consumption in the Case of Commercial Center Type Consumers" Energies 10, no. 11: 1727. https://doi.org/10.3390/en10111727

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop