Next Article in Journal
Numerical Investigation of the Enhanced Stirring Characteristics of a Multi-Lance Top-Blowing Continuous Converting Furnace for Lance Arrangement and Variable-Velocity Blowing
Next Article in Special Issue
Enhancement of Microgrid Frequency Stability Based on the Combined Power-to-Hydrogen-to-Power Technology under High Penetration Renewable Units
Previous Article in Journal
Flow Field Investigation of a Single Engine Valve Using PIV, POD, and LES
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Real-Time Pricing-Enabled Demand Response Using Long Short-Time Memory Deep Learning

by
Aftab Ahmed Almani
*,† and
Xueshan Han
Key Laboratory of Power System Intelligent Dispatch and Control, Shandong University, Jingshi Road 17923, Jinan 250000, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Submission received: 29 January 2023 / Revised: 24 February 2023 / Accepted: 27 February 2023 / Published: 2 March 2023
(This article belongs to the Special Issue Modern Energy Storage Technologies towards Decarbonized Power Systems)

Abstract

:
Sustainable energy development requires environment-friendly energy-generating methods. Pricing system constraints influence the efficient use of energy resources. Real-Time Pricing (RTP) is theoretically superior to previous pricing systems for allowing demand response (DR) activities. The DR approach has been useful for correcting supply–demand imbalances as technology has evolved. There are several systems for determining and controlling the DR. However, most of these solutions are unable to control rising demand or forecast prices for future time slots. This research provides a Real-Time Pricing DR model for energy management based on deep learning, where the learning framework is trained on demand response and real-time pricing. The study data in this article were taken from the Australian Energy Market Operator (AEMO), and the learning framework was trained over 17 years of data to forecast the real future energy price and demand. To investigate the suggested deep learning-based dynamic pricing strategy, two prediction instances are addressed: actual–predicted demand and actual–predicted price. We estimated pricing and demand outcomes using long short-term memory (LSTM), which were then greatly improved by architectural changes in the model. The findings showed that the suggested model is suitable for energy management in terms of demand and price prediction.

1. Introduction

Due to its rapid response ability in regard to supply–demand imbalances, Real-Time Pricing (RTP) has emerged, in recent years, as an effective method for reducing the cost of energy and improving real-time pricing, as a result of the rapid development of increasingly sophisticated technologies in the field of sustainable energy systems [1,2]. RTP refers to a tariff or procedure established to encourage adjustments in the pricing of energy over time or to offer incentive costs premeditated to persuade lower power usage when market prices are high or when the situation is one in which grid reliability is at risk [3]. According to the most recent research [4], Real-time pricing may be divided into 2 distinct categories: price-based RTP and incentive-based RTP. The price-based RTP convinces a customer to adjust the pattern of energy utilization during times when the price of energy is fluctuating, whereas the incentive-based demand response contributes to flat or variable incentives being offered to a customer for reduced energy utilization during times when the power systems are overloading [5]. Both varieties come with their own set of ancillary benefits, each of which has a unique set of possible applications for satisfying demand. Price-based RTP is the primary topic of this investigation. Numerous research works have been conducted to investigate its usefulness, as seen in Figure 1, together with the other subcategories [6,7,8]. Price-based RTP bestows several beneficial qualities, such as convenience, dependability, and speed of calculation, among others. In the illustrative case [9], researchers investigated how demand response affected reliability improvement. A peak price-based RTP program is an essential pricing program that is implemented at a certain crucial period when power systems experience emergency circumstances [10].
RTP has attracted a lot of attention in comparison to other pricing plans in price-based schemes because it establishes a connection between suppliers and consumers [11] and provides a rational response to the competition. It is also an effective strategy for utilities to increase their level of competition and keep customers [12,13]. A key element of an energy management system is prediction. While scheduling requires estimates of future pricing, modeling the RTP requires projections of prospective demand [14,15]. Thus, predictions provide a prospective planning strategy for the dynamic rates and assist customers in planning their energy use under RTP scenarios. Demand estimates may be used to plan supply and generation capacity. Daily, weekly, monthly, and yearly energy demand can be predicted. Controlling and scheduling electricity systems requires minutes-ahead to hours-ahead estimates [16,17,18]. Predictions assist in planning investments and upkeep. Simple and durable methods perform well in predicting long-term energy needs. Day and week seasonality are smoothed using double seasonal Holt–Winters. This system outperformed ARIMA and Holt–Winters for short-term demand forecasts [19]. An extension in [20] included the year’s seasonal cycle and outperformed the double seasonal model and univariate neural network solution. In [21], it was shown that a single-order moving average smoothed E–SVR model may minimize prediction errors. Medium-term energy demand forecasts include weather [22]. Four climatic situations are reduced in serial correlation using meteorological parameters and an autoregressive model. In [23], the TGM enhanced forecast accuracy. With little data and minimal computing effort, grey prediction and the rolling mechanism in [24] projected Turkish energy consumption. Semi-parametric additive models are used to estimate energy demand [25]. Using simulated meteorological data, Reference [26] proposed a probabilistic approach to anticipate energy consumption. Reference [27] used multiple linear regression and ANNs to estimate energy consumption. Figure 1 shows neural model pricing and demand predictions. Usually neural prediction of demand and pricing is based on the neural models used for the said process. This intelligent process starts with a dataset, which was AEMO in this study. The data is normalized and divided into training and testing sets. Different neural models can be applied to achieve the on-hand task. In our case, LSTM was used to predict demand and price. We further calculated the efficiency of the model in terms of, in our case, the relationship between actual and predicted demand/price. This neural prediction is important to easily manage demand and price for a future energy crisis.
Deep learning, which draws its inspiration from distinctive traits, has emerged as the most effective method for formulating efficient energy management system operations in the case of changing conditions, such as fluctuating energy costs and energy use. In this study, a deep learning-based RTP dynamic response approach is proposed, where the learning framework is trained on both demand response and RTP. The learning framework is trained over 17 years of data to forecast the real future energy prices and demand. The research data was gathered from the Australian Energy Market Operator (AEMO). To evaluate the suggested deep learning technique, two prediction cases, actual–predicted demand and actual–predicted price, were addressed. The results showed that the suggested model was suitable for energy management in terms of demand and price prediction. For the model’s training, we utilized New South Wales (NSW) demand and price data from 1999 to 2015. The trained model aids in foreseeing energy demand, as well as providing mechanisms to provide prices that are tied to demand and AEMO behavior. As a result, the model is able to forecast future data on demand and prices, which is useful for predicting future energy needs, understanding how demand is rising over time, estimating how much more energy is needed to build new alternative energy plants, and researching future pricing. Three key contributions are made by this paper. The first is the proposal of a deep learning model for dynamic pricing and demand response. LSTM with several layers is first applied to the AEMO data and optimized to obtain the final model. Second, the learning model is trained using a large database that contains price and demand data spanning 17 years. Before applying the dataset (AEMO), data normalization is applied to balance large deviations and make it suitable for training and testing. Thirdly, the suggested deep learning model after optimization (controlled LSTM) is applied to the dataset to predict the demand (in MW) and price (USD/MWh), separately.
The rest of the paper is structured as follows. Section 2 offers literature related to the topic. Section 3 presents the LSTM-based deep learning for price prediction and demand prediction. In Section 4, experiments and findings are presented with discussions. In Section 5, conclusions are provided.

