IDEAS home Printed from https://ideas.repec.org/a/eee/renene/v245y2025ics0960148125004835.html
   My bibliography  Save this article

An investigation of photovoltaic power forecasting in buildings considering shadow effects: Modeling approach and SHAP analysis

Author

Listed:
  • Fu, Jiaqian
  • Sun, Yuying
  • Li, Yunhe
  • Wang, Wei
  • Wei, Wenzhe
  • Ren, Jinyang
  • Han, Shulun
  • Di, Haoran

Abstract

The power generation of distributed photovoltaic (PV) systems often suffers interference due to shadows cast by surrounding buildings. To improve the accuracy of PV power forecasts, this paper presents a PV power prediction method that takes shadow effects into consideration. Firstly, a convenient PV shadow model was formulated for predicting the proportion of PV shaded (PPS), using theoretical derivation and a zoning shading judgment strategy. Subsequently, a PV power prediction method was proposed based on PV shadow forecasting and the convolutional deep neural network algorithm. Finally, this method was applied to a carport PV system in a building in Beijing, China, and SHAP analysis was utilized for the interpretation. The results show that the proposed method can automatically recognize shadow conditions, and significantly improve the predictive accuracy of PV power, reducing the MAE by 10.1 % and increasing the R2 value from 0.91 to 0.94. The ranking of feature importance to the PV power prediction model is as follows: solar radiation, hour, ambient temperature, PPS, and relative humidity. This study offers a feasible solution for predicting power generation of PV systems that are subject to shadow shading from buildings.

