Carbon emission prediction method, system and equipment based on enterprise power consumption condition

Through a multi-model approach, combining traditional machine learning, convolutional neural networks and long-short-term memory network algorithms, multiple sub-prediction models are established to integrate power data for carbon emission predictions, which solves the problem of inaccurate predictions by a single model and improves the accuracy of predictions. stability and robustness.

CN118780631APending Publication Date: 2024-10-15STATE GRID HUBEI MARKETING SERVICE CENT (MEASUREMENT CENT) +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410685204.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing carbon emission prediction technologies have problems with inaccurate predictions, especially in long-term trend prediction and data heterogeneity processing. It is difficult for a single model to accurately capture complex power data characteristics, resulting in inaccurate prediction of carbon emission values.

Method used

A multi-model approach is adopted, including traditional machine learning algorithms, convolutional neural network algorithms and long short-term memory network algorithms, to establish multiple sub-prediction models, predict by fusing power data, and calculate the average of multiple sub-models to improve prediction accuracy.

Benefits of technology

Through multi-model prediction, the error of prediction results is reduced, the accuracy and generalization ability of carbon emission values ​​are improved, the robustness and reliability of prediction are enhanced, and it can better adapt to complex power data characteristics and provide more accurate Corporate carbon emissions forecast.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780631A_ABST
    Figure CN118780631A_ABST
Patent Text Reader

Abstract

An enterprise power consumption condition-based carbon emission prediction method, system and device, and the method comprises the steps: collecting original power data of each power consumption device of a target enterprise, and carrying out the data cleaning and data conversion of the original power data to obtain initial power data; recombining and arranging the initial power data to obtain a data set, and fusing the data set with the carbon dioxide emission corresponding to the initial power data to obtain fused power data; a carbon emission prediction model comprising a plurality of sub-prediction models is established, each sub-prediction model is composed of one or more of a traditional machine learning algorithm, a convolutional neural network algorithm and a long-short-term memory network algorithm, and the fused power data is input to the sub-prediction models to obtain corresponding enterprise carbon emission prediction values; and calculating an average value of the plurality of enterprise carbon emission predicted values to obtain an enterprise carbon emission value. According to the method, the carbon emission value is predicted by combining multiple models with the electric power data, errors are reduced, and the prediction accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of carbon emission prediction, and in particular to a method, system and device for predicting carbon emission based on the electricity consumption of an enterprise. Background Art

[0002] Carbon emission forecasting is to predict carbon emissions in a specific period in the future by analyzing historical data, current trends and possible influencing factors. This forecast can be used in formulating environmental policies, planning the effects of sustainable development strategies, etc.

[0003] The Chinese patent application with application number 202310213299.8 and application date June 23, 2023 discloses a method and terminal for predicting carbon emissions based on a dynamic time-lag model, including the following steps: S1. Collecting the original data of factors affecting carbon emissions, and obtaining the main influencing factors of carbon emissions through standardization processing and maximum information coefficient method screening; S2. Constructing a first cumulative sequence of influencing factors and a second cumulative sequence of carbon emissions; S3. Using the impulse response function to determine the dynamic response relationship between variables, and obtaining the optimal lag parameters between variables; S4. Determine whether there is a time-lag relationship between the influencing factors and carbon emissions. If so, set the time-lag interval and calculate the time-lag weight, and calculate the model parameter value. If not, directly calculate the model parameter value; S5. Substitute the model parameter value and the main influencing factors into the enhanced multivariate dynamic time-lag discrete gray prediction model, and calculate the fitting value and predicted value of carbon emissions under the second cumulative sequence, so as to reflect the lag process of different influencing factors and improve the prediction accuracy of the model, but this technology has the problem of difficulty in accurately predicting long-term trends.

[0004] The Chinese patent application with application number 202210587485.3 and application date May 25, 2022, discloses a method and device for predicting carbon emissions based on electricity data, including: obtaining historical energy data of the area to be predicted; determining the carbon emissions and electricity consumption corresponding to the historical energy data of the area to be predicted; determining the historical carbon-electricity intensity of the area to be predicted based on the carbon emissions and electricity consumption; performing linear regression calculation on the carbon-electricity intensity, and when the goodness of fit reaches a preset threshold, calculating the total carbon emissions of the area to be predicted through the linear regression calculation, which solves the problems of many data types, difficult data collection, and difficult emissions calculation in existing calculation methods, but this technology has the problem of limited fitting ability leading to inaccurate predictions.

[0005] In the above-mentioned comparative documents, carbon emission values ​​are usually predicted using a single model. When a single model is used to predict carbon emission values ​​through power data, due to the diversity and heterogeneity of the collected power data, the single model cannot determine whether the model is the optimal model for processing power data during the prediction process, and cannot accurately capture the heterogeneity of the data. The prediction results are prone to errors, and the carbon emission values ​​will also be inaccurate due to the erroneous prediction results.

