Open access peer-reviewed chapter

Electricity Consumption and Generation Forecasting with Artificial Neural Networks

By Adela Bâra and Simona Vasilica Oprea

Submitted: April 18th 2017Reviewed: September 25th 2017Published: December 20th 2017

DOI: 10.5772/intechopen.71239

Downloaded: 425

Abstract

Nowadays, smart meters, sensors and advanced electricity tariff mechanisms such as time-of-use tariff (ToUT), critical peak pricing tariff and real time tariff enable the electricity consumption optimization for residential consumers. Therefore, consumers will play an active role by shifting their peak consumption and change dynamically their behavior by scheduling home appliances, invest in small generation or storage devices (such as small wind turbines, photovoltaic (PV) panels and electrical vehicles). Thus, the current load profile curves for household consumers will become obsolete and electricity suppliers will require dynamical load profiles calculation and new advanced methods for consumption forecast. In this chapter, we aim to present some developments of artificial neural networks for energy demand side management system that determines consumers’ profiles and patterns, consumption forecasting and also small generation estimations.

Keywords

  • forecast
  • renewable energy
  • smart metering
  • demand side management
  • consumers’ profiles

1. Introduction

Recently, many national and international communities and authorities developed energy efficiency strategies and programs in order to reduce energy poverty. In Ref. [1], European Economic and Social Committee (EESC) stated that more than 50 million Europeans are affected by energy poverty in 2009. EESC also recommends to establish a European poverty observatory that will bring together all stakeholders to take correct measures to reduce the gaps between different countries and regions in terms of energy poverty and propose a set of statistics indicators to monitor the evolution of energy efficiency. EESC draw attention that energy prices are constantly increasing with more than 10% annually, while most of the Europeans spending an increasing share of their income on energy.

In 2012, European Commission adopted Energy Efficiency Directive that proposed measures to increase with 20% energy efficiency target by 2020 [2]. On November 30, 2016, the Commission updated the Directive, by targeting 30% energy efficiency for 2030. The proposed measures for energy are oriented toward increasing consumers’ awareness regarding their consumption management through electronic bills and information and communications technology (ICT) solutions, encourage them to become prosumers by investing in their own generation sources such as photovoltaic (PV) panels, wind turbines and storage devices.

The main objective of the chapter is to present an implementation of artificial neural networks (ANNs) for the electricity consumption management based on smart metering (SM) data. This objective will be reached by following topics:

  • determining consumers’ profiles and patterns with clustering and self-organizing maps (SOM);

  • forecasting aggregated electricity consumption for short-term period on a typical week day with autoregressive (AR) neural networks;

  • forecasting energy generation for small wind turbines and photovoltaic panels installed at consumers side (prosumers) with feed-forward neural networks;

  • presenting the main components of an informatics prototype that allows the prosumers to configure and schedule their appliances in an interactive manner to optimize the electricity consumption.

The ANN performance will be compared with stochastic methods (classification, ARMA and ARIMA models) and the best solution is adopted for ICT prototype.

2. Current problems in electricity consumption and generation

Regarding ICT solutions, the most important measures to reduce the energy poverty and to increase consumers’ awareness toward energy efficiency concern both electricity suppliers and consumers. For electricity suppliers, market segmentation can be used to determine dynamic consumes’ profiles to better understand consumption behavior and also to set up strategies and plans for different consumers groups. Another important measure for electricity suppliers consists in consumption (load) forecasting for short and medium term, used for planning the grid resources and wholesale electricity markets bids. For consumers, with the introduction of smart metering (SM) systems, their awareness increased and new methods must be taken into consideration such as consumption optimization of household appliances through user-friendly interfaces, micro-generation (through photovoltaic panels, small wind turbines and storage devices), mobile applications for real time billing with detailed information regarding appliances’ consumption or own generation sources.

2.1. Determine consumers’ profiles

