Solar Radiation Prediction Based on Conformer-GLaplace-SDAR Model
Abstract
:1. Introduction
- This study combines the Conformer model with the SDAR model and applies it to the interval prediction of solar radiation. In comparison to traditional time series prediction models, the model developed in our study shows significant superiority in terms of accuracy and reliability, thereby greatly enhancing the predictive performance.
- The Conformer model uses fast Fourier transform to extract correlations among multivariate variables, completing the modeling of relationships between multiple variables. By utilizing multi-scale dynamics, temporal patterns across different scales of representation are captured in this study. Additionally, employing a stationary and instant recurrent network reduces time complexity. The Conformer model compensates for the global information loss caused by the sliding-window attention method, while also improving the accuracy and generalization ability through a normalizing flow to identify hidden patterns.
- By conducting calculations, it is determined that the residuals of solar radiation exhibit a fat-tailed distribution form. Consequently, in contrast to previous studies employing the normal distribution, this paper selects the GLaplace distribution as the prior distribution to more accurately depict the distribution of solar radiation and thereby enhance model performance.
2. Methodology
2.1. The Principle of Conformer Model
2.1.1. Input Representation Block
- Multi-variable Correlation.
- Multi-scale Temporal Patterns
- Fusion of Multi-variable Correlation and Temporal Patterns
2.1.2. Encoder–Decoder Architecture
2.1.3. Normalizing Flow
2.1.4. Loss Function
2.2. The Principle of SDAR Model
2.2.1. Generalized Laplace Distribution
2.2.2. The Process of SDAR Model
2.3. Evaluation Indexes for Point Prediction
2.4. Evaluation Indexes for Interval Prediction
- PICP
- PINAW.
- CWC
3. Data Source and Data Analysis
3.1. Data Sources
3.2. Data Preprocessing
3.3. Construction of Indicator System
3.4. Descriptive Analysis
3.4.1. Trends of SD, RHU, AT, and DGSR Over Time
3.4.2. Correlation Between Variables
4. The Construction and Results of the Model
4.1. Point Prediction Based on Conformer Model
4.2. Interval Prediction Based on SDAR Model
4.2.1. Statistical Distribution of Solar Radiation
4.2.2. Interval Prediction Results
4.3. Comparison and Evaluation of Point Prediction Results
4.3.1. Introduction to Contrast Models
- ARMAX: The Autoregressive Moving Average with Exogenous Variables model [31] is a statistical model for time series analysis and forecasting that combines the characteristics of Autoregressive (AR), Moving Average (MA), and exogenous variable X. The ARMAX model is suitable for time series data with linear relationships and external influencing factors, allowing it to effectively capture autocorrelation, lag effects, and the influence of external factors in non-stationary time series data, which make it highly effective in modeling long-term dependence.
- LSTM: The Long Short-Term Memory model [32] is a commonly used neural network model in sequence data processing. It is designed to address issues such as the vanishing gradient and exploding gradient problems faced by traditional RNN models. LSTM introduces three gate structures, namely the input gate, forget gate, and output gate, to control the flow of information.
- RF: Random Forest [33] is an ensemble learning algorithm based on decision trees. It uses a bottom-up tree building method and splits nodes by randomly selecting feature subsets in the training set to build multiple different decision trees. During prediction, the results of each decision tree are voted or averaged to obtain the final classification or regression results.
- SVR: Support Vector Machine Regression [11] is a nonlinear regression analysis method based on support vector machines. The core idea of SVR is to map the original space to a high-dimensional space and construct the best fitting hyperplane in the high-dimensional space. The functional mapping relationship between the hyperplane and the original space is described using a kernel function, which transforms the original nonlinear problem into a linear one in a high-dimensional space.
4.3.2. Comparison of Results
4.4. Comparison and Evaluation of Interval Prediction Results
Introduction to Contrast Models
- KDE: Kernel Density Estimation [34] is a widely used non-parametric technique, proposed by Rosenblatt (1955) and Emanuel Parzen (1962), for identifying and analyzing latent patterns and trends hidden in time series data. The basic idea behind KDE is to represent the probability density function as a summation of kernel functions centered at each observed data point. Its advantage is that it provides a smooth estimate of the underlying distribution without making any assumptions about its shape, thereby enabling a better adaptation to the complexity of the data.
- NGB: Natural Gradient Boosting [35] is a gradient boosting regression method that is used to predict the conditional probability distribution of a target variable and subsequently construct prediction intervals. The calculation of natural gradients involves computing the Fisher information matrix, which is utilized to transform the Euclidean gradients into natural gradients. It is an extension of traditional gradient boosting tree algorithms, which has demonstrated improvements in terms of convergence speed and generalization performance. NGB has exhibited excellent performance in many machine learning tasks, particularly in scenarios where the parameter space has a non-flat or curved structure and high-dimensional datasets.
- QRF: Quantile Regression Forest [36] is a non-parametric conditional quantile method. In QRF, the random forest algorithm is adapted to perform quantile regression instead of traditional regression or classification. The main idea is to train each decision tree in the forest to approximate a specific quantile of the conditional distribution of the response variable. It provides a more comprehensive understanding of the relationship between predictors and response by estimating quantiles throughout the distribution rather than just the mean.
5. Conclusions
5.1. Main Conclusions
5.2. Practical Significance and Practical Value of the Model
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- International Energy Agency. Tracking Clean Energy Progress 2023. [EB/OL]. 2023. Available online: https://www.iea.org/reports/tra-cking-clean-energy-progress-2023 (accessed on 18 October 2023).
- Hissou, H.; Benkirane, S.; Guezzaz, A.; Azrour, M.; Beni-Hssane, A. A Novel Machine Learning Approach for Solar Radiation Estimation. Sustainability 2023, 15, 10609. [Google Scholar] [CrossRef]
- Sengupta, M.; Xie, Y.; Lopez, A.; Habte, A.; Maclaurin, G.; Shelby, J. The national solar radiation data base (NSRDB). Renew. Sustain. Energy Rev. 2018, 89, 51–60. [Google Scholar] [CrossRef]
- Essam, Y.; Ahmed, A.N.; Ramli, R.; Chau, K.W.; Idris Ibrahim, M.S.; Sherif, M.; Sefelnasr, A.; El-Shafie, A. Investigating photovoltaic solar power output forecasting using machine learning algorithms. Eng. Appl. Comput. Fluid Mech. 2022, 16, 2002–2034. [Google Scholar] [CrossRef]
- Heng, S.Y.; Ridwan, W.M.; Kumar, P.; Ahmed, A.N.; Fai, C.M.; Birima, A.H.; El-Shafie, A. Artificial neural network model with different backpropagation algorithms and meteorological data for solar radiation prediction. Sci. Rep. 2022, 12, 10457. [Google Scholar] [CrossRef] [PubMed]
- Ehteram, M.; Ahmed, A.N.; Fai, C.M.; Afan, H.A.; El-Shafie, A. Accuracy Enhancement for Zone Mapping of a Solar Radiation Forecasting Based Multi-Objective Model for Better Management of the Generation of Renewable Energy. Eng. Appl. Comput. Fluid Mech. 2022, 16, 2730. [Google Scholar] [CrossRef]
- Ahmad, M.J.; Tiwari, G.N. Solar radiation models—A review. Int. J. Energy Res. 2011, 35, 271–290. [Google Scholar] [CrossRef]
- Chodakowska, E.; Nazarko, J.; Nazarko, Ł.; Rabayah, H.S.; Abendeh, R.M.; Alawneh, R. ARIMA Models in Solar Radiation Forecasting in Different Geographic Locations. Energies 2023, 16, 5029. [Google Scholar] [CrossRef]
- Jung, A.H.; Lee, D.H.; Kim, J.Y.; Kim, C.K.; Kim, H.G.; Lee, Y.S. Regional Photovoltaic Power Forecasting Using Vector Autoregression Model in South Korea. Energies 2022, 15, 7853. [Google Scholar] [CrossRef]
- Dudek, G.; Pełka, P.; Smyl, S. A hybrid residual dilated LSTM and exponential smoothing model for midterm electric load forecasting. IEEE Trans. Neural Netw. Learn. Syst. 2021, 33, 2879–2891. [Google Scholar] [CrossRef]
- Fan, J.; Wang, X.; Zhang, F.; Ma, X.; Wu, L. Predicting daily diffuse horizontal solar radiation in various climatic regions of China using support vector machine and tree-based soft computing models with local and extrinsic climatic data. J. Clean. Prod. 2020, 248, 119264. [Google Scholar] [CrossRef]
- Zeng, Z.; Wang, Z.; Gui, K.; Yan, X.; Gao, M.; Luo, M.; Geng, H.; Liao, T.; Li, X.; An, J.; et al. Daily global solar radiation in China estimated from high-density meteorological observations: A random forest model framework. Earth Space Sci. 2020, 7, e2019EA001058. [Google Scholar] [CrossRef]
- Alizamir, M.; Othman Ahmed, K.; Shiri, J.; Fakheri Fard, A.; Kim, S.; Heddam, S.; Kisi, O. A New Insight for Daily Solar Radiation Prediction by Meteorological Data Using an Advanced Artificial Intelligence Algorithm: Deep Extreme Learning Machine Integrated with Variational Mode Decomposition Technique. Sustainability 2023, 15, 11275. [Google Scholar] [CrossRef]
- Goodfellow, I.; Bengio, Y.; Courville, A. Deep Learning; MIT Press: Cambridge, MA, USA, 2016. [Google Scholar]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998–6008. [Google Scholar]
- Li, X.; Can, W.; Ping, J. Review of interval Analysis of Power system Considering Uncertainty. Electr. Power Autom. Equip. 2023, 43, 1–11. [Google Scholar]
- Kaiwen, L. Research on Time Series Interval Prediction Theory and Method Based on Computational Intelligence; National University of Defense Technology: Changsha, China, 2018. [Google Scholar]
- Zhang, Y.; Wang, J.; Wang, X. Review on probabilistic forecasting of wind power generation. Renew. Sustain. Energy Rev. 2014, 32, 255–270. [Google Scholar] [CrossRef]
- Kaplani, E.; Kaplanis, S. A stochastic simulation model for reliable PV system sizing providing for solar radiation fluctuations. Appl. Energy 2012, 97, 970–981. [Google Scholar] [CrossRef]
- Lin, F.; Zhang, Y.; Wang, K.; Wang, J.; Zhu, M. Parametric probabilistic forecasting of solar power with fat-tailed distributions and deep neural networks. IEEE Trans. Sustain. Energy 2022, 13, 2133–2147. [Google Scholar] [CrossRef]
- Gulati, A.; Qin, J.; Chiu, C.C.; Parmar, N.; Zhang, Y.; Yu, J.; Han, W.; Wang, S.; Zhang, Z.; Wu, Y.; et al. Conformer: Convolution-augmented transformer for speech recognition. arXiv 2020, arXiv:2005.08100. [Google Scholar]
- Li, Y.; Lu, X.; Xiong, H.; Tang, J.; Su, J.; Jin, B.; Dou, D. Towards Long-Term Time-Series Forecasting: Feature, Pattern, and Distribution. arXiv 2023, arXiv:2301.02068. [Google Scholar]
- Nussbaumer, H.J.; Nussbaumer, H.J. The Fast Fourier Transform; Springer: Berlin/Heidelberg, Germany, 1981. [Google Scholar]
- Liu, P.J.; Saleh, M.; Pot, E.; Goodrich, B.; Sepassi, R.; Kaiser, L.; Shazeer, N. Generating wikipedia by summarizing long sequences. arXiv 2018, arXiv:1801.10198. [Google Scholar]
- Rezende, D.; Mohamed, S. Variational inference with normalizing flows. In Proceedings of the International Conference on Machine Learning, PMLR, Lille, France, 6–11 July 2015; pp. 1530–1538. [Google Scholar]
- Salinas, D.; Flunkert, V.; Gasthaus, J.; Januschowski, T. DeepAR: Probabilistic forecasting with autoregressive recurrent networks. Int. J. Forecast. 2020, 36, 1181–1191. [Google Scholar] [CrossRef]
- Alcántara, A.; Galván, I.M.; Aler, R. Direct estimation of prediction intervals for solar and wind regional energy forecasting with deep neural networks. Eng. Appl. Artif. Intell. 2022, 114, 105128. [Google Scholar] [CrossRef]
- Jiang, P.; Li, R.; Li, H. Multi-objective algorithm for the design of prediction intervals for wind power forecasting model. Appl. Math. Model. 2019, 67, 101–122. [Google Scholar] [CrossRef]
- Wei, F.Y. Modern Climate Statistical Diagnosis and Prediction Technology; China Meteorological Press: Beijing, China, 2007. [Google Scholar]
- Ahmad, T.; Manzoor, S.; Zhang, D. Forecasting high penetration of solar and wind power in the smart grid environment using robust ensemble learning approach for large-dimensional data. Sustain. Cities Soc. 2021, 75, 103269. [Google Scholar] [CrossRef]
- Li, Y.; Su, Y.; Shu, L. An ARMAX model for forecasting the power output of a grid connected photovoltaic system. Renew. Energy 2014, 66, 78–89. [Google Scholar] [CrossRef]
- Gensler, A.; Henze, J.; Sick, B.; Raabe, N. Deep Learning for solar power forecasting—An approach using AutoEncoder and LSTM Neural Networks. In Proceedings of the 2016 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Budapest, Hungary, 9–12 October 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 002858–002865. [Google Scholar]
- Jebli, I.; Belouadha, F.Z.; Kabbaj, M.I.; Tilioua, A. Prediction of solar energy guided by pearson correlation using machine learning. Energy 2021, 224, 120109. [Google Scholar] [CrossRef]
- Yamazaki, T.; Homma, H.; Wakao, S.; Fujimoto, Y.; Hayashi, Y. Estimation prediction interval of solar irradiance based on just-in-time modeling for photovoltaic output prediction. Electr. Eng. Jpn. 2016, 195, 1–10. [Google Scholar] [CrossRef]
- Efron, B. Bootstrap methods: Another look at the jackknife. In Breakthroughs in Statistics: Methodology and Distribution; Springer: New York, NY, USA, 1992; Volume 195, pp. 569–593. [Google Scholar]
- Lotfi, M.; Javadi, M.; Osório, G.J.; Monteiro, C.; Catalão, J.P. A novel ensemble algorithm for solar power forecasting based on kernel density estimation. Energies 2020, 13, 216. [Google Scholar] [CrossRef]
- Zhao, M.; Zhang, Y.; Hu, T.; Wang, P. Interval Prediction Method for Solar Radiation Based on Kernel Density Estimation and Machine Learning. Complexity 2022, 2022, 7495651. [Google Scholar] [CrossRef]
Indicators | Units | Detailed Explanation of the Indicators |
---|---|---|
SD | h | Effective sunshine hours are from 9:00 to 15:00 daily. |
RHU | % | The mean value of the ratio of water vapor content to saturated water vapor content of four measurements at 02, 08, 14, and 20 o’clock each day. |
AT | °C | The average temperature measured at 02, 08, 14, and 20 o’clock each day. |
DGSR | MJ/m2 | The amount of solar radiation energy received per unit area. |
Expectations | Variance | Skewness | Kurtosis |
---|---|---|---|
−0.253 | 0.532 | −1.733 | 5.282 |
Models | Evaluation Indexes | |||||
---|---|---|---|---|---|---|
MSE | RMSE | MAE | MAPE | MSPE | ||
Conformer | 0.8645 | 0.9298 | 0.7033 | 0.9545 | 5.4402 | 0.7751 |
ARMAX | 5.3746 | 4.3983 | 3.9374 | 4.8472 | 60.4892 | 0.0918 |
LSTM | 1.8183 | 1.3488 | 1.1721 | 1.564 | 10.6267 | 0.1814 |
RF | 2.1221 | 1.4568 | 1.2283 | 2.6254 | 39.3558 | 0.01 |
SVR | 43.8562 | 6.6224 | 5.2492 | 13.0825 | 1299.2 | 0.1814 |
Methods | Evaluation Index (95%) | Evaluation Index (90%) | ||||
---|---|---|---|---|---|---|
PICP | PINAW | CWC | PICP | PINAW | CWC | |
Conformer-KDE | 0.973 | 0.251 | 0.251 | 0.937 | 0.215 | 0.226 |
Conformer-NGB | 0.968 | 0.267 | 0.269 | 0.921 | 0.231 | 0.247 |
Conformer-QRF | 0.941 | 0.162 | 0.167 | 0.914 | 0.122 | 0.129 |
ARMAX-SDAR | 0.943 | 0.157 | 0.165 | 0.931 | 0.276 | 0.248 |
Conformer-SDAR | 0.949 | 0.075 | 0.068 | 0.927 | 0.039 | 0.039 |
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. |
© 2023 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
Lyu, Z.; Shen, Y.; Zhao, Y.; Hu, T. Solar Radiation Prediction Based on Conformer-GLaplace-SDAR Model. Sustainability 2023, 15, 15050. https://doi.org/10.3390/su152015050
Lyu Z, Shen Y, Zhao Y, Hu T. Solar Radiation Prediction Based on Conformer-GLaplace-SDAR Model. Sustainability. 2023; 15(20):15050. https://doi.org/10.3390/su152015050
Chicago/Turabian StyleLyu, Zhuoyuan, Ying Shen, Yu Zhao, and Tao Hu. 2023. "Solar Radiation Prediction Based on Conformer-GLaplace-SDAR Model" Sustainability 15, no. 20: 15050. https://doi.org/10.3390/su152015050
APA StyleLyu, Z., Shen, Y., Zhao, Y., & Hu, T. (2023). Solar Radiation Prediction Based on Conformer-GLaplace-SDAR Model. Sustainability, 15(20), 15050. https://doi.org/10.3390/su152015050