IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0308002.html
   My bibliography  Save this article

Explainable AI and optimized solar power generation forecasting model based on environmental conditions

Author

Listed:
  • Rizk M Rizk-Allah
  • Lobna M Abouelmagd
  • Ashraf Darwish
  • Vaclav Snasel
  • Aboul Ella Hassanien

Abstract

This paper proposes a model called X-LSTM-EO, which integrates explainable artificial intelligence (XAI), long short-term memory (LSTM), and equilibrium optimizer (EO) to reliably forecast solar power generation. The LSTM component forecasts power generation rates based on environmental conditions, while the EO component optimizes the LSTM model’s hyper-parameters through training. The XAI-based Local Interpretable and Model-independent Explanation (LIME) is adapted to identify the critical factors that influence the accuracy of the power generation forecasts model in smart solar systems. The effectiveness of the proposed X-LSTM-EO model is evaluated through the use of five metrics; R-squared (R2), root mean square error (RMSE), coefficient of variation (COV), mean absolute error (MAE), and efficiency coefficient (EC). The proposed model gains values 0.99, 0.46, 0.35, 0.229, and 0.95, for R2, RMSE, COV, MAE, and EC respectively. The results of this paper improve the performance of the original model’s conventional LSTM, where the improvement rate is; 148%, 21%, 27%, 20%, 134% for R2, RMSE, COV, MAE, and EC respectively. The performance of LSTM is compared with other machine learning algorithm such as Decision tree (DT), Linear regression (LR) and Gradient Boosting. It was shown that the LSTM model worked better than DT and LR when the results were compared. Additionally, the PSO optimizer was employed instead of the EO optimizer to validate the outcomes, which further demonstrated the efficacy of the EO optimizer. The experimental results and simulations demonstrate that the proposed model can accurately estimate PV power generation in response to abrupt changes in power generation patterns. Moreover, the proposed model might assist in optimizing the operations of photovoltaic power units. The proposed model is implemented utilizing TensorFlow and Keras within the Google Collab environment.