Determining dynamic profiles for consumers represents a challenge for energy suppliers due to the widespread implementation of smart metering (SM). Comparing with previous period before SM implementation, the consumers can play an active role, having the opportunity to control and schedule their consumption by programming some devices such as washing machine, electric heating, ventilation systems or car batteries. Another aspect that can be considered is to use micro-generation sources (photovoltaic panels installed on the roofs or buildings’ facades or small wind turbines) to unload back into the grid the generated electricity according to the tariff systems. Based on activities that are carried out by consuming electricity, final consumers are categorized into household and non-household consumers. Final non-household consumers are characterized by specific consumption, defined by profiles (consumption curves) defined in Romania by procedure [3] and are split into several categories such as industry, gas stations, civil works, hospitals, public utilities, hotels, retailers, etc. For household consumers in Romania, there is no official procedure or study used by energy suppliers, although SM is targeted for 80% implementation until 2020. Based on international studies such as [4] conducted in UK during 2010–2011 by the Department of Energy and Climate Change (DECC), the Department for the Environment Food and Rural Affairs (DEFRA) and the Energy Saving Trust (EST), demonstrated clearly the influence of time-of-use tariff (ToUT) on domestic demand response. The consumers shifted their evening peak consumption due to the various ToUT prices without significantly affecting their comfort and lifestyle. In Ref. [5], it is considered a multivariate statistical lifestyle analysis of household consumers in US. The study identified five factors reflecting social and behavioral profiles (patterns) determined by air conditioning, washing machines, climate conditions, PC and TV use. A detailed analyses for market segmentation is presented in Ref. [6] based on effect of lifestyles, socio-demographic factors, smart appliances, electricity and heat supply. Authors also identified the most influenced factors that determined the segmentation: socio-demographic factors (household size, net income and employment status), types of electric appliances and the use of new (smart) technologies. They also correlated the link between socio-demographic factors and the use of new technologies and smart appliances. The household profiles are determined in Ref. [7] by applying a time series auto-regression model—Periodic Autoregression with eXogenous variables (PARX) algorithm, taking into consideration temperature and occupants’ daily habits. Thus, the consumption is correlated with life style influenced by temperature that leads to air conditioning and heating electricity consumption variations.

In Ref. [8], we analyzed several methods for profile calculation including fuzzy C-means clustering, autoregression with exogenous variables and multi-linear regression. For National Grid UK, the load profiles are determined with multiple regression taking into consideration seven variables such as noon temperature, two variables regarding sunset moments compare to 6 o’clock in the afternoon and four variables related to the week days [9]. Thus eight profiles are obtained that can be used further for electricity consumption forecasts and simulation.

In Ref. [10], authors applied autoregression on hourly consumption data measured for 1000 household consumers in Canada (Ontario). The household consumption represents 30% of the total consumption and its contribution to the peak load is important due to the ventilation or AC devices. For autoregression, the variables also include hourly temperature data measured at local stations and occupation degree of each house.

In Ref. [11], clustering methods are used for determining load profiles for 300 electricity consumers from Malaysia. Authors proposed C-means fuzzy clustering algorithm by using average consumption values, thus obtaining four clusters, each of them being split into sub-clusters for a better and detailed typical consumption profiles.

In Section 3.1, we proposed a new method based on self-organizing maps (SOM) that allows us to determine six profiles clearly delimited for consumers having the following types of consumption: heating, cooling, ventilation, interior lighting, exterior lighting, water heating, usual devices (washing machine, refrigerator) and other smaller devices (TV, audio and computer). These profiles were compared with other profiles obtained by stochastic methods such as clustering and classification.

2.2. Consumption and micro-generation short-term forecasting

Regression is seen as part of the first generation of consumption (load) forecasting methods. It is one of most widely used statistical methods due to its undoubtable advantages such as simplicity and transparency. For electricity load forecasting, regression methods are usually applied to effectively model the relationship of consumption level and other factors such as weather (i.e. temperature, humidity, etc.), day type (workdays and holidays) and consumers profiles.

Several methods based on regression have been used for short-term load forecasting with different levels of success such as ARMAX models [12], multiple regression [13, 14] and regression with neural networks [15, 16, 17].

In Ref. [18], authors describe several regression models for the next day peak forecasting. Their models incorporate deterministic influences such as weekend days, stochastic influences such as historical loads, and exogenous factors influences such as temperature. In papers [19, 20, 21, 22], authors described other applications of regression models to load forecasting.

According to [23, 24], ARIMA models have proven appropriate for forecasting electricity consumption.

In Section 3.2, we proposed a method based on autoregressive neural networks for short-term forecasting the electricity consumption aggregated at supplier’s level for a typical day of the week. The forecasting method is applied on each profile previously determined by SOM. Also, we considered ARIMA method for load forecasting and at the end of Section 3.2, we compared the results for both methods.

