Skip to Content
EnergiesEnergies
  • Article
  • Open Access

25 November 2025

17 Pages

Temporal Convolutional Network with Adaptive Diffusion Model for Generation–Load Probabilistic Forecasting

,
,
,
and
1
Shanxi Energy Internet Research Institute, Taiyuan 030000, China
2
College of Computer Science and Technology (College of Data Science), Taiyuan University of Technology, Taiyuan 030024, China
3
Key Laboratory of Data Governance and Intelligent Decision Making of Shanxi Province, Taiyuan 030024, China
4
Shanxi Key Laboratory of Integrated Energy System, Taiyuan 030000, China

Abstract

Accurate generation–load forecasting is essential for the stability and efficiency of modern power systems. However, large-scale renewable integration and diverse user demand introduce strong nonlinearity and uncertainty, making probabilistic forecasting challenging. To address this, we propose a Temporal Convolutional Network with Adaptive Diffusion for generation–load probabilistic forecasting, called TCN-AD. TCN-AD employs a temporal convolutional encoder to capture long-term dependencies and local variations. In addition, an adaptive diffusion mechanism dynamically adjusts noise intensity to model time-varying uncertainty. Notably, a multi-scale fusion module and periodic attention mechanism further enhance the perception of multi-scale and cyclical patterns. Finally, a TCN-based denoising decoder refines the reverse diffusion process to reconstruct temporal dependencies effectively. Experiments on real-world load, solar, and wind datasets show that TCN-AD consistently outperforms baselines in both deterministic and probabilistic forecasting.

1. Introduction

Generation–load forecasting refers to predicting the power generation of renewable energy sources (such as solar power generation and wind power generation) and the electricity load on the user side. It plays a vital role in modern power systems, with typical applications including developing power generation plans [1], optimizing grid scheduling [2], and improving energy trading strategies [3]. By learning from historical operational data, it helps predict future power trends, improving grid efficiency, reducing costs, and enhancing stability.
Driven by the “dual carbon” strategy and energy transition, the importance of generation–load forecasting has become increasingly prominent. On the one hand, the large-scale integration of renewable energy sources such as solar and wind power has significantly increased the volatility and uncertainty of the power grid. Its power generation is closely related to climate and conditions and has significant intermittency [4], randomness [5], and natural variability [6]. On the other hand, the rise of smart grids and demand response complicates load changes, exhibiting linearity [7], non-stationarity [8], and randomness [9]. In this context, traditional deterministic methods struggle to address the joint uncertainty of renewable generation and load variation.
Traditional statistical models construct mathematical equations based on the statistical laws of historical data and achieve prediction through parameter fitting. Typical methods include autoregression (AR) [10], moving average (MA) [11], autoregressive and moving average (ARMA) [12], integrated auto-regressive moving average (ARIMA) [13], and seasonal ARIMA (SARIMA) [14]. They are simple and interpretable but fail to capture nonlinear and non-stationary features in large-scale data, leading to poor performance under high volatility. With the growing data complexity, machine learning methods such as SVR [15,16] and RF [17,18] emerged. But they depend heavily on feature engineering and fixed input dimensions, limiting temporal modeling capability.
In recent years, deep learning has shown strong potential in generation–load forecasting due to its powerful feature extraction ability. Currently, deep learning methods widely used for generation–load prediction include Recurrent Neural Networks (RNN) [19], Convolutional Neural Networks (CNN) [20], Gated Recurrent Units (GRU) [21], and Long Short Term Memory Networks (LSTM) [22]. These methods have limitations in capturing the long-term dependencies of time series, particularly issues like gradient vanishing. In contrast, the Transformer architecture alleviates this limitation and has been applied to various forecasting tasks, such as short-term PV generation [23], 6-h wind power prediction [24], and multi-energy load forecasting [25].
In addition, diffusion models, as an emerging generative learning method, have shown great potential in generation–load prediction tasks. For example, Li et al. [26] proposed a diffusion model called DiffPLF for electric vehicle charging load prediction, which improves the accuracy and reliability of prediction through denoising diffusion process and cross attention mechanism. Peng et al. [27] proposed a wind power prediction framework based on diffusion and channel attention, which converts wind power data into frequency domain and applies advanced channel attention techniques to help the model capture frequency domain information and ultimately improve accuracy. Capel et al. [28] introduced denoising diffusion probabilistic models (DDPM) for energy forecasting, showcasing their effectiveness in modeling uncertainties in energy data. Miraki et al. [29] employed a graph-based denoising diffusion probabilistic model to forecast renewable energy and electricity demand, indicating a trend toward sophisticated probabilistic models capable of capturing complex dependencies. Rastgoo et al. [30] proposed a diffusion-based probabilistic ultra-short-term solar power forecasting method using sky image sequences to enhance accuracy and uncertainty quantification.
However, methods based on diffusion models still have certain limitations in capturing complex temporal dependencies and local disturbance features. On the one hand, renewable energy sources such as wind power and photovoltaics have highly non-stationary and abrupt outputs, and traditional diffusion structures are difficult to fully model these detailed features. On the other hand, the load fluctuation patterns at different time scales also pose challenges to the generalization ability of the model. To this end, we propose a model TCN-AD that combines TCN with an adaptive diffusion model. This model models global dependencies through a TCN encoder and designs a denoising module to enhance the modeling ability of local dynamics. At the same time, we introduce multi-scale fusion and cyclic attention mechanisms to effectively enhance the model’s perception of periodicity and scale changes. Experimental results indicate that TCN-AD effectively captures complex patterns in generation–load data, demonstrating superior accuracy and robustness in prediction performance.
The main contributions of this paper can be summarized as follows:
  • We propose a temporal convolutional network with adaptive diffusion (TCN-AD) for probabilistic generation–load forecasting. The TCN can capture long-range temporal dependencies, while the adaptive diffusion process learns stochastic variations and non-stationary uncertainty in energy data.
  • By integrating multi-scale fusion and periodic attention, TCN-AD effectively models both high-frequency fluctuations and seasonal cycles in power data.
  • Extensive experiments on real-world load, solar, and wind power datasets demonstrate that TCN-AD consistently outperforms multiple benchmark methods in both forecasting accuracy and uncertainty quantification.

