SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3062
Demand Response for Energy Management Using Machine Learning
and LSTM Neural Network
Harshiyanas M
Department of Computer Science and Engineering &APJ Abdul Kalam Technological University-India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - Prediction of power demand plays a necessary
role within the electrical trade, becauseitprovidesthepremise
for creating selections in installation designingand operation.
In a dynamic atmospherestandardpredictiontechniquearen't
enough, and a lot of refined ways area unit required. This
paper proposes an hour-ahead demand response prediction
for energy management systems. Advanced Reinforcement
learning and Artificial Neural Network for modelling and
understanding very complex systems will allow companies to
represent the complexity of electricity demand in a way
previously unachievable. With the help ofhour-ahead demand
response algorithm for energy management systems, a steady
price prediction model based on LSTM neural network is
presented. More specifically, the objective is to achieve more
accurate forecasts for the electricity demand. Aproperscheme
of energy management can be achieved for multiple units
minimize user energy bills and help the user to significantly
reduce its electricity cost comparedwithabenchmarkwithout
demand response.
Key Words: Machine learning, LSTM neural network,
demand response, energy management
1. INTRODUCTION
Changes in electric variables such as electricityprice, energy
consumption and its operations requires energy
management systems to take accurate real time actions
correctly and instantly[1].Demand response become
significant role in terms of promoting efficiency and
reliability of energy systems with the help of modern
advances in informationand communicationsystems(ICT's)
and smart metering infrastructure, as it affords the capacity
to balance electricity supply and demand incongruity by
regulating loads[2]. A well-designed DR scheme in an EMS
can have significant positive effects on society, like
improving human comfort levels, facilitating the
accommodation of renewable resources, reducing
worldwide energyexpenditure,and reducingrelianceonfuel
resources related to high carbon emissions [3],[4]. Several
energy management system (EMS) structures under an
hourly pricing DR were developed to determine the optimal
appliance scheduling based on a mixed-integer linear
programming (MILP) approach, with the aim of reducing
user costs and enhancing energy efficiency [5]-[7].
2. RELATED WORKS
For past few years, with the rapid evolution of artificial
intelligence (AI), muchattention has been devoted to the use
of AI for optimal decision-making. Through the studies
developed,considersreinforcementlearning(RL)foroptimal
decision making [8]. Some research has also been done on
adopting RL forsolving decision-making problems in energy
management. For example, in [9], [10], the authors applied
RL-based algorithms to energy trading games among
different strategic players with incomplete information,
enabling each player used the learning scheme to choose a
strategy to trade energy in an independent market, so as to
maximize the average revenue.
Recently, the authorsof[11],[12]presentedaprice-basedDR
scheme linking the service provider to its customers via RL
methodology, where the scheme was modelled as a Markov
decision process (MDP), then Q-learning was used to make
optimal decisions. However, despite these efforts, there still
exist two significant limitations. The studies in [13], [14]
proposes batch RL algorithmscheduleloadsunderdayahead
pricingschemes.In[15]-[17],RLalgorithmsusedtoobtainan
energy consumption plan for electronic vehicles (EV). First,
most studies focused on only one kind of appliance such as
thermostatically controlloador EV thatdidnotconsiderhow
the proposed learning algorithms would enable decision-
making when dealing with multiple types of appliances.
Second, all studies considered day-ahead energy
management, but the hour-ahead DR exhibits greater
potential for balancing power systems due to the dynamic
constraints associated with energy generation and the
uncertainty in prediction [18].
Going through the above-mentioned issues, this paper
proposes an hour ahead demand response algorithm for
multiple units of load in a grid. To solve issues regarding
uncertainty in futureprice, astablepriceforecastingmodelis
presented using Long Short-Term Memory (LSTM)Neural
Network. Over a past few years, price forecasting methods
become an important topic in electrical engineering and
several implementation methods attempted. And by using
LSTM the power consumption can be monitored and
advanced measures can be taken by the service providers
based on the predicted output. The LSTM approach is
comparativelyeasytoimplementandhavegoodperformance
than other techniques such as ARIMA model [19].
3. SYSTEM DESIGN
First of all wemust understandaboutanenergymanagement
system and its architecture. Here a block diagram shows a
structure of energy management systems across a grid. This
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3063
area contains several energy consumption units under
service provider.
Fig -1: Energy Management System Architecture
3.1 Vector Conversion
Vectors are a foundational element of linear algebra. Vectors
are used throughout the field of machine learning in the
description of algorithms and processes such as the target
variable (y) when training an algorithm. A vector is a tuple of
one or more values called scalars. Vectors are built from
components, which are ordinary numbers. The LSTM input
layer is specified by the “input shape” argument on the first
hidden layer of the network. The three dimensions of this
input are:
a) Samples. One sequence is one sample. A batch is
comprised of one or more samples.
b) Time Steps. One time step is one point of observation in
the sample.
c) Features. One feature is one observation at a time step.
This means that the input layer expects a 3D array of data
when fitting the model and when making predictions, even if
specific dimensions of the array contain a single value, e.g.
one sample or one feature. When defining the input layer of
your LSTM network, the network assumes you have 1 or
more samples and requires that you specify the number of
time steps and the number of features. You can do this by
specifying a tuple to the “input shape” argument..
3.2 Understanding LSTM Neural Network Vector
Conversion
Recurrent neural networks re unrolled programmatically
during training and prediction. An LSTM network is a
recurrent neural network that has LSTM cell blocks in place
of our standard neural network layers. These cells have
various components called the input gate, the forgetgateand
the output gate.
Fig -2: LSTM cell diagram
Notice first, on the left hand side, we have our new
word/sequence value xt being concatenated to the previous
output from the cell ht−1. The first step for this combined
input is forit to be squashedvia a tanh layer.Thesecondstep
is that this input is passed through an input gate. An input
gate is a layer of sigmoid activated nodes whose output is
multiplied by the squashed input. These input gate sigmoids
canact to “kill off” any elements oftheinputvectorthataren’t
required. A sigmoid functionoutputsvaluesbetween0and1,
so the weights connecting the input to these nodes can be
trained to output values close to zero to “switch off” certain
input values (or, conversely, outputs close to 1 to “pass
through” other values).
The next step in the flow of data through this cell is the
internal state or forget gateloop. LSTM cells have an internal
state variable st. This variable, lagged onetime step
i.e. st−1 is added to the input data to create an effective layer
of recurrence. This addition operation, instead of a
multiplication operation,helpstoreducetheriskofvanishing
gradients. However, this recurrence loop is controlled by a
forget gate – this works the same as the input gate, but
instead helps the network learn which statevariablesshould
be “remembered” or “forgotten”. Finally, we have an output
layer tanh squashing function, the output of which is
controlled by an output gate. This gate determines which
values are actually allowed as an output from the cell ht. The
mathematics of the LSTM cell looks like this: Input First, the
input is squashed between -1 and 1 using a tanh activation
function.
3.3 System Structure
The structure shows the load or energy consumption is
monitored by theserviceprovider.Theserviceprovidergives
the hour ahead electricity price to the energy management
system and the system can give the load control command
across the units. In designing, the model is started with a
dataset that used as input and by training and testing this
dataset, and an output is plotted as graph. Using this graph,
the predicted values can be analysed. The following figure
shows the bock diagram of the system.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3064
Fig -3: System Structure
3.4 Predicted Result
By performing the complete machine learning purpose
through LSTM neural network, the output is the forecasted
price on the hour ahead manner. After training the data , we
test the prediction result in order to make sure about the
efficiency of the system. For which the data has been splitted
as 90% for training and 10% for testing. The result can be
plotted on a graph such that electricity load in y axis and
hours in x axis. This can be figured out as shown below.
Fig -4: Plotted Graph
4. PERFORMANCE EVALUATION
Performance of the price forecasting model is evaluated on
the basis of some data collected during the previous years.
Figure 6 shows a comparison of forecasted prices for last 7
days of January 2020, where the blue line represents the
actual price and red line denotes the forecasted price. From
the figure we can see that the trends in actual price is quite
same as forecasted price. Compared to the price forecasting
results in [20], [21], indicating that the LSTM model in this
paper make accurate and reasonable price forecasting
method.
Fig -5: Result analysis
5. CONCLUSION
In this paper we proposed a price-based demand response
for energy consumption in a day ahead energy system using
LSTM neural network.Theperformanceevaluationdone and
shows that actual and forecastedpricesaretendstobesame.
REFERENCES
[1] M. Muratori and G. Rizzoni, “Residential demand
response: Dynamic energy management and time-
varying electricity pricing,” IEEE TransactionsonPower
systems, vol. 31, no. 2, pp. 1108–1117, 2016.
[2] M. Yu, R. Lu, and S. H. Hong, “A real-time decision model
for industrial load managementina smartgrid,”Applied
energy, vol. 183, pp. 1488–1497, 2016.
[3] Y. M. Ding, S. H. Hong, and X. H. Li, “A demand response
energy management scheme for industrial facilities in
smart grid,”IEEETransactionsonIndustrial Informatics,
vol. 10, no. 4, pp. 2257–2269, 2014.
[4] Y.-C. Li and S. H. Hong, “Real-time demand bidding for
energy management in discrete manufacturing
facilities,” IEEE Transactions on Industrial Electronics,
vol. 64, no. 1, pp. 739–749, 2017.
[5] F. De Angelis, M. Boaro, D. Fuselli, S. Squartini, F. Piazza,
and Q. Wei, “Optimal home energy management under
dynamic electrical and thermal constraints,” IEEE
Transactions on Industrial Informatics, vol. 9, no. 3, pp.
1518–1527, 2013.
[6] N. G. Paterakis, O. Erdinc, A. G. akirtzis,andJ.P.Catalao,
“Optimal household appliances scheduling under day-
ahead pricing and load shaping demand response
strategies,” IEEE TransactionsonIndustrial Informatics,
vol. 11, no. 6, pp. 1509–1519, 2015.
[7] S. Pal and R. Kumar, “Electric vehicleschedulingstrategy
in residential demandresponseprograms withneighbor
connection,” IEEE Transactions on Industrial
Informatics, vol. 14, no. 3, pp. 980–988, 2018.
[8] M. Yu and S. H. Hong, “A real-time demand-response
algorithm for smart grids: A stackelberg game
approach,” IEEE Transactions on Smart Grid, vol. 7, no.
2, pp. 879–888, 2016.
[9] H. Wang, T. Huang, X. Liao, H. Abu-Rub, and G. Chen,
“Reinforcement learning in energy trading gameamong
smart microgrids,” IEEE Transactions on Industrial
Electronics, vol. 63, no. 8, pp. 5109–5119, 2016.
[10] H. Wang, T. Huang, X. Liao, H. Abu-Rub, and G. Chen,
“Reinforcement learning for constrained energytrading
games with incomplete information,” IEEE transactions
on cybernetics, vol. 47, no. 10, pp. 3404–3416,2017.
[11] R. Lu, S. H. Hong, X. Zhang, X. Ye, and W. S. Song, “A
perspective on reinforcement learning in price-based
demand response for smart grid,” in 2017 International
Conference on Computational Science and
Computational Intelligence(CSCI),pp.1822–1823,IEEE,
2017.
[12] R. Lu, S. H. Hong, and X. Zhang, “A dynamic pricing
demand response algorithm for smart grid:
Reinforcement learning approach,” Applied Energy,vol.
220, pp. 220–230, 2018.
[13] F. Ruelens,B. J.Claessens, S.Quaiyum, B. De Schutter, R.
Babuska, and R. Belmans, Reinforcement learning
applied to an electric water heater: From theory to
practice,” IEEE Transactions onSmartGrid,no.99,pp.1–
9, 2016.
[14] F. Ruelens, B. J. Claessens, S. Vandael, B. De Schutter, R.
Babuska, ˇ and R. elmans, “Residential demand
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3065
response of thermostatically controlled loads using
batch reinforcement learning,” IEEE Transactions on
Smart Grid, vol. 8, no. 5, pp. 2149–2159, 2017.
[15] S. Vandael, B. Claessens, D. Ernst, T. Holvoet, and G.
Deconinck, “Reinforcement learning of heuristicevfleet
charging in a day-ahead electricity market,” IEEE
Transactions on Smart Grid, vol. 6, no.4,pp.1795–1805,
2015.
[16] T. Liu, Y. Zou, D. Liu, and F. Sun, “Reinforcement
learning of adaptiveenergy managementwithtransition
probability for a hybrid electric tracked vehicle,” IEEE
Transactions on Industrial Electronics, vol. 62, no. 12,
pp. 7837–7846, 2015.
[17] A. Chis , J. Lunden, and . Koivunen, “Reinforcement
learning-based plug-in electric vehicle charging with
forecasted price,” IEEE Transactions on ehicular
Technology, vol. 66, no. 5, pp. 3674–3684, 2017.
[18] X. Huang, S. H. Hong, and Y. Li, “Hour-ahead price based
energy management scheme for industrial facilities,”
IEEE Transactions on Industrial Informatics, vol. 13, no.
6, pp. 2886–2898, 2017.
[19] N. Chaabane, “A hybrid arfima and neural network
model for electricity ˆprice prediction,” International
Journal of Electrical Power & Energy Systems, vol. 55,
pp. 187–194, 2014.
[20] I. P. Panapakidis and A. S. Dagoumas, “Day-ahead
electricity price forecasting via the application of
artificial neural network basedmodels,”AppliedEnergy,
vol. 172, pp. 132–151, 2016.
BIOGRAPHIES
Harshiyanas M
Department of Computer Science
and Engineering
APJ Abdul Kalam Technological
University-India