[0006] Therefore, it is urgent to propose a carbon emission prediction method, system and equipment based on the enterprise's electricity consumption to solve the above problems. Summary of the invention

[0007] The purpose of the present invention is to overcome the problem of inaccurate prediction in the prior art and to provide a method, system and device for predicting carbon emissions based on the electricity consumption of an enterprise with accurate prediction.

[0008] To achieve the above objectives, the technical solution of the present invention is: a carbon emission prediction method based on the electricity consumption of an enterprise, the method comprising the following steps:

[0009] S1. Collect the original power data of each power-consuming equipment of the target enterprise;

[0010] S2. Cleaning and converting the collected original power data to obtain initial power data;

[0011] S3, recombining and arranging the initial power data to obtain a data set, and fusing the data set with the carbon dioxide emissions corresponding to the initial power data to obtain fused power data;

[0012] S4. Establish a carbon emission prediction model including multiple sub-prediction models, each of which is composed of one or more of a traditional machine learning algorithm, a convolutional neural network algorithm, and a long short-term memory network algorithm, and then input the fused power data into the sub-prediction model to obtain the corresponding enterprise carbon emission prediction value;

[0013] S5. Calculate the average of the carbon emission forecast values ​​of multiple enterprises to obtain the carbon emission value of the enterprise.

[0014] The normalization method is used to convert the original power data after data cleaning;

[0015] The calculation formula for the data conversion is:

[0016]

[0017] Where: x i is the original power data of device i; x i min is the minimum value of the original power data of device i; x i maxis the maximum value of the original power data of device i; x′ i is the initial power data of device i; the value range of i is [0, n], and n is the number of power-consuming devices in the target enterprise.

[0018] In step S3, the data set is obtained according to the following steps:

[0019] First, data features are extracted from the initial power data and key data information is obtained. Then, the obtained data features and key data information are recombined and arranged to obtain a data set.

[0020] First, the fused power data is input into the carbon emission prediction model including m sub-prediction models, and then the m sub-prediction models are trained by the fused power data. The data set in the fused power data and the carbon dioxide emissions corresponding to the initial power data are used as the input data and labels for the sub-prediction model training respectively. When the sub-prediction model training is completed, the m sub-prediction models process and output the fused power data to obtain m corporate carbon emission prediction values, among which the corporate carbon emission prediction value of the jth sub-prediction model is The value range of j is [1, m].

[0021] The carbon emission prediction model includes three sub-prediction models, namely sub-prediction model I, sub-prediction model II and sub-prediction model III;

[0022] The sub-prediction model I includes: an input layer, a hidden layer, and an output layer;

[0023] Among them, the input layer contains 8 nodes, corresponding to 8 features; the hidden layer has 5 nodes; the output layer contains 1 node;

[0024] Sub-prediction model I calculates the output value of each neuron in turn according to the forward propagation algorithm. The jth neuron in the i-th layer has an output value a i,j for:

[0025]

[0026] Where: a i,j is the output value of the jth node of the i-th layer of the neural network; j = 1, 2, ..., 5; f(·) is the activation function, using the Sigmoid activation function; m i-1 is the number of neurons in the i-1th layer; w i-1,k,j is the weight of the connection between the kth neuron in the i-1th layer and the jth neuron in the current layer; a i-1,k is the output value of the kth neuron in the i-1th layer; b i,j is the bias term of the jth neuron in the i-th layer;

[0027] The weighted input value of the hidden layer is:

[0028]

[0029] Where: z 2,j is the weighted input value of the jth node in the hidden layer, i.e., the second parameter of the hidden layer; w 1,k,j is the weight of the connection between the kth neuron in the input layer and the jth neuron in the hidden layer, that is, the connection weight from the first layer to the second layer; x k is the kth eigenvalue of the input sample; b 2,j is the bias term of the jth neuron in the hidden layer;

[0030] Input the integrated power data into sub-forecast model I, and obtain the enterprise carbon emission forecast value of sub-forecast model I:

[0031]

[0032] Where: is the enterprise carbon emission forecast value of sub-forecast model I; 3,1 is the predicted value of the output layer; w 2,j,1 is the connection weight between the jth neuron in the hidden layer and the only neuron in the output layer, that is, the connection weight from the second layer to the third layer; a 2,j is the output value of the jth neuron in the hidden layer; b 3,1 is the bias term of the only neuron in the output layer;

[0033] The loss function of the sub-prediction model II is constructed, and the calculation formula of the loss function is:

[0034]

[0035] r = y - β x;

[0036] Where: ψ(r) is the loss function, r is the residual; β is the regression coefficient; y is the label of sub-prediction model II during training; x is the feature of sub-prediction model II during training; δ is used to control the tolerance of sub-prediction model II to outliers, and its value is 1;