2. Methodology

2.1. Problem Formulation

We first define the notation used in this paper. Generation–load forecasting is a typical multivariate time-series prediction task. The generation–load can be denoted as X ∈ R N × T , where N represents the number of variables (including various power sources such as wind power, photovoltaic power, and loads), and T represents the length of the time series. We can consider the generation–load data as a collection of time series, where in each time step t, the generation–load data can be represented as X t ∈ R N . The goal of generation–load prediction is to learn a mapping function F that uses L steps of historical load data to predict H steps of future load data:
Y t : t + H ′ = F X t − L : t ,
where X t − L : t ∈ R L × N and Y t : t + H ′ ∈ R H × N .
In this paper, we propose to leverage the TCN and adaptive diffusion model to implement the generation–load forecasting task. We leverage the TCN encoder to extract local temporal features and long-term dependencies from generation–load data. Particularly, considering the periodicity and a multi-scale property of the data, we design multi-scale fusion mechanism and periodic attention module, which can be inserted into the TCN encoder to incorporate hierarchical temporal patterns and periodic correlations in the learned features. Then, we introduce an adaptive diffusion module to perform forward diffusion on the input sequence, gradually generating a series of noise states. Subsequently, a query vector is constructed based on the features extracted by the TCN encoder, and the diffusion process is guided by a conditional mechanism to model the temporal dynamics. Finally, in the reverse generation stage, we use a TCN denoising decoder to gradually restore the perturbed sequence, enabling the model to recover key temporal information and complete the generation–load prediction task. The schematic graphical representation of the whole framework is shown in Figure 1.
Figure 1. Schematic graphical representation of the whole framework. The framework is composed of a normalization module, a TCN encoder, an adaptive diffusion process, and a TCN denoising decoder. The encoder first projects the input sequence and extracts temporal features through stacked TCN layers, enhanced by multi-scale fusion and periodic attention to capture scale-varying patterns and cyclic behaviors. The encoder outputs the key (K) and value (V) representations required for the denoising process. The adaptive diffusion module performs the forward noising steps and generates the query (Q) representation that guides the reverse diffusion. The TCN denoising decoder then reconstructs clean signals from the noisy latent states conditioned on Q, K, and V. Finally, a de-normalization layer restores the predicted series to the original scale, yielding both point forecasts and probabilistic intervals.

2.2. Normalization and Patching Embedding

Normalization: Before inputting the generation–load time series data into the model, we perform normalization on the data, normalizing it to zero mean and unit standard deviation to eliminate scale differences between different variables. After completing the prediction, we perform inverse normalization on the prediction results based on the mean and standard deviation of the original data to restore their original numerical range, ensuring the accuracy and consistency of the final prediction results.
Patching Embedding [31]: This method uses patches instead of individual time steps as the basic modeling unit, aiming to capture local dynamic patterns and cross-segment dependencies in time series, thereby enhancing the modeling ability of the model for complex temporal structures. In addition, the diffusion model is also based on these modeling units. In addition, diffusion models also rely on these modeling units for computation. Compared to adding and denoising at a single time point, using patches can provide a more stable representation and reduce the model’s sensitivity to inherent noise in the data.
To simplify data processing, it is assumed that the sequence length L can be divided by the patch length P, so that the sequence can be divided into M = L P segments. Each segment is composed of continuous time steps, which helps to compress redundant information and enhance the consistency of feature expression. Subsequently, each patch is transformed from a linear embedding layer to a high-dimensional representation, which is calculated as follows:
X 1 : M = Embedding x 1 : M ,

2.3. TCN Encoder

