A Hybrid TFT-NBEATS Framework for Robust Multi-Horizon Photovoltaic Power Forecasting
Summary
本文提出一种融合 Temporal Fusion Transformer 与 N-BEATS 的注意力混合框架,用于统一多时间尺度的光伏功率预测,在 DKASC 真实数据集上相比最佳基线 TFT 实现 35–40% 的 RMSE 降低。
View Cached Full Text
Cached at: 10/21/26, 06:46 AM
# A Hybrid TFT-NBEATS Framework for Robust Multi-Horizon Photovoltaic Power Forecasting
Source: [https://arxiv.org/html/2610.27155](https://arxiv.org/html/2610.27155)
Sabik Bin Sultan\*\*sabikbinsultan@yahoo\.comMohammad Tajrian Arafat Alviarafat3568@gmail\.comRayhanul Islam Sonyrsony23@my\.trine\.eduAbdulah Al NumanNuman290\.AaN@gmail\.comorganization=St\. Joseph Higher Secondary School, city=Dhaka, country=Bangladeshorganization=Bangladesh Air Force Shaheen College, Kurmitolla, city=Dhaka, country=Bangladeshorganization=Computer Science & Engineering, Jahangirnagar University, city=Savar, country=Bangladeshorganization=Trine University, city=Angola, state=Indiana, country=USAorganization=Sembcorp North\-West Power Company Ltd, city=Dhaka, country=Bangladesh
###### Abstract
Accurate multi\-horizon photovoltaic \(PV\) power forecasting is essential for grid stability, energy scheduling, and the efficient operation of PV–battery–grid systems\. However, existing models often fail to jointly capture short\-term variability and long\-term temporal patterns, while lacking unified multi\-horizon capability and interpretability\. To address these limitations, this study proposes a novel hybrid deep learning framework that integrates a Temporal Fusion Transformer \(TFT\) and N\-BEATS within an attention\-based fusion architecture\. The proposed model leverages TFT to learn short\-term temporal dependencies and dynamic feature importance, while N\-BEATS captures long\-term trend and seasonal components through interpretable basis decomposition\. An adaptive attention mechanism dynamically fuses both branches, enabling balanced multi\-scale learning\. The framework simultaneously generates forecasts for 30\-minute, 2\-hour, 6\-hour, 12\-hour, and 24\-hour horizons within a single unified pipeline\. The model is evaluated using multi\-year real\-world datasets from the Desert Knowledge Australia Solar Centre \(DKASC\)\. Experimental results demonstrate superior performance over statistical, machine learning, and deep learning baselines\. The proposed model achieves RMSE values of 42\.35, 46\.27, 52\.29, and 48\.11 across the 2016–2017, 2023, 2024, and 2025–2026 datasets, respectively, corresponding to a 35–40% reduction compared to the best baseline \(TFT\)\. Additionally, MAPE remains below 5% across all datasets, indicating high predictive accuracy and stability\. The model also provides interpretability through attention visualization and trend–seasonality decomposition, and is deployed on a cloud\-based platform for real\-time forecasting\. These results demonstrate that the proposed framework is robust, interpretable, and suitable for practical renewable energy applications\.
###### keywords
Photovoltaic forecasting ,Multi\-horizon prediction ,Hybrid deep learning ,Temporal Fusion Transformer ,N\-BEATS ,Explainable AI
††titlenote:\*\*These authors contribute equally††corresponding:Corresponding author## 1Introduction
Solar photovoltaic \(PV\) technology is a leading driver of the global energy transition\. In 2024, solar PV added a record 451\.9 GW of new capacity, raising cumulative global installations to 1,865 GW[International Renewable Energy Agency \(2025\)](https://arxiv.org/html/2610.27155#bib.bib1)\. Solar PV and wind together are projected to supply 95% of new renewable capacity through 2030, supported by generation costs now below most fossil alternatives[International Energy Agency \(2024\)](https://arxiv.org/html/2610.27155#bib.bib2)\. Despite this growth, large\-scale PV integration introduces serious operational challenges\. PV output is intermittent, driven by solar irradiance, cloud dynamics, and ambient temperature[Nadeem et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib3)\. These meteorological variables vary rapidly and non\-linearly, causing abrupt fluctuations in power supply[Yu et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib4)\. Such instability threatens frequency regulation, power balancing, and economic dispatch in modern grids with high renewable penetration[Nadeem et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib3);[Rizk\-Allah et al\. \(2024a\)](https://arxiv.org/html/2610.27155#bib.bib12)\.
Accurate PV power forecasting is essential for managing this variability\. Forecasts spanning minutes to 24 hours ahead support grid balancing, unit commitment, battery storage scheduling, and electricity market operations[Alorf and Khan \(2025\)](https://arxiv.org/html/2610.27155#bib.bib9);[Mbey et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib16)\. In hybrid PV\-battery\-grid systems, predictions across multiple timescales are needed simultaneously to coordinate battery charging, peak saving, and grid dispatch[Lim et al\. \(2021\)](https://arxiv.org/html/2610.27155#bib.bib5)\. Forecast errors at any horizon propagate into costly reserve activations and unnecessary curtailment[Salman et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib14)\.
Recent research categorizes photovoltaic forecasting methods into three main groups: physical, statistical, and data\-driven approaches[Yu et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib4);[Asiedu et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib7)\. Physical models apply solar geometry and atmospheric equations but rely heavily on NWP quality and site\-specific parameters[Yu et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib4)\. Statistical methods such as ARIMA perform well over short horizons but struggle with the non\-stationary, nonlinear behaviour of PV generation[Miraftabzadeh and Longo \(2023\)](https://arxiv.org/html/2610.27155#bib.bib15)\. Machine learning \(ML\) and deep learning \(DL\) models have therefore become the dominant paradigm, learning complex mappings directly from historical meteorological and power data[Nadeem et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib3);[Yu et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib4)\.
Recent studies have advanced towards hybrid architectures that combine multiple complementary model components\.[Asiedu et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib7)showed that hybrid XGBoost\-Random Forest stacking outperformed all individual models across day\-ahead, week\-ahead, and month\-ahead horizons on a 180 kWp PV system\.[Mondal et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib8)coupled XGBoost with LSTM under a physics\-informed pipeline, incorporating irradiance\-aware resampling and domain\-guided imputation\. Evaluated on the UNISOLAR dataset of 2\.7 million 15\-minute samples from 42 sites, this framework achieved an RMSE of 2\.57 kWh \(R2=0\.934R^\{2\}=0\.934\), a 17\.84 % gain over standalone LSTM[Mondal et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib8)\.[Guermoui et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib10)fused five decomposition algorithms with a deep CNN across three PV plants, showing that multi\-frequency decomposition consistently outperforms any single\-method baseline\.[Alorf and Khan \(2025\)](https://arxiv.org/html/2610.27155#bib.bib9)combined Variational Mode Decomposition \(VMD\) with a modified Temporal Fusion Transformer \(TFT\) for improved multi\-horizon accuracy under variable weather\.[Peng et al\. \(2026\)](https://arxiv.org/html/2610.27155#bib.bib11)addressed spatial NWP bias through an attention\-enhanced CNN–LSTM with XGBoost\-based downscaling, achieving consistent RMSE and MAE improvements across multiple stations\. For interpretability,[Rizk\-Allah et al\. \(2024a\)](https://arxiv.org/html/2610.27155#bib.bib12)augmented LSTM with LIME\-based explainable AI, showing model transparency is achievable without accuracy loss\.[Oreshkin et al\. \(2020\)](https://arxiv.org/html/2610.27155#bib.bib6)established with N\-BEATS that interpretable trend\-seasonality decomposition via basis expansion can match black\-box DL models on multi\-horizon benchmarks\.[Lim et al\. \(2021\)](https://arxiv.org/html/2610.27155#bib.bib5)subsequently introduced TFT, combining recurrent encoding with multi\-head self\-attention and variable\-selection gating for interpretable multi\-horizon forecasting\.
Despite these advances, three critical limitations persist\. First, most studies treat each forecast horizon as an independent problem, deploying separate models for intra\-hour, hour\-ahead, and day\-ahead prediction[Husein et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib13)\. Real\-world PV\-battery\-grid systems require coherent predictions across multiple timescales simultaneously[Lim et al\. \(2021\)](https://arxiv.org/html/2610.27155#bib.bib5);[Alorf and Khan \(2025\)](https://arxiv.org/html/2610.27155#bib.bib9)\. Second, PV generation exhibits dynamics at two distinct temporal scales including short\-term fluctuations from cloud movement and irradiance variation, and long\-term trends from daily solar cycles and seasonal patterns\. Models optimized for one scale routinely degrade on the other, resulting in temporal\-scale bias[Nadeem et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib3);[Asiedu et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib7);[Miraftabzadeh and Longo \(2023\)](https://arxiv.org/html/2610.27155#bib.bib15)\. In last, high\-accuracy DL models commonly operate as black boxes\. Their opaque decision processes undermine operator trust and limit deployment in real energy management systems[Husein et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib13);[Rizk\-Allah et al\. \(2024a\)](https://arxiv.org/html/2610.27155#bib.bib12)\. Existing studies either rely on decomposition\-heavy pipelines, which increase computational complexity, or focus on single\-scale learning, limiting adaptability in real\-world multi\-horizon scenarios\.
No existing framework simultaneously resolves all three limitations\. Current hybrid models are predominantly single\-horizon, fail to balance learning across temporal scales, and lack interpretable outputs\. This study addresses these gaps within a single unified, deployment\-ready pipeline\. By addressing these limitations, this study pursues four objectives\.\(O1\)Develop a unified framework that simultaneously forecasts PV power at 30\-minute, 2\-hour, 6\-hour, 12\-hour, and 24\-hour horizons\.\(O2\)Design a dual\-branch architecture combining TFT for short\-term dependency modelling with N\-BEATS for trend\-seasonality decomposition to achieve balanced multi\-scale learning\.\(O3\)Incorporate attention visualisation and basis\-function decomposition for partial model interpretability\.\(O4\)Validate robustness across multiple real\-world PV datasets spanning different years and climatic conditions\. Unlike existing hybrid models, the proposed framework introduces a joint multi\-horizon learning mechanism with dynamic attention\-based fusion, enabling simultaneous optimization across temporal scales within a single unified architecture\.
The main contributions of this study are as follows:
- •Unified multi\-horizon framework\.A single pipeline simultaneously generates PV power forecasts at five operational horizons \(30 min, 2 h, 6 h, 12 h, and 24 h\), eliminating the need for separate horizon\-specific models\.
- •Hybrid dual\-branch architecture \(TFT \+ N\-BEATS\)\.TFT handles short\-term temporal dependencies via recurrent encoding and multi\-head attention[Lim et al\. \(2021\)](https://arxiv.org/html/2610.27155#bib.bib5)\. N\-BEATS provides interpretable trend–seasonality decomposition through polynomial and Fourier basis blocks[Oreshkin et al\. \(2020\)](https://arxiv.org/html/2610.27155#bib.bib6)\.
- •Attention\-based fusion mechanism\.A trainable fusion layer dynamically weights the contributions of both branches, enabling adaptive learning across temporal scales without manual tuning\.
- •Physics\-aware preprocessing\.Irradiance\-guided resampling and operational\-status\-based imputation reduce sensitivity to missing values and irregular sampling in real\-world PV data[Mondal et al\. \(2024\)](https://arxiv.org/html/2610.27155#bib.bib8)\.
- •Partial model interpretability\.Attention weight visualisation and N\-BEATS decomposition outputs expose temporal importance and forecast components, supporting operator trust and system diagnostics\.
- •Multi\-dataset validation\.The framework is evaluated across multiple real\-world PV datasets spanning different years, sites, and climatic conditions\.
- •Deployment\-ready implementation\.The model is deployed via Hugging Face infrastructure for practical real\-time use in hybrid PV\-battery\-grid systems\.
The remainder of this paper is organised as follows\. Section[2](https://arxiv.org/html/2610.27155#S2)reviews related work\. Section 3 describes datasets and preprocessing\. Section 4 presents the proposed architecture\. Section 5 details experimental setup and metrics\. Section 6 reports results and interpretability analysis\. Section 7 discusses deployment implications, and Section 8 concludes the study\.
## 2Related Work
Photovoltaic \(PV\) power generation has gained significant research attention due to its important role in reducing carbon emissions and supporting the transition toward sustainable energy systems\. However, the intermittent and weather\-dependent nature of solar energy introduces substantial uncertainty in power generation, making accurate PV power forecasting essential for reliable grid operation, energy scheduling, and power system planning\. Over the past decade, numerous forecasting approaches have been proposed, ranging from traditional statistical models to advanced machine learning and deep learning architectures\. More recently, research has also explored multi\-horizon forecasting strategies and explainable artificial intelligence \(XAI\) techniques to improve both prediction accuracy and model transparency\.
### 2\.1Machine Learning Based PV Forecasting
Machine learning models have been widely applied to photovoltaic \(PV\) power forecasting due to their ability to capture nonlinear relationships between meteorological variables and PV generation\. Algorithms such as Support Vector Regression \(SVR\), Random Forest, Gradient Boosting, and K\-Nearest Neighbors \(KNN\) have demonstrated improved predictive performance compared with traditional statistical models\. For example, Kim et al\.[Kim et al\. \(2026\)](https://arxiv.org/html/2610.27155#bib.bib17)proposed a forecasting framework combining Model Output Statistics \(MOS\) with a Random Forest model to correct systematic errors in meteorological forecasts, thereby improving the accuracy of PV power prediction\. Similarly, Salehin et al\.[Salehin \(2026\)](https://arxiv.org/html/2610.27155#bib.bib18)developed a hybrid KNN–SVM model in which KNN identifies similar historical patterns while SVM performs local regression to estimate solar power generation\. In addition, ensemble learning methods such as Gradient Boosting and Random Forest have demonstrated strong performance in PV forecasting due to their ability to handle nonlinear relationships and noisy meteorological data\. Although machine learning approaches significantly improve forecasting performance by modeling nonlinear feature interactions, these methods often rely heavily on manual feature engineering and typically struggle to capture long\-term temporal dependencies present in photovoltaic time\-series data\. Moreover, their ability to represent complex temporal dynamics remains limited when forecasting over multiple future time horizons, which restricts their applicability in real\-world energy management scenarios\.
### 2\.2Deep Learning Approaches for Photovoltaic Power Forecasting
To overcome the limitations of conventional machine learning approaches in modeling sequential data, deep learning architectures have increasingly been adopted for photovoltaic forecasting due to their ability to automatically learn hierarchical feature representations and temporal dependencies from time\-series data\.
Recent studies have particularly focused on hybrid deep learning frameworks that combine multiple neural architectures to enhance forecasting performance\. For example, Yousuf et al\.[Yousuf et al\. \(2026\)](https://arxiv.org/html/2610.27155#bib.bib19)introduced a hybrid XGBoost–LSTM architecture in which XGBoost models nonlinear feature interactions while LSTM captures long\-term temporal dependencies in photovoltaic power generation\. Other hybrid architectures have also been explored in the literature\. Kim and Hau[Kim and Hau \(2026\)](https://arxiv.org/html/2610.27155#bib.bib20)developed a CNN–DNN model for PV power prediction and applied SHAP\-based explainability to analyze feature importance\. Baran[Baran \(2026\)](https://arxiv.org/html/2610.27155#bib.bib21)proposed a CNN–LSTM model for detecting PV system performance degradation using multi\-sensor measurements\. Fennane et al\.[Fennane et al\. \(2026\)](https://arxiv.org/html/2610.27155#bib.bib22)introduced a hybrid LSTM–TCN architecture capable of modeling both short\-term and long\-term temporal patterns, while Oumiguil et al\.[Oumiguil and Nejmi \(2026\)](https://arxiv.org/html/2610.27155#bib.bib23)proposed a CNN–GRU–XGBoost framework for short\-term PV power forecasting\.
Despite their improved predictive performance, many hybrid deep learning models remain limited to specific datasets or single forecasting horizons\. Furthermore, most architectures are optimized for either short\-term or day\-ahead forecasting tasks, making it challenging to simultaneously capture both rapid short\-term fluctuations and broader temporal patterns in photovoltaic generation\.
### 2\.3Multi\-Horizon Photovoltaic Power Forecasting
While deep learning architectures have significantly improved photovoltaic power forecasting, many existing studies still focus primarily on single\-step or single\-horizon prediction tasks\. However, real\-world energy management systems require forecasts across multiple future time horizons to support grid stability, battery scheduling, and operational decision\-making\.
To address this challenge, recent studies have explored multi\-horizon forecasting frameworks\. For instance, Cisse et al\.[Cisse et al\. \(2026\)](https://arxiv.org/html/2610.27155#bib.bib24)proposed a hybrid TCN–GRU–Random Forest framework for short\-term multi\-horizon PV forecasting using operational solar plant data\. Han et al\.[Han et al\. \(2025\)](https://arxiv.org/html/2610.27155#bib.bib25)introduced a decomposition\-based forecasting approach integrating ICEEMDAN with hierarchical frequency neural networks to capture non\-stationary temporal characteristics in PV generation\. Similarly, Khan et al\.[Khan et al\. \(2025\)](https://arxiv.org/html/2610.27155#bib.bib26)developed an interpretable hybrid architecture combining CNN, LSTM, and Transformer models with SHAP\-based explainability for multi\-horizon renewable energy forecasting\. In a broader energy forecasting context, Gawusu and Zhang[Gawusu and Zhang \(2026\)](https://arxiv.org/html/2610.27155#bib.bib27)demonstrated that transformer\-based architectures can effectively model long\-range temporal dependencies in multi\-horizon power generation prediction\. Although these studies highlight the potential of multi\-horizon forecasting, many existing approaches rely on complex decomposition or ensemble strategies that increase model complexity and computational overhead\. Additionally, achieving balanced learning across multiple temporal scales remains a challenging problem, particularly when models must simultaneously capture short\-term fluctuations and longer\-term generation trends\.
### 2\.4Explainable Artificial Intelligence in PV Forecasting
In addition to forecasting accuracy, model interpretability has become an important requirement in photovoltaic power forecasting, particularly for operational energy management systems where understanding the influence of environmental variables is essential for decision\-making\.
Rizk\-Allah et al\.[Rizk\-Allah et al\. \(2024b\)](https://arxiv.org/html/2610.27155#bib.bib28)proposed an explainable photovoltaic forecasting framework that integrates Long Short\-Term Memory \(LSTM\) networks with an Equilibrium Optimizer \(EO\) for hyperparameter tuning and Local Interpretable Model\-Agnostic Explanations \(LIME\) for model interpretability\. The LSTM model captures temporal dependencies in solar power generation, while the LIME\-based explanation method identifies key environmental variables influencing prediction outcomes\. Similarly, Alagarsamy et al\.[Alagarsamy et al\. \(2025\)](https://arxiv.org/html/2610.27155#bib.bib29)introduced an explainable photovoltaic energy management framework for smart city applications\. Their model\-chain architecture integrates recurrent neural networks \(RNN\) for long\-term forecasting of global horizontal irradiance \(GHI\), followed by regression\-based modeling to estimate photovoltaic power generation\. The framework employs LIME explanations to improve model transparency and achieved improved forecasting performance with RMSE and MAE values of 91\.40 and 47\.32 respectively\. More recently, Bakht et al\.[Bakht et al\. \(2025\)](https://arxiv.org/html/2610.27155#bib.bib30)proposed an automated machine learning framework that integrates Auto\-ML with SHAP\-based explainable artificial intelligence for photovoltaic power prediction\. Their study used real PV plant data with environmental parameters and reported that the Extra Tree model achieved the highest prediction accuracy of 91%, outperforming Random Forest \(85%\), XGBoost \(75%\), and Decision Tree \(68%\)\. The SHAP analysis further provided interpretable insights into the influence of meteorological variables on PV power generation\.
Although these approaches improve model transparency, most explainability techniques are applied as post\-hoc analysis methods that interpret predictions after the forecasting process\. As a result, they provide limited insights into the internal temporal learning behavior of forecasting architectures, highlighting the need for models that combine strong predictive capability with more integrated interpretability mechanisms\.
### 2\.5Research Gap
Despite significant progress in photovoltaic power forecasting research, several important challenges remain\. As summarized in[Table 1](https://arxiv.org/html/2610.27155#S2.T1), many existing studies address forecasting tasks at a single temporal horizon, which limits their practical usefulness for real\-world PV–battery–grid energy systems that require predictions across multiple future time scales\. Furthermore, current deep learning architectures often struggle to achieve balanced learning between short\-term fluctuations caused by rapid irradiance changes and longer\-term temporal patterns driven by daily and seasonal cycles\. Therefore, developing a robust forecasting framework that can simultaneously learn multi\-scale temporal patterns while maintaining interpretability remains an important research challenge in photovoltaic power forecasting\.
To address these limitations, this study proposes a unified multi\-horizon photovoltaic power forecasting framework that integrates complementary temporal learning capabilities within a hybrid architecture\. The proposed model is designed to simultaneously capture short\-term variability and long\-term temporal dependencies while providing interpretable insights into the forecasting process, enabling more reliable and scalable PV power prediction for practical energy management systems\.
Table 1:Summary of representative studies in photovoltaic power forecastingStudyMethodForecast HorizonDatasetKey LimitationKim et al\.[Kim et al\. \(2026\)](https://arxiv.org/html/2610.27155#bib.bib17)MOS \+ Random ForestShort\-termRooftop PV \(Korea\)Limited temporal modelingSalehin et al\.[Salehin \(2026\)](https://arxiv.org/html/2610.27155#bib.bib18)KNN–SVMShort\-termNASA POWER \+ local dataRequires manual feature engineeringYousuf et al\.[Yousuf et al\. \(2026\)](https://arxiv.org/html/2610.27155#bib.bib19)XGBoost \+ LSTMMulti\-stepUNISOLAR \(42 PV sites\)Strong dependence on lag featuresFennane et al\.[Fennane et al\. \(2026\)](https://arxiv.org/html/2610.27155#bib.bib22)LSTM \+ TCNShort\-termPVGIS \(Morocco\)Focus on short\-term forecastingCisse et al\.[Cisse et al\. \(2026\)](https://arxiv.org/html/2610.27155#bib.bib24)TCN \+ GRU \+ RFMulti\-horizonSolar plant \(Australia\)Ensemble complexityHan et al\.[Han et al\. \(2025\)](https://arxiv.org/html/2610.27155#bib.bib25)ICEEMDAN \+ HFNNMulti\-horizonDKASC, Solar IRequires signal decompositionKhan et al\.[Khan et al\. \(2025\)](https://arxiv.org/html/2610.27155#bib.bib26)CNN \+ LSTM \+ Transformer \+ SHAPMulti\-horizonMulti\-source datasetsHigh computational costBakht et al\.[Bakht et al\. \(2025\)](https://arxiv.org/html/2610.27155#bib.bib30)AutoML \+ SHAPSingle\-stepPV plant \(Malaysia\)Limited multi\-horizon capabilityRizk\-Allah et al\.[Rizk\-Allah et al\. \(2024b\)](https://arxiv.org/html/2610.27155#bib.bib28)LSTM \+ EO \+ LIMEShort\-termPV environmental dataPost\-hoc interpretability
## 3Methodology
This study proposes a unified hybrid deep learning framework for multi\-horizon photovoltaic \(PV\) power forecasting, integrating data preprocessing, dual\-branch temporal modeling, and attention\-based fusion within a single end\-to\-end pipeline, as illustrated in[Figure 1](https://arxiv.org/html/2610.27155#S3.F1)\. The workflow begins with raw PV and meteorological data, which are chronologically split into training, validation, and testing subsets to preserve temporal integrity\. A comprehensive preprocessing pipeline is then applied, including missing value imputation, Kalman filtering for temporal smoothing, anomaly detection using Isolation Forest, statistical outlier removal, wavelet\-based denoising, and robust feature scaling, ensuring high\-quality input for model training\. The cleaned time\-series data are fed into a hybrid architecture consisting of two complementary branches: a Temporal Fusion Transformer \(TFT\) branch for modeling short\-term temporal dependencies and dynamic feature importance, and an N\-BEATS branch for capturing long\-term trend and seasonal components through interpretable decomposition\. The outputs of both branches are combined using an attention\-based fusion mechanism, which adaptively weights their contributions based on the temporal context\. The final model generates simultaneous forecasts across multiple horizons \(30 minutes to 24 hours\) within a unified framework\. To validate performance, the proposed approach is benchmarked against a range of baseline models, including statistical, machine learning, and deep learning methods, and evaluated using standard regression metrics\.
Figure 1:Proposed hybrid multi\-horizon photovoltaic \(PV\) forecasting framework\. The pipeline includes data preprocessing, dual\-branch modeling using TFT and N\-BEATS, attention\-based fusion, and multi\-horizon prediction with evaluation against baseline models\.### 3\.1Dataset Description
The photovoltaic dataset used in this study was obtained from the Desert Knowledge Australia Solar Centre \(DKASC\) \[1\], located in Alice Springs, Northern Territory, Australia\. The DKASC facility is a well\-known solar technology demonstration site that hosts multiple photovoltaic \(PV\) installations operating under the arid climatic conditions of central Australia\. The data are publicly available through the DKASC data portal and include both PV operational measurements and associated meteorological observations\. The dataset is recorded at 5\-minute intervals, enabling high temporal resolution of photovoltaic system performance and environmental conditions\. This temporal resolution allows detailed observation of short\-term variations in solar power output caused by changing atmospheric conditions and solar irradiance\. The dataset contains several variables describing both the PV system’s electrical generation and the surrounding weather conditions\. The primary variable is active power output, which represents the actual electrical power generated by the photovoltaic system\. In addition, the dataset includes important meteorological variables such as global horizontal irradiance \(GHI\), diffuse horizontal irradiance \(DHI\), ambient temperature, relative humidity, and wind speed, which are known to influence photovoltaic power generation\. To evaluate the robustness and generalization capability of the proposed forecasting framework, experiments are conducted using multiple datasets collected across different years, as summarized in[Table 2](https://arxiv.org/html/2610.27155#S3.T2)\. Specifically, photovoltaic generation data from 2016–2017, 2023, 2024, and 2025–2026 are analyzed independently\. This multi\-year dataset configuration allows the study to capture seasonal variations, long\-term temporal dynamics, and year\-to\-year variability in photovoltaic power generation\. Consequently, evaluating the forecasting model across different datasets provides a more comprehensive assessment of its robustness and practical applicability under varying environmental conditions\.
Table 2:Time coverage of the multi\-year photovoltaic datasets used in this study\.DatasetTime CoverageDKASC\-2016\-172016–2017DKASC\-20232023DKASC\-20242024DKASC\-2025\-262025–2026Table 3:Key photovoltaic and meteorological variables used in the forecasting model\.FeatureDescriptionActive PowerElectrical power generated by the PV system \(target variable\)Global Horizontal IrradianceSolar radiation received on a horizontal surfaceDiffuse Horizontal IrradianceScattered solar radiation componentAmbient TemperatureAir temperature measured at the weather stationRelative HumidityPercentage of atmospheric moistureWind SpeedWind speed measured at the weather stationThe main variables used in this study are summarized in[Table 3](https://arxiv.org/html/2610.27155#S3.T3), which include photovoltaic power generation and key meteorological parameters that directly influence solar energy production\. Among these variables, active power output is used as the target variable for forecasting, while the remaining environmental features provide contextual information about atmospheric and solar conditions\. Based on these inputs, the forecasting task is formulated as a multi\-horizon prediction problem, where the model generates predictions for multiple future time intervals, as presented in[Table 4](https://arxiv.org/html/2610.27155#S3.T4)\. The selected horizons range from 30 minutes to 24 hours, enabling the model to capture both short\-term fluctuations and longer\-term temporal patterns in photovoltaic power generation\.
Table 4:Forecasting horizons, steps, and purposes in photovoltaic power forecastingHorizonForecast StepsPurpose30 Minutes6 stepsReal\-time grid stability2 Hours24 stepsShort\-term dispatching6 Hours72 stepsIntraday planning12 Hours144 stepsDay\-ahead preparation24 Hours288 stepsLong\-term storage management
### 3\.2Dataset Splitting
To ensure reliable model training and unbiased evaluation, each photovoltaic dataset was partitioned using a structured chronological data splitting strategy\. As summarized in[Table 5](https://arxiv.org/html/2610.27155#S3.T5), each dataset was divided chronologically into 70% training, 15% validation, and 15% testing subsets, while preserving the temporal order of the observations\. This chronological splitting approach is essential for time\-series forecasting tasks, as it prevents information leakage from future data into the training phase\. The training set is used for model learning, the validation set supports hyperparameter tuning and model selection, and the test set provides an unbiased evaluation of forecasting performance\. The corresponding sample counts for each subset are reported in[Table 5](https://arxiv.org/html/2610.27155#S3.T5), reflecting the different time spans covered by each dataset\. Overall, this splitting configuration ensures a balanced distribution of samples while maintaining the temporal integrity of the photovoltaic power generation data\.
Table 5:Chronological data splitting and sample sizes for each photovoltaic dataset\.DatasetTrain Samples \(70%\)Validation Samples \(15%\)Test Samples \(15%\)DKASC\-2016\-171477433166031659DKASC\-2023713311528615285DKASC\-2024713311528615285DKASC\-2025\-26737701580815808
### 3\.3Data Preprocessing
High\-resolution photovoltaic \(PV\) measurements often contain missing observations, measurement noise, and abnormal spikes caused by sensor malfunctions, communication interruptions, or environmental disturbances\. To improve data quality and ensure reliable model training, a structured preprocessing pipeline was applied to the raw PV dataset\. The overall workflow of the preprocessing stages is illustrated in[Figure 2](https://arxiv.org/html/2610.27155#S3.F2)\. All numerical variables used as model inputs were processed through this preprocessing pipeline before model training\.
Figure 2:Data preprocessing pipeline applied to the photovoltaic dataset for PV power forecasting\.Key preprocessing steps are summarized as follows:
#### 3\.3\.1Missing Value Handling
Missing observations commonly occur in PV datasets due to sensor faults, communication failures, or maintenance activities\. To restore the continuity of the time series, missing values were estimated using linear interpolation, which approximates intermediate values between neighboring observations\. Remaining gaps were filled using forward and backward propagation to preserve temporal consistency\. This step ensures that the time\-series structure remains intact before further processing\.
#### 3\.3\.2Kalman Filtering \(Temporal Smoothing\)
After reconstructing missing observations, a Kalman filtering approach was applied to smooth the time\-series data and reduce measurement noise\. The Kalman filter estimates the hidden system state by recursively updating predictions based on observed measurements:
x^t=Ax^t−1\+Kt\(yt−Hx^t−1\)\\hat\{x\}\_\{t\}=A\\hat\{x\}\_\{t\-1\}\+K\_\{t\}\(y\_\{t\}\-H\\hat\{x\}\_\{t\-1\}\)\(1\)
wherex^t\\hat\{x\}\_\{t\}represents the estimated state at timett,yty\_\{t\}denotes the observed measurement,AAis the state transition matrix, andKtK\_\{t\}is the Kalman gain\. This method improves temporal consistency and removes short\-term measurement fluctuations\.
#### 3\.3\.3Outlier Detection \(Isolation Forest\)
PV datasets may contain abnormal spikes or sensor anomalies that can distort model learning\. To detect such irregular observations, an Isolation Forest algorithm was applied\. This unsupervised anomaly detection method isolates abnormal samples by recursively partitioning the data space\. Observations identified as anomalies were removed from the dataset to prevent the forecasting model from learning misleading patterns\.
#### 3\.3\.4Statistical Outlier Filtering \(Z\-score Analysis\)
In addition to machine learning–based anomaly detection, a statistical filtering step was applied using z\-score analysis to remove extreme values\. The z\-score is defined as:
z=x−μσz=\\frac\{x\-\\mu\}\{\\sigma\}\(2\)
wherexxis the observation,μ\\muis the mean, andσ\\sigmais the standard deviation\. Observations with\|z\|\|z\|greater than a predefined threshold were treated as extreme values and removed to improve data reliability\.
#### 3\.3\.5Wavelet Denoising
High\-frequency solar measurements often contain noise caused by sensor sensitivity and atmospheric variability\. To address this issue, wavelet\-based denoising was applied\. Using the Discrete Wavelet Transform \(DWT\), the signal was decomposed into multiple frequency components:
x\(t\)=∑kaj,kϕj,k\(t\)\+∑j∑kdj,kψj,k\(t\)x\(t\)=\\sum\_\{k\}a\_\{j,k\}\\phi\_\{j,k\}\(t\)\+\\sum\_\{j\}\\sum\_\{k\}d\_\{j,k\}\\psi\_\{j,k\}\(t\)\(3\)
whereaj,ka\_\{j,k\}anddj,kd\_\{j,k\}represent approximation and detail coefficients\. Noise\-dominated coefficients were suppressed using threshold filtering, and the signal was reconstructed to produce a smoother time series while preserving meaningful temporal patterns\.
#### 3\.3\.6Feature Scaling \(RobustScaler\)
Since PV power, irradiance, temperature, and wind variables have different numerical ranges, feature normalization was applied using RobustScaler\. This scaling method uses the median and interquartile range \(IQR\) rather than mean and standard deviation:
x′=x−median\(x\)IQR\(x\)x^\{\\prime\}=\\frac\{x\-\\text\{median\}\(x\)\}\{\\text\{IQR\}\(x\)\}\(4\)
This approach reduces the influence of outliers and improves numerical stability during model training\.
### 3\.4Proposed Forecasting Framework
To overcome the difficulties of multi\-horizon photovoltaic power forecasting and the challenge of balanced temporal learning, we present a hybrid deep\-learning forecasting framework[Figure 3](https://arxiv.org/html/2610.27155#S3.F3)\. It is composed of a Temporal Fusion Transformer \(TFT\) branch for short\-term temporal modeling, and an N\-BEATS branch incorporating long\-term trend and seasonal patterns\. An attention\-based fusion mechanism dynamically combines the outputs of both branches to yield multi\-horizon forecasts\.
Figure 3:Proposed Multi horizon ModelThe pipeline architecture[Figure 3](https://arxiv.org/html/2610.27155#S3.F3)is a linear sequence of steps, which capture the end\-to\-end flow from data ingestion to multi\-horizon inference:
- •Input Time Series:The input shared across models is a sliding window of historical time\-series data\. Such an input form maintains the temporal relationships and context used for forecasting, short\- or long\-term\.
- •TFT Branch:This section, referred to as the Temporal Fusion Transformer \(TFT\) branch in their work, aims to learn short\-term temporal dynamics and adaptively select relevant input features, ensuring the model pays attention to the most relevant features over time\.
- •N\-BEATS Branch:Each N\-BEATS branch learns to model the underlying structure of the time series, decomposing it into interpretable trend and seasonal components, enabling better long\-range pattern fitting\.
- •Attention Fusion Layer:A learned attention\-based fusion module is used to adaptively fuse complementary temporal information from both branches\.
- •Multi\-Horizon Forecast Output:The final module performs power predictions for multiple forecasting horizons \(30 minutes, 2 hours, 6 hours, 12 hours, and 24 hours ahead\), providing multi\-temporal short\-, medium\-, and long\-term forecasting within a single framework\.
#### 3\.4\.1Temporal Fusion Transformer \(TFT\) Branch
The Temporal Fusion Transformer \(TFT\) module, which captures the short\-term temporal dynamics of photovoltaic \(PV\) power generation data, is a key element in this branch\. The second branch utilizes recurrent sequence modeling and attention mechanisms to model complex temporal dependencies and focus on important time steps in the input sequence\. The Multi\-Head Attention model and the focus on historical data are widely used to minimize errors and emphasize relevant information\.The Multi\-Head Attention mechanism is defined as:
MultiHead\(Q,K,V\)=\[H1,…,Hm\]WO\\text\{MultiHead\}\(Q,K,V\)=\[H\_\{1\},\\ldots,H\_\{m\}\]W^\{O\}\(5\)Where each headHiH\_\{i\}is calculated as:
Hi=Attention\(QWiQ,KWiK,VWiV\)H\_\{i\}=\\text\{Attention\}\(QW\_\{i\}^\{Q\},KW\_\{i\}^\{K\},VW\_\{i\}^\{V\}\)\(6\)This simplifies considerably compared to, e\.g\., proprietary production forecasting software and has the advantage of readily reflecting short\-term variations, such as cloud cover and extreme weather events, which obviously affect solar output directly\. These short\-term fluctuations can significantly affect solar PV generation, and the LSTM encoder in the TFT framework serves as a ”local” context to capture temporal order in the data\. Attention enables the transformer model to ”look back” at past time steps relevant to its prediction; for instance, a particular time of day from yesterday may be more informative than all historical observations\. It can leverage temporal ordering of sequences and dependencies across time steps by combining forward and backward time\-series data, a significant benefit over conventional models for short\-term forecasting that results in enhanced accuracy\.
#### 3\.4\.2N\-BEATS Branch for Trend and Seasonality Modeling
The N\-BEATS branch is focused on modeling long\-term temporal trends and seasonal components in the PV time series\. Whereas the TFT focuses on short\-term dynamics, N\-BEATS deconstructs the input sequence into trend and seasonal components to capture the long\-term pattern of solar power generation\. The decomposition process is performed using stacked fully connected blocks, and the output is represented as:
y^total=y^trend\+y^seasonality\\hat\{y\}\_\{\\text\{total\}\}=\\hat\{y\}\_\{\\text\{trend\}\}\+\\hat\{y\}\_\{\\text\{seasonality\}\}\(7\)
The trend component is modeled by a low\-degree polynomial, while the seasonality is represented using a Fourier series:
S\(t\)=∑i=0k\(aicos\(2πit\)\+bisin\(2πit\)\)S\(t\)=\\sum\_\{i=0\}^\{k\}\\left\(a\_\{i\}\\cos\(2\\pi it\)\+b\_\{i\}\\sin\(2\\pi it\)\\right\)\(8\)
This branch captures inborn periodicities of solar power generation characterized by a daily cycle \(seasonality\) and gentler seasonal variations from weather patterns \(trend\)\. The trend component represents long\-term variations, such as the evolution of solar irradiance with the seasons, and the seasonality component captures the day–night cycle of solar power production\.So, combined with these two vital pieces, N\-BEATS captures the sun’s physical cycles, which are important for accurate long\-term forecasting\. Because of this decomposition, the model does not drift along longer forecasting horizons, and thus it is naturally robust in both short\-term and long\-term prediction scenarios\.
#### 3\.4\.3Attention\-Based Fusion Mechanism
We propose an attention\-based fusion mechanism to adaptively combine and make use of the outputs from both TFT and N\-BEATS branches\. This allows the same outputs from different branches to be assigned weights in a context\-sensitive manner, whilst providing enough flexibility to accommodate different temporal dynamics and forecast horizons\. TheYfinalY\_\{\\text\{final\}\}output of the fused model is defined as a weighted sum of the individual models’ outputs from the TFT and N\-BEATS branches:
Yfinal=α⋅YTFT\+\(1−α\)⋅YNBEATSY\_\{\\text\{final\}\}=\\alpha\\cdot Y\_\{\\text\{TFT\}\}\+\(1\-\\alpha\)\\cdot Y\_\{\\text\{NBEATS\}\}\(9\)
Here,α\\alpharepresents the attention weight, which is derived using the Softmax function over the context vectorhcontexth\_\{\\text\{context\}\}:
α=exp\(Wa⋅hcontext\)∑exp\(Wa⋅hcontext\)\\alpha=\\frac\{\\exp\(W\_\{a\}\\cdot h\_\{\\text\{context\}\}\)\}\{\\sum\\exp\(W\_\{a\}\\cdot h\_\{\\text\{context\}\}\)\}\(10\)
Figure 4:Attention\-Based Fusion MechanismThe attention\-based fusion shown in[Figure 4](https://arxiv.org/html/2610.27155#S3.F4)method enables the model to focus on the most relevant branch based on the forecast’s specific context\. In this model, the weightα\\alphais dynamically adjusted based on the input at hand and determines whether to focus on short\-term or long\-term information, depending on the forecast horizon\. The TFT branch may be given greater weight in the short term, as it models immediate variation in solar power output\. For long\-term predictions, on the other hand, you may favor the N\-BEATS branch work trend modeling unit because it can better capture slow seasonal change and longer trends\. This approach enables the model to select the right branch based on context to improve forecast accuracy for multiple horizons\. This adaptive weighting in the fusion layer contributes not only to merging the outputs from two branches, however, also adding robustness to the overall model over diverse forecasting tasks\. This allows the model to toggle between the strengths of each branch, effectively improving performance for both long and short forecasting windows\.
#### 3\.4\.4Multi\-Horizon Forecasting Strategy
We frame the forecasting task as a multi\-horizon prediction, in which the model must output predictions for multiple time steps into the future\. The time horizons are based on the granularity of the DKA Solar Centre dataset, which has a 5\-minute resolution\. Here are the different forecast horizons:
Table 6:Forecast horizons and their purposesHorizonForecast StepsPurpose30 Minutes6 stepsReal\-time grid stability2 Hours24 stepsShort\-term dispatching6 Hours72 stepsIntraday planning12 Hours144 stepsDay\-ahead preparation24 Hours288 stepsLong\-term storage managementHere each horizon creates a time frame for forecasting, ranging from short\-term grid stability to long\-term storage management\. During training, it automatically adjusts forecasts for different time horizons while also producing multiple outputs at once based on the needs during operational periods\. A valid adaptation strategy allows the model to tailor its output, according to the differing needs of each forecasting target, which ensures optimal performance based on both short and long term power generation management\.To generalize the calculation of forecast steps for any given time horizon in hours, you can use the following equation:
Forecast Steps=Horizon in hours×60minutes5minutes per step\\text\{Forecast Steps\}=\\frac\{\\text\{Horizon in hours\}\\times 60\\ \\text\{minutes\}\}\{5\\ \\text\{minutes per step\}\}\(11\)Here, Horizon in hours is the time horizon you would like to forecast for \(in hours\) and to turn hours into minutes, you multiply it by 60\.Next, divide the answer by 5 \(the number of minutes that each step gives\) to get the number of forecast steps\.
#### 3\.4\.5Model Training Strategy
The model employs a two\-stage training strategy designed to stabilize training and enhance forecasting performance\.
- •Phase 1: Fusion Layer Training In the first phase, the TFT and N\-BEATS branches are frozen or pre\-trained\. The attention fusion layer learns to effectively combine the outputs of these two branches based on the input data\. This step ensures that the fusion mechanism is properly adapted before performing full end\-to\-end training\.
- •Phase 2: End\-to\-End Fine\-Tuning In the second phase, all layers are unfrozen and the entire model is trained end\-to\-end\. This allows co\-optimization and fine\-tuning of all components for the solar dataset, enabling the model to better utilize the learned fusion mechanism along with the other components\.
For modeling the predictions and to handle issues related with data, the composite loss function is used, which comprises: Quantile Loss: While not widely adopted for training models, quantile loss can be useful to derive probabilistic intervals for forecasts and a way of assessing prediction uncertainty\. Huber Loss: This function is used to adapt towards being error tolerant as there may be anomalies in data such as sensor errors or the solar data itself\. The overall loss function is just a weighted sum of the Quantile and Huber losses:
Ltotal=λ1LQuantile\+λ2LHuberL\_\{\\text\{total\}\}=\\lambda\_\{1\}L\_\{\\text\{Quantile\}\}\+\\lambda\_\{2\}L\_\{\\text\{Huber\}\}\(12\)
Whereλ1\\lambda\_\{1\}andλ2\\lambda\_\{2\}are hyperparameters that control the contribution of each loss term\. This composite loss function ensures that the model is both robust to outliers and capable of providing reliable probabilistic forecasts\.
### 3\.5Baseline Models
To rigorously evaluate the effectiveness of the proposed hybrid forecasting framework, a diverse set of baseline models is considered, spanning traditional statistical, machine learning, and deep learning approaches\. These models represent well\-established methodologies in time series forecasting and serve as strong benchmarks for comparison\. Each model captures different aspects of temporal dynamics, ranging from linear dependencies to complex nonlinear patterns\.
#### 3\.5\.1ARIMA \(AutoRegressive Integrated Moving Average\)
ARIMA is a classical statistical model widely used for linear time series forecasting\. It captures temporal dependencies using autoregressive and moving average components, along with differencing to ensure stationarity\. ARIMA is particularly effective for short\-term forecasting when the data exhibits stable linear trends\. The model is formulated as:
yt=c\+∑i=1pϕiyt−i\+∑j=1qθjϵt−j\+ϵty\_\{t\}=c\+\\sum\_\{i=1\}^\{p\}\\phi\_\{i\}y\_\{t\-i\}\+\\sum\_\{j=1\}^\{q\}\\theta\_\{j\}\\epsilon\_\{t\-j\}\+\\epsilon\_\{t\}\(13\)wherepp,dd, andqqdenote the autoregressive order, differencing order, and moving average order, respectively\.
#### 3\.5\.2SARIMA \(Seasonal ARIMA\)
SARIMA extends ARIMA by incorporating seasonal patterns, making it suitable for periodic data such as solar power generation\. It models both short\-term dependencies and recurring seasonal trends, which are essential in photovoltaic systems\. The formulation is:
Φ\(Bs\)ϕ\(B\)\(1−B\)d\(1−Bs\)Dyt=Θ\(Bs\)θ\(B\)ϵt\\Phi\(B^\{s\}\)\\phi\(B\)\(1\-B\)^\{d\}\(1\-B^\{s\}\)^\{D\}y\_\{t\}=\\Theta\(B^\{s\}\)\\theta\(B\)\\epsilon\_\{t\}\(14\)wheressrepresents the seasonal period andDDis the seasonal differencing order\.
#### 3\.5\.3Random Forest
Random Forest is an ensemble\-based machine learning algorithm that constructs multiple decision trees and aggregates their outputs to improve prediction accuracy and robustness\. It effectively handles nonlinear relationships and reduces overfitting through bagging\. The prediction is given by:
y^=1N∑i=1NTi\(x\)\\hat\{y\}=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}T\_\{i\}\(x\)\(15\)whereTiT\_\{i\}denotes the individual decision trees\.
#### 3\.5\.4XGBoost
XGBoost is a gradient boosting framework that builds models sequentially by minimizing a regularized objective function\. It is highly efficient and capable of capturing complex nonlinear interactions in the data\. The objective function is defined as:
ℒ=∑il\(yi,y^i\)\+∑kΩ\(fk\)\\mathcal\{L\}=\\sum\_\{i\}l\(y\_\{i\},\\hat\{y\}\_\{i\}\)\+\\sum\_\{k\}\\Omega\(f\_\{k\}\)\(16\)whereΩ\(fk\)\\Omega\(f\_\{k\}\)represents the regularization term controlling model complexity\.
#### 3\.5\.5LSTM \(Long Short\-Term Memory\)
LSTM is a recurrent neural network designed to capture long\-term dependencies in sequential data\. It uses gating mechanisms to control information flow, making it effective for time series with temporal dependencies\. The key operations are:
ft\\displaystyle f\_\{t\}=σ\(Wfxt\+Ufht−1\)\\displaystyle=\\sigma\(W\_\{f\}x\_\{t\}\+U\_\{f\}h\_\{t\-1\}\)\(17\)it\\displaystyle i\_\{t\}=σ\(Wixt\+Uiht−1\)\\displaystyle=\\sigma\(W\_\{i\}x\_\{t\}\+U\_\{i\}h\_\{t\-1\}\)\(18\)ot\\displaystyle o\_\{t\}=σ\(Woxt\+Uoht−1\)\\displaystyle=\\sigma\(W\_\{o\}x\_\{t\}\+U\_\{o\}h\_\{t\-1\}\)\(19\)These gates allow the model to selectively retain and update information over time\.
#### 3\.5\.6GRU \(Gated Recurrent Unit\)
GRU is a simplified variant of LSTM that combines the forget and input gates into a single update gate, reducing computational complexity\. Despite its simpler structure, GRU effectively captures temporal dependencies and performs well in time series forecasting tasks:
zt\\displaystyle z\_\{t\}=σ\(Wzxt\+Uzht−1\)\\displaystyle=\\sigma\(W\_\{z\}x\_\{t\}\+U\_\{z\}h\_\{t\-1\}\)\(20\)rt\\displaystyle r\_\{t\}=σ\(Wrxt\+Urht−1\)\\displaystyle=\\sigma\(W\_\{r\}x\_\{t\}\+U\_\{r\}h\_\{t\-1\}\)\(21\)
#### 3\.5\.7Transformer
The Transformer model utilizes self\-attention mechanisms to capture long\-range dependencies without relying on recurrent structures\. It enables parallel processing and has shown strong performance in sequential modeling tasks\. The attention mechanism is defined as:
Attention\(Q,K,V\)=softmax\(QKTdk\)V\\text\{Attention\}\(Q,K,V\)=\\text\{softmax\}\\left\(\\frac\{QK^\{T\}\}\{\\sqrt\{d\_\{k\}\}\}\\right\)V\(22\)
#### 3\.5\.8N\-BEATS
N\-BEATS is a deep neural architecture specifically designed for time series forecasting\. It employs a stack of fully connected layers with backward and forward residual links to model trend and seasonality components explicitly:
yt=y^t\(trend\)\+y^t\(seasonality\)y\_\{t\}=\\hat\{y\}\_\{t\}^\{\(trend\)\}\+\\hat\{y\}\_\{t\}^\{\(seasonality\)\}\(23\)This structure enhances interpretability while maintaining strong predictive performance\.
#### 3\.5\.9Temporal Fusion Transformer \(TFT\)
TFT is an advanced deep learning model that integrates attention mechanisms, gating, and variable selection networks for multi\-horizon forecasting\. It effectively handles both static and time\-varying inputs while providing interpretability through attention weights:
y^t\+h=f\(xt−k:t,static features,h\)\\hat\{y\}\_\{t\+h\}=f\(x\_\{t\-k:t\},\\text\{static features\},h\)\(24\)This makes TFT particularly suitable for complex, real\-world forecasting problems such as photovoltaic power prediction\.
#### 3\.5\.10Loss Functions
The model utilizes a composite loss function to ensure both robustness to outliers and the ability to capture predictive uncertainty\.
#### 3\.5\.11Quantile Loss
Quantile loss was employed to facilitate uncertainty\-aware training and provide robustness against asymmetric forecasting errors\. This is particularly critical for PV forecasting, where the impact of under\-prediction and over\-prediction on grid stability can differ\. The loss for a specific quantileτ\\tauis defined as:
ℒQ\(𝐲,𝐲^\)=∑imax\(τ\(yi−y^i\),\(τ−1\)\(yi−y^i\)\)\\mathcal\{L\}\_\{Q\}\(\\mathbf\{y\},\\mathbf\{\\hat\{y\}\}\)=\\sum\_\{i\}\\max\\left\(\\tau\(y\_\{i\}\-\\hat\{y\}\_\{i\}\),\(\\tau\-1\)\(y\_\{i\}\-\\hat\{y\}\_\{i\}\)\\right\)\(25\)
#### 3\.5\.12Huber Loss
To provide a smooth optimization objective that is less sensitive to extreme outliers than Mean Squared Error \(MSE\), Huber loss is integrated\. It acts as a hybrid between MSE and Mean Absolute Error \(MAE\):
ℒH\(a\)=\{12a2for\|a\|≤δδ\(\|a\|−12δ\)otherwise\\mathcal\{L\}\_\{H\}\(a\)=\\begin\{cases\}\\frac\{1\}\{2\}a^\{2\}&\\text\{for \}\|a\|\\leq\\delta\\\\ \\delta\(\|a\|\-\\frac\{1\}\{2\}\\delta\)&\\text\{otherwise\}\\end\{cases\}\(26\)anda=y−y^a=y\-\\hat\{y\}\.
#### 3\.5\.13Combined Loss
The total lossℒTotal\\mathcal\{L\}\_\{Total\}is the summation of the Quantile and Huber losses, ensuring stable gradient behavior and robust training\.
#### 3\.5\.14Optimization Algorithm
The Adaptive Moment Estimation \(Adam\) optimizer was employed in this study\. Adam is widely used in deep learning applications because it combines the advantages of momentum\-based optimization and adaptive learning rate methods\. This enables faster convergence and stable training when dealing with complex neural network architectures and noisy time\-series data\.
The Adam optimizer updates model parameters using estimates of the first and second moments of the gradients\. For a parameterθ\\theta, the update rules are defined as follows:
mt=β1mt−1\+\(1−β1\)gtm\_\{t\}=\\beta\_\{1\}m\_\{t\-1\}\+\(1\-\\beta\_\{1\}\)g\_\{t\}\(27\)
vt=β2vt−1\+\(1−β2\)gt2v\_\{t\}=\\beta\_\{2\}v\_\{t\-1\}\+\(1\-\\beta\_\{2\}\)g\_\{t\}^\{2\}\(28\)
θt\+1=θt−αm^tv^t\+ϵ\\theta\_\{t\+1\}=\\theta\_\{t\}\-\\alpha\\frac\{\\hat\{m\}\_\{t\}\}\{\\sqrt\{\\hat\{v\}\_\{t\}\}\+\\epsilon\}\(29\)
wheregtg\_\{t\}represents the gradient of the loss function at iterationtt,mtm\_\{t\}andvtv\_\{t\}denote the first and second moment estimates,α\\alphais the learning rate, andβ1\\beta\_\{1\},β2\\beta\_\{2\}, andϵ\\epsilonare hyperparameters controlling the moving averages and numerical stability\.
In this study, the optimizer shown in Table[7](https://arxiv.org/html/2610.27155#S3.T7)was applied using a two\-stage training strategy\. During the first phase, only the parameters of the fusion layer were optimized using a learning rate of1×10−31\\times 10^\{\-3\}\. In the second phase, the entire network was fine\-tuned using a smaller learning rate of1×10−41\\times 10^\{\-4\}to ensure stable convergence and prevent overfitting\. This optimization strategy allows the hybrid architecture to gradually learn the interaction between the Temporal Fusion Transformer and N\-BEATS branches while maintaining stable training dynamics\.
Table 7:Optimization ParametersParameterValueOptimizerAdamLearning Rate \(Phase 1\)1×10−31\\times 10^\{\-3\}Learning Rate \(Phase 2\)1×10−41\\times 10^\{\-4\}Weight Decay1×10−51\\times 10^\{\-5\}SchedulerReduceLROnPlateau
#### 3\.5\.15Learning Rate Scheduling
We used the ReduceLROnPlateau learning rate scheduler to adaptively reduce the learning rate\. The scheduler watches the validation loss and reduces the learning rate automatically when the model performance is not improving for a given number of epochs\. This automatic tuning of the learning rate enables the optimization algorithm to make larger moves in parameter space in initial stages of training, changing it by smaller and even finer adjustments as the model nears convergence\. This way, the scheduler allows for the network to escape through performance plateaus, which gives it improved training stability and a better convergence of deep neural network parameters without any human intervention\.
#### 3\.5\.16Early Stopping Strategy
Early stopping was utilized as a regularization strategy to avoid overfitting during model training\. Training was stopped when there was no improvement in the validation loss for a given number of consecutive epochs \(patience value\)\. Model parameters with the best validation performance were restored upon termination\. By doing so, this strategy refrains the model from learning noise or irrelevant patterns in the training data, making it more computationally efficient and improving generalization performance on unseen data\.
#### 3\.5\.17Training Configuration
The training configuration and hyperparameters were carefully selected to ensure stable learning and optimal forecasting performance\. A sequence length of 144 with multiple forecast horizons \(6, 24, 72, 144, and 288\) was used to capture both short\-term and long\-term temporal dependencies, while a batch size of 64 maintained computational efficiency\. The model employed a hidden dimension of 64, a single LSTM layer with four attention heads in the TFT branch, and a hidden size of 128 for the N\-BEATS component\. Optimization was performed using the Adam optimizer with a two\-stage learning strategy \(1×10−31\\times 10^\{\-3\}and1×10−41\\times 10^\{\-4\}\) and weight decay of1×10−51\\times 10^\{\-5\}, combined with Quantile and Huber loss functions\. A ReduceLROnPlateau scheduler and early stopping \(patience = 25\) were applied to improve convergence stability and prevent overfitting, as summarized in Table[8](https://arxiv.org/html/2610.27155#S3.T8)\.
Table 8:Hyperparameter Settings for the Proposed Hybrid Forecasting ModelHyperparameterValueDescriptionSequence Length144Historical time steps used as inputForecast Horizons6, 24, 72, 144, 288Prediction steps for multiple time scalesBatch Size64Samples per training batchHidden Dimension64Size of neural network representationsLSTM Layers1Number of LSTM layers in TFT branchAttention Heads4Multi\-head attention componentsN\-BEATS Hidden Size128Hidden size of N\-BEATS blocksOptimizerAdamOptimization algorithmLearning Rate \(Phase 1\)1×10−31\\times 10^\{\-3\}Fusion layer training rateLearning Rate \(Phase 2\)1×10−41\\times 10^\{\-4\}End\-to\-end fine\-tuning rateWeight Decay1×10−51\\times 10^\{\-5\}Regularization parameterLoss FunctionsQuantile \+ HuberCombined training lossSchedulerReduceLROnPlateauAdaptive learning rate controlTraining Epochs25 \(per phase\)Maximum epochs per phaseEarly Stopping Patience25Epochs without improvement
#### 3\.5\.18Algorithm of the Proposed Hybrid Multi\-Horizon Forecasting Model
As shown in Algorithm[1](https://arxiv.org/html/2610.27155#alg1), the proposed hybrid framework integrates TFT and N\-BEATS through an attention\-based fusion mechanism\.
Algorithm 1Proposed Hybrid TFT–NBEATS PV Forecasting Framework0:Preprocessed photovoltaic dataset
DD, sequence length
LL, forecast horizons
H=\{6,24,72,144,288\}H=\\\{6,24,72,144,288\\\}
0:Multi\-horizon photovoltaic power predictions
YY
1:Load photovoltaic dataset
DDand arrange observations chronologically
2:Apply preprocessing pipeline: missing value handling, Kalman filtering, outlier detection \(Isolation Forest\), wavelet denoising, and feature scaling
3:Construct input sequences of length
LLusing a sliding window technique
4:Initialize hybrid forecasting model consisting of TFT branch, N\-BEATS branch, and attention\-based fusion layer
5:foreach input sequence
XXdo
6:Extract short\-term temporal features using the TFT branch
7:Extract long\-term temporal patterns \(trend and seasonality\) using the N\-BEATS branch
8:Concatenate outputs from both branches to form a combined representation
9:Compute fusion weights using an attention mechanism
10:Generate final representation via weighted combination of TFT and N\-BEATS outputs
11:Produce multi\-horizon predictions for future time steps
\{30min,2h,6h,12h,24h\}\\\{30\\text\{min\},2h,6h,12h,24h\\\}
12:Compute training loss using Quantile Loss \+ Huber Loss
13:Update model parameters using the Adam optimizer
14:endfor
15:Repeat training until convergence or early stopping criteria is satisfied
16:returnMulti\-horizon photovoltaic power forecasts
YY
## 4Experimental Results
### 4\.1Experimental Setup and Software Configurations
All experiments were conducted using Google Colaboratory \(Colab\) Premium with an NVIDIA Tesla T4 GPU \(16 GB VRAM\) to ensure efficient training of regression models on the renewable energy dataset\. The implementation was carried out in Python 3\.10 using TensorFlow/Keras for deep learning models and Scikit\-learn for conventional regression approaches, while Pandas and NumPy were used for data preprocessing\. Hyperparameter tuning was performed through grid search and manual optimization, and techniques such as early stopping were applied to prevent overfitting\. Model performance was evaluated using standard regression metrics, including MAE, MSE, RMSE to ensure reliable and accurate predictions\.
### 4\.2Cross\-Dataset Evaluation
To evaluate the generalization capability of the proposed hybrid TFT\-NBEATS model, experiments were conducted across four photovoltaic datasets spanning different time periods: 2016\-2017, 2023, 2024, and 2025\-2026\. Each dataset represents distinct seasonal patterns, environmental conditions, and temporal dynamics, enabling a comprehensive assessment of model robustness\. The model was trained and evaluated independently on each dataset using identical experimental configurations to ensure fair comparison\.
Table 9:Cross\-dataset forecasting performance of the proposed modelDatasetRMSEMAEMAPEDKASC\-2016\-201742\.3535\.412\.88DKASC\-202346\.2738\.003\.29DKASC\-202452\.2940\.084\.02DKASC\-2025\-202648\.1139\.613\.91As shown in Table[9](https://arxiv.org/html/2610.27155#S4.T9), the proposed model maintains strong and consistent forecasting performance across all datasets, with relatively low variation in RMSE, MAE, and MAPE values\. Despite differences in seasonal behavior and inter\-annual environmental variability, the model effectively captures both short\-term fluctuations and long\-term temporal patterns\. The slightly higher error observed in the 2024 dataset suggests increased variability or complexity in that period; however, overall performance remains stable\. This consistency confirms the robustness of the proposed framework and its ability to generalize across diverse temporal distributions, making it suitable for real\-world renewable energy forecasting applications\.
### 4\.3Comparative Performance Analysis Across Multiple Photovoltaic Datasets
The comparative evaluation of forecasting models across multiple photovoltaic datasets is essential for assessing both predictive accuracy and generalization capability\. In real\-world energy systems, models must perform consistently under varying seasonal patterns, environmental conditions, and data distributions\. Therefore, this study conducts a comprehensive performance analysis of traditional, machine learning, and deep learning approaches across four multi\-year PV datasets\. By benchmarking these models against the proposed hybrid framework, the analysis highlights the effectiveness of advanced architectures in capturing complex temporal dynamics and ensuring robust multi\-horizon forecasting performance\.
Table 10:Baseline and Proposed Model Performance Across Four PV DatasetsModel2016–2017202320242025–2026RMSEMAEMAPERMSEMAEMAPERMSEMAEMAPERMSEMAEMAPEARIMA87\.1273\.8412\.3187\.1273\.8412\.3189\.1271\.8414\.3184\.1277\.8414\.31SARIMA94\.6778\.4314\.5694\.6778\.4314\.5691\.6782\.4312\.5691\.6782\.4311\.56Random Forest91\.3584\.9017\.0291\.3584\.9017\.0294\.3580\.9013\.0294\.3580\.9013\.02XGBoost87\.9192\.1218\.9587\.9192\.1218\.9584\.9188\.1221\.9583\.9189\.1221\.95LSTM82\.4568\.3216\.8782\.4568\.3216\.8778\.4571\.3213\.8779\.4571\.3213\.87GRU75\.1874\.7118\.4175\.1874\.7118\.4177\.1871\.7115\.4178\.1871\.7115\.41Transformer69\.8459\.6314\.1569\.8459\.6314\.1572\.8456\.6317\.1566\.8462\.6311\.15N\-BEATS71\.2262\.4513\.5671\.2262\.4513\.5668\.2265\.4511\.5674\.2259\.4510\.56TFT65\.4158\.9111\.4165\.4158\.9111\.4168\.4155\.9113\.4168\.4154\.9113\.41Proposed \(Hybrid\)42\.3535\.412\.8846\.2738\.003\.2952\.2940\.084\.0248\.1139\.613\.91
[Table 10](https://arxiv.org/html/2610.27155#S4.T10)presents a comprehensive comparative analysis of baseline and proposed models across four photovoltaic datasets using RMSE, MAE, and MAPE as evaluation metrics\. Traditional statistical models, such as ARIMA and SARIMA, consistently exhibit the highest error values, with RMSE exceeding 87 across most datasets, highlighting their limitations in modeling nonlinear and complex temporal dynamics\. Machine learning models, including Random Forest and XGBoost, provide moderate improvements but still suffer from inconsistency and relatively high error rates\.
Deep learning models demonstrate significantly improved performance\. Among these, the Temporal Fusion Transformer \(TFT\) consistently achieves the best results among baseline models, with RMSE values ranging from approximately 65 to 68 across different datasets\. Transformer and N\-BEATS also show competitive performance, indicating their capability to capture temporal dependencies more effectively than traditional approaches\.
However, the proposed hybrid model clearly outperforms all baseline methods across all datasets\. For example, in the 2016–2017 dataset, RMSE is reduced from 65\.41 \(TFT\) to 42\.35, representing a substantial improvement\. Similar trends are observed in 2023 \(46\.27\), 2024 \(52\.29\), and 2025–2026 \(48\.11\)\. Additionally, the hybrid model significantly reduces MAPE values to below 5% across all datasets, whereas baseline models typically exceed 10%\.
Overall, these results confirm that the proposed hybrid architecture effectively captures both short\-term fluctuations and long\-term temporal patterns, leading to superior forecasting accuracy and strong cross\-dataset generalization\.
### 4\.4Ablation Study
The ablation study is conducted to evaluate the contribution of each component within the proposed hybrid forecasting architecture\. Specifically, the effectiveness of the TFT branch, N\-BEATS branch, and the attention\-based fusion mechanism is analyzed by systematically removing or modifying these components\. This analysis aims to demonstrate how each module influences overall forecasting performance across multiple datasets\. By comparing different model variants, the study provides deeper insights into the importance of hybridization and adaptive fusion in achieving balanced temporal learning and improved multi\-horizon forecasting accuracy\.
Table 11:Ablation Study of the Proposed Hybrid Model Across Four PV DatasetsModel Variant2016–2017202320242025–2026RMSEMAEMAPERMSEMAEMAPERMSEMAEMAPERMSEMAEMAPETFT only65\.4158\.9111\.4165\.4158\.9111\.4168\.4155\.9113\.4168\.4154\.9113\.41N\-BEATS only73\.6765\.8119\.4573\.6765\.8119\.4570\.6768\.8116\.4570\.6768\.8116\.45Hybrid \(without attention\)68\.9171\.2513\.8468\.9171\.2513\.8465\.9174\.2511\.8471\.9168\.2516\.84Hybrid \(full model\)42\.3535\.412\.8846\.2738\.003\.2952\.2940\.084\.0248\.1139\.613\.91
[Table 11](https://arxiv.org/html/2610.27155#S4.T11)presents the ablation study results of the proposed hybrid model across four photovoltaic datasets, highlighting the contribution of each architectural component\. The individual TFT\-only and N\-BEATS\-only models exhibit relatively higher errors, indicating their limitations when used independently\. For instance, in the 2016–2017 dataset, TFT achieves an RMSE of 65\.41, while N\-BEATS results in a higher RMSE of 73\.67\. A similar trend is observed across other datasets, confirming that single\-branch models are insufficient to capture complete temporal dynamics\.
The hybrid model without attention shows moderate improvement, reducing RMSE to 68\.91 \(2016–2017\) and 65\.91 \(2024\), suggesting that combining both branches enhances performance\. However, the absence of attention limits its ability to optimally balance short\-term and long\-term features\.
In contrast, the full hybrid model consistently achieves the best performance across all datasets\. For example, RMSE is reduced to 42\.35 \(2016–2017\), 46\.27 \(2023\), 52\.29 \(2024\), and 48\.11 \(2025–2026\), significantly outperforming all other variants\. Additionally, MAPE values are reduced to below 5% in all cases, demonstrating strong accuracy and stability\.
These results clearly indicate that the integration of TFT, N\-BEATS, and attention\-based fusion is essential for achieving optimal multi\-horizon forecasting performance\.
\(a\)DKASC\-2016–2017
\(b\)DKASC\-2023
\(c\)DKASC\-2024
\(d\)DKASC\-2025–2026
Figure 5:Distribution comparison of actual and predicted values across different datasets
### 4\.5Distribution Analysis of Actual vs Predicted Values
To comprehensively assess the predictive behavior of the proposed model, distribution plots comparing actual and predicted values were analyzed across all datasets\. These plots provide insight into how well the model captures the underlying data distribution beyond standard numerical error metrics\.
As shown in Figures[5](https://arxiv.org/html/2610.27155#S4.F5), the predicted distributions closely follow the actual data distributions across all datasets\. In particular, Figures[5\(a\)](https://arxiv.org/html/2610.27155#S4.F5.sf1)and[5\(b\)](https://arxiv.org/html/2610.27155#S4.F5.sf2)illustrate that the predicted values for the DKASC\-2016–2017 and DKASC\-2023 datasets maintain a close alignment with the actual values, indicating consistent model performance on both historical and recent data\. Minor deviations around peak regions suggest localized prediction errors, but these deviations do not significantly impact the overall distributional agreement\.
For the DKASC\-2024 dataset \(Figure[5\(c\)](https://arxiv.org/html/2610.27155#S4.F5.sf3)\), the predicted values exhibit slightly wider dispersion compared to the actual data\. This observation aligns with the higher error metrics reported previously, reflecting increased variability in that period\. In contrast, the DKASC\-2025–2026 dataset \(Figure[5\(d\)](https://arxiv.org/html/2610.27155#S4.F5.sf4)\) demonstrates a strong overlap between predicted and actual distributions across the full value range, highlighting the model’s capability to accurately handle recent data with complex temporal patterns\. The strong alignment between actual and predicted distributions across all datasets confirms that the proposed model not only minimizes numerical prediction errors but also effectively preserves the statistical characteristics of the data, reinforcing its robustness and generalization ability\.
### 4\.6Model Interpretability Analysis via SHAP\-Based Feature Attribution
To enhance the transparency and interpretability of the proposed forecasting framework, a SHAP\-based feature attribution analysis is conducted\. This approach enables a detailed understanding of how individual input variables influence model predictions across different photovoltaic datasets\. By quantifying the contribution of each feature, the analysis reveals the most influential environmental and operational factors driving forecasting performance\. Such interpretability is crucial for building trust in deep learning models and supporting informed decision\-making in real\-world energy management systems\.
\(a\)2016–2017 dataset SHAP feature importance
\(b\)2023 dataset SHAP feature importance
\(c\)2024 dataset SHAP feature importance
\(d\)2025–2026 dataset SHAP feature importance
Figure 6:SHAP\-based global feature importance analysis across four photovoltaic datasets\. The figures illustrate the most influential features contributing to model predictions under varying temporal conditions\.[Figure 6](https://arxiv.org/html/2610.27155#S4.F6)illustrates the SHAP\-based global feature importance across four photovoltaic datasets, providing insights into the most influential variables driving model predictions\. In the 2016–2017 dataset \(a\), weather\-related features such as diffuse and global horizontal radiation, along with wind direction, dominate the model, indicating the strong dependence of PV generation on environmental conditions\. Similarly, in the 2025–2026 dataset \(d\), radiation and rainfall\-related features remain highly influential, reinforcing the critical role of meteorological variables in forecasting performance\.
In contrast, the 2023 and 2024 datasets \(b and c\) show a shift toward electrical and operational features\. Variables such as phase active energy, performance ratio, and site demand power exhibit higher SHAP values, suggesting that system\-level operational dynamics significantly influence predictions during these periods\. This variation indicates that the model effectively adapts to different data distributions and underlying patterns\.
Across all datasets, performance ratio and active power\-related features consistently appear among the top contributors, highlighting their importance in capturing system efficiency and load behavior\. Overall, the SHAP analysis demonstrates that the proposed model successfully integrates both environmental and operational features, enabling robust and interpretable forecasting across diverse temporal conditions\.
### 4\.7Practical Deployment and Operational Relevance
To demonstrate the real\-world applicability of the proposed hybrid forecasting framework, the trained model was deployed on Hugging Face Spaces and integrated into a web\-based interface for real\-time photovoltaic power forecasting\. The deployed system is publicly accessible at:https://huggingface\.co/spaces/rocky250/Re\-Energy\. Through this interface, users can provide relevant meteorological and temporal inputs, and the model generates multi\-horizon PV power forecasts for 30 minutes, 2 hours, 6 hours, 12 hours, and 24 hours ahead\. This deployment extends the proposed method beyond offline experimentation and enables practical use in operational renewable energy settings showing in[Figure 7](https://arxiv.org/html/2610.27155#S4.F7)\.
The deployment mitigates an important practical limitation in existing PV forecasting research, where many accurate models remain confined to experimental environments without real\-time usability\. By making the proposed model accessible through a live cloud\-based platform, this study bridges the gap between forecasting accuracy and operational implementation\. The deployed framework supports timely decision\-making in PV\-battery\-grid systems by enabling forecast\-driven actions such as battery scheduling, load balancing, and energy dispatch planning\. Overall, this practical implementation strengthens the contribution of the study by demonstrating that the proposed framework is not only accurate and robust, but also deployable, accessible, and valuable for real\-world energy management applications\.
Figure 7:The real world application of proposed model, showing the interface\.
## 5Conclusion
This study presented a novel hybrid deep learning framework that integrates the Temporal Fusion Transformer \(TFT\) and N\-BEATS architectures through an attention\-based fusion mechanism for robust multi\-horizon photovoltaic \(PV\) power forecasting\. The proposed model was designed to simultaneously capture short\-term temporal dynamics and long\-term trend–seasonality patterns within a unified pipeline, addressing key limitations in existing PV forecasting approaches, including single\-horizon modeling, temporal\-scale imbalance, and lack of interpretability\.
The framework was evaluated on multiple real\-world PV datasets from the Desert Knowledge Australia Solar Centre \(DKASC\), covering different years and climatic conditions\. Experimental results demonstrated that the proposed model consistently outperformed traditional statistical models, machine learning methods, and state\-of\-the\-art deep learning architectures\. Specifically, the model achieved RMSE values of 42\.35, 46\.27, 52\.29, and 48\.11 across the evaluated datasets, representing a substantial performance improvement of approximately 35–40% compared to the best\-performing baseline \(TFT\)\. Additionally, MAPE values below 5% across all datasets indicate high prediction accuracy and stability\.
Beyond predictive performance, the proposed framework enhances interpretability through attention weight visualization and N\-BEATS\-based trend–seasonality decomposition, providing valuable insights into temporal dynamics and feature contributions\. Furthermore, the deployment of the model on a cloud\-based platform demonstrates its practical applicability for real\-time forecasting in PV–battery–grid systems\.
Future work will focus on extending the framework to incorporate probabilistic forecasting, integrating numerical weather prediction \(NWP\) data, and optimizing computational efficiency for large\-scale deployment in smart grid environments\.
## Funding
This research did not receive any specific grant from funding agencies in the public, commercial, or not\-for\-profit sectors\.
## References
- Alagarsamyet al\.\(2025\)M\. Alagarsamy, U\. Rajasekaran, S\. Ganesan, and R\. PalanivelXAI based photovoltaic energy management framework for smart cities\.IEEE Access\.Cited by:[§2\.4](https://arxiv.org/html/2610.27155#S2.SS4.p2.1)\.
- Alorf and Khan \(2025\)A\. Alorf and M\. U\. G\. KhanSolar irradiance forecasting using temporal fusion transformers\.international journal of energy research2025\(1\),pp\. 3534500\.Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p2.1),[§1](https://arxiv.org/html/2610.27155#S1.p4.1),[§1](https://arxiv.org/html/2610.27155#S1.p5.1)\.
- Asieduet al\.\(2024\)S\. T\. Asiedu, F\. K\. A\. Nyarko, S\. Boahen, F\. B\. Effah, and B\. A\. AsaagaMachine learning forecasting of solar PV production using single and hybrid models over different time horizons\.Heliyon10\(7\),pp\. e28898\.External Links:[Document](https://dx.doi.org/10.1016/j.heliyon.2024.e28898)Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p3.1),[§1](https://arxiv.org/html/2610.27155#S1.p4.1),[§1](https://arxiv.org/html/2610.27155#S1.p5.1)\.
- Bakhtet al\.\(2025\)M\. P\. Bakht, M\. N\. H\. Mohd, B\. S\. K\. K\. Ibrahim, N\. Khan, U\. U\. Sheikh, and A\. A\. Ab RahmanAdvanced automated machine learning framework for photovoltaic power output prediction using environmental parameters and shap interpretability\.Results in Engineering25,pp\. 103838\.Cited by:[§2\.4](https://arxiv.org/html/2610.27155#S2.SS4.p2.1),[Table 1](https://arxiv.org/html/2610.27155#S2.T1.5.9.1.1.1)\.
- Baran \(2026\)E\. BaranDeep learning\-based detection and forecasting of performance losses in solar pv systems using multi\-sensor data\.Applied Sciences16\(4\),pp\. 1709\.Cited by:[§2\.2](https://arxiv.org/html/2610.27155#S2.SS2.p2.1)\.
- Cisseet al\.\(2026\)B\. B\. Cisse, G\. I\. Rashed, A\. Badjan, H\. Haider, H\. A\. I\. Gony, and A\. M\. ErshadOptimized hybrid deep learning framework for reliable multi\-horizon photovoltaic power forecasting in smart grids\.Electricity7\(1\),pp\. 4\.Cited by:[§2\.3](https://arxiv.org/html/2610.27155#S2.SS3.p2.1),[Table 1](https://arxiv.org/html/2610.27155#S2.T1.5.6.1.1.1)\.
- Fennaneet al\.\(2026\)S\. Fennane, H\. Kacimi, H\. Mabchour, F\. ALtalqi, A\. El Hazmir, and A\. EchchelhImproving short\-term solar power prediction through a hybrid deep learning model\.Engineering, Technology & Applied Science Research16\(2\),pp\. 32825–32832\.Cited by:[§2\.2](https://arxiv.org/html/2610.27155#S2.SS2.p2.1),[Table 1](https://arxiv.org/html/2610.27155#S2.T1.5.5.1.1.1)\.
- Gawusu and Zhang \(2026\)S\. Gawusu and X\. ZhangTransformer\-based deep learning for multi\-horizon global power generation forecasting\.Energy Conversion and Management354,pp\. 121284\.Cited by:[§2\.3](https://arxiv.org/html/2610.27155#S2.SS3.p2.1)\.
- Guermouiet al\.\(2024\)M\. Guermoui, A\. Fezzani, Z\. Mohamed, A\. Rabehi, K\. Ferkous, N\. Bailek, S\. Bouallit, A\. Riche, M\. Bajaj, S\. A\. Dost Mohammadi,et al\.An analysis of case studies for advancing photovoltaic power forecasting through multi\-scale fusion techniques\.Scientific reports14\(1\),pp\. 6653\.Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p4.1)\.
- Hanet al\.\(2025\)Y\. Han, C\. Li, S\. Chen, J\. Zhao, Y\. Tian, and J\. WangEnhanced multi\-horizon photovoltaic power forecasting: a novel approach integrating iceemdan decomposition with hierarchical frequency neural networks\.PLoS One20\(11\),pp\. e0334828\.Cited by:[§2\.3](https://arxiv.org/html/2610.27155#S2.SS3.p2.1),[Table 1](https://arxiv.org/html/2610.27155#S2.T1.5.7.1.1.1)\.
- Huseinet al\.\(2024\)M\. Husein, E\. Gago, B\. Hasan, and M\. PegalajarTowards energy efficiency: a comprehensive review of deep learning\-based photovoltaic power forecasting strategies\.Heliyon10\(13\)\.Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p5.1)\.
- International Energy Agency \(2024\)International Energy AgencyRenewables 2024: analysis and forecast to 2030\.Technical reportIEA,Paris\.External Links:[Link](https://www.iea.org/reports/renewables-2024)Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p1.1)\.
- International Renewable Energy Agency \(2025\)International Renewable Energy AgencyRenewable capacity statistics 2025\.Technical reportIRENA,Abu Dhabi\.External Links:[Link](https://www.irena.org/Publications/2025/Mar/Renewable-capacity-statistics-2025)Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p1.1)\.
- Khanet al\.\(2025\)M\. A\. Khan, T\. M\. A\. Zulcaffle, M\. Ahmad, and A\. A\. T\. AlkhatibInterpretable hybrid deep learning for real\-time multi\-horizon forecasting of load, solar, and wind generation using multi\-source energy and weather data\.Journal of Computing & Biomedical Informatics10\(01\)\.Cited by:[§2\.3](https://arxiv.org/html/2610.27155#S2.SS3.p2.1),[Table 1](https://arxiv.org/html/2610.27155#S2.T1.5.8.1.1.1)\.
- Kimet al\.\(2026\)E\. J\. Kim, Y\. H\. Jeon, Y\. C\. Park, S\. S\. Park, and S\. J\. OhEvaluation of photovoltaic generation forecasting using model output statistics and machine learning\.Energies19\(2\),pp\. 486\.Cited by:[§2\.1](https://arxiv.org/html/2610.27155#S2.SS1.p1.1),[Table 1](https://arxiv.org/html/2610.27155#S2.T1.5.2.1.1.1)\.
- Kim and Hau \(2026\)E\. Kim and Y\. S\. HauAdvancing photovoltaic solar power forecasting by the hybrid model of cnn and dnn and the xai with shap\.International Journal of Green Energy23\(2\),pp\. 333–344\.Cited by:[§2\.2](https://arxiv.org/html/2610.27155#S2.SS2.p2.1)\.
- Limet al\.\(2021\)B\. Lim, S\. Ö\. Arık, N\. Loeff, and T\. PfisterTemporal fusion transformers for interpretable multi\-horizon time series forecasting\.International Journal of Forecasting37\(4\),pp\. 1748–1764\.External Links:[Document](https://dx.doi.org/10.1016/j.ijforecast.2021.03.012)Cited by:[2nd item](https://arxiv.org/html/2610.27155#S1.I1.i2.p1.1),[§1](https://arxiv.org/html/2610.27155#S1.p2.1),[§1](https://arxiv.org/html/2610.27155#S1.p4.1),[§1](https://arxiv.org/html/2610.27155#S1.p5.1)\.
- Mbeyet al\.\(2024\)C\. F\. Mbey, V\. J\. Foba Kakeu, A\. T\. Boum, and F\. G\. Yem SouheSolar photovoltaic generation and electrical demand forecasting using multi\-objective deep learning model for smart grid systems\.Cogent engineering11\(1\),pp\. 2340302\.Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p2.1)\.
- Miraftabzadeh and Longo \(2023\)S\. M\. Miraftabzadeh and M\. LongoHigh\-resolution pv power prediction model based on the deep learning and attention mechanism\.Sustainable Energy, Grids and Networks34,pp\. 101025\.Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p3.1),[§1](https://arxiv.org/html/2610.27155#S1.p5.1)\.
- Mondalet al\.\(2024\)R\. Mondal, S\. K\. Roy, and C\. GiriSolar power forecasting using domain knowledge\.Energy302,pp\. 131709\.External Links:[Document](https://dx.doi.org/10.1016/j.energy.2024.131709)Cited by:[4th item](https://arxiv.org/html/2610.27155#S1.I1.i4.p1.1),[§1](https://arxiv.org/html/2610.27155#S1.p4.1)\.
- Nadeemet al\.\(2024\)A\. Nadeem, M\. F\. Hanif, M\. S\. Naveed, M\. T\. Hassan, M\. Gul, N\. Husnain, and J\. MiAI\-driven precision in solar forecasting: breakthroughs in machine learning and deep learning\.AIMS Geosciences10\(4\),pp\. 684–734\.Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p1.1),[§1](https://arxiv.org/html/2610.27155#S1.p3.1),[§1](https://arxiv.org/html/2610.27155#S1.p5.1)\.
- Oreshkinet al\.\(2020\)B\. N\. Oreshkin, D\. Carpov, N\. Chapados, and Y\. BengioN\-BEATS: neural basis expansion analysis for interpretable time series forecasting\.InInternational Conference on Learning Representations \(ICLR\),External Links:[Link](https://openreview.net/forum?id=r1ecqn4YwB)Cited by:[2nd item](https://arxiv.org/html/2610.27155#S1.I1.i2.p1.1),[§1](https://arxiv.org/html/2610.27155#S1.p4.1)\.
- Oumiguil and Nejmi \(2026\)L\. Oumiguil and A\. NejmiShort\-term pv plant power forecasting model using cnn\-gru with xgboost algorithm\.Scientific African,pp\. e03184\.Cited by:[§2\.2](https://arxiv.org/html/2610.27155#S2.SS2.p2.1)\.
- Penget al\.\(2026\)F\. Peng, X\. Tang, and M\. XiaoAttention\-enhanced cnn\-lstm with spatial downscaling for day\-ahead photovoltaic power forecasting\.Sensors26\(2\),pp\. 593\.Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p4.1)\.
- Rizk\-Allahet al\.\(2024a\)R\. M\. Rizk\-Allah, L\. M\. Abouelmagd, A\. Darwish, V\. Snasel, and A\. E\. HassanienExplainable ai and optimized solar power generation forecasting model based on environmental conditions\.PloS one19\(10\),pp\. e0308002\.Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p1.1),[§1](https://arxiv.org/html/2610.27155#S1.p4.1),[§1](https://arxiv.org/html/2610.27155#S1.p5.1)\.
- Rizk\-Allahet al\.\(2024b\)R\. M\. Rizk\-Allah, L\. M\. Abouelmagd, A\. Darwish, V\. Snasel, and A\. E\. HassanienExplainable ai and optimized solar power generation forecasting model based on environmental conditions\.PloS one19\(10\),pp\. e0308002\.Cited by:[§2\.4](https://arxiv.org/html/2610.27155#S2.SS4.p2.1),[Table 1](https://arxiv.org/html/2610.27155#S2.T1.5.10.1.1.1)\.
- Salehin \(2026\)M\. M\. U\. SalehinComparative analysis of a hybrid knn\-svm model versus individual ml techniques for solar power forecasting in bangladesh\.Hybrid Advances,pp\. 100598\.Cited by:[§2\.1](https://arxiv.org/html/2610.27155#S2.SS1.p1.1),[Table 1](https://arxiv.org/html/2610.27155#S2.T1.5.3.1.1.1)\.
- Salmanet al\.\(2024\)D\. Salman, C\. Direkoglu, M\. Kusaf, and M\. FahriogluHybrid deep learning models for time series forecasting of solar power\.Neural Computing and Applications36\(16\),pp\. 9095–9112\.Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p2.1)\.
- Yousufet al\.\(2026\)K\. B\. Yousuf, A\. Akter, H\. A\. Noor, A\. Hoque, and A\. AhmedA hybrid xgboost\-lstm model with physics\-informed features and uncertainty quantification for solar power forecasting\.Energy Reports15,pp\. 109068\.Cited by:[§2\.2](https://arxiv.org/html/2610.27155#S2.SS2.p2.1),[Table 1](https://arxiv.org/html/2610.27155#S2.T1.5.4.1.1.1)\.
- Yuet al\.\(2024\)J\. Yu, X\. Li, L\. Yang, L\. Li, Z\. Huang, K\. Shen, X\. Yang, X\. Yang, Z\. Xu, D\. Zhang,et al\.Deep learning models for pv power forecasting\.Energies17\(16\),pp\. 3973\.Cited by:[§1](https://arxiv.org/html/2610.27155#S1.p1.1),[§1](https://arxiv.org/html/2610.27155#S1.p3.1)\.Similar Articles
A Benchmark for Electrical Load Forecasting Across Grid Levels: Time-Series Transformers Outperform Established Methods
This paper presents a comprehensive benchmark for electrical load forecasting across grid levels, evaluating ten methods and finding that Transformer-based approaches consistently outperform established methods, reducing forecast error by 6.6–10.7%. The standard Transformer achieves superior performance over a novel flexible architecture, and the foundation model Chronos-2 shows competitive zero-shot performance on some datasets.
PARA-PV: Physics-Aware Retrieval-Augmented PV Prediction Based on Frozen Foundation Model and Distribution Shift Correction
Introduces PARA-PV, a physics-aware retrieval-augmented framework for photovoltaic power forecasting that uses a frozen Chronos time-series foundation model and distribution shift correction to improve accuracy and handle peak, ramping, and low-power conditions.
STCFormer: Adaptive Spatio-Temporal Modeling with Dynamic Cluster Transformer for Station-based Weather Forecasting
The paper introduces STCFormer, an adaptive spatio-temporal Transformer that dynamically clusters weather stations per temporal patch using a Cluster-Guided Attention Block combining local intra-cluster attention with global regional summaries, achieving the lowest 24-hour MSE across all eight temperature and wind forecasting tasks.
PeakFocus: Bridging Peak Localization and Intensity Regression via a Unified Multi-Scale Framework for Electricity Load Forecasting
PeakFocus proposes a unified multi-scale framework for electricity load peak forecasting that jointly handles peak timing localization and intensity regression, addressing limitations of existing two-stage methods.
HART: Hybrid Attention-RWKV Time series Foundation Model
论文提出 HART,一种混合注意力与 RWKV 的时间序列基础模型,通过交替注意力和 RWKV 模块解决非自回归多步预测中 RWKV-7 的长程退化问题(Placeholder Idling Decay)。仅用 36M 参数(约为 Toto-2.0-1B 的 1/28)在 GIFT-Eval 上达到可媲美的长程 MASE(0.752 vs 0.754)。