[0037] Input the integrated power data into sub-forecast model II to obtain the enterprise carbon emission forecast value of sub-forecast model II:

[0038]

[0039] Where: is the enterprise carbon emission forecast value of sub-forecast model II; Q is the integrated power data;

[0040] The sub-prediction model III includes: a forget gate, an input gate, a cell update state, an output gate, a hidden state and a prediction state, with an input dimension of 8 and a hidden dimension of 4;

[0041] The forget gate controls the degree of forgetting of the cell state in the previous time step:

[0042] f t =σ(W f ·[h t-1 , x t ]+b f );

[0043] Where: x t is the current time step of the input sequence; h t-1 is the hidden state at the previous time; f t is the forget gate; σ is the Sigmoid function; W f is the weight matrix of the forget gate; b f is the bias of the forget gate;

[0044] The input gate controls the inflow of new information as:

[0045] i t =σ(W i ·[h t-1 , x t ]+b i );

[0046]

[0047] Where: i t is the input gate; W i is the weight of the input gate; x t is the current time step of the input sequence; b i is the bias of the input gate; is the candidate cell state; tanh is the hyperbolic tangent function; W c is the weight of the candidate cell state; b c Bias for candidate cells;

[0048] Update the cell status to:

[0049]

[0050] Where: C t is the cell state at the current time step; C t-1 is the hidden state of the previous time;

[0051] The output gate is:

[0052] o t =σ(W o ·[h t-1, x t ]+b o );

[0053] Where: t is the output gate; W o is the weight of the output gate; b o is the bias of the output gate;

[0054] The hidden state is:

[0055] h t =o t tanh(C t );

[0056] Where: h t is the hidden state of the current time step;

[0057] Input the integrated power data into sub-forecast model III, and obtain the enterprise carbon emission forecast value of sub-forecast model III:

[0058]

[0059] Where: is the enterprise carbon emission forecast value of sub-forecast model III; W g is the weight of the fully connected layer; b y is the bias of the fully connected layer.

[0060] In step S5, the enterprise carbon emission value is obtained according to the following method:

[0061] Calculate the average of multiple enterprise carbon emission forecast values, which is the enterprise carbon emission value. The calculation formula of the enterprise carbon emission value is:

[0062]

[0063] Where: K is the carbon emission value of the enterprise; K max is the maximum value of the enterprise carbon emission prediction value in the m sub-prediction models; K min is the minimum value of the enterprise carbon emission prediction value in the m sub-prediction models; K sum is the sum of the carbon emission forecast values ​​of m enterprises, K sum =y m1 +y m2 +...+y mm .

[0064] A carbon emission prediction system based on the electricity consumption of an enterprise, the system is applied to the above-mentioned method, the system comprising:

[0065] Data collection module, used to collect the original power data of each power-consuming device of the target enterprise;

[0066] The data preprocessing module is used to clean and convert the collected raw power data to obtain initial power data;

[0067] A data fusion module is used to obtain a data set by recombining and arranging the initial power data, and to fuse the data set with the carbon dioxide emissions corresponding to the initial power data to obtain fused power data;

[0068] The prediction model module is used to establish a carbon emission prediction model including multiple sub-prediction models. Each sub-prediction model is composed of one or more of the traditional machine learning algorithm, the convolutional neural network algorithm and the long short-term memory network algorithm. The fused power data is then input into the sub-prediction model to obtain the corresponding enterprise carbon emission prediction value;

[0069] The prediction result processing module is used to calculate the average value of carbon emission prediction values ​​of multiple enterprises to obtain the carbon emission value of the enterprise.

[0070] The prediction system also includes an early warning module, which is used to compare the enterprise's carbon emission value with the early warning threshold. If the enterprise's carbon emission value is greater than the preset early warning threshold, an early warning is issued; if the enterprise's carbon emission value is less than or equal to the preset early warning threshold, no early warning is issued.

[0071] A carbon emission prediction device based on the power consumption of an enterprise, comprising a memory and a processor;

[0072] The memory is used to store computer program code and transmit the computer program code to the processor;

[0073] The processor is used to execute the method as described above according to the instructions in the computer program code.

[0074] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0075] Compared with the prior art, the present invention has the following beneficial effects:

[0076] 1. The present invention provides a carbon emission prediction method based on the power consumption of an enterprise. The multi-model method is used to predict the fused power data. The multi-model prediction method can provide more diversity to adapt to the data heterogeneity in the complex fused power data, thereby reducing the error of the prediction result and making the obtained carbon emission value more accurate. The fused power data obtained by fusing the original power data and cooperating with the multi-model prediction can help improve the accuracy of the prediction result. The fused power data has more comprehensive and integrated information, which makes up for the deficiency of the original power data of a single device, provides more samples and richer data feature information, and allows the sub-prediction model to learn a wider range of information, thereby improving its generalization ability and being more robust and reliable. Therefore, the design adopts multiple models for prediction to improve the prediction accuracy, generalization ability and robustness.