Although patch embedding has mapped the raw data to a high-dimensional space, in order to meet the specific architecture requirements of TCN and further enhance feature representation capabilities, we have introduced a dedicated input projection layer:
X 1 : M ′ = Conv 1 d X 1 : M ; θ p r o j ,
where θ proj is the input parameter of the projection layer, the output shape is X 1 : M ′ ∈ R M × h , and h is the hidden dimension.
TCN layer: The TCN layer is the core module of the entire encoder, and its main task is to capture the dependency relationships between temporal patches. The schematic diagram of TCN structure is shown in Figure 2. Causal convolution ensures that the output of TCN depends only on current and past time steps, and is not affected by future data. As shown in Figure 2, the final output of the network is gradually mapped by multiple hidden layers. As the number of hidden layers increases, the model can learn sequence information with longer time spans. For the case where the kernel function size is k, the output of each hidden layer is obtained by convolving the corresponding position data of the previous layer and its data from the previous k − 1 time steps.
Figure 2. The illustration of the structure of temporal convolutional network.
However, when k is small, in order to model longer time series, TCN requires a deeper network structure. To address this issue, TCN employs dilated convolution to balance network depth and receptive field size. As shown in Figure 2, the expansion coefficient d increases exponentially, so that the expansion convolution is calculated in each hidden layer with d as the step size. In this way, TCN can obtain a larger time series receptive field with fewer hidden layers and lower computational complexity. In addition, TCN uses residual networks to alleviate the problems of gradient vanishing and exploding that may occur during deep network training. As shown in Figure 2, the residual structure adds Weight Normalization, Dropout, and ReLU activation functions after the causal expansion convolution layer to ensure that the model retains effective information during feature extraction and improves learning stability.
The output of the t-th neuron in TCN is:
F ( t ) = ∑ i = 0 k − 1 f ( i ) · x t − d · i
where f ( i ) represents the i th convolution coefficient, k represents the size of the convolution kernel, and x t − d · i represents the input at the corresponding dilated time step t.
The receptive field w of a TCN with n residual blocks is:
w = 1 + 2 ( m − 1 ) γ n − 1 γ − 1
Multi-scale feature fusion: To further enhance the feature representation capability, we introduce a multi-scale feature fusion module, which extracts information at different temporal scales using convolution kernels of different sizes. Specifically, we design multiple parallel 1D convolution branches with different kernel sizes to capture local features over diverse time ranges. For each time step t, the output of the multi-scale feature fusion is defined as:
F multi ( t ) = 1 N ∑ i = 0 N − 1 F i ( t )
where N denotes the number of different kernel scales, and F i ( t ) represents the feature extracted at time t using the i-th convolution branch. By averaging and fusing the outputs of these multi-scale convolutions, the model can simultaneously learn information from different time scales, enhancing its ability to express complex temporal data. This design enables the model to capture both short-term fluctuations and long-term dependencies in generation–load data, thereby improving deterministic forecasting accuracy.
Periodic attention mechanism: To further enhance the modeling ability of the model for periodic patterns in time series, we use a periodic attention mechanism. This mechanism guides the model to focus on structural information that repeatedly appears within a specific period by explicitly introducing typical periods such as days, weeks, and months. Firstly, we use channel attention to adjust the information weights of different channels to highlight key features, in the form of:
F att ( t ) = F multi ( t ) · σ W 2 · ReLU W 1 · AvgPool F multi ( t )
where σ represents the Sigmoid activation function, W 1 and W 2 are learnable parameters. Next, normalize the weights using Softmax to determine the importance of different periodicities:
α i = Softmax ω i , i = 1 , 2 , … , M
where ω i is a trainable parameter and M is a predefined number of cycles (e.g., daily cycle P 1 = 24 , weekly cycle P 2 = 168 , monthly cycle P 3 = 720 ). After determining the cycle weights, the cycle attention extracts periodic patterns on multiscale fusion features:
F periodic ( t ) = 1 K ∑ j = 0 K − 1 F multi t − j P i
where K = T / P i is the number of periodic segments, which ensures that the model computes stable periodic patterns at different periodic scales. j represents the index of past cycles, used to backtrack data for j complete cycles. t − j P i represents a time step of j cycles P i at time t ensuring that the model can use data from multiple past cycles for feature calculation. The periodicity information is then expanded back to the original time series length and weighted and fused with the output of the multiscale feature fusion:
F encoder ( t ) = F multi ( t ) + ∑ i = 1 M α i · F periodic ( t )
By emphasizing periodic correlations across time, this mechanism helps the model capture recurring temporal patterns, enhancing prediction stability for periodic variations.

2.4. Adaptive Forward Diffusion Process

Traditional generative models typically use a fixed noise scheduling approach, which may result in information loss or modeling bias on the generation–load data. To this end, we use an adaptive diffusion model that dynamically adjusts the intensity of noise, allowing the model to flexibly adapt to the periodic characteristics and temporal dependencies of the data. The core of the adaptive diffusion model lies in adaptive noise scheduling, where the noise parameter β t varies using a sine squared function, causing the noise to grow nonlinearly with time step t, thus better capturing the volatility in time-series data
β t = β s t a r t + β e n d − β s t a r t · sin 2 π t
where β s t a r t and β e n d represent the starting and ending values of noise, respectively, ensuring that the model perturbs the data in the initial stage and gradually enhances the noise in the later stage of diffusion to adapt to complex temporal structures.
In addition, to ensure the long-term dependency relationship of the data, we introduce an accumulated noise attenuation factor to make the diffusion process of the data have stronger temporal consistency:
α t = 1 − β t
γ t = ∏ i = 1 t α i
where α t represents the proportion of original information retained at the current time step, and γ t controls the stationary disturbance of data over time, so that noise does not suddenly destroy the data structure, but gradually changes the data distribution, enabling the model to naturally learn the dynamic patterns of the time series. In order to adapt to this structure, we further combine autocorrelation noise to make the noise not only an independent random disturbance, but also maintain temporal smoothness:
ϵ t = ∑ j = 1 T λ j · ϵ t − j
where λ is the attenuation factor, ensuring that the noise impact of closer time steps is greater, while the noise impact of farther time steps gradually decreases. This mechanism can effectively enhance the long-term predictive ability of time series models, enabling them to more robustly model the periodicity and trend changes of data.
By dynamically adjusting the diffusion coefficient according to temporal correlation and local variance, this adaptive mechanism better captures the heteroscedastic and time-varying uncertainty in energy data, thus improving probabilistic forecasting accuracy.
Finally, by combining noise scheduling and temporal correlation, we applied a denoising transformation to the input data x t , enabling the model to better adapt to complex temporal data:
x t = γ t · x + 1 − γ t · ϵ t

2.5. TCN Denoising Decoder