Regarding the micro-generation forecasting (small wind turbines and photovoltaic panels installed at consumers’ side), the methods depend on the time interval. For example, stochastic methods (persistence and autoregressive patterns) are recommended in Ref. [25] for very short-term prediction (up to 4–6 hours). In addition, other authors [26] proposed Kalman integrated support vector machine (SVM) method to achieve a 10% accuracy improvement by comparing with artificial neural networks or autoregressive (AR) methods. Also a consistent approach is given by the use of ANNs for short-term generation forecast in case of wind turbines and photovoltaic (PV) panels. Various ANN-based algorithms are described in [27, 28], it is proposed Bayesian Regularization algorithms for forecasting. Also in [29, 30], authors proposed back propagation neural networks based on the optimization of Swarm particles.

Stochastic methods can be successfully used in order to determine the PV generation. The authors of the paper [31] analyzed and compared different models for forecasting and concluded that the accuracy of the ARMA model is better than other models.

In Section 4, we analyzed two methods for PV and small wind turbines generation: stochastic method based on ARIMA and feed-forward ANN. The results are compared and conclusions are drawn at the end of the section.

2.3. Consumption optimization

Residential consumers usually have certain types of appliances: washing machine, dryer, dish machine, water heater, refrigerator, electric oven/grill, blender, iron machine, electric centralized heating system, coffee maker, vacuum cleaner, AC/ventilation systems, TV and other multimedia appliances. Out of these appliances only some of them can be automatically controlled and used at certain time intervals when electricity price is lower (e.g. washing machine, dish machine, electric oven, car batteries can be charged at night). Electricity suppliers may use several methods for consumption optimization using different optimization functions. In Ref. [32], it is described as stochastic optimization based on Monte Carlo simulation for minimization of estimated payment for entire day. Authors proposed a mixed integer linear programing (MILP) algorithm for optimization of the electricity residential consumption taking into account real time tariffs. In [33, 34], authors proposed genetic algorithms for consumption optimization. We proposed in Ref. [35] a method based on MILP with two optimization functions: cost-based function that minimizes the electricity costs depending on the time-of-use tariffs (ToUT) and a peak-shaving optimization function that minimizes the peak consumption. Both functions provide savings to electricity bills for consumers, but the second method also brings benefits for electricity suppliers and grid operators. In Section 5, we presented informatics solution that integrates the optimization methods presented in Ref. [35] and allows consumers to schedule their appliances in order to minimize the electricity costs.

2.4. Smart applications for real time billing

Until the expansion of smart meters, consumers were charged based on meters’ reads made by an electricity supplier employee on different time intervals (usually 2–3 months) and most of the time the bills are based on estimations determined by the energy supplier on historical data regarding each household’s consumption. Therefore, the electricity consumer was unable to customize and adjust his consumption based on ToUT or schedule his appliances to avoid peak consumption because he cannot benefit from real time information and his behavior is not reflected in the demand management system in real time. Since the widespread implementation of smart meters in most European countries, various informatics solutions were developed by software companies or by energy suppliers in order to provide consumers accurate electricity bills, near real time. A review of the top utility billing software products is available in Ref. [36]. These solutions are user-friendly, accessible online through mobile devices, intuitive and ease to use even for ICT novices.

Besides information regarding the total consumption, the billing systems have to provide consumptions data for different type of appliances measured by SM or by other smart measurement devices. Thus, consumers can analyze their consumption for heating, cooling, washing, lighting and other home appliances and they can schedule it based on ToUT. In Section 5, we proposed an informatics solution that provides friendly user interfaces and integrates methods for consumption optimization and micro-generation forecasting for electricity consumers.

3. Forecasting the electricity consumption

3.1. Determining the consumption profiles

In order to dynamically determine consumer profiles, first we considered a series of algorithms based on classification and clustering techniques. In order to implement and test the model, we used a data set with hourly electricity consumption recorded in different US cities between January 1, 2014 and December 31, 2014. Each record contains values for the following types of consumption: heating, cooling, ventilators, indoor lighting, outdoor lighting, water heating, household equipment (washing machine and refrigerator) and other interior devices (TV and computer). Data were imported into Oracle Database 11 g R2 in the LOAD_PROFILE_T table with approximately 1,900,000 hourly records for 212 consumers. We analyzed the distribution of electricity consumption at different value ranges, consumption types and time periods as shown in Figure 1 .

Figure 1.

Data set statistics.

The analyses shows that the consumption curve has the same aspect as the consumption for heating and interior equipment, which makes these types of consumption significant attributes for the total consumption value.

