Abstract
Days-ahead forecasting of photovoltaic (PV) power generation is crucial for pricing and balancing the renewable power grids. The traditional physics-based models offer trade-off interpretability with limited accuracy, whereas the attention-based data-driven models have high predictive accuracy, but limited interpretability. The accurate predictions of PV power are challenging due to stochastic, weather-dependent nature of solar radiation, which induces distribution shifts and non-stationary patterns in the time series data. This paper addresses some of these limitations by proposing a novel physics-guided architecture termed PhysEmbedFormer for forecasting the PV power data in the context of meteorological data. It offers improved interpretability, and forecasting robustness by accounting for the external weather-dependent factors. In particular, the input PV time series are first decomposed into the physics-estimated component and the residual component. The components are jointly embedded into a high-dimensional vector-space using the cross-modality module. The subsequent dual-stage Kolmogorov-Arnold Network (KAN) refinement module represent a learnable non-linear transformation to better match the sample distributions to simpler downstream forecasting models such as the previously proposed iTransformer. Extensive experiments on multiple PV datasets show that PhysEmbedFormer achieves consistently lower MAE, RMSE, and higher \(R^2\) than other competing architectures across different prediction horizons up to 72 hours. At the same time, PhysEmbedFormer experiences the second narrowest 95% confidence interval in its predictions, so it is also robust to sample distribution shifts due to changes in the present weather conditions.
Similar content being viewed by others
Data Availability
No new data were generated in the study. The DKASC, Alice Springs public datasets were used to produce the numerical results, https://dkasolarcentre.com.au/download?location=alice-springs.
References
Cavus, M. & Allahham, A. Spatio-temporal attention-based deep learning for smart grid demand prediction. Electronics14(13), 2514. https://doi.org/10.3390/electronics14132514 (2025).
Cavus, M. & Bell, M. Enabling smart grid resilience with deep learning-based battery health prediction in ev fleets. Batteries11(8), 283 (2025).
Gupta, M., Arya, A., Varshney, U., Mittal, J. & Tomar, A. A review of PV power forecasting using machine learning techniques. Prog. Eng. Sci.2, 100058. https://doi.org/10.1016/j.pes.2025.100058 (2025).
Liu, C. et al. A review of multitemporal and multispatial scales photovoltaic forecasting methods. IEEE Access10, 35073–35093. https://doi.org/10.1109/ACCESS.2022.3162206 (2022).
Massidda, L. & Marrocu, M. Use of multilinear adaptive regression splines and numerical weather prediction to forecast the power output of a PV plant in borkum, germany. Solar Energy146, 141–149. https://doi.org/10.1016/j.solener.2017.02.007 (2017).
Zhang, J. et al. A suite of metrics for assessing the performance of solar power forecasting. Solar Energy111, 157–175. https://doi.org/10.1016/j.solener.2014.10.016 (2015).
Soman, S., Zareipour, H., Malik, O. & Mandal, P. A review of wind power and wind speed forecasting methods with different time horizons. In Proceedings of NAPS, 1–8 (2010). https://doi.org/10.1109/NAPS.2010.5619586.
Xu, Z., Zeng, A. & Xu, Q. FITS: Modeling time series with 10k parameters. In Proceedings of ICLR (2024).
Lin, S., Lin, W., Wu, W., Chen, H. & Yang, J. SparseTSF: Modeling long-term time series forecasting with 1k parameters. In Proceedings of ICML (2024).
Abdellatif, A., Amine, T. & Mohammed, T. Bi-LSTM, GRU and 1D-CNN models for short-term photovoltaic panel efficiency forecasting case amorphous silicon grid-connected PV system. Results Eng.21, 101886. https://doi.org/10.1016/j.rineng.2024.101886 (2024).
Liu, S. et al. Pyraformer: Low-complexity pyramidal attention for long-range time series modeling and forecasting. In Proceedings of ICLR (2022).
Zhou, T. et al. FEDformer: Frequency enhanced decomposed transformer for long-term series forecasting. In Proceedings of ICML (2022).
Zhang, Y. & Yan, J. Crossformer: Transformer utilizing cross-dimension dependency for multivariate time series forecasting. In Proceedings of ICLR (2023).
Liu, Y. et al. iTransformer: Inverted transformers are effective for time series forecasting. In Proceedings of ICLR (2024).
Li, Y. et al. WNPS-LSTM-Informer: A hybrid stacking model for medium-term photovoltaic power forecasting with ranked feature selection. Renew. Energy244, 122687. https://doi.org/10.1016/j.renene.2025.122687 (2025).
Zhai, C. et al. Photovoltaic power forecasting based on VMD-SSA-Transformer: Multidimensional analysis of dataset length, weather mutation and forecast accuracy. Energy324, 135971. https://doi.org/10.1016/j.energy.2025.135971 (2025).
Tang, H., Kang, F., Li, X. & Sun, Y. Short-term photovoltaic power prediction model based on feature construction and improved transformer. Energy320, 135213. https://doi.org/10.1016/j.energy.2025.135213 (2025).
Tao, K., Zhao, J., Tao, Y., Qi, Q. & Tian, Y. Operational day-ahead photovoltaic power forecasting based on transformer variant. Appl. Energy373, 123825. https://doi.org/10.1016/j.apenergy.2024.123825 (2024).
Singh, P., Singh, N. & Singh, A. Wavelet transform based gated-recurrent unit deep learning approach for power output of solar photovoltaic system forecasting. SN Comput. Sci.6(3), 243. https://doi.org/10.1007/s42979-025-03786-9 (2025).
Zhang, L., Zhu, J., Cheung, K. & Zhou, J. Online prediction of photovoltaic power considering concept drift. In 2023 IEEE Power & Energy Society General Meeting (PESGM), 1–5 (2023). https://doi.org/10.1109/PESGM52003.2023.10252625.
Hamad, S., Ghalib, M., Munshi, A., Alotaibi, M. & Ebied, M. Evaluating machine learning models comprehensively for predicting maximum power from photovoltaic systems. Sci. Rep.15(1), 10750. https://doi.org/10.1038/s41598-025-91044-6 (2025).
Thaker, J. & Höller, R. Hybrid model for intra-day probabilistic PV power forecast. Renew. Energy232, 121057. https://doi.org/10.1016/j.renene.2024.121057 (2024).
Wang, K. et al. Accurate photovoltaic power prediction via temperature correction with physics-informed neural networks. Energy https://doi.org/10.1016/j.energy.2025.136546 (2025).
Tian, Z., Chen, Y. & Wang, G. Enhancing PV power forecasting accuracy through nonlinear weather correction based on multi-task learning. Appl. Energy386, 125525. https://doi.org/10.1016/j.apenergy.2025.125525 (2025).
Azeem, A. et al. Boosting STLF in smart grid via adaptive ensemble for concept drift. In Proceedings of the International Conference on E-Mobility—Volume 2. ICEM 2024, vol. 1439 of Lecture Notes in Electrical Engineering (2025). https://doi.org/10.1007/978-981-96-8093-1_20.
Jagait, R., Fekri, M., Grolinger, K. & Mir, S. Load forecasting under concept drift: Online ensemble learning with recurrent neural network and arima. IEEE Access9, 98992–99008. https://doi.org/10.1109/ACCESS.2021.3095420 (2021).
Azeem, A., Ismail, I., Jameel, S., Romlie, F. & Danyaro, K. Concept drift scenarios in electrical load forecasting with different generation modalities. In 2022 International Conference on Future Trends in Smart Communities (ICFTSC), 18–23 (2022). https://doi.org/10.1109/ICFTSC57269.2022.10039888.
Luo., X. & Zhang., D. An adaptive deep learning framework for day-ahead forecasting of photovoltaic power generation. Sustain. Energy Technol. Assess.52, 102326 (2022). https://doi.org/10.1016/j.seta.2022.102326.
Azeem, A., Ismail, I., Jameel, S. & Danyaro, K. Transfer-learning enabled adaptive framework for load forecasting under concept-drift challenges in smart-grids across different-generation-modalities. Energy Rep.12, 3519–3532. https://doi.org/10.1016/j.egyr.2024.09.040 (2024).
Kim, J., Kim, H., Kim, H., Lee, D. & Yoon, S. A comprehensive survey of deep learning for time series forecasting: Architectural diversity and open challenges. Artif. Intell. Rev.58, 216. https://doi.org/10.1007/s10462-025-11223-9 (2025).
Kim, T. et al. Reversible instance normalization for accurate time-series forecasting against distribution shift. In International Conference on Learning Representations (2021). https://openreview.net/forum?id=cGDAkQo1C0p.
Lin, S. et al. SegRNN: Segment recurrent neural network for long-term time series forecasting (2023). ArXiv:2308.11200 [cs.LG].
Yu, Y., Ma, R. & Ma, Z. Robformer: A robust decomposition transformer for long-term time series forecasting. Pattern Recognit.153, 110552. https://doi.org/10.1016/j.patcog.2024.110552 (2024).
Ma, X., Li, X., Fang, L., Zhao, T. & Zhang, C. U-mixer: an unet-mixer architecture with stationarity correction for time series forecasting. In Proceedings of the Thirty-Eighth AAAI Conference on Artificial Intelligence and Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence and Fourteenth Symposium on Educational Advances in Artificial Intelligence, AAAI’24/IAAI’24/EAAI’24 (2024). https://doi.org/10.1609/aaai.v38i13.29337.
Tian, G., Zhang, C., Shi, Y. & Li, X. Multiwavenet: A long time series forecasting framework based on multi-scale analysis and multi-channel feature fusion. Expert Syst. Appl.251, 124088. https://doi.org/10.1016/j.eswa.2024.124088 (2024).
J. A. Duffie (Deceased), N. B., W. A. Beckman. Available Solar Radiation, 2, 43–137 (Wiley, 2013).
Aoun, N. Methodology for predicting the PV module temperature based on actual and estimated weather data. Energy Convers. Manag.: X14, 100182. https://doi.org/10.1016/j.ecmx.2022.100182 (2022).
Durusoy, B., Ozden, T. & Akinoglu, B. Solar irradiation on the rear surface of bifacial solar modules: A modeling approach. Sci. Rep.10(1), 13300. https://doi.org/10.1038/s41598-020-70235-3 (2020).
Liu, Z. et al. KAN: Kolmogorov-Arnold networks. In Proceedings of ICLR (2025).
DKASC, Alice Springs. The PV power full data set with weather data (Accessed: June 2025). https://dkasolarcentre.com.au/download?location=alice-springs.
Wu, G., Wang, Y., Zhou, Q. & Zhang, Z. Enhanced photovoltaic power forecasting: An iTransformer and LSTM-based model integrating temporal and covariate interactions (2024). ArXiv:2412.02302 [cs.LG].
Akiba, T., Sano, S., Yanase, T., Ohta, T. & Koyama, M. Optuna: A next-generation hyperparameter optimization framework. In Proceedings of ACM SIGKDD, 2623–2631 (2019).
Funding
The research was funded by a research grant from Zhejiang University.
Author information
Authors and Affiliations
Contributions
Y.Y.: Writing - original draft, Conceptualization, Investigation, Formal analysis, Software, Methodology, Data curation. P.L.: Writing - review & editing, Conceptualization, Investigations, Project administration, Supervision. Y.G.: Resources, Project administration, Supervision. All authors reviewed the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Yu, Y., Loskot, P. & Gao, Y. PhysEmbedFormer: a physics-guided interpretable architecture for days-ahead forecasting of PV power. Sci Rep (2026). https://doi.org/10.1038/s41598-025-34874-8
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-025-34874-8


