Explainable AI for Solar PV Power Forecasting: From Model Selection to Trustworthy, Reproducible Deployment

Nuzhat Khan, Muhammad Paend Bakht, Ab Al-Hadi Ab Rahman, Fabiano Pallonetto, Amy Fahy, Mohamed Khalafalla Hassan, Paul Stynes, Muhammad Anique Aslam, Terence O Donnell, Mohammad RiadharXiv 2026

TL;DR

This paper introduces a rigorous, seven-step reproducible workflow for solar PV power forecasting that bridges the gap between "black-box" machine learning and trustworthy industrial deployment. By combining automated model search (AutoML) with explainable AI (XAI) and conformal calibration, the authors demonstrate that careful feature engineering and time-aware validation are far more critical for accuracy and trust than simply picking the "best" algorithm.

What Problem Does This Paper Address?

While machine learning has become the standard for solar forecasting, the field suffers from a "reproducibility crisis." Many studies report high accuracy but use "leaky" validation methods (like random train-test splits that ignore time order), fail to compare results against simple baselines, or use private datasets that others cannot verify.

Furthermore, there is a "trust gap." Grid operators are hesitant to rely on black-box models. While Explainable AI (XAI) tools like SHAP are increasingly used to show which features drive a forecast, they are often applied uncritically. This paper tackles these issues by providing a standardized framework to ensure forecasts are not just accurate, but also reproducible, interpretable, and statistically sound.

Table 1. Forecast horizons for PV power and their main uses.

Methods

The authors propose a seven-step AutoML–XAI workflow designed for real-world deployment:

  1. Data Ingestion: Gathering plant output, metadata, and Numerical Weather Prediction (NWP) data.
  2. Quality Control: Handling missing values and ensuring time-stamp alignment (a common source of hidden error).
  3. Feature Engineering: Incorporating physical knowledge (e.g., clear-sky index, solar geometry).
  4. Time-aware Splitting: Using chronological hold-outs instead of random splits to prevent data leakage.
  5. Model Search: Using AutoML (specifically the FLAML library) to efficiently scan a "model zoo" including tree ensembles and neural networks.
  6. Evaluation: Scoring against "smart persistence" baselines and assessing probabilistic coverage.
  7. Explanation: Using SHAP and permutation importance to verify that the model is learning physical relationships rather than data artifacts.
Figure 1. The seven-step AutoML–XAI workflow for PV power forecasting. In operation, drift monitoring feeds back into data ingestion and triggers retraining.

A standout technical addition is the use of split-conformal calibration. Raw probabilistic models often produce "too narrow" prediction intervals; this technique widens them based on a separate calibration set to guarantee that, for example, an 80% interval actually contains the observation 80% of the time.

Datasets

The workflow was validated using an openly available dataset from a 16.32 kWp PV plant at INESC TEC in Porto, Portugal. The weather inputs were derived from a 4 km resolution MeteoGalicia WRF (Weather Research and Forecasting) model grid. Using an open dataset is a deliberate choice by the authors to ensure that every number in the paper can be independently verified.

Key Insights and Ideas

  • Features > Algorithms: The choice of input features (like adding physically-derived clear-sky indices) improved accuracy by ~2.8 percentage points. In contrast, switching between the top-performing algorithms (e.g., XGBoost vs. MLP) only changed results by ~0.2 points.
  • The "Optimism" of Shuffled Validation: Validating with random splits (common in many papers) made models look about 6% better than they actually were in a real-world, time-ordered setting.
  • SHAP is a Model Property, Not a Physical One: The authors found that SHAP rankings were stable over time but shifted significantly when correlated inputs were removed. This warns practitioners that feature attributions describe how a specific model works, not necessarily the underlying physics of the solar plant.
  • Model Footprint Matters: While "Extra Trees" performed well, it produced model files 60 times larger and 80 times slower than LightGBM. For deployment on "edge" hardware (like inverters), these trade-offs are vital.
Table 2. Main AI method families for PV power forecasting.

Key Results

  • Accuracy: The best models achieved a normalised Root Mean Square Error (nRMSE) of 11.6%, roughly half the error of a "smart persistence" baseline.
  • Probabilistic Reliability: Before calibration, nominal 80% prediction intervals only covered 64.5% of actual observations. After conformal calibration, coverage improved to 81.7%, making the uncertainty estimates much more "bankable" for grid operators.
  • Interpretability: SHAP analysis confirmed that NWP irradiance is the dominant driver, but also revealed that the model uses temperature and solar azimuth to "correct" systematic biases in the weather forecasts.

Limitations and Future Work

  • Non-stationarity: The paper notes that plants degrade and climates change. A model trained on today's weather might struggle with the "unseen" extremes of a 25-year plant life.
  • Small Data/New Sites: The current workflow requires historical data. Future work should explore how "foundation models" or transfer learning can help forecast for new sites with zero history.
  • Edge Deployment: While the paper compares model sizes, the actual implementation of these complex workflows on low-power microcontrollers remains an open engineering challenge.

Summary updated

Abstract

Machine learning (ML) is now a standard tool for forecasting the output of solar photovoltaic (PV) plants, yet published accuracy figures are often hard to compare and harder to trust. Many studies validate with random splits, report no reference forecast, and present feature attributions without saying what they can and cannot show. This paper reviews the main families of ML methods for PV power forecasting and resource assessment, from tree ensembles to deep and foundation models, and sets out a reproducible workflow that combines automated model search with explainable AI. The workflow is then tested on an openly available dataset: a 16.32 kWp plant in Porto, Portugal, forecast one day ahead from a 4 km numerical weather prediction grid. Over a full test year, the best models reach a normalised root mean square error (nRMSE) of 11.6% of installed capacity, about half the error of smart persistence. The choice of input features changed accuracy far more than the choice among strong algorithms, and shuffled cross-validation was mildly optimistic. After conformal calibration, the nominal 80% prediction intervals covered 81.7% of observations, against 64.5% before. SHAP rankings stayed stable when the model was retrained on different periods but shifted when correlated inputs were removed, so attributions should be read as properties of a model rather than of the plant. The paper closes with practical lessons and open problems, including deployment on edge hardware and the effect of a changing climate.
BibTeX
@misc{khan2026explainable,
  author = {Nuzhat Khan and Muhammad Paend Bakht and Ab Al-Hadi Ab Rahman and Fabiano Pallonetto and Amy Fahy and Mohamed Khalafalla Hassan and Paul Stynes and Muhammad Anique Aslam and Terence O Donnell and Mohammad Riadh},
  title = {{Explainable AI for Solar PV Power Forecasting: From Model Selection to Trustworthy, Reproducible Deployment}},
  year = {2026},
  eprint = {2611.25894},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25894},
}
Figure