Data being imported into Oracle Database, we consider data mining algorithms developed in Oracle SQL Developer. So, for the first method, we approached support vector machines (SVMs) classification method and we build six profiles (classes) and the profiles with the most cases (over 30,000) have the highest degree of accuracy (about 90%), which can be considered a good result for classification. Performing classes’ analyses, we observed that the profiles are very sensitive to changes in consumer behavior, due to the fact that classes with a small number of items recorded the highest prediction errors.

To eliminate these shortcomings, we considered it useful to apply a second solution for determining profiles dynamically by using clustering methods. For building the profiles, we applied the K-means method and for measuring similarity within a cluster, the variance (the sum of the squares of the differences between the main element and each element) is used, being the best clusters in which the variance is small. We analyzed the confidence level for each cluster and it is noticeable that the confidence is high, in most cases being over 85%. Regarding the clustering rules, from our results we noticed that the grouping rules do not take into account the attributes such as water heating, fans, cooling, household equipment, indoor/outdoor lighting, but only heating and total consumption (the most important attributes). This may be due to the fact that we choose a small number of clusters comparing to the data set population. In conclusion, the lower the number of clusters, the more people in the group and less sensitive to changes in consumer behavior.

In order to divide the obtained profiles into smaller groups, we choose another clustering method in order to establish consumption patterns. So, we refined the K-mean results and we applied O-cluster method (Orthogonal partitioning clustering). This method is owned by Oracle Corporation [37] and uses a recursive data grouping algorithm through orthogonal data partitioning. On top of the previous 6 profiles determined by K-means, we build 10 sub-clusters, representing consumption patterns for each profile on hourly intervals. Analyzing the training rules and the weight of each consumption category in each cluster, we noticed that they have a varied composition, each cluster identifying a primary profile determined by the K-means method and one or more consumption patterns determined by the O-cluster method. For example, we considered the distribution of consumption patterns of a consumer within the P5 profile within 24 h. Figure 2 shows profile P5 split into 10 patterns (T1, …, T10) for a detailed perspective on electricity consumption.

Figure 2.

Profile P5 patterns with O-cluster.

The patterns build with O-cluster refine the clusters and gives a better understanding about consumption behavior regarding smaller groups of consumers and thus adjusting the ToUT for these groups. Also, the consumption patterns shape more accurately the consumer’s dynamic behavior within 24 h, the profiles being in fact an approximation of the variation of hourly consumption. The deviations of the actual consumption compared to the average consumption of the profile are small, which again validates the clustering model.

As an option to clustering methods, we approached also a third method based on artificial neural networks (ANN). In Matlab R2015a, we imported data from Oracle Database from LOAD_PROFILE_T table and we organized input vectors as x(t) ∈ Rn , where n = 13 for each consumption type (heating, ventilation, indoor lighting, etc.) and t represents time interval (hours) between January 1, 2014 and December 31, 2014.

We developed a self-organizing maps (SOM) algorithm, setting the following parameters for the neural network:

  • SOM architecture—2D with 2 × 3 neurons/layer (dimensions) = [2 3];

  • number of steps for initially processing the input space (coverSteps) = 100;

  • initial neighbor (initNeighbor) = 2;

  • network topology (topologyFcn) = ‘hextop’ and

  • distance between neurons (distanceFcn) = ‘linkdist’.

The network is initialized with random values for each neuron. We used the trainbu training function that adjusts weights and bias after each iteration. We plotted the results and observed the distribution of the input set in Figure 3 :

Figure 3.

Distances among clusters distribution.

From the representation of the consumption curves corresponding to six clusters, it can be observed a clear delimitation between profiles P2 and P5. Also, a difference of approx. 30% of the evening consumption peak is observed between P6 and P1, P3, P4 ( Figure 4 ).

Figure 4.

Profiles obtained with SOM.

Following the analysis of the obtained results, we noticed a correct and efficient grouping of the consumer profiles using the self-organizing neural networks.

A short comparison of the results obtained with the three analyzed methods is summarized in Table 1 .

MethodSVMK-means and O-clusterSOM
Number of profiles6 profiles6 profiles with 10 patterns6 profiles
Sensitivity to consumption variationsHigh, small classes with lower confidenceMedium, variations are included in patternsMedium, each group is clearly delimited
Detailed consumption informationHigh (sub-types of profiles)High (by patterns of O-cluster)Low
Overall performanceMediumHighHigh