The inverse process is completed by the TCN denoising decoder. This decoder takes the output of the TCN encoder as the Key and Value, and embeds the noisy patch as the Query. This design enables the decoder to use the features extracted by the encoder to guide the denoising process, forming an information flow similar to an attention mechanism.
In the standard diffusion model, the reverse process can be represented as:
x t − 1 = 1 α t x t − 1 − α t 1 − γ t ϵ θ ^ x t , t + σ t z
where z ∼ N ( 0 , I ) is the sampling noise, and σ t is the noise amplitude during the denoising process.
For our TCN denoising decoder, the noise prediction process can be expressed as:
x 0 ^ = g x t , F e n c o d e r ( t ) , t
where F encoder ( t ) is the output feature of the TCN encoder, and t is the time step embedding. Through multi-step backward diffusion, from pure noise x T gradually restore to noise-free samples x 0 Thus achieving prediction.

2.6. Loss Function

In this study, we used a mixed loss function that combines negative log likelihood (NLL) and continuous ranking probability score (CRPS):
L ( μ , σ 2 , y ) = α · − log p ( y | μ , σ 2 ) + λ ( y − μ ) 2 + ( 1 − α ) · σ y − μ σ 2 Φ y − μ σ − 1 + 2 ϕ y − μ σ − 1 π
where μ represents the mean predicted by the model, σ 2 represents the variance of the prediction, and y is the true observation value; p ( y | μ , σ 2 ) represents the Gaussian distribution probability density function with μ and σ 2 as parameters; λ is the weight coefficient of the mean square error regularization term; α is a mixed weight that balances the losses of NLL and CRPS; Φ ( · ) is the cumulative distribution function of the standard normal distribution, and ϕ ( · ) is the probability density function of the standard normal distribution. The combination of NLL and CRPS serves complementary purposes. NLL ensures accurate estimation of both the mean and variance by maximizing the likelihood. CRPS evaluates the calibration quality of the predictive distribution and reduces overconfident intervals. This hybrid loss improves both point prediction accuracy and probabilistic reliability. It outperforms standard diffusion losses that rely on a single objective.

3. Experiments

3.1. Datasets

In this section, we evaluate the performance of the proposed model on three real-world datasets, i.e., Load, Solar and Wind. The details of the datasets are listed in Table 1.
Table 1. Dataset descriptions.
Load (https://data.gov.au/ (accessed on 24 February 2025)): This dataset is the electricity load data of Australia for five consecutive years, with a sampling time range from 00:30:00 on 1 January 2006 to 00:00:00 on 1 January 2011. The dataset sets 48 sampling points daily, with a sampling interval of 30 min. The dataset includes key weather factors such as dry bulb temperature, dew point temperature, wet bulb temperature, and humidity.
Solar: This dataset contains operational data of photovoltaic power plants in the Xinjiang region of China from 00:00 on 1 January 2019 to 23:45 on 31 December 2019, with a time interval of 15 min and a total of 35,040 records. This dataset also includes multiple meteorological and environmental characteristic variables closely related to photovoltaic power generation, including time, component temperature (°C), ambient temperature (°C), air pressure (hPa), relative humidity (%), total radiation (W/m2), direct radiation (W/m2), and scattered radiation (W/m2).
Wind: This dataset is the wind power generation data from the Xinjiang region of China for the whole year of 2019 (1 January 2019 00:00:00 to 31 December 2019 23:45:00), with a sampling interval of 15 min. This dataset also includes wind speed measurements (m/s) and wind direction angles (°) from wind measurement towers at three different heights (10 m, 30 m, and 50 m), as well as meteorological parameters such as temperature (°), air pressure (hPa), and humidity (%).

3.2. Experimental Settings

Baselines: To test and validate the competitiveness of TCN-AD, we compared the model with five other prediction methods. These methods include probability prediction based on autoregression DeepAR [32], diffusion model-based DiffLoad [33], as well as common deep learning models GRU [34], LSTM [35], and Transformer [36].
Metrics: In order to comprehensively evaluate the performance of the model in deterministic and probabilistic prediction, we used multiple evaluation metrics. In deterministic prediction, Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) are used to measure the mean square deviation and absolute deviation of predicted values relative to actual values, respectively. For the evaluation of probability prediction, we used Continuous Ranked Probability Score (CRPS) [37] and Winker Score (WS) [38]. Among them, CRPS can reflect the difference between the predicted probability distribution and the actual observed values, while WS focuses on evaluating the Prediction Interval (PI), which can simultaneously reflect the coverage and width of the prediction interval. The specific formula is as follows:
MAE = 1 n ∑ i = 1 n y i − y i ^ ,
RMSE = 1 n ∑ i = 1 n y i − y i ^ 2 ,
CRPS ( F i , y i ) = ∫ − ∞ + ∞ F i ( x ) − 1 { x ≥ y i } 2 d x ,
W S α , t = δ , L t ≤ y t ≤ U t δ + 2 ( y t − U t ) α , y t > U t δ + 2 ( L t − y t ) α , y t < L t
where y i represents the true value of the i-th sample, y i ^ represents the predicted value of the i-th sample, F i x represents the predicted distribution function of the i-th sample, and L t and U t represent the lower and upper bounds of the PI, respectively; δ = U t − L t indicates the width of the prediction interval.
Configurations: All experiments are conducted on a computing platform equipped with an NVIDIA RTX A6000 GPU and an AMD EPYC 9754 (128-core) CPU. During the training process, the Adam optimizer is uniformly used with a batch size of 128, and the early stopping strategy is employed, with a maximum of 100 epochs trained. The initial learning rate is set to 0.0001 and dynamically adjusted using the OneCycleLR learning rate scheduler: during the first 30% of the training cycle, the learning rate linearly increases to the maximum value of 0.0001; subsequently, it linearly decreases during the last 70% of the cycle.
To comprehensively evaluate the performance of the proposed method and various baseline models, we divide each dataset into a training set, a validation set, and a testing set in chronological order, with a ratio of 7:1:2. In all experiments, the length of the review window (i.e., input sequence length) is uniformly set to L = 336, and modeling and evaluation are conducted under different prediction windows H ∈ 24 , 48 , 72 , 96 to verify the generalization ability of the model under different prediction durations. In terms of model architecture, all patches are embedded into a 32-dimensional representation through Patch Embedding layers and input into a TCN encoder consisting of 2 layers and a convolution kernel size of 3 for feature extraction. The TCN denoising decoder adopts a 1-layer structure with a convolution kernel size of 3. The multi-head attention mechanism in the model is set to 8 heads, and the hidden dimension of the feedforward network is 64. In terms of dropout settings, the dropout ratio of the attention module is 0.1, while the rest of the modules are uniformly set to 0.2.