[0077] 2. The present invention provides a carbon emission prediction method based on the power consumption of an enterprise. By acquiring the original power data of each power-consuming device of the enterprise, the carbon dioxide emission value of the enterprise can be predicted, so that the enterprise can intuitively know the amount of carbon dioxide emitted by the enterprise, and then carry out corresponding energy conservation and emission reduction. Energy conservation and emission reduction are carried out in this way, which reduces the calculation cost and makes energy conservation and emission reduction more targeted. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 The present invention is a flow chart of a carbon emission prediction method based on the electricity consumption of an enterprise.

[0079] Figure 2 It is a structural block diagram of a carbon emission prediction system based on enterprise power consumption in the present invention.

[0080] Figure 3 It is a structural block diagram of a carbon emission prediction device based on the power consumption of an enterprise according to the present invention. DETAILED DESCRIPTION

[0081] The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0082] Embodiment 1:

[0083] See also Figure 1 , a carbon emission prediction method based on the electricity consumption of an enterprise, the method comprising the following steps:

[0084] S1. Collect the original power data of each power-consuming equipment of the target enterprise;

[0085] The power-consuming equipment includes enterprise production equipment, daily office equipment, lighting equipment, air conditioning and heating equipment, communication equipment, safety equipment, elevators and escalators, and kitchen equipment;

[0086] The original electricity consumption data includes the energy consumption of each power-consuming device in a specific time period, the operating activity and energy consumption level of each power-consuming device.

[0087] S2. Cleaning and converting the collected original power data to obtain initial power data;

[0088] The data in the original power data is screened and compared through Python code. When there is duplicate data in the comparison result, the duplicate data is deleted and the other data is retained. When there is a missing value in one row of data during the screening process, the row of data is deleted. After the original power data is screened and compared, the normalization method is used to convert the original power data after data cleaning.

[0089] The calculation formula for the data conversion is:

[0090]

[0091] Where: x i is the original power data of device i; x i min is the minimum value of the original power data of device i; x i max is the maximum value of the original power data of device i; x′ i is the initial power data of device i; the value range of i is [0, n], and n is the number of power-consuming devices of the target enterprise;

[0092] Using the normalization method to transform the data can reduce the impact of the dimensional differences between different data features, making it easier for the subsequent sub-prediction model to capture the relationship between data features and improve the performance of the sub-prediction model; this method can also reduce the variance of the data feature values, making the sub-prediction model more robust to outlier processing and improving the generalization ability of the sub-prediction model; it can make the update of the subsequent sub-prediction model parameters more stable and consistent, speed up the convergence of the sub-prediction model and reduce the training time;

[0093] Data converted without normalization will result in large differences in weights between data features, affecting the performance of subsequent sub-prediction models.

[0094] S3, recombining and arranging the initial power data to obtain a data set, and fusing the data set with the carbon dioxide emissions corresponding to the initial power data to obtain fused power data Q;

[0095] In step S3, the data set is obtained according to the following steps:

[0096] First, extract data features and obtain key data information from the initial power data, and then recombine and arrange the obtained data features and key data information to obtain a data set;

[0097] After obtaining the data set, the Kendall analysis method is used to integrate the initial power data in the data set with its corresponding carbon dioxide emissions, and the multi-level fusion method is used to fuse the initial power data with its corresponding carbon dioxide emissions;

[0098] Fusion of power data has more comprehensive and integrated information, which makes up for the insufficiency of single device data and helps improve the accuracy of prediction results; fusion of power data can increase the data feature dimension, so that the sub-prediction model can better capture the correlation and influencing factors between different devices; fusion of power data can allow the sub-prediction model to learn more extensive information, thereby improving its generalization ability and making the sub-prediction model perform better when facing new data; fusion of power data can provide more samples and richer data feature information, making the sub-prediction model more robust and reliable;

[0099] Assuming that the fused power data includes information of n power-consuming devices, the fused power data has n columns of information, where the first n columns are initial power data, and the last n columns are carbon dioxide emissions corresponding to the initial power data. The initial power data in each row corresponds to its corresponding carbon dioxide emissions, and the corresponding time of the two is the same.

[0100] S4. Establish a carbon emission prediction model including multiple sub-prediction models, each of which is composed of one or more of a traditional machine learning algorithm, a convolutional neural network algorithm, and a long short-term memory network algorithm, and then input the fused power data into the sub-prediction model to obtain the corresponding enterprise carbon emission prediction value;

