Abstract
Cross-site transfer learning is a promising approach to address data scarcity at newly deployed photovoltaic (PV) stations by leveraging knowledge from data-rich source sites. However, existing domain adaptation methods align feature representations without distinguishing physically meaningful causal relationships from site-specific spurious correlations, leading to negative transfer when local environmental conditions differ substantially between stations. This paper proposes CausalTransPV, a causal invariant representation learning framework that integrates explicit temporal causal discovery with selective domain alignment for cross-site PV power forecasting. The framework comprises three synergistic modules: (i) a multi-station temporal causal discovery module that jointly learns shared and station-specific causal graphs through differentiable acyclicity-constrained optimization with a cross-station invariance regularizer; (ii) a causal-guided disentangled encoder that decomposes representations into causal-invariant and site-specific subspaces using the discovered causal graph as a structural prior; and (iii) a causal-subspace transfer and prediction module that performs maximum mean discrepancy (MMD)-based domain alignment exclusively on the causal subspace. Experiments on the Desert Knowledge Australia Solar Centre (DKASC) multi-station dataset under varying target label ratios (0–50%) demonstrate that CausalTransPV achieves relative mean absolute error (MAE) reductions of 6.9–9.9% over the strongest baseline. Ablation studies, causal graph analysis, feature space visualization, and weather-conditioned case studies further validate the contribution of each component. These results suggest that causal-guided selective transfer offers an effective paradigm for reliable PV forecasting under data-scarce cross-site scenarios.
1. Introduction
1.1. Background and Motivation
The global imperative to achieve carbon neutrality and accelerate the energy transition has positioned solar photovoltaic (PV) power generation as one of the most rapidly expanding electricity sources worldwide, with cumulative installed capacity exceeding 1.6 TW by the end of 2023 [1]. This expansion directly contributes to the United Nations Sustainable Development Goal 7 on affordable and clean energy, while supporting Goal 13 on climate action by displacing fossil-fuel-based generation. However, the inherent volatility and intermittency of PV power output pose significant challenges to grid stability and dispatch operations [2,3]. Forecast errors necessitate maintaining fossil-fuel-based spinning reserves, undermining the carbon-reduction benefits of solar deployment, and inaccurate predictions can lead to renewable energy curtailment during supply–demand mismatches [4]. Accurate short-term PV power forecasting is therefore a critical enabler of sustainable energy systems—and, more broadly, of physically grounded renewable energy modeling spanning solar, wind, and green hydrogen production [5]—motivating extensive research into more effective forecasting methodologies.
1.2. Deep Learning Approaches for PV Power Forecasting
Deep learning has gradually become the dominant paradigm for PV power forecasting due to its end-to-end feature learning and powerful nonlinear representation capabilities. Recurrent neural networks and their variants—long short-term memory (LSTM) [6] and gated recurrent units (GRUs) [7]—effectively capture temporal dependencies through gating mechanisms and have been widely adopted as baseline models for solar time series prediction. Convolutional neural networks (CNNs) provide complementary strengths in extracting multi-scale local features from time windows [8]. Recognizing the limitations of single-architecture models, researchers have proposed CNN–LSTM hybrid architectures that combine spatial feature extraction with sequential modeling; Agga et al. [9] demonstrated that such hybrids consistently outperform their standalone counterparts across multiple PV datasets. Subsequent refinements include dual-stream architectures with self-attention [10], attention-augmented CNN–LSTM for day-ahead forecasting [11], and CNN–LSTM autoencoders that reduce training time while improving accuracy [12].
More recently, Transformer-based models have been introduced to the PV domain, leveraging multi-head self-attention for global temporal dependency modeling with greater parallelization efficiency. Salman et al. [13] showed that CNN–LSTM–Transformer hybrids achieve the lowest error rates under optimized configurations, while the integration of signal decomposition techniques with Transformer encoders has yielded 30–40% root mean squared error (RMSE) reductions over non-decomposition baselines (e.g., standalone LSTM and GRUs) on a single-station dataset at 5 min resolution under a semi-arid climate [14]. General-purpose time series Transformers such as PatchTST [15] and iTransformer [16] have also demonstrated competitive performance on energy forecasting benchmarks. Despite these architectural advances, the vast majority of existing deep learning models implicitly assume that sufficient historical data from the target PV station is available for training. When applied to newly constructed stations, small-scale distributed installations, or stations in remote areas that lack adequate operational records, even the most sophisticated architectures suffer from significant performance degradation due to overfitting on limited samples [17,18].
1.3. Transfer Learning for Cross-Site PV Forecasting
Transfer learning offers a natural solution to this data scarcity problem by enabling knowledge transfer from data-rich source PV stations to data-poor target stations. Existing approaches can be broadly categorized into two paradigms. The first is fine-tuning-based transfer, where deep models are pretrained on source stations and selected layers are adapted to the target station. Bak et al. [19] demonstrated that Transformer-based models benefit from layer-wise freezing strategies, with more aggressive freezing preferred when target data is extremely scarce, while Tang et al. [20] proposed segmented fine-tuning of only the backend mapping layers, achieving 20–70% accuracy improvements. Similar results have been reported across diverse geographic contexts, from cross-continental transfers between Korea and Germany [21] to within-country adaptation [22].
The second paradigm involves domain adaptation methods that explicitly align feature distributions between source and target domains. Ilias et al. [23] benchmarked several unsupervised domain adaptation methods for PV forecasting, finding that the domain-adversarial neural network (DANN) [24] consistently outperforms direct transfer. Liao et al. [25] combined physics-informed priors with the DANN to enhance forecasting for newly built plants. Gao et al. [26] applied adversarial discriminative domain adaptation for zero-label solar radiation prediction across Japanese cities, and semi-supervised teacher–student frameworks have achieved 5–11% accuracy gains with as little as 20% target labels [27]. Multi-source strategies have also been explored: Zheng et al. [28] proposed robust autoregressive transfer for distributed-regional PV forecasting, while Depoortere et al. [18] introduced SolNet, which pretrains on synthetic irradiance data to provide zero-shot initial models. However, all existing transfer learning methods for PV forecasting share a fundamental limitation: they align feature representations without distinguishing invariant physical relationships from site-specific spurious correlations. For instance, a source station surrounded by buildings may exhibit a strong correlation between wind direction and power output due to shading effects, whereas this association does not hold at an open-terrain target station. Aligning such spurious patterns without distinction can introduce negative transfer, ultimately degrading rather than improving prediction performance at the target site.
1.4. Causal Methods for Time Series and PV Forecasting
Recent advances in causal inference and causal representation learning provide a principled perspective to address this limitation. The causal invariance principle holds that causal mechanisms—specifically, the conditional distribution , where denotes the causal parents of target variable Y—tend to remain stable across different environments, even when marginal distributions and spurious correlations shift [29,30,31]. In the time series domain, causal discovery methods have evolved from classical Granger causality [32] and constraint-based approaches such as PCMCI (Peter–Clark Momentary Conditional Independence) [33] to differentiable continuous optimization methods. NOTEARS [34] reformulated the combinatorial directed acyclic graph (DAG) learning problem as continuous constrained optimization, enabling gradient-based causal graph learning, while DAGMA [35] substantially improved computational efficiency through a log-determinant acyclicity characterization. CUTS+ [36] further extended differentiable causal discovery to high-dimensional irregular time series via neural Granger causality and graph neural networks.
Building on discovered causal structures, causal representation learning has become a powerful approach for improving forecasting robustness. CoST [37] learns disentangled seasonal–trend representations from a causal perspective, yielding an average 21% mean squared error (MSE) reduction on multivariate benchmarks. Caformer [38] constructs environment-specific causal graphs and applies backdoor adjustment to mitigate confounding. CReP [39] decomposes latent factors into causal, effectual, and non-causal components with independence guarantees. The connection between causal invariance and domain adaptation has also been theoretically established: Rojas-Carulla et al. [29] demonstrated that selecting features with invariant conditional distributions enables robust causal transfer, while Li et al. [40] specifically addressed transferable time series forecasting under causal conditional shift by aligning Granger causal graphs across domains. Despite these advances, the practical integration of causal discovery with domain-adaptive transfer learning for PV forecasting has received minimal attention.
Within the PV forecasting domain itself, the explicit application of causal methods remains in its early stages. Zhang et al. [41] constructed a dynamic Bayesian network encoding directed causal relationships among meteorological variables and inverter output power, using the resulting graph structure to constrain dependency learning for short-to-medium-term forecasts. Sun et al. [42] adopted a Bayesian structural time series framework with a causal inference perspective to assess how system changes causally affect power output. Wang et al. [43] proposed an explainable directional representation method that reveals directional causal effects of meteorological variables on PV output. The work most closely related to our proposal is CEDAN [44], which addresses zero-label PV power prediction for newly built stations by learning causal mechanisms invariant across sites through attention-based domain adaptation. However, CEDAN does not perform explicit causal graph discovery—its causal structure is implicitly captured by attention weights, which lack the interpretability and theoretical guarantees of a formally discovered causal graph. Moreover, it does not disentangle causal from spurious features in the representation space, instead relying on end-to-end attention to handle distribution shifts.
Table 1 summarizes representative methods across the three research lines and their respective limitations, highlighting the positioning of the present work.
Table 1.
Summary of representative methods for PV power forecasting.
1.5. Research Gaps and Contributions
Although considerable progress has been made in each of the aforementioned research lines, existing methods still exhibit the following limitations when addressing cross-site PV power forecasting. First, regarding feature alignment in transfer learning, current domain adaptation methods for PV forecasting—including the DANN, maximum mean discrepancy (MMD)-based alignment, and DeepCORAL—perform distribution matching over the entire feature space without distinguishing causal from spurious features, rendering them vulnerable to negative transfer when site-specific spurious correlations differ significantly between source and target stations. Second, regarding causal structure exploitation, although causal discovery and causal representation learning have demonstrated strong potential for improving forecasting robustness in general time series tasks, they have not been integrated with cross-site transfer learning in the PV domain; existing causal PV works either lack explicit graph discovery (CEDAN) or do not address the transfer setting (dynamic Bayesian-network-based approaches). Third, regarding representation disentanglement, no existing work provides a mechanism to decompose PV time series representations into a causal-invariant subspace encoding universal physical mechanisms (e.g., irradiance → power) and a site-specific subspace capturing local factors (e.g., microclimate effects, panel degradation, and terrain-induced correlations), which is essential for principled selective transfer. To the best of our knowledge, no prior work jointly addresses explicit causal graph discovery, causal–spurious representation disentanglement, and selective domain alignment for cross-site PV power forecasting.
To address these gaps, this paper proposes CausalTransPV, a causal invariant representation learning framework for cross-site PV power forecasting. The main contributions are summarized as follows:
- 1.
- We propose CausalTransPV, which is, to the best of our knowledge, the first framework that integrates explicit temporal causal discovery with transfer learning for cross-site PV power forecasting, addressing the negative transfer problem caused by site-specific spurious correlations.
- 2.
- To discover interpretable causal structures across heterogeneous stations, we design a multi-station temporal causal discovery module based on DAGMA-style differentiable optimization with a cross-station invariance regularizer, jointly learning shared and station-specific causal graphs as structural priors.
- 3.
- To disentangle transferable mechanisms from spurious correlations, we introduce a causal-guided disentangled encoder that decomposes representations into causal-invariant and site-specific subspaces, with a cross-covariance independence penalty ensuring minimal information leakage.
- 4.
- To achieve principled selective transfer, we design a causal-subspace alignment module that performs MMD exclusively on the causal subspace. Extensive experiments on the DKASC dataset under multiple transfer settings demonstrate consistent improvements over state-of-the-art baselines, with MAE reductions of 6.9–10.5% over the strongest baseline.
2. Methodology
2.1. Overall Framework
The overall architecture of the proposed CausalTransPV framework is illustrated in Figure 1. The framework follows a “causal discovery–disentangled encoding–selective transfer” paradigm, designed to address the negative transfer problem caused by indiscriminate feature alignment in cross-site PV power forecasting.
Figure 1.
Overall architecture of the proposed CausalTransPV framework. The framework integrates three modules: multi-station temporal causal discovery (MSTCD) for learning shared and station-specific causal graphs; causal-guided disentangled encoder (CGDE) for decomposing representations into causal-invariant and site-specific subspaces; and causal-subspace transfer and prediction (CSTP) for selective domain alignment and forecasting. In the figure, , , denote station-specific causal adjacency matrices for Stations 1–3, blue arrows indicate data flow, and red dashed arrows indicate loss supervision signals.
Given multi-station PV power and meteorological data from S source stations and one target station, the framework proceeds in three stages. First, the multi-station temporal causal discovery (MSTCD) module takes multivariate time series from all source stations as input and jointly learns station-specific causal graphs via a DAGMA-style differentiable optimization framework. A cross-station invariance regularizer encourages the emergence of a shared causal graph skeleton that captures universal physical mechanisms (e.g., irradiance → power), while retaining station-specific edges that reflect local environmental factors.
Second, the causal-guided disentangled encoder (CGDE) leverages as a structural prior to decompose time series representations into two complementary subspaces: a causal-invariant subspace that encodes features governed by shared causal mechanisms, and a site-specific subspace that captures residual patterns unique to each station. A dual-branch temporal convolutional network (TCN) architecture implements this disentanglement, with a cross-covariance independence penalty ensuring minimal information leakage between subspaces.
Third, the causal-subspace transfer and prediction (CSTP) module performs domain alignment selectively on only the causal subspace via maximum mean discrepancy (MMD), avoiding the transfer of spurious site-specific associations. A lightweight Transformer prediction head then maps the aligned causal representations to multi-step power forecasts. The entire framework is trained end-to-end with a composite loss function that jointly optimizes causal discovery, representation disentanglement, selective alignment, and prediction accuracy.
2.2. Problem Formulation
Consider S source PV stations with abundant labeled data and one target station with limited or no labeled data. Each station s provides a multivariate time series , where is the number of time steps and D is the number of variables, including PV power output and meteorological features such as global horizontal irradiance (GHI), diffuse horizontal irradiance (DHI), ambient temperature, relative humidity, and wind speed. The forecasting target at each station is the power output sequence over a future horizon H, given a lookback window of length L:
where denotes the overall forecasting model parameterized by , and is the multivariate input window.
The cross-site transfer learning problem is formalized as follows. Let denote the joint distribution of features and power output at station s. Due to geographic, climatic, and equipment heterogeneity, source and target distributions generally differ: . Under the causal invariance assumption, we decompose the feature space into causal features and spurious features :
The goal of CausalTransPV is to learn a representation that captures only the causal-invariant features, such that a predictor trained on source stations generalizes robustly to the target station without being contaminated by site-specific spurious correlations.
2.3. Multi-Station Temporal Causal Discovery (MSTCD)
The first module discovers the causal structure underlying PV power generation across multiple stations. In PV systems, certain causal relationships are universally governed by physical laws (e.g., GHI predominantly drives power output), while others are site-specific (e.g., wind direction affects power only at stations with directional shading). The MSTCD module jointly learns these two types of causal relationships through a differentiable optimization framework augmented with a cross-station invariance regularizer.
For each source station s, a weighted adjacency matrix is parameterized as a learnable matrix, where represents the causal influence strength from variable j to variable i. The temporal causal relationship is modeled through a nonlinear structural equation:
where captures causal effects at lag (the parenthesized superscript denotes the lag index, not exponentiation), is a two-layer multilayer perceptron with LeakyReLU activation applied element-wise after the linear mixing, and is an independent noise term. Specifically, is assumed to be independently and identically distributed (i.i.d.) across time steps, with mutually independent components across the D variables and across stations, and with constant variance (homoskedasticity). We acknowledge that these are simplifying assumptions: in practice, meteorological residuals may exhibit temporal autocorrelation, seasonal heteroskedasticity, or common-mode components (e.g., regional weather fronts affecting all stations simultaneously). However, prior work on DAGMA-style differentiable causal discovery [35] has demonstrated empirical robustness under moderate violations of the i.i.d. noise assumption. Moreover, the 5 min sampling resolution and the inclusion of multiple lagged terms () help to absorb short-range temporal correlations in the residuals. Investigating the impact of non-i.i.d. noise on causal graph recovery in the PV context is an interesting direction for future work. Note that the matrix–vector product performs a weighted linear combination of all variables at lag for each target variable, encoding the instantaneous and lagged causal effects. We set (corresponding to 30 min at 5 min resolution). For notational compactness, the aggregate adjacency matrix is defined as .
Two remarks on this formulation are in order. First, the summation in Equation (3) starts from , allowing for instantaneous dependencies among variables within the same time step (e.g., GHI and DHI are measured simultaneously but GHI physically determines the diffuse component). Because instantaneous edges can form cycles, the DAG constraint on the contemporaneous slice is essential for ensuring a well-defined causal ordering within each time step. For lagged terms (), the temporal arrow already prevents cycles when the graph is unrolled over time; imposing the DAG constraint on the aggregate matrix is therefore a conservative choice that additionally prevents “summary cycles” in which a pair of variables appear to mutually cause each other when lag information is collapsed. The absolute-value aggregation measures total causal influence magnitude regardless of sign. We acknowledge that this is a stronger restriction than strictly necessary and may exclude valid delayed mutual feedback structures (e.g., a variable j causes i at lag 1 while i causes j at lag 3); relaxing this to enforce acyclicity only on while allowing for cyclic summary graphs is a promising direction for future work. Second, for time steps , insufficient lagged observations are available; we therefore discard the first time steps from the loss computation in Equation (7), effectively treating them as a burn-in period.
The learned adjacency matrix must encode a directed acyclic graph (DAG). Following DAGMA [35], we adopt the log-determinant acyclicity characterization, which provides superior numerical stability compared to the matrix exponential formulation in NOTEARS [34]. Specifically, DAGMA reformulates the combinatorial DAG constraint as a smooth, differentiable equality constraint based on the log-determinant of an M-matrix:
where is a scaling parameter with initial value that is progressively decreased along the DAGMA path-following schedule to tighten the acyclicity constraint, ⊙ denotes the element-wise (Hadamard) product, and is the identity matrix. This constraint equals zero if and only if the graph encoded by is acyclic, enabling standard gradient-based optimization via an augmented Lagrangian scheme.
To distinguish universally shared causal relationships from station-specific ones, we introduce a cross-station invariance regularizer. The key observation is that if a causal edge reflects a universal physical mechanism, it should be consistently present across all source stations. Conversely, edges appearing in only a subset of stations are likely driven by local factors. We compute a shared causal skeleton by averaging the sigmoid-activated adjacency matrices:
where denotes the element-wise sigmoid function. The invariance regularizer penalizes the deviation of individual station graphs from this consensus:
The complete MSTCD optimization objective combines data fitting, acyclicity enforcement, sparsity regularization, and cross-station invariance:
where is reconstructed via Equation (3), is the acyclicity penalty coefficient that is progressively increased following the DAGMA augmented Lagrangian schedule, controls sparsity, and controls the invariance strength. The output of this module is a shared causal graph and station-specific graphs .
2.4. Causal-Guided Disentangled Encoder (CGDE)
With the shared causal graph discovered by MSTCD, the next challenge is to learn time series representations that separate causal-invariant features from site-specific spurious features. Existing disentangled representation methods (e.g., -variational autoencoder) perform unsupervised disentanglement without structural guidance, offering no guarantee that the learned factors correspond to causal versus spurious distinctions. The CGDE module addresses this by using as an explicit structural prior to guide the disentanglement process.
The shared causal graph is first converted into a binary causal mask that identifies causally supported variable interactions:
where is a threshold hyperparameter (set to 0.3; see Section 3.7 for the selection rationale). We acknowledge that this hard thresholding step introduces a potential source of error: if contains noisy edge weights near , false positives (spurious edges admitted to the causal set) or false negatives (genuine causal edges excluded) may occur. Three design choices mitigate this risk: (i) the causal mask is recomputed every 10 epochs during Phase 2 joint training, allowing the graph to self-correct as representation learning refines the adjacency weights; (ii) the sparsity regularizer suppresses weak edges, pushing most weights away from the threshold boundary; and (iii) the sensitivity analysis in Section 3.7 shows that performance degrades gracefully for , indicating moderate robustness to the threshold choice. Nevertheless, exploring soft-mask alternatives (e.g., Gumbel-Softmax relaxation or continuous attention-weighted masking) that avoid the hard decision boundary is a worthwhile direction for future work. A causal variable set is then derived to identify variables participating in at least one shared causal relationship.
We note that restricting the causal branch to is a deliberate design choice to ensure subspace purity rather than an information bottleneck. Variables excluded from (e.g., wind speed, wind direction, humidity) are not discarded from the model; they remain fully accessible to the site-specific branch (Equation (10)), which processes all D variables without masking. The risk that MSTCD may miss a genuinely causal relationship is mitigated by three factors: (i) the causal mask is recomputed every 10 epochs during joint training, allowing initially missed edges to be recovered as the causal graph refines; (ii) the ablation study (Table 2) shows that a random mask degrades MAE by 15.9%, confirming that the learned mask captures meaningful structure; and (iii) even if a borderline causal variable is excluded from , its information is still available through for target-side prediction when labeled data is available ().
Table 2.
Ablationstudy results on Yulara (). Each variant removes or replaces one component of the full CausalTransPV framework. MAE denotes the relative MAE increase over the full model. Bold row indicates the full model for reference. ↓ indicates lower is better; ↑ indicates higher is better.
The encoder adopts a dual-branch architecture based on dilated causal TCNs, chosen for their efficiency in temporal feature extraction and natural compatibility with causal ordering constraints. The architecture of a single TCN residual block is shown in Figure 2. Each block contains two layers of dilated causal convolutions with exponentially increasing dilation factors, enabling the receptive field to grow exponentially with depth while maintaining strict temporal ordering.
Figure 2.
Architecture of the temporal convolutional network (TCN) used in the dual-branch encoder. Left: the overall TCN structure consisting of stacked residual blocks with exponentially increasing dilation factors (). Middle: a single residual block containing two basic layers (dilated causal convolution, weight normalization, ReLU, and dropout) with an optional convolution for residual matching. Right: the dilated causal convolution layer with receptive field size . In the figure, ** denotes the exponentiation operator for computing dilation factors, and ReLU* indicates that LeakyReLU is used in the actual implementation.
The causal branch processes the input with the causal mask applied at the input mixing layer, ensuring that only variable pairs with are permitted to interact:
where is the causal representation dimension. Specifically, the first convolutional layer applies a masked weight matrix (element-wise product, not matrix multiplication), where is the input-layer causal mask derived from . Its construction proceeds as follows: for each input channel , the column is set to (all ones) if and (all zeros) otherwise. This ensures that the input mixing convolution—whose weight tensor has shape and reduces to a matrix at each spatial position—only receives contributions from causally relevant variables. Columns corresponding to variables outside are zeroed out and interactions between causally unconnected variable pairs are suppressed. This structural constraint ensures that encodes only information flowing through shared causal pathways.
The site-specific branch has an identical TCN architecture but operates without the causal mask, allowing it to capture all residual patterns not constrained by the shared causal graph:
where is set smaller than to reflect the prior that causal features should carry the primary predictive signal. Both branches use residual blocks with kernel size and dilation factors , yielding an effective receptive field of 60 time steps (5 h at 5 min resolution). We note that this TCN receptive field is intentionally smaller than the full lookback window (8 h). The TCN branches serve as local temporal feature extractors that capture fine-grained causal dynamics within their receptive field. Information from the earlier portion of the input window (time steps 1 through ) is subsequently aggregated by the downstream Transformer prediction head (Equation (14)), whose multi-head self-attention mechanism operates over the full sequence length L and can attend to any position in the encoded representation. This two-stage design—local TCN extraction followed by global Transformer aggregation—allows the framework to exploit both fine-grained causal patterns and longer-range temporal context.
To ensure that and capture complementary rather than redundant information, a cross-covariance independence penalty is imposed:
where B is the batch size, and are the means computed over both the batch and temporal dimensions, and denotes the Frobenius norm. Minimizing drives the cross-covariance matrix toward zero, encouraging statistical independence between the two subspaces.
2.5. Causal-Subspace Transfer and Prediction (CSTP)
The final module performs domain alignment and prediction. The key design principle is selective alignment: only the causal-invariant subspace is aligned across source and target stations, while the site-specific subspace is explicitly excluded from alignment. This prevents spurious correlations unique to source stations from being forced onto the target domain.
The rationale for this design is illustrated in Figure 3. Before alignment, source and target distributions are separated in both the causal and site-specific subspaces. Full-feature MMD indiscriminately aligns both subspaces, destroying the site-specific structure that the predictor needs to accommodate. In contrast, CausalTransPV restricts alignment to the causal subspace, where distributions should be similar according to the causal invariance principle, while leaving the site-specific subspace free to capture station-dependent characteristics.
Figure 3.
Conceptual illustration of selective domain alignment. (a) Before alignment: source and target distributions are separated in both the causal subspace and the site-specific subspace . (b) Full-feature MMD: indiscriminate alignment forces both subspaces to mix, destroying site-specific structure. (c) Causal MMD (ours): alignment is applied exclusively to , producing well-mixed causal representations while preserving the natural separation in .
Let denote the causal representations from the S source stations and denote those from the target station. The causal-subspace MMD loss aligns these distributions in a reproducing kernel Hilbert space using a multi-kernel Gaussian radial basis function kernel:
where denotes the set of kernel bandwidths and is the unbiased empirical estimate of the squared MMD:
where is the Gaussian radial basis function kernel .
The aligned causal representation is fed into a lightweight Transformer prediction head for multi-step power forecasting. The prediction head consists of two Transformer encoder layers with multi-head self-attention (, ) and position-wise feed-forward networks:
where denotes sinusoidal positional encoding. The final prediction is obtained by applying a linear projection to the last H time steps of the encoded sequence:
where denotes the last H rows of , is a learnable weight vector, and is a bias term; the projection is applied independently to each time step, yielding one scalar prediction per step.
We note that the prediction head uses only and does not incorporate . This design choice ensures that the predictor relies exclusively on causal-invariant features during transfer. When target-station labels are available (), the site-specific subspace could in principle contribute additional predictive information; we empirically evaluate this alternative in the ablation study (Section 3.4).
The prediction loss is the mean squared error (MSE) over the forecast horizon:
where B denotes the batch size.
2.6. Training Strategy and Loss Function
The entire CausalTransPV framework is trained end-to-end with a composite loss:
where each term and its role are summarized in Table 3. The symbols , , , , and denote the respective loss weights.
Table 3.
Summary of loss terms in the CausalTransPV composite loss.
Due to the interdependence between causal graph quality and representation learning, a two-phase training procedure is adopted. In Phase 1 (epochs 1–50), only the MSTCD module is optimized to learn initial causal graphs from source station data, with the acyclicity penalty coefficient progressively increased following the DAGMA augmented Lagrangian schedule. In Phase 2 (epochs 51–200), all modules are jointly trained using the full composite loss in Equation (17); the causal mask is recomputed every 10 epochs to allow the causal graph to refine as the encoder improves.
The optimizer is AdamW with an initial learning rate of , weight decay of , and a cosine annealing schedule with a minimum learning rate of . The batch size is . The loss weights are set to , , , and ; the sensitivity of these hyperparameters is analyzed in Section 3.7.
The framework supports three transfer settings: (A) multi-source transfer with target label ratios ; (B) single-source pairwise transfer across all station combinations; and (C) few-shot transfer with one week to three months of target data. For the zero-label setting (), no target-station labels are available during training; accordingly, all hyperparameter tuning and model selection (early stopping) are performed exclusively on the source-station validation set (the 20% held-out split from source data in Table 4). This ensures that no target-domain supervision leaks into the training or selection process.
Table 4.
Summary of the five DKASC stations used in the experiments.
2.7. Evaluation Metrics
To comprehensively evaluate prediction accuracy, four metrics are employed: mean absolute error (MAE), root mean squared error (RMSE), mean absolute percentage error (MAPE), and the coefficient of determination ():
where and are the ground truth and predicted power output at time step t, respectively, is a small constant to avoid division by zero, and is the mean of the ground-truth values. Lower MAE, RMSE, and MAPE and higher indicate better performance.
3. Experiments
3.1. Dataset Description
Experiments are conducted on the Desert Knowledge Australia Solar Centre (DKASC) dataset, a publicly available multi-station PV monitoring dataset collected in Alice Springs, Australia. DKASC hosts over 40 PV systems with diverse panel technologies, orientations, and capacities, and provides synchronized meteorological and power output measurements at 5 min intervals. This multi-station setting with shared climate but heterogeneous local conditions makes DKASC an ideal testbed for cross-site transfer learning.
We select five stations spanning different PV technologies and capacities to construct the transfer scenarios, as summarized in Table 4. Stations 1–3 serve as source stations with full training data while Stations 4 and 5 serve as target stations with varying levels of data availability. The selected input variables () are: active power (kW), GHI (W/m2), DHI (W/m2), ambient temperature (°C), relative humidity (%), wind speed (m/s), and wind direction (°). Data from 2020–2022 are used for training and validation (80%/20% split), and data from 2023 are reserved for testing. Only daylight hours (7:00–19:00 local time) are retained, with nighttime zero-output records excluded. Missing values are imputed via k-nearest neighbors with , and outliers are removed using the interquartile range criterion. Min–max normalization is applied with parameters estimated from the training set only.
The transfer scenarios are designed to evaluate cross-technology generalization: source stations use crystalline silicon panels while target stations use thin-film technologies, introducing significant distribution shifts in the power–irradiance relationship due to differing temperature coefficients, spectral responses, and degradation characteristics. The forecasting task is to predict the next steps (2 h) given the past steps (8 h) of multivariate input. All MAE and RMSE values reported hereafter are in kilowatts (kW), computed on the original (denormalized) power output scale.
3.2. Baseline Methods
To evaluate CausalTransPV, we compare against seven baseline methods spanning three categories.
No-transfer baselines (trained only on target station data): (1) LSTM: a two-layer LSTM with 128 hidden units; (2) PatchTST [15]: a Transformer-based time series model that segments input into subseries-level patches.
Transfer learning baselines (pretrained on source stations, adapted to target): (3) Fine-tune: a PatchTST model pretrained on source stations with the last two Transformer layers fine-tuned on target data; (4) DANN [24]: a domain-adversarial neural network with a gradient reversal layer; (5) MMD-Transfer: a PatchTST backbone with multi-kernel MMD loss over the full feature space; (6) DeepCORAL [45]: aligns second-order statistics (covariance) of source and target representations.
Causal baseline: (7) CEDAN [44]: uses attention mechanisms to approximate causal generation processes and applies domain adaptation for zero-label PV prediction. We use the official code released by the authors with hyperparameters tuned on our validation set.
All baselines share the same input features, lookback window (), and prediction horizon (). Transfer baselines are pretrained on the same three source stations as CausalTransPV. Hyperparameters for each baseline are tuned via grid search on the validation set. Each experiment is repeated five times with different random seeds, and we report the mean ± standard deviation. Statistical significance between CausalTransPV and the second-best baseline is assessed using a paired t-test across the five runs.
3.3. Main Results
Table 5 and Table 6 present the main results under the multi-source transfer setting with varying target label ratios () for the two target stations, respectively.
Table 5.
Main results on target station Yulara (thin-film CdTe, 10 kW) under multi-source transfer (3 source → 1 target). Best results are in bold and second best are underlined. Values are reported as mean ± standard deviation over 5 runs. ‡ indicates statistically significant improvements of CausalTransPV over the second-best method at (paired t-test). ↓ indicates lower is better; ↑ indicates higher is better.
Table 6.
Main results on target station Kaneka (thin-film a-Si, 3 kW) under multi-source transfer (3 source → 1 target). Notation follows Table 5. ↓ indicates lower is better; ↑ indicates higher is better. † and ‡ indicate statistically significant improvements at and , respectively.
CausalTransPV achieves the best or near-best performance across all settings, with statistically significant improvements () over the second-best method in nearly all metrics. Under the zero-label condition (), where the model relies entirely on transferred knowledge, CausalTransPV attains an of 0.910 on Yulara (Table 5) and 0.906 on Kaneka (Table 6), exceeding the second-best method CEDAN by 1.9 and 2.1 percentage points, respectively. The relative MAE reductions over CEDAN range from 6.9% (Kaneka, : ) to 9.9% (Yulara, : ) across all settings and both stations, confirming that restricting alignment to the causal subspace yields a more reliable transfer signal than attention-based causal approximation.
An interesting pattern emerges at on Kaneka (Table 6), where CausalTransPV and CEDAN achieve nearly identical MAPE (10.55% vs. 10.52%), with the difference not reaching statistical significance (). With abundant target labels, the direct supervision signal becomes strong enough to partially compensate for indiscriminate alignment, reducing the relative advantage of causal disentanglement on percentage-based metrics. Nevertheless, CausalTransPV retains statistically significant advantages on MAE, RMSE, and even at this label ratio (), suggesting that the causal subspace still provides complementary information beyond what target supervision alone can capture.
Across all settings, the three conventional domain adaptation methods—DANN, MMD-Transfer, and DeepCORAL—perform within a narrow band of each other (typically <2% relative MAE difference), despite employing fundamentally different alignment strategies (adversarial, kernel-based, and correlation-based). This convergence suggests that the choice of alignment mechanism matters less than what features are being aligned, which is precisely the distinction that CausalTransPV introduces. The no-transfer baselines (LSTM, PatchTST) consistently trail all transfer methods by a substantial margin, confirming that cross-site knowledge transfer remains essential under data scarcity regardless of model capacity.
3.4. Ablation Study
To validate the contribution of each module, we conduct ablation experiments by systematically removing or replacing individual components. Table 2 presents the results on Yulara under the setting.
The two ablations with the largest impact are removing the disentangled encoder (w/o CGDE, MAE = +14.2%) and replacing the learned causal mask with a random binary mask (MAE = +15.9%). Their similar magnitude of degradation is noteworthy: the random mask variant retains the dual-branch architecture but loses meaningful structural guidance while the w/o CGDE variant retains the learned causal graph but feeds undifferentiated representations into alignment. Both fail for the same underlying reason: without proper separation of causal and spurious features, MMD alignment pulls site-specific patterns toward a false consensus.
An instructive comparison arises between w/o MSTCD and full-feature MMD. The former removes causal discovery entirely but still maintains the dual-branch structure (with a randomly initialized, fixed mask), while the latter preserves the full causal discovery pipeline but aligns all features rather than only the causal subspace. Full-feature MMD achieves a lower MAE (0.498 vs. 0.505 kW) owing to its intact causal graph, yet its RMSE is comparable (0.703 vs. 0.710 kW), indicating that aligning spurious features introduces variance in peak-error predictions even when the average error improves. This comparison reinforces a key design principle: having a good causal graph is necessary but not sufficient—the graph must be operationalized through selective alignment to deliver consistent gains.
The two regularizer ablations (w/o and w/o ) produce more moderate degradation (MAE = +6.9% and +4.2%, respectively), consistent with their role as auxiliary constraints rather than primary architectural components. Removing causes the per-station causal graphs to diverge, weakening the shared skeleton that guides disentanglement. Removing allows for partial information leakage between the two encoder branches, diluting the purity of the causal subspace.
3.5. Causal Graph Analysis
To verify that the discovered causal structures are physically interpretable, we visualize the shared causal graph and examine station-specific deviations. Figure 4 presents the learned graphs, where edge widths are proportional to the learned weights in the adjacency matrix.
Figure 4.
Discovered causal graphs. (a) Shared causal graph showing edges present across all source stations (edge width proportional to weight). (b–d) Station-specific graphs for Stations 1–3, with shared edges in blue and station-specific edges in red. Variable abbreviations: P = active power, G = GHI, D = DHI, T = temperature, H = humidity, Ws = wind speed, Wd = wind direction.
The shared graph recovers the expected physical driving chain of PV power generation. The two strongest edges are GHI → Power (weight 0.92) and DHI → Power (weight 0.71), reflecting the fundamental fact that global and diffuse solar irradiance are the primary energy inputs to PV conversion. Temperature → Power appears as a moderate shared edge (weight 0.58), consistent with the well-documented negative temperature coefficient of crystalline silicon cells: cell efficiency decreases by approximately 0.4–0.5% per degree Celsius above the standard test condition of 25. The model also identifies GHI → Temperature (weight 0.64), which captures that the physical heating effect of solar radiation on ambient air—shortwave absorption by the ground surface elevates near-surface air temperature during high-irradiance periods, making this a genuine causal pathway rather than a spurious correlation. Two weaker shared edges, GHI → DHI (0.38) and DHI → Temperature (0.33), further encode the radiative coupling among atmospheric variables.
Station-specific edges reveal site-dependent environmental coupling that should not be transferred across sites. Station 1 (Site 1A) exhibits a Wind Direction → Power edge (weight 0.45) absent in other stations, plausible for a rooftop or building-adjacent installation where certain wind directions coincide with shadow patterns cast by nearby structures at specific solar angles. Station 3 (Eco Saver) shows a notably stronger Humidity → Power edge (weight 0.52), which could reflect local factors, such as proximity to irrigated vegetation, that elevate microclimate humidity and promotes soiling or dew formation on panel surfaces. If these site-specific relationships were naively transferred to an open-terrain target station, they would introduce spurious predictors that degrade forecasting accuracy.
The resulting causal variable set contains four of the seven input variables—GHI, DHI, temperature, and power—while wind speed, wind direction, and humidity are excluded from the shared structure. This partition aligns with the domain understanding that irradiance and temperature govern PV output through universal physical mechanisms, whereas wind and humidity effects are mediated by local installation conditions (panel orientation, surrounding terrain, and soiling susceptibility) and therefore vary across sites.
3.6. Feature Space Visualization
To illustrate the effect of causal-guided disentanglement and selective alignment, we use t-distributed stochastic neighbor embedding (t-SNE) to project the learned representations into two dimensions. The t-SNE perplexity is set to 30, and 2000 samples are randomly drawn from each station for visualization. Figure 5 shows the projections of and for source and target stations under the setting.
Figure 5.
t-SNE visualization of learned representations under the zero-label setting (, perplexity = 30). (a) Causal representations : source and target distributions are well-aligned after selective MMD alignment. (b) Site-specific representations : source and target distributions remain clearly separated, preserving station-specific characteristics. (c) Representations from the full-feature MMD ablation variant: indiscriminate alignment of all features leads to distorted target clusters. Different markers denote different source stations.
In the causal subspace (Figure 5a), source and target representations overlap substantially after selective MMD alignment. Notably, representations from the three source stations also intermix with each other, confirming that the shared causal mechanisms are consistent across stations despite differences in panel technology and capacity. This overlap is precisely what enables zero-label transfer: the predictor trained on aligned source representations generalizes to the target without requiring any target supervision.
The site-specific subspace (Figure 5b) presents the complementary picture. Source and target representations form clearly distinct clusters, which is the desired outcome rather than a failure mode—site-specific patterns encode local installation conditions that should not be transferred. The separation among source stations (indicated by different markers) is also visible, reflecting genuine differences in panel orientation, local shading, and microclimate.
The full-feature MMD variant (Figure 5c) illustrates the consequence of ignoring this distinction. Forcing all features to align pulls target points toward source clusters in an unnatural manner, collapsing the site-specific structure that the predictor needs to accommodate. This visual evidence directly corroborates the ablation finding in Table 2: indiscriminate alignment degrades MAE by 10.2% relative to selective alignment, because the alignment loss overwrites target-specific information that is necessary for accurate prediction.
3.7. Sensitivity Analysis
We investigate the sensitivity of CausalTransPV to six key hyperparameters: the invariance weight , independence weight , alignment weight , causal mask threshold , causal representation dimension , and site-specific representation dimension . Each parameter is varied while the others are held at their default values. Results on Yulara () are reported in Table 7. We note that this one-at-a-time analysis does not capture potential interactions between parameters (e.g., and may interact because stronger invariance regularization alters the distribution of , thereby affecting the optimal threshold); exploring such interactions is left for future work.
Table 7.
Sensitivity analysis on Yulara (). Each hyperparameter is varied individually with the others fixed at default values (marked by *). Bold values indicate the best performance for each parameter. ↓ indicates lower is better; ↑ indicates higher is better.
The four parameters differ considerably in their influence on model performance. The alignment weight exhibits the widest performance swing (MAE from 0.452 to 0.513 kW), because it directly controls the strength of cross-domain feature matching: values below 0.5 leave the causal subspace insufficiently aligned, while values above 2.0 collapse representation diversity by over-matching source and target distributions. This over-alignment effect is particularly notable at , where MAE degrades to 0.513 kW—worse than even the under-alignment case (0.510 kW). This asymmetry arises because excessively strong MMD penalization forces the causal encoder to prioritize distribution matching over predictive fidelity, effectively erasing useful domain-specific variation within the causal subspace (e.g., subtle differences in irradiance–power response curves between panel technologies). The result is a trade-off between alignment strength and preservation of discriminative information: moderate alignment () yields robust performance while over-alignment causes greater harm than under-alignment. The invariance weight shows a similar inverted-U pattern—small values () yield under-constrained causal graphs in which station-specific edges dominate, whereas large values () force the per-station graphs toward a trivial consensus that suppresses meaningful structural variation.
By contrast, the independence weight is comparatively insensitive: performance remains stable across (MAE varies by only 0.006 kW), with noticeable degradation only at the extremes. This suggests that the causal mask already provides sufficient structural guidance for disentanglement and that the cross-covariance penalty acts as a complementary regularizer rather than a primary driver.
The causal mask threshold controls the sparsity of the causal variable set. Low thresholds () admit too many edges—including weak, potentially spurious ones—that dilute the causal subspace, while high thresholds () exclude genuine causal edges and reduce the information available for transfer. The selected value retains approximately 40% of possible variable interactions as causal, achieving the best trade-off between subspace purity and information completeness.
The representation dimensions and exhibit moderate sensitivity. For , performance improves from to as the causal subspace gains sufficient capacity to encode multi-lag irradiance–power dynamics, but increasing beyond 64 yields diminishing returns and slightly elevated MAE (0.461 kW at ), likely due to increased model complexity without additional causal signal to exploit. For , the optimal value is ; smaller values () under-represent site-specific patterns, while larger values () may encourage the site-specific branch to capture information that should remain in the causal subspace, slightly diluting the disentanglement. Notably, setting (equal capacity) increases MAE by 3.3% relative to the default , supporting the design prior that the causal subspace should carry the primary predictive signal.
3.8. Case Study Under Different Weather Conditions
To examine forecasting behavior under different weather conditions, we select three representative test days from Yulara (): a clear-sky day (stable bell-shaped power curve), a partly cloudy day (moderate irradiance fluctuations), and a heavily overcast day (persistent low irradiance with irregular variations). Figure 6 shows the 2 h ahead forecasting results for CausalTransPV and three representative baselines.
Figure 6.
Forecasting case study under three weather conditions on Yulara (). (a) Clear sky: all methods track the smooth bell-shaped curve reasonably well. (b) Partly cloudy: DANN and Fine-tune exhibit lag and overshoot during rapid irradiance transitions. (c) Heavily overcast: DANN and CEDAN systematically overestimate low-power output, while CausalTransPV follows the irregular variations more closely. Shaded areas indicate ± 1 standard deviation over 5 runs.
Under clear-sky conditions (Figure 6a), all transfer methods achieve reasonable accuracy, with CausalTransPV showing a marginal advantage in tracking peak power. This outcome is consistent with the expectation that clear-sky conditions represent a well-constrained operating regime where the shared GHI → Power causal mechanism dominates.
The advantage of causal disentanglement becomes apparent under partly cloudy conditions (Figure 6b). DANN and Fine-tune exhibit noticeable lag and overshoot during rapid irradiance transitions, particularly at the cloud-induced dips around min and min. A likely explanation is that their aligned representations incorporate site-specific temporal patterns from source stations whose cloud dynamics differ from those at the target site. CausalTransPV, by restricting transfer to the invariant irradiance–power mechanism, avoids importing these mismatched temporal correlations and adapts more naturally to the target station’s cloud-induced fluctuations.
The most pronounced gap appears under heavily overcast conditions (Figure 6c). DANN shows systematic overestimation throughout the forecast window, suggesting that spurious source-station correlations—such as humidity–power associations specific to crystalline silicon panels—are being incorrectly applied to the thin-film CdTe target. CEDAN partially mitigates this bias but still deviates from the ground truth during the low-irradiance troughs. Quantitatively, the per-day MAE values on the overcast day are 0.612 kW (DANN), 0.483 kW (CEDAN), and 0.393 kW (CausalTransPV), corresponding to an 18.6% reduction for CausalTransPV over CEDAN. This confirms that causal disentanglement is most valuable precisely when weather conditions push the operating point far from the source-station distribution.
3.9. Computational Cost Analysis
Table 8 compares the computational cost of all methods in terms of trainable parameters, training time, and inference latency. All experiments are conducted on a single NVIDIA RTX 3090 GPU with 24 GB memory. The reported training time corresponds to the setting on Yulara with three source stations (approximately 113,000 source samples and 3744 target samples).
Table 8.
Computational cost comparison. Training time covers the full pipeline (, Yulara). Inference latency is measured per sample on the target station. Bold row indicates the proposed method.
CausalTransPV incurs the highest training cost (3.21M parameters, 95 min) owing to the MSTCD causal discovery module and the dual-branch encoder, which is approximately the training time of CEDAN. Two factors mitigate this overhead in practice. First, the causal discovery phase (Phase 1) is a one-time cost: the learned shared graph and encoder can be reused when adapting to new target stations, with only Phase 2 fine-tuning required (∼45 min). Second, the inference latency (1.5 ms/sample) is lower than that of CEDAN (1.6 ms/sample) because the target-side forward pass does not invoke the causal discovery branch. At 5 min data resolution, a single inference must complete within 300 s, so a latency of 1.5 ms leaves ample margin for real-time deployment. Given the 6.9–9.9% relative MAE reductions over CEDAN documented in Table 5 and Table 6, the additional training cost represents a favorable accuracy–efficiency trade-off.
4. Discussion
4.1. Implications
The experimental results point to a central insight: the bottleneck in cross-site PV transfer lies not in the alignment technique but in the choice of features being aligned. DANN, MMD-Transfer, and DeepCORAL employ fundamentally different alignment strategies yet achieve nearly indistinguishable results (within 2% relative MAE), whereas CausalTransPV, using the same MMD mechanism but restricted to the causal subspace, achieves approximately 10% MAE reduction over MMD-Transfer. The ablation study sharpens this conclusion: the full-feature MMD variant differs from the full model only in alignment scope yet performs 10.2% worse, directly isolating the effect of selective transfer.
A noteworthy finding is that removing CGDE (MAE = +14.2%) causes greater degradation than removing MSTCD (MAE = +11.7%). This may appear counterintuitive—one might expect that discovering the causal graph matters more than operationalizing it—but it has a practical explanation. The causal structure of PV systems is partly common knowledge (GHI and temperature drive power output); what is less straightforward is translating this knowledge into gradient-based disentanglement at the representation level, which is precisely what CGDE provides. This observation suggests that in resource-constrained deployments, an expert-specified causal graph could substitute for learned discovery with only moderate accuracy loss, provided that the disentanglement and selective alignment pipeline is retained.
The case study further reveals that these advantages are most pronounced under adverse weather conditions: CausalTransPV achieves an 18.6% MAE reduction over CEDAN on overcast days, which are precisely the scenarios where conventional methods exhibit systematic overestimation and where accurate forecasting is operationally most critical for grid balancing.
An open question is whether the interpretability of the causal graph directly drives the forecasting gains, or whether the two are merely co-occurring. The ablation results offer indirect evidence: replacing the learned causal mask with a random mask (Table 2) degrades MAE by 15.9%, suggesting that graph quality matters, and the sensitivity analysis shows that sparser graphs () and denser graphs () both underperform, implying that an intermediate level of graph precision is optimal. However, without access to a ground-truth causal graph, we cannot formally quantify this relationship, and we acknowledge this as a limitation.
4.2. Limitations and Future Directions
Several limitations of this work suggest directions for future research. First, the causal discovery module assumes a fixed linear-additive lag structure (), which cannot capture longer-range dependencies such as multi-day weather regime transitions. Integrating neural causal discovery methods such as CUTS+ [36] could address this limitation, albeit at the cost of reduced interpretability. Second, the causal graph is treated as static at inference time, yet the relative importance of causal drivers varies seasonally and shifts with panel degradation over the years. In our dataset (2020–2023), we did not perform a year-by-year comparison of graph stability; whether the learned shared causal structure remains consistent across years with different irradiance patterns and panel aging profiles is an open empirical question. Developing online adaptive causal discovery mechanisms that update the shared graph incrementally would better accommodate this non-stationarity. Third, all experiments are conducted within a single arid climate zone (Alice Springs); whether the discovered causal structures generalize to tropical, temperate, or high-latitude regions remains an open question requiring cross-climate validation on geographically diverse datasets. Under cross-climate transfer (e.g., desert → temperate), the causal invariance assumption may weaken: while core physical mechanisms such as GHI → power remain universally valid, secondary drivers (e.g., humidity, diffuse-to-global irradiance ratio) may exhibit qualitatively different causal roles across climate regimes. We expect CausalTransPV to retain its advantage for the primary causal pathways but potentially require re-running the MSTCD module on climate-specific source stations to capture regime-dependent secondary effects.
Fourth, the causal discovery module operates under the causal sufficiency assumption, i.e., that the observed variables are sufficient for modeling the data-generating process. In practice, latent confounders such as panel degradation state, dust accumulation, and inverter efficiency variations are not explicitly measured, and their omission may induce spurious edges in the learned causal graph (e.g., a spurious temperature → power edge that actually mediates an unmeasured dust → soiling → power pathway). Incorporating proxy variables (e.g., soiling indices derived from performance ratio trends) or adopting causal discovery methods robust to latent confounders (e.g., FCI or its differentiable extensions) is an important direction for future work.
Fifth, the current experimental design uses a fixed set of three source stations. The sensitivity of transfer performance to the number and composition of source stations—particularly when a source station has significantly noisier data or a very different panel orientation—has not been systematically ablated. A dedicated study varying source-station combinations would further strengthen the generalizability claims of the framework.
Sixth, while the discovered causal graphs are physically interpretable (Section 3.8), we have not established a formal quantitative link between graph quality metrics (e.g., sparsity, stability across re-runs, agreement with expert-specified physical graphs) and downstream forecasting accuracy. Whether improvements in graph precision causally drive improvements in MAE—or whether the relationship is merely correlational—remains an open question that would benefit from controlled experiments with ground-truth causal graphs.
Finally, the current MMD alignment matches marginal distributions of without accounting for conditional shifts ; incorporating conditional alignment techniques adapted to regression settings could further improve transfer precision when source and target stations differ substantially in rated capacity or power output range.
5. Conclusions
This paper proposed CausalTransPV, a causal invariant representation learning framework for cross-site PV power forecasting that addresses a fundamental limitation of existing transfer learning methods: their inability to distinguish transferable causal relationships from site-specific spurious correlations. The framework integrates three synergistic modules: multi-station temporal causal discovery (MSTCD) for learning shared and station-specific causal graphs via differentiable acyclicity-constrained optimization with a cross-station invariance regularizer; a causal-guided disentangled encoder (CGDE) for decomposing representations into causal-invariant and site-specific subspaces using the discovered causal graph as a structural prior; and causal-subspace transfer and prediction (CSTP) for performing selective domain alignment exclusively on the causal subspace via multi-kernel MMD.
Extensive experiments on the DKASC multi-station dataset demonstrated that CausalTransPV consistently outperforms seven baseline methods across all target label ratios (0–50%) and both target stations, achieving relative MAE reductions of 6.9–9.9% over the strongest baseline CEDAN and improvements of up to 2.1 percentage points under the zero-label setting. Ablation studies confirmed that each module contributes meaningfully, with causal-guided disentanglement and selective alignment proving particularly critical. The discovered causal graphs recovered physically interpretable structures—identifying GHI and temperature as shared causal drivers while correctly classifying wind and humidity effects as station-specific—without requiring explicit physics-based supervision.
These findings suggest that integrating causal discovery with domain-adaptive transfer learning offers a principled and effective paradigm for deploying PV forecasting models across heterogeneous stations under data-scarce conditions.
Author Contributions
Conceptualization, Y.G. and X.J.; Methodology, Y.G.; Software, Y.G.; Validation, Y.G. and X.J.; Formal Analysis, Y.G.; Investigation, Y.G.; Data Curation, Y.G.; Writing—Original Draft Preparation, Y.G.; Visualization, Y.G.; Writing—Review and Editing, X.J.; Supervision, X.J.; Project Administration, X.J. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding. The APC was funded by the authors.
Data Availability Statement
The raw PV monitoring data are provided by the Desert Knowledge Australia Solar Centre (DKASC). The preprocessed dataset, source code, and trained models will be open-sourced upon acceptance of the manuscript.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- International Energy Agency. Renewables 2024: Analysis and Forecast to 2030; Technical Report; IEA: Paris, France, 2024.
- Al-Dahidi, S.; Madhiarasan, M.; Al-Ghussain, L.; Abubaker, A.; Ahmad, A.D.; Alrbai, M.; Aghaei, M.; Alahmer, H.; Alahmer, A.; Baraldi, P.; et al. Forecasting Solar Photovoltaic Power Production: A Comprehensive Review and Innovative Data-Driven Modeling Framework. Energies 2024, 17, 4145. [Google Scholar] [CrossRef] [Scilit]
- Di Leo, P.; Ciocia, A.; Malgaroli, G.; Spertino, F. Advancements and Challenges in Photovoltaic Power Forecasting: A Comprehensive Review. Energies 2025, 18, 2108. [Google Scholar] [CrossRef] [Scilit]
- Iheanetu, K.J. Solar Photovoltaic Power Forecasting: A Review. Sustainability 2022, 14, 17005. [Google Scholar] [CrossRef] [Scilit]
- Babay, M.A.; Adar, M.; Chebak, A.; Mabrouki, M. Forecasting green hydrogen production: An assessment of renewable energy systems using deep learning and statistical methods. Fuel 2025, 381, 133496. [Google Scholar] [CrossRef] [Scilit]
- Abdel-Nasser, M.; Mahmoud, K. Accurate photovoltaic power forecasting models using deep LSTM-RNN. Neural Comput. Appl. 2019, 31, 2727–2740. [Google Scholar] [CrossRef] [Scilit]
- Mansour, A.; Tilioua, A.; Touzani, M. Bi-LSTM, GRU and 1D-CNN models for short-term photovoltaic panel efficiency forecasting: Case amorphous silicon grid-connected PV system. Results Eng. 2024, 21, 101886. [Google Scholar] [CrossRef] [Scilit]
- Mellit, A.; Pavan, A.M.; Lughi, V. Deep learning neural networks for short-term photovoltaic power forecasting. Renew. Energy 2021, 172, 276–288. [Google Scholar] [CrossRef] [Scilit]
- Agga, A.; Abbou, A.; Labbadi, M.; Houm, Y.; Ali, I.H.O. CNN-LSTM: An efficient hybrid deep learning architecture for predicting short-term photovoltaic power production. Electr. Power Syst. Res. 2022, 208, 107908. [Google Scholar] [CrossRef] [Scilit]
- Alharkan, H.; Habib, S.; Islam, M. Solar Power Prediction Using Dual Stream CNN-LSTM Architecture. Sensors 2023, 23, 945. [Google Scholar] [CrossRef] [Scilit]
- Qu, J.; Qian, Z.; Pei, Y. Day-ahead hourly photovoltaic power forecasting using attention-based CNN-LSTM neural network embedded with multiple relevant and target variables prediction pattern. Energy 2021, 232, 120996. [Google Scholar] [CrossRef] [Scilit]
- Ibrahim, M.G.; Gharghory, S.M.; Kamal, H.A. A hybrid model of CNN and LSTM autoencoder-based short-term PV power generation forecasting. Electr. Eng. 2024, 106, 4239–4255. [Google Scholar] [CrossRef] [Scilit]
- Salman, D.; Direkoglu, C.; Kuşaf, M.; Fahrioglu, M. Hybrid deep learning models for time series forecasting of solar power. Neural Comput. Appl. 2024, 36, 9095–9112. [Google Scholar] [CrossRef] [Scilit]
- Chaoui, K.; Fadil, E.; Choukai, O.; Omar, O. A Wavelet–Attention–Convolution Hybrid Deep Learning Model for Accurate Short-Term Photovoltaic Power Forecasting. Forecasting 2025, 7, 45. [Google Scholar] [CrossRef] [Scilit]
- Nie, Y.; Nguyen, N.H.; Sinthong, P.; Kalagnanam, J. A Time Series is Worth 64 Words: Long-term Forecasting with Transformers. In Proceedings of the 11th International Conference on Learning Representations (ICLR), Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Liu, Y.; Hu, T.; Zhang, H.; Wu, H.; Wang, S.; Ma, L.; Long, M. iTransformer: Inverted Transformers Are Effective for Time Series Forecasting. In Proceedings of the 12th International Conference on Learning Representations (ICLR), Vienna, Austria, 7–11 May 2024. [Google Scholar]
- Sarmas, E.; Dimitropoulos, N.; Marinakis, V.; Mylona, Z.; Doukas, H. Transfer learning strategies for solar power forecasting under data scarcity. Sci. Rep. 2022, 12, 14643. [Google Scholar] [CrossRef] [Scilit]
- Depoortere, J.; Driesen, J.; Suykens, J.A.K.; Kazmi, H. SolNet: Open-source deep learning models for photovoltaic power forecasting across the globe. Int. J. Forecast. 2024, 41, 1223–1236. [Google Scholar] [CrossRef] [Scilit]
- Bak, S.; Choi, S.; Yang, D.; Kim, D.; Rho, H.; Lee, K. Transfer Learning for Photovoltaic Power Forecasting Across Regions Using Large-Scale Datasets. IEEE Access 2025, 13, 136175–136190. [Google Scholar] [CrossRef] [Scilit]
- Tang, Y.; Yang, K.; Zhang, S.; Zhang, Z. Photovoltaic power forecasting: A hybrid deep learning model incorporating transfer learning strategy. Renew. Sustain. Energy Rev. 2022, 162, 112473. [Google Scholar] [CrossRef] [Scilit]
- Kim, B.; Belkilani, K.; Heilscher, G.; Otto, M.; Huh, J.H.; Suh, D. Integrated Spatiotemporal Hybrid Solar PV Generation Forecast Between Countries on Different Continents Using Transfer Learning Method. IEEE Access 2025, 13, 2486–2502. [Google Scholar] [CrossRef] [Scilit]
- Miraftabzadeh, S.M.; Colombo, C.G.; Longo, M.; Foiadelli, F. A Day-Ahead Photovoltaic Power Prediction via Transfer Learning and Deep Neural Networks. Forecasting 2023, 5, 12. [Google Scholar] [CrossRef] [Scilit]
- Ilias, L.; Sarmas, E.; Marinakis, V.; Askounis, D.; Doukas, H. Unsupervised domain adaptation methods for photovoltaic power forecasting. Appl. Soft Comput. 2023, 149, 110979. [Google Scholar] [CrossRef] [Scilit]
- Ganin, Y.; Ustinova, E.; Ajakan, H.; Germain, P.; Larochelle, H.; Laviolette, F.; Marchand, M.; Lempitsky, V. Domain-Adversarial Training of Neural Networks. J. Mach. Learn. Res. 2016, 17, 1–35. [Google Scholar]
- Liao, R.; Liu, Y.; Xu, X.; Li, Z.; Chen, Y.; Shen, X.; Liu, J. Enhanced photovoltaic power generation forecasting for newly-built plants via Physics-Infused transfer learning with domain adversarial neural networks. Energy Convers. Manag. 2024, 321, 119114. [Google Scholar] [CrossRef] [Scilit]
- Gao, Y.; Hu, Z.; Shi, S.; Chen, W.; Liu, M. Adversarial discriminative domain adaptation for solar radiation prediction: A cross-regional study for zero-label transfer learning in Japan. Appl. Energy 2024, 369, 122685. [Google Scholar] [CrossRef] [Scilit]
- Islam, M.S.; Hasan, A.S.M.; Rahman, M.S.; Sajol, M.S.I. Semi-Supervised Deep Domain Adaptation for Predicting Solar Power Across Different Locations. arXiv 2025, arXiv:2508.04165. [Google Scholar] [CrossRef] [Scilit]
- Zheng, W.; Xiao, H.; Pei, W. Distributed-regional photovoltaic power generation prediction with limited data: A robust autoregressive transfer learning method. Appl. Energy 2025, 380, 125058. [Google Scholar] [CrossRef] [Scilit]
- Rojas-Carulla, M.; Schölkopf, B.; Turner, R.; Peters, J. Invariant Models for Causal Transfer Learning. J. Mach. Learn. Res. 2018, 19, 1–34. [Google Scholar]
- Magliacane, S.; van Ommen, T.; Claassen, T.; Bongers, S.; Versteeg, P.; Mooij, J.M. Domain Adaptation by Using Causal Inference to Predict Invariant Conditional Distributions. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Long Beach, CA, USA, 4–9 December 2017; Volume 30, pp. 10869–10879. [Google Scholar]
- Schölkopf, B.; Locatello, F.; Bauer, S.; Ke, N.R.; Kalchbrenner, N.; Goyal, A.; Bengio, Y. Toward Causal Representation Learning. Proc. IEEE 2021, 109, 612–634. [Google Scholar] [CrossRef] [Scilit]
- Granger, C.W.J. Investigating Causal Relations by Econometric Models and Cross-spectral Methods. Econometrica 1969, 37, 424–438. [Google Scholar] [CrossRef] [Scilit]
- Runge, J.; Bathiany, S.; Bollt, E.; Camps-Valls, G.; Coumou, D.; Deyle, E.; Glymour, C.; Kretschmer, M.; Mahecha, M.D.; Muñoz Marí, J.; et al. Inferring causation from time series in Earth system sciences. Nat. Commun. 2019, 10, 2553. [Google Scholar] [CrossRef] [Scilit]
- Zheng, X.; Aragam, B.; Ravikumar, P.; Xing, E.P. DAGs with NO TEARS: Continuous Optimization for Structure Learning. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Montreal, QC, Canada, 3–8 December 2018; Volume 31. [Google Scholar]
- Bello, K.; Aragam, B.; Ravikumar, P. DAGMA: Learning DAGs via M-matrices and a Log-Determinant Acyclicity Characterization. Adv. Neural Inf. Process. Syst. 2022, 35, 8226–8239. [Google Scholar]
- Cheng, Y.; Yang, Z.; Chen, C.; Dai, C.; Li, Y.; Chen, G.; Li, J.; Yan, J. CUTS+: High-dimensional Causal Discovery from Irregular Time-series. In Proceedings of the AAAI Conference on Artificial Intelligence, Vancouver, BC, Canada, 20–27 February 2024; Volume 38. [Google Scholar]
- Woo, G.; Liu, C.; Sahoo, D.; Kumar, A.; Hoi, S. CoST: Contrastive Learning of Disentangled Seasonal-Trend Representations for Time Series Forecasting. In Proceedings of the 10th International Conference on Learning Representations (ICLR), Virtual Event, 25–29 April 2022; pp. 25–29. [Google Scholar]
- Zhang, K.; Zou, X.; Yen, G.G.; Tang, Y.; Kurths, J. Caformer: Rethinking Time-Series Forecasting From Causal Perspective. In IEEE Transactions on Cybernetics; IEEE: New York, NY, USA, 2025. [Google Scholar] [CrossRef] [Scilit]
- Cai, S.; Peng, H.; Liu, R.; Chen, P. Causal-oriented representation learning for time-series forecasting based on the spatiotemporal information transformation. Commun. Phys. 2025, 8, 110. [Google Scholar] [CrossRef] [Scilit]
- Li, Z.; Cai, R.; Fu, T.Z.J.; Hao, Z.; Zhang, K. Transferable Time-Series Forecasting Under Causal Conditional Shift. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 46, 1932–1949. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Q.; Yan, H.; Liu, Y. Power generation forecasting for solar plants based on Dynamic Bayesian networks by fusing multi-source information. Renew. Sustain. Energy Rev. 2024, 204, 114691. [Google Scholar] [CrossRef] [Scilit]
- Sun, C.; Chu, X.; Ye, H. A Bayesian Structural Time Series Approach for Forecasting Photovoltaic Power Generation. In Proceedings of the 2023 International Conference on Power System Technology (PowerCon), Jinan, China, 21–22 September 2023; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
- Wang, Z.; Liu, H.; Wu, S.; Liu, N.; Liu, X.; Hu, Y.; Fu, Y. Explainable time-varying directional representations for photovoltaic power generation forecasting. J. Clean. Prod. 2024, 468, 143056. [Google Scholar] [CrossRef] [Scilit]
- Zhao, P.; Hu, W.; Cao, D.; Huang, R.; Wu, X.; Huang, Q.; Chen, Z. Causal Mechanism-Enabled Zero-Label Learning for Power Generation Forecasting of Newly-Built PV Sites. IEEE Trans. Sustain. Energy 2025, 16, 392–406. [Google Scholar] [CrossRef] [Scilit]
- Sun, B.; Saenko, K. Deep CORAL: Correlation Alignment for Deep Domain Adaptation. In Computer Vision–ECCV 2016 Workshops; Springer: Cham, Switzerland, 2016; pp. 443–450. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