3.3. Generation–Load Forecasting Performance

In this section, we summarize the comparison results of TCN-AD and other baseline methods on three datasets, as shown in Table 2, Table 3 and Table 4. Table 2, Table 3 and Table 4 present the prediction results for different prediction steps on the photovoltaic, wind power, and load datasets, respectively. We evaluate these six methods using point prediction metrics (MAE, RMSE) and probabilistic prediction metrics (CRPS and Winker Score).
Table 2. Forecasting results on Load datasets. The best and second best models have been shown as bold and underlined, respectively.
Table 3. Forecasting results on Solar datasets. The best and second best models have been shown as bold and underlined, respectively.
Table 4. Forecasting results on Wind datasets. The best and second best models have been shown as bold and underlined, respectively.
From Table 2, Table 3 and Table 4, it can be seen that in most cases, the predictive performance of TCN-AD is superior to other baseline methods. Specifically, we have the following observations: (1) Compared to common deep learning (GRU, LSTM) methods, TCN-AD considers multi-scale temporal characteristics and prediction uncertainty, rather than just simple sequence patterns. Traditional RNN models are prone to gradient vanishing or exploding problems when dealing with long sequences and are difficult to capture periodic features in energy data. In contrast, TCN-AD introduces an expanded convolution structure and a multi-scale feature fusion module, achieving effective modeling of different scale patterns; meanwhile, the periodic attention mechanism further enhances the ability of the model to focus on periodic information. (2) Compared with Transformer, TCN-AD exhibits strong competitiveness on all datasets. TCN-AD demonstrates a substantial performance advantage, particularly in long-term forecasting. For example, on the Load dataset at a 96-step horizon, TCN-AD achieves an MAE of 304.67, which is approximately 48% lower than Transformer’s MAE of 590.72. This superiority can be attributed to their fundamental architectural differences. While the Transformer excels at capturing global, long-range dependencies through self-attention, its focus is less tailored to the strong, local, and often deterministic patterns inherent in energy data. In contrast, the TCN in TCN-AD utilizes causal convolutions, which are inherently more efficient and effective at hierarchically extracting these local temporal features and deterministic periodic patterns. This architectural alignment with the data characteristics makes TCN-AD particularly suitable for generation–load forecasting. (3) Compared with the traditional probability prediction method DeepAR, TCN-AD has stronger expressive power in capturing uncertainty in time series. DeepAR is based on autoregressive structure and performs conditional sampling for each time step, making it difficult to capture both long-range dependencies and multi-scale features simultaneously; TCN-AD, combined with dilated convolution and multi-scale modeling mechanisms, can effectively quantify prediction uncertainty while maintaining global temporal information. (4) Compared with the load forecasting method DiffLoad, TCN-AD has better predictive performance. The performance gap is evident not only on the Load dataset but also on the Solar and Wind datasets, demonstrating TCN-AD’s robustness as a general framework. For instance, on the Solar dataset at 96 steps, TCN-AD reduces MAE by approximately 42% compared to DiffLoad. This consistent outperformance suggests that DiffLoad, while effective for load forecasting, may not fully capture the diverse temporal dynamics of renewable generation. The key conceptual advantage of TCN-AD lies in its integrated multi-scale fusion module and adaptive diffusion process. The multi-scale module explicitly models temporal variations at different scales, which is crucial for volatile renewables. Furthermore, the adaptive diffusion mechanism provides a more flexible approach to uncertainty quantification compared to potentially rigid scheduling strategies in standard diffusion models, allowing it to better model the non-stationary uncertainty in both load and generation data. (5) From the perspective of probability prediction metrics (CRPS and Winker score), TCN-AD performs well on all datasets. On the load dataset, the CRPS of TCN-AD is about 25–30% lower than other methods; on the photovoltaic dataset, the CRPS index is about 10–20% lower than the suboptimal method; on the wind power dataset, the advantage of the CRPS index for short-term forecasting is about 5%. These results demonstrate that TCN-AD not only provides accurate point predictions but also generates reliable prediction intervals and accurately quantifies prediction uncertainty. Especially at different quantiles of the Winker score, TCN-AD maintains a leading position, indicating that its generated prediction intervals have high accuracy at different confidence levels. (6) As the prediction duration increases, the prediction errors of all methods show an upward trend. This indicates that as the time window expands, the uncertainty of the prediction also increases, and errors will gradually accumulate. Under this trend, TCN-AD exhibits stronger long-term prediction stability compared to other methods, with a significantly lower increase in error compared to other models. The main reason for this advantage is that TCN-AD uses a dilated convolution structure and an adaptive diffusion model. This lets the model learn long-range dependencies better and change the noise level to fit the characteristics of temporal data. In addition, the periodic feature enhancement module further optimizes the stability of the model, enabling it to maintain high accuracy and reliability in long-term load, photovoltaic, and wind power forecasting tasks.