More Related Content

PDF
Energy efficient-resource-allocation-in-distributed-computing-systems
PDF
Implementation and Performance Analysis of a Vedic Multiplier Using Tanner ED...
PDF
IRJET- Optimal Placement and Size of DG and DER for Minimizing Power Loss and...
PDF
A review on optimal placement and sizing of custom power devices/FACTS device...
PDF
IRJET- Optimal Placement and Size of DG and DER for Minimizing Power Loss and...
PDF
40220140503002
PDF
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
PDF
Design and Implementation of a Programmable Truncated Multiplier
Energy efficient-resource-allocation-in-distributed-computing-systems
Implementation and Performance Analysis of a Vedic Multiplier Using Tanner ED...
IRJET- Optimal Placement and Size of DG and DER for Minimizing Power Loss and...
A review on optimal placement and sizing of custom power devices/FACTS device...
IRJET- Optimal Placement and Size of DG and DER for Minimizing Power Loss and...
40220140503002
IRJET - Design of a Low Power Serial- Parallel Multiplier with Low Transition...
Design and Implementation of a Programmable Truncated Multiplier

What's hot (20)

PDF
A LITERATURE SURVEY ON ENERGY SAVING SCHEME IN CELLULAR RADIO ACCESS NETWORKS...
PDF
CONFIGURABLE TASK MAPPING FOR MULTIPLE OBJECTIVES IN MACRO-PROGRAMMING OF WIR...
PDF
Firefly Algorithm to Opmimal Distribution of Reactive Power Compensation Units
PDF
IRJET- Design of 16 Bit Low Power Vedic Architecture using CSA & UTS
PDF
On the-joint-optimization-of-performance-and-power-consumption-in-data-centers
PDF
A040101001006
PDF
VOLTAGE PROFILE IMPROVEMENT AND LINE LOSSES REDUCTION USING DG USING GSA AND ...
PDF
Design and Implementation of Low Power DSP Core with Programmable Truncated V...
PDF
32 bit×32 bit multiprecision razor based dynamic
PDF
G42013438
PDF
E0812730
PDF
IRJET- Optimal Power Flow Solution of Transmission Line Network of Electric p...
PDF
G011136871
PDF
F011136467
PDF
Impact analysis of actuator torque degradation on the IRB 120 robot performan...
PDF
H011137281
PDF
Adaptive beamforming using lms algorithm
PPT
Grid Connected Electricity Storage Systems (2/2)
PDF
Coordinated Placement and Setting of FACTS in Electrical Network based on Kal...
PDF
Optimal planning of RDGs in electrical distribution networks using hybrid SAP...
A LITERATURE SURVEY ON ENERGY SAVING SCHEME IN CELLULAR RADIO ACCESS NETWORKS...
CONFIGURABLE TASK MAPPING FOR MULTIPLE OBJECTIVES IN MACRO-PROGRAMMING OF WIR...
Firefly Algorithm to Opmimal Distribution of Reactive Power Compensation Units
IRJET- Design of 16 Bit Low Power Vedic Architecture using CSA & UTS
On the-joint-optimization-of-performance-and-power-consumption-in-data-centers
A040101001006
VOLTAGE PROFILE IMPROVEMENT AND LINE LOSSES REDUCTION USING DG USING GSA AND ...
Design and Implementation of Low Power DSP Core with Programmable Truncated V...
32 bit×32 bit multiprecision razor based dynamic
G42013438
E0812730
IRJET- Optimal Power Flow Solution of Transmission Line Network of Electric p...
G011136871
F011136467
Impact analysis of actuator torque degradation on the IRB 120 robot performan...
H011137281
Adaptive beamforming using lms algorithm
Grid Connected Electricity Storage Systems (2/2)
Coordinated Placement and Setting of FACTS in Electrical Network based on Kal...
Optimal planning of RDGs in electrical distribution networks using hybrid SAP...
Ad

