Carbon accounting process factor correction system based on LSTM network model
Through the carbon accounting process factor correction system based on the LSTM network model, the problems of carbon emission prediction accuracy and process factor optimization in the existing technology are solved, and a more efficient and accurate carbon accounting process is achieved.
Patent Information
- Application Number
- CN202410656299.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
AI Technical Summary
Existing carbon accounting models have poor global search and convergence in the process of predicting carbon emissions. The accuracy of the prediction data is not high, and it is impossible to clarify the carbon emissions and optimization process factors in the production and preparation process.
A carbon accounting process factor correction system based on the LSTM network model is adopted, including data processing, feature processing, long and short-term memory modules, carbon accounting factor modules and carbon emission prediction modules. Through data cleaning, feature screening and model training, the carbon accounting process is optimized. process factors to improve prediction accuracy.
It improves the accuracy and efficiency of the carbon accounting process, enhances the reliability and controllability of carbon emission results, and ensures the accuracy of carbon emission prediction and the stability of the model.
Smart Images

Figure CN118608162A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of carbon accounting models, and in particular to a carbon accounting process factor correction system based on an LSTM network model. Background Art
[0002] Carbon accounting is a method of measuring direct and indirect emissions of carbon dioxide and its equivalent gases into the biosphere from industrial activities. Enterprises collect, count and record data on carbon emission-related parameters in accordance with monitoring plans, and calculate and accumulate all emission-related data. The main purpose of carbon accounting is to directly quantify carbon emission data and identify potential emission reduction links and methods by analyzing carbon emission data from each link. At present, there are three main ways to calculate carbon emissions: emission factor method, mass balance method and actual measurement method. Among them, the emission factor method is the most widely used carbon emission accounting method. Its advantage is that it is simple and easy to use and is suitable for large-scale and wide-ranging carbon emission accounting.
[0003] The Chinese patent with publication number CN117875973A discloses a regional carbon accounting data management system based on spatial objects, including a data source module for collecting and storing carbon emission data of each spatial object in the region; a data classification module for sorting out the basic information of each spatial object in the region, identifying different IDs for each spatial object in the region, classifying the collected energy consumption and carbon emission data and classifying them into corresponding spatial objects, and assigning the ID of the corresponding spatial object to each data; a data accounting module for calculating the energy consumption and carbon emissions of each spatial object in the region; and a data display module for outputting energy consumption and carbon emission data that meet the search conditions. The data management system provided improves the accuracy, comprehensiveness and timeliness of regional carbon emission estimation, and provides a high-quality data basis for reducing the overall energy consumption or carbon emission level of the region. However, the above scheme cannot clearly define the carbon emissions of a certain process in the production and preparation process, cannot analyze and select the optimal process, equipment and other factors involved in production, and the existing prediction model has poor global search and convergence, and the prediction data accuracy is poor. Therefore, it is very necessary to provide a carbon accounting process factor correction system based on the LSTM network model to improve the accuracy and efficiency of the carbon accounting process. Summary of the invention
[0004] In view of this, the present invention proposes a carbon accounting process factor correction system based on the LSTM network model.
[0005] The present invention provides a carbon accounting process factor correction system based on an LSTM network model, comprising a data processing module, a feature processing module, a long short-term memory module, a carbon accounting factor module and a carbon emission prediction module, wherein:
[0006] The data processing module is connected to the feature processing module, and is used to process the collected carbon emission historical data and output carbon emission standard data;
[0007] The feature processing module is connected to the long short-term memory module, and the feature processing module is used to screen the carbon emission standard data to obtain carbon emission prediction features;
[0008] The long short-term memory module is connected to the carbon accounting factor module, and the long short-term memory module is used to construct an LSTM network model and train the carbon emission prediction features input into the long short-term memory module to optimize the LSTM network model;
[0009] The carbon accounting factor module is connected to the carbon emission prediction module, and is used to obtain key factors that affect the carbon emission results output by the carbon emission prediction module, and adjust the process factors in the carbon accounting process according to the carbon emission results;
[0010] The carbon emission prediction module is used to receive the carbon emission standard data and the process factors, and predict the carbon emission results.
[0011] On the basis of the above technical solution, preferably, the data processing module includes a data collection unit, a data cleaning unit, a data normalization unit and an outlier detection unit, wherein:
[0012] The data collection unit is used to collect historical carbon emission data of the target industrial area;
[0013] The outlier detection unit is used to detect outliers in the carbon emission historical data;
[0014] The data cleaning unit is used to remove noise from the carbon emission historical data after the abnormal value detection is completed;
[0015] The data normalization unit is used to normalize the carbon emission historical data after noise removal and output carbon emission standard data.
[0016] On the basis of the above technical solution, preferably, the feature processing module includes a feature selection unit, a feature conversion unit and a feature scaling unit, wherein:
[0017] The feature selection unit is used to screen the carbon emission prediction features that affect the carbon emission results in the carbon emission standard data;
[0018] The feature conversion unit is used to perform feature conversion on the carbon emission prediction feature;
[0019] The feature scaling unit is used to scale the carbon emission prediction features after feature conversion.
[0020] More preferably, the expression of the LSTM network model is:
[0021]
[0022]
[0023]
[0024]
[0025]
[0026] Among them, i t represents the state value of the input gate in the tth second, f t represents the state value of the forget gate in the tth second, c t represents the state value of the cell gate in the tth time step, o t represents the state value of the output gate in the tth second, represents the Hadamard product, σ() represents the sigmoid function, b i represents the bias term of the input gate, W ci represents the network weight from the input layer to the cell layer, represents the output function of the hidden layer in the sth hidden state in the t-1th second, W ih represents the network weight from the input layer to the hidden layer, W ig The network weight representing the state value of the input gate at the t-1 second, represents the state value of the input gate in the sth hidden state in the t-1th second, b f Represents the bias term of the forget gate, W fo represents the network weight from the forgetting layer to the output layer, W hf represents the network weight from the hidden layer to the forgetting layer, W fg represents the network weight of the state value of the forget gate in the t-1th second, tanh() represents the hyperbolic tangent function, b c represents the bias term of the cell gate, W hc represents the network weight from the hidden layer to the cell layer, W gc The network weight representing the state value of the cell gate in the t-1 second, b o represents the bias term of the output gate, W oc represents the network weight from the output layer to the cell layer, W oh Represents the network weight from the output layer to the hidden layer, W og The network weight representing the state value of the output gate at second t-1.
[0027] More preferably, the carbon accounting factor module includes a factor identification unit, a factor screening unit, a factor prediction unit and a factor correction unit, wherein:
[0028] The factor identification unit is used to obtain key factors that affect the carbon emission results output by the carbon emission prediction module;
[0029] The factor screening unit is used to detect whether there are abnormal process factors in the process factors, and remove the abnormal process factors in the process factors;
[0030] The factor prediction unit is used to predict the change trend of the key factor;
[0031] The factor correction unit is used to adjust the process factor in the carbon accounting process according to the carbon emission result.
[0032] More preferably, the deployment and maintenance module includes a model deployment unit, a real-time monitoring unit and a model update unit, wherein:
[0033] The model deployment unit is used to deploy the LSTM network model in an industrial production environment;
[0034] The real-time monitoring unit is used to continuously collect real-time data of carbon emissions and related factors, and monitor the carbon emission results and the change trends of the key factors in real time;
[0035] The model updating unit is used to iteratively update the carbon accounting process factor correction system according to the collected real-time carbon emission data and the relevant factors.
[0036] More preferably, the real-time data on carbon emissions includes energy consumption, production process parameters, equipment parameters, and ambient temperature and humidity.
[0037] More preferably, it also includes a log recording module, which is connected to the long short-term memory module and the carbon emission prediction module respectively, and is used to record training losses and carbon emission results.
[0038] More preferably, the log recording module includes a training log unit, a prediction log unit and an abnormal log unit, wherein:
[0039] The training log unit is used to record the training loss and training accuracy in the long short-term memory module;
[0040] The prediction log unit is used to record the carbon emission results output by the carbon emission prediction module;
[0041] The abnormality log unit is used to record data anomalies and model crashes that occur in the carbon accounting process factor correction system.
[0042] More preferably, it also includes a deployment and maintenance module, which is respectively connected to the data processing module, feature processing module, long short-term memory module, carbon accounting factor module and carbon emission prediction module, and is used to deploy the LSTM network model in an industrial production environment, and iteratively update the carbon accounting process factor correction system according to the collected real-time carbon emission data and related factors.
[0043] The carbon accounting process factor correction system based on the LSTM network model provided by the present invention has the following beneficial effects compared with the prior art:
[0044] (1) The carbon accounting process factor correction system first processes the historical carbon emission data through the data processing module and outputs standardized data to ensure the accuracy and consistency of the data. Then the feature processing module selects key features to improve the prediction accuracy and efficiency of the model. At the same time, the LSTM network model is constructed and the extracted features are trained through the long short-term memory module to optimize the model to more accurately predict carbon emissions and improve the accuracy and reliability of carbon accounting. The carbon accounting factor module obtains key factors and adjusts the factors in the carbon accounting process to improve the accuracy and controllability of carbon emission results. The carbon emission prediction module receives standardized data and adjusted factors, which can more accurately calculate the carbon emissions of the enterprise and improve the accuracy and efficiency of the carbon accounting process.
[0045] (2) By transforming the carbon emission prediction features through the feature conversion unit, more meaningful and representative conversion features can be generated. These conversion features can better reflect the relationship between variables, thereby improving the effect of the model on carbon emission prediction. At the same time, the feature scaling unit ensures that the weights of different conversion features in the model are reasonable, and reduces the importance of some conversion features, so that the carbon accounting process factor correction system pays more attention to the conversion features, avoiding some conversion features from dominating due to excessively large or small values, thereby improving the prediction accuracy of the carbon accounting process factor correction system. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A structural schematic diagram of the carbon accounting process factor correction system based on the LSTM network model provided by the present invention.
[0048] Explanation of the accompanying drawings: 1. Data processing module; 11. Data collection unit; 12. Data cleaning unit; 13. Data normalization unit; 14. Outlier detection unit; 2. Feature processing module; 21. Feature selection unit; 22. Feature conversion unit; 23. Feature scaling unit; 3. Carbon accounting factor module; 31. Factor identification unit; 32. Factor screening unit; 33. Factor prediction unit; 34. Factor correction unit; 4. Long short-term memory module; 41. Algorithm unit; 42. Model building unit; 43. Parameter initialization unit; 44. Model training unit; 45. Model optimization unit; 5. Carbon emission prediction module; 51. Model input unit; 52. Prediction output unit; 53. Result evaluation unit; 6. Deployment and maintenance module; 61. Model deployment unit; 62. Real-time monitoring unit; 63. Model update unit; 7. Log recording module; 71. Training log unit; 72. Prediction log unit; 73. Abnormal log unit. DETAILED DESCRIPTION
[0049] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments 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.
[0050] The embodiment of the present application discloses a carbon accounting process factor correction system based on an LSTM network model, comprising a data processing module 1, a feature processing module 2, a long short-term memory module 4, a carbon accounting factor module 3 and a carbon emission prediction module 5, wherein:
[0051] The data processing module 1 is connected to the feature processing module 2. The data processing module 1 is used to process the collected carbon emission historical data and output the carbon emission standard data.
[0052] The data processing module 1 includes a data collection unit 11, a data cleaning unit 12, a data normalization unit 13 and an outlier detection unit 14, wherein:
[0053] The data collection unit 11 is used to collect historical carbon emission data of the target industrial area, wherein the historical carbon emission data includes factors such as carbon emission amount, energy consumption, production process parameters, equipment parameters, and ambient temperature and humidity.
[0054] In this embodiment, the carbon emission data includes the carbon emissions of each production link and equipment in the enterprises in the target industrial area; the energy consumption data includes the consumption data of various energy sources (such as coal, oil, gas, electricity, etc.) in the enterprise; the production process parameter data includes various parameter data in the production process of the enterprise, such as production load and processing time; the equipment parameter data includes the parameter data of the enterprise's production equipment, such as equipment type and equipment capacity.
[0055] The outlier detection unit 14 is used to detect outliers in the carbon emission historical data.
[0056] In this embodiment, the implementation of the outlier detection unit 14 usually does not rely solely on reading the data table for identification, but uses a variety of methods for identification and processing: Data quality detection: Detect missing values in the data, including null values and default values. For example, statistical methods, such as summary statistics, can be used to determine outliers; Data distribution analysis: Analyze the distribution of data and identify abnormal distribution in the data. Common methods include box plots and density-based methods; Statistical tests: Identify outliers through statistical tests, such as t-tests, Wilcoxon signed rank tests, etc., to determine whether the sample is significantly different from the overall distribution; Data mining algorithms: Apply data mining algorithms, such as cluster analysis, anomaly detection algorithms (such as LOF, Isolation Forest, etc.), to identify outliers; Time series analysis: Use time series analysis methods, such as time series anomaly detection, sequence prediction, etc., to identify outliers in time series data; Interactive exploration: Use interactive data visualization tools to perform exploratory data analysis to identify outliers.
[0057] Furthermore, pattern recognition technology can be used to identify abnormal patterns in historical carbon emission data, such as frequently occurring specific patterns or regular changes. For example, sequence pattern mining, association rule mining and other technologies can be used to discover abnormal patterns hidden in the data. In addition to identifying instantaneous outliers in historical carbon emission data, abnormal trends in historical carbon emission data can also be detected, that is, abnormal changes in historical carbon emission data over a long period of time. Time series decomposition, trend analysis and other methods can be used to discover long-term abnormal trends in the data.
[0058] The data cleaning unit 12 is used to remove noise from the carbon emission historical data after the abnormal value detection is completed.
[0059] The data normalization unit 13 is used to normalize the carbon emission historical data after noise removal and output carbon emission standard data, converting the carbon emission historical data into a unified scale for model processing. The conversion process can be to convert discrete data into continuous data.
[0060] The feature processing module 2 is connected to the long short-term memory module 4, and the feature processing module 2 is used to screen the carbon emission standard data to obtain the carbon emission prediction characteristics.
[0061] The feature processing module 2 includes a feature selection unit 21, a feature conversion unit 22 and a feature scaling unit 23, wherein:
[0062] The feature selection unit 21 is used to screen carbon emission prediction features that affect carbon emission results in the carbon emission standard data.
[0063] The feature conversion unit 22 is used to perform feature conversion on the carbon emission prediction features.
[0064] In this embodiment, the steps of converting the carbon emission prediction features by the feature conversion unit 22 are as follows:
[0065] The carbon emission prediction features are transformed through feature engineering to generate more meaningful and representative features, such as numerical conversion, normalization, and discretization.
[0066] Based on the carbon emission prediction features, derivative features are created. For example, the carbon emission prediction features are transformed into square, cube, logarithm, exponential, etc., the classification features are one-hot encoded, ratio features are constructed, or feature A is divided by feature B to obtain ratio feature C, interaction features are constructed, or feature A and feature B are combined into feature C. For time series features, features such as the mean, difference, and moving average of the past few days are constructed.
[0067] The principal component analysis (PCA) and factor analysis (FA) methods are used to reduce the dimension of carbon emission prediction features.
[0068] Generate new features by combining features, for example, create new feature combinations based on carbon emission prediction features, or generate new features by cross-combining features.
[0069] The feature scaling unit 23 is used to scale the carbon emission prediction features after feature conversion.
[0070] By converting the carbon emission prediction features by the feature conversion unit 22, more meaningful and representative conversion features can be generated, which can better reflect the relationship between variables, thereby improving the effect of the model on carbon emission prediction. Generate more meaningful and representative features, such as rate, rate of change and other feature data, and ensure that the weights of different features in the model are reasonable through the feature scaling unit 23. In the feature scaling unit 23, the method for ensuring that the weights of different features in the model are reasonable uses a regularization method, uses L1 or L2 regularization during model training, and reduces the importance of some conversion features, so that the carbon accounting process factor correction system pays more attention to the conversion features, and avoids some conversion features from dominating due to excessively large or small values, thereby improving the prediction accuracy of the carbon accounting process factor correction system.
[0071] The carbon accounting factor module 3 is connected to the carbon emission prediction module 5. The carbon accounting factor module 3 is used to obtain key factors that affect the carbon emission results output by the carbon emission prediction module 5, and adjust the process factors in the carbon accounting process according to the carbon emission results.
[0072] The carbon accounting factor module 3 includes a factor identification unit 31, a factor screening unit 32, a factor prediction unit 33 and a factor correction unit 34, wherein:
[0073] The factor identification unit 31 is used to obtain key factors that affect the carbon emission results output by the carbon emission prediction module 5 .
[0074] In this embodiment, the factor identification process uses a combination of two methods, namely a model-based method and a data visualization method. The model-based method is to use statistical models or machine learning models (such as linear regression, decision trees, random forests, etc.) to identify key factors. These models can automatically learn the relationship between features and carbon emissions and output the importance of features; the data visualization method uses visualization methods such as scatter plots and box plots to intuitively display the relationship between features and carbon emissions, so as to quickly identify which features are closely related to carbon emissions.
[0075] The factor screening unit 32 is used to detect whether there are abnormal process factors in the process factors, and to remove the abnormal process factors in the process factors.
[0076] In this embodiment, the abnormal process factor confirmation process can use statistical test methods, such as t-test, chi-square test, etc., to test whether each factor has a significant correlation with carbon emissions to determine the abnormal process factor.
[0077] The factor prediction unit 33 is used to predict the change trend of key factors.
[0078] In this embodiment, the prediction method adopted by the factor prediction unit 33 includes: establishing a time series prediction model, a regression model or a machine learning model based on the carbon emission historical data to predict the future changes of key factors; inputting the key factors and their changing trends in the carbon emission historical data into the prediction model for training and testing the prediction ability of the model; using the carbon emission historical data to train the prediction model, and adjusting the model parameters to optimize the model prediction effect, usually using cross-validation to select the best parameters; using test data to verify the accuracy of the prediction model, and adjusting the model parameters according to the verification results to obtain the best prediction effect; using the trained model to predict future key factors and obtain prediction results; performing uncertainty analysis on the prediction results, evaluating the credibility of the prediction results to determine their scope of application; explaining the significance of the prediction results, and generating a prediction report to assist the decision-making process.
[0079] The factor correction unit 34 is used to adjust the process factors in the carbon accounting process according to the carbon emission results to reflect the changing trend of key factors in the future, thereby improving the accuracy of carbon emission prediction.
[0080] The long short-term memory module 4 is connected to the carbon accounting factor module 3. The long short-term memory module 4 is used to construct an LSTM network model and train the carbon emission prediction features input into the long short-term memory module 4 to optimize the LSTM network model.
[0081] Among them, the long short-term memory module 4 includes an algorithm unit 41, a model construction unit 42, a parameter initialization unit 43, a model training unit 44 and a model optimization unit 45, and the model construction unit 42 includes an input gate, a forgetting gate, an output gate, an embedding layer, a loss function, an optimizer and a cell state gate.
[0082] The algorithm unit 41 uses the INFO algorithm to optimize parameters, uses reverse learning of chaotic mapping to increase the diversity of the initialization population, introduces adaptive parameters to enhance the global search capability of the algorithm, improves the convergence of the model, and constructs the LSTM prediction model through the model construction unit 42. The input gate module is responsible for determining which information should be added to the state of the current LSTM unit, and uses the Sigmoid activation function to output a value between 0 and 1, indicating the weight of each input element. At the same time, there is also a Tanh activation function to generate a new candidate value vector. The forget gate determines which information should be forgotten from the state of the LSTM unit. It also uses the Sigmoid activation function, which outputs a value between 0 and 1. This value is used to multiply the current state vector element by element, thereby forgetting some information. The cell state gate is used to introduce a gating mechanism to control the flow of information, thereby effectively solving the gradient disappearance and gradient explosion problems. The problem is that it is used to store long-term memory information. The output gate is responsible for deciding which information should be output to the next state of LSTM or the final output. The Sigmoid activation function is used to decide which part of the cell state will be output. Then, the part that determines the output is multiplied by the cell state processed by the Tanh activation function to get the final output. If the input is a discrete sequence, the embedding layer is responsible for converting the discrete input into a vector representation of a fixed size. The loss function is used to measure the difference between the model's prediction and the true value and guide the training of the model. The optimizer is used to update the parameters of the model to minimize the loss function. After the model is built, the parameter initialization unit 43 sets the initial value for the model parameters (such as weights, biases, etc.), and the model training unit 44 uses historical data to train the LSTM network model. The model optimization unit 45 uses optimization algorithms such as back propagation and gradient descent to update the optimization model parameters, and the model output obtains the process factor.
[0083] The expression of the LSTM network model is:
[0084]
[0085]
[0086]
[0087]
[0088]
[0089] Among them, i t represents the state value of the input gate in the tth second, f t represents the state value of the forget gate in the tth second, c t represents the state value of the cell gate in the tth time step, o trepresents the state value of the output gate in the tth second, represents the Hadamard product, σ() represents the sigmoid function, b i represents the bias term of the input gate, W ci represents the network weight from the input layer to the cell layer, represents the output function of the hidden layer in the sth hidden state in the t-1th second, W ih represents the network weight from the input layer to the hidden layer, W ig The network weight representing the state value of the input gate at the t-1 second, represents the state value of the input gate in the sth hidden state in the t-1th second, b f Represents the bias term of the forget gate, W fo represents the network weight from the forgetting layer to the output layer, W hf represents the network weight from the hidden layer to the forgetting layer, W fg represents the network weight of the state value of the forget gate in the t-1th second, tanh() represents the hyperbolic tangent function, b c represents the bias term of the cell gate, W hc represents the network weight from the hidden layer to the cell layer, W gc The network weight representing the state value of the cell gate in the t-1 second, b o represents the bias term of the output gate, W oc represents the network weight from the output layer to the cell layer, W oh Represents the network weight from the output layer to the hidden layer, W og The network weight representing the state value of the output gate at second t-1.
[0090] The carbon emission prediction module 5 is used to receive carbon emission standard data and process factors, and predict carbon emission results.
[0091] The carbon emission prediction module 5 includes a model input unit 51, a prediction output unit 52 and a result evaluation unit 53. The model input unit 51 is used to input the corrected factors and other relevant features into the carbon emission prediction module 5. As for the corresponding correction algorithm, a linear regression method is adopted, using a linear regression model, taking the predicted key factors as independent variables and carbon emissions as dependent variables, a regression model is established, and the adjusted factor values are output.
[0092] Furthermore, other relevant features may include equipment parameters (such as equipment type, equipment capacity, etc.); production process parameters (such as production load, processing time, etc.); environmental parameters (such as ambient temperature, humidity, etc.); energy consumption (such as coal, oil, gas, electricity, etc.). Inputting these relevant features and the corrected factors into the carbon emission prediction module 5 at the same time may produce certain correlations. For example, the corrected factors may be correlated with other features, thereby affecting the prediction results of carbon emissions. Therefore, when inputting these features, feature selection and correlation analysis are required to avoid duplication of information and improve the generalization ability of the model.
[0093] The predicted future carbon emissions are outputted by the prediction output unit 52, and the carbon emissions are predicted based on the established carbon emissions prediction model, combined with the corrected factors and other relevant features. The specific process is as follows:
[0094] Based on the historical carbon emission data, the corrected factors and other relevant features, a statistical model or a machine learning model, such as linear regression, neural network, decision tree, etc., is established; the corrected factors and other relevant features are input into the model as input variables of the model; prediction is performed using the trained model, and the prediction results of future carbon emissions are output; the prediction results are output to the prediction output unit 52.
[0095] Among them, the predicted results and the relevant features have the following relationship with the corrected factors:
[0096] The prediction results are highly dependent on the corrected factors and other related features, because these features are directly used as input variables of the model; the sensitivity and accuracy of the prediction results will be affected by the quality of the features, so it is necessary to select high-quality features and avoid introducing noise; there may be correlations between the features, which will affect the prediction effect of the model, so it is necessary to evaluate the correlation between the features; the corrected factors can reflect the future change trends of key factors, so that the prediction results are more in line with the actual situation; after combining the corrected factors and other related features, the prediction results can more comprehensively reflect the various factors affecting carbon emissions; the corrected factors and related features as inputs to the model help explain the reasons for the model's prediction results.
[0097] The result evaluation unit 53 uses a test set or other evaluation indicators, such as mean square error, accuracy and other algorithms, to evaluate the performance of the prediction model, thereby determining the reliability of the prediction results and evaluating the prediction results.
[0098] In this embodiment, a deployment and maintenance module 6 is also included. The deployment and maintenance module 6 is respectively connected to the data processing module 1, the feature processing module 2, the long short-term memory module 4, the carbon accounting factor module 3 and the carbon emission prediction module 5. The deployment and maintenance module 6 is used to deploy the LSTM network model in an industrial production environment, and iteratively update the carbon accounting process factor correction system according to the collected real-time carbon emission data and related factors.
[0099] The deployment and maintenance module 6 includes a model deployment unit 61, a real-time monitoring unit 62 and a model updating unit 63, wherein:
[0100] The model deployment unit 61 is used to deploy the LSTM network model in an industrial production environment;
[0101] The real-time monitoring unit 62 is used to continuously collect real-time data of carbon emissions and related factors, and monitor the carbon emission results and the change trend of key factors in real time;
[0102] The model updating unit 63 is used to iteratively update the carbon accounting process factor correction system according to the collected real-time carbon emission data and related factors.
[0103] Among them, relevant factors include energy consumption, production process parameters, equipment parameters, and ambient temperature and humidity.
[0104] In this embodiment, a log recording module 7 is also included. The log recording module 7 is connected to the long short-term memory module 4 and the carbon emission prediction module 5 respectively. The log recording module 7 is used to record the training loss and carbon emission results.
[0105] The log recording module 7 includes a training log unit 71, a prediction log unit 72 and an abnormal log unit 73, wherein:
[0106] The training log unit 71 is used to record the training loss and training accuracy in the long short-term memory module 4;
[0107] The prediction log unit 72 is used to record the carbon emission results output by the carbon emission prediction module 5;
[0108] The abnormality log unit 73 is used to record data abnormalities and model crashes that occur in the carbon accounting process factor correction system.
[0109] Working principle: When carbon accounting is performed through the carbon accounting process factor correction system, the data collection unit 11 in the data processing module 1 collects historical carbon emission data related to carbon accounting, including carbon emissions, energy consumption, production process parameters, equipment parameters, and environmental temperature and humidity factors. Then, the abnormal value detection unit 14 identifies abnormal data such as missing values, abnormal values, and duplicate values, and processes them through the data cleaning unit 12 to ensure the quality and accuracy of the data. Then, the data is converted into a unified scale through the data normalization unit 13 to facilitate model processing. After processing the collected data, the feature selection unit 21 in the feature processing module 2 selects the features most relevant to carbon emission prediction from the original data, and selects the features through the feature selection unit 21 in the feature processing module 2. The conversion unit 22 converts the original features to generate more meaningful and representative features, such as rate, rate of change and other feature data. Finally, the feature scaling unit 23 ensures that the weights of different features in the model are reasonable to avoid some features dominating due to excessive or small values. The processed feature factors are then input into the long short-term memory module 4. The algorithm unit 41 uses the INFO algorithm to optimize parameters, uses reverse learning of chaotic mapping to increase the diversity of the initialization population, introduces adaptive parameters to enhance the global search capability of the algorithm, improves the convergence of the model, and constructs the LSTM prediction model through the model construction unit 42. The input gate module is responsible for determining which information should be added to the state of the current LSTM unit, and uses Sigm The oid activation function is used to output a value between 0 and 1, which represents the weight of each input element. At the same time, there is a Tanh activation function to generate a new candidate value vector. The forget gate determines which information should be forgotten from the state of the LSTM unit. The Sigmoid activation function is also used. It outputs a value between 0 and 1. This value is used to multiply the current state vector element by element to forget some information. The cell state gate is used to introduce a gating mechanism to control the flow of information, thereby effectively solving the gradient disappearance and gradient explosion problems. It is used to store long-term memory information. The output gate is responsible for deciding which information should be output to the next state of the LSTM or the final output. The Sigmoid activation function is used to decide which part of the cells should be forgotten. The cell state will be output, and then the part that determines the output is multiplied by the cell state processed by the Tanh activation function to obtain the final output. If the input is a discrete sequence, the embedding layer is responsible for converting the discrete input into a vector representation of a fixed size. The loss function is used to measure the difference between the model's prediction and the true value and guide the training of the model. The optimizer is used to update the model's parameters to minimize the loss function. After the model is built, the parameter initialization unit 43 sets the initial value for the model parameters (such as weights, biases, etc.), and the model training unit 44 uses historical data to train the LSTM network model. The model optimization unit 45 uses optimization algorithms such as back propagation and gradient descent to update the optimization model parameters. The model output obtains the process factor.The key factors affecting carbon emissions are identified through the factor identification unit 31 in the carbon accounting factor module 3, and then the abnormal process factors are eliminated through the factor screening unit 32, and the future changes of the key factors are predicted through the factor prediction unit 33. According to the prediction results, the factor values in the carbon accounting process are adjusted through the factor correction unit 34 to improve the accuracy of carbon emission prediction. The corrected factors and other related features are input into the carbon emission prediction module 5 through the model input unit 51, and the predicted future carbon emissions are output through the prediction output unit 52. Finally, the test set or other evaluation indicators, such as mean square error, are used by the result evaluation unit 53. The model deployment unit 61 in the deployment and maintenance module 6 is used to deploy the trained LSTM network model to the actual production environment, the real-time monitoring unit 62 is used to continuously collect new data, and monitor carbon emissions and factor changes in real time. The model update unit 63 is used to regularly update and optimize the model according to new data and actual needs. The training log unit 71 in the log recording module 7 is used to record the training records of the model training unit 44, the prediction log unit 72 is used to record the output records of the carbon emission prediction module 5, and the abnormal log unit 73 is used to record model abnormal records.
[0110] 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 principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A carbon accounting process factor correction system based on LSTM network model, characterized in that: It includes a data processing module (1), a feature processing module (2), a long-term and short-term memory module (4), a carbon accounting factor module (3) and a carbon emission prediction module (5), wherein: The data processing module (1) is connected to the feature processing module (2), and the data processing module (1) is used to process the collected carbon emission historical data and output carbon emission standard data; The feature processing module (2) is connected to the long short-term memory module (4), and the feature processing module (2) is used to screen the carbon emission standard data to obtain carbon emission prediction features; The long short-term memory module (4) is connected to the carbon accounting factor module (3), and the long short-term memory module (4) is used to construct an LSTM network model and train the carbon emission prediction features input into the long short-term memory module (4) to optimize the LSTM network model; The carbon accounting factor module (3) is connected to the carbon emission prediction module (5), and the carbon accounting factor module (3) is used to obtain key factors that affect the carbon emission results output by the carbon emission prediction module (5), and adjust the process factors in the carbon accounting process according to the carbon emission results; The carbon emission prediction module (5) is used to receive the carbon emission standard data and the process factors, and predict the carbon emission results.
2. The carbon accounting process factor correction system based on the LSTM network model as claimed in claim 1, characterized in that: The data processing module (1) comprises a data collection unit (11), a data cleaning unit (12), a data normalization unit (13) and an abnormal value detection unit (14), wherein: The data collection unit (11) is used to collect historical carbon emission data of the target industrial area; The abnormal value detection unit (14) is used to detect abnormal values in the carbon emission historical data; The data cleaning unit (12) is used to remove noise from the carbon emission historical data after abnormal value detection is completed; The data normalization unit (13) is used to perform normalization processing on the carbon emission historical data after noise removal, and output carbon emission standard data.
3. The carbon accounting process factor correction system based on the LSTM network model according to claim 1 is characterized in that: The feature processing module (2) comprises a feature selection unit (21), a feature conversion unit (22) and a feature scaling unit (23), wherein: The feature selection unit (21) is used to select carbon emission prediction features that affect the carbon emission results in the carbon emission standard data; The feature conversion unit (22) is used to perform feature conversion on the carbon emission prediction feature; The feature scaling unit (23) is used to scale the carbon emission prediction features after feature conversion.
4. The carbon accounting process factor correction system based on the LSTM network model as claimed in claim 1, characterized in that: The expression of the LSTM network model is: Among them, i t represents the state value of the input gate in the tth second, f t represents the state value of the forget gate in the tth second, c t represents the state value of the cell gate in the tth time step, o t represents the state value of the output gate in the tth second, represents the Hadamard product, σ() represents the sigmoid function, b i represents the bias term of the input gate, W ci represents the network weight from the input layer to the cell layer, represents the output function of the hidden layer in the sth hidden state in the t-1th second, W ih represents the network weight from the input layer to the hidden layer, W ig The network weight representing the state value of the input gate at the t-1 second, represents the state value of the input gate in the sth hidden state in the t-1th second, b f Represents the bias term of the forget gate, W fo represents the network weight from the forgetting layer to the output layer, W hf represents the network weight from the hidden layer to the forgetting layer, W fg represents the network weight of the state value of the forget gate in the t-1th second, tanh() represents the hyperbolic tangent function, b c represents the bias term of the cell gate, W hc represents the network weight from the hidden layer to the cell layer, W gc The network weight representing the state value of the cell gate in the t-1 second, b o represents the bias term of the output gate, W oc represents the network weight from the output layer to the cell layer, W oh Represents the network weight from the output layer to the hidden layer, W og The network weight representing the state value of the output gate at second t-1.
5. The carbon accounting process factor correction system based on the LSTM network model according to claim 1 is characterized in that: The carbon accounting factor module (3) comprises a factor identification unit (31), a factor screening unit (32), a factor prediction unit (33) and a factor correction unit (34), wherein: The factor identification unit (31) is used to obtain key factors that affect the carbon emission results output by the carbon emission prediction module (5); The factor screening unit (32) is used to detect whether there are abnormal process factors in the process factors, and to remove the abnormal process factors in the process factors; The factor prediction unit (33) is used to predict the change trend of the key factor; The factor correction unit (34) is used to adjust the process factor in the carbon accounting process according to the carbon emission result.
6. The carbon accounting process factor correction system based on the LSTM network model as claimed in claim 1, characterized in that: The system also includes a deployment and maintenance module (6), which is respectively connected to the data processing module (1), the feature processing module (2), the long short-term memory module (4), the carbon accounting factor module (3) and the carbon emission prediction module (5). The deployment and maintenance module (6) is used to deploy the LSTM network model in an industrial production environment and iteratively update the carbon accounting process factor correction system based on the collected real-time carbon emission data and related factors.
7. The carbon accounting process factor correction system based on the LSTM network model as claimed in claim 6 is characterized in that: The deployment and maintenance module (6) comprises a model deployment unit (61), a real-time monitoring unit (62) and a model updating unit (63), wherein: The model deployment unit (61) is used to deploy the LSTM network model in an industrial production environment; The real-time monitoring unit (62) is used to continuously collect real-time data of carbon emissions and related factors, and monitor the carbon emission results and the change trends of the key factors in real time; The model updating unit (63) is used to iteratively update the carbon accounting process factor correction system according to the collected real-time carbon emission data and the relevant factors.
8. The carbon accounting process factor correction system based on the LSTM network model as claimed in claim 7, characterized in that: The real-time carbon emission data includes energy consumption, production process parameters, equipment parameters, and ambient temperature and humidity.
9. The carbon accounting process factor correction system based on the LSTM network model according to claim 1, characterized in that: The system further comprises a log recording module (7), wherein the log recording module (7) is respectively connected to the long short-term memory module (4) and the carbon emission prediction module (5), and the log recording module (7) is used to record the training loss and the carbon emission results.
10. The carbon accounting process factor correction system based on the LSTM network model according to claim 9, characterized in that: The log recording module (7) includes a training log unit (71), a prediction log unit (72) and an abnormal log unit (73), wherein: The training log unit (71) is used to record the training loss and training accuracy in the long short-term memory module (4); The prediction log unit (72) is used to record the carbon emission results output by the carbon emission prediction module (5); The abnormality log unit (73) is used to record data abnormalities and model crashes that occur in the carbon accounting process factor correction system.
Citation Information
Patent Citations
Regional carbon accounting data management system based on space object
CN117875973A
Cited By
Hydrogen energy system configuration method, device and equipment for reducing fan power deviation and storage medium
CN119051144A
Method for predicting natural abundance of ammonia volatile nitrogen isotope based on environment and soil factors
CN120087567A
Carbon emission factor correction method and device based on dynamic energy component analysis
CN120258301A
Carbon emission factor correction method and device based on dynamic energy composition analysis
CN120258301B
Carbon emission factor optimization method and system for accounting-monitoring interactive verification
CN121072824A