Suggested Citation

  • Rizk M Rizk-Allah & Lobna M Abouelmagd & Ashraf Darwish & Vaclav Snasel & Aboul Ella Hassanien, 2024. "Explainable AI and optimized solar power generation forecasting model based on environmental conditions," PLOS ONE, Public Library of Science, vol. 19(10), pages 1-33, October.
  • Handle: RePEc:plo:pone00:0308002
    DOI: 10.1371/journal.pone.0308002
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0308002
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0308002&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0308002?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Ahmed, R. & Sreeram, V. & Mishra, Y. & Arif, M.D., 2020. "A review and evaluation of the state-of-the-art in PV solar power forecasting: Techniques and optimization," Renewable and Sustainable Energy Reviews, Elsevier, vol. 124(C).
    2. Gangqiang Li & Huaizhi Wang & Shengli Zhang & Jiantao Xin & Huichuan Liu, 2019. "Recurrent Neural Networks Based Photovoltaic Power Forecasting Approach," Energies, MDPI, vol. 12(13), pages 1-17, July.
    3. Yin, Rumeng & He, Jiang, 2023. "Design of a photovoltaic electric bike battery-sharing system in public transit stations," Applied Energy, Elsevier, vol. 332(C).
    4. Khan, Zulfiqar Ahmad & Hussain, Tanveer & Baik, Sung Wook, 2023. "Dual stream network with attention mechanism for photovoltaic power forecasting," Applied Energy, Elsevier, vol. 338(C).
    5. Umut Ugurlu & Ilkay Oksuz & Oktay Tas, 2018. "Electricity Price Forecasting Using Recurrent Neural Networks," Energies, MDPI, vol. 11(5), pages 1-23, May.
    6. Liu, Wencheng & Mao, Zhizhong, 2024. "Short-term photovoltaic power forecasting with feature extraction and attention mechanisms," Renewable Energy, Elsevier, vol. 226(C).
    7. Wang, Kejun & Qi, Xiaoxia & Liu, Hongda, 2019. "A comparison of day-ahead photovoltaic power forecasting models based on deep learning neural network," Applied Energy, Elsevier, vol. 251(C), pages 1-1.
    8. Zheng, Jianqin & Zhang, Haoran & Dai, Yuanhao & Wang, Bohong & Zheng, Taicheng & Liao, Qi & Liang, Yongtu & Zhang, Fengwei & Song, Xuan, 2020. "Time series prediction for output of multi-region solar power plants," Applied Energy, Elsevier, vol. 257(C).
    9. Zayed, Mohamed E. & Zhao, Jun & Li, Wenjia & Elsheikh, Ammar H. & Elaziz, Mohamed Abd, 2021. "A hybrid adaptive neuro-fuzzy inference system integrated with equilibrium optimizer algorithm for predicting the energetic performance of solar dish collector," Energy, Elsevier, vol. 235(C).
    10. Long, Huan & Zhang, Zijun & Su, Yan, 2014. "Analysis of daily solar power prediction with data-driven approaches," Applied Energy, Elsevier, vol. 126(C), pages 29-37.
    11. Wang, Kejun & Qi, Xiaoxia & Liu, Hongda, 2019. "Photovoltaic power forecasting based LSTM-Convolutional Network," Energy, Elsevier, vol. 189(C).
    12. Qing, Xiangyun & Niu, Yugang, 2018. "Hourly day-ahead solar irradiance prediction using weather forecasts by LSTM," Energy, Elsevier, vol. 148(C), pages 461-468.
    13. Sunil Kumar & Ilyoung Chong, 2018. "Correlation Analysis to Identify the Effective Data in Machine Learning: Prediction of Depressive Disorder and Emotion States," IJERPH, MDPI, vol. 15(12), pages 1-24, December.
    14. Zhu, Xiwen & Li, Mingxue & Liu, Xiaoqiang & Zhang, Yufeng, 2024. "A backpropagation neural network-based hybrid energy recognition and management system," Energy, Elsevier, vol. 297(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Li, Yifan & Liu, Gang & Cao, Yisheng & Chen, Jiawei & Gang, Xiao & Tang, Jianchao, 2025. "WNPS-LSTM-Informer: A Hybrid Stacking model for medium-term photovoltaic power forecasting with ranked feature selection," Renewable Energy, Elsevier, vol. 244(C).
    2. Tang, Yugui & Yang, Kuo & Zhang, Shujing & Zhang, Zhen, 2022. "Photovoltaic power forecasting: A hybrid deep learning model incorporating transfer learning strategy," Renewable and Sustainable Energy Reviews, Elsevier, vol. 162(C).
    3. Korkmaz, Deniz, 2021. "SolarNet: A hybrid reliable model based on convolutional neural network and variational mode decomposition for hourly photovoltaic power forecasting," Applied Energy, Elsevier, vol. 300(C).
    4. Zhen, Hao & Niu, Dongxiao & Wang, Keke & Shi, Yucheng & Ji, Zhengsen & Xu, Xiaomin, 2021. "Photovoltaic power forecasting based on GA improved Bi-LSTM in microgrid without meteorological information," Energy, Elsevier, vol. 231(C).
    5. Du, Bin & Lund, Peter D. & Wang, Jun, 2021. "Combining CFD and artificial neural network techniques to predict the thermal performance of all-glass straight evacuated tube solar collector," Energy, Elsevier, vol. 220(C).
    6. Rial A. Rajagukguk & Raden A. A. Ramadhan & Hyun-Jin Lee, 2020. "A Review on Deep Learning Models for Forecasting Time Series Data of Solar Irradiance and Photovoltaic Power," Energies, MDPI, vol. 13(24), pages 1-23, December.
    7. Yang, Yanru & Liu, Yu & Zhang, Yihang & Shu, Shaolong & Zheng, Junsheng, 2025. "DEST-GNN: A double-explored spatio-temporal graph neural network for multi-site intra-hour PV power forecasting," Applied Energy, Elsevier, vol. 378(PA).
    8. Pei, Jingyin & Dong, Yunxuan & Guo, Pinghui & Wu, Thomas & Hu, Jianming, 2024. "A Hybrid Dual Stream ProbSparse Self-Attention Network for spatial–temporal photovoltaic power forecasting," Energy, Elsevier, vol. 305(C).
    9. Wang, Xiaoyang & Sun, Yunlin & Luo, Duo & Peng, Jinqing, 2022. "Comparative study of machine learning approaches for predicting short-term photovoltaic power output based on weather type classification," Energy, Elsevier, vol. 240(C).
    10. Rodríguez, Fermín & Martín, Fernando & Fontán, Luis & Galarza, Ainhoa, 2021. "Ensemble of machine learning and spatiotemporal parameters to forecast very short-term solar irradiation to compute photovoltaic generators’ output power," Energy, Elsevier, vol. 229(C).
    11. Hao Zhen & Dongxiao Niu & Min Yu & Keke Wang & Yi Liang & Xiaomin Xu, 2020. "A Hybrid Deep Learning Model and Comparison for Wind Power Forecasting Considering Temporal-Spatial Feature Extraction," Sustainability, MDPI, vol. 12(22), pages 1-24, November.
    12. Elham M. Al-Ali & Yassine Hajji & Yahia Said & Manel Hleili & Amal M. Alanzi & Ali H. Laatar & Mohamed Atri, 2023. "Solar Energy Production Forecasting Based on a Hybrid CNN-LSTM-Transformer Model," Mathematics, MDPI, vol. 11(3), pages 1-19, January.
    13. Khan, Taimoor & Choi, Chang, 2025. "Attention enhanced dual stream network with advanced feature selection for power forecasting," Applied Energy, Elsevier, vol. 377(PC).
    14. Xu, Fang Yuan & Tang, Rui Xin & Xu, Si Bin & Fan, Yi Liang & Zhou, Ya & Zhang, Hao Tian, 2021. "Neural network-based photovoltaic generation capacity prediction system with benefit-oriented modification," Energy, Elsevier, vol. 223(C).
    15. Ze Wu & Feifan Pan & Dandan Li & Hao He & Tiancheng Zhang & Shuyun Yang, 2022. "Prediction of Photovoltaic Power by the Informer Model Based on Convolutional Neural Network," Sustainability, MDPI, vol. 14(20), pages 1-16, October.
    16. Zhu, Jiebei & Li, Mingrui & Luo, Lin & Zhang, Bidan & Cui, Mingjian & Yu, Lujie, 2023. "Short-term PV power forecast methodology based on multi-scale fluctuation characteristics extraction," Renewable Energy, Elsevier, vol. 208(C), pages 141-151.
    17. Perera, Maneesha & De Hoog, Julian & Bandara, Kasun & Senanayake, Damith & Halgamuge, Saman, 2024. "Day-ahead regional solar power forecasting with hierarchical temporal convolutional neural networks using historical power generation and weather data," Applied Energy, Elsevier, vol. 361(C).
    18. Li, Qing & Zhang, Xinyan & Ma, Tianjiao & Jiao, Chunlei & Wang, Heng & Hu, Wei, 2021. "A multi-step ahead photovoltaic power prediction model based on similar day, enhanced colliding bodies optimization, variational mode decomposition, and deep extreme learning machine," Energy, Elsevier, vol. 224(C).
    19. Hui Huang & Qiliang Zhu & Xueling Zhu & Jinhua Zhang, 2023. "An Adaptive, Data-Driven Stacking Ensemble Learning Framework for the Short-Term Forecasting of Renewable Energy Generation," Energies, MDPI, vol. 16(4), pages 1-20, February.
    20. Eugenio Borghini & Cinzia Giannetti & James Flynn & Grazia Todeschini, 2021. "Data-Driven Energy Storage Scheduling to Minimise Peak Demand on Distribution Systems with PV Generation," Energies, MDPI, vol. 14(12), pages 1-22, June.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0308002. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.