[0101] First, the fused power data is input into the carbon emission prediction model including m sub-prediction models, and then the m sub-prediction models are trained by the fused power data. The data set in the fused power data and the carbon dioxide emissions corresponding to the initial power data are used as the input data and labels for the sub-prediction model training respectively. When the sub-prediction model training is completed, the m sub-prediction models process and output the fused power data to obtain m corporate carbon emission prediction values, among which the corporate carbon emission prediction value of the jth sub-prediction model is Among them, the value range of j is [1, m];

[0102] The carbon emission prediction model includes three sub-prediction models, namely sub-prediction model I, sub-prediction model II and sub-prediction model III;

[0103] The sub-prediction model I includes: an input layer, a hidden layer, and an output layer;

[0104] Among them, the input layer contains 8 nodes, corresponding to 8 features; the hidden layer has 5 nodes; the output layer contains 1 node;

[0105] Sub-prediction model I calculates the output value of each neuron in turn according to the forward propagation algorithm. The jth neuron in the i-th layer has an output value a i,j for:

[0106]

[0107] Where: a i,j is the output value of the jth node of the i-th layer of the neural network; j = 1, 2, ..., 5; f(·) is the activation function, using the Sigmoid activation function; m i-1 is the number of neurons in the i-1th layer; w i-1,k,j is the weight of the connection between the kth neuron in the i-1th layer and the jth neuron in the current layer; a i-1,k is the output value of the kth neuron in the i-1th layer; b i,j is the bias term of the jth neuron in the i-th layer;

[0108] The weighted input value of the hidden layer is:

[0109]

[0110] Where: z 2,j is the weighted input value of the jth node in the hidden layer, i.e., the second parameter of the hidden layer; w 1,k,j is the weight of the connection between the kth neuron in the input layer and the jth neuron in the hidden layer, that is, the connection weight from the first layer to the second layer; x k is the kth eigenvalue of the input sample; b 2,j is the bias term of the jth neuron in the hidden layer;

[0111] Input the integrated power data into sub-forecast model I, and obtain the enterprise carbon emission forecast value of sub-forecast model I:

[0112]

[0113] Where: is the enterprise carbon emission forecast value of sub-forecast model I; 3,1 is the predicted value of the output layer; w 2,j,1 is the connection weight between the jth neuron in the hidden layer and the only neuron in the output layer, that is, the connection weight from the second layer to the third layer; a 2,j is the output value of the jth neuron in the hidden layer; b 3,1 is the bias term of the only neuron in the output layer;

[0114] The loss function of the sub-prediction model II is constructed, and the calculation formula of the loss function is:

[0115]

[0116] r = y - β·x;

[0117] Where: ψ(r) is the loss function, r is the residual; β is the regression coefficient, which is obtained by training the sub-prediction model II with the integrated power data; y is the label during the training of the sub-prediction model II; x is the feature during the training of the sub-prediction model II; δ is used to control the tolerance of the sub-prediction model II to outliers, and its value is 1;

[0118] Input the integrated power data into sub-forecast model II to obtain the enterprise carbon emission forecast value of sub-forecast model II:

[0119]

[0120] β=[-0.005403 0.004482 0.002810 0.001617 0.006357 0.000159 0.0036140.002491];

[0121] Where: is the enterprise carbon emission forecast value of sub-forecast model II; Q is the integrated power data;

[0122] The sub-prediction model III includes: a forget gate, an input gate, a cell update state, an output gate, a hidden state and a prediction state, with an input dimension of 8 and a hidden dimension of 4;

[0123] The forget gate controls the degree of forgetting of the cell state in the previous time step:

[0124] f t =σ(W f ·[h t-1 , x t ]+b f );

[0125]

[0126] b f =[0.20150086 0.99281187 0.11987472 0.56253555];

[0127] Where: x t is the current time step of the input sequence; h t-1 is the hidden state at the previous time; f t is the forget gate; σ is the Sigmoid function; W f is the weight matrix of the forget gate; b f is the bias of the forget gate;

[0128] The input gate controls the inflow of new information as:

[0129] i t =σ(W i ·[h t-1 , x t ]+b i );

[0130] b i =[0.06778536 0.79520636 0.27347272 0.27129267];

[0131]

[0132] b c =[0.48229135 0.10234584 0.07792457 0.72202283];

[0133]

[0134] Where: i t is the input gate; W i is the weight of the input gate; x t is the current time step of the input sequence; b i is the bias of the input gate; is the candidate cell state; tanh is the hyperbolic tangent function; W c is the weight of the candidate cell state; b c Bias for candidate cells;

[0135] Update the cell status to:

[0136]

[0137] Where: C t is the cell state at the current time step; C t-1 is the hidden state of the previous time;

[0138] The output gate is:

