Sei sulla pagina 1di 6

2018 13th IEEE International Conference on Industry Applications Mo5TrackD.

Use of virtual load curves for the training of neural


networks for residential electricity consumption
forecasting applications
Haroldo L. M. do Amaral André N. de Souza Danilo S. Gastaldello
Laboratory of Power Systems and Laboratory of Power Systems and Laboratory of Power Systems and
Intelligent Techniques – LSISPOTI Intelligent Techniques – LSISPOTI Intelligent Techniques – LSISPOTI
University of São Paulo – USP São Paulo State University - UNESP Sacred Heart University - USC
São Paulo – SP, Brazil Bauru – SP, Brazil Bauru – SP, Brazil
haroldo.amaral@usp.br andre.souza@unesp.br danilo.gastaldello@usp.br
Thiago X. da S. Palma Alexander da S. Maranho João P. Papa
Laboratory of Power Systems and Laboratory of Power Systems and Laboratory of Power Systems and
Intelligent Techniques – LSISPOTI Intelligent Techniques – LSISPOTI Intelligent Techniques – LSISPOTI
São Paulo State University - UNESP São Paulo State University - UNESP São Paulo State University - UNESP
Bauru – SP, Brazil Bauru – SP, Brazil Bauru – SP, Brazil
txspalma@gmail.com alexandermaranho@hotmail.com joao.papa@unesp.br

Abstract—Smart grids are becoming increasingly closer to Australia between 2009 and 2013 which achieved a
consumers, especially residential consumers, bringing with reduction in consumption between 4-10%, another project
them a wide range of possibilities. The level of information carried out in 2007 in California (USA) led to reduced
obtained on a smart grid will be much higher when compared consumption between 11-13% [1].
to a traditional network and at this point, more informed
consumers tend to consume more efficiently, bringing benefits One of the pillars of smart grids is related to provide
to themselves and to the system. An interesting fact for control more information to consumers, allowing them to actively
within a residence is forecasting consumption, allowing the respond in real time network changes [2], in addition to
consumer to know in advance how much to consume up to a maintaining its consumption within the limits of your budget.
certain period. Artificial neural networks are one of several Much of the improvement achieved in relation to energy
methods used to forecast time series, however, require a high efficiency is related to the behavioral changes achieved by
volume of historical data for the training of the network, given consumers, originated from the new information and data
that these may not be accessible or even exist. At this point, the provided by the new technologies associated with Smart
objective of this work is to evaluate the use of load curves grids [3].
obtained through computational tools for the pre-training of
artificial neural networks used in the consumption forecast. A Many researchers agree that smart grids can provide
tool is used to create random load curves according to the much higher levels of energy efficiency [4]–[6]. Better
region and socioeconomic characteristics. The load curves are informed consumers can make better decisions regarding the
transformed into cumulative consumption curves and used as use of their loads or even with respect to the management of
training vectors of the artificial neural network. The results of complementary resources, such as the generation of a
the tests were very promising, they showed that the pre- photovoltaic system. These actions generate local benefits at
training with the virtual data makes possible the forecast of the the consumer level in addition to the systemic level since
time series even in the absence of real data for the training, resources can be saved, minimizing the associated losses.
showing that the methodology developed has great potential of
application in works related to the forecast consumption. At this point, it is very important that consumers are
informed about the Smart grids, its general concept and
Keywords—load forecasting, load curves, artificial neural especially about the benefits that can be achieved from their
networks, smart grids use.
Many consumers believe that the applied policies and
I. INTRODUCTION technologies bring explicit benefits only to energy utilities,
The smart grids are the focus of the most diverse studies and it is not clear what direct benefit can be achieved by the
and discussions in the academic environment for years, consumer [4]. New features and functionalities should be
however, the theme has become known to the general public used as a driver vector in favor of smart grids, making clear
especially with the advancement of complementary energy the benefits that can be achieved by consumers and thereby
sources, such as photovoltaic generation and the minimizing the resistance originated in the transition process
development of several pilot projects around the world. between technologies.
Some of these projects have focused on energy efficiency Through the databases we can observe that several types
achieved through smart grids, especially when achieved by of research have been developed with a focus on the
residential consumers since in most countries consumption technologies, whether related to communication protocols,
related to the residential sector account for a large percentage mainly in this emerging moment of the subject Internet of
of total consumption. An example is a project conducted in Things (IoT), cybersecurity and data privacy. In addition,

