Carbon emission data intelligent analysis and verification system and method based on semi-supervised learning
Through semi-supervised learning technology, we build an intelligent analysis and verification system for carbon emission data, automatically process and verify carbon emission data, solve the problem of tedious manual verification, and achieve efficient and accurate carbon emission data analysis and verification.
Patent Information
- Application Number
- CN202410744575.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-03
Smart Images

Figure CN118586932A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of carbon verification, and in particular to a carbon emission data intelligent analysis and verification system and method based on semi-supervised learning. Background Art
[0002] The realization of the dual carbon goals will promote high-quality economic development, promote China's transition to green and low-carbon development, accelerate the adjustment of energy structure, optimize industrial structure, improve energy efficiency, thereby reducing carbon emissions, mitigating the impact of climate change, and demonstrating China's responsibility as a major country. Carbon verification is a key link in ensuring the realization of the dual carbon goals. Carbon verification is the act of verifying greenhouse gas emission reports submitted by enterprises or institutions to ensure the authenticity and accuracy of carbon emission data. These verified data provide key basic data support and verification for the realization of the dual carbon goals. Through carbon verification, it can ensure that the carbon emission data of enterprises or institutions are authentic and reliable, thereby providing a scientific basis for the realization of carbon peak and carbon neutrality goals.
[0003] However, in the verification process, carbon emission data is usually only verified and authenticated manually to ensure the authenticity, accuracy and completeness of the data. The manual carbon verification process is cumbersome, takes a lot of time and effort, and requires high professionalism from personnel, which is not conducive to the promotion and popularization of carbon verification. Therefore, a carbon emission data intelligent analysis and verification system and method based on semi-supervised learning is needed to solve the above problems. Summary of the invention
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0005] A carbon emission data intelligent analysis and verification system based on semi-supervised learning, including a data collection module, a data preprocessing module, a supervised model training module, an unsupervised sample prediction module based on semi-supervised learning, a confidence assessment and sample selection module, a sample labeling and model updating module, and a carbon emission data analysis and verification module;
[0006] The data collection module is used to collect carbon emission related data;
[0007] The data preprocessing module is used to clean, format and convert the raw data collected by the data collection module to ensure the accuracy and consistency of the data;
[0008] The supervised model training module is used to train an initial supervised learning model using labeled samples, where the samples are annotated by human experts and provide accurate carbon emission labels;
[0009] The semi-supervised training module is used to train the initial semi-supervised learning model using unlabeled samples;
[0010] The unsupervised sample prediction module based on semi-supervised learning uses the trained semi-supervised learning model to predict a large number of unlabeled samples and obtain their label predictions.
[0011] The confidence assessment and sample selection module is used to select samples with high confidence for manual verification and labeling based on the prediction confidence of the semi-supervised learning model.
[0012] The sample labeling and model updating module is used to add manually verified and labeled samples to the labeled dataset, forming a new, larger labeled dataset together with the initial labeled samples. The supervised model training module uses the new dataset to update and retrain the model to improve the performance of the supervised learning model.
[0013] The carbon emission data analysis and verification module is used to use the trained and optimized supervised learning model to perform carbon emission analysis and verification on unlabeled data, identify outliers, abnormal behaviors and potential violations, and generate corresponding alerts or reports.
[0014] Furthermore, the data preprocessing module includes a data cleaning module, a data formatting module, a data conversion module, and a data verification module.
[0015] The data cleaning module cleans the collected raw carbon emission data by removing invalid data and outliers through the density outlier detection algorithm.
[0016] The data formatting module formats the data cleaned by the data cleaning module to meet the data structure and specification requirements. For example, for time series data, it can be sampled or interpolated at a uniform time interval for subsequent data analysis and visualization.
[0017] The data conversion module is used to convert the collected carbon emission data for more in-depth analysis and verification. For example, the data units are converted, the data from different sensors or monitoring devices are normalized, or the data is converted using normalization methods to make the data more suitable for subsequent analysis and modeling.
[0018] The data verification module is used to verify data and generate alarms or records for abnormal data to ensure the integrity and accuracy of the data. Data verification includes checking the scope of data, verifying the consistency of data, and comparing it with other related data. If an abnormality is found, an alarm or record can be generated and relevant personnel can be notified to handle it.
[0019] The data storage module is used to store data to facilitate subsequent data analysis, modeling and visualization.
[0020] Furthermore, the data preprocessing module can also perform outlier detection and missing value processing.
[0021] A carbon emission data intelligent analysis and verification method based on semi-supervised learning includes the following steps:
[0022] Collect carbon emission related data, build labeled data sets and build unlabeled data sets;
[0023] Screen and check the collected raw data to ensure the accuracy and consistency of the data;
[0024] The labeled training data set is input into the supervised learning model for training. The preprocessed labeled training data set is used to train the initial supervised learning model; the preprocessed labeled training data set consists of input features and corresponding labels. The input features are carbon emission data, and the labels include industry, product, energy consumption, material consumption, and output.
[0025] Data features are extracted through supervised learning models, and the original features are transformed or combined to improve the accuracy and generalization ability of the model. The prepared training data is trained using a neural network model to learn the relationship between input features and labels, and a model that can predict unknown samples is obtained. The formula of the hidden layer of the model is as follows:
[0026] z=W i *X+b i
[0027]
[0028] Among them, W i is the weight matrix of the hidden layer, b i is the bias term and h(z) is the hidden layer activation function.
[0029] The formula for the output layer is as follows:
[0030] u=W j *X+b j
[0031]
[0032] Among them, W j is the weight matrix of the output layer, b j is the bias term and g(u) is the output layer activation function.
[0033] In supervised learning, the network's parameters are adjusted to make the network's output as close to the true label as possible. To achieve this goal, a loss function needs to be defined to measure the difference between the predicted value and the true label. The loss function formula is as follows:
[0034]
[0035] L=-∑(y ture *log(sofemax(y pred )))
[0036] Where n represents the length of the vector (number of categories), x i Represents the i-th element in the input vector, y ture The vector representing the true label, y pred Represents the predicted class probability distribution vector.
[0037] During the training process, the network parameters are updated by minimizing the loss function through the gradient descent method. Finally, the model will learn the relationship between the input features and the labels, and obtain a model that can predict unknown samples. After the training is completed, the model is evaluated and tuned to improve the accuracy and stability of the model.
[0038] Use the trained semi-supervised learning model to predict a large number of unlabeled samples and obtain their label predictions. Unlabeled carbon emission datasets are easier to obtain, but the data quality is difficult to guarantee. In order to effectively utilize unlabeled data while reducing costs, a semi-supervised learning method is used for training.
[0039] According to the prediction confidence of the semi-supervised learning model, samples with high confidence are selected for manual verification and labeling, samples with higher confidence are confirmed, and the supervised learning model is updated.
[0040] The carbon emission data to be verified is input into the carbon emission data automatic analysis and verification system for verification, identifying abnormal values, abnormal behaviors and potential violations, and generating corresponding alarms or reports. The system will further calculate the carbon emission data to be verified, such as the unit carbon emission of the product, the output value of the unit energy consumption, the input-output ratio of the material, etc. These values can be used as indicators for auxiliary verification and assigned a lower level of weight. The system mainly analyzes the integrity and correctness of the verification data. Integrity includes the continuity of the cycle and time of data collection within the accounting scope, and whether the data of each link such as energy consumption, material consumption, and recycling of items are comprehensive. Correctness includes whether the selected carbon emission factor is reasonable and whether the carbon emission calculation method is correct. The system verifies these indicators item by item, and the system can identify abnormal values, abnormal behaviors and potential violations, and generate corresponding alarms or reports.
[0041] Further, processing the collected raw data includes the following steps:
[0042] Data cleaning: The collected raw carbon emission data is cleaned by removing invalid data and outliers through the density outlier detection algorithm. Data cleaning includes identifying and processing missing values, processing duplicate data, and deleting incomplete or erroneous data entries. By cleaning the data, the subsequent analysis and verification work can be ensured to be accurate.
[0043] Data formatting: Format the cleaned data to meet specific data structure and specification requirements. For example, for time series data, it can be sampled or interpolated at uniform time intervals for subsequent data analysis and visualization.
[0044] Data conversion: The collected carbon emission data is converted for deeper analysis and verification. For example, the data can be converted into units, the data from different sensors or monitoring devices can be normalized, or the data can be converted using normalization methods to make the data more suitable for subsequent analysis and modeling.
[0045] Data verification: Use rule verification and logic verification to verify data to ensure data integrity and accuracy. Data verification includes checking the scope of data, verifying data consistency, and comparing with other related data. If an abnormality is found, an alarm or record can be generated and relevant personnel can be notified for processing.
[0046] Data storage: The processed data is stored in a central data storage area, which is a database or data warehouse. This facilitates subsequent data analysis, modeling, and visualization.
[0047] Furthermore, the density outlier detection algorithm formula is as follows:
[0048]
[0049] Where p(x) is the probability density of data point x, μ is the estimated mean, and σ is the estimated standard deviation. Set the corresponding threshold, compare the calculated probability density with the threshold, and if the probability density is lower than the threshold, mark the data point as an outlier and remove the outlier data.
[0050] Furthermore, the features in the original data may have different dimensional ranges, resulting in some features having a greater impact on the model. In order to treat each feature in a balanced manner, the normalization method used is used to scale the original data to a specified range. The calculation formula of the normalization method is as follows:
[0051]
[0052] Among them, X is the original carbon emission data, X norm is the normalized data, X min is the minimum value of the original data, Xmax is the maximum value of the original data. Through this calculation formula, the range of the original data can be mapped to [0,1]. The purpose of normalization is to eliminate the dimensional differences between different features so that the data can be compared and analyzed at the same scale.
[0053] Furthermore, in semi-supervised learning, the trained supervised model is used to predict the pre-processed unlabeled data and generate their predicted labels. These predicted pseudo-labeled datasets are then merged with the real labeled dataset to form a new, larger labeled dataset. More and better datasets help improve the performance of the model, and the supervised model and semi-supervised model are repeatedly trained to optimize the model.
[0054] Furthermore, in semi-supervised learning, the generated pseudo-label data is obtained through the prediction results of the model. However, due to errors and noise in the model, these pseudo-labels may have a certain degree of inaccuracy. Therefore, we need to evaluate the confidence of the pseudo-labels and select pseudo-labels with high confidence for model training.
[0055] For each unlabeled sample, the Euclidean distance is used to calculate the distance between the predicted result and the nearest neighbor sample, and then the confidence of the predicted result is calculated by the distance between the predicted result and the nearest neighbor sample. The formula is as follows:
[0056]
[0057] Where n is the dimension of the feature, x i ,y i Respectively represent the prediction results and the values of neighboring samples on each feature of the i-th feature. A higher confidence level indicates that the model has a high accuracy in predicting the sample. The confidence evaluation results are used to screen the unlabeled samples, and a sampling method based on k-means clustering is used to cover all categories or data distributions as much as possible while ensuring high-confidence samples. The selected high-confidence samples will be sent to the manual verification stage for manual verification and labeling, and these high-confidence manually labeled carbon emission data will be used for further updating of the model.
[0058] Due to the adoption of the above technical solution, the present invention has the following technical advances compared with the prior art:
[0059] 1) Through the semi-supervised learning algorithm, we can achieve efficient carbon emission data analysis and verification with only a small number of labeled samples. Compared with the traditional supervised learning method, the present invention saves a lot of manpower and time costs.
[0060] 2) The system can automatically collect, process, analyze and verify a large amount of carbon emission data, reducing the interference of manual operation and subjective factors. By utilizing the information of unlabeled samples, the present invention can provide more accurate carbon emission analysis and verification results in the process of model updating and iterative optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] 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 the structures shown in these drawings without paying creative work.
[0062] Figure 1 It is a structural diagram of a carbon emission data intelligent analysis and verification system based on semi-supervised learning;
[0063] Figure 2 The present invention is a flowchart of an embodiment of a method of a carbon emission data intelligent analysis and verification system based on semi-supervised learning.
[0064] Figure 3 It is a structural diagram of a data preprocessing module of a carbon emission data intelligent analysis and verification system based on semi-supervised learning;
[0065] The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0066] In order to make the technical personnel in the technical field better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by the technical personnel in the technical field of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0067] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0068] like Figure 1 As shown, a carbon emission data intelligent analysis and verification system 100 based on semi-supervised learning includes a data collection module 11, a data preprocessing module 12, a supervised model training module 13, an unsupervised sample prediction module 14 based on semi-supervised learning, a confidence assessment and sample selection module 15, a sample labeling and model updating module 16, and a carbon emission data analysis and verification module 17;
[0069] The data collection module 11 is used to collect a large amount of carbon emission related data.
[0070] The data preprocessing module 12 is used to clean, format and convert the original data collected by the data collection module 11 to ensure the accuracy and consistency of the data.
[0071] The supervised model training module 13 trains an initial supervised learning model using labeled samples, which are annotated by human experts and provide accurate carbon emission labels.
[0072] The semi-supervised training module 130 uses unlabeled samples to train an initial semi-supervised learning model;
[0073] The unsupervised sample prediction module 14 based on semi-supervised learning uses the trained semi-supervised learning model to predict a large number of unlabeled samples to obtain their label predictions. The semi-supervised learning algorithm is used to utilize the information of the unlabeled data to improve the performance and accuracy of the model.
[0074] The confidence assessment and sample selection module is used to select samples with high confidence for manual verification and labeling based on the prediction confidence of the semi-supervised learning model. Manual experts confirm samples with high confidence and use them to supervise the update of the learning model. By ranking the sample data from high to low confidence, samples with high confidence are ranked higher, such as the top five or top ten samples. Supervised learning models include supervised models and semi-supervised models.
[0075] The sample labeling and model updating module 16 is used to add the manually verified and labeled samples to the labeled data set, forming a new, larger labeled data set together with the initial labeled samples. The supervised model training module 13 uses the new data set to update and retrain the model to improve the performance of the supervised learning model.
[0076] The carbon emission data analysis and verification module 17 uses a trained and optimized supervised learning model to analyze and verify carbon emissions on unlabeled data, identify outliers, abnormal behaviors and potential violations, and generate corresponding alarms or reports. Alarms or reports can be provided to relevant regulatory agencies, corporate managers or environmental protection organizations, etc., for formulating policies, taking measures or optimizing business decisions, and can realize intelligent analysis and verification of carbon emission data, improve the efficiency and accuracy of data processing, and promote the development of carbon emission reduction and environmental protection work.
[0077] like Figure 3 As shown, further, the data preprocessing module 12 includes a data cleaning module 120 , a data formatting module 121 , a data conversion module 122 , and a data verification module 123 .
[0078] The data cleaning module 120 cleans the collected raw carbon emission data by removing invalid data and abnormal values through a density outlier detection algorithm.
[0079] The data formatting module 121 formats the data cleaned by the data cleaning module 120 to meet the data structure and specification requirements. For example, for time series data, it can be sampled or interpolated at a uniform time interval to facilitate subsequent data analysis and visualization.
[0080] The data conversion module 122 is used to convert the collected carbon emission data for more in-depth analysis and verification, for example, converting the data units, normalizing the data from different sensors or monitoring devices, or using a normalization method to convert the data so that the data is more suitable for subsequent analysis and modeling.
[0081] The data verification module 123 is used to verify the data and generate an alarm or record for abnormal data to ensure the integrity and accuracy of the data. Data verification includes checking the scope of the data, verifying the consistency of the data, and comparing it with other related data. If an abnormal situation is found, an alarm or record can be generated and the relevant personnel can be notified to handle it.
[0082] The data storage module 124 is used to store data to facilitate subsequent data analysis, modeling and visualization.
[0083] Data preprocessing can ensure the quality and consistency of carbon emission data and provide an accurate data basis for subsequent data analysis and verification. The design and implementation of the data preprocessing module needs to consider a variety of data sources and data types, as well as reasonable data cleaning and conversion algorithms to meet the needs of the carbon emission data intelligent analysis and verification system.
[0084] Furthermore, the data preprocessing module 12 can also perform outlier detection and missing value processing.
[0085] like Figure 2 FIG. 1 is a flowchart of a preferred embodiment of a method for intelligent analysis and verification of carbon emission data based on semi-supervised learning according to the present invention. According to different requirements, the order of steps in the flowchart can be changed, and some steps can be omitted.
[0086] S110, collect carbon emission related data, construct labeled data sets and construct unlabeled data sets;
[0087] S120, preprocessing the collected raw data to ensure the accuracy and consistency of the data;
[0088] S130, inputting the labeled training data set into the supervised learning model for training. The preprocessed labeled training data set trains the initial supervised learning model; the preprocessed labeled training data set consists of input features and corresponding labels, the input features are various carbon emission data, and the labels can be divided into industries, products, energy consumption, material consumption, output, etc.
[0089] Data features are extracted through supervised learning models, and the original features are transformed or combined to improve the accuracy and generalization ability of the model. The prepared training data is trained using a neural network model to learn the relationship between input features and labels, and obtain a model that can predict unknown samples. The formula for the hidden layer is as follows:
[0090] z=W i *X+b i
[0091]
[0092] Among them, W i is the weight matrix of the hidden layer, b i is the bias term and h(z) is the hidden layer activation function.
[0093] The formula for the output layer is as follows:
[0094] u=W j *X+b j
[0095]
[0096] Among them, W j is the weight matrix of the output layer, b j is the bias term and g(u) is the output layer activation function.
[0097] In supervised learning, the network's parameters are adjusted to make the network's output as close to the true label as possible. To achieve this goal, a loss function needs to be defined to measure the difference between the predicted value and the true label. The loss function formula is as follows:
[0098]
[0099] L=-∑(y ture *log(sofemax(y pred )))
[0100] Where n represents the length of the vector (number of categories), x i Represents the i-th element in the input vector, y ture The vector representing the true label, y pred Represents the predicted class probability distribution vector.
[0101] During the training process, the network parameters are updated by minimizing the loss function through the gradient descent method. Finally, the model will learn the relationship between the input features and the labels, and obtain a model that can predict unknown samples. After the training is completed, the model is evaluated and tuned to improve the accuracy and stability of the model.
[0102] S140, use the trained semi-supervised learning model to predict a large number of unlabeled samples to obtain their label predictions. Unlabeled carbon emission datasets are easier to obtain, but the data quality is difficult to guarantee. In order to effectively utilize unlabeled data while reducing costs, a semi-supervised learning method is used for training.
[0103] S150, based on the prediction confidence of the semi-supervised learning model, select samples with high confidence for manual verification and labeling, confirm the samples with high confidence, and update the supervised learning model.
[0104] S160, input the carbon emission data to be verified into the carbon emission data automatic analysis and verification system for verification, identify abnormal values, abnormal behaviors and potential violations, and generate corresponding alarms or reports. The system will further calculate the carbon emission data to be verified, such as the unit carbon emission of the product, the output value of the unit energy consumption, the input-output ratio of the material, etc. These values can be used as indicators for auxiliary verification and assigned a lower level of weight. The system mainly analyzes the integrity and correctness of the verification data. Integrity includes the continuity of the cycle and time of data collection within the accounting scope, and whether the data of each link such as energy consumption, material consumption, and item recycling is comprehensive. Correctness includes whether the selected carbon emission factor is reasonable and whether the carbon emission calculation method is correct. The system verifies these indicators item by item, and the system can identify abnormal values, abnormal behaviors and potential violations, and generate corresponding alarms or reports.
[0105] Furthermore, collecting carbon emission related data in step S110 includes the following steps:
[0106] a1) Construct a labeled dataset;
[0107] The labeled data set includes domestic greenhouse gas emission-related laws and regulations, the United Nations Framework Convention on Climate Change, the Kyoto Protocol, the EU Emissions Trading Directive and other greenhouse gas emission-related laws and regulations, as well as 24 industry greenhouse gas emission accounting methods and reporting guidelines issued by the Chinese government, ISO 14064 series, ISO 14067:2018 standards on carbon dioxide emissions, and carbon emission data disclosed by various associations and official platforms.
[0108] a2) Build an unlabeled dataset;
[0109] The labeled data set includes data recorded by sensors, monitoring equipment, production log files, etc. from various enterprises, as well as carbon emission factor databases, such as: Yike WebLCA, Carbon Trace-Carbon Cloud, German GABI and carbon emission data related documents and literature published on the Internet.
[0110] The carbon emission data collected should also take into account timeliness. Relevant standards and regulations should be the latest versions, and corporate log files and carbon emission data disclosed by all parties should be within the past ten years.
[0111] Furthermore, processing the collected raw data in S120 includes the following steps:
[0112] S200, Data Cleaning: Clean the collected raw carbon emission data by removing invalid data and outliers through outlier detection algorithms. Data cleaning includes identifying and processing missing values, processing duplicate data, and deleting incomplete or erroneous data entries. By cleaning the data, we can ensure that subsequent analysis and verification work is accurate.
[0113] S201, data formatting: formatting the cleaned data to meet specific data structure and specification requirements. For example, for time series data, it can be sampled or interpolated at a uniform time interval for subsequent data analysis and visualization.
[0114] S202, data conversion: convert the collected carbon emission data for more in-depth analysis and verification. For example, the data can be converted into units, the data from different sensors or monitoring devices can be normalized, or the data can be converted using normalization methods to make the data more suitable for subsequent analysis and modeling.
[0115] S203, data verification: Use rule verification and logic verification to verify the data to ensure the integrity and accuracy of the data. Data verification includes checking the scope of the data, verifying the consistency of the data, and comparing it with other related data. If an abnormality is found, an alarm or record can be generated and the relevant personnel can be notified for processing.
[0116] S204, data storage: the processed data is stored in a central data storage area, which is a database or a data warehouse, to facilitate subsequent data analysis, modeling and visualization.
[0117] Furthermore, the density outlier detection algorithm formula is as follows:
[0118]
[0119] Where p(x) is the probability density of data point x, μ is the estimated mean, and σ is the estimated standard deviation. Set the corresponding threshold, compare the calculated probability density with the threshold, and if the probability density is lower than the threshold, mark the data point as an outlier and remove the outlier data.
[0120] Furthermore, the features in the original data may have different dimensional ranges, resulting in some features having a greater impact on the model. In order to treat each feature in a balanced manner, the normalization method used is used to scale the original data to a specified range. The calculation formula of the normalization method is as follows:
[0121]
[0122] Among them, X is the original carbon emission data, X norm is the normalized data, X min is the minimum value of the original data, X maxis the maximum value of the original data. Through this calculation formula, the range of the original data can be mapped to [0,1]. The purpose of normalization is to eliminate the dimensional differences between different features so that the data can be compared and analyzed at the same scale.
[0123] Furthermore, in semi-supervised learning, the trained supervised model is used to predict the pre-processed unlabeled data and generate their predicted labels. These predicted pseudo-labeled datasets are then merged with the real labeled dataset to form a new, larger labeled dataset. More and better datasets help improve the performance of the model, and the supervised model and semi-supervised model are repeatedly trained to optimize the model.
[0124] Furthermore, in semi-supervised learning, the generated pseudo-label data is obtained through the prediction results of the model. However, due to errors and noise in the model, these pseudo-labels may have a certain degree of inaccuracy. Therefore, we need to evaluate the confidence of the pseudo-labels and select pseudo-labels with high confidence for model training.
[0125] For each unlabeled sample, the Euclidean distance is used to calculate the distance between the predicted result and the nearest neighbor sample, and then the confidence of the predicted result is calculated by the distance between the predicted result and the nearest neighbor sample. The formula is as follows:
[0126]
[0127] Where n is the dimension of the feature, x i ,y i Respectively represent the prediction results and the values of neighboring samples on each feature of the i-th feature. A higher confidence level indicates that the model has a higher accuracy in predicting the sample. The confidence evaluation results are used to screen the unlabeled samples, and a sampling method based on k-means clustering is used to cover all categories or data distributions as much as possible while ensuring high-confidence samples. The selected high-confidence samples will be sent to the manual verification stage for manual verification and labeling, and these high-confidence manually labeled carbon emission data will be used for further updating of the model.
[0128] By screening and checking the collected raw data, the quality and consistency of carbon emission data can be ensured, and an accurate data basis can be provided for subsequent data analysis and verification. The design and implementation of the data preprocessing module needs to consider a variety of data sources and data types, as well as reasonable data cleaning and conversion algorithms to meet the needs of the carbon emission data intelligent analysis and verification system.
[0129] The above generally describes the present invention in detail, but it is obvious to a person skilled in the art that some modifications or improvements can be made to the present invention. Therefore, modifications or improvements that do not depart from the spirit of the present invention are within the scope of protection of the present invention.
Claims
1. An intelligent analysis and verification system for carbon emission data based on semi-supervised learning, Features: It includes data collection module, data preprocessing module, supervised model training module, unsupervised sample prediction module based on semi-supervised learning, confidence assessment and sample selection module, sample labeling and model updating module, and carbon emission data analysis and verification module; The data collection module is used to collect carbon emission related data; The data preprocessing module is used to clean, format and convert the raw data collected by the data collection module to ensure the accuracy and consistency of the data; The supervised model training module is used to train the initial supervised learning model using labeled samples; The semi-supervised training module is used to train the initial semi-supervised learning model using unlabeled samples; The unsupervised sample prediction module based on semi-supervised learning uses the trained semi-supervised learning model to predict unlabeled samples and obtain their label predictions; The confidence assessment and sample selection module is used to select samples with high confidence for manual verification and labeling based on the prediction confidence of the semi-supervised learning model; The sample labeling and model updating module is used to add manually verified and labeled samples to the labeled dataset to form a labeled dataset together with the initial labeled samples; The carbon emission data analysis and verification module is used to use the trained and optimized supervised learning model to perform carbon emission analysis and verification on unlabeled data, identify outliers, abnormal behaviors and potential violations, and generate corresponding alerts or reports.
2. The carbon emission data intelligent analysis and verification system based on semi-supervised learning as claimed in claim 1, Features: The data preprocessing module includes a data cleaning module, a data formatting module, a data conversion module, and a data verification module; The data cleaning module cleans the collected raw carbon emission data by removing invalid data and outliers through the density outlier detection algorithm; The data formatting module is used to format the data cleaned by the data cleaning module; The data conversion module is used to convert the collected carbon emission data; The data verification module is used to verify data and generate alarms or records for abnormal data; data verification includes checking the scope of data, verifying the consistency of data, and comparing it with other related data; The data storage module is used for storing data.
3. The carbon emission data intelligent analysis and verification system based on semi-supervised learning as claimed in claim 1, Features: Labeled samples are annotated by human experts and provided with accurate carbon emission labels; labels include industry, product, energy consumption, material consumption, and output.
4. A method for intelligent analysis and verification of carbon emission data based on semi-supervised learning, applied to the intelligent analysis and verification system for carbon emission data based on semi-supervised learning as claimed in any one of claims 1 to 3, It is characterized in that The following steps are involved: Collect carbon emission related data, build labeled data sets and build unlabeled data sets; Pre-process the collected raw data to ensure the accuracy and consistency of the data; Input the labeled training data set into the supervised learning model for training; Use the trained semi-supervised learning model to predict a large number of unlabeled samples and obtain their label predictions; According to the prediction confidence of the semi-supervised learning model, samples with high confidence are selected for manual verification and labeling, samples with high confidence are confirmed, and the supervised learning model is updated; The carbon emission data to be verified is input into the carbon emission data automatic analysis and verification system for verification, to identify outliers, abnormal behaviors and potential violations, and generate corresponding alarms or reports.
5. The carbon emission data intelligent analysis and verification method based on semi-supervised learning as claimed in claim 4, Features: Data features are extracted through supervised learning models, and the original features are transformed or combined to improve the accuracy and generalization ability of the model; the prepared training data is trained using a neural network model to learn the relationship between input features and labels, and a model that can predict unknown samples is obtained. The formula of the hidden layer of the model is as follows: z=Wi*X+b Among them, W i is the weight matrix of the hidden layer, b i is the bias term, h(z) is the hidden layer activation function; The formula for the output layer is as follows: u=W j *X+b j Among them, W j is the weight matrix of the output layer, b j is the bias term and g(u) is the output layer activation function.
6. The carbon emission data intelligent analysis and verification method based on semi-supervised learning as claimed in claim 5, Features: In supervised learning, the network parameters are adjusted to make the network output as close to the true label as possible. To achieve this goal, a loss function needs to be defined to measure the difference between the predicted value and the true label. The loss function formula is as follows: L=--∑(yyture*log(sofemax(yprea))) Where n represents the length of the vector (number of categories), x i Represents the i-th element in the input vector, ytur e represents the vector of true labels, and ypred represents the predicted category probability distribution vector.
7. The carbon emission data intelligent analysis and verification method based on semi-supervised learning as claimed in claim 6, Features: The processing of the collected raw data includes the following steps: Data cleaning: The collected raw carbon emission data is cleaned by removing invalid data and outliers through outlier detection algorithms; Data formatting: Format the cleaned data to meet specific data structure and specification requirements; Data conversion: convert the collected carbon emission data for analysis and verification; Data verification: Use rule verification and logic verification to verify data to ensure data integrity and accuracy; Data storage: The processed data is saved in a central data storage area, which is a database or data warehouse.
8. The carbon emission data intelligent analysis and verification method based on semi-supervised learning as claimed in claim 7, Features: The density outlier detection algorithm formula is as follows: Where p(x) is the probability density of data point x, μ is the estimated mean, and σ is the estimated standard deviation. Set the corresponding threshold and compare the calculated probability density with the threshold. If the probability density is lower than the threshold, the data point is marked as an outlier and the outlier data is removed.
9. The carbon emission data intelligent analysis and verification method based on semi-supervised learning as claimed in claim 8, Features: The normalization method is used for data conversion. The calculation formula of the normalization method is as follows: Among them, X is the original carbon emission data, X norm is the normalized data, X min is the minimum value of the original data, X max is the maximum value of the original data; through this calculation formula, the range of the original data can be mapped to [0,1]. The purpose of normalization is to eliminate the dimensional differences between different features so that the data can be compared and analyzed at the same scale.
10. The carbon emission data intelligent analysis and verification method based on semi-supervised learning as claimed in claim 9, Features: In semi-supervised learning, a trained supervised model is used to make predictions on preprocessed unlabeled data and generate their predicted labels; these predicted pseudo-labeled datasets are merged with the true labeled dataset to form a new, larger labeled dataset.
Citation Information
Cited By
Deep semi-supervised soft measurement method for carbon emission in beer production
CN119541704A
Semi-automatic labeling method and system for rail transit engineering construction video images
CN120894643A
Automatic carbon accounting and intelligent correction method based on multi-source data fusion
CN121257989A
