An Improved Generating Energy Prediction Method Based on Bi-LSTM and Attention Mechanism
Abstract
:1. Introduction
2. Feature Selection
3. The Methodology
3.1. Bi-LSTM Model
3.2. Feature Attention Mechanism
3.3. Temporal Attention Mechanism
3.4. The Proposed Attention-Bi-LSTM PGPM
4. Data Processing
4.1. Data Cleaning
4.2. Division of Dataset
5. Experimental Results and Analysis
5.1. Parameter Tuning and Statistical Analysis
5.2. Experimental Results
5.3. The Quantitative Comparison of Results
5.4. Comparison of Multi-Step Prediction Results
6. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Kalkal, P.; Teja, A.V.R. A Sustainable Business Framework Using Solar and Bio-Energy to Instate Incessant Power in Rural India: Optimal Scheduling, Smart Metering, and Economic Viability. IEEE Access 2022, 10, 11021–11035. [Google Scholar] [CrossRef]
- Glavan, M.; Gradisar, D.; Humar, I.; Vrancic, D. Refrigeration Control Algorithm for Managing Supermarket’s Overall Peak Power Demand. IEEE Trans. Control Syst. Technol. 2019, 27, 2279–2286. [Google Scholar] [CrossRef]
- Zheng, L.; Wenbo, X.; Kui, W.; Dawei, Y.; Jin, Z.; Yuanyuan, L.; Jia, S.; Chengdi, D.; Zhongyi, L.; Lu, L. Research on power demand forecasting based on the relationship Between economic development and power demand. In Proceedings of the 2018 China International Conference on Electricity Distribution (CICED), Tianjin, China, 17–19 September 2018; pp. 2710–2713. [Google Scholar] [CrossRef]
- Jia, Y.; Wan, C.; Cui, W.; Song, Y.; Ju, P. Peer-to-Peer Energy Trading Using Prediction Intervals of Renewable Energy Generation. IEEE Trans. Smart Grid 2022. [Google Scholar] [CrossRef]
- Chen, H.; Xuan, P.; Wang, Y.; Tan, K.; Jin, X. Key Technologies for Integration of Multitype Renewable Energy Sources—Research on Multi-Timeframe Robust Scheduling/Dispatch. IEEE Trans. Smart Grid 2016, 7, 471–480. [Google Scholar] [CrossRef]
- Eskandarpour, R.; Khodaei, A. Machine Learning Based Power Grid Outage Prediction in Response to Extreme Events. IEEE Trans. Power Syst. 2017, 32, 3315–3316. [Google Scholar] [CrossRef]
- Tao, L.; Rongfa, Q.; Zhenjiang, G.; Zhongchuang, S.; Guohu, X.; Qi, G.; Zheng, X.; Hongyu, J. Research on Power System Active Power Scheduling Strategy Adapted to Large-Scale Wind Power Grid-Connected. In Proceedings of the 2018 3rd International Conference on Smart City and Systems Engineering (ICSCSE), Xiamen, China, 29–30 December 2018; pp. 482–486. [Google Scholar] [CrossRef]
- Makkulau, A.; Christiono; Samsurizal. Characteristics of Temperature Changes Measurement on Photovoltaic Surfaces Against Quality of Output Current on Solar Power Plants. In Proceedings of the 2019 International Conference on Technologies and Policies in Electric Power & Energy, Yogyakarta, Indonesia, 21–22 October 2019; pp. 1–4. [Google Scholar] [CrossRef]
- L’Heureux, A.; Grolinger, K.; Elyamany, H.F.; Capretz, M.A.M. Machine Learning with Big Data: Challenges and Approaches. IEEE Access 2017, 5, 7776–7797. [Google Scholar] [CrossRef]
- Meng, L.; Shi, J.-W.; Wang, H.; Wen, X.-Q. SVM with improved grid search and its application to wind power prediction. In Proceedings of the 2013 International Conference on Machine Learning and Cybernetics, Tianjin, China, 14–17 July 2013; Volume 2, pp. 603–609. [Google Scholar] [CrossRef]
- Mukherjee, R.; De, A. Development of an Ensemble Decision Tree-Based Power System Dynamic Security State Predictor. IEEE Syst. J. 2020, 14, 3836–3843. [Google Scholar] [CrossRef]
- Chen, P.; Cheng, H.; Yao, Y.; Li, X.; Zhang, J.; Yang, Z. Research on Medium-Long Term Power Load Forecasting Method Based on Load Decomposition and Big Data Technology. In Proceedings of the 2018 International Conference on Smart Grid and Electrical Automation (ICSGEA), Changsha, China, 9–10 June 2018; pp. 50–54. [Google Scholar] [CrossRef]
- Ullah, I.; Fayaz, M.; Naveed, N.; Kim, D. ANN Based Learning to Kalman Filter Algorithm for Indoor Environment Prediction in Smart Greenhouse. IEEE Access 2020, 8, 159371–159388. [Google Scholar] [CrossRef]
- Al-Dahidi, S.; Ayadi, O.; Alrbai, M.; Adeeb, J. Ensemble Approach of Optimized Artificial Neural Networks for Solar Photovoltaic Power Prediction. IEEE Access 2019, 7, 81741–81758. [Google Scholar] [CrossRef]
- Fan, M.; Si, Z.; Xie, X.; Liu, Y.; Liu, T. Text Backdoor Detection Using an Interpretable RNN Abstract Model. IEEE Trans. Inf. Forensics Secur. 2021, 16, 4117–4132. [Google Scholar] [CrossRef]
- Dai, S.; Li, L.; Li, Z. Modeling Vehicle Interactions via Modified LSTM Models for Trajectory Prediction. IEEE Access 2019, 7, 38287–38296. [Google Scholar] [CrossRef]
- Moharm, K.; Eltahan, M.; Elsaadany, E. Wind Speed Forecast using LSTM and Bi-LSTM Algorithms over Gabal El-Zayt Wind Farm. In Proceedings of the 2020 International Conference on Smart Grids and Energy Systems (SGES), Perth, Australia, 23–26 November 2020; pp. 922–927. [Google Scholar] [CrossRef]
- Zhou, B.; Ma, X.; Luo, Y.; Yang, D. Wind Power Prediction Based on LSTM Networks and Nonparametric Kernel Density Estimation. IEEE Access 2019, 7, 165279–165292. [Google Scholar] [CrossRef]
- Fang, Z.; Huang, Y.; Chen, X.; Gong, K.; Zhou, H. Identification of Abnormal Electricity Consumption Behavior Based on Bi-LSTM Recurrent Neural Network. In Proceedings of the 2019 4th International Conference on Power and Renewable Energy (ICPRE), Chengdu, China, 21–23 September 2019; pp. 342–346. [Google Scholar] [CrossRef]
- Zhenya, Z.; Tingting, P.; Xia, Y.; Mengfei, Y.; Yan, Y.; Zhijun, L. Correlation between Meteorological Factors and Water Temperature in Yibin Section of Lower Jinsha River under Influence of Human Activities. Express Water Resour. Hydropower Inf. (EWRHI) 2021, 42, 12–17. [Google Scholar] [CrossRef]
- Liu, D.; Xu, Q.; Tang, Y.; Jian, Y. Prediction of Water Inrush in Long-Lasting Shutdown Karst Tunnels Based on the HGWO-SVR Model. IEEE Access 2021, 9, 6368–6378. [Google Scholar] [CrossRef]
- Wang, T.; Bi, T.; Wang, H.; Liu, J. Decision tree based online stability assessment scheme for power systems with renewable generations. CSEE J. Power Energy Syst. 2015, 1, 53–61. [Google Scholar] [CrossRef]
- Gupta, V.K.; Gupta, A.; Kumar, D.; Sardana, A. Prediction of COVID-19 confirmed, death, and cured cases in India using random forest model. Big Data Min. Anal. 2021, 4, 116–123. [Google Scholar] [CrossRef]
- Fang, W.; Jiang, J.; Lu, S.; Gong, Y.; Tao, Y.; Tang, Y.; Yan, P.; Luo, H.; Liu, J. A LSTM Algorithm Estimating Pseudo Measurements for Aiding INS during GNSS Signal Outages. Remote Sens. 2020, 12, 256. [Google Scholar] [CrossRef] [Green Version]
- Hao, Z.; Hu, C.; Du, D.; Pei, H.; Zhang, J. Remaining Useful Life Prediction Method of Lithium-Ion Battery Based on Bi-LSTM Network under Multi-State Influence. Acta Electron. Sin. 2021, 50, 619–624. [Google Scholar]
- Gouda, O.E.; El-Hoshy, S.H. Diagnostic technique for analysing the internal faults within power transformers based on sweep frequency response using adjusted R-square methodology. IET Sci. Meas. Technol. 2021, 14, 1057–1068. [Google Scholar] [CrossRef]
Environmental Factors | Pearson Coefficient |
---|---|
Daily average temperature | 0.42551 |
Maximum temperature | 0.54173 |
Minimum temperature | 0.27529 |
Average humidity | −0.69062 |
Minimum humidity | −0.74763 |
Precipitation from 8:00 a.m. to 8:00 p.m. | −0.33582 |
Daily sunshine duration | 0.83609 |
Average cloud cover | −0.59997 |
Penalty C | RBF Gamma | Prediction Error (kWh) |
---|---|---|
100 | 1 | 238.9 |
1 | 0.01 | 479.3 |
0.1 | 0.01 | 489.1 |
Max Depth | Prediction Error (kWh) |
---|---|
4 | 255.9 |
5 | 243.6 |
6 | 236.0 |
10 | 291.7 |
90 | 305.6 |
Number of Estimators | Minimum Samples of Subtree | Minimum Samples of Leaf | Prediction Error (kWh) |
---|---|---|---|
200 | 2 | 1 | 231.8 |
200 | 2 | 4 | 232.1 |
100 | 2 | 1 | 232.9 |
400 | 4 | 1 | 232.9 |
400 | 4 | 2 | 232.8 |
Category | Parameter |
---|---|
Length of Time Sequence | 4 |
Bi-LSTM Hidden Layer Neurons | 350 |
Learning Rate | 0.01 |
Batch Size | 64 |
Optimization Algorithm | Adam |
Loss Function | Mean Squared Error (MSE) |
Neuron Loss Rate | 0.1 |
Method | Average of RMSE (kWh) | Standard Deviation of RMSE (kWh) |
---|---|---|
SVR | 238.9 | 2.3 |
Decision Tree | 236.0 | 2.7 |
Random Forest | 231.8 | 1.9 |
LSTM | 29.7 | 1.5 |
Bi-LSTM | 18.3 | 1.8 |
Attention-Bi-LSTM (Ours) | 8.6 | 1.2 |
Method | MAE (kWh) | RMSE (kWh) | MAPE (%) | Fitting Accuracy (R-Square) |
---|---|---|---|---|
SVR | 166.7 | 238.9 | 40.7 | 0.7617 |
Decision Tree | 160.3 | 236.0 | 37.9 | 0.7675 |
Random Forest | 160.6 | 231.8 | 38.8 | 0.7591 |
LSTM | 25.5 | 29.7 | 5.7 | 0.9959 |
Bi-LSTM | 13.7 | 18.3 | 3.6 | 0.9984 |
Ours | 10.2 | 8.6 | 2.8 | 0.9997 |
Time Step | Evaluation Criteria | |
---|---|---|
Prediction Error (kWh) | Fitting Accuracy (R-Square) | |
4 | 8.6408 | 0.9997 |
8 | 15.2754 | 0.9989 |
10 | 18.0235 | 0.9985 |
14 | 23.8192 | 0.9974 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
He, B.; Ma, R.; Zhang, W.; Zhu, J.; Zhang, X. An Improved Generating Energy Prediction Method Based on Bi-LSTM and Attention Mechanism. Electronics 2022, 11, 1885. https://doi.org/10.3390/electronics11121885
He B, Ma R, Zhang W, Zhu J, Zhang X. An Improved Generating Energy Prediction Method Based on Bi-LSTM and Attention Mechanism. Electronics. 2022; 11(12):1885. https://doi.org/10.3390/electronics11121885
Chicago/Turabian StyleHe, Bo, Runze Ma, Wenwei Zhang, Jun Zhu, and Xingyuan Zhang. 2022. "An Improved Generating Energy Prediction Method Based on Bi-LSTM and Attention Mechanism" Electronics 11, no. 12: 1885. https://doi.org/10.3390/electronics11121885
APA StyleHe, B., Ma, R., Zhang, W., Zhu, J., & Zhang, X. (2022). An Improved Generating Energy Prediction Method Based on Bi-LSTM and Attention Mechanism. Electronics, 11(12), 1885. https://doi.org/10.3390/electronics11121885