3.4. Parameter Analysis

In this section, we analyze the impact of hyperparameters on the predictive performance of the model. These parameters include patch length, stride length, diffusion step number, and scheduling strategy. Figure 3 shows the MAE and CRPS scores obtained using different hyperparameter values on a photovoltaic dataset. For the sake of simplicity, we report the results as the average of four predicted lengths (24, 48, 72, 96). To ensure fairness, we only change one hyperparameter per experiment and keep the rest fixed.
Figure 3. Performance of different hyper-parameters on Solar dataset.
We can observe that the patch length and stride size affect the ability of the model to learn feature information. The optimal patch size (e.g., 8–16) balances two objectives. If the patch is too small, it fails to capture long-range dependencies, leading to information loss. Conversely, an overly large patch compresses excessive information, causing redundancy and impairing local feature extraction.
The diffusion step number is crucial for defining the noise transition process. The optimal performance at 1000 steps indicates a balanced design. A smaller number of steps results in an abrupt transition, preventing the model from fully learning the data distribution. In contrast, an excessive number of steps oversmooths the data and unnecessarily increases computational complexity.
Furthermore, the adaptive scheduling strategy outperforms fixed strategies like linear scheduling. Its non-linear noise injection, guided by the sine-squared function, preserves more data structure in the early stages of diffusion. It then increases noise more aggressively later. This dynamic approach better adapts to the non-stationary and fluctuating nature of power time series, leading to superior uncertainty quantification.

3.5. Ablation Study

In this subsection, we carry out the ablation analysis to show the effectiveness of the three modules in our model. We consider three model variants as follows:
  • w/o M: the model that removes the multi-scale fusion module.
  • w/o P: the model that removes the periodic attention mechanism.
  • w/o A: the model that removes the adaptive diffusion mechanism and uses a standard diffusion schedule.
The experiments are performed on the Load dataset. The average performance is reported in Table 5. For a fair comparison, the hyperparameters of the variant models are set to be the same.
Table 5. Forecasting results on different variants on Load. The best results are marked in bold.
From the Table 5, it is evident that TCN-AD outperforms all other variants across various metrics. The removal of any module results in a decrease in forecasting accuracy, with the variant removing the adaptive diffusion mechanism (w/o A) experiencing the most significant decline. This indicates that the adaptive diffusion strategy is pivotal for enhancing probabilistic forecasting performance by allowing for more flexible and accurate modeling of uncertainty distributions compared to a standard diffusion schedule. In contrast, removing the multi-scale fusion module (w/o M) slightly weakens the temporal representation ability. And removing the periodic attention mechanism (w/o P) reduces the model’s capability to capture periodic dependencies in load data. Overall, TCN-AD has the best performance compared with other variants, which shows that the combination of those modules can improve performance.

3.6. Visualization Results

In order to visually demonstrate the predictive performance of the model, we visualized the prediction results at different time steps on the load dataset, as shown in Figure 4. The blue curve in the figure represents the ground truth, the red curve represents the model-predicted value, and the red shaded area represents the uncertainty range of the prediction, showing confidence intervals of 25%, 50%, and 75%, respectively.
Figure 4. The prediction showcases the Load datasets for different forecast lengths: (a) 24 steps; (b) 48 steps; (c) 72 steps; (d) 96 steps.
From Figure 4, it can be observed that as the prediction duration increases, the model can still capture the trend of load changes well. In the 24 time step prediction (Figure 4a), the model prediction is highly consistent with the true value, with low uncertainty. When the prediction length is extended to 48 time steps (Figure 4b), the model can still accurately predict the trend of load decline and rebound. In longer prediction periods (72 and 96 time steps, Figure 4c,d), although the uncertainty has increased, the model can still accurately capture the periodic changes and peak-valley characteristics of the load.
In addition, the width of the prediction interval reflects the inherent uncertainty of the system. Narrow intervals correspond to stable operating conditions with predictable generation and demand. Wider intervals appear during periods of rapid meteorological change or load fluctuation, indicating higher operational uncertainty. Such information can support decision-making in generation scheduling, reserve planning, and risk-aware operation of power systems.

4. Conclusions

In this paper, we propose TCN-AD, a novel probabilistic forecasting framework for generation–load prediction that integrates temporal convolutional networks with an adaptive diffusion model. The model effectively captures complex temporal dynamics and quantifies prediction uncertainty through its TCN-based encoder for multi-scale feature extraction and an adaptive diffusion process for flexible noise scheduling. Experimental results on multiple real-world datasets demonstrate that TCN-AD achieves superior performance in both deterministic and probabilistic forecasting compared to state-of-the-art baselines.
While TCN-AD shows strong forecasting capabilities, the proposed model has a higher computational cost during training compared to traditional deep learning models like GRU and LSTM, primarily due to the iterative denoising process. Furthermore, while the model effectively captures temporal dependencies, it does not explicitly incorporate external physical knowledge or the complex spatial couplings between different nodes in a power network. Future work will focus on developing a more lightweight diffusion process and integrating graph-based structures to model spatio-temporal correlations in multi-node power systems. Furthermore, we intend to explore the application of TCN-AD in practical power system operations, including optimal scheduling and real-time balancing, to validate its value in real-world energy management scenarios.

Author Contributions