Table 1.

Comparison of the profiles obtained by SVM, K-means and O-cluster and SOM.

From the analysis, we can conclude that for the determination of dynamic consumption profiles, which surprising a series of consumption patterns, the optimal method is the clustering method, and for the determination of clearly delimited profiles the most efficient method is the use of self-organizing maps.

3.2. Consumption forecasting solution with ANN

Analyzing the consumption data set for 212 consumers during 4–6 weeks, a regular pattern is observed between working days or weekdays (Monday to Friday) and some differences in weekend or holidays. Therefore, for load forecasting hourly aggregated at grid operator or electricity supplier level for a typical day of the week, we can consider an autoregressive model. In this section, we approach and compare two methods for forecasting electricity consumption: statistics methods based on ARIMA and autoregressive artificial neural networks.

Autoregressive-moving-average (ARMA) models are suitable for stationary series, but most of the series are non-stationary, their mean and variance not being constant over time. The ARMA model was adapted for non-stationary time series that become stationary by differentiation, the resultant models being called autoregressive integrated moving average ARIMA (p, d, q). The ARIMA model (p, d, q) consists of three parts: autoregressive (AR), where p represents the autoregression order, d represents the order of differentiation required for staging the series (I) and the moving average, q being the order of the moving average. Unlike autoregression, the moving average describes phenomena with certain irregularities. Moving average is described by the following equation:

Yt=c+θ1et1+θ2et2++θpetp+etE1

where Yt is the consumption, c is a constant coefficient and the θ are the parameters of the moving average and et represents the time series error.

To evaluate the results of the analysis, we used the mean squared error (MSE) and also mean absolute percentage error (MAPE) to compare the accuracy of the forecast obtained in various variants of the ARIMA model.

Data from the LOAD_PROFILE_T table were imported into the SAS Guide Enterprise 7.1. Starting from the input data set, we applied the autoregressive integrated moving average models. In Table 2 , we presented MAPE for the AR model first order, ARMA(1,1) and ARIMA(1,1,1).

ModelMAPE [%]
AR(1)7.29
MA(1)24.45
ARMA(1,1)29.05
ARIMA(1,1,1)24.97

Table 2.

ARIMA models’ results.

Table 2 shows that MAPE is the lowest in the autoregressive model, the accuracy of the electricity consumption forecast being the best (about 93%). The accuracy of other forecasts is over 70%. In all analyses, the degree of correlation indicates an average or poor inverse dependence.

In addition to ARIMA models, we approached the autoregressive neural networks in Matlab. We built the LOAD_PROFILE_HOURLY virtual table based on the LOAD_PROFILE_T table and the LOAD_PROFILE_SOM_6 table, which includes six consumption profiles previously determined by the self-organizing maps. For simulation we considered a single profile—P6 with the largest number of consumers (6197).

Due to the structure of the input data and the fact that there is an autoregressive component of electricity consumption during a typical week, we have built a nonlinear autoregressive neural network (narnet). We configured ANN parameters as follows:

  • feedbackDelays—number of delays;

  • hiddenSizes—number of neurons in the hidden layer;

  • trainFcn—training function.

We considered 50 neurons in the hidden layer and a single input y(t)—the total consumption determined according to the formula:

yt=fyt1ytdE2

where d represents the number of records considered delays. For the first iteration of the model, we considered d = 5 and for the second iteration with better results d = 10. The architecture of the network is shown in Figure 5 .

Figure 5.

The architecture of the autoregressive neural network.

For the hidden layer, we used a bipolar sigmoid activation function and a linear activation function for the output layer. As for the training algorithm, Matlab provides the following algorithms: the Levenberg-Marquardt (LM) algorithm (trainlm), the Bayesian Regularization (BR) algorithm (trainbr) and the Scaled Conjugate Gradient (SCG) algorithm (trainscg). We developed the autoregressive neural network and compared the results obtained with the three training algorithms. The performance of the network is very good, the mean square error (MSE) being 0.0046 attained at epoch 936 for the BR training algorithm and the correlation coefficient R between the prediction and the actual value is 0.996 ( Figure 6 ).

Figure 6.

Results for R coefficient for BR algorithm.

From the error histogram ( Figure 7 ), it can be observed that the errors are between −0.13 and +0.12, which can be considered an acceptable distribution.

Figure 7.

Errors histogram.