Similar to IRJET - Demand Response for Energy Management using Machine Learning and LSTM Neural Network (20)

PPTX
Test different neural networks models for forecasting of wind,solar and energ...
PDF
Predicting Stock Price Movements with Low Power Consumption LSTM
PDF
IRJET- Stock Market Cost Forecasting by Recurrent Neural Network on Long Shor...
PDF
A Hybrid Deep Neural Network Model For Time Series Forecasting
PDF
STOCK MARKET PREDICTION USING NEURAL NETWORKS
PDF
Nov 2018 Table of contents; current issue -International Journal on Soft Comp...
PDF
Effective Multi-Stage Training Model for Edge Computing Devices in Intrusion ...
PDF
Effective Multi-Stage Training Model for Edge Computing Devices in Intrusion ...
PPTX
PREDICTING SHORT TERM CHARGING OF EV VEHCILES .pptx
PPTX
artificial neural network in smart grid 123.pptx
PPTX
Final PPT.pptx
PPTX
ODSC - Neural Networks on AWS Lambda
PDF
Electricity Price Forecasting Using ELM-Tree Approach
PPTX
Electricity price forecasting with Recurrent Neural Networks
PDF
A study of Machine Learning approach for Predictive Maintenance in Industry 4.0
PDF
IRJET- Stock Price Prediction using Long Short Term Memory
PDF
Short Term Load Forecasting: One Week (With & Without Weekend) Using Artifici...
PDF
Forecasting Energy Consumption Using Fuzzy Transform and Local Linear Neuro F...
PDF
FORECASTING ENERGY CONSUMPTION USING FUZZY TRANSFORM AND LOCAL LINEAR NEURO F...
PDF
Load Forecasting Using LSTM Model
Test different neural networks models for forecasting of wind,solar and energ...
Predicting Stock Price Movements with Low Power Consumption LSTM
IRJET- Stock Market Cost Forecasting by Recurrent Neural Network on Long Shor...
A Hybrid Deep Neural Network Model For Time Series Forecasting
STOCK MARKET PREDICTION USING NEURAL NETWORKS
Nov 2018 Table of contents; current issue -International Journal on Soft Comp...
Effective Multi-Stage Training Model for Edge Computing Devices in Intrusion ...
Effective Multi-Stage Training Model for Edge Computing Devices in Intrusion ...
PREDICTING SHORT TERM CHARGING OF EV VEHCILES .pptx
artificial neural network in smart grid 123.pptx
Final PPT.pptx
ODSC - Neural Networks on AWS Lambda
Electricity Price Forecasting Using ELM-Tree Approach
Electricity price forecasting with Recurrent Neural Networks
A study of Machine Learning approach for Predictive Maintenance in Industry 4.0
IRJET- Stock Price Prediction using Long Short Term Memory
Short Term Load Forecasting: One Week (With & Without Weekend) Using Artifici...
Forecasting Energy Consumption Using Fuzzy Transform and Local Linear Neuro F...
FORECASTING ENERGY CONSUMPTION USING FUZZY TRANSFORM AND LOCAL LINEAR NEURO F...
Load Forecasting Using LSTM Model
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...