2. Related Studies

Computational intelligence technologies, such as support vector machine (SVM) [28], decision tree [29], artificial neural network (ANN) [30,31], and fuzzy logic (FL) [32], make up the second way to anticipate demand for power at a price. In recent years, these approaches have seen a great deal of success because of the powerful nonlinearity learning and modeling skills that they possess [33]. These capabilities are implicit in the majority of classic statistical methods. The artificial neural network (ANN) model is now one of the most common ways of making predictions based on a time series [33,34,35]. In [34], the authors first employed ANN with a single hidden layer to anticipate the output price in the Victorian (Australian) power market using historical pricing, demand, and capacity data, in addition to special information linked to the calendar (day code, season, holiday code, etc.).
LSTMs are a specialized sort of RNN, capable of learning long-term dependencies by retaining knowledge of time series for an extended period, while also acquiring new information [36]. When compared to more conventional methods of predicting, the deep learning Long Short-Term Memory (LSTM) technique, which is used in other short-term forecasting, is more accurate on many occasions [37,38]. In the realm of short- and medium-term forecasting, LSTM has also seen widespread use and is successful [39]. According to the findings of a recent research project, called DeepEnergy, which aimed to construct a high-precision ANN for load forecasting, the suggested approach outperformed the conventional LSTM network in terms of the Mean Absolute Percentage Error (MAPE) for a three-day ahead projection. On the other hand, in their implementation of LSTM, they did not take into account other elements that are necessary to successfully train the LSTM network. In addition to this, the data from two distinct months was used for training, and the data from a third month was used for predicting. Since consumption varies from month to month, the accuracy of LSTM predictions might be impacted as a result.
Like [40], the experiment did not explore any factors to increase the model’s accuracy beyond historical energy usage. Reference [41] used a dynamic neural network to load predictions, which seemed accurate. In this research, a short-term load forecasting model, based on an LSTM neural network that considers RTP, is constructed to boost accuracy and generalizability. The weighted method [42] is used for many inputs. Engineering processing dictates this option. This research defines input characteristic weights to increase effective feature contribution and analyze their potential value. IGA finds the best LSTM settings [43]. Parameter-tuned LSTM models are then employed for load forecasting. The customer provided the study’s data, which comprised one characteristic, the value (demand quantity). This time series forecasting task involved predicting demand for subsequent periods based on prior data. Batch IDs (product categories) covered three separate frequencies or periods (monthly, quarterly, and yearly). Our data was broken out annually, quarterly, and monthly. Quarterly and annual data contain fewer points, which exacerbate overfitting. Our forecasts were based on monthly time series, totaling 18-time steps.
In research [44], a short-term price forecasting model for locational marginal pricing (LMP), based on modified temporal convolutional network (mTCN) and attention LSTM (ATT–LSTM) was suggested. This model uses LSTM. Attention–LSTM (ATT–LSTM) has been used to recreate future electrical properties. Modified temporal convolutional network extracts hidden information and long-term temporal relationships from input parameters, which include electrical properties. Datasets from the New England electricity market (ISO-NE) in the US were used to prove the model’s effectiveness. Experiments and comparisons with other models demonstrated that the recommended technique reliably predicted load. Research [45] used LSTM and feature selection algorithms to estimate electricity prices. Market coupling was considered. LSTM models excel in nonlinear problem solving and time series data processing. The recommended models achieved realistic results in our Nordic market study. Findings showed that feature selection was key to good prediction and that integrated market features affected the prediction. According to the feature importance analysis, the German market influenced Nord Pool pricing.
A study in [46] proposed a Deep Learning model that uses LSTM and Convolution Neural Network (CNN) to predict future power prices in the Australian energy market. The selected evaluation metrics showed that the model predicted energy prices better than others. A study in [47] suggested using a deep-stacked LSTM forecasting model to make predictions about power demand. According to the findings of the study, bidirectional (Bi-LSTM) networks performed better in terms of predicting accuracy than unidirectional (Uni-LSTM) networks. The research in [48] developed a novel approach to deep learning that combined LSTM and attention layer to tackle challenges that were discussed before. The study [49] suggests two unique deep RNN models using LSTM units as a means of forecasting the power consumption of buildings with a resolution of one hour over a medium- to long-term time horizon.

