Submit your papersSubmit Now
For Enquiries: [email protected]
IIARD LogoIIARD

Visual-Aware Solar Forecasting: Attention-Driven Spatiotemporal Learning from Sky Images for Grid-Responsive PV Prediction

Richard Iherorochi Nneji, Uchechi Joyce Nneji, Confidence Chigozirim Olumba, Miracle Ugomma Anunobi, Chibueze Favour Aririguzo, Benjamin Chiemeka Opara,, Simon Onuwa Agbonifo, Happy Nkanta Monday

Abstract

Solar energy plays a pivotal role in sustainable energy systems, yet its inherent variability due to weather dynamics poses significant challenges for grid integration and operational efficiency. This research addresses these challenges by proposing an attention-based sequence-to-sequence (Seq2Seq) deep learning model for short-term solar energy forecasting, leveraging the SKIPP’D dataset comprising sky images (64×64 resolution, 1-minute intervals) and synchronized photovoltaic (PV) generation data. The hybrid architecture integrates a convolutional neural network encoder for spatial feature extraction from sky images and long short-term memory decoder enhanced with multi-head attention mechanisms to capture complex spatiotemporal dependencies. Rigorous preprocessing ensures data alignment, normalization, and partitioning into training, validation, and test sets stored in HDF5 format. Model performance is evaluated using metrics including root mean squared error , mean absolute error , mean absolute percentage error , and coefficient of determination (R2), with separate analyses for sunny and cloudy conditions. Results demonstrate robust performance on sunny days (RMSE: 2.156, MAE: 1.720, R2: 0.914) and moderate accuracy under cloudy skies (RMSE: 4.885, MAE: 3.818, R2: 0.579), achieving an overall RMSE of 3.779 and R2 of 0.755. The model outperforms traditional baselines (e.g., ARIMA, LSTM) by 30% in RMSE during clear-sky periods, validating the efficacy of attention mechanisms in prioritizing critical temporal features. By addressing the limitations of conventional models in handling rapid cloud-induced fluctuations, this work contributes to enhanced grid stability, optimized energy storage dispatch, and scalable renewable energy integration.

Keywords

Attention MechanismSequence ModelsSolar Energy ForecastingDeep LearningSpatiotemporal data

References