We trained the network using the three algorithms (LM, RB and SCG), the best results being recorded using the Bayesian Regularization algorithm, although the Levenberg-Marquardt algorithm recorded good results with an increased performance in training.

In Table 3 , the results obtained with autoregressive neural networks are compared with stochastic methods (ARMA, ARIMA and AR).

Performance/methodLMRBGCSARMAARMAARIMA
MSE0.00640.00460.1670.00910.02750.03160.0287
MAPE4.264.216.217.2924.4529.0524.97
Errors distribution−0.3 to 0.12−0.13 to 0.12−0.18 to 0.22−1.24 to 1.16−1.36 to 1.44−1.11 to 0.99−1.14 to 0.66

Table 3.

Autoregressive neural networks versus stochastic methods.

The accuracy of ANN algorithms is better (about 95%) compared to the accuracy of stochastic models. Also, the Levenberg-Marquardt and Bayesian regularization algorithms are also superior regarding the lowest MSE. The R coefficient and error distribution for neural network algorithms are better than AR, MA, ARMA and ARIMA models.

4. Forecasting the electricity generation

In this section we will analyze stochastic methods based on ARMA and ARIMA models compared with feed-forward artificial neural networks for small wind turbines and photovoltaic panels generation in case of short-term forecasting.

4.1. Photovoltaic panels generation forecasting

In order to forecast the electricity produced by photovoltaic panels, we used input data from one PV power plant of 7.6 kW located in Giurgiu City, Romania, installed at a prosumer side on his building facade. PV generates electricity for the consumption of the prosumer, and when the consumption is lower than the PV output, the electricity is sent to the grid. For our experiments, data was recorded at 10 minutes interval, from January to December 2015 and includes the following attributes: ambient temperature, humidity, solar radiation, wind direction, wind speed and PV output (generated power), having more than 50,000 records.

First, we applied the ARIMA models and we calculated the error distribution, MSE, MAPE and R correlation coefficient ( Table 4 ).

ModelsMSERMAPE [%]
AR(1)0.0065050.9895583.716167
AR(2)0.0134640.9782195.008174
MA(1)0.0942530.94815359.89228
MA(2)0.1027340.92319963.59939
ARMA(1,1)0.0064780.989583.803265
ARMA(2,2)0.0132970.9784925.439663
ARIMA(1,1,1)0.0063720.9899393.633844
ARIMA(2,1,2)0.0064350.9897873.566530

Table 4.

Stochastic models results in case of PV generation forecasting.

From our observations, the correlation coefficient indicates a strong relationship between solar radiation and the PV power forecast. This close dependence showed that regression models are appropriate for this time series. The best results were obtained with ARIMA model where the accuracy is 96.5% that indicates that the model can be used in PV panels generation forecast.

We consider a second method based on feed-forward neural networks. Therefore, we trained and validated a set of ANN in Matlab using Levenberg-Marquardt (LM), Bayesian Regularization (BR) and Scaled Conjugate Gradient (SCG).

For ANN architecture, we analyzed various settings regarding the number of neurons per layer, number of hidden layers and training algorithms. After several tests, we chose the following architecture: the input layer with 5 neurons (ambient temperature, humidity, solar irradiation, wind direction and wind speed) 60 neurons on a hidden layer and a single output (the energy produced).

For training, validating and testing: we have allocated 70% of the records for the training process, 15% for the validation process and 15% for the testing process. For training errors, we used the mean square error (MSE) by applying an error normalization process by configuring the normalization parameter to “standard”. Thus, output parameter values were standardized, ranging from [−1, 1].

Taking into account the seasonal variations of the influence factors in Romania, we built artificial neural networks based on the three algorithms for each month and we compared the results in Table 5 .

PeriodMSECoefficient R
LMBRSCGLMBRSCG
January0.08180.08720.11320.99940.99930.9992
February0.03870.03170.06790.99940.99930.9990
March0.06170.05700.11740.99850.99870.9978
April0.02010.01910.03190.99900.99890.9984
May0.05390.05050.06400.99800.99810.9975
June0.07050.06750.08650.99910.99920.9989
July0.04390.04740.05770.99670.99690.9962
August0.08700.06580.10190.99910.99930.9989
September0.03480.03080.05120.99970.99970.9996
October0.06010.06280.08770.99960.99970.9996
November0.03690.02950.06500.99990.99990.9999
December0.10020.08390.10910.99970.99970.9997

Table 5.