3. Proposed LSTM-Based Deep Learning for RTP and DR

We propose an LSTM-based RTP DR model for energy management. The learning framework in this model is trained on demand response and real-time pricing. First, we discuss the basic LSTM model in the following subsection.

3.1. LSTM

One of the challenges that may arise during training a back-propagation neural network (BPNN) is a vanishing gradient, which was the driving force for the creation of the Long Short-Term Memory (LSTM). Figure 2 illustrates the construction of LSTM, which consists of three primary gate structures: the forget gate f t , the input gate i t , and the output gate o t , respectively; x t represents the input data, h t represents the hidden state, and C t acts as a cell state. An LSTM network is capable of computing a mapping from an input sequence X = ( x 1 , x 2 , , x n ) to an output sequence Y = ( x 1 , x 2 , , x n ) ( y 1 , y 2 , , y m ) . The calculation performed by an LSTM cell at time t, given an input x t , is as follows:
f t = σ ( W f x t ) + U f h t 1 + b f
i t = σ ( W i x t ) + U i h t 1 + b i
g t = tanh ( W g x t ) + U g h t 1 + b g
o t = σ ( W o x t ) + U o h t 1 + b o
C t = i t g t + f t C t 1
h t = O t tanh C t
where σ and tanh represent the activation function, W and U represent the weight of the forget gate, and b represents the bias vector. The cell states at times t 1 and t are denoted by C t 1 and C t , respectively. Another reason why LSTM was a strong option for this study was that it accepts sequence data as input, in contrast to other models, like ARMA, ELM, and SVM, which need lag observations to be supplied as input features [50]. This was one of the reasons why LSTM was such an excellent choice. LSTMs can utilize the time-series input to search for the optimal amount of look-backs and look for patterns on their own [50]. This is possible because LSTMs do not need fixed-size input data.

3.2. Our LSTM-Based Model for RTP and DR

We propose an LSTM-based dynamic pricing DR model for energy management, illustrated in Figure 3. The learning framework in this model was trained on demand response and real-time pricing. The research data was taken from the Australian Energy Market Operator (AEMO), and the learning framework was trained over 17 years’ worth of data to estimate the real future energy price and demand. To evaluate the effectiveness of the proposed LSTM-based dynamic pricing strategy, two forecasting situations, including actual–predicted demand and actual–predicted price, were investigated. The findings showed that the suggested model was suitable for energy management in terms of the demand and price forecasting that it offers. The model was trained on demand and pricing data for the state of New South Wales (NSW) spanning the years 1999 through to 2015. The trained model contributes to the prediction of future energy demand and the mechanism to give prices that are directly tied to the demand and behavior of AEMO. As a consequence of this, the model is able to predict the future data for demand and prices, which is beneficial for analyzing future energy demand, comprehending increasing demand through the years, calculating the amount of increased energy to make plans for new alternative energy plants, and studying future pricing.

3.3. Methodology

The model uses price and demand as inputs, which are divided into three columns: the first from date and hour, the second from prices per 30 min, and the third from demand per 30 min. Multilayer LSTMs are used to implement the Model. To simulate the environment, we used additional LSTMs that were trained on previous data and estimate the future state price and demand. The dataset was divided into training and testing sets. The first six years (2010–2016) were used to train the model, while the subsequent years were used to test it. First, we trained the environment models until they produced correct results in terms of mean squared error (MSE), with the MSE of the demand model being less than 5% of the demand amplitudes. These starting weights were used as LSTM model weights. During training, the states were obtained and then the LSTM predicted the demand and price. The MSE was calculated and the error returned to tune the hyperparameters, as shown in Figure 3. This step was executed to ensure a better and optimized model. The model yielded the anticipated difference between the demand for the next step with the new price and the demand for the previous step with the old price. The model was retrained based on the difference between its forecast and the prediction of the model. Depending on the outcome, the LSTM was retrained to strengthen or its learning decreased to recreate the same behavior under comparable settings. This structure enabled the LSTM to analyze states that were trustworthy but differed from the actual data in relation to earlier model knowledge. The model learns how to change the price such that the model’s return is close to zero, indicating that the projected demand is close to the needed demand. The models with 4 layers for demand and 6 layers for pricing in training had the best balance between training speed and prediction quality. Both models’ first layer was an LSTM layer with 512 neurons. The remaining thick layers had leaky-ReLU activation functions. The addition of layers greatly increased computing time while only improving performance somewhat. The existing design required 8 training episodes to generate optimum demand values that were extremely near to the requisite demand value throughout all test years. The input data was first normalized, since the database contained demand and price values which showed some irregular entries. In order to optimize the data, data normalization was applied. Since the data was time series, features were extracted and the LSTM model trained on the extracted features. The LSTM model consists of an input layer, three unidirectional LSTM layers with N units followed by a fully connected output layer with 257 units. From the input to the output layer, the quantity of neurons in LSTM was given as [input dimension/512/512/512/257] neurons. The number of epochs and the learning rate was fixed at 50 and 0.001, respectively. All weights were randomly initialized and trained with mini-batches of 32 sequences by back-propagation through time with the Adam optimizer.