978-1-5386-7995-1/18/$31.00 ©2018 IEEE 85 ISBN 978-1-5386-7995-1

Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE SANTA CATARINA. Downloaded on May 11,2020 at 23:17:46 UTC from IEEE Xplore. Restrictions apply.
there are many studies related to the impact of barrier related to difficult access or absence of such data,
complementary sources on power quality and stability of the especially when related to the residential consumer.
system as well as the impact of microgrids. On the other
hand, we have seen a smaller number of studies focused on Since most consumers still use electromechanical meters,
the energy efficiency of smart grids, their technologies, and the only available historical record is related to the total
new possibilities and their relationship with this new concept accumulated monthly of previous months. In Brazil, these
and associated technologies. data are obligatorily available in the light bill but do not
satisfy the needs for the training of a neural network,
The forecast consumption is an important information for especially if the focus is to make forecasts within the period
residential consumers, enabling to plan and control their of one month.
charges in order to keep the total consumption within budget
[7]. Moreover, since 2015 we have seen an increasing III. METHODOLOGY
research related to consumption forecast within the IEEE
databases. The study developed in [10], [11] presents the
development of a methodology for creating virtual load
The objective of this study is to evaluate the use of load curves of residential consumers according to their
curves obtained using computational tools for pre-training socioeconomic characteristics.
neural networks used in forecasting consumption.
A computational tool able to generate several random
load curves for a particular type of consumer has been
II. CONSUMPTION FORECAST developed, taking into account the area of the residence, the
Within the energy sector, consumption forecast is mainly number of people in the house, socioeconomic data, age
used for long-term management process of the electrical groups and other characteristics that directly influence
system, allowing you to choose the best management possession and consumption habits. It is important to
strategies, investment, and expansion of the system emphasize that although there is a pattern of consumption by
according to the possible scenarios. In addition, time series type of consumer, each consumer uses the energy in a unique
forecasting is widely used in the financial sector, stock way influenced by the search of comfort, thus, the tool can
management, price review, and climate forecasting. generate very distinct curves for the same profile, which
makes the quite complex individual analysis problem.
Its direct application to the final consumer, is not a
traditional theme, especially in the residential consumer, but Basically, the algorithm for constructing the virtual load
presents great potential regarding the energy efficiency that curves can be divided into 3 steps, being: 1 - The user
can be achieved in a consumer unit. Access to continuously chooses the characteristics of the resident family: number of
updated data on their consumption and forecasting habits for residents, age, economic class, region where they live, size of
the next period allows the consumer to better manage their residence; 2 - Draw of the equipment: according to family
resources, controlling their loads and even energy resources characteristics is mounted an equipment ownership vector,
from complementary sources such as a photovoltaic moreover, are drawn the possibilities of use of each device
generation. on; 3 - Assembly of the daily load curve of equipment: later
they are summed to fill the daily load curve of the family.
We can compare this process as a form of continuous The values of the possibilities of use are stored for that
consumer education that is directly benefited by the family since they represent a habit of consumption. The
behavioral changes themselves. When this behavior is adoption of the possibilities of use for each equipment
extended to most consumer units, a significant improvement ensures that each simulated load curve will have a different
in the energy efficiency indexes is expected by reducing behavior, however, on average the behaviors follow the
consumption and minimizing losses associated with the characteristic pattern of the target residence. Fig. 1, Fig. 2
whole process. and Fig. 3 shows the development steps of the algorithm.
Several techniques are used in time series forecasting
process, among the most common can be cited statistical
methods, the use of artificial neural networks, fuzzy logic,
and Neuro Fuzzy [8], [9].
The study developed in [7] presented the use of artificial
neural networks focusing on the consumption forecast of a
consumer unit based on the historical series of data, that is,
the consumption history. The results showed the viability of
the method through the tool used.
Two points were evident in this study: the first is related
to the size of the time series. Artificial neural network
training to predict longer periods depends on large time
series, with many samples, and with considerable time
duration; the second point is related to the initial offset in the
training vector and how the network behaves when trying to
predict a series of data that does not start with the same
offset.
Of the two points raised, the size of the historical series
can be seen as primordial. At this point, we find a major Fig. 1. Step 1 - Family feature