Recently uploaded (20)

PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Artificial Intelligence
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPT
Project quality management in manufacturing
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
R24 SURVEYING LAB MANUAL for civil enggi
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Lecture Notes Electrical Wiring System Components
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
UNIT 4 Total Quality Management .pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Artificial Intelligence
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Internet of Things (IOT) - A guide to understanding
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Project quality management in manufacturing
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
additive manufacturing of ss316l using mig welding
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Embodied AI: Ushering in the Next Era of Intelligent Systems

IRJET - Demand Response for Energy Management using Machine Learning and LSTM Neural Network

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072 © 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3062 Demand Response for Energy Management Using Machine Learning and LSTM Neural Network Harshiyanas M Department of Computer Science and Engineering &APJ Abdul Kalam Technological University-India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - Prediction of power demand plays a necessary role within the electrical trade, becauseitprovidesthepremise for creating selections in installation designingand operation. In a dynamic atmospherestandardpredictiontechniquearen't enough, and a lot of refined ways area unit required. This paper proposes an hour-ahead demand response prediction for energy management systems. Advanced Reinforcement learning and Artificial Neural Network for modelling and understanding very complex systems will allow companies to represent the complexity of electricity demand in a way previously unachievable. With the help ofhour-ahead demand response algorithm for energy management systems, a steady price prediction model based on LSTM neural network is presented. More specifically, the objective is to achieve more accurate forecasts for the electricity demand. Aproperscheme of energy management can be achieved for multiple units minimize user energy bills and help the user to significantly reduce its electricity cost comparedwithabenchmarkwithout demand response. Key Words: Machine learning, LSTM neural network, demand response, energy management 1. INTRODUCTION Changes in electric variables such as electricityprice, energy consumption and its operations requires energy management systems to take accurate real time actions correctly and instantly[1].Demand response become significant role in terms of promoting efficiency and reliability of energy systems with the help of modern advances in informationand communicationsystems(ICT's) and smart metering infrastructure, as it affords the capacity to balance electricity supply and demand incongruity by regulating loads[2]. A well-designed DR scheme in an EMS can have significant positive effects on society, like improving human comfort levels, facilitating the accommodation of renewable resources, reducing worldwide energyexpenditure,and reducingrelianceonfuel resources related to high carbon emissions [3],[4]. Several energy management system (EMS) structures under an hourly pricing DR were developed to determine the optimal appliance scheduling based on a mixed-integer linear programming (MILP) approach, with the aim of reducing user costs and enhancing energy efficiency [5]-[7]. 2. RELATED WORKS For past few years, with the rapid evolution of artificial intelligence (AI), muchattention has been devoted to the use of AI for optimal decision-making. Through the studies developed,considersreinforcementlearning(RL)foroptimal decision making [8]. Some research has also been done on adopting RL forsolving decision-making problems in energy management. For example, in [9], [10], the authors applied RL-based algorithms to energy trading games among different strategic players with incomplete information, enabling each player used the learning scheme to choose a strategy to trade energy in an independent market, so as to maximize the average revenue. Recently, the authorsof[11],[12]presentedaprice-basedDR scheme linking the service provider to its customers via RL methodology, where the scheme was modelled as a Markov decision process (MDP), then Q-learning was used to make optimal decisions. However, despite these efforts, there still exist two significant limitations. The studies in [13], [14] proposes batch RL algorithmscheduleloadsunderdayahead pricingschemes.In[15]-[17],RLalgorithmsusedtoobtainan energy consumption plan for electronic vehicles (EV). First, most studies focused on only one kind of appliance such as thermostatically controlloador EV thatdidnotconsiderhow the proposed learning algorithms would enable decision- making when dealing with multiple types of appliances. Second, all studies considered day-ahead energy management, but the hour-ahead DR exhibits greater potential for balancing power systems due to the dynamic constraints associated with energy generation and the uncertainty in prediction [18]. Going through the above-mentioned issues, this paper proposes an hour ahead demand response algorithm for multiple units of load in a grid. To solve issues regarding uncertainty in futureprice, astablepriceforecastingmodelis presented using Long Short-Term Memory (LSTM)Neural Network. Over a past few years, price forecasting methods become an important topic in electrical engineering and several implementation methods attempted. And by using LSTM the power consumption can be monitored and advanced measures can be taken by the service providers based on the predicted output. The LSTM approach is comparativelyeasytoimplementandhavegoodperformance than other techniques such as ARIMA model [19]. 3. SYSTEM DESIGN First of all wemust understandaboutanenergymanagement system and its architecture. Here a block diagram shows a structure of energy management systems across a grid. This
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072 © 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3063 area contains several energy consumption units under service provider. Fig -1: Energy Management System Architecture 3.1 Vector Conversion Vectors are a foundational element of linear algebra. Vectors are used throughout the field of machine learning in the description of algorithms and processes such as the target variable (y) when training an algorithm. A vector is a tuple of one or more values called scalars. Vectors are built from components, which are ordinary numbers. The LSTM input layer is specified by the “input shape” argument on the first hidden layer of the network. The three dimensions of this input are: a) Samples. One sequence is one sample. A batch is comprised of one or more samples. b) Time Steps. One time step is one point of observation in the sample. c) Features. One feature is one observation at a time step. This means that the input layer expects a 3D array of data when fitting the model and when making predictions, even if specific dimensions of the array contain a single value, e.g. one sample or one feature. When defining the input layer of your LSTM network, the network assumes you have 1 or more samples and requires that you specify the number of time steps and the number of features. You can do this by specifying a tuple to the “input shape” argument.. 3.2 Understanding LSTM Neural Network Vector Conversion Recurrent neural networks re unrolled programmatically during training and prediction. An LSTM network is a recurrent neural network that has LSTM cell blocks in place of our standard neural network layers. These cells have various components called the input gate, the forgetgateand the output gate. Fig -2: LSTM cell diagram Notice first, on the left hand side, we have our new word/sequence value xt being concatenated to the previous output from the cell ht−1. The first step for this combined input is forit to be squashedvia a tanh layer.Thesecondstep is that this input is passed through an input gate. An input gate is a layer of sigmoid activated nodes whose output is multiplied by the squashed input. These input gate sigmoids canact to “kill off” any elements oftheinputvectorthataren’t required. A sigmoid functionoutputsvaluesbetween0and1, so the weights connecting the input to these nodes can be trained to output values close to zero to “switch off” certain input values (or, conversely, outputs close to 1 to “pass through” other values). The next step in the flow of data through this cell is the internal state or forget gateloop. LSTM cells have an internal state variable st. This variable, lagged onetime step i.e. st−1 is added to the input data to create an effective layer of recurrence. This addition operation, instead of a multiplication operation,helpstoreducetheriskofvanishing gradients. However, this recurrence loop is controlled by a forget gate – this works the same as the input gate, but instead helps the network learn which statevariablesshould be “remembered” or “forgotten”. Finally, we have an output layer tanh squashing function, the output of which is controlled by an output gate. This gate determines which values are actually allowed as an output from the cell ht. The mathematics of the LSTM cell looks like this: Input First, the input is squashed between -1 and 1 using a tanh activation function. 3.3 System Structure The structure shows the load or energy consumption is monitored by theserviceprovider.Theserviceprovidergives the hour ahead electricity price to the energy management system and the system can give the load control command across the units. In designing, the model is started with a dataset that used as input and by training and testing this dataset, and an output is plotted as graph. Using this graph, the predicted values can be analysed. The following figure shows the bock diagram of the system.
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072 © 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3064 Fig -3: System Structure 3.4 Predicted Result By performing the complete machine learning purpose through LSTM neural network, the output is the forecasted price on the hour ahead manner. After training the data , we test the prediction result in order to make sure about the efficiency of the system. For which the data has been splitted as 90% for training and 10% for testing. The result can be plotted on a graph such that electricity load in y axis and hours in x axis. This can be figured out as shown below. Fig -4: Plotted Graph 4. PERFORMANCE EVALUATION Performance of the price forecasting model is evaluated on the basis of some data collected during the previous years. Figure 6 shows a comparison of forecasted prices for last 7 days of January 2020, where the blue line represents the actual price and red line denotes the forecasted price. From the figure we can see that the trends in actual price is quite same as forecasted price. Compared to the price forecasting results in [20], [21], indicating that the LSTM model in this paper make accurate and reasonable price forecasting method. Fig -5: Result analysis 5. CONCLUSION In this paper we proposed a price-based demand response for energy consumption in a day ahead energy system using LSTM neural network.Theperformanceevaluationdone and shows that actual and forecastedpricesaretendstobesame. REFERENCES [1] M. Muratori and G. Rizzoni, “Residential demand response: Dynamic energy management and time- varying electricity pricing,” IEEE TransactionsonPower systems, vol. 31, no. 2, pp. 1108–1117, 2016. [2] M. Yu, R. Lu, and S. H. Hong, “A real-time decision model for industrial load managementina smartgrid,”Applied energy, vol. 183, pp. 1488–1497, 2016. [3] Y. M. Ding, S. H. Hong, and X. H. Li, “A demand response energy management scheme for industrial facilities in smart grid,”IEEETransactionsonIndustrial Informatics, vol. 10, no. 4, pp. 2257–2269, 2014. [4] Y.-C. Li and S. H. Hong, “Real-time demand bidding for energy management in discrete manufacturing facilities,” IEEE Transactions on Industrial Electronics, vol. 64, no. 1, pp. 739–749, 2017. [5] F. De Angelis, M. Boaro, D. Fuselli, S. Squartini, F. Piazza, and Q. Wei, “Optimal home energy management under dynamic electrical and thermal constraints,” IEEE Transactions on Industrial Informatics, vol. 9, no. 3, pp. 1518–1527, 2013. [6] N. G. Paterakis, O. Erdinc, A. G. akirtzis,andJ.P.Catalao, “Optimal household appliances scheduling under day- ahead pricing and load shaping demand response strategies,” IEEE TransactionsonIndustrial Informatics, vol. 11, no. 6, pp. 1509–1519, 2015. [7] S. Pal and R. Kumar, “Electric vehicleschedulingstrategy in residential demandresponseprograms withneighbor connection,” IEEE Transactions on Industrial Informatics, vol. 14, no. 3, pp. 980–988, 2018. [8] M. Yu and S. H. Hong, “A real-time demand-response algorithm for smart grids: A stackelberg game approach,” IEEE Transactions on Smart Grid, vol. 7, no. 2, pp. 879–888, 2016. [9] H. Wang, T. Huang, X. Liao, H. Abu-Rub, and G. Chen, “Reinforcement learning in energy trading gameamong smart microgrids,” IEEE Transactions on Industrial Electronics, vol. 63, no. 8, pp. 5109–5119, 2016. [10] H. Wang, T. Huang, X. Liao, H. Abu-Rub, and G. Chen, “Reinforcement learning for constrained energytrading games with incomplete information,” IEEE transactions on cybernetics, vol. 47, no. 10, pp. 3404–3416,2017. [11] R. Lu, S. H. Hong, X. Zhang, X. Ye, and W. S. Song, “A perspective on reinforcement learning in price-based demand response for smart grid,” in 2017 International Conference on Computational Science and Computational Intelligence(CSCI),pp.1822–1823,IEEE, 2017. [12] R. Lu, S. H. Hong, and X. Zhang, “A dynamic pricing demand response algorithm for smart grid: Reinforcement learning approach,” Applied Energy,vol. 220, pp. 220–230, 2018. [13] F. Ruelens,B. J.Claessens, S.Quaiyum, B. De Schutter, R. Babuska, and R. Belmans, Reinforcement learning applied to an electric water heater: From theory to practice,” IEEE Transactions onSmartGrid,no.99,pp.1– 9, 2016. [14] F. Ruelens, B. J. Claessens, S. Vandael, B. De Schutter, R. Babuska, ˇ and R. elmans, “Residential demand
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072 © 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 3065 response of thermostatically controlled loads using batch reinforcement learning,” IEEE Transactions on Smart Grid, vol. 8, no. 5, pp. 2149–2159, 2017. [15] S. Vandael, B. Claessens, D. Ernst, T. Holvoet, and G. Deconinck, “Reinforcement learning of heuristicevfleet charging in a day-ahead electricity market,” IEEE Transactions on Smart Grid, vol. 6, no.4,pp.1795–1805, 2015. [16] T. Liu, Y. Zou, D. Liu, and F. Sun, “Reinforcement learning of adaptiveenergy managementwithtransition probability for a hybrid electric tracked vehicle,” IEEE Transactions on Industrial Electronics, vol. 62, no. 12, pp. 7837–7846, 2015. [17] A. Chis , J. Lunden, and . Koivunen, “Reinforcement learning-based plug-in electric vehicle charging with forecasted price,” IEEE Transactions on ehicular Technology, vol. 66, no. 5, pp. 3674–3684, 2017. [18] X. Huang, S. H. Hong, and Y. Li, “Hour-ahead price based energy management scheme for industrial facilities,” IEEE Transactions on Industrial Informatics, vol. 13, no. 6, pp. 2886–2898, 2017. [19] N. Chaabane, “A hybrid arfima and neural network model for electricity ˆprice prediction,” International Journal of Electrical Power & Energy Systems, vol. 55, pp. 187–194, 2014. [20] I. P. Panapakidis and A. S. Dagoumas, “Day-ahead electricity price forecasting via the application of artificial neural network basedmodels,”AppliedEnergy, vol. 172, pp. 132–151, 2016. BIOGRAPHIES Harshiyanas M Department of Computer Science and Engineering APJ Abdul Kalam Technological University-India