4. Experiments

4.1. Data Generation

The data for this study was obtained from the Australian Energy Market Operator (AEMO) [22]. AEMO oversees Australia’s electricity and gas networks and markets, assisting in the provision of cheap, secure, and dependable energy. On 1 July, 2009, the Council of Australian Governments (COAG) formed AEMO to operate the National Electricity Market (NEM). AEMO has a big data set that includes demand energy and pricing every 30 min for all Australian states from the previous 20 years to the present. This is real-time demand and price information. For this research, we chose NSW (New South Wales) as a case study. The information spans 21 years, from 1999 to 2020. However, we used data from 1999 to 2015 (17 years) to train the model. The data received is historical data regarding changing energy demand and prices over the last many years. The price determines the degree of demand. The demand level might be controlled around an average level using this feedback approach to keep the electricity system running smoothly. We anticipated that a reinforcement learning system could automate this feedback model. Since no side data was used, all of the inputs in the model were purpose variables for the preceding phases. First, we divided the data into two parts: the first portion was used to train the model and comprised data from 1999 to 2015, while the second part contained data from 2016 to 2020 for efficiency, accuracy, and comparison with AEMO findings. Thus, we had two sorts of data in experiments: real data and anticipated data from the model. Following training, the model generated data for all years from 2016 through to 2020. The model’s forecast data includes demand and price information.

4.2. Results and Discussions

The proposed energy demand and pricing framework was built using the data anticipated by the model, which is valuable for assessing future energy use.

4.3. Results

Based on long short-term memory, we predicted prices and demand. Average demand and price were used to compute mean absolute deviation (MAD) scores. To keep an eye on the market’s supply and demand, we used deviations from an average value in this experiment. With and without optimization, LSTM pricing predictions are shown in Figure 4. It is clear that the real and non-optimized demand were almost the same, as seen in Figure 4a,b, which was further optimized in Figure 4c. A four-month demand forecast (in MW) is shown in Figure 5. Table 1 shows the results of the controlled LSTM model in terms of actual demand and predicted demand. Table 2 lists a period of 10 months in 2019 in which we might compare actual and forecast prices (in USD/MWh). In addition, Table 3 demonstrates the price and demand elasticity of the study [51] and the proposed LSTM approach.

4.4. Discussion

When compared to uncontrolled price prediction, controlled price prediction has a significant influence, as, for optimum outcomes, a clear pattern over the years can be observed. However, for uncontrolled learning, correct patterns cannot be found. So, this kind of learning does not work in situations when a program could estimate the price of energy in the future. In both controlled and uncontrolled techniques, we found significant differences in the anticipated price. The controlled technique predicted 78.30 USD/MWh, whereas the uncontrolled predicted 30.14 USD/MWh, suggesting a significant discrepancy between their predictions of the real price and the actual price. Despite the fact that LSTM’s estimated demand (in MW) was better, there was still room for improvement. There were 981.4 MW in historical data, 973.8 MW in prediction, and 248.9 MW in controlled LSTM, which meant this technique was four times more efficient for the given job than the previous one. The uncontrolled LSTM forecast demand as 11,490.33 MW and the controlled technique predicted it as 8022.43 MW for the complete dataset, whereas the actual demand was 7976.23 MW. The deviation was extremely high for LSTM (3514.1 MW) for the uncontrolled LSTM, whereas it was very low for controlled LSTM (46.2 MW). In the dataset studied, price and demand were shown to have direct, but nonlinear, correlations so strong that they could be controlled by automated price changes. This supposition was confirmed by Figure 4.
The data that represented date and time was steadily raised by half an hour, which was the basis for the rest of our findings. An actual price and demand for each date and time were compared to the expected price and demand by using the model’s forecasts. According to the data, the model correctly projected a period of time in which demand would be high. There was a strong link between projected and actual demand. We could observe that the model had forecast future needs with greater accuracy (99%) for every 30 min by comparing the findings with actual–predicted demand, which aided in determining demand for energy for the next months. An energy management system may create yearly or monthly plans for energy management and production while also improving grid security and transmission lines. As seen in Table 1, the controlled LSTM model was able to accurately estimate how much demand there would be, based on actual demand. In reality, there was only a 1% discrepancy between actual- and model-predicted demand. In order to demonstrate the influence of reinforcement learning on prediction, we chose another slab of six months. For the sake of clarity and simplicity, the results were averaged throughout the full month. Figure 6 indicates the different values for demand and price for various periods of time (per year and per month). Figure 6 clearly shows that the predicted prices and demand after neural estimation were close to the actual data. Based on the weekly and monthly predictions, future price and demand could be computed for efficient load (price/demand) management to deal with the resources.
Analysis of actual and expected demand for 2016–2020 was conducted in experiments. Figure 7 depicts the outcomes for a few years. Analysis of actual demand in relation to our forecast demand was done by taking an average of all results from the year and dividing it by 12. After using the controlled LSTM model, there was less variation in the data. The variation in demand over the course of a single year was brought to light.
Additionally, our price prediction findings were based on the increasing amount of data relating to the date and time. In order to verify the controlled LSTM model’s predictions, the actual price and demand data from AEMO were compared. The predicted pricing for a ten-month period in 2017 highlighted the effectiveness of the proposed LSTM model. According to the test results, the price prediction model developed by controlled LSTM was accurate over a period of months. There was a strong link between expected and actual prices. An evaluation of actual–predicted price results revealed an exceptional accuracy rate of 99.5% (every 30 min), which aided in the prediction of pricing for the future. As a result of this, management systems would be able to create yearly or monthly price plans. We can see that price projection had a very low degree of uncertainty.
Table 2 lists a period of 10 months in 2019 in which we compared actual and forecast prices. Real-time pricing was successful because the discrepancy between projected and real prices was so minimal. For a clearer picture, the data was again averaged throughout the course of the month. in Figure 8, we see that our model output pricing was quite close to real prices with very minor changes, demonstrating that controlled LSTM was successful in this future pricing assignment. In a set of experiments, we examined the actual and predicted prices for the years 2016–2020. Figure 8 shows the results of the selected years. The results were averaged over the entire year to observe an actual price, from which we needed to predict the future price. There were small prediction errors after prediction by the controlled LSTM model. The difference in pricing was highlighted over individual years. The highest difference in the price was observed for the year 2020, whereas the lowest price difference for the year 2016 was observed, indicating price fluctuations as the demand for energy increased over years. According to Figure 3, we fine-tuned the LSTM model to obtain an optimized model for price and demand prediction. The results obtained and provided in this section are based on the final optimized LSTM model. The final model was obtained by the same configuration except for the optimized parameters during the processing. With such arrangements, the parameters were optimized after the completion of the loop and a final model selected which produced the best results.