86

Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE SANTA CATARINA. Downloaded on May 11,2020 at 23:17:46 UTC from IEEE Xplore. Restrictions apply.
Fig. 5. Comparison between average curves - Northeast

Ideally the network training should be performed with the


actual data of the own consuming unit, however, in the
absence of these data, curves generated for the same
customer pattern can be used as training vectors of the neural
network allowing the prediction even in absence of long
historical series. It can also be considered as a pre-training
standard, which can be updated according to the presence of
Fig. 2. Step 2 – Possession of equipment actual data.
The methodology applied in this study consisted of using
the simulated load curves for the southeast region of Brazil
and from them to create the consumption curves for a period
of one month. The cumulative consumption of one month
served as a training vector of the neural network responsible
for performing the consumption forecast.
At the end of the training, validation tests were
performed on different stretches of the original consumption
curve, evaluating their behavior. We also conducted tests on
other load curves as well as real data for the same region,
allowing us to compare with the results obtained in [7].

IV. TESTS
Fig. 3. Step 3 – Load curve of each device To perform the tests load curves were generated for the
southeast region. In total, approximately 300 load curves
Despite the random characteristics of each of the with 2880 samples each were generated, each of these curves
generated curves, the average of several curves refers to the symbolizing a different consumer. The data of each
behavior of the load curves provided by PROCEL [12], as consumer has 96 points per day, according to the standard
can be seen in the Fig. 4 and Fig. 5 below, comparing the curve, which corresponds to the curve of 30 consecutive days
average curve generated by the algorithm with the PROCEL with intervals of 15 minutes between each sample, where the
curves. value of each sample is equivalent to the consumption in
kW.
For the artificial neural network training, the cumulative
consumption curve is necessary. This curve is obtained by
integrating the load curve of the period. After this process,
the resulting curve will present the consumption behavior in
kWh within one month for the chosen consumer. The result
of the curve for distinct consumers will be different due to
the random characteristic of the algorithm, which seeks to
simulate the differences between consumers in the same
region and class. The result of this procedure is presented in
Fig. 6 below, with the load curve and cumulative
consumption curve for the one-week period.

Fig. 4. Comparison between average curves - Central West

87

Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE SANTA CATARINA. Downloaded on May 11,2020 at 23:17:46 UTC from IEEE Xplore. Restrictions apply.
Fig. 6. Load Curve vs Consumption Curve (One week) Fig. 8. Second test

The integrated curve is then used as the training vector The curve shows that the network was able to predict
for the artificial neural network used for prediction. To make approximately 2/3 of the period and at this point started to
comparisons possible, it was decided to adopt the same setup register a smaller output than the real one. Interestingly, the
used in [7]. We used the Nonlinear Autoregressive Model point where the prediction fails to keep up with the
Network (NAR) of Matlab also keeping up the number of cumulative consumption curve is about 250 kWh, near the
neurons in the hidden layer 5 and 5 delays, values obtained maximum value achieved consumption in training vector, as
empirically. can be seen in Fig. 7.
The training and testing process were performed using For the third test, another consumption curve was
the Neural Network Time Series tool. The integrated selected, in this case looking for a curve that had greater
consumption curve was used as training vector, generating at cumulative consumption at the end of the month. The chosen
the end of the process a mean-squared error (MSE) that curve reaches the end of the month an approximate
varied between 1.10x10-2 and 8.85x10-3, corresponding consumption of 800 kWh, more than 3 times the final value
values with those obtained in [7]. of the training vector. In this case, it was decided to start the
forecast from the middle of the curve. The result is shown in
The first test involved using their own training vectors for
Fig. 9 below.
prediction. Using the previous metric, an MSE of 1.00x10-2
was recorded. Fig. 7 below shows the test result.

Fig. 9. Third test

Fig. 7. First test