[0139] o t =σ(W o ·[h t-1 , x t ]+b o );

[0140] b o =[0.54985926 0.34549831 0.23505613 0.35851068];

[0141]

[0142] Where:t is the output gate; W o is the weight of the output gate; b o is the bias of the output gate;

[0143] The hidden state is:

[0144] h t =o t tanh(C t );

[0145] Where: h t is the hidden state of the current time step;

[0146] Input the integrated power data into sub-forecast model III, and obtain the enterprise carbon emission forecast value of sub-forecast model III:

[0147] y m3 =W g ·h t +b y ;

[0148] by = [0.8765428];

[0149] W g =[0.4850 0.9031 0.7642 0.3716];

[0150] Where: is the enterprise carbon emission forecast value of sub-forecast model III; W g is the weight of the fully connected layer; b y is the bias of the fully connected layer.

[0151] S5. Calculate the average of the carbon emission forecast values ​​of multiple enterprises to obtain the carbon emission value of the enterprise;

[0152] In step S5, the enterprise carbon emission value is obtained according to the following method:

[0153] Calculate the average of multiple enterprise carbon emission forecast values, which is the enterprise carbon emission value. The calculation formula of the enterprise carbon emission value is:

[0154]

[0155] Where: K is the carbon emission value of the enterprise; K max is the maximum value of the enterprise carbon emission prediction value in the m sub-prediction models; K min is the minimum value of the enterprise carbon emission prediction value in the m sub-prediction models; K sum is the sum of the carbon emission forecast values ​​of m enterprises, K sum =y m1 +y m2 +…+y mm.

[0156] Embodiment 2:

[0157] The basic content is the same as that of Example 1, except that:

[0158] See also Figure 1 In step S5, the carbon emission value of the enterprise is obtained according to the following method:

[0159] First, the accuracy of sub-forecast model I, sub-forecast model II and sub-forecast model III is set respectively. The sum of the accuracy of the three sub-forecast models is the total accuracy. Then, the prediction result weights of sub-forecast model I, sub-forecast model II and sub-forecast model III are obtained according to the proportion of the accuracy in the total accuracy. Then, the weights of normalized sub-forecast model I, normalized sub-forecast model II and normalized sub-forecast model III are obtained according to the proportion of the prediction result weights of sub-forecast model I, sub-forecast model II and sub-forecast model III in the total weight respectively. Then, the weight is applied to calculate the final result to obtain the carbon emission value of the enterprise.

[0160]

[0161] In the formula: y1 is the prediction result of sub-prediction model I; NormalizedWeight1 is the weight of the normalized sub-prediction model I; y2 is the prediction result of sub-prediction model II; NormalizedWeight2 is the weight of the normalized sub-prediction model II; y3 is the prediction result of sub-prediction model III; NormalizedWeight3 is the weight of the normalized sub-prediction model III.

[0162] Embodiment 3:

[0163] See also Figure 2 , a carbon emission prediction system based on the electricity consumption of an enterprise, the system is applied to the method described in Example 1, the system comprising:

[0164] Data collection module, used to collect the original power data of each power-consuming device of the target enterprise;

[0165] The data preprocessing module is used to clean and convert the collected raw power data to obtain initial power data;

[0166] A data fusion module is used to obtain a data set by recombining and arranging the initial power data, and to fuse the data set with the carbon dioxide emissions corresponding to the initial power data to obtain fused power data;

[0167] The prediction model module is used to establish a carbon emission prediction model including multiple sub-prediction models. Each sub-prediction model is composed of one or more of the traditional machine learning algorithm, the convolutional neural network algorithm and the long short-term memory network algorithm. The fused power data is then input into the sub-prediction model to obtain the corresponding enterprise carbon emission prediction value;

[0168] The prediction result processing module is used to calculate the average value of carbon emission prediction values ​​of multiple enterprises to obtain the carbon emission value of the enterprise.

[0169] The prediction system also includes an early warning module, which is used to compare the carbon emission value of the enterprise with the early warning threshold. If the carbon emission value of the enterprise is greater than the preset early warning threshold, an early warning is issued; if the carbon emission value of the enterprise is less than or equal to the preset early warning threshold, no early warning is issued;

[0170] By setting thresholds to determine whether the carbon emissions of an enterprise exceed the standard, it is easy to understand and apply. This method does not require complex training and parameter tuning processes, and can make quick decisions and preliminary screening. For some real-time or near real-time carbon emissions monitoring and management tasks, it can promptly detect abnormal or excessive carbon emissions. In some management decisions, setting carbon emissions threshold standards can be used as a reference to help enterprise managers or regulatory authorities make management decisions and formulate action plans. By setting reasonable thresholds, it is possible to promptly detect carbon emissions exceeding the standard or high-risk situations, provide early warnings and risk warnings, and prompt enterprises to take necessary emission reduction measures and response measures.