4.5. Comparison with Baseline

We also compared the proposed LSTM approach for price and demand elasticity with other studies. The price elasticity ξ of demand is a measurement that determines the demand for energy after a change in response to a change in the price of the energy, whereas the demand elasticity determines the impact of a change in the price of energy on the demand. Table 3 demonstrates the price and demand elasticity of the study [51] and the proposed LSTM approach. The elasticity was computed in different hours (01:00–12:00 a.m.) and (01:00–11:30 p.m.). The price and demand elasticity of the proposed approach reached −0.422, where the competing method had −1.574.

5. Conclusions

This work proposes an LSTM-based deep learning model to predict real-time price and demand responses for energy management. The learning model is trained using real-time pricing and demand response data. The information was obtained from the Australian Energy Market Operator, and the predictive model was educated using data spanning 17 years in order to provide accurate projections on future energy prices and demand. The model accurately forecasts future data for demand and costs, which helps in analyzing future energy demand and pricing. In addition, the model can design a structure to manage energy demand and pricing. We looked at data from a number of different time periods, including months and years, and compared to both the actual and expected levels of demand and price. We examined the prediction of demand and price for 17 years and concluded that the proposed controlled LSTM model could accurately predict the future calculations of price and demand with excellent future planning in the energy sector. This was based on the fact that the model was able to accurately predict the future for 17 years. When compared to the actual values, the differences between the forecast demand and pricing and the actual values were quite marginal. We were able to develop an average choice of future price and demand based on the projected values, and, as a result, we had more influence over the prices and demands in the energy sector.
In the future, the authors are focused on using more robust neural models, such as reinforcement learning, to predict demand and pricing. In addition, better normalization techniques could be used to make the dataset more effective. Further user-based demand and price will be the focus of future studies.

Author Contributions