Performance of ANN for solar generation forecasting in case of the PV panel.

Comparing the ARIMA and ANN results, we consider that the most efficient approach is to use ANN on monthly data sets, which leads to excellent accuracy for every analyzed month. We also found that in almost 70% of cases, BR algorithm has a better generalization than LM or SCG algorithms. In 30% of cases, the highest accuracy was obtained with LM algorithm.

4.2. Wind turbines generation forecasting

For forecasting simulations, we used recorded data for one small wind turbines (micro-generators) with a total power of 5 kW and another wind turbine of 10 kW, belonging to two consumers-producers (prosumers) located in two different areas of County of Tulcea, Romania. The two prosumers uses the energy produced by wind turbines for pumping water. For each turbine, the data set contains hourly data recorded from January 2013 to December 2014 with the following attributes: ambient temperature, wind direction, wind speed, atmospheric pressure and humidity. For each wind turbine, the measuring devices provides different values such as average, maximum and minimum wind speeds. Starting from the input data, we have developed several forecast scenarios by applying ARIMA models. The data recorded at the turbines’ locations were analyzed using ARIMA Modeling and Forecasting time series in SAS Guide Enterprise 7.1. Applying the autoregressive model of the first AR (1), we obtained an extremely high average error (MAPE) of 86.5% for the wind turbine of 10 kW, which means that the accuracy of the model is only 13.5%. We tested also with first-order moving average (ARMA(1,1)) for both turbines and obtained the following results:

  • for 5 kW turbine: AR(1) MA(1) model with MSE = 0.047 and MAPE = 93.6 and

  • for 10 kW turbine: AR(1) MA(1) model with MSE =0.021 and MAPE = 50.7.

Although the moving average improves the results (especially for the 10 kW wind turbine) as a consequence of the wind’s unpredictable nature, because of the very low accuracy, the ARIMA models cannot be used for forecasting wind turbines’ generation.

As a consequence, we approached the feed-forward neural networks. We used the three algorithms available in Matlab for feed-forward ANN: Levenberg-Marquardt (LM), Bayesian Regularization (BR) and Scaled Conjugate Gradient (SCG).

Considering seasonal characteristics of wind generation in Romania, where during spring and autumn the weather is windy, we split the data set into four seasons and trained and tested a dedicated ANN for each data set.

The ANN architecture was as follows: 5 neurons for the input layer (wind speed, wind direction, atmospheric pressure, temperature and humidity), 50 neurons for the hidden layer and one output (generated energy). The data set was randomly divided as follows: for training 70% of the records, for testing 15% and the remaining 15% for validation. The results obtained from each network testing and validation are synthesized in Table 6 , which shows that the LM algorithm obtained the best correlation coefficient R (0.96) for spring and autumn data sets.

SeasonMSECoefficient R
LMBRSCGLMBRSCG
Spring0.03720.03870.04890.960.960.95
Summer0.05780.06030.06100.950.950.94
Autumn0.05530.06100.08450.960.940.93
Winter0.06040.06230.06360.950.950.94

Table 6.

Performance of ANN for wind generation forecasting in case of 5 kW turbine.

The results are good for all algorithms, analyzing the errors distribution we observed that most of them are between −0.1 and +0.1, which can be considered acceptable for the 5 kW turbine.

We experiment the ANN training and validation for the second turbine of 10 kW registering similar results, so we can conclude that the networks are efficient for generation forecasting in case of small wind turbines.

5. Informatics solutions for electricity consumption and generation

In order to increase the consumer awareness toward energy efficiency, new informatics solutions must be developed and offered by the electricity supplier. An informatics solution for demand management must fulfill the following requirements:

  • describing and modeling consumer’s electrical appliances;

  • real time consumption monitoring;

  • monitor and forecast generation in case of prosumers;

  • scheduling electrical appliances;

  • optimizing the consumption;

  • offering advanced analysis for consumption and micro-generation and

  • monitoring the costs of electricity consumption according to advanced tariffs systems.

Our proposed informatics solution is part of a research project and it is addressed mainly to household consumers, but it also contains a management consumption module for electricity supplier. The informatics solution contains the following modules: data acquisition from smart metering and smart appliances, models for consumption management and user-friendly interfaces.

5.1. Data management