[0171] Embodiment 4:

[0172] See also Figure 3 , a carbon emission prediction device based on the power consumption of an enterprise, including a memory and a processor;

[0173] The memory is used to store computer program code and transmit the computer program code to the processor;

[0174] The processor is used to execute the method as described in Example 1 according to the instructions in the computer program code.

[0175] A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method described in Example 1 when executed by a processor.

[0176] Generally speaking, the computer instructions for implementing the method of the present invention may be carried in any combination of one or more computer-readable storage media. Non-transitory computer-readable storage media may include any computer-readable media, except for the signal itself that is temporarily propagating.

[0177] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EKROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0178] Computer program code for performing the operation of the present invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages, in particular, Python suitable for neural network computing and platform frameworks based on TensorFlow, PyTorch, etc. can be used. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer or to an external computer (for example, using an Internet service provider to connect via the Internet) through any type of network, including a local area network (LAN) or a wide area network (WAN).

[0179] The above-mentioned device and non-temporary computer-readable storage medium can be found in the specific description of a carbon emission prediction method based on enterprise power consumption and its beneficial effects, which will not be repeated here.

[0180] Although the embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A carbon emission prediction method based on enterprise power consumption, characterized in that: The method comprises the following steps: S1. Collect the original power data of each power-consuming equipment of the target enterprise; S2. Cleaning and converting the collected original power data to obtain initial power data; S3, recombining and arranging the initial power data to obtain a data set, and fusing the data set with the carbon dioxide emissions corresponding to the initial power data to obtain fused power data; S4. Establish a carbon emission prediction model including multiple sub-prediction models, each of which is composed of one or more of a traditional machine learning algorithm, a convolutional neural network algorithm, and a long short-term memory network algorithm, and then input the fused power data into the sub-prediction model to obtain the corresponding enterprise carbon emission prediction value; S5. Calculate the average of the carbon emission forecast values ​​of multiple enterprises to obtain the carbon emission value of the enterprise.

2. A carbon emission prediction method based on enterprise power consumption according to claim 1, characterized in that: The normalization method is used to convert the original power data after data cleaning; The calculation formula for the data conversion is: Where: x i is the original power data of device i; x imin is the minimum value of the original power data of device i; x imax is the maximum value of the original power data of device i; x′ i is the initial power data of device i; the value range of i is [0, n], and n is the number of power-consuming devices in the target enterprise.

3. The carbon emission prediction method based on enterprise power consumption according to claim 1 is characterized in that: In step S3, the data set is obtained according to the following steps: First, data features are extracted from the initial power data and key data information is obtained. Then, the obtained data features and key data information are recombined and arranged to obtain a data set.

4. The carbon emission prediction method based on enterprise power consumption according to claim 1 is characterized in that: First, the fused power data is input into the carbon emission prediction model including m sub-prediction models, and then the m sub-prediction models are trained by the fused power data. The data set in the fused power data and the carbon dioxide emissions corresponding to the initial power data are used as the input data and labels for the sub-prediction model training respectively. When the sub-prediction model training is completed, the m sub-prediction models process and output the fused power data to obtain m corporate carbon emission prediction values, among which the corporate carbon emission prediction value of the jth sub-prediction model is The value range of j is [1, m].