Suggested Citation

  • Fu, Jiaqian & Sun, Yuying & Li, Yunhe & Wang, Wei & Wei, Wenzhe & Ren, Jinyang & Han, Shulun & Di, Haoran, 2025. "An investigation of photovoltaic power forecasting in buildings considering shadow effects: Modeling approach and SHAP analysis," Renewable Energy, Elsevier, vol. 245(C).
  • Handle: RePEc:eee:renene:v:245:y:2025:i:c:s0960148125004835
    DOI: 10.1016/j.renene.2025.122821
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0960148125004835
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.renene.2025.122821?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
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Zhang, Yingbo & Tang, Hong & Li, Hangxin & Wang, Shengwei, 2025. "Unlocking the flexibilities of data centers for smart grid services: Optimal dispatch and design of energy storage systems under progressive loading," Energy, Elsevier, vol. 316(C).
    2. 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).
    3. Das, Utpal Kumar & Tey, Kok Soon & Seyedmahmoudian, Mehdi & Mekhilef, Saad & Idris, Moh Yamani Idna & Van Deventer, Willem & Horan, Bend & Stojcevski, Alex, 2018. "Forecasting of photovoltaic power generation and model optimization: A review," Renewable and Sustainable Energy Reviews, Elsevier, vol. 81(P1), pages 912-928.
    4. Yang, Mao & Jiang, Yue & Zhang, Wei & Li, Yi & Su, Xin, 2024. "Short-term interval prediction strategy of photovoltaic power based on meteorological reconstruction with spatiotemporal correlation and multi-factor interval constraints," Renewable Energy, Elsevier, vol. 237(PC).
    5. Zheng, Wanting & Xiao, Hao & Pei, Wei, 2025. "Distributed-regional photovoltaic power generation prediction with limited data: A robust autoregressive transfer learning method," Applied Energy, Elsevier, vol. 380(C).
    6. Ren, Ye & Suganthan, P.N. & Srikanth, N., 2015. "Ensemble methods for wind and solar power forecasting—A state-of-the-art review," Renewable and Sustainable Energy Reviews, Elsevier, vol. 50(C), pages 82-91.
    7. Chen, Congcong & Chai, Lin & Wang, Qingling, 2025. "Research on stacking ensemble method for day-ahead ultra-short-term prediction of photovoltaic power," Renewable Energy, Elsevier, vol. 238(C).
    8. Alfredo Nespoli & Emanuele Ogliari & Sonia Leva & Alessandro Massi Pavan & Adel Mellit & Vanni Lughi & Alberto Dolara, 2019. "Day-Ahead Photovoltaic Forecasting: A Comparison of the Most Effective Techniques," Energies, MDPI, vol. 12(9), pages 1-15, April.
    9. Gao, Mingming & Li, Jianjing & Hong, Feng & Long, Dongteng, 2019. "Day-ahead power forecasting in a large-scale photovoltaic plant based on weather classification using LSTM," Energy, Elsevier, vol. 187(C).
    10. Lian, Huihui & Ji, Ying & Niu, Menghan & Gu, Jiefan & Xie, Jingchao & Liu, Jiaping, 2025. "A hybrid load prediction method of office buildings based on physical simulation database and LightGBM algorithm," Applied Energy, Elsevier, vol. 377(PC).
    11. Rodríguez, Fermín & Fleetwood, Alice & Galarza, Ainhoa & Fontán, Luis, 2018. "Predicting solar energy generation through artificial neural networks using weather forecasts for microgrid control," Renewable Energy, Elsevier, vol. 126(C), pages 855-864.
    12. Keddouda, Abdelhak & Ihaddadene, Razika & Boukhari, Ali & Atia, Abdelmalek & Arıcı, Müslüm & Lebbihiat, Nacer & Ihaddadene, Nabila, 2024. "Experimentally validated thermal modeling for temperature prediction of photovoltaic modules under variable environmental conditions," Renewable Energy, Elsevier, vol. 231(C).
    13. Rezk, Hegazy & AL-Oran, Mazen & Gomaa, Mohamed R. & Tolba, Mohamed A. & Fathy, Ahmed & Abdelkareem, Mohammad Ali & Olabi, A.G. & El-Sayed, Abou Hashema M., 2019. "A novel statistical performance evaluation of most modern optimization-based global MPPT techniques for partially shaded PV system," Renewable and Sustainable Energy Reviews, Elsevier, vol. 115(C).
    14. Gandoman, Foad H. & Raeisi, Fatima & Ahmadi, Abdollah, 2016. "A literature review on estimating of PV-array hourly power under cloudy weather conditions," Renewable and Sustainable Energy Reviews, Elsevier, vol. 63(C), pages 579-592.
    15. Lu, Menglong & Sun, Yongjun & Ma, Zhenjun, 2024. "Multi-objective design optimization of multiple energy systems in net/nearly zero energy buildings under uncertainty correlations," Applied Energy, Elsevier, vol. 370(C).
    16. Sarmas, Elissaios & Spiliotis, Evangelos & Stamatopoulos, Efstathios & Marinakis, Vangelis & Doukas, Haris, 2023. "Short-term photovoltaic power forecasting using meta-learning and numerical weather prediction independent Long Short-Term Memory models," Renewable Energy, Elsevier, vol. 216(C).
    17. Li, Guozhu & Ding, Chenjun & Zhao, Naini & Wei, Jiaxing & Guo, Yang & Meng, Chong & Huang, Kailiang & Zhu, Rongxin, 2024. "Research on a novel photovoltaic power forecasting model based on parallel long and short-term time series network," Energy, Elsevier, vol. 293(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, Chengdong & Zhou, Changgeng & Peng, Wei & Lv, Yisheng & Luo, Xin, 2020. "Accurate prediction of short-term photovoltaic power generation via a novel double-input-rule-modules stacked deep fuzzy method," Energy, Elsevier, vol. 212(C).
    2. Kim, Jimin & Obregon, Josue & Park, Hoonseok & Jung, Jae-Yoon, 2024. "Multi-step photovoltaic power forecasting using transformer and recurrent neural networks," Renewable and Sustainable Energy Reviews, Elsevier, vol. 200(C).
    3. Hu, Zehuan & Gao, Yuan & Ji, Siyu & Mae, Masayuki & Imaizumi, Taiji, 2024. "Improved multistep ahead photovoltaic power prediction model based on LSTM and self-attention with weather forecast data," Applied Energy, Elsevier, vol. 359(C).
    4. Minli Wang & Peihong Wang & Tao Zhang, 2022. "Evidential Extreme Learning Machine Algorithm-Based Day-Ahead Photovoltaic Power Forecasting," Energies, MDPI, vol. 15(11), pages 1-25, May.
    5. 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).
    6. Fjelkestam Frederiksen, Cornelia A. & Cai, Zuansi, 2022. "Novel machine learning approach for solar photovoltaic energy output forecast using extra-terrestrial solar irradiance," Applied Energy, Elsevier, vol. 306(PB).
    7. Nguyen, Thi Ngoc & Müsgens, Felix, 2022. "What drives the accuracy of PV output forecasts?," Applied Energy, Elsevier, vol. 323(C).
    8. Pan Xia & Lu Zhang & Min Min & Jun Li & Yun Wang & Yu Yu & Shengjie Jia, 2024. "Accurate nowcasting of cloud cover at solar photovoltaic plants using geostationary satellite images," Nature Communications, Nature, vol. 15(1), pages 1-10, December.
    9. Sarmas, Elissaios & Spiliotis, Evangelos & Stamatopoulos, Efstathios & Marinakis, Vangelis & Doukas, Haris, 2023. "Short-term photovoltaic power forecasting using meta-learning and numerical weather prediction independent Long Short-Term Memory models," Renewable Energy, Elsevier, vol. 216(C).
    10. Athanasios I. Salamanis & Georgia Xanthopoulou & Napoleon Bezas & Christos Timplalexis & Angelina D. Bintoudi & Lampros Zyglakis & Apostolos C. Tsolakis & Dimosthenis Ioannidis & Dionysios Kehagias & , 2020. "Benchmark Comparison of Analytical, Data-Based and Hybrid Models for Multi-Step Short-Term Photovoltaic Power Generation Forecasting," Energies, MDPI, vol. 13(22), pages 1-31, November.
    11. Zhang, Qiongfang & Yan, Hao & Liu, Yongming, 2024. "Power generation forecasting for solar plants based on Dynamic Bayesian networks by fusing multi-source information," Renewable and Sustainable Energy Reviews, Elsevier, vol. 202(C).
    12. Erdener, Burcin Cakir & Feng, Cong & Doubleday, Kate & Florita, Anthony & Hodge, Bri-Mathias, 2022. "A review of behind-the-meter solar forecasting," Renewable and Sustainable Energy Reviews, Elsevier, vol. 160(C).
    13. Liu, Wencheng & Mao, Zhizhong, 2024. "Short-term photovoltaic power forecasting with feature extraction and attention mechanisms," Renewable Energy, Elsevier, vol. 226(C).
    14. Nie, Yuhao & Li, Xiatong & Paletta, Quentin & Aragon, Max & Scott, Andea & Brandt, Adam, 2024. "Open-source sky image datasets for solar forecasting with deep learning: A comprehensive survey," Renewable and Sustainable Energy Reviews, Elsevier, vol. 189(PB).
    15. Wang, Jianzhou & Zhou, Yilin & Li, Zhiwu, 2022. "Hour-ahead photovoltaic generation forecasting method based on machine learning and multi objective optimization algorithm," Applied Energy, Elsevier, vol. 312(C).
    16. Elena Collino & Dario Ronzio, 2021. "Exploitation of a New Short-Term Multimodel Photovoltaic Power Forecasting Method in the Very Short-Term Horizon to Derive a Multi-Time Scale Forecasting System," Energies, MDPI, vol. 14(3), pages 1-30, February.
    17. Zhang, Zongbin & Huang, Xiaoqiao & Li, Chengli & Cheng, Feiyan & Tai, Yonghang, 2025. "CRAformer: A cross-residual attention transformer for solar irradiation multistep forecasting," Energy, Elsevier, vol. 320(C).
    18. 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).
    19. Saima Akhtar & Sulman Shahzad & Asad Zaheer & Hafiz Sami Ullah & Heybet Kilic & Radomir Gono & Michał Jasiński & Zbigniew Leonowicz, 2023. "Short-Term Load Forecasting Models: A Review of Challenges, Progress, and the Road Ahead," Energies, MDPI, vol. 16(10), pages 1-29, May.
    20. Zheng, Lingwei & Su, Ran & Sun, Xinyu & Guo, Siqi, 2023. "Historical PV-output characteristic extraction based weather-type classification strategy and its forecasting method for the day-ahead prediction of PV output," Energy, Elsevier, vol. 271(C).

    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:eee:renene:v:245:y:2025:i:c:s0960148125004835. 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: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/renewable-energy .

    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.