Data acquisition module extract data from heterogeneous sources such as smart meters and appliances in .csv or .raw format, micro-generation equipment (small photovoltaic panels, wind turbines and electrical vehicles), manual reading done by electricity supplier’ employees or via web interfaces. Data are loaded first into local databases (concentrators) via Wi-Fi or RF. From local concentrators, data are synchronized periodically and loaded into a central data stage for proper cleansing and validation. We also designed an extract, transform and load (ETL) patterns for different types of SM and also procedures for extracting data from heterogeneous appliances. After ETL process completes, data are loaded into a central relational database running Oracle Database 12c or MySQL for operational management and then into a data warehouse for advanced analytics.

5.2. Models

The models’ layer integrates previously described methods for determine the consumers’ profiles based on SOM, methods for short-term consumption forecasting based on autoregressive neural networks and in case of prosumers, short-term generation forecasting from small wind turbines and PV panels. Also the layer includes an optimization model based on two optimization functions as described in detailed in Ref. [35].

5.3. Interfaces

Our proposed solutions are integrated into a web-based application using business intelligence components that allow both electricity supplier and prosumers to interact with the proposed models. We set up a business intelligence server installed in a cloud computing using Software as a Service (SaaS) that offers access for prosumers/electricity supplier to services via internet connection for advanced analytics. The application includes the following consumers’ facilities ( Figure 8 ):

  • monitoring their own consumption/generation;

  • customize appliances and schedule their consumption;

  • optimize consumption/generation based on advanced tariffs systems and

  • real time electricity bills.

Figure 8.

Monitoring consumption and generation in case of prosumers.

For electricity suppliers, the application will include an advanced analytics interface ( Figure 9 ) that allow them to:

  • set up advanced tariffs systems;

  • analyze aggregate consumption;

  • determine consumers’ profiles and

  • forecast electricity consumption.

Figure 9.

Determine consumers’ profiles through web interfaces in case of electricity suppliers.

The informatics solution is developed on a scalable platform, using Java with Application Development Framework and Oracle Database 12c that enables Cloud management and services. Thus, the solution can be adopted by the energy suppliers without expensive investments in infrastructure. Also, it offers an user-friendly interfaces that can be easily understand and managed by end-users on personal computers and mobile devices.

6. Conclusion and future work

Householders’ profiles and patterns will allow electricity suppliers to understand consumers’ behavior, set up more flexible and customized electricity prices to avoid peak consumption. One the other hand, prosumers will benefit from the forecasting solutions that will estimate wind and PV generation, therefore they will schedule their appliances according to electricity prices and their generation resources.

From our experiments, we consider artificial neural networks a good solution for determining the consumption profiles, for short-term load forecasting on each profile and also for short-term micro-generation forecasting.

A disadvantage of neural networks is that the most appropriate solution in a particular case is found by successive attempts on the number of hidden layers and the number of neurons on each layer, so in the case of another set of data from another geographic area with different characteristics regarding consumption or meteorological conditions that affect the wind or solar generation, it is necessary to re-configure the ANN parameters.

An advantage of artificial neural networks in case of consumption and generation forecasting is that they perform predictions with very good results in a very short time, which makes ANN particularly useful for real time short-term forecasting.

Acknowledgments

This paper presents some results of the research project: Informatics solutions for optimizing the operation of photovoltaic power plants (OPTIM-PV), project code: PN-III-P2-2.1-PTE-2016-0032, 4PTE/06/10/2016, PNIII - PTE 2016.

How to cite and reference

Link to this chapter Copy to clipboard

Cite this chapter Copy to clipboard

Adela Bâra and Simona Vasilica Oprea (December 20th 2017). Electricity Consumption and Generation Forecasting with Artificial Neural Networks, Advanced Applications for Artificial Neural Networks, Adel El-Shahat, IntechOpen, DOI: 10.5772/intechopen.71239. Available from:

chapter statistics

425total chapter downloads

More statistics for editors and authors

Login to your personal dashboard for more detailed statistics on your publications.

Access personal reporting

Related Content

This Book

Next chapter

Advanced Process Control

By Nasser Mohamed Ramli

Related Book

First chapter

Introductory Chapter: Electric Machines for Smart Grids and Electric Vehicles Applications

By Adel El-Shahat

We are IntechOpen, the world's leading publisher of Open Access books. Built by scientists, for scientists. Our readership spans scientists, professors, researchers, librarians, and students, as well as business professionals. We share our knowledge and peer-reveiwed research papers with libraries, scientific and engineering societies, and also work with corporate R&D departments and government entities.

More about us