Conceptualization, A.A.A. and X.H.; Methodology, A.A.A.; Software, A.A.A.; Validation, A.A.A. and X.H.; Formal analysis, A.A.A. and X.H.; Investigation, A.A.A.; Resources, A.A.A.; Data curation, A.A.A. and X.H.; Writing – original draft, A.A.A. and X.H.; Writing – review & editing, X.H.; Visualization, A.A.A. and X.H.; Supervision, X.H.; Project administration, X.H.; Funding acquisition, X.H.. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Please find the historical price and demand data for AEMO at https://aemo.com.au/energy-systems/electricity/national-electricity-market-nem/data-nem/aggregated-data (accessed on 28 January 2023).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Vardakas, J.S.; Zorba, N.; Verikoukis, C.V. A survey on demand response programs in smart grids: Pricing methods and optimization algorithms. IEEE Commun. Surv. Tutor. 2014, 17, 152–178. [Google Scholar] [CrossRef]
  2. Nolan, S.; O’Malley, M. Challenges and barriers to demand response deployment and evaluation. Appl. Energy 2015, 152, 1–10. [Google Scholar] [CrossRef]
  3. A Report on Benefits of Demand Response in Electricity Markets and Recommendations for Achieving Them; Technical Report; US Department Energy: Washington, DC, USA, 2006.
  4. Shen, B.; Ghatikar, G.; Lei, Z.; Li, J.; Wikler, G.; Martin, P. The role of regulatory reforms, market changes, and technology development to make demand response a viable resource in meeting energy challenges. Appl. Energy 2014, 130, 814–823. [Google Scholar] [CrossRef]
  5. Siano, P. Demand response and smart grids—A survey. Renew. Sustain. Energy Rev. 2014, 30, 461–478. [Google Scholar] [CrossRef]
  6. Faria, P.; Vale, Z. Demand response in electrical energy supply: An optimal real time pricing approach. Energy 2011, 36, 5374–5384. [Google Scholar] [CrossRef] [Green Version]
  7. Yi, P.; Dong, X.; Iwayemi, A.; Zhou, C.; Li, S. Real-time opportunistic scheduling for residential demand response. IEEE Trans. Smart Grid 2013, 4, 227–234. [Google Scholar] [CrossRef]
  8. McKenna, K.; Keane, A. Residential load modeling of price-based demand response for network impact studies. IEEE Trans. Smart Grid 2015, 7, 2285–2294. [Google Scholar] [CrossRef] [Green Version]
  9. Aghaei, J.; Alizadeh, M.I.; Siano, P.; Heidari, A. Contribution of emergency demand response programs in power system reliability. Energy 2016, 103, 688–696. [Google Scholar] [CrossRef]
  10. Aghaei, J.; Alizadeh, M.I. Critical peak pricing with load control demand response program in unit commitment problem. IET Gener. Transm. Distrib. 2013, 7, 681–690. [Google Scholar] [CrossRef]
  11. Borenstein, S.; Jaske, M.; Rosenfeld, A. Dynamic Pricing, Advanced Metering, and Demand Response in Electricity Markets UC Berkeley: Center for the Study of Energy Markets. 2002. Available online: https://escholarship.org/uc/item/11w8d6m4 (accessed on 28 January 2023).
  12. Weisbrod, G.; Ford, E. Market segmentation and targeting for real-time pricing. In Proceedings of the 1996 EPRI Conferences on Innovative Approaches to Electricity Pricing, La Jolla, CA, USA, 27–29 March 1996; pp. 14–111. [Google Scholar]
  13. Vahedipour-Dahraie, M.; Najafi, H.R.; Anvari-Moghaddam, A.; Guerrero, J.M. Study of the effect of time-based rate demand response programs on stochastic day-ahead energy and reserve scheduling in islanded residential microgrids. Appl. Sci. 2017, 7, 378. [Google Scholar] [CrossRef] [Green Version]
  14. Nogales, F.J.; Contreras, J.; Conejo, A.J.; Espínola, R. Forecasting next-day electricity prices by time series models. IEEE Trans. Power Syst. 2002, 17, 342–348. [Google Scholar] [CrossRef]
  15. Contreras, J.; Espinola, R.; Nogales, F.J.; Conejo, A.J. ARIMA models to predict next-day electricity prices. IEEE Trans. Power Syst. 2003, 18, 1014–1020. [Google Scholar] [CrossRef]
  16. Zareipour, H.; Cañizares, C.A.; Bhattacharya, K.; Thomson, J. Application of public-domain market information to forecast Ontario’s wholesale electricity prices. IEEE Trans. Power Syst. 2006, 21, 1707–1717. [Google Scholar] [CrossRef]
  17. Mandal, P.; Senjyu, T.; Urasaki, N.; Funabashi, T.; Srivastava, A.K. Electricity price forecasting for PJM Day-ahead market. In Proceedings of the 2006 IEEE PES Power Systems Conference and Exposition, Atlanta, GA, USA, 29 October–1 November 2006; pp. 1321–1326. [Google Scholar]
  18. Catalão, J.P.S.; Mariano, S.J.P.S.; Mendes, V.M.F.; Ferreira, L.A.F.M. Application of neural networks on next-day electricity prices forecasting. In Proceedings of the 41st International Universities Power Engineering Conference, Newcastle Upon Tyne, UK, 6–8 September 2006; Volume 3, pp. 1072–1076. [Google Scholar]
  19. Taylor, J.W. Short-term electricity demand forecasting using double seasonal exponential smoothing. J. Oper. Res. Soc. 2003, 54, 799–805. [Google Scholar] [CrossRef]
  20. Taylor, J.W. Triple seasonal methods for short-term electricity demand forecasting. Eur. J. Oper. Res. 2010, 204, 139–152. [Google Scholar] [CrossRef] [Green Version]
  21. Wang, J.; Zhu, W.; Zhang, W.; Sun, D. A trend fixed on firstly and seasonal adjustment model combined with the ε-SVR for short-term forecasting of electricity demand. Energy Policy 2009, 37, 4901–4909. [Google Scholar] [CrossRef]
  22. Mirasgedis, S.; Sarafidis, Y.; Georgopoulou, E.; Lalas, D.P.; Moschovits, M.; Karagiannis, F.; Papakonstantinou, D. Models for mid-term electricity demand forecasting incorporating weather influences. Energy 2006, 31, 208–227. [Google Scholar] [CrossRef]
  23. Zhou, P.A.B.W.; Ang, B.W.; Poh, K.L. A trigonometric grey prediction approach to forecasting electricity demand. Energy 2006, 31, 2839–2847. [Google Scholar] [CrossRef]
  24. Akay, D.; Atak, M. Grey prediction with rolling mechanism for electricity demand forecasting of Turkey. Energy 2007, 32, 1670–1675. [Google Scholar] [CrossRef]
  25. Hyndman, R.J.; Fan, S. Density forecasting for long-term peak electricity demand. IEEE Trans. Power Syst. 2009, 25, 1142–1153. [Google Scholar] [CrossRef] [Green Version]
  26. McSharry, P.E.; Bouwman, S.; Bloemhof, G. Probabilistic forecasts of the magnitude and timing of peak electricity demand. IEEE Trans. Power Syst. 2005, 20, 1166–1172. [Google Scholar] [CrossRef]
  27. Saravanan, S.K.C.T.S.; Kannan, S.; Thangaraj, C. India’s electricity demand forecast using regression analysis and artificial neural networks based on principal components. ICTACT J. Soft Comput. 2012, 2, 365–370. [Google Scholar]
  28. Chen, B.J.; Chang, M.W. Load forecasting using support vector machines: A study on EUNITE competition 2001. IEEE Trans. Power Syst. 2004, 19, 1821–1830. [Google Scholar] [CrossRef] [Green Version]
  29. Tso, G.K.; Yau, K.K. Predicting electricity energy consumption: A comparison of regression analysis, decision tree, and neural networks. Energy 2007, 32, 1761–1768. [Google Scholar] [CrossRef]
  30. Roldán-Blay, C.; Escrivá-Escrivá, G.; Álvarez-Bel, C.; Roldán-Porta, C.; Rodríguez-García, J. Upgrade of an artificial neural network prediction method for electrical consumption forecasting using an hourly temperature curve model. Energy Build. 2013, 60, 38–46. [Google Scholar] [CrossRef]
  31. Wang, K.; Qi, X.; Liu, H. Photovoltaic power forecasting based LSTM-Convolutional Network. Energy 2019, 189, 116225. [Google Scholar] [CrossRef]
  32. Khodaei, H.; Hajiali, M.; Darvishan, A.; Sepehr, M.; Ghadimi, N. Fuzzy-based heat and power hub models for the cost-emission operation of an industrial consumer using compromise programming. Appl. Therm. Eng. 2018, 137, 395–405. [Google Scholar] [CrossRef]
  33. Xu, L.; Li, C.; Xie, X.; Zhang, G. Long-short-term memory network-based hybrid model for short-term electrical load forecasting. Information 2018, 9, 165. [Google Scholar] [CrossRef] [Green Version]
  34. Szkuta, B.R.; Sanabria, L.A.; Dillon, T.S. Electricity price short-term forecasting using artificial neural networks. IEEE Trans. Power Syst. 1999, 14, 851–857. [Google Scholar] [CrossRef]
  35. Park, D.C.; El-Sharkawi, M.A.; Marks, R.J.; Atlas, L.E.; Damborg, M.J. Electric load forecasting using an artificial neural network. IEEE Trans. Power Syst. 1991, 6, 442–449. [Google Scholar] [CrossRef] [Green Version]
  36. Hochreiter, S. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  37. Hossein, T.; Nair, A.S.; Chinnathambi, R.A.; Ranganathan, P. Residential load forecasting using deep neural networks (DNN). In Proceedings of the 2018 North American power symposium (NAPS), Fargo, ND, USA, 9–11 September 2018; pp. 1–5. [Google Scholar]
  38. Liu, C.; Jin, Z.; Gu, J.; Qiu, C. Short-term load forecasting using a long short-term memory network. In Proceedings of the 2017 IEEE PES innovative smart grid technologies conference Europe (ISGT-Europe), Torino, Italy, 26–29 September 2017; pp. 1–6. [Google Scholar]
  39. Han, L.; Peng, Y.; Li, Y.; Yong, B.; Zhou, Q.; Shu, L. Enhanced deep networks for short-term and medium-term load forecasting. IEEE Access 2018, 7, 4045–4055. [Google Scholar] [CrossRef]
  40. Kuo, P.H.; Huang, C.J. A high-precision artificial neural networks model for short-term energy load forecasting. Energies 2018, 11, 213. [Google Scholar] [CrossRef] [Green Version]
  41. Wang, Y.; Chen, Q.; Hong, T.; Kang, C. Review of smart meter data analytics: Applications, methodologies, and challenges. IEEE Trans. Smart Grid 2018, 10, 3125–3148. [Google Scholar] [CrossRef] [Green Version]
  42. Guo, X.; Zhao, Q.; Wang, S.; Shan, D.; Gong, W. A short-term load forecasting model of LSTM neural network considering demand response. Complexity 2021, 2021, 5571539. [Google Scholar] [CrossRef]
  43. Lv, F.; Liu, Y.; Qi, Y.X.; Yan, Y.H.; Zhang, J.T.; Xie, Q. Short-term load forecasting based on an optimized learning machine using an improved genetic algorithm. J. North China Electr. Power Univ. 2018, 45, 1–7. [Google Scholar]
  44. Yang, G.; Du, S.; Duan, Q.; Su, J. Short-term Price Forecasting Method in Electricity Spot Markets Based on Attention-LSTM-mTCN. J. Electr. Eng. Technol. 2022, 17, 1009–1018. [Google Scholar] [CrossRef]
  45. Goyal, A.; Krishnamurthy, S.; Kulkarni, S.; Kumar, R.; Vartak, M.; Lanham, M.A. A solution to forecast demand using long short-term memory recurrent neural networks for time series forecasting. In Proceedings of the Midwest Decision Sciences Institute Conference, Indianapolis, IN, USA, 12–14 April 2018; pp. 12–14. [Google Scholar]
  46. Mittal, D.A.; Liu, S.; Xu, G. Electricity Price Forecasting using Convolution and LSTM Models. In Proceedings of the 2020 7th International Conference on Behavioural and Social Computing (BESC), Bournemouth, UK, 5–7 November 2020; pp. 1–4. [Google Scholar]
  47. Nti, I.K.; Teimeh, M.; Nyarko-Boateng, O.; Adekoya, A.F. Electricity load forecasting: A systematic review. J. Electr. Syst. Inf. Technol. 2020, 7, 1–19. [Google Scholar] [CrossRef]
  48. Gao, Y.; Fang, C.; Ruan, Y. A novel model for the prediction of long-term building energy demand: LSTM with Attention layer. IOP Conf. Ser. Earth Environ. Sci. 2019, 294, 012033. [Google Scholar] [CrossRef]
  49. Rahman, A.; Srikumar, V.; Smith, A.D. Predicting electricity consumption for commercial and residential buildings using deep recurrent neural networks. Appl. Energy 2018, 212, 372–385. [Google Scholar] [CrossRef]
  50. Brownlee, J. Deep Learning for Time Series Forecasting: Predict the Future with MLPs, CNNs, and LSTMs in Python; Machine Learning Mastery: San Juan, PR, USA, 2018. [Google Scholar]
  51. Miller, M.; Alberini, A. Sensitivity of price elasticity of demand to aggregation, unobserved heterogeneity, price trends, and price endogeneity: Evidence from US Data. Energy Policy 2016, 97, 235–249. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Intelligent price and demand prediction.