5. A carbon emission prediction method based on enterprise power consumption according to claim 4, characterized in that: The carbon emission prediction model includes three sub-prediction models, namely sub-prediction model I, sub-prediction model II and sub-prediction model III; The sub-prediction model I includes: an input layer, a hidden layer, and an output layer; Among them, the input layer contains 8 nodes, corresponding to 8 features; the hidden layer has 5 nodes; the output layer contains 1 node; Sub-prediction model I calculates the output value of each neuron in turn according to the forward propagation algorithm. The jth neuron in the i-th layer has an output value a i,j for: Where: a i,j is the output value of the jth node of the i-th layer of the neural network; j = 1, 2, ..., 5; f(·) is the activation function, using the Sigmoid activation function; m i-1 is the number of neurons in the i-1th layer; w i-1,k,j is the weight of the connection between the kth neuron in the i-1th layer and the jth neuron in the current layer; a i-1,k is the output value of the kth neuron in the i-1th layer; b i,j is the bias term of the jth neuron in the i-th layer; The weighted input value of the hidden layer is: Where: z 2,j is the weighted input value of the jth node in the hidden layer, i.e., the second parameter of the hidden layer; w 1,k,j is the weight of the connection between the kth neuron in the input layer and the jth neuron in the hidden layer, that is, the connection weight from the first layer to the second layer; x k is the kth eigenvalue of the input sample; b 2,j is the bias term of the jth neuron in the hidden layer; Input the integrated power data into sub-forecast model I, and obtain the enterprise carbon emission forecast value of sub-forecast model I: Where: is the enterprise carbon emission forecast value of sub-forecast model I; 3,1 is the predicted value of the output layer; w 2,j,1 is the connection weight between the jth neuron in the hidden layer and the only neuron in the output layer, that is, the connection weight from the second layer to the third layer; a 2,j is the output value of the jth neuron in the hidden layer; b 3,1 is the bias term of the only neuron in the output layer; The loss function of the sub-prediction model II is constructed, and the calculation formula of the loss function is: r = y - β x; Where: ψ(r) is the loss function, r is the residual; β is the regression coefficient; y is the label of sub-prediction model II during training; x is the feature of sub-prediction model II during training; δ is used to control the tolerance of sub-prediction model II to outliers, and its value is 1; Input the integrated power data into sub-forecast model II to obtain the enterprise carbon emission forecast value of sub-forecast model II: Where: is the enterprise carbon emission forecast value of sub-forecast model II; Q is the integrated power data; The sub-prediction model III includes: a forget gate, an input gate, a cell update state, an output gate, a hidden state and a prediction state, with an input dimension of 8 and a hidden dimension of 4; The forget gate controls the degree of forgetting of the cell state in the previous time step: f t =σ(W f ·[h t-1 ,x t ]+b f ); Where: x t is the current time step of the input sequence; h t-1 is the hidden state at the previous time; f t is the forget gate; σ is the Sigmoid function; W f is the weight matrix of the forget gate; b f is the bias of the forget gate; The input gate controls the inflow of new information as: i t =σ(W i ·[h t-1 ,x t ]+b i ); Where: i t is the input gate; W i is the weight of the input gate; x t is the current time step of the input sequence; b i is the bias of the input gate; is the candidate cell state; tanh is the hyperbolic tangent function; W c is the weight of the candidate cell state; b c Bias for candidate cells; Update the cell status to: Where: C t is the cell state at the current time step; C t-1 is the hidden state of the previous time; The output gate is: the t =σ(W o ·[h t-1 ,x t ]+b o ); In the formula: o t is the output gate; W o is the weight of the output gate; b o is the bias of the output gate; The hidden state is: h t =o t ·tanh(C t ); Where: h t is the hidden state of the current time step; Input the integrated power data into sub-forecast model III, and obtain the enterprise carbon emission forecast value of sub-forecast model III: Where: is the enterprise carbon emission forecast value of sub-forecast model III; W g is the weight of the fully connected layer; b y is the bias of the fully connected layer.

6. A carbon emission prediction method based on enterprise power consumption according to claim 4, characterized in that: In step S5, the enterprise carbon emission value is obtained according to the following method: Calculate the average of multiple enterprise carbon emission forecast values, which is the enterprise carbon emission value. The calculation formula of the enterprise carbon emission value is: Where: K is the carbon emission value of the enterprise; K max is the maximum value of the enterprise carbon emission prediction value in the m sub-prediction models; K min is the minimum value of the enterprise carbon emission prediction value in the m sub-prediction models; K sum is the sum of the carbon emission forecast values ​​of m enterprises, K sum =y m1 +y m2 +...+y mm .

7. A carbon emission prediction system based on enterprise power consumption, characterized in that: The system is applied to the method described in any one of claims 1 to 6, and the system comprises: Data collection module, used to collect the original power data of each power-consuming device of the target enterprise; The data preprocessing module is used to clean and convert the collected raw power data to obtain initial power data; A data fusion module is used to obtain a data set by recombining and arranging the initial power data, and to fuse the data set with the carbon dioxide emissions corresponding to the initial power data to obtain fused power data; The prediction model module is used to establish a carbon emission prediction model including multiple sub-prediction models. Each sub-prediction model is composed of one or more of the traditional machine learning algorithm, the convolutional neural network algorithm and the long short-term memory network algorithm. The fused power data is then input into the sub-prediction model to obtain the corresponding enterprise carbon emission prediction value; The prediction result processing module is used to calculate the average value of carbon emission prediction values ​​of multiple enterprises to obtain the carbon emission value of the enterprise.

8. A carbon emission prediction system based on enterprise power consumption according to claim 7, characterized in that: The prediction system also includes an early warning module, which is used to compare the enterprise's carbon emission value with the early warning threshold. If the enterprise's carbon emission value is greater than the preset early warning threshold, an early warning is issued; if the enterprise's carbon emission value is less than or equal to the preset early warning threshold, no early warning is issued.

9. A carbon emission prediction device based on the electricity consumption of an enterprise, characterized in that: including memory and processor; The memory is used to store computer program code and transmit the computer program code to the processor; The processor is configured to execute the method according to any one of claims 1 to 6 according to the instructions in the computer program code.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.