The result shows that the forecast was below expected in
the whole series. The starting point of the forecast exceeds
From the curve, it can be verified that the behavior of the
the maximum value reached by the training vector. The
curve was followed throughout its length, with absolute
initial offset was subtracted from all samples, simulating a
errors lower than 1 kWh in the whole period. An interesting
curve starting at zero. The result of the test can be seen in
point to emphasize is that this error tends to have a lower
Fig. 10.
weight as the accumulated consumption increase, not being
the best comparison metric, however, we can consider this
absolute error as a rather low value in view of the focus of
the application.
A new consumption curve was chosen randomly, and the
second test was performed. An MSE of 176.00 was recorded.
Fig. 8 below shows the test result.

88

Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE SANTA CATARINA. Downloaded on May 11,2020 at 23:17:46 UTC from IEEE Xplore. Restrictions apply.
actual curve, at this point the general offset of the samples
can be removed to be added back to the end of the forecast,
reestablishing the real value of consumption.
The last approach can be used alone or even with a
training vector with more samples, always verifying the error
of the forecast.
It is important to note that the range of the training and
test samples with the actual data is different. The curve used
in the training has samples at home for 15 minutes, while the
data from the smart meter have intervals of 20 seconds
between each sample. Although the huge difference between
the test result was quite promising. This behavior has been
noted in the previous testing by downsampling of the training
data, as presented in [7].
Fig. 10. Test four – Removing initial offset
Through the use of specific characteristics of the
As can be observed, the offset removal made it possible consumer, unit becomes possible to create load curves that
to predict the series, with errors only reappearing when more closely resemble their actual behavior, improving the
exceeding a value higher than the training vector, as in performance of the applied methodology.
previous tests.
In a real application, the device responsible for
In the four conducted tests were used curves created by forecasting can come with several consumption profiles,
the algorithm. The focus of the simulated curves is to allow a allowing even without actual data the forecast to be possible.
pre-training to be applied to real data. For the fifth test, we In addition, it is possible for the network to be re-trained
used real data collected by the smart meter developed in [13]. from scratch from collected data or even re-training from
The largest series recorded with the device was used, actual data.
accounting for 26 days of storage. The test result is shown in
The presentation of the results has a very large weight,
Fig. 11.
influencing whether they will be used or not by the
consumer. It is important that information be simple to
understand by the consumer, making it a truly useful
information in your day-to-day life.
A simple and interesting strategy is to present a graph of
the accumulated consumption curve containing the last
period beyond the curve predicted for the next period. After
the last forecast period it is possible to present in the same
graph the actual curve against the predicted curve, indicating
if the consumer has saved or spent more energy based on the
forecast.
The same idea can be applied to compare the
consumption of several periods indicating the tendency of
economy or not. This process of "gamification" tends to
engage the consumer in seeking better results.
Fig. 11. Test with real data
This information can be made available through an
The result of the test shows that the training of the interface connected to a control center of a smart home,
artificial neural network through simulated curves is through a webpage generated system or even through
efficient, being able to follow the behavior of a real curve. smartphone apps, making it easier to access information.
This is an important result, validating the central objective of As a continuation of this study seeks to implement the
this work.
methodology using the TensorFlow library, developed by
Google. An opensource library for machine learning which
V. DISCUSSION AND CONCLUSION showed strong growth and acceptance since its launch in
The tests presented interesting results highlighting the 2015. Its use makes possible the implementation of forecast
potential of the methodology. data from a single board computer (SBC) as the Raspberry
Pi. It can be the home energy management system (HEMS)
Through the performed tests it was verified that the of a smart home, being connected to the smart meter of the
selected artificial neural network loses the ability to follow residence.
the consumption curve when its output exceeds the
maximum values used during the training stage. In addition, we try to test the recurrent neural networks to
predict time series of consumption, comparing their results
At this point, two different possible approaches emerge: with the methods already studied.
the first consists of using a larger training vector, with more
samples, increasing the maximum limit of the forecast; a Depending on the method used, the training can be
second possible approach is to use an error indicator, such as performed on a single board computer (SBC) or even in the
the MSE, to flag that the forecast is no longer following the

