New energy load data reconstruction method and system based on Markov diffusion method
The new energy load data reconstruction method using the Markov diffusion method, combined with the multi-temporal and spatial scale synchronous graph neural network and the influencing factor covariate feature fusion module, solves the reconstruction problem of missing or outliers in the new energy load data and improves the reconstruction accuracy. and adaptability, meeting the needs of new energy load forecasting.
Patent Information
- Application Number
- CN202410215959.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-27
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-02-27
AI Technical Summary
Existing data reconstruction methods are difficult to accurately handle missing or outliers in new energy load data, especially in complex scenarios with multiple spatial and temporal scales and correlations with various image factors. This results in low reconstruction accuracy and cannot meet the requirements of new energy load prediction. need.
The new energy load data reconstruction method based on the Markov diffusion method is used to extract the spatiotemporal scale features and the covariate features of the influencing factors through the multi-temporal and spatial scale synchronous graph neural network and the influencing factor covariate feature fusion module, and the diffusion model is used for reverse Denoise and reconstruct missing or abnormal portions of data.
It improves the accuracy and generalization ability of data reconstruction, can better adapt to different new energy load scenarios, reduces data annotation costs, and enhances the performance of the model in small sample scenarios.
Smart Images

Figure CN118227985B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data reconstruction, and in particular to a method and system for reconstructing new energy load data based on a Markov diffusion method. Background Art
[0002] In recent years, the scale of installed capacity of new energy in my country has grown rapidly and has been widely used in new energy systems. With the rapid development of new loads and the widespread access to a large number of distributed new energy sources such as wind and solar, the existing system needs to deeply understand the power consumption characteristics and patterns of various loads, accurately consider the mutual influence between distributed new energy generation and new system loads and busbars, feeders, and substation loads, and achieve accurate prediction of new energy and load demand, so as to improve the accuracy of new power system operation risk fault analysis and judgment, and improve the climate resilience of the power grid.
[0003] In order to meet the needs of accurate prediction of renewable energy load data, it is necessary to build a corresponding efficient time series prediction method. Taking wind power prediction as an example, many prediction methods such as time series analysis, chaotic phase space reconstruction, and deep learning methods rely on reliable and trustworthy historical wind power operation data. However, in the actual operation of the new power system, data collection, measurement, transmission, and conversion may fail or be interfered with in each link, resulting in missing data or numerical anomalies. Extreme weather may even damage the collection equipment, resulting in a large amount of missing data in the current time period. This will directly lead to a decrease in the accuracy of existing time series prediction methods, and it is impossible to achieve the required accuracy of renewable energy load prediction tasks.
[0004] Most of the existing data reconstruction methods, such as linear interpolation, can only use the target new energy load data itself as the reconstruction condition. They cannot consider the multi-temporal and spatial scale differences of new energy loads (ultra-short term, short term, medium and long term), as well as the correlation between various image factors. They are difficult to apply to diversified data under different new energy load scenarios, and the reconstruction accuracy is difficult to guarantee. Summary of the invention
[0005] The present invention provides a method and system for reconstructing new energy load data based on Markov diffusion method to solve the problems existing in the prior art. The technical solution provided by the present invention is as follows:
[0006] On the one hand, a method for reconstructing new energy load data based on Markov diffusion method is provided, the method comprising:
[0007] S1. Acquire new energy load data to be reconstructed, wherein the new energy load data to be reconstructed includes target data with missing abnormal values, and corresponding time series data and static data that affect the target data;
[0008] S2, inputting the new energy load data to be reconstructed into the trained multi-temporal and spatial-scale synchronous graph neural network, and outputting the new energy load data to be reconstructed with temporal and spatial-scale characteristics;
[0009] S3, inputting the to-be-reconstructed new energy load data with spatiotemporal scale characteristics into the trained influencing factor covariate feature fusion module, and outputting the to-be-reconstructed new energy load data with both spatiotemporal scale characteristics and influencing factor covariate characteristics;
[0010] S4. Noise the missing abnormal part of the new energy load data to be reconstructed that has both spatiotemporal scale characteristics and influencing factor covariate characteristics, use other target data, all time series data and static data as conditional data, use the trained diffusion model built based on the Markov diffusion method to reversely denoise the missing abnormal part after noisy, and output the reconstructed value of the missing abnormal part.
[0011] Optionally, the training of the multi-temporal and spatial-scale synchronous graph neural network in S2 specifically includes:
[0012] Collecting new energy load data at different time and space scales, the new energy load data includes target data observation values, and corresponding time series data and static data that affect the target data observation values, dividing the new energy load data into sample data according to time steps, and dividing the sample data without missing outliers into a training set, and dividing the sample data with missing outliers into a test set;
[0013] The new energy load data at different spatiotemporal scales are mixed together to construct several local spatiotemporal data fragments. Each local spatiotemporal data fragment is sequentially input into several spatiotemporal synchronous graph convolution layers for a series of graph convolution operations to extract the spatiotemporal features of each time step. The operation of the spatiotemporal synchronous graph convolution layer is described by the following formula:
[0014]
[0015] Among them, h in represents the local spatiotemporal data segment of the input, h out represents the extracted spatiotemporal features, W1 and W2 are learnable weight parameters, and b1 and b2 are learnable biases;
[0016] The several spatiotemporal synchronized graph convolutional layers are connected together as a feature extraction layer, and then the multi-spatiotemporal scale synchronized graph neural network is built by connecting the residual structure of the original input residual connection to a fully connected layer as a classification head. After all local spatiotemporal scale data fragments pass through the multi-spatiotemporal scale synchronized graph neural network, the spatiotemporal scale they belong to is embedded into the data fragment as a marker feature.
[0017] Optionally, the training of the influencing factor covariate feature fusion module in S3 specifically includes:
[0018] Let X t Input data for the target, Y t Input the time series data of various influencing factors, and convert X t , Y t Combined as a time step data, a gated residual unit is input. Each gated residual unit corresponds to each time step data in the input data. Each gated residual unit is composed of a gated linear layer, an ELU activation function and a layer normalization part, and the target input data is connected to the layer normalization part to form a residual structure. The influence of the time series data in the input data of each influencing factor on the target data is extracted and output, which is also called the covariate feature of the influencing factor. The calculation formula corresponding to each gated residual unit is as follows:
[0019] result(a,c)=LayerNorm(a+ELU(W1a+W2c+b))
[0020] Where a represents the target input data, c represents the influencing factor input data, result(a,c) represents the influence of c on a, also known as the influencing factor covariate feature, W1 and W2 are learnable weight parameters, and b is a learnable bias;
[0021] Multiple gated residual units corresponding to each time step are linearly connected. The output of the gated residual unit of the previous time step is also used as the input of the next gated residual unit. The output of each gated residual unit is merged into a feature matrix.
[0022] A gated residual unit is used alone to extract the influencing factor covariate features from the static data in the influencing factor input data, and then the extracted feature sequence and the feature matrix are concatenated and embedded into the original input data, and the reconstructed new energy load data with both spatiotemporal scale features and influencing factor covariate features is output.
[0023] Optionally, the training of the diffusion model based on the Markov diffusion method in S4 specifically includes:
[0024] For a training sample that has undergone spatiotemporal synchronization and covariate feature fusion, it is divided into two parts, one of which is the target reconstruction part including part of the target data, and the corresponding time series data and static data. The part of the target data is denoised, and the added noise is used as the noise true value label;
[0025] The other part is the conditional observation part including other target data, as well as all time series data and static data, which serves as the conditional data of the diffusion model;
[0026] The noisy data and conditional data are input into the diffusion model together, the generated noise is output, compared with the added noise true value label, and the loss is calculated to train the diffusion model.
[0027] Optionally, the method further includes testing of the diffusion model, specifically including:
[0028] Add noise to the missing abnormal part of the target data in the test set, use the other target data in the test set, as well as all the time series data and static data as conditional data, input the noisy data and conditional data into the trained diffusion model, let the model iteratively eliminate the noise through the reverse denoising process, and output the reconstructed value of the missing abnormal part;
[0029] If the reconstructed value of the missing abnormal part is within an acceptable range, it means that the diffusion model reconstruction effect is good.
[0030] Optionally, the adding noise to part of the target data specifically includes:
[0031] Noise is added through a mixed noise adding strategy of random strategy and historical strategy, where there is a p% probability of random noise addition and a (100-p)% probability of adding noise at the approximate position in the training set according to the data missing abnormal pattern in the test set, and p is a hyperparameter.
[0032] On the other hand, a new energy load data reconstruction system based on Markov diffusion method is provided, and the system includes:
[0033] An acquisition module, used for acquiring new energy load data to be reconstructed, wherein the new energy load data to be reconstructed includes target data with missing abnormal values, and corresponding time series data and static data affecting the target data;
[0034] A spatiotemporal scale synchronization module, used for inputting the new energy load data to be reconstructed into the trained multi-spatiotemporal scale synchronous graph neural network, and outputting the new energy load data to be reconstructed with spatiotemporal scale characteristics;
[0035] A covariate feature fusion module is used to input the new energy load data to be reconstructed with spatiotemporal scale characteristics into the trained influencing factor covariate feature fusion module, and output the new energy load data to be reconstructed with both spatiotemporal scale characteristics and influencing factor covariate characteristics;
[0036] The reconstruction module is used to add noise to the missing abnormal part of the new energy load data to be reconstructed that has both spatiotemporal scale characteristics and influencing factor covariate characteristics, and use the other target data, all time series data and static data as conditional data. The trained diffusion model built based on the Markov diffusion method is used to reversely denoise the missing abnormal part after adding noise, and output the reconstructed value of the missing abnormal part.
[0037] On the other hand, an electronic device is provided, comprising a processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the above-mentioned new energy load data reconstruction method based on the Markov diffusion method.
[0038] On the other hand, a computer-readable storage medium is provided, in which instructions are stored, and the instructions are loaded and executed by a processor to implement the above-mentioned new energy load data reconstruction method based on the Markov diffusion method.
[0039] Compared with the prior art, the above technical solution has at least the following beneficial effects:
[0040] 1) Compared with traditional data reconstruction methods such as interpolation, the present invention builds a diffusion model based on the Markov diffusion method to perform generative data reconstruction. The model can be trained to a higher degree and the reconstruction effect is better.
[0041] 2) The present invention designs a multi-temporal and spatial scale synchronized graph neural network, which can not only adapt the time series data to the model, but also capture the local spatiotemporal correlations and embed complex multi-scale spatiotemporal features into the input data to synchronize the differences of data at different spatiotemporal scales.
[0042] 3) The present invention designs an influencing factor covariate feature fusion module to extract the influence of the time series data and static data of various influencing factor input data on the target data, and embed them into the input data as covariate features, so that the model can extract the correlation between the influencing factor data and the reconstructed target data, thereby enhancing the generalization ability and reconstruction accuracy of the model.
[0043] 4) Combining the idea of unsupervised learning, the training data is partially randomly noised, and the randomly added noise is used as the true noise label, so that the model can be trained multiple times on the same data sample, reducing the cost of data collection and annotation, and improving the data reconstruction effect of the model in small sample scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A flow chart of a method for reconstructing new energy load data based on a Markov diffusion method provided by an embodiment of the present invention;
[0046] Figure 2 A sample data partitioning flow chart provided for an embodiment of the present invention;
[0047] Figure 3 A training flow chart of a multi-temporal and spatial-scale synchronous graph neural network provided by an embodiment of the present invention;
[0048] Figure 4 A training flow chart of the influencing factor covariate feature fusion module provided in an embodiment of the present invention;
[0049] Figure 5 A flow chart of training and testing a diffusion model based on the Markov diffusion method provided in an embodiment of the present invention;
[0050] Figure 6 The overall model training flow chart provided by the embodiment of the present invention;
[0051] Figure 7 A block diagram of a new energy load data reconstruction system based on a Markov diffusion method provided by an embodiment of the present invention;
[0052] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] like Figure 1 As shown, an embodiment of the present invention provides a method for reconstructing new energy load data based on a Markov diffusion method, the method comprising:
[0055] S1. Acquire new energy load data to be reconstructed, wherein the new energy load data to be reconstructed includes target data with missing abnormal values, and corresponding time series data and static data that affect the target data;
[0056] The embodiment of the present invention obtains the new energy load data to be reconstructed, including target data such as new energy power generation output and load power. These target data have missing abnormal values, and the missing abnormal values need to be reconstructed, as well as time series data and static data that affect the target data, such as wind speed, light intensity, and energy storage power. The static data includes data that does not change with time, such as substations, buses, feeders, region names, and altitudes. The target data and time series data and static data are all corresponding, such as the target data for January, and the corresponding time series data and static data for January.
[0057] S2, inputting the new energy load data to be reconstructed into the trained multi-temporal and spatial-scale synchronous graph neural network, and outputting the new energy load data to be reconstructed with temporal and spatial-scale characteristics;
[0058] Optionally, the training of the multi-temporal and spatial-scale synchronous graph neural network in S2 specifically includes:
[0059] Collect new energy load data at different time and space scales (different time and space scales are divided according to data sampling frequency, such as ultra-short term, short term, medium and long term), the new energy load data includes target data observation values, and corresponding time series data and static data that affect the target data observation values, divide the new energy load data into sample data according to time steps, and divide the sample data without missing outliers into training sets, and divide the sample data with missing outliers into test sets, such as Figure 2 As shown;
[0060] The new energy load data at different spatiotemporal scales are mixed together to construct several local spatiotemporal data fragments (this is done so that the data can be input into a spatiotemporal synchronous graph convolution layer to capture the differences between different spatiotemporal scales. The size of the data fragment can be set according to actual conditions). Each local spatiotemporal data fragment is input into several spatiotemporal synchronous graph convolution layers in turn (the number of spatiotemporal synchronous graph convolution layers can be set according to experience) to perform a series of graph convolution operations to extract the spatiotemporal features of each time step. The operation of the spatiotemporal synchronous graph convolution layer is described by the following formula:
[0061]
[0062] Among them, h in represents the local spatiotemporal data segment of the input, h out represents the extracted spatiotemporal features, W1 and W2 are learnable weight parameters, and b1 and b2 are learnable biases;
[0063] The multiple spatiotemporal synchronized graph convolutional layers are connected together as a feature extraction layer, and then the multi-spatiotemporal scale synchronized graph neural network is built by connecting the residual structure of the original input residual connection to a fully connected layer as a classification head. After all local spatiotemporal data fragments pass through the multi-spatiotemporal scale synchronized graph neural network, the spatiotemporal scale they belong to is embedded into the data fragment as a marker feature, such as Figure 3 shown.
[0064] In this way, the model will take these features into account during training, thereby greatly reducing the differences between different spatiotemporal scales.
[0065] S3, inputting the to-be-reconstructed new energy load data with spatiotemporal scale characteristics into the trained influencing factor covariate feature fusion module, and outputting the to-be-reconstructed new energy load data with both spatiotemporal scale characteristics and influencing factor covariate characteristics;
[0066] Optionally, the training of the influencing factor covariate feature fusion module in S3 specifically includes:
[0067] Let X t Input data for the target, Y t Input the time series data of various influencing factors, and convert X t , Y t Combined as a time step data, input a gated residual unit, each gated residual unit corresponds to each time step in the input data (such as Figure 4 Each gated residual unit is composed of a gated linear layer, an ELU activation function, and a layer normalization part, and the target input data is connected to the layer normalization part to form a residual structure, extracting and outputting the influence of the time series data in the input data of each influencing factor on the target data, also known as the covariate feature of the influencing factor. The calculation formula corresponding to each gated residual unit is as follows:
[0068] result(a,c)=LayerNorm(a+ELU(W1a+W2c+b))
[0069] Where a represents the target input data, c represents the influencing factor input data, result(a,c) represents the influence of c on a, also known as the influencing factor covariate feature, W1 and W2 are learnable weight parameters, and b is a learnable bias;
[0070] Multiple gated residual units corresponding to each time step are linearly connected. The output of the gated residual unit of the previous time step is also used as the input of the next gated residual unit. The output of each gated residual unit is merged into a feature matrix.
[0071] A gated residual unit is used alone to extract the influencing factor covariate features from the static data in the influencing factor input data, and then the extracted feature sequence and the feature matrix are concatenated and embedded into the original input data, and the reconstructed new energy load data with both spatiotemporal scale features and influencing factor covariate features is output.
[0072] In this way, the nonlinear correlation between data can be flexibly processed, so that the data can carry the covariate characteristics of itself and other influencing factor sequences, so that the model can better obtain the correlation between influencing factors and target factors.
[0073] S4. Noise the missing abnormal part of the new energy load data to be reconstructed that has both spatiotemporal scale characteristics and influencing factor covariate characteristics, use other target data, all time series data and static data as conditional data, use the trained diffusion model built based on the Markov diffusion method to reversely denoise the missing abnormal part after noisy, and output the reconstructed value of the missing abnormal part.
[0074] Optionally, the training of the diffusion model based on the Markov diffusion method in S4 specifically includes:
[0075] For a training sample that has undergone spatiotemporal synchronization and covariate feature fusion, it is divided into two parts, one of which is the target reconstruction part including part of the target data, and the corresponding time series data and static data. The part of the target data is denoised, and the added noise is used as the noise true value label;
[0076] The other part is the conditional observation part including other target data, as well as all time series data and static data, which serves as the conditional data of the diffusion model;
[0077] The noisy data and conditional data are input into the diffusion model together, the generated noise is output, and compared with the added noise true value label, and the loss is calculated to train the diffusion model, such as Figure 5 shown.
[0078] Optionally, the method further includes testing of the diffusion model, specifically including:
[0079] Noise is added to the missing abnormal part of the target data in the test set, and the other target data in the test set, as well as all the time series data and static data, are used as conditional data (the embodiment of the present invention can also use part of the time series data and static data as conditional data, but the training effect is better when all the time series data and static data are used. The embodiment of the present invention is not limited to this, and it is all within the protection scope of the embodiment of the present invention). The noisy data and conditional data are input into the trained diffusion model, and the model is allowed to iteratively eliminate the noise through the reverse denoising process, and the reconstructed value of the missing abnormal part is output;
[0080] If the reconstructed value of the missing abnormal part is within an acceptable range, it means that the diffusion model reconstruction effect is good.
[0081] Optionally, the adding noise to part of the target data specifically includes:
[0082] Noise is added by a mixed noise adding strategy of random strategy and historical strategy, where there is a p% probability of random noise addition and a (100-p)% probability of adding noise at the approximate position in the training set according to the data missing abnormal pattern in the test set (this noise addition based on known historical data information helps the model learn a good conditional distribution when the missing abnormal patterns in the training set and the test set are highly correlated), and p is a hyperparameter.
[0083] The combination of these two noise adding strategies can help improve the robustness of the model.
[0084] The training method of the overall model of the embodiment of the present invention is also as follows Figure 6 As shown, the specific steps involved have been described in detail above and will not be repeated here.
[0085] like Figure 7 As shown, an embodiment of the present invention further provides a new energy load data reconstruction system based on a Markov diffusion method, the system comprising:
[0086] An acquisition module 710 is used to acquire new energy load data to be reconstructed, wherein the new energy load data to be reconstructed includes target data with missing abnormal values, and corresponding time series data and static data that affect the target data;
[0087] The spatiotemporal scale synchronization module 720 is used to input the new energy load data to be reconstructed into the trained multi-spatiotemporal scale synchronous graph neural network, and output the new energy load data to be reconstructed with spatiotemporal scale characteristics;
[0088] The covariate feature fusion module 730 is used to input the to-be-reconstructed new energy load data with spatiotemporal scale features into the trained influencing factor covariate feature fusion module, and output the to-be-reconstructed new energy load data with both spatiotemporal scale features and influencing factor covariate features;
[0089] The reconstruction module 740 is used to add noise to the missing abnormal part of the new energy load data to be reconstructed that has both spatiotemporal scale characteristics and influencing factor covariate characteristics, and use other target data, as well as all time series data and static data as conditional data, and use the trained diffusion model built based on the Markov diffusion method to reversely denoise the missing abnormal part after adding noise, and output the reconstructed value of the missing abnormal part.
[0090] The functional structure of a new energy load data reconstruction system based on Markov diffusion provided in an embodiment of the present invention corresponds to the new energy load data reconstruction method based on Markov diffusion provided in an embodiment of the present invention, which will not be described in detail here.
[0091] Figure 8 It is a structural schematic diagram of an electronic device 800 provided in an embodiment of the present invention. The electronic device 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (centra lprocessing in its, CPU) 801 and one or more memories 802, wherein the memory 802 stores instructions, and the instructions are loaded and executed by the processor 801 to implement the steps of the above-mentioned new energy load data reconstruction method based on the Markov diffusion method.
[0092] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions, and the instructions can be executed by a processor in a terminal to complete the above-mentioned Markov diffusion-based new energy load data reconstruction method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0093] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0094] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A new energy load data reconstruction method based on Markov diffusion method, It is characterized in that The method comprises: S1. Acquire new energy load data to be reconstructed, wherein the new energy load data to be reconstructed includes target data with missing abnormal values, and corresponding time series data and static data that affect the target data; S2, inputting the new energy load data to be reconstructed into the trained multi-temporal and spatial-scale synchronous graph neural network, and outputting the new energy load data to be reconstructed with temporal and spatial-scale characteristics; S3, inputting the to-be-reconstructed new energy load data with spatiotemporal scale characteristics into the trained influencing factor covariate feature fusion module, and outputting the to-be-reconstructed new energy load data with both spatiotemporal scale characteristics and influencing factor covariate characteristics; S4, adding noise to the missing abnormal part of the new energy load data to be reconstructed that has both spatiotemporal scale characteristics and influencing factor covariate characteristics, taking other target data, as well as all time series data and static data as conditional data, using the trained diffusion model built based on the Markov diffusion method to reversely denoise the missing abnormal part after adding noise, and outputting the reconstructed value of the missing abnormal part; The training of the multi-temporal and spatial-scale synchronous graph neural network in S2 specifically includes: Collecting new energy load data at different time and space scales, the new energy load data includes target data observation values, and corresponding time series data and static data that affect the target data observation values, dividing the new energy load data into sample data according to time steps, and dividing the sample data without missing outliers into a training set, and dividing the sample data with missing outliers into a test set; The new energy load data at different spatiotemporal scales are mixed together to construct several local spatiotemporal data fragments. Each local spatiotemporal data fragment is sequentially input into several spatiotemporal synchronous graph convolution layers for a series of graph convolution operations to extract the spatiotemporal features of each time step. The operation of the spatiotemporal synchronous graph convolution layer is described by the following formula: Among them, h in represents the local spatiotemporal data segment of the input, h out represents the extracted spatiotemporal features, W 1 , W 2 is the learnable weight parameter, b 1 、b 2 is a learnable bias; The plurality of spatiotemporal synchronized graph convolutional layers are connected together as a feature extraction layer, and then the multi-spatiotemporal scale synchronized graph neural network is built by connecting the residual structure of the original input residual connection to a fully connected layer as a classification head. After all local spatiotemporal data fragments pass through the multi-spatiotemporal scale synchronized graph neural network, the spatiotemporal scale to which they belong is embedded into the data fragment as a marker feature; The training of the influencing factor covariate feature fusion module in S3 specifically includes: Let X t Input data for the target, Y t Input the time series data of various influencing factors, and convert X t , Y t Combined as a time step data, a gated residual unit is input. Each gated residual unit corresponds to each time step data in the input data. Each gated residual unit is composed of a gated linear layer, an ELU activation function and a layer normalization part, and the target input data is connected to the layer normalization part to form a residual structure. The influence of the time series data in the input data of each influencing factor on the target data is extracted and output, which is also called the covariate feature of the influencing factor. The calculation formula corresponding to each gated residual unit is as follows: result(a,c)=LayerNorm(a+ELU(W 1 a+W 2 c+b)) Among them, a represents the target input data, c represents the influencing factor input data, and result(a,c) represents the influence of c on a, also known as the influencing factor covariate feature, W 1 , W 2 is a learnable weight parameter, and b is a learnable bias; Multiple gated residual units corresponding to each time step are linearly connected. The output of the gated residual unit of the previous time step is also used as the input of the next gated residual unit. The output of each gated residual unit is merged into a feature matrix. A gated residual unit is used alone to extract the influencing factor covariate features from the static data in the influencing factor input data, and then the extracted feature sequence and the feature matrix are concatenated and embedded into the original input data, and the reconstructed new energy load data with both spatiotemporal scale features and influencing factor covariate features is output.
2. The method according to claim 1, It is characterized in that The training of the diffusion model based on the Markov diffusion method in S4 specifically includes: For a training sample that has undergone spatiotemporal synchronization and covariate feature fusion, it is divided into two parts, one of which is the target reconstruction part including part of the target data, and the corresponding time series data and static data. The part of the target data is denoised, and the added noise is used as the noise true value label; The other part is the conditional observation part including other target data, as well as all time series data and static data, which serves as the conditional data of the diffusion model; The noisy data and conditional data are input into the diffusion model together, the generated noise is output, compared with the added noise true value label, and the loss is calculated to train the diffusion model.
3. The method according to claim 2, It is characterized in that The method also includes testing of the diffusion model, specifically including: Add noise to the missing abnormal part of the target data in the test set, use the other target data in the test set, as well as all the time series data and static data as conditional data, input the noisy data and conditional data into the trained diffusion model, let the model iteratively eliminate the noise through the reverse denoising process, and output the reconstructed value of the missing abnormal part; If the reconstructed value of the missing abnormal part is within an acceptable range, it means that the diffusion model reconstruction effect is good.
4. The method according to claim 2, It is characterized in that The step of adding noise to part of the target data specifically includes: Noise is added through a mixed noise adding strategy of random strategy and historical strategy, where there is a p% probability of random noise addition and a (100-p)% probability of adding noise at the approximate position in the training set according to the data missing abnormal pattern in the test set, and p is a hyperparameter.
5. A new energy load data reconstruction system based on Markov diffusion method, It is characterized in that The system comprises: An acquisition module, used for acquiring new energy load data to be reconstructed, wherein the new energy load data to be reconstructed includes target data with missing abnormal values, and corresponding time series data and static data affecting the target data; A spatiotemporal scale synchronization module, used for inputting the new energy load data to be reconstructed into the trained multi-spatiotemporal scale synchronous graph neural network, and outputting the new energy load data to be reconstructed with spatiotemporal scale characteristics; A covariate feature fusion module is used to input the new energy load data to be reconstructed with spatiotemporal scale characteristics into the trained influencing factor covariate feature fusion module, and output the new energy load data to be reconstructed with both spatiotemporal scale characteristics and influencing factor covariate characteristics; The reconstruction module is used to add noise to the missing abnormal part of the new energy load data to be reconstructed that has both spatiotemporal scale characteristics and influencing factor covariate characteristics, and use the other target data, all time series data and static data as conditional data, and use the trained diffusion model built based on the Markov diffusion method to reversely denoise the missing abnormal part after adding noise, and output the reconstructed value of the missing abnormal part; The training of the multi-temporal and spatial scale synchronous graph neural network specifically includes: Collecting new energy load data at different time and space scales, the new energy load data includes target data observation values, and corresponding time series data and static data that affect the target data observation values, dividing the new energy load data into sample data according to time steps, and dividing the sample data without missing outliers into a training set, and dividing the sample data with missing outliers into a test set; The new energy load data at different spatiotemporal scales are mixed together to construct several local spatiotemporal data fragments. Each local spatiotemporal data fragment is sequentially input into several spatiotemporal synchronous graph convolution layers for a series of graph convolution operations to extract the spatiotemporal features of each time step. The operation of the spatiotemporal synchronous graph convolution layer is described by the following formula: Among them, h in represents the local spatiotemporal data segment of the input, h out represents the extracted spatiotemporal features, W 1 , W 2 is the learnable weight parameter, b 1 、b 2 is a learnable bias; The plurality of spatiotemporal synchronized graph convolutional layers are connected together as a feature extraction layer, and then the multi-spatiotemporal scale synchronized graph neural network is built by connecting the residual structure of the original input residual connection to a fully connected layer as a classification head. After all local spatiotemporal data fragments pass through the multi-spatiotemporal scale synchronized graph neural network, the spatiotemporal scale to which they belong is embedded into the data fragment as a marker feature; The training of the influencing factor covariate feature fusion module specifically includes: Let X t Input data for the target, Y t Input the time series data of various influencing factors, and convert X t , Y t Combined as a time step data, a gated residual unit is input. Each gated residual unit corresponds to each time step data in the input data. Each gated residual unit is composed of a gated linear layer, an ELU activation function and a layer normalization part, and the target input data is connected to the layer normalization part to form a residual structure. The influence of the time series data in the input data of each influencing factor on the target data is extracted and output, which is also called the covariate feature of the influencing factor. The calculation formula corresponding to each gated residual unit is as follows: result(a,c)=LayerNorm(a+ELU(W 1 a+W 2 c+b)) Among them, a represents the target input data, c represents the influencing factor input data, and result(a,c) represents the influence of c on a, also known as the influencing factor covariate feature, W 1 , W 2 is a learnable weight parameter, and b is a learnable bias; Multiple gated residual units corresponding to each time step are linearly connected. The output of the gated residual unit of the previous time step is also used as the input of the next gated residual unit. The output of each gated residual unit is merged into a feature matrix. A gated residual unit is used alone to extract the influencing factor covariate features from the static data in the influencing factor input data, and then the extracted feature sequence and the feature matrix are concatenated and embedded into the original input data, and the reconstructed new energy load data with both spatiotemporal scale features and influencing factor covariate features is output.
6. An electronic device, comprising a processor and a memory, wherein the memory stores instructions, It is characterized in that The instructions are loaded and executed by the processor to implement the new energy load data reconstruction method based on the Markov diffusion method as described in any one of claims 1 to 4.
7. A computer-readable storage medium having instructions stored therein, It is characterized in that The instructions are loaded and executed by the processor to implement the new energy load data reconstruction method based on the Markov diffusion method as described in any one of claims 1 to 4.
