Photovoltaic Power Prediction Based on Irradiation Interval Distribution and Transformer-LSTM
Abstract
:1. Introduction
2. Irradiation Interval Distribution
2.1. Analysis of the Influence Mechanism of Photovoltaic Power Generation Power in Different Irradiation Intervals
2.2. Irradiation Interval Distribution Based on a Boxplot and an Isolated Forest
3. Transformer-LSTM Model
3.1. Relevant Principle of Transformer
- (1)
- Self-attention Mechanism
- (2)
- Multi-head Attention
- (3)
- Position Coding
3.2. Relevant Principle of LSTM
3.3. Relevant Principle of Transformer-LSTM
4. The Overall Framework of Prediction Based on Irradiation Interval Distribution and Transformer-LSTM
- Data preprocessing: Firstly, the original photovoltaic power generation data set is preprocessed, mainly including the processing of missing values and outliers in the original data and correlation analysis. The 3σ principle is used to detect the abnormal values of meteorological factors and photovoltaic power. The missing values and abnormal values are supplemented or replaced by linear interpolation, and the data are normalized.
- Through the Pearson coefficient, the correlation analysis of six meteorological factors, such as irradiation, air pressure, wind speed, rainfall, temperature, and cloud cover, is carried out to find out the meteorological factors most related to photovoltaic power generation: irradiation and temperature.
- Based on the box line diagram, the distribution of irradiation intervals in photovoltaic power generation data is observed to calculate the ultra-low irradiation interval , low irradiation interval , medium irradiation interval and the high irradiation interval.
- In order to further improve the data quality of each irradiation interval, the outlier detection of power–irradiation in each irradiation interval is carried out based on the isolated forest algorithm, and the outliers in the data are eliminated, which is conducive to the training of the model.
- Construct the prediction model of each irradiation interval, and the data of the corresponding interval is input into the model training. The test set is numbered internally, and the interval is input into the model prediction. Finally, the prediction results of each irradiation interval are reorganized according to the number to obtain the final prediction results, and the prediction results are evaluated.
5. Case and Analysis of Experimental Results
5.1. Data Description
5.2. Data Preprocessing and Feature Engineering
5.3. Evaluating Indicator
5.4. The Prediction Results of Each Irradiation Interval
5.5. Photovoltaic Power Prediction Results and Comparison
6. Conclusions
- (1)
- Based on the boxplot calculation, the irradiation interval distribution is obtained, and the isolated forest algorithm is used to eliminate the irradiation–power outliers in each irradiation interval to optimize the data, so as to fully explore the influence mechanism of meteorological factors on photovoltaic power generation in each irradiation interval, and the irradiation interval distribution is used to reduce the difference between the peak and valley values of the sequence, so as to solve the problem of the regression to the mean and to improve the prediction accuracy.
- (2)
- This paper proposes a Transformer-LSTM combined prediction model. The coding layer uses the self-attention mechanism of the Transformer to focus on key information, and uses LSTM instead of the original decoding layer Transformer, so as to use the sensitivity of the LSTM to time perception to capture potential changes in photovoltaic power generation data.
- (3)
- The experimental results show that the prediction accuracy of the proposed method is significantly improved compared with other prediction models under sunny, cloudy, and rainy conditions, and the improvement is the largest near the peak and valley values of the photovoltaic sequence.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Tang, X.; Bai, H.; Zhang, Y.; Pan, S.; Wu, P.; Zhou, C.; Deng, P.; Lei, J.; Li, Q.; Yuan, Z. Simulation and analysis of integrated energy conversion and storage systems using CloudPSS-IESLab. Energy Rep. 2022, 8, 1372–1382. [Google Scholar] [CrossRef]
- Xu, W.; Wang, Z.; Wang, W.; Zhao, J.; Wang, M.; Wang, Q. Short-Term Photovoltaic Output Prediction Based on Decomposition and Reconstruction and XGBoost under Two Base Learners. Energies 2024, 17, 906. [Google Scholar] [CrossRef]
- Kuo, W.C.; Chen, C.H.; Hua, S.H.; Wang, C.C. Assessment of different deep learning methods of power generation forecasting for solar PV system. Appl. Sci. 2022, 12, 7529. [Google Scholar] [CrossRef]
- Wu, X.; Lai, C.S.; Bai, C.; Lai, L.L.; Zhang, Q.; Liu, B. Optimal kernel ELM and variational mode decomposition for probabilistic PV power prediction. Energies 2020, 13, 3592. [Google Scholar] [CrossRef]
- Singh, S.; Saini, S.; Gupta, S.K.; Kumar, R. Solar-PV inverter for the overall stability of power systems with intelligent MPPT control of DC-link capacitor voltage. Prot. Control. Mod. Power Syst. 2023, 8, 15. [Google Scholar] [CrossRef]
- Li, P.; Wu, Z.; Zhang, C.; Xu, Y.; Dong, Z.; Hu, M. Multi-timescale affinely adjustable robust reactive power dispatch of distribution networks integrated with high penetration of PV. J. Mod. Power Syst. Clean Energy 2021, 11, 324–334. [Google Scholar] [CrossRef]
- Tsai, W.C.; Tu, C.S.; Hong, C.M.; Lin, W.M. A review of state-of-the-art and short-term forecasting models for solar pv power generation. Energies 2023, 16, 5436. [Google Scholar] [CrossRef]
- Gu, B.; Shen, H.; Lei, X.; Hu, H.; Liu, X. Forecasting and uncertainty analysis of day-ahead photovoltaic power using a novel forecasting method. Appl. Energy 2021, 299, 117291. [Google Scholar] [CrossRef]
- Cheng, L.; Zang, H.; Trivedi, A.; Srinivasan, D.; Wei, Z.; Sun, G. Mitigating the impact of photovoltaic power ramps on intraday economic dispatch using reinforcement forecasting. IEEE Trans. Sustain. Energy 2023, 15, 3–12. [Google Scholar] [CrossRef]
- Zhang, C.; Peng, T.; Nazir, M.S. A novel integrated photovoltaic power forecasting model based on variational mode decomposition and CNN-BiGRU considering meteorological variables. Electr. Power Syst. Res. 2022, 213, 108796. [Google Scholar] [CrossRef]
- Cui, Y.; Zhang, H.; Zhong, W.; Zhao, Y.; Zhang, J.; Wang, M. Multi-source optimal scheduling of renewable energy high-permeability power system with CSP plants considering demand response. High Volt. Eng. 2020, 46, 1486–1496. [Google Scholar]
- Dong, Z.; Zheng, L.; Su, R.; Wu, H.; Luo, P. An IGWO-SNN-based method for short-term forecast of photovoltaic output. Dianli Xitong Baohu Yu Kongzhi/Power Syst. Prot. Control 2023, 51, 131–138. [Google Scholar]
- Cao, Y.; Liu, G.; Luo, D.; Bavirisetti, D.P.; Xiao, G. Multi-timescale photovoltaic power forecasting using an improved Stacking ensemble algorithm based LSTM-Informer model. Energy 2023, 283, 128669. [Google Scholar] [CrossRef]
- Ma, H.; Zhang, C.; Peng, T.; Nazir, M.S.; Li, Y. An integrated framework of gated recurrent unit based on improved sine cosine algorithm for photovoltaic power forecasting. Energy 2022, 256, 124650. [Google Scholar] [CrossRef]
- Li, G.; Wang, H.; Zhang, S.; Xin, J.; Liu, H. Recurrent neural networks based photovoltaic power forecasting approach. Energies 2019, 12, 2538. [Google Scholar] [CrossRef]
- Ren, X.; Zhang, F.; Sun, Y.; Liu, Y. A Novel Dual-Channel Temporal Convolutional Network for Photovoltaic Power Forecasting. Energies 2024, 17, 698. [Google Scholar] [CrossRef]
- Wang, K.; Du, H.; Jia, R.; Liu, H.; Lianf, Y.; Wang, X. Short-term interval probability prediction of photovoltaic power based on similar daily clustering and QR-CNN-BiLSTM Model. High Volt. Technol. 2022, 48, 372–374. [Google Scholar]
- Liu, X.; Liu, Y.; Kong, X.; Ma, L.; Besheer, A.H.; Lee, K.Y. Deep neural network for forecasting of photovoltaic power based on wavelet packet decomposition with similar day analysis. Energy 2023, 271, 126963. [Google Scholar] [CrossRef]
- Wu, T.; Hu, R.; Zhu, H.; Jiang, M.; Lv, K.; Dong, Y.; Zhang, D. Combined IXGBoost-KELM short-term photovoltaic power prediction model based on multidimensional similar day clustering and dual decomposition. Energy 2024, 288, 129770. [Google Scholar] [CrossRef]
- Wang, M.; Wang, P.; Zhang, T. Evidential extreme learning machine algorithm-based day-ahead photovoltaic power forecasting. Energies 2022, 15, 3882. [Google Scholar] [CrossRef]
- Meng, A.; Xu, X.; Chen, J.; Wang, C.; Zhou, T.; Yin, H. Ultra Short Term Photovoltaic Power Prediction Based on Reinforcement Learning and Combined Deep Learning Model. Dianwang Jishu/Power Syst. Technol. 2021, 45, 4721–4728. [Google Scholar]
- Tang, Y.; Yang, K.; Zhang, S.; Zhang, Z. Photovoltaic power forecasting: A hybrid deep learning model incorporating transfer learning strategy. Renew. Sustain. Energy Rev. 2022, 162, 112473. [Google Scholar] [CrossRef]
- Hou, X.; Wen, D.; Li, F.; Ma, C.; Zhang, X.; Feng, H.; Ren, J. Influence of light and its temperature on solar photovoltaic panels. In Proceedings of the E3S Web of Conferences, Shanghai, China, 16–18 August 2019; EDP Sciences: Paris, France, 2019; Volume 118, p. 01047. [Google Scholar]
- Fu, W.; Fu, Y.; Li, B.; Zhang, H.; Zhang, X.; Liu, J. A compound framework incorporating improved outlier detection and correction, VMD, weight-based stacked generalization with enhanced DESMA for multi-step short-term wind speed forecasting. Appl. Energy 2023, 348, 121587. [Google Scholar] [CrossRef]
- Nascimento EG, S.; de Melo, T.A.; Moreira, D.M. A transformer-based deep neural network with wavelet transform for forecasting wind speed and wind energy. Energy 2023, 278, 127678. [Google Scholar] [CrossRef]
- Liu, J.; Zang, H.; Cheng, L.; Ding, T.; Wei, Z.; Sun, G. A Transformer-based multimodal-learning framework using sky images for ultra-short-term solar irradiance forecasting. Appl. Energy 2023, 342, 121160. [Google Scholar] [CrossRef]
- Song, H.; Zhang, H.; Wang, T.; Li, J.; Wang, Z.; Ji, H.; Chen, Y. Skip-RCNN: A Cost-effective Multivariate Time Series Forecasting Model. IEEE Access 2023, 11, 142087–142099. [Google Scholar] [CrossRef]
- Kow, P.Y.; Liou, J.Y.; Yang, M.T.; Lee, M.H.; Chang, L.C.; Chang, F.J. Advancing climate-resilient flood mitigation: Utilizing transformer-LSTM for water level forecasting at pumping stations. Sci. Total Environ. 2024, 927, 172246. [Google Scholar] [CrossRef]
- Tan, K.; Zhang, E. Load Forecast Based on RF-PSO-VMD-Transformer-LSTM. In Proceedings of the 2023 IEEE 3rd International Conference on Data Science and Computer Application (ICDSCA), Dalian, China, 27–29 October 2023; pp. 684–689. [Google Scholar]
Meteorological Factors | Pearson Correlation Coefficient |
---|---|
Irradiance | 0.8569 |
Temperature | 0.6701 |
Atmospheric Pressure | −0.0134 |
Rainfall | −0.1322 |
Total Cloud Cover | −0.1326 |
Wind Speed | −0.0912 |
Predictive Models | Evaluation Indicators | ||||
---|---|---|---|---|---|
SVM | MAE | 0.3950 | 0.7111 | 0.4322 | 0.3413 |
RMSE | 0.5345 | 0.8905 | 0.5412 | 0.4625 | |
GRU | MAE | 0.3975 | 0.6002 | 0.3281 | 0.3398 |
RMSE | 0.5510 | 0.7777 | 0.4057 | 0.4058 | |
LSTM | MAE | 0.3521 | 0.5744 | 0.3905 | 0.3045 |
RMSE | 0.5037 | 0.7782 | 0.4607 | 0.3700 | |
Transformer | MAE | 0.3250 | 0.5311 | 0.3380 | 0.2440 |
RMSE | 0.4645 | 0.6990 | 0.4032 | 0.2954 | |
Transformer-GRU | MAE | 0.3045 | 0.5328 | 0.3396 | 0.2441 |
RMSE | 0.4376 | 0.7004 | 0.4063 | 0.2951 | |
Transformer-LSTM | MAE | 0.2843 | 0.5310 | 0.3308 | 0.2319 |
RMSE | 0.4212 | 0.6995 | 0.3956 | 0.2831 |
Predictive Models | Evaluation Indicators | Sun | Cloud | Rain |
---|---|---|---|---|
LSTM | MAE | 1.9092 | 1.2516 | 1.2993 |
RMSE | 2.3697 | 1.4146 | 1.4855 | |
Transformer | MAE | 1.3033 | 0.9364 | 0.5267 |
RMSE | 1.7887 | 1.1979 | 0.7946 | |
Transformer-LSTM | MAE | 0.9275 | 0.9288 | 0.7580 |
RMSE | 1.1597 | 1.1840 | 0.9963 | |
IID-LSTM | MAE | 0.7699 | 0.6701 | 0.3081 |
RMSE | 1.0393 | 0.9105 | 0.4411 | |
IID-Transformer | MAE | 0.8227 | 0.8070 | 0.3253 |
RMSE | 1.0595 | 1.0798 | 0.4814 | |
IID-Transformer-GRU | MAE | 0.8026 | 0.5900 | 0.3351 |
RMSE | 0.9935 | 0.8459 | 0.4410 | |
IID-Transformer-LSTM | MAE | 0.7110 | 0.5717 | 0.3007 |
RMSE | 0.9031 | 0.7971 | 0.4201 |
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. |
© 2024 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
Liao, Z.; Min, W.; Li, C.; Wang, B. Photovoltaic Power Prediction Based on Irradiation Interval Distribution and Transformer-LSTM. Energies 2024, 17, 2969. https://doi.org/10.3390/en17122969
Liao Z, Min W, Li C, Wang B. Photovoltaic Power Prediction Based on Irradiation Interval Distribution and Transformer-LSTM. Energies. 2024; 17(12):2969. https://doi.org/10.3390/en17122969
Chicago/Turabian StyleLiao, Zhiwei, Wenlong Min, Chengjin Li, and Bowen Wang. 2024. "Photovoltaic Power Prediction Based on Irradiation Interval Distribution and Transformer-LSTM" Energies 17, no. 12: 2969. https://doi.org/10.3390/en17122969
APA StyleLiao, Z., Min, W., Li, C., & Wang, B. (2024). Photovoltaic Power Prediction Based on Irradiation Interval Distribution and Transformer-LSTM. Energies, 17(12), 2969. https://doi.org/10.3390/en17122969