| Literature DB >> 35846444 |
Bilal Abu-Salih1, Pornpit Wongthongtham2, Greg Morrison3, Kevin Coutinho4, Manaf Al-Okaily5, Ammar Huneiti1.
Abstract
Peer-to-Peer (P2P) energy trading has gained much attention recently due to the advanced development of distributed energy resources. P2P enables prosumers to trade their surplus electricity and allows consumers to purchase affordable and locally produced renewable energy. Therefore, it is significant to develop solutions that are able to forecast energy consumption and generation toward better power management, thereby making renewable energy more accessible and empowering prosumers to make an informed decision on their energy management. In this paper, several models for forecasting short-term renewable energy consumption and generating are developed and discussed. Real-time energy datasets were collected from smart meters that were installed in residential premises in Western Australia. These datasets are collected from August 2018 to Apr 2019 at fine time resolution down to 5 s and comprise energy import from the grid, energy export to the grid, energy generation from installed rooftop PV, energy consumption in households, and outdoor temperature. Several models for forecasting short-term renewable energy consumption and generating are developed and discussed. The empirical results demonstrate the superiority of the optimised deep learning-based Long Term Short Memory (LSTM) model in forecasting both energy consumption and generation and outperforms the baseline model as well as the alternative classical and machine learning methods by a substantial margin.Entities:
Keywords: Energy consumption; Energy generation; Peer-to-peer energy trading; Renewable energy; Time series forecasting
Year: 2022 PMID: 35846444 PMCID: PMC9280578 DOI: 10.1016/j.heliyon.2022.e09152
Source DB: PubMed Journal: Heliyon ISSN: 2405-8440
A Summary comparison between various energy generation and consumption forecasting methods.
| Ref. | Forecasting Model | Consumption/Generation | Data Source | Data Temporality | Forecasting | Country | Evaluation Metric(s) |
|---|---|---|---|---|---|---|---|
| [ | Vector Autoregression | Consumption | Suzhou Municipal Bureau of Statistics | Jan 2004 to Jan 2014 | Monthly | China | MAPE |
| [ | ADL-MIDAS | Consumption | National Bureau of Statistics of China | 2016 | Quarterly | China | RMSFE |
| [ | ARIMA | Consumption | Adapazari Natural Gas Distribution | 2009 to 2012 | Monthly | Turkey | MAPE |
| [ | Holt-Winter and ARIMA | Consumption | Pakistan Economic Survey | 1980 to 2011 | Annually | Pakistan | RMSE, MAPE |
| [ | ARMA + Kalman filter | Consumption | Hellenic Public Power Corporation S.A. | Jan 2004 to Dec 2006 | Daily | Greece | MAPE |
| [ | MA + SARIMA + PSO | Consumption | Power Grids of China | Dec 2003 to Dec 2009 | Monthly | China | MAE, RMSE, MAPE |
| [ | Exponential smoothing model + Bayesian inference | Consumption | IEA website | 1990 to 2014 | Yearly | Japan | AAEP |
| [ | FARX | Consumption | Residential Energy | Apr 2018 to Jul 2015 | Hourly | USA | MAPE, RMSE |
| [ | Multi-cycle logistic model | Consumption and Generation | US Energy Information Agency | 1949 to 2015 | Yearly | USA | R-square |
| [ | Holt-Winters exponential smoothing method | Consumption | International Energy Agency | 1993 to 2007 | Yearly | Romania | MAPE, MAE, MSE |
| [ | Adaptive Residual Compensation | Generation | global energy forecasting competition | 2004 to 2014 | Hourly | USA | RMSE, R-square, CRPS |
| [ | FFNN | Consumption | ASHRAE, library building located in Hangzhou, East China | Sep 1989 to Feb 1990 | Hourly | China | MAPE |
| [ | FFNN and Bayesian regularization algorithm | Consumption | Building management system | Jul 2012 | 15-minute | N/A | MBE, RMSE |
| [ | RNN and CNN | Consumption | A City in North China | Feb 2010 to Dec 2012 | Hourly | China | MAPE, MAE |
| [ | LSTM | Consumption | Individual household electric power consumption | Dec 2006 to Nov 2010 | Hourly, and sub-hourly | USA | RMSE |
| [ | ARIMA | Generation | Building in Reese Research Center | Nov 2017 to Nov 2018 | Monthly | USA | MAPE |
| [ | WT, LSTM, SAE | Generation | Energy Information Administration | Jan 1997 to Dec 2022 | Monthly | USA | MAE, RMSE, U1, U2 |
| [ | Ensembled ANN | Generation | Federal Institute of Southern Minas Gerais State | May 2017 to Apr 2019 | Weekly | Brazil | MAPE |
| [ | ARIMA and ANN | Generation | National Climate Data Center | Jan 2014 to Oct 2019 | Daily | Korea | RMSE, MAPE |
| [ | LSTM | Generation | Turkish Electricity Transmission Corporation | Jan 2016 to Dec 2019 | Daily | Turkey | RMSE, MAE MAPE |
Figure 1LSTM cell architecture [79].
Figure 2Gartner magic quadrant for data science and machine learning (2021).
Dataset description.
| Weekday | Temp | Energy Generated | Energy Consumed | |
|---|---|---|---|---|
| mean | 3.00 | 17.46 | 31.38 | 29.25 |
| std | 2.00 | 6.35 | 41.62 | 12.13 |
| min | 0.00 | 2.80 | 0.00 | 3.27 |
| 25% | 1.00 | 13.30 | 0.04 | 20.21 |
| 50% | 3.00 | 17.30 | 2.55 | 27.75 |
| 75% | 5.00 | 21.20 | 62.64 | 35.07 |
| max | 6.00 | 38.00 | 136.29 | 88.24 |
Figure 3Line plot of energy generation and consumption dataset.
Figure 4The correlation between temperature and energy consumption and generation.
Figure 5Training and testing datasets.
Figure 6Energy consumption and generation over time.
LSTM's hyperparameters and their settings.
| Hyperparameter | Examined Settings |
|---|---|
| Batch Sizes | 2,3 |
| Number of Neurons | 2,3 |
| No of Epochs | 1000,1500,2000 |
| Optimization algorithms | SGD, RMSprop, Adagrad, Adadelta, Adam, Adamax, Nadam |
| Activation Functions | tanh, softmax, elu, selu, softplus, softsign, relu, sigmoid, |
| Losses | mse, mae, mape, logcosh |
| Dropout Rate | 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9 |
Figure 7Model process development using RapidMiner.
Figure 8Persistence baseline with the resultant RMSE on energy generation (a) and energy consumption (b).
Optimal hyperparameter settings and evaluation metric of energy generation and consumption forecasting using LSTM model.
| Task | Hyperparameters | Evaluation Metric | |||||||
|---|---|---|---|---|---|---|---|---|---|
| No. epochs | No. neurons | Batch size | optimizer | Dropout rate | activation | loss | RMSE | MAE | |
| Energy | 2000 | 3 | 2 | Adam | 0.2 | tanh | mae | 0.5654 | 0.329 |
| Energy | 2000 | 3 | 3 | SGD | 0.2 | relu | mae | 0.3273 | 0.2410 |
Figure 9Experiment result of energy generation forecasting using LSTM model: a) a plot of train and test loss, b) a plot of actual vs prediction values.
Figure 10Experiment result of energy consumption forecasting using LSTM model: a) a plot of train and test loss, b) plot of actual vs prediction values.
RMSEs on using classical and statistical time series algorithms for Energy Consumption (EC) and Energy Generation (EG).
| Linear/Classical Algorithm | RMSE | MAE | ||
|---|---|---|---|---|
| EG | EC | EG | EC | |
| ARIMA | 4.256 | 4.539 | 3.325 | 3.482 |
| VAR | 6.452 | 5.983 | 4.254 | 4.198 |
| LinearRegression | 2.110 | 2.082 | 1.568 | 1.568 |
| Lasso | 2.045 | 2.023 | 1.770 | 1.770 |
| Ridge | 2.109 | 2.082 | 1.569 | 1.568 |
| ElasticNet | 2.042 | 2.019 | 1.765 | 1.765 |
| HuberRegressor | 2.500 | 2.455 | 1.743 | 1.742 |
| Lars | 2.110 | 2.082 | 1.568 | 1.568 |
| LassoLars | 2.045 | 2.023 | 1.771 | 1.770 |
| PassiveAggressiveRegressor | 6.133 | 6.088 | 2.41 | 2.409 |
| RANSACRegressor | 2.464 | 2.421 | 1.391 | 1.389 |
| SGDRegressor | 2.103 | 2.137 | 1.612 | 1.592 |
Selected parameters settings.
| Parameter | Description | Value |
|---|---|---|
| | number of values per window | 20 |
| | Size between the first values of two successive windows | 1 |
| | The number of values taken as the horizon (i.e. time points). | 24 |
| | For optimisation | IRLSM |
| | Controls parallelism level of building model | 1 |
| | Controls the amount of applied regularization | 30 |
| | Function used by neurons in the hidden layers | Rectifier |
| | Number of hidden layers in the model | 2 |
| | Size of each hidden layer | 50 |
| | Iteration times over dataset | 10 |
| | Regularization (absolute value of the weights) | 1.0E-5 |
| | Regularization (sum of the squared weights) | 0.0 |
| | loss (error) function | Auto |
| | Number of random generated trees | 20 |
| | On which attribute will be split | least_square |
| | Depth of the tree | 7 |
| | Number of generated trees | 150 |
| Decision Tree (DT) | ||
| | On which attribute will be split | least_square |
| | Depth of the tree | 15 |
| | Kernel Function used in the model | Radial |
| | SVM kernel parameter gamma | 1.0000000000000007 |
| | size of the cache for kernel evaluation (MB) | 200 |
| | SVM complexity constant | 1000 |
Performance metrics for Energy Consumption (EC) and Energy Generation (EG).
| GLM | ANN | RF | GBT | DT | SVM | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EG | EC | EG | EC | EG | EC | EG | EC | EG | EC | EG | EC | |
| RMSE | 10.253 | 9.76 | 12.742 | 7.353 | 10.25 | 8.254 | 12.291 | 7.976 | 14.383 | 6.164 | ||
| MAE | 8.796 | 7.211 | 8.687 | 5.331 | 8.69 | 6.011 | 5.824 | 5.544 | 8.298 | 4.258 | ||
Figure 11Energy generation prediction charts (the predictions vs. the actual values) of different regression models tested on RapidMiner. A) Prediction chart for GLM Model, B) Prediction chart for ANN model, C) Prediction chart for DT model, D) Prediction chart for RF model, E) Prediction chart for GBT model, and F) Prediction chart for SVM model.
Figure 12Energy consumption prediction charts (the predictions vs. the actual values) of different regression models tested on RapidMiner. A) Prediction chart for GLM Model, B) Prediction chart for ANN model, C) Prediction chart for DT model, D) Prediction chart for RF model, E) Prediction chart for GBT model, and F) Prediction chart for SVM model.
Figure 13Aggregated RMSE values obtained by all models in forecasting both energy generation and consumption.
Figure 14Aggregated MAE values obtained by all models in forecasting both energy generation and consumption.