Xiao, F., Wang, X. kang, Hou, W. hui, Zhang, X. yang, & Wang, J. qiang. (2023). An attention- based Bayesian sequence to sequence model for short-term solar power generation prediction within decomposition ensemble strategy. Journal of Cleaner Production, 416. https://doi.org/10.1016/j.jclepro.2023.137827 Zhou, Y., Li, Y., Wang, D., & Liu, Y. (2023). A multistep ahead global solar radiation prediction method using an attention-based transformer model with an interpretable mechanism. International Journal of Hydrogen Energy, 48(40), 15317–15330. https://doi.org/10.1016/j.ijhydene.2023.01.068 Nourani, V., Behfar, N., Ng, A., Zhang, C., & Sadikoglu, F. (2024). Application of wavelet and seasonal based emotional ANN models to predict solar irradiance. Energy Reports, 12, 3258–3277. https://doi.org/10.1016/j.egyr.2024.09.011 Wang, Y., Zhang, C., Fu, Y., Suo, L., Song, S., Peng, T., & Shahzad Nazir, M. (2023). Hybrid solar radiation forecasting model with temporal convolutional network using data decomposition and improved artificial ecosystem-based optimization algorithm. Energy, 280. https://doi.org/10.1016/j.energy.2023.128171 Sakib, S., Mahadi, M. K., Abir, S. R., Moon, A. M., Shafiullah, A., Ali, S., Faisal, F., & Nishat, M. M. (2024). AttentionBased Models for Multivariate Time Series Forecasting: Multistep Solar Irradiation Prediction. Heliyon, 10(6). https://doi.org/10.1016/j.heliyon.2024.e27795 Kathole, A. B., Jadhav, D., Vhatkar, K. N., Amol, S., & Gandhewar, N. (2024). Solar energy prediction in IoT system based optimized complex-valued spatiotemporal graph convolutional neural network. KnowledgeBased Systems, 304. https://doi.org/10.1016/j.knosys.2024.112400 Yin, H., Yang, M. sen, Lan, H., Hong, Y. Y., Guo, D., & Jin, F. (2024). A hybrid graph attention network-based method for interval prediction of shipboard solar irradiation. Energy, 298. https://doi.org/10.1016/j.energy.2024.131131 Xin, X., Liu, Y., Zhang, Z., Zheng, H., & Zhou, Y. (2024). A day ahead operational regulation method for solar district heating systems based on model predictive control. Applied Energy, 377, 124619. https://doi.org/10.1016/j.apenergy.2024.124619 Kong, X., Du, X., Xue, G., & Xu, Z. (2023). Multistep short-term solar radiation prediction based on empirical mode decomposition and gated recurrent unit optimized via an attention mechanism. Energy, 282. https://doi.org/10.1016/j.energy.2023.128825 Jonathan, A. L., Cai, D., Ukwuoma, C. C., Nkou, N. J. J., Huang, Q., & Bamisile, O. (2024). A radiant shift: Attention-embedded CNNs for accurate solar irradiance forecasting and prediction from sky images. Renewable Energy, 234. https://doi.org/10.1016/j.renene.2024.121133 Pfeifroth, U., Drücke, J., Kothe, S., Trentmann, J., Schröder, M., & Hollmann, R. (2024). SARAH3 – satellite-based climate data records of surface solar radiation. Earth System Science Data, 16(11), 5243–5265. https://doi.org/10.5194/essd1652432024 Kharlova, E., May, D., & Musilek, P. (2020, July 1). Forecasting Photovoltaic Power Production using a Deep Learning Sequence to Sequence Model with Attention. Proceedings of the International Joint Conference on Neural Networks. https://doi.org/10.1109/IJCNN48605.2020.9207573 Raju, V. A. G., Nayak, J., Dash, P. B., & Mishra, M. (2025). Short-term solar irradiance forecasting model based on hyperparameter tuned LSTM via chaotic particle swarm optimization algorithm. Case Studies in Thermal Engineering, 69. https://doi.org/10.1016/j.csite.2025.105999 Maung, K., & Swanson, N. R. (2025). A survey of models and methods used for forecasting when investing in financial markets. International Journal of Forecasting. https://doi.org/10.1016/j.ijforecast.2025.03.002 Prestwich, S. D. (2019). Tuning forecasting algorithms for black swans. IFAC-PapersOnLine, 52(13), 1496–1501. https://doi.org/10.1016/j.ifacol.2019.11.411 Altork, Y. (2025). Comparative analysis of machine learning models for wind speed forecasting: Support vector machines, fine tree, and linear regression approaches. International Journal of Thermofluids, 27. https://doi.org/10.1016/j.ijft.2025.101217 Shao, P., Wang, H., Long, G., Liao, J., Gan, F., Xu, B., Hu, K., & Teng, Y. (2024). A novel multi-step ahead prediction method for landslide displacement based on autoregressive integrated moving average and intelligent algorithm. Engineering Applications of Artificial Intelligence, 137. https://doi.org/10.1016/j.engappai.2024.109107 Mallala, B., Ahmed, A. I. U., Pamidi, S. v., Faruque, M. O., & M, R. R. (2025). Forecasting global sustainable energy from renewable sources using random forest algorithm. Results in Engineering, 25. https://doi.org/10.1016/j.rineng.2024.103789 Amshi, A. H., & Prasad, R. (2023). Time series analysis and forecasting of cholera disease using discrete wavelet transform and seasonal autoregressive integrated moving average model. Scientific African, 20. https://doi.org/10.1016/j.sciaf.2023.e01652 Chen, C., Li, B., Zhang, H., Zhao, M., Liang, Z., Li, K., & An, X. (2025). Performance enhancement of deep learning model with attention mechanism and FCN model in flood forecasting. Journal of Hydrology, 658. https://doi.org/10.1016/j.jhydrol.2025.133221 Salim, M., & Djunaidy, A. (2024). Development of a CNN-LSTM Approach with Images as Time-Series Data Representation for Predicting Gold Prices. Procedia Computer Science, 234, 333–340. https://doi.org/10.1016/j.procs.2024.03.007 Niu, Z., Zhong, G., & Yu, H. (2021). A review of the attention mechanism of deep learning. Neurocomputing, 452, 48–62. https://doi.org/10.1016/j.neucom.2021.03.091 Neshat, M., Nezhad, M. M., Mirjalili, S., Garcia, D. A., Dahlquist, E., & Gandomi, A. H. (2023). Short-term solar radiation forecasting using hybrid deep residual learning and gated LSTM recurrent network with differential covariance matrix adaptation evolution strategy. Energy, 278. https://doi.org/10.1016/j.energy.2023.127701 Li, P., Yang, H., Wu, H., Wang, Y., Su, H., Zheng, T., Zhu, F., Zhang, G., & Han, Y. (2024). Deep learning model for solar and wind energy forecasting considering Northwest China as an example. Results in Engineering, 24. https://doi.org/10.1016/j.rineng.2024.102939

More Articles from INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND MATHEMATICAL THEORY

Advances in Algorithmic Contract Scoring for Pre-Negotiation Yield Optimization and Risk Retention

Author: Ngozi Samuel Uzougbo, Michael Ominyi, Cyril Chimelie Anichukwueze, Blessing, Chika Jones

DevTest flow: Designing a Scalable Continuous Testing Pipeline for High-Velocity Software Delivery

Author: Lawal Ahmed Oladimeji, Achori Busayo, Akeju BusayoZainab, Saka Samson, Damilare, Mbah Demian Chidi, Runsewe Similoluwa Mayowa, Oladiti Luqman, Abiodun