Conceptualization, D.L. and D.F.; Data curation, Y.Z. and F.J.; Formal analysis, T.W.; Funding acquisition, D.L.; Investigation, Y.Z. and F.J.; Methodology, D.L. and T.W.; Project administration, D.F.; Resources, D.F. and F.J.; Software, T.W. and Y.Z.; Supervision, D.L. and D.F.; Validation, T.W. and Y.Z.; Visualization, Y.Z.; Writing—original draft, T.W.; Writing—review & editing, D.L., D.F. and F.J. All authors have read and agreed to the published version of the manuscript.

Funding

This work supported by The National Major Scientific Research Instrument Development Project of China (62027819); Special Project for Guiding the Transformation of Scientific and Technological Achievements in Shanxi Province (202204021301041); Key Research and Development Program of Shanxi Province (202302010101005); Science and Technology Project of State Grid Information&Telecommunication CO, OF, SEPC (52051C24000H): Research on Intelligent Distribution Network Operation Optimization Based on Deep Learning and Big Data Deduction Technology; The Science and Technology Innovation project of universities in Shanxi Province (2023L242); The Science and Technology Innovation project of universities in Shanxi Province (2024L565).

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Liu, B.; Zhu, Z.; Tan, Z.; Hu, C. Modeling and forecasting air conditioning loads using BP neural network. J. Phys. Conf. Ser. 2024, 2903, 012005. [Google Scholar] [CrossRef] [Scilit]
  2. Ma, X.; Peng, B.; Ma, X.; Tian, C.; Yan, Y. Multi-timescale optimization scheduling of regional integrated energy system based on source-load joint forecasting. Energy 2023, 283, 129186. [Google Scholar] [CrossRef] [Scilit]
  3. Sun, Z.; Von Krannichfeldt, L.; Wang, Y. Trading and valuation of day-ahead load forecasts in an ensemble model. IEEE Trans. Ind. Appl. 2023, 59, 2686–2695. [Google Scholar] [CrossRef] [Scilit]
  4. Lehtola, T. Solar energy and wind power supply supported by battery storage and Vehicle to Grid operations. Electr. Power Syst. Res. 2024, 228, 110035. [Google Scholar] [CrossRef] [Scilit]
  5. Guo, Y.; Ming, B.; Huang, Q.; Yang, Z.; Kong, Y.; Wang, X. Variation-based complementarity assessment between wind and solar resources in China. Energy Convers. Manag. 2023, 278, 116726. [Google Scholar] [CrossRef] [Scilit]
  6. Rao, B.N.; Praveen, M.; Babu, D.R. A Review on the Role of AI in Optimizing Renewable Energy Grid Management. Int. J. Sci. Res. Eng. Manag. 2024, 8, 1–13. [Google Scholar]
  7. Liu, G.; Bai, Y.; Wen, K.; Wang, X.; Liu, Y.; Liang, G.; Zhao, J.; Dong, Z.Y. Lfllm: A large language model for load forecasting. TechRxiv 2024. [Google Scholar] [CrossRef] [Scilit]
  8. Ullah, I.; Hasanat, S.M.; Aurangzeb, K.; Alhussein, M.; Rizwan, M.; Anwar, M.S. Multi-horizon short-term load forecasting using hybrid of LSTM and modified split convolution. PeerJ Comput. Sci. 2023, 9, e1487. [Google Scholar] [CrossRef] [Scilit]
  9. Fan, G.F.; Wei, H.Z.; Huang, H.P.; Hong, W.C. Application of ensemble empirical mode decomposition with support vector regression and wavelet neural network in electric load forecasting. Energy Sources Part B Econ. Plan. Policy 2025, 20, 2468687. [Google Scholar] [CrossRef] [Scilit]
  10. Cavalcante, L.; Bessa, R.J. Solar power forecasting with sparse vector autoregression structures. In Proceedings of the 2017 IEEE Manchester PowerTech, Manchester, UK, 18–22 June 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 1–6. [Google Scholar]
  11. Karim, S.A.; Alwi, S.A. Electricity load forecasting in UTP using moving averages and exponential smoothing techniques. Appl. Math. Sci. 2013, 7, 4003–4014. [Google Scholar] [CrossRef] [Scilit]
  12. Magadum, R.B.; Bilagi, S.; Bhandarkar, S.; Patil, A.; Joshi, A. Short-term wind power forecast using time series analysis: Auto-regressive moving-average model (ARMA). In Recent Developments in Electrical and Electronics Engineering: Select Proceedings of ICRDEEE 2022; Springer: Berlin/Heidelberg, Germany, 2023; pp. 319–341. [Google Scholar]
  13. Pasari, S.; Shah, A. Time series auto-regressive integrated moving average model for renewable energy forecasting. In Enhancing Future Skills and Entrepreneurship: 3rd Indo-German Conference on Sustainability in Engineering; Springer International Publishing: Cham, Switzerland, 2020; pp. 71–77. [Google Scholar]
  14. Haddad, M.; Nicod, J.; Mainassara, Y.B.; Rabehasaina, L.; Al Masry, Z.; Péra, M. Wind and solar forecasting for renewable energy system using sarima-based model. In Proceedings of the International Conference on Time Series and Forecasting, Granada, Spain, 25–27 September 2019. [Google Scholar]
  15. Zendehboudi, A.; Baseer, M.A.; Saidur, R. Application of support vector machine models for forecasting solar and wind energy resources: A review. J. Clean. Prod. 2018, 199, 272–285. [Google Scholar] [CrossRef] [Scilit]
  16. Alabdeli, H.; Rafi, S.; Rao, D.D.; Nagendar, Y. Photovoltaic Power Forecasting Using Support Vector Machine and Adaptive Learning Factor Ant Colony Optimization. In Proceedings of the 2024 Third International Conference on Distributed Computing and Electrical Circuits and Electronics (ICDCECE), Ballari, India, 26–27 April 2024; IEEE: Piscataway, NJ, USA, 2024; pp. 1–5. [Google Scholar]
  17. Fan, G.F.; Zhang, L.Z.; Yu, M.; Hong, W.C.; Dong, S.Q. Applications of random forest in multivariable response surface for short-term load forecasting. Int. J. Electr. Power Energy Syst. 2022, 139, 108073. [Google Scholar] [CrossRef] [Scilit]
  18. Abumohsen, M.; Owda, A.Y.; Owda, M. Electrical load forecasting based on random forest, XGBoost, and linear regression algorithms. In Proceedings of the 2023 International Conference on Information Technology (ICIT), Kyoto, Japan, 14–17 December 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 25–31. [Google Scholar]
  19. Aseeri, A.O. Effective RNN-based forecasting methodology design for improving short-term power load forecasts: Application to large-scale power-grid time series. J. Comput. Sci. 2023, 68, 101984. [Google Scholar] [CrossRef] [Scilit]
  20. 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]
  21. Zhao, Z.; Yun, S.; Jia, L.; Guo, J.; Meng, Y.; He, N.; Li, X.; Shi, J.; Yang, L. Hybrid VMD-CNN-GRU-based model for short-term forecasting of wind power considering spatio-temporal features. Eng. Appl. Artif. Intell. 2023, 121, 105982. [Google Scholar] [CrossRef] [Scilit]
  22. Mounir, N.; Ouadi, H.; Jrhilifa, I. Short-term electric load forecasting using an EMD-BI-LSTM approach for smart grid energy management system. Energy Build. 2023, 288, 113022. [Google Scholar] [CrossRef] [Scilit]
  23. Tian, F.; Fan, X.; Wang, R.; Qin, H.; Fan, Y. A Power Forecasting Method for Ultra-Short-Term Photovoltaic Power Generation Using Transformer Model. Math. Probl. Eng. 2022, 2022, 9421400. [Google Scholar] [CrossRef] [Scilit]
  24. Nascimento, E.G.S.; de Melo, T.A.; Moreira, D.M. A transformer-based deep neural network with wavelet transform for forecasting wind speed and wind energy. Energy 2023, 278, 127678. [Google Scholar] [CrossRef] [Scilit]
  25. Fan, J.; Zhuang, W.; Xia, M.; Fang, W.; Liu, J. Optimizing Attention in a Transformer for Multihorizon, Multienergy Load Forecasting in Integrated Energy Systems. IEEE Trans. Ind. Inform. 2024, 20, 10238–10248. [Google Scholar] [CrossRef] [Scilit]
  26. Li, S.; Xiong, H.; Chen, Y. Diffplf: A conditional diffusion model for probabilistic forecasting of ev charging load. Electr. Power Syst. Res. 2024, 235, 110723. [Google Scholar] [CrossRef] [Scilit]
  27. Peng, H.; Sun, H.; Luo, S.; Zuo, Z.; Zhang, S.; Wang, Z.; Wang, Y. Diffusion-based conditional wind power forecasting via channel attention. IET Renew. Power Gener. 2024, 18, 306–320. [Google Scholar] [CrossRef] [Scilit]
  28. Capel, E.H.; Dumas, J. Denoising diffusion probabilistic models for probabilistic energy forecasting. In Proceedings of the 2023 IEEE Belgrade PowerTech, Belgrade, Serbia, 25–29 June 2023; pp. 1–6. [Google Scholar]
  29. Miraki, A.; Parviainen, P.; Arghandeh, R. Probabilistic forecasting of renewable energy and electricity demand using Graph-based Denoising Diffusion Probabilistic Model. Energy AI 2025, 19, 100459. [Google Scholar] [CrossRef] [Scilit]
  30. Rastgoo, R.; Amjady, N.; Shah, R.; Muyeen, S. A Diffusion-Based Probabilistic Ultra-Short-Term Solar Power Prediction Using the Sky Image Sequences. IEEE Access 2025, 13, 149532–149553. [Google Scholar] [CrossRef] [Scilit]
  31. Nie, Y.; Nguyen, N.H.; Sinthong, P.; Kalagnanam, J. A time series is worth 64 words: Long-term forecasting with transformers. arXiv 2022, arXiv:2211.14730. [Google Scholar]
  32. Salinas, D.; Flunkert, V.; Gasthaus, J.; Januschowski, T. DeepAR: Probabilistic forecasting with autoregressive recurrent networks. Int. J. Forecast. 2020, 36, 1181–1191. [Google Scholar] [CrossRef] [Scilit]
  33. Wang, Z.; Wen, Q.; Zhang, C.; Sun, L.; Wang, Y. DiffLoad: Uncertainty quantification in electrical load forecasting with the diffusion model. IEEE Trans. Power Syst. 2024, 40, 1777–1789. [Google Scholar] [CrossRef] [Scilit]
  34. Cho, K.; Van Merriënboer, B.; Gulcehre, C.; Bahdanau, D.; Bougares, F.; Schwenk, H.; Bengio, Y. Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv 2014, arXiv:1406.1078. [Google Scholar] [CrossRef] [Scilit]
  35. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit]
  36. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998. [Google Scholar]
  37. Matheson, J.E.; Winkler, R.L. Scoring rules for continuous probability distributions. Manag. Sci. 1976, 22, 1087–1096. [Google Scholar] [CrossRef] [Scilit]
  38. Wang, C.; Qin, D.; Wen, Q.; Zhou, T.; Sun, L.; Wang, Y. Adaptive probabilistic load forecasting for individual buildings. iEnergy 2022, 1, 341–350. [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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.