89

Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE SANTA CATARINA. Downloaded on May 11,2020 at 23:17:46 UTC from IEEE Xplore. Restrictions apply.
cloud, so that the forecast can be performed by a device with [7] H. L. M. do Amaral, J. A. G. Maginador, R. M. J. Ayres, A. N. de
less processing capacity like the smart meter. Souza, and D. S. Gastaldello, “Integration of consumption
forecasting in Smart Meters and Smart Home Management
ACKNOWLEDGMENT Systems,” in Simpósio Brasileiro de Sistemas Elétricos (SBSE 2018),
This study was financed in part by the Coordenação de 2018, pp. 1–6.
Aperfeiçoamento de Pessoal de Nível Superior - Brasil [8] A. Marinescu, C. Harris, I. Dusparic, S. Clarke, and V. Cahill,
(CAPES) - Finance Code 001. “Residential electrical demand forecasting in very small scale: An
We thank FAPESP for the support given to this research, evaluation of forecasting methods,” in 2013 2nd International
FAPESP Project 2017 / 02286-0. Workshop on Software Engineering Challenges for the Smart Grid
(SE4SG), 2013, pp. 25–32.
REFERENCES [9] S. B. Shinde and P. K. Katti, “Smart measurement techniques for
efficient operation of smart grid,” in 2015 International Conference
on Circuits, Power and Computing Technologies [ICCPCT-2015],
[1] T. S. Choi, K. R. Ko, S. C. Park, Y. S. Jang, Y. T. Yoon, and S. K.
2015, pp. 1–6.
Im, “Analysis of energy savings using smart metering system and
IHD (In-Home Display),” Transm. Distrib. Conf. Expo. Asia Pacific, [10] D. S. Gastaldello, “Desenvolvimento de metodologia para previsão
T D Asia 2009, pp. 1–4, 2009. da demanda de energia elétrica residencial considerando aspectos
socioeconômicos e ferramentas computacionais inteligentes,” Escola
[2] P. Mukhopadhyay and H. K. Chawla, “Approach to make Smart
Politécnica da USP - EPUSP, 2017.
Grid a reality,” in 2014 International Conference on Advances in
Energy Conversion Technologies (ICAECT), 2014, pp. 77–82. [11] D. S. Gastaldello, A. N. de Souza, H. L. M. do Amaral, P. Faria, and
Z. Vale, “Study of load curves concerning the influence of
[3] L. Hauttekeete, J. Stragier, W. Haerick, and L. De Marez, “Smart,
socioeconomic and cultural issues,” in IEEE PES Innovative Smart
smarter, smartest… the consumer meets the smart electrical grid,” in
Grid Technologies, Europe, 2014, pp. 1–6.
2010 9th Conference of Telecommunication, Media and Internet,
2010, pp. 1–6. [12] Eletrobras/Procel, “Relatório do Mercado de Eficiência Energética
no Brasil – Simulação de Potenciais de Eficiência Energética para a
[4] R. Yesudas and R. Clarke, “Identifying consumer requirements as an
Classe Residencial,” p. 214, 2007.
antidote to resistance to smart meters,” in IEEE PES Innovative
Smart Grid Technologies, Europe, 2014, vol. 2015–Janua, no. [13] H. L. M. do Amaral and A. N. de Souza, “Development of a low cost
January, pp. 1–6. smart meter to collecting data and in-place tests,” in 2014 11th
IEEE/IAS International Conference on Industry Applications, 2014,
[5] A. Podgornik, B. Sucic, P. Bevk, and D. Stanicic, “The Impact of
pp. 1–7.
Smart Metering on Energy Efficiency in Low-Income Housing in
Mediterranean,” 2013, pp. 597–614.
[6] L. Gomes et al., “Dynamic Approach and Testbed for Small and
Medium Players Simulation in Smart Grid Environments,” IFAC
Proc. Vol., vol. 47, no. 3, pp. 31–36, 2014.

90

Authorized licensed use limited to: UNIVERSIDADE FEDERAL DE SANTA CATARINA. Downloaded on May 11,2020 at 23:17:46 UTC from IEEE Xplore. Restrictions apply.

Potrebbero piacerti anche