A method and device for short-term load interval prediction of a thermal power unit
By combining domain adversarial neural networks and block time series transformers with Huber norm to improve the loss function, the problems of insufficient generalization ability and unstable training in cross-unit load forecasting of thermal power units are solved, realizing efficient cross-unit load interval forecasting and meeting the accuracy requirements of power grid dispatching.
Patent Information
- Application Number
- CN202611325483.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies for load forecasting of thermal power units suffer from insufficient generalization ability across units and unstable training. In particular, the prediction error of traditional models increases significantly under different models and operating conditions, failing to meet the accuracy requirements of power grid dispatch.
A domain adversarial neural network combined with a block time series transformer is used to extract domain-invariant features across generating units, and a joint loss function is constructed by improving the quantile loss using the Hubell norm to achieve cross-generator load range prediction.
It can output load probability prediction intervals at different confidence levels without the need for target unit data labels, which improves the stability of model training and the accuracy of cross-unit prediction, reduces data collection and modeling costs, and solves the problems of weak generalization ability and unstable training.
Smart Images

Figure CN123162779A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of short-term load forecasting technology for thermal power units, specifically relating to a method and equipment for forecasting short-term load intervals of thermal power units. Background Technology
[0002] As the core power source for grid peak shaving and power supply, accurate short-term load forecasting of thermal power units plays a crucial role in grid safety dispatch, economic operation of units, and power generation planning. Deep learning-based time-series forecasting methods have been widely applied in the field of thermal power unit load forecasting. However, in actual engineering scenarios, the operating characteristics of different models and under different operating conditions of thermal power units vary. Traditional forecasting models can only maintain high accuracy under single unit and fixed operating conditions. When directly transferred to target units that were not trained, the prediction error increases significantly, indicating insufficient generalization ability. Currently, mainstream solutions often employ domain generalization algorithms such as transfer learning and domain adversarial networks to alleviate the domain shift problem. These methods can complete model transfer without target unit labels, adapting to the current situation in engineering where target unit data is missing and labels are difficult to obtain.
[0003] Chinese patent publication number CN121965508A, entitled "A Method, System, Equipment, and Medium for Short-Term Load Forecasting of Thermal Power Units Based on Gaussian Weighted Domain Generalization Network," describes a patent application that uses a Gaussian mixture model to fit the probability distribution of first operating data to obtain a probability density function, dividing the first operating data into Q time-series subdomains; constructing a domain adversarial neural network framework and building soft label vectors; calculating the joint loss function and determining the parameters of the domain adversarial neural network framework; and outputting the short-term load forecast result of the target unit based on the real-time operating data of the target unit. However, this patent application cannot solve the problem of cross-domain distribution offset caused by differences in equipment characteristics and operating conditions between different thermal power units. Summary of the Invention
[0004] To overcome the problems existing in the prior art, the present invention aims to provide a method and device for predicting short-term load intervals of thermal power units. The present invention learns cross-unit domain-invariant features by combining a domain adversarial neural network with a block time series transformer feature extractor, and improves the quantile loss using the Hubell norm to construct a joint loss function. This solves the problems of insufficient cross-unit generalization ability of traditional models and training instability caused by the non-differentiability of the standard quantile loss zero point. It achieves the goal of outputting load probability prediction intervals at different confidence levels without requiring target domain labels.
[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows: In a first aspect, the present invention provides a method for predicting short-term load intervals of thermal power units, comprising the following steps: Obtain historical operating data and corresponding active power load labels of multi-source domain thermal power units to construct a model training dataset; A domain generalization model based on a domain adversarial neural network was built. The model uses a block time series transformer as a feature extractor module and learns cross-unit domain invariant features through the domain adversarial training mechanism of the domain adversarial neural network. By combining the Hubel norm with the quantile loss, we obtain the Hubel-quantile loss. We then combine this with the domain classification loss to construct a joint loss function. Finally, we train the domain adversarial neural network end-to-end to obtain the trained load interval prediction model. The real-time operating data of thermal power units in the target domain is input into the trained model, and the short-term load probability prediction interval of thermal power units at different confidence levels is output.
[0006] Optionally, data cleaning, time series construction, and feature selection are performed on the original operating data before constructing the model training dataset; the domain generalization model training based on the domain adversarial neural network uses only source domain unit data throughout the entire process.
[0007] Optionally, the feature extractor module includes: a time-series segmentation module, used to segment the original long time-series data into multiple local subsequence segments to compress the sequence length and retain local trend information; a local attention module, used to perform self-attention calculation on the segmented segments to capture the long-range dependencies and fluctuation correlations between different time segments; and a feature mapping module, used to linearly project the high-dimensional abstract features output by the attention module to the target dimension required by the downstream task.
[0008] Optionally, the domain adversarial neural network includes: a feature extractor for extracting temporal features from input data and being motivated to learn domain-invariant representations across units under adversarial training of the domain classifier; a load interval predictor for receiving features output by the feature extractor, outputting load prediction values at different quantiles through quantile regression, and generating prediction intervals with corresponding confidence levels; a domain classifier for receiving features output by the feature extractor, determining which source domain unit the feature comes from, and guiding the feature extractor to learn domain-invariant features during adversarial training; and a gradient inversion layer, which is disposed between the domain-invariant feature extractor and the domain classifier, for inverting the gradient of the domain classification loss during backpropagation and then feeding it back to the feature extractor, so that the feature extractor generates domain-invariant features that the domain classifier cannot distinguish.
[0009] Optionally, the Hubel-quantile loss calculation formula is as follows: Define Hubell's loss norm:
[0010] The quantile loss of the fused Hubell norm is:
[0011] In the formula: ε is the Huber threshold; For load parameters In the The values in each sample The load forecast value is the value at the corresponding quantile. Let be the quantile, and i be the corresponding sample number.
[0012] Optionally, the joint loss function is a weighted combination of prediction loss and domain classification loss, as shown in the following formula:
[0013] in, For the joint loss function, For the improved Huber-Pinball loss, For the joint loss weighting parameters, Domain classification loss; The domain classification loss formula is:
[0014] in, It is a one-hot vector representing the true domain label of the sample. It is the probability that a sample k belongs to the m-th domain, predicted by the domain classifier.
[0015] Secondly, the present invention provides a short-term load range prediction system for thermal power units, comprising: The data acquisition module is used to acquire historical operating data of multi-source thermal power units and corresponding active power load labels to build a model training dataset. The domain adversarial neural network module is used to build a domain generalization model based on the domain adversarial neural network. The model uses a block time series transformer as a feature extractor module and learns cross-unit domain invariant features through the domain adversarial training mechanism of the domain adversarial neural network. The training module is used to combine the Hubel norm with the quantile loss to obtain the Hubel-quantile loss, and to construct a joint loss function by combining it with the domain classification loss. The domain adversarial neural network is trained end-to-end to obtain the trained load interval prediction model. The prediction module is used to input real-time operating data of thermal power units in the target domain into the trained model and output the short-term load probability prediction range of thermal power units at different confidence levels.
[0016] Thirdly, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the short-term load range prediction method for thermal power units.
[0017] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for predicting short-term load ranges of thermal power units.
[0018] Fifthly, the present invention provides a computer program product including a computer-readable medium, wherein the computer-readable medium contains computer-readable program code, the program code executing the short-term load range prediction method for thermal power units.
[0019] Compared with the prior art, the present invention has the following beneficial effects: This invention proposes a method and device for predicting short-term load intervals of thermal power units. It uses a block time series transformer as the backbone for time-series feature extraction and combines it with a domain adversarial neural network to construct a domain generalization model without target data, enabling cross-unit load interval prediction without target unit data. By introducing the Hubel norm to improve the quantile loss, a smooth quantile loss is obtained, solving the inherent defects of traditional quantile loss, such as no gradient at the error zero point and susceptibility to training oscillations, thus improving the stability and convergence efficiency of model training. Based on this, a joint loss function composed of Hubel-quantile loss prediction loss and domain classification loss is constructed. During adversarial training, this function simultaneously considers prediction accuracy and cross-unit domain-invariant feature learning capabilities, achieving feature distribution alignment under different units and operating conditions. The model training process uses only source domain unit data. After training, it can directly output load probability prediction intervals at different confidence levels for the target unit without additional annotation and fine-tuning. This reduces the data acquisition and modeling costs in engineering applications and effectively improves the accuracy and robustness of cross-unit and cross-operating condition load interval predictions. It also solves the problems of weak generalization ability, unstable training, and insufficient reliability of interval predictions in existing methods. Attached Figure Description
[0020] The accompanying drawings described herein are for illustrative purposes only and are not intended to limit the scope of the invention in any way.
[0021] In the attached diagram: Figure 1 shows a comparison of the Hubel-quantile loss and standard quantile loss curves; where (a) is the standard quantile loss function curve; and (b) is the Hubel-quantile loss function curve. Figure 2 This is a network structure diagram of the feature extractor block time series transformer in an embodiment of the present invention; Figure 3 This is a block diagram of a domain adversarial neural network in an embodiment of the present invention; Figure 4 This is an overall block diagram of the short-term load range prediction method for thermal power units in an embodiment of the present invention; Figure 5 is a comparison of short-term load prediction results under different models in test group 1 and test group 2 in the embodiments of the present invention; where (a) is the interval prediction result of the smooth domain generalization network; (b) is the interval prediction result of the domain adversarial neural network; (c) is the interval prediction result of the generative adversarial network; and (d) is the interval prediction result of the meta-learning domain generalization network. Figure 6 is a comparison of the t-distribution random neighborhood embedding dimensionality reduction of the feature distribution of different models for migration prediction across units in the embodiments of the present invention; (a) is the initial feature distribution map; (b) is the feature distribution map after alignment by the domain adversarial neural network; (c) is the feature distribution map after alignment by the smooth domain generalization network. Figure 7 This is a comparison chart of the convergence of Hubel-quantile loss and standard quantile loss functions in an embodiment of the present invention. Detailed Implementation
[0022] To enable those skilled in the art to better understand the technical solutions of this invention, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this invention.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0024] It should be noted that any reference signs placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. This application can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
[0025] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0026] The present invention will now be described in detail with reference to the accompanying drawings.
[0027] In load interval forecasting tasks, the industry commonly uses quantile regression combined with pinball loss to output probability intervals, thereby quantifying forecast uncertainty. However, the traditional pinball loss function lacks a gradient at the zero-point error where the predicted value equals the true value. This leads to training oscillations and slow convergence during model backpropagation, severely impacting the training effect and final prediction accuracy of the domain generalization model. Without optimizing for the inherent defects of pinball loss, it's difficult to balance cross-unit generalization capability with model training stability. The output load forecast intervals often exhibit problems such as excessively wide intervals and low confidence matching, failing to fully meet the accuracy and reliability requirements of refined power grid dispatch for load interval forecasting. Therefore, researching a short-term load interval forecasting method for thermal power units that is adaptable to multiple units and operating conditions, while simultaneously addressing the gradient defect of the loss function and achieving stable training, has significant engineering application value.
[0028] The present invention provides a method for predicting short-term load intervals of thermal power units, comprising the following steps: Obtain historical operating data and corresponding active power load labels of multi-source domain thermal power units to construct a model training dataset; A domain generalization model based on a domain adversarial neural network was built. The model uses a block time series transformer as a feature extractor module and learns cross-unit domain invariant features through the domain adversarial training mechanism of the domain adversarial neural network. By combining the Hubel norm with the quantile loss, we obtain the Hubel-quantile loss. We then combine this with the domain classification loss to construct a joint loss function. Finally, we train the domain adversarial neural network end-to-end to obtain the trained load interval prediction model. The real-time operating data of thermal power units in the target domain is input into the trained model, and the short-term load probability prediction interval of thermal power units at different confidence levels is output.
[0029] This invention uses Huber's norm to improve the quantile loss and construct a joint loss function, which solves the problems of insufficient generalization ability of traditional models across units and the instability of training caused by the non-differentiability of the zero point of the standard quantile loss. It realizes the goal of outputting the load probability prediction interval under different confidence levels without the need for target domain labels.
[0030] Example 1 This embodiment of a method for predicting short-term load intervals of thermal power units includes the following steps: Obtain historical operating data and corresponding active power load labels of multi-source domain thermal power units to construct a model training dataset; A domain generalization model based on Domain-Adversarial Neural Network (DANN) was constructed. This model uses Patch Time Series Transformer (PatchTST) as the feature extractor module and learns cross-unit domain invariant features through the domain adversarial training mechanism of DANN. The Huber norm is introduced to improve the pinball loss, resulting in the Huber-quantile loss, which solves the problems of no gradient at zero and unstable training in the traditional pinball loss. A joint loss function is constructed by combining the domain classification loss, and the above domain adversarial neural network is trained end-to-end to obtain the trained load interval prediction model. The real-time operating data of thermal power units in the target domain is input into the trained model, and the short-term load probability prediction interval of thermal power units at different confidence levels is output.
[0031] Data cleaning, time series construction, and feature selection are performed on the original operating data, and then the model training dataset is constructed.
[0032] The training of the domain generalization model based on the domain adversarial neural network uses only source domain unit data throughout the entire process.
[0033] The PatchTST network includes: a temporal segmentation module, used to divide the original long time-series data into multiple local subsequence segments to compress the sequence length and retain local trend information; a local attention module, used to perform self-attention calculation on the segmented segments to capture long-range dependencies and fluctuation correlations between different time segments; and a feature mapping module, used to linearly project the high-dimensional abstract features output by the attention module to the target dimension required by downstream tasks (load prediction and domain classification).
[0034] The domain adversarial neural network includes: a feature extractor, used to extract temporal features from input data and be motivated to learn domain-invariant representations across units under adversarial training of the domain classifier; a load interval predictor, used to receive features output by the feature extractor, output load prediction values at different quantiles through quantile regression, and generate prediction intervals with corresponding confidence levels; a domain classifier, used to receive features output by the feature extractor, determine which source domain unit the feature comes from, and guide the feature extractor to learn domain-invariant features during adversarial training; and a gradient reversal layer (GRL) is set between the domain-invariant feature extractor and the domain classifier, used to invert the gradient of the domain classification loss during backpropagation and then backpropagate it to the feature extractor, so that the feature extractor generates domain-invariant features that the domain classifier cannot distinguish.
[0035] The Hubel-quantile loss calculation formula is as follows: Define the Huber norm:
[0036]
[0037] In the formula: ε is the Huber threshold, used to distinguish the mean squared error (MSE) intervals; For load parameters In the The values in each sample The load forecast value is the value at the corresponding quantile. Here, ε represents the quantile, and i represents the corresponding sample number. The value of ε ranges from 0.1 to 1.35. In Huber loss, ε = 1.35 is the standard value for achieving 95% statistical efficiency.
[0038] The improved Huber-Pinball loss eliminates the defect of traditional Pinball loss being non-differentiable at the zero point of error, thus improving the stability of model training.
[0039] The joint loss function is a weighted combination of prediction loss and domain classification loss, and the formula is as follows:
[0040] in, For the joint loss function, For the improved Huber-Pinball loss, For the joint loss weighting parameters, Domain classification loss; The value of λ ranges from 0.1 to 1.0. In the early stage of training, λ=0, so that the model prioritizes learning the prediction task. As training progresses, λ gradually increases to the upper limit of 1.0, gradually strengthening the domain adversarial strength.
[0041] The domain classification loss formula is:
[0042] in, It is a one-hot vector representing the true domain label of the sample. It is the probability that a sample k belongs to the m-th domain, predicted by the domain classifier.
[0043] The load interval predictor, based on the quantile regression principle, outputs load prediction values corresponding to different quantiles, thereby generating load probability prediction intervals with corresponding confidence levels. After training, the operating data of the target domain thermal power units are input into the domain generalization network model, which outputs short-term load prediction results for the target domain thermal power units.
[0044] Example 2 Specifically, this embodiment provides a method for predicting short-term load intervals for thermal power units, see [link to relevant documentation]. Figure 4 This includes the following steps: S1: Obtain operating data from multiple thermal power units, including time-series operating parameters, equipment status parameters, and generator active power load tags.
[0045] The operating data in step S1 is the real-time operating data of the thermal power unit at a 15-minute scale, including generator active power, total coal quantity, main / reheat steam temperature, flue gas oxygen content and SCR (Selective Catalytic Reduction) inlet NOx (nitrogen oxides) concentration related to combustion optimization and environmental monitoring, and multiple signals such as coal flow rate of multiple coal mills that determine the combustion rate.
[0046] S2: Perform data preprocessing on the original data and reduce the data dimensionality using the Pearson coefficient.
[0047] Step S2 preprocesses and reduces the dimensionality of the raw data collected from the SIS (Supervisory Information System) to improve the robustness and generalization ability of the parameter prediction model. The specific steps of S2 are as follows: S2.1: Use the built-in MATLAB (Matrix Laboratory) function isnan (is Not aNumber, a function for detecting non-numeric values) to detect and remove missing values from the original dataset.
[0048] S2.2: Identify and filter out non-steady-state values and abnormal noise based on the 3σ (standard deviation) criterion to ensure the stability of the data distribution.
[0049] S2.3: Perform normalization on the cleaned dataset to ensure that all feature dimensions fall within a uniform dimension, facilitating neural network training. The normalization formula is as follows:
[0050] in: This represents the original value of the a-th sample in the running parameter vector A; This represents the normalized output value of the sample point; i represents the i-th feature, used to distinguish different feature variables. min(A) and max(A) represent the minimum and maximum values of all samples in vector A, respectively; this normalization method linearly maps all data to the interval [0,1] to eliminate the influence of dimensions and accelerate model convergence.
[0051] S2.4: For the processed data, calculate the Pearson coefficients of other parameters compared to the load parameters used for early warning, and select the groups with the highest correlation as input items for the subsequent parameter prediction model training set. The Pearson coefficient calculation formula is as follows:
[0052] in, For parameters Correlation coefficient with load parameters (i=1,2,3,…,n) is a parameter in the input parameters. In the The values in each sample For load parameters In the The values in each sample for Parameters The mean of the sample For load parameters The average of the samples.
[0053] Step S3: To address the shortcomings of conventional pinball loss, such as non-differentiability at the error zero and lack of effective gradients, this method introduces the Huber norm to improve it, constructing the Huber-pinball quantile loss, which includes the following steps: Conventional Pinball Loss Formula
[0054] In the formula: For quantiles, For the first The true load value of each sample The load forecast value is the value at the corresponding quantile; such as Figure 2 As shown, the standard Pinball loss function at the required value = There is an inflection point. This characteristic causes a direct conflict in differentiability between the objective function and the optimizer's optimization objective during model training, becoming the main bottleneck restricting training effectiveness.
[0055] To address this issue, this embodiment introduces the Huber norm. First, the Huber norm is defined as follows:
[0056] In the formula: ε is the Huber threshold, used to distinguish error intervals; where This represents the transition threshold between the L1 norm and the L2 norm. When the prediction error is small, the Huber norm exhibits a quadratic function form (L2 norm), possesses global differentiability, and eliminates the non-differentiable point at zero error in the standard Pinball loss function. When the error is large, the Huber norm exhibits linear behavior (L1 norm), maintaining robustness to outliers while adapting to the highly volatile load characteristics of coal-fired power plants.
[0057] Based on the Huber norm, this embodiment further constructs a complete approximate Pinball loss function formula, ensuring differentiability of the function while retaining the asymmetric penalty logic of the standard Pinball loss function. The final expression of the Huber-Pinball loss function is:
[0058] when overestimated At that time, the Huber norm will be based on Perform weighted average; when underestimate At that time, then according to Weighting is applied. This design ensures differentiated penalty mechanisms across different quantile intervals, thus meeting the quantile accuracy requirements for probability prediction. From the perspective of differentiability verification, when When = 0, its derivative is 0, making the loss function differentiable at this critical point. When > When the derivative of this loss function is exactly the same as the standard pinball loss function, it ensures differentiability throughout the entire domain. When 0 < ≤ Within the transition interval, the gradient changes continuously and smoothly, with no non-differentiable points. The improved loss function not only maintains differentiability throughout its entire domain but also fully preserves the original function's asymmetric penalty mechanism and its ability to represent uncertainty. The loss curves before and after the improvement are shown in Figure 1.
[0059] S4: Feature distribution alignment based on domain adversarial neural networks. PatchTST is used as the feature extractor, combined with a domain adversarial neural network (DANN) to achieve feature distribution alignment for different units.
[0060] S4.1: PatchTST as a feature extractor This module employs a block-based attention architecture to extract features from long-series operating data of thermal power units. First, the original time-series data is divided into blocks using a sliding window. Let the original input time-series length be L, the length of a single block be P, the length of a single block P be the time step, and the sliding step size be T. The final expression for the number of time-series blocks M is:
[0061] PatchTST decomposes long time series into multiple local subsequences based on a block-based mechanism, and completes feature modeling by combining local attention. Unlike RNN-like models, which are prone to gradient vanishing due to sequential computation, this model supports parallel computing and constrains attention computation within the block dimension, avoiding the quadratic computational complexity of the standard Transformer. By employing an overlapping block approach to preserve temporal continuity, it can fully capture the gradual changes in load and long-term dependencies of thermal power units, efficiently mining the temporal features of unit operation. Its network structure is as follows: Figure 2 As shown.
[0062] S4.2: Align the feature distribution of source domain units using DANN Domain Adversarial Neural Networks (DANNs) are a widely adopted framework in transfer learning, consisting of three main modules: feature extractors... Predictor and domain classifier This model draws on the principles of Generative Adversarial Networks (GANs), in... and The mechanism for establishing an adversarial relationship between them is achieved through a gradient inversion layer (GRL). During the backpropagation phase, it acts on... The domain classification loss gradient will be multiplied by a negative coefficient. This reverses its propagation direction, making Generate pairs Indistinguishable domain-invariant features. By optimizing parameters, Able to extract high-order representations from source domain input . The learned features are supervised and predicted using source domain labels, and the prediction accuracy is maximized by updating the parameters. It can identify the source domain to which each feature vector belongs; by updating the parameters, it can promote... Generates domain-invariant representations. Its network structure is as follows: Figure 3 As shown.
[0063] S4.3: Gradient Reversal Layer (GRL): A gradient reversal layer is inserted between the feature extractor and the neighborhood discriminator. During forward propagation, features are directly passed, and during backward propagation, the gradient is multiplied by a negative coefficient. This enables adversarial training between the feature extractor and the domain discriminator. Adjust dynamically as training progresses:
[0064] Where h = p / 1000, p represents the number of training iterations, and the value ranges from 0 to 1000.
[0065] S5: Define the joint loss function, including prediction loss. Sum of Domain Classification Loss The training process employs an alternating optimization strategy.
[0066] S5.1: The prediction loss function is:
[0067] in, For predicting the loss function, An improved Huber-Pinball loss function designed in S3; For the i-th sample of running parameters in the preprocessing running data, To input the i-th sample of the running parameters from the preprocessed running data into the corresponding quantile obtained by the predictor in the domain adversarial neural network framework. The output below, This represents the total number of samples in the preprocessed running data.
[0068] S5.2: In the domain generalization task, the domain classifier performs two key functions: identifying the domain origin of the data and guiding feature learning through adversarial training. This module processes high-dimensional features from the feature extractor, transforms them into a high-dimensional space using a multilayer perceptron (MLP), and then generates domain probabilities using the softmax (normalization exponent) function. During adversarial training, the gradient inversion layer (GRL) inverts the gradient of the domain classification loss (scaling factor 0.5) during backpropagation. This mechanism enables the feature extractor to produce domain-invariant features—while maintaining discriminative power, it aligns the distributions between source domains, ultimately improving the generalization ability to unseen target domains.
[0069] Its loss function for:
[0070] in, It is a one-hot vector representing the true domain label of the sample. It is the probability predicted by the domain classifier that sample k belongs to the m-th domain. This represents the total number of categories in the domain.
[0071] S5.3: Joint Loss Function: The total loss consists of regression loss and domain classification loss.
[0072] The total loss function consists of two key parts: predicted loss and loss prediction. Ensure the accuracy of the main prediction task; adversarial domain loss. Facilitating feature distribution alignment between source domains through domain classifiers and gradient inversion layers (GRL) , and Update by jointly minimizing the total loss L:
[0073] in, and These are the learnable parameters for the feature extractor, predictor, and domain classifier, respectively. The learning rate represents the model's training rate; specifically, in this embodiment, the learning rate is 0.001. Adversarial training is implemented through a gradient inversion layer (GRL), driving a minimax game to align the feature distribution, ultimately enabling the model to learn domain-invariant features with high generalization ability. After training, the domain-invariant features can be directly used to predict the target domain, without the target domain needing to participate in any stage of training.
[0074] S6: Input the target domain unit operation data into the trained model and output the short-term load forecast results of the target domain units; S7: Visualize the domain feature alignment effect using t-SNE features, and evaluate the prediction performance using metrics such as PICP (Prediction interval coverage probability), PIAW (Prediction interval average width), and AQL (Average quantile loss).
[0075] S8: Compare training stability through convergence analysis.
[0076] Example 3 This embodiment uses actual unit load data from a thermal power plant as experimental data for verification. Units 1 and 2 have a rated capacity of 600 MW, and units 3 and 4 have a rated capacity of 660 MW. Data is sampled at 15-minute intervals, resulting in 96 equidistant sampling points per day. To evaluate the model's domain-invariant feature learning ability and cross-unit generalization performance, units 1 and 2 are selected as the source domain for each experiment, and the other two units are selected as the target domain. The power generation load of a thermal power unit is affected by various factors, such as fuel supply, operating status, and grid dispatch requirements. To identify the most relevant variables, correlation analysis was performed on the data obtained from the monitoring information system. Features with high correlation to power generation load were selected as model inputs, and the selected influencing features and their correlation coefficients are summarized in Table 1.
[0077] Table 1
[0078] To verify the effectiveness of the proposed method, the following methods were selected as comparison methods: Domain-Adversarial Neural Networks (DANN).
[0079] Generative Adversarial Networks (GANs) learn the feature distribution of source domain data through a minimax game between a feature generator and a discriminator.
[0080] Meta-Learning Domain Generalization (MLDG) Network: This method introduces meta-learning concepts into the domain generalization process by simulating domain changes between the training and validation sets, thereby optimizing the model's generalization performance in unseen domains.
[0081] The model proposed in this embodiment is denoted as SDGN (Smooth Domain Generalization Network). Specific prediction comparison results and quantification metrics are shown in Figure 5 and Table 2, respectively. In Test Group 1, Unit 1 and Unit 2 were used as the source domain for model training, and Unit 4 was used as the target domain. In Test Group 2, Unit 3 and Unit 4 were used as the source domain for model training, and Unit 1 was used as the target domain.
[0082] Table 2
[0083] from Figures 5(a) to 5(d) The interval prediction performance curves clearly demonstrate that the prediction intervals generated by this method closely encompass the actual load curve throughout, while exhibiting a significantly narrower overall interval width and smaller fluctuations. This results in a significantly better fit to the actual load compared to other comparative schemes. The prediction intervals effectively capture the peak and trough trends of the load while avoiding unnecessary interval expansion. This achieves higher prediction accuracy while maintaining coverage, directly validating the model's effectiveness and stability in interval prediction tasks.
[0084] Table 2 shows a comparison of the performance of cross-unit load interval predictions, revealing significant performance divergence among different methods. The DANN method achieved 100% coverage in both migration tasks, but its corresponding PIAW index was as high as 23.41–26.89, indicating typical "over-coverage," with excessive interval expansion rendering the predictions useless. The SDGN and MLDG methods exhibited significant under-coverage issues. In the two test scenarios, MLDG's PICP was only 69.39%, far below the preset 90% confidence level, failing to provide a reliable risk boundary. In contrast, our proposed method maintained a stable PICP between 89.33% and 90.66%, highly matching the target confidence level. Simultaneously, its PIAW index was only 15.72–16.31, significantly lower than all other methods compared, and its AQL index remained the lowest, achieving the optimal balance between coverage and interval width. Overall, our method demonstrated the best performance among all compared schemes.
[0085] This embodiment employs the t-distributed stochastic neighbor embedding (t-SNE) method to visually compare the cross-domain feature alignment performance of the proposed model (SDGN) and DANN. As shown in Figures 6(a) to 6(c), although the features processed by DANN exhibit a certain clustering trend, data points from different source domains still show significant separation. Significant domain-specific information remains in the shared representation, achieving only coarse-grained feature alignment and failing to completely eliminate the influence of domain offset. In contrast, SDGN can more effectively remove domain-private features, achieving a tighter fusion of feature points from different source domains in the common feature space. The overall distribution consistency is higher, demonstrating a more accurate and fine-grained cross-domain alignment effect, effectively improving the model's domain generalization ability.
[0086] To verify the optimization effect of the proposed model (SDGN) during training, this section presents a systematic convergence analysis experiment. Compared with the standard Pinball loss function, the Huber-Pinball loss function exhibits a smooth decreasing trend throughout the training process without significant fluctuations. This confirms that the method effectively solves the training instability problem caused by the non-differentiability of the standard Pinball function at its zero point. The specific changes in the loss value are as follows: Figure 7 As shown.
[0087] Example 4 This embodiment, based on the method of Embodiment 1, discloses a short-term load interval prediction system for thermal power units, including: The data acquisition module is used to acquire historical operating data of multi-source thermal power units and corresponding active power load labels to build a model training dataset. The domain adversarial neural network module is used to build a domain generalization model based on the domain adversarial neural network. The model uses a block time series transformer as a feature extractor module and learns cross-unit domain invariant features through the domain adversarial training mechanism of the domain adversarial neural network. The training module is used to combine the Hubel norm with the quantile loss to obtain the Hubel-quantile loss, and to construct a joint loss function by combining it with the domain classification loss. The domain adversarial neural network is trained end-to-end to obtain the trained load interval prediction model. The prediction module is used to input real-time operating data of thermal power units in the target domain into the trained model and output the short-term load probability prediction range of thermal power units at different confidence levels.
[0088] Example 5 The purpose of this embodiment is to provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the short-term load range prediction method for thermal power units.
[0089] Example 6 The purpose of this embodiment is to provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for predicting the short-term load range of thermal power units.
[0090] Example 7 The purpose of this embodiment is to provide a computer program product including a computer-readable medium, wherein the computer-readable medium contains computer-readable program code that executes the short-term load range prediction method for thermal power units.
[0091] The steps and methods involved in the apparatuses of the above embodiments 4, 5, 6 and 7 correspond to those in embodiment 1. For specific implementation details, please refer to the relevant description section of embodiment 1.
[0092] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0093] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.
[0094] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0095] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0096] Unless otherwise specified, the working methods or control methods involved in the above embodiments are conventional working methods or control methods in the art.
[0097] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Any other modifications or equivalent substitutions made by those skilled in the art to the technical solutions of the present invention, as long as they do not depart from the spirit and scope of the technical solutions of the present invention, should be covered within the scope of the claims of the present invention.
Claims
1. A method for short-term load interval prediction of a thermal power unit, characterized in that, Includes the following steps: Obtain historical operating data and corresponding active power load labels of multi-source domain thermal power units to construct a model training dataset; A domain generalization model based on a domain adversarial neural network was built. The model uses a block time series transformer as a feature extractor module and learns cross-unit domain invariant features through the domain adversarial training mechanism of the domain adversarial neural network. By combining the Hubel norm with the quantile loss, we obtain the Hubel-quantile loss. We then combine this with the domain classification loss to construct a joint loss function. Finally, we train the domain adversarial neural network end-to-end to obtain the trained load interval prediction model. The real-time operating data of thermal power units in the target domain is input into the trained model, and the short-term load probability prediction interval of thermal power units at different confidence levels is output.
2. The method for predicting short-term load intervals of thermal power units according to claim 1, characterized in that, Data cleaning, time series construction, and feature selection are performed on the raw operating data before constructing the model training dataset; the domain generalization model based on the domain adversarial neural network uses only source domain unit data throughout the training process.
3. The method for predicting short-term load intervals of thermal power units according to claim 1, characterized in that, The feature extractor module includes: a time-series segmentation module, used to divide the original long time-series data into multiple local subsequence segments to compress the sequence length and retain local trend information; a local attention module, used to perform self-attention calculation on the segmented segments to capture the long-range dependency and fluctuation correlation patterns between different time segments; and a feature mapping module, used to linearly project the high-dimensional abstract features output by the attention module to the target dimension required by the downstream task.
4. The method for predicting short-term load intervals of thermal power units according to claim 1, characterized in that, The domain adversarial neural network includes: a feature extractor, used to extract temporal features from input data and be motivated to learn domain-invariant representations across units under adversarial training of the domain classifier; a load interval predictor, used to receive features output by the feature extractor, output load prediction values at different quantiles through quantile regression, and generate prediction intervals with corresponding confidence levels; a domain classifier, used to receive features output by the feature extractor, determine which source domain unit the feature comes from, and guide the feature extractor to learn domain-invariant features during adversarial training; and a gradient inversion layer, which is set between the domain-invariant feature extractor and the domain classifier, used to invert the gradient of the domain classification loss during backpropagation and then backpropagate it to the feature extractor, so that the feature extractor generates domain-invariant features that the domain classifier cannot distinguish.
5. The method for predicting short-term load intervals of thermal power units according to claim 1, characterized in that, The Hubel-quantile loss calculation formula is as follows: Define Hubell's loss norm: The quantile loss of the fused Hubell norm is: In the formula: ε is the Huber threshold; For load parameters In the The values in each sample The load forecast value is the value at the corresponding quantile. Let be the quantile, and i be the corresponding sample number.
6. The method for predicting short-term load intervals of thermal power units according to claim 1, characterized in that, The joint loss function is a weighted combination of prediction loss and domain classification loss, and the formula is as follows: in, For the joint loss function, For the improved Huber-Pinball loss, For the joint loss weighting parameters, Domain classification loss; The domain classification loss formula is: in, It is a one-hot vector representing the true domain label of the sample. It is the probability that a sample k belongs to the m-th domain, predicted by the domain classifier.
7. A short-term load range prediction system for thermal power units, characterized in that, include: The data acquisition module is used to acquire historical operating data of multi-source thermal power units and corresponding active power load labels to build a model training dataset. The domain adversarial neural network module is used to build a domain generalization model based on the domain adversarial neural network. The model uses a block time series transformer as a feature extractor module and learns cross-unit domain invariant features through the domain adversarial training mechanism of the domain adversarial neural network. The training module is used to combine the Hubel norm with the quantile loss to obtain the Hubel-quantile loss, and to construct a joint loss function by combining it with the domain classification loss. The domain adversarial neural network is trained end-to-end to obtain the trained load interval prediction model. The prediction module is used to input real-time operating data of thermal power units in the target domain into the trained model and output the short-term load probability prediction range of thermal power units at different confidence levels.
8. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the short-term load range prediction method for thermal power units according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the short-term load range prediction method for thermal power units according to any one of claims 1-6.
10. A computer program product comprising a computer-readable medium, characterized in that, The computer-readable medium contains computer-readable program code that performs the short-term load range prediction method for thermal power units according to any one of claims 1-6.
Citation Information
Patent Citations
Thermal power generating unit short-term load prediction method, system and equipment based on Gaussian weighted domain generalization network and medium
CN121965508A