Figure 1. Intelligent price and demand prediction.
Energies 16 02410 g001
Figure 2. LSTM Gates Structure.
Figure 2. LSTM Gates Structure.
Energies 16 02410 g002
Figure 3. The flow diagram of the LSTM Model selection.
Figure 3. The flow diagram of the LSTM Model selection.
Energies 16 02410 g003
Figure 4. Predicted demand by Controlled and Uncontrolled LSTM.
Figure 4. Predicted demand by Controlled and Uncontrolled LSTM.
Energies 16 02410 g004
Figure 5. Actual and Predicted demand for few months from AEMO dataset.
Figure 5. Actual and Predicted demand for few months from AEMO dataset.
Energies 16 02410 g005
Figure 6. Monthly- and weekly-based Actual/Predicted demands (MW) and Prices (USD/MWh).
Figure 6. Monthly- and weekly-based Actual/Predicted demands (MW) and Prices (USD/MWh).
Energies 16 02410 g006
Figure 7. Actual and Predicted Demands (MW) (2016–2020).
Figure 7. Actual and Predicted Demands (MW) (2016–2020).
Energies 16 02410 g007
Figure 8. Actual and Predicted Price (USD/MWh) (2016–2020).
Figure 8. Actual and Predicted Price (USD/MWh) (2016–2020).
Energies 16 02410 g008
Table 1. Difference between actual and predicted demand for a period of six.
Table 1. Difference between actual and predicted demand for a period of six.
DateTimeActual Demand (MW)Predicted Demand (MW)Diff.
1-10-201612:00 p.m.–11:30 p.m.7354.77370.515.8
1-09-20167163.77216.854.0
1-08-20167413.97463.649.6
1-07-20167325.67384.859.1
1-06-20167440.07493.953.9
1-05-20167462.67506.143.4
Average7360.17405.945.8
Table 2. Difference between actual and predicted Price for a period of six months.
Table 2. Difference between actual and predicted Price for a period of six months.
DateTimeActual Price (USD/MWh)Predicted Price (USD/MWh)Diff.
1-03-201912:00 p.m.–11:30 p.m.94.191.32.83
1-04-2019104.6103.51.10
1-05-201993.289.73.13
1-06-201964.861.43.43
1-07-201970.368.71.60
1-08-201991.488.33.14
Average86.483.92.50
Table 3. Elasticity Comparison.
Table 3. Elasticity Comparison.
Time/MethodMiller et al. [51]Proposed
01:00–12:00 a.m.−1.574−0.422
01:00–11:30 p.m.−3.00−0.550
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Almani, A.A.; Han, X. Real-Time Pricing-Enabled Demand Response Using Long Short-Time Memory Deep Learning. Energies 2023, 16, 2410. https://0-doi-org.brum.beds.ac.uk/10.3390/en16052410

AMA Style

Almani AA, Han X. Real-Time Pricing-Enabled Demand Response Using Long Short-Time Memory Deep Learning. Energies. 2023; 16(5):2410. https://0-doi-org.brum.beds.ac.uk/10.3390/en16052410

Chicago/Turabian Style

Almani, Aftab Ahmed, and Xueshan Han. 2023. "Real-Time Pricing-Enabled Demand Response Using Long Short-Time Memory Deep Learning" Energies 16, no. 5: 2410. https://0-doi-org.brum.beds.ac.uk/10.3390/en16052410

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

Article Metrics

Back to TopTop