Dynamic carbon emission factor prediction method based on data driving
Through the data-driven dynamic carbon emission factor prediction method, the Fea2Vec and BiLSTM models are used to solve the accuracy of the hourly carbon emission factor prediction in the distribution network, and improve the efficiency of new energy consumption level and low-carbon energy consumption strategies. Promote inter-regional carbon emission balance.
Patent Information
- Application Number
- CN202411034661.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-22
AI Technical Summary
The prior art is difficult to accurately predict the dynamic carbon emission factors of hourly regions of the distribution network, which affects the implementation of low-carbon energy consumption strategies and inter-regional carbon emission balance.
Using a dynamic carbon emission factor prediction method based on data-driven, by obtaining historical load data and distributed new energy power generation power data, combining Fea2Vec framework and BiLSTM model, the timing dependence relationship of multivariate time series is extracted, training sample sets are constructed and prediction is carried out. .
Accurate prediction of dynamic carbon emission factors in the area of hourly level in the next day has been achieved, the reflection of new energy consumption level has been improved, and the realization of low-carbon energy consumption and carbon emission balance has been promoted.
Smart Images

Figure CN119005405A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a data-driven dynamic carbon emission factor prediction method, and belongs to the technical field of distribution networks. Background Art
[0002] With the high proportion of distributed renewable energy connected to the power grid, the uncertainty on the distribution side has also increased significantly, which has posed new challenges to the stability and reliability of the power system. In this context, the flexible and adjustable resources on the distribution side are becoming increasingly abundant, which provides new opportunities for optimizing power system operation and reducing carbon emissions through demand-side management strategies. The adjustability of demand-side resources, including but not limited to load control, energy storage equipment, distributed generation, etc., provides a variety of adjustment methods for the power system, which helps to balance supply and demand and improve the overall efficiency of the system.
[0003] Existing studies have explored the coupling relationship between demand-side resources and low-carbon planning and scheduling processes from the perspective of demand-side resources. These studies have shown that through refined demand-side management, the carbon emissions of the power system can be significantly reduced without sacrificing system performance. The effectiveness of demand-side management strategies has been confirmed by multiple research cases, and it has great potential and value in reducing carbon emissions.
[0004] Despite this, current demand response strategies mostly rely on the electricity price mechanism to guide users' electricity consumption behavior through economic incentives. However, users' electricity consumption behavior is not only affected by economic factors, but also driven by the concept of green environmental protection. Therefore, making users aware of the low-carbon attributes of electricity in the future can inspire them to adjust their electricity consumption behavior to achieve the evolution of low-carbon energy consumption. The introduction of the carbon emission flow theory has put a carbon label on electricity, which not only enhances the transparency of electricity, but also provides a theoretical basis for the implementation of low-carbon demand response strategies. By giving electricity carbon emission information, the environmental protection attributes of electricity can be more intuitively reflected, thereby guiding users and enterprises to adopt more environmentally friendly electricity consumption behaviors.
[0005] From the perspective of fairness, the prediction method of carbon emission factors in the research region is crucial to achieve carbon emission balance among regions. Accurate carbon emission factor prediction not only helps to formulate reasonable energy policies, but also promotes fairness and sustainability in the process of achieving the "dual carbon" goals in various regions. Therefore, the development and application of high-precision carbon emission factor prediction models are of great significance for guiding regional energy planning and optimizing power system operation. Summary of the invention
[0006] In response to the problems existing in the above-mentioned prior art, the present invention provides a data-driven dynamic carbon emission factor prediction method, which can accurately predict the hourly regional dynamic carbon emission factor for the next day, thereby providing data support for the low-carbon energy use mode of electricity users.
[0007] In order to achieve the above object, the present invention adopts a data-driven dynamic carbon emission factor prediction method, which includes the following steps:
[0008] (a) Obtain historical load data, non-low-carbon power sources and distributed renewable energy historical power generation data, identify the distribution network topology and power and load access locations, and calculate the carbon potential of the main grid access;
[0009] (b) Integrate various types of power sources and loads, simulate and generate power grid flow data, and generate labels for training samples based on the improved dynamic carbon emission factor calculation method;
[0010] (c) constructing an initial sample set based on the labels and historical data generated in step (b);
[0011] (d) Extracting temporal dependencies of multivariate time series based on the Fea2Vec framework, including labeling and embedding processes;
[0012] (e) Construct the Fea2Vec-BiLSTM model, divide the initial sample set into training set, validation set and test set, bring them into the Fea2Vec-BiLSTM model for training, and truncate the training process when the error of the test set converges;
[0013] (f) Using the neural network trained in step (e), the prediction results are obtained through the forward propagation process.
[0014] In some embodiments, in step (b), the labels of the training samples are generated according to the improved dynamic carbon emission factor calculation method, and the specific calculation method is:
[0015]
[0016] Among them, P q,t represents the amount of renewable energy abandoned in the distribution network at time t, e M,t Represents the main grid carbon potential at time t.
[0017] In some embodiments, the labeling process in step (d) comprises:
[0018] (1) Time series segmentation: first segment the multivariate time series into subsequences of fixed length to form a set of segmentation vectors;
[0019] (2) Pattern mining: extracting repeated patterns in the segmentation vector set through clustering methods;
[0020] (3) Data labeling: Assign a unique positive integer as a classification label to each extracted pattern, and obtain a label set defined as K = {1, 2, ..., K}. Then, assign a label to each segmented vector based on the Euclidean distance.
[0021] In some embodiments, the time series segmentation in step (1) is specifically:
[0022] The power load and temperature data are divided into segments with length t in each dimension, where t is 24, representing 24 moments in a day; the multivariate time series is represented by X∈R N×D Represents, where N and D are the length and dimension of the time series respectively;
[0023] The nth subsequence in the dth dimension is represented by x n d ∈R T Indicates, specifically:
[0024]
[0025] Where N′ is The base function of a real number x is It means that for any real number sequence V=(v1,...,v n ), for any pair a and b in the sequence, V a:b =(v a ,...,v b );
[0026] The set of split vectors in each dimension is given by Given.
[0027] In some embodiments, the pattern mining in step (2) is specifically:
[0028] Use k-means clustering to cluster X d Divide into K d groups, where the set of clusters in the dth dimension formed by k-means clustering is given by:
[0029]
[0030] where μ k ∈R T , indicating that it is assigned to S k The mean of the data samples is also called the center of the k-th cluster, and the cluster center is regarded as a category.
[0031] In some embodiments, the data tag in step (3) is specifically:
[0032] For any vector x∈RT , and calculate its label as:
[0033] According to the above formula, the multivariate time series X is converted into a D-dimensional label sequence of length N′.
[0034] In some embodiments, the embedding process in step (d) includes:
[0035] (1) Train the embedding network to learn the temporal and multi-dimensional relationships between labels in the label sequence;
[0036] (2) The multi-dimensional input features are encoded into a one-dimensional feature vector through the trained embedding network.
[0037] In some embodiments, the embedding network captures the temporal and dimensional relationships between tags through a convolutional layer, and processes a multi-dimensional tag sequence in the time domain through a sliding window to capture the temporal relationship;
[0038] During training, the input and target output are one-hot encoded and features are extracted through convolutional layers; the central label of the sliding window is set as the target label, while other labels are used as context labels; the goal of the embedding network is to maximize the probability of the target label occurring given the context label, and gradient descent is used for parameter update.
[0039] In some embodiments, the Fea2Vec-BiLSTM model in step (e) includes four modules: a Fea2Vec feature extraction module, a bidirectional LSTM network module, a self-attention module and a linear prediction module.
[0040] Compared with the prior art, the present invention adopts an improved carbon emission factor calculation method to calculate the regional dynamic carbon emission factor, which can further reflect the new energy consumption level under a high proportion of new energy access. When the improved dynamic carbon emission factor becomes a negative value, it means that wind and solar power abandonment has occurred during this period. The closer it is to zero, the higher the new energy consumption level, and the more low-carbon and environmentally friendly the user's electricity usage behavior during this period is.
[0041] The present invention proposes a multidimensional feature extraction framework, which adopts the word embedding technology in natural language processing to learn the temporal dependencies in multidimensional features. The labeling process extracts features by clustering subsequences of multivariate time series, and the embedding process learns the temporal dependencies by re-encoding the input features, which greatly improves the prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0043] Figure 1 It is a schematic diagram of the process of the present invention;
[0044] Figure 2 This is the model diagram of Fea2Vec-BiLSTM. DETAILED DESCRIPTION
[0045] In order to make the objectives, technical solutions and advantages of the present invention more clear, the technical solutions of the present application are described in detail below with the help of accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical solutions of the present application, rather than limitations on the technical solutions of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.
[0046] like Figure 1 , Figure 2 As shown, a data-driven dynamic carbon emission factor prediction method includes the following steps:
[0047] (a) Obtain historical load data, meteorological data, historical power generation data of non-low-carbon power sources and distributed renewable energy sources, identify the topological structure of the distribution network and the access locations of power sources and loads, and calculate the carbon potential of the main grid access;
[0048] The granularity of historical data is hourly, and the data volume should be at least three months, otherwise the data will not contain most of the actual potential probability distribution information;
[0049] (b) Integrate various types of power sources and loads, simulate and generate power grid flow data, and generate labels for training samples based on the improved dynamic carbon emission factor calculation method;
[0050] Considering that the initial carbon emission factor calculation method has no distinction in describing the phenomenon of power abandonment in the scenario of a high proportion of new energy, the regional improved dynamic carbon emission factor is calculated. The specific calculation method is:
[0051]
[0052] Where P q,t represents the amount of renewable energy abandoned in the distribution network at time t, e M,t represents the main grid carbon potential at time t;
[0053] (c) constructing an initial sample set based on the labels and historical data generated in step (b); the initial sample set is two-dimensional structured data, with one row representing one sample, including characteristics such as load and meteorology, and the label is the regional carbon emission factor calculated in (b);
[0054] (d) Extracting temporal dependencies of multivariate time series based on the Fea2Vec (Features to Vector) framework, including labeling and embedding processes;
[0055] The marking process includes three steps:
[0056] (1) Time series segmentation: First, the multivariate time series is segmented into subsequences with fixed lengths to form a set of segmentation vectors; the power load and temperature data are segmented with a length of t in each dimension, where t is 24, representing 24 moments in a day; the multivariate time series is represented by X∈R N×D , where N and D are the length and dimension of the time series respectively. The nth subsequence in the dth dimension is represented by Indicates, specifically:
[0057]
[0058] where N′ is The base function of a real number x is It means that for any real number sequence V=(v1,...,v n ), for any pair a and b in the sequence, V a:b =(v a ,...,v b );
[0059] The set of split vectors in each dimension is given by given;
[0060] (2) Pattern mining: Use clustering methods to extract repeated patterns in the segmentation vector set; use k-means clustering to cluster X d Divide into K d groups, where the set of clusters in the dth dimension formed by k-means clustering is given by:
[0061]
[0062] where μ k ∈R T , indicating that it is assigned to S k The mean of the data samples is also called the center of the kth cluster. The cluster center is regarded as a category. The number of categories in each dimension can be selected as needed. The present invention assumes that the number of labels in all dimensions is equal, that is, K 1 =K2 =…=K D ;
[0063] (3) Data labeling: Assign a unique positive integer as a classification label to each extracted pattern, and obtain a label set defined as K = {1, 2, ..., K}. Then, assign a label to each segmented vector based on the Euclidean distance.
[0064] The embedding process includes:
[0065] (1) Train the embedding network to learn the temporal and multi-dimensional relationships between labels in the label sequence;
[0066] (2) The multi-dimensional input features are encoded into a one-dimensional feature vector through the trained embedding network.
[0067] The embedding network captures the temporal and dimensional relationships between labels through convolutional layers, and processes multidimensional label sequences in the time domain through sliding windows to capture temporal relationships. During training, the input and target output are one-hot encoded and features are extracted through convolutional layers; the center label of the sliding window is set as the target label, and other labels are used as context labels. The goal of the embedding network is to maximize the probability of the target label occurring given the context label, and the gradient descent method is used for parameter update.
[0068] (e) Constructing the Fea2Vec-BiLSTM model, including: Fea2Vec feature extraction module, bidirectional LSTM network module, self-attention module and linear prediction module;
[0069] The initial sample set is divided into training set, validation set and test set, and brought into Fea2Vec-BiLSTM for model training. The training process is truncated when the error of the test set converges.
[0070] Fea2Vec-BiLSTM model Figure 2 As shown in the figure, the number of hidden units of LSTM is 128, the attention layer adopts the self-attention mechanism, the fully connected layer includes 24 nodes, and no activation function is applied; the loss function is the root mean square error and the mean absolute percentage error, and the calculation formula is:
[0071]
[0072] The Adam optimizer is used, the learning rate is set to 0.001, and the learning rate decay strategy is used to accelerate convergence. The batch size is set to 32.
[0073] (f) Prediction of dynamic carbon emission factors: The load, meteorological and renewable energy output data of the previous day are organized into structured data and input into the trained Fea2Vec-BiLSTM model, and the prediction results are obtained through the forward propagation process.
[0074] The present invention adopts an improved carbon emission factor calculation method to calculate the regional dynamic carbon emission factor, which can further reflect the new energy consumption level under a high proportion of new energy access. When the improved dynamic carbon emission factor becomes a negative value, it means that wind and solar power abandonment has occurred during this period. The closer it is to zero, the higher the new energy consumption level is, and the user's electricity usage behavior during this period is more low-carbon and environmentally friendly.
[0075] The present invention proposes a multidimensional feature extraction framework, which adopts the word embedding technology in natural language processing to learn the temporal dependencies in multidimensional features. The labeling process extracts features by clustering subsequences of multivariate time series, and the embedding process learns the temporal dependencies by re-encoding the input features, which greatly improves the prediction accuracy.
[0076] In addition, those skilled in the art will understand that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments also means being within the scope of protection of the present invention and forming different embodiments. For example, in the above embodiments, those skilled in the art can use them in combination according to the known technical solutions and the technical problems to be solved by this application.
Claims
1. A data-driven dynamic carbon emission factor prediction method, characterized in that: The following steps are involved: (a) Obtain historical load data, non-low-carbon power sources and distributed renewable energy historical power generation data, identify the distribution network topology and power and load access locations, and calculate the carbon potential of the main grid access; (b) Integrate various types of power sources and loads, simulate and generate power grid flow data, and generate labels for training samples based on the improved dynamic carbon emission factor calculation method; (c) constructing an initial sample set based on the labels and historical data generated in step (b); (d) Extracting temporal dependencies of multivariate time series based on the Fea2Vec framework, including labeling and embedding processes; (e) Construct the Fea2Vec-BiLSTM model, divide the initial sample set into training set, validation set and test set, bring them into the Fea2Vec-BiLSTM model for training, and truncate the training process when the error of the test set converges; (f) Using the neural network trained in step (e), the prediction results are obtained through the forward propagation process.
2. According to claim 1, a data-driven dynamic carbon emission factor prediction method is characterized in that: In step (b), the labels of the training samples are generated according to the improved dynamic carbon emission factor calculation method. The specific calculation method is: Among them, P q,t represents the amount of renewable energy abandoned in the distribution network at time t, e M,t Represents the main grid carbon potential at time t.
3. According to claim 1, a data-driven dynamic carbon emission factor prediction method is characterized in that: The marking process in step (d) comprises: (1) Time series segmentation: first segment the multivariate time series into subsequences of fixed length to form a set of segmentation vectors; (2) Pattern mining: extracting repeated patterns in the segmentation vector set through clustering methods; (3) Data labeling: Assign a unique positive integer as a classification label to each extracted pattern, and obtain a label set defined as K = {1, 2, ..., K}. Then, assign a label to each segmented vector based on the Euclidean distance.
4. A data-driven dynamic carbon emission factor prediction method according to claim 3, characterized in that: The time series segmentation in step (1) is specifically as follows: The power load and temperature data are divided into segments with length t in each dimension, where t is 24, representing 24 moments in a day; the multivariate time series is represented by X∈R N×D Represents, where N and D are the length and dimension of the time series respectively; The nth subsequence in the dth dimension is represented by Indicates, specifically: Where N′ is The base function of a real number x is It means that for any real number sequence V=(v1,...,v n ), for any pair a and b in the sequence, V a:b =(v a ,...,v b ); The set of split vectors in each dimension is given by Given.
5. The data-driven dynamic carbon emission factor prediction method according to claim 3 is characterized in that: The pattern mining in step (2) is specifically as follows: Use k-means clustering to cluster X d Divide into K d groups, where the set of clusters in the dth dimension formed by k-means clustering is given by: where μ k ∈R T , indicating that it is assigned to S k The mean of the data samples is also called the center of the k-th cluster, and the cluster center is regarded as a category.
6. A data-driven dynamic carbon emission factor prediction method according to claim 3, characterized in that: The data marking in step (3) is specifically: For any vector x∈R T , and calculate its label as: According to the above formula, the multivariate time series X is converted into a D-dimensional label sequence of length N′.
7. The data-driven dynamic carbon emission factor prediction method according to claim 1 is characterized in that: The embedding process in step (d) includes: (1) Train the embedding network to learn the temporal and multi-dimensional relationships between labels in the label sequence; (2) The multi-dimensional input features are encoded into a one-dimensional feature vector through the trained embedding network.
8. The data-driven dynamic carbon emission factor prediction method according to claim 7 is characterized in that: The embedding network captures the temporal and dimensional relationships between labels through convolutional layers and processes multi-dimensional label sequences in the time domain through sliding windows to capture temporal relationships. During training, the input and target output are one-hot encoded and features are extracted through convolutional layers; The center label of the sliding window is set as the target label, and the other labels are used as context labels; the goal of the embedding network is to maximize the probability of the target label occurring given the context label, and the gradient descent method is used for parameter update.
9. The data-driven dynamic carbon emission factor prediction method according to claim 1 is characterized in that: The Fea2Vec-BiLSTM model in step (e) includes four modules: a Fea2Vec feature extraction module, a bidirectional LSTM network module, a self-attention module and a linear prediction module.
Citation Information
Cited By
Training method of carbon emission prediction model
CN119941271A
Carbon emission dynamic prediction method and system based on multi-energy load data
CN120896144A
A carbon emission dynamic prediction method and system based on multi-energy load data
CN120896144B
A rail transit station carbon emission real-time prediction method and system based on space-time passenger flow intensity
CN122693908A
