Carbon emission data recording and supervising method and system based on block chain
Through the blockchain-based carbon emission data recording and supervision method, the regulatory committee and the linear regression model are used to verify the rationality of the carbon emission data, solving the problem of false data in road transportation data management, and achieving data transparency and credibility. degree and enhanced industry self-discipline.
Patent Information
- Application Number
- CN202410723284.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-05
AI Technical Summary
Carbon emission data generated by road transportation is difficult to accurately collect and manage, and existing blockchain technology solutions lack supervision of nodes, making it difficult to detect and correct false or erroneous data.
Adopt a blockchain-based carbon emission data recording and supervision method, form a supervision committee through the nodes with the most successful verifications and the highest reputation value, construct a consensus mechanism for the rationality verification of carbon emission data, use a linear regression model to verify the rationality of the data, and Through the three-level supervision packaging mechanism and the reputation value update mechanism, the transparency and credibility of the data are ensured.
It improves the credibility and management efficiency of carbon emission data, strengthens industry self-discipline, ensures the transparency and non-tamperability of data processing, and adapts to the needs of carbon emission supervision in different geographies and environments.
Smart Images

Figure CN118713972A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of blockchain carbon asset management, and specifically to a method and system for recording and supervising carbon emission data based on blockchain. Background Art
[0002] Blockchain technology is a decentralized distributed ledger technology that is maintained and recorded by multiple nodes. Blockchain links transaction data in the form of blocks to form an unalterable chain, thereby achieving secure recording and verification of transactions. It has the characteristics of decentralization, unalterability and high security.
[0003] Machine learning technology is a machine learning method based on artificial neural networks, which simulates and learns the intrinsic characteristics of complex data through multiple neuron layers. Machine learning builds a multi-layer neural network by connecting neuron layers together, thereby achieving efficient representation of data and learning of complex patterns. It has the characteristics of powerful model representation ability, adaptability, and high parallelism.
[0004] Climate issues have become a major concern of society. Summary of the invention
[0005] In view of the above-mentioned problems, the present invention is proposed.
[0006] Therefore, the technical problem solved by the present invention is that the carbon emissions generated by road transportation are large in quantity and difficult to collect. Therefore, the carbon emission data generated by vehicle transportation are mostly uploaded by users or enterprises, which may generate a large amount of false and erroneous data, causing difficulties in carbon emission data management and statistics; the existing carbon emission data management scheme based on blockchain technology lacks supervision of participating nodes. If a node is attacked from the inside, forged data or maliciously gives wrong results, it is difficult to discover and intervene from the outside.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a method for recording and supervising carbon emission data based on blockchain, comprising:
[0008] Collect carbon emission data, verify the rationality of carbon emission data, upload it to the supervision committee composed of nodes with the highest successful verification frequency and the highest reputation value to generate reference opinions, update the reputation value of each verification node, and construct a consensus mechanism for the rationality verification of carbon emission data;
[0009] The supervisory committee node records and verifies the carbon emission data opinions submitted by each verification node, forms aggregated opinions and final reference opinions, and constructs a blockchain supervision mechanism based on node reputation value;
[0010] The packaging node records the verified carbon emission data in this round and the changes in the reputation values of related nodes, and makes them public to the participating nodes, constructing a three-level supervision packaging mechanism based on reputation values.
[0011] As a preferred solution of the blockchain-based carbon emission data recording and supervision method described in the present invention, the platform parameters include task information and resource information.
[0012] As a preferred solution of the blockchain-based carbon emission data recording and supervision method of the present invention, the verification of the rationality of the carbon emission data includes constructing a linear regression model for verifying the rationality of the carbon emission data based on the reasonable range of carbon emissions formed by the driving distance of a single transport, the load of the transport vehicle, the driver's driving habits and the type of fuel used by the vehicle;
[0013] The consensus mechanism for verifying the rationality of carbon emission data includes a system composed of multiple independent nodes, and each node verifies the rationality of carbon emission data using a linear regression model;
[0014] The node N information code is expressed as:
[0015]
[0016] in, Represents the reputation value of node N in round i-1; V C They represent the number of times node N verifies node M and the number of times node N correctly verifies the rationality of carbon emission data; P N , P C , respectively represent the total number of times the node participates in packaging and the total number of times the node successfully packages; S C They represent the number of supervisions of node N on node M and the total number of successful supervisions of node N respectively.
[0017] As a preferred solution of the blockchain-based carbon emission data recording and supervision method described in the present invention, the consensus mechanism for the rationality verification of carbon emission data also includes the selection and grouping of participating nodes for carbon emission data verification: suppose that in the i-th round, the nodes with the top 50% of the reputation value are selected from the nodes that did not participate in the verification, supervision and packaging in the previous round to form a candidate node pool N B ; When i=1, a non-repeating random sequence is randomly generated with a length of half the total number of nodes. The nodes ranked in the top 5% of the sequence form the candidate node pool for data packaging in this round, the nodes ranked in the top 5% to 15% form the regulatory candidate node pool for rationality verification of data in this round, and the nodes ranked in the top 5% to 15% form the verification node candidate pool for rationality verification of carbon emission data in this round. The reputation value of nodes that have not entered the candidate node pool will increase by R Cas compensation;
[0018] Use the parent block as the seed to form a random sequence N of length n that does not repeat n ={N1,N2,…,N n}, then the nodes in the candidate node pool belonging to this sequence will be selected to participate in the i-th round of carbon emission data D i Verification of rationality;
[0019] The selected n nodes are grouped, and each node group is required to meet the following conditions:
[0020]
[0021] in, It represents the voting weight of the selected node n in verifying the rationality of carbon emission data.
[0022] As a preferred solution of the blockchain-based carbon emission data recording and supervision method of the present invention, the blockchain supervision mechanism based on node reputation value includes: the supervision committee is randomly composed of nodes with the highest verification success frequency and the highest reputation value;
[0023] The Supervisory Committee accepts reports from other nodes and receives evidence from the reporting nodes. After reaching a consensus in the Supervisory Committee, it decides whether the report is successful or not. After supervision and acceptance of the report, the Supervisory Committee node compares the final opinion of the Supervisory Committee and updates the reputation value of each node participating in the supervision.
[0024] Selection and update mechanism of supervisory committee nodes: Introducing intersection degree S NM Indicates the degree of association of node N to node M;
[0025] The information code of node N is expressed as:
[0026]
[0027] The information code of node M is expressed as:
[0028]
[0029] Then S NM The calculation formula is:
[0030]
[0031] Candidate supervisory node pool N s From the candidate node pool N B Did not participate in this round of carbon emission data D i Verification and verification success rate The top 50% of nodes make up;
[0032] Based on the node intersection S NM The supervisory node selection function F(C,R,S) with the node reputation value R is obtained, where C represents the set of node information codes of the candidate supervisory node pool, R represents the set of node reputation values of the candidate supervisory node pool; S represents the intersection degree matrix of the candidate supervisory node pool; by selecting the function F(C,R,S), select the supervisory node from the candidate supervisory node pool N s Several supervisory nodes with high reputation and low node intersection are selected to form a supervisory committee. The selection function is expressed as:
[0033] F(C,S,R)=∑R+∑S ij
[0034] After every T rounds of supervision, the supervision committee is updated and iterated by selecting the function F(C, R, S).
[0035] As a preferred solution of the blockchain-based carbon emission data recording and supervision method of the present invention, the verification node supervision mechanism includes: in the i-th round, the verification node checks the carbon emission data D i After verification, the supervisory committee node in the supervisory committee records the D i After all committee nodes have completed their records, they will compare their own records with those of other committee nodes. If more than 50% of the committee nodes’ records are consistent, the record will be used as the final aggregated opinion msg i , and by msg i Form a reference opinion i ; If all records in the Supervisory Committee do not reach a 50% consensus rate, the current Supervisory Committee will be dissolved and re-elected until the final aggregate opinion is formed. i ;
[0036] If a node reports the data that has been uploaded to the chain, the Supervisory Committee will accept the report and check the node's evidence; if more than half of the committee nodes believe that the report is true, the node's report is successful, the reported data will be discarded, and all nodes involved in uploading the data will be punished; otherwise, the node's report fails and the committee does not take any action.
[0037] As a preferred solution of the blockchain-based carbon emission data recording and supervision method described in the present invention, the reputation value and information code update rules of the supervision node include: the reputation value of the known supervision node is updated to R after the i-1th round of supervision i-1 , then after the i-th round of supervision ends, the supervisory node reputation value is updated to R i =R i-1+ΔR, ΔR is the change in the reputation value of the supervisory node in the i-th round; if the supervisory node gives correct records in the i-th round of supervision or gives correct opinions in the process of accepting reports, the calculation formula of ΔR is:
[0038]
[0039] in, μ increases with the frequency of successful supervision by the supervisory node. It increases first and then decreases. When the frequency of successful supervision of the supervision node reaches 1 / 2, μ reaches its maximum value.
[0040] If the supervision node gives an erroneous record in the i-th round of supervision, or the committee is dissolved, or fails to give a unanimous opinion in the process of accepting reports, and the i-th round of supervision committee is composed of γ nodes, the calculation formula of ΔR is:
[0041]
[0042] After the i-th round of chaining is completed, the information code of the supervision node will be updated; the committee node participates in the formation of an aggregated opinion msg, and the total number of supervision times of the committee node Increase by 1. After a committee is dissolved, the total number of supervisions by the committee node Increase by 1, accept one report, the total number of supervision times of committee nodes Increase by 1; committee nodes form aggregated opinion msg i If the correct record is given in the process, the number of successful supervisions of the node is S C Increase by 1; if a consensus is given in the process of accepting node reports, the number of successful supervisions of the node is S C Increase by 1.
[0043] As a preferred solution of the blockchain-based carbon emission data recording and supervision method of the present invention, the three-level supervision packaging mechanism based on reputation value includes:
[0044] Selection of packaging nodes based on reputation value, the packaging node of round i is selected from the above candidate node pool; if i=1, the packaging node is selected from the selected packaging candidate node pool; a random sequence N with a length of z and no repetition is formed with the parent block as the seed z ={N1,N2,…,N z}, in the random sequence N z Among the z nodes, select the frequency of successful supervision The largest node z As the packaging node for this round of carbon emission data on the chain; if there is a successful supervision frequency If the nodes are the same, the node with the highest reputation value will be selected as the packaging node for the carbon emission data of this round to be uploaded to the chain;
[0045] Suppose that after the i-1th round of chaining, the node Node z The reputation value is Node z Data D i , the verification node in the i-th round verifies the data D i Aggregate opinion msg formed by rationality verification i The change in the reputation value of the verification and supervision nodes in the i-th round is packaged and uploaded to the chain, and is subject to inspection by the nodes participating in the i-th round of verification and supervision; if Node z The records of Node z Packaging is successful; if there is a node to Node z The record raised an objection. After inspection, Node z If the record is indeed wrong, then the Node z Packing failed;
[0046] Round i Node z Reputation ΔR is the node of round i z The change in reputation value; if the packaging node Node in round i z If the packaging is successful, the calculation formula is:
[0047]
[0048] If Node z The packaging node of round i z If packaging fails, Node z The reputation value is halved:
[0049]
[0050] A carbon emission data recording and supervision system based on blockchain using any method described in the present invention, wherein:
[0051] The collection module collects carbon emission data, verifies the rationality of carbon emission data, and uploads it to a supervision committee composed of nodes with the highest successful verification frequency and the highest reputation value to generate reference opinions, update the reputation value of each verification node, and construct a consensus mechanism for verifying the rationality of carbon emission data;
[0052] Supervision module: the supervision committee node records and verifies the carbon emission data opinions submitted by each verification node, forms aggregated opinions and final reference opinions, and constructs a blockchain supervision mechanism based on node reputation value;
[0053] Packaging module: Packaging nodes record the verified carbon emission data and the changes in the reputation values of related nodes in this round, and make public announcements to participating nodes to construct a three-level supervision packaging mechanism based on reputation values;
[0054] The verification module constructs a linear regression model for verifying the rationality of carbon emission data based on the reasonable range of carbon emissions formed by the driving distance of a single transport, the load of the transport vehicle, the driver's driving habits and the type of fuel used by the vehicle.
[0055] A computer device comprises: a memory and a processor; the memory stores a computer program, wherein the processor implements the steps of any one of the methods of the present invention when executing the computer program.
[0056] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any one of the methods of the present invention.
[0057] Beneficial effects of the present invention: The blockchain-based carbon emission data recording and supervision method provided by the present invention uses blockchain technology, and all data verification and recording operations are tamper-proof and completely transparent, thereby increasing the credibility of data processing. The rationality of carbon emission data is verified by a linear regression model, and whether the data conforms to the actual situation can be scientifically evaluated. Through the supervision and packaging mechanism between nodes, the self-discipline within the industry is strengthened. The system design allows deployment in different geographical locations and environments, and the system is extremely flexible and adaptable when expanding or adjusting the requirements of carbon emission supervision. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0059] Figure 1 An overall flow chart of a method for recording and supervising carbon emission data based on blockchain provided for the first embodiment of the present invention;
[0060] Figure 2 A schematic diagram of node selection and inclusion relationship of the three links of verification, supervision and packaging of a method for recording and supervising carbon emission data based on blockchain provided in the first embodiment of the present invention;
[0061] Figure 3A flowchart of a consensus mechanism for the rationality of carbon emission data based on a linear regression model in a blockchain-based carbon emission data recording and supervision method provided in the first embodiment of the present invention;
[0062] Figure 4 A schematic diagram of a process for forming aggregated opinions and reference opinions in a reputation-based committee supervision mechanism of a blockchain-based carbon emission data recording and supervision method provided in the first embodiment of the present invention;
[0063] Figure 5 A schematic diagram of the process of handling reports by a supervision committee in a committee supervision mechanism in a method for recording and supervising carbon emission data based on blockchain provided in the first embodiment of the present invention;
[0064] Figure 6 A flowchart of a three-level supervision and packaging mechanism based on reputation value in a blockchain-based carbon emission data recording and supervision method provided by the first embodiment of the present invention;
[0065] Figure 7 A line graph of a verification model in a blockchain-based carbon emission data recording and supervision method provided in accordance with a second embodiment of the present invention. DETAILED DESCRIPTION
[0066] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0067] Example 1
[0068] Reference Figure 1 , as an embodiment of the present invention, provides a method for recording and supervising carbon emission data based on blockchain, comprising:
[0069] S1: Collect carbon emission data, verify the rationality of carbon emission data, upload it to a regulatory committee randomly composed of nodes with the highest successful verification frequency and the highest credibility to generate reference opinions, update the credibility of each verification node, and construct a consensus mechanism for verifying the rationality of carbon emission data.
[0070] The verification of the rationality of carbon emission data includes constructing a linear regression model for verifying the rationality of carbon emission data based on the reasonable range of carbon emission according to the driving distance of a single transport, the load of the transport vehicle, the driving habits of the driver and the type of fuel used by the vehicle;
[0071] The consensus mechanism for verifying the rationality of carbon emission data includes a system composed of multiple independent nodes, and each node verifies the rationality of carbon emission data using a linear regression model;
[0072] The node N information code is expressed as:
[0073]
[0074] in, Represents the reputation value of node N in round i-1; V C They represent the number of times node N verifies node M and the number of times node N correctly verifies the rationality of carbon emission data; P N , P C , respectively represent the total number of times the node participates in packaging and the total number of times the node successfully packages; S C They represent the number of supervisions of node N on node M and the total number of successful supervisions of node N respectively.
[0075] Selection and grouping of participating nodes for carbon emission data verification: Assume that in round i, the top 50% of nodes in reputation value are selected from the nodes that did not participate in verification, supervision and packaging in the previous round to form a candidate node pool N B ; When i=1, a non-repeating random sequence is randomly generated with a length of half the total number of nodes. The nodes ranked in the top 5% of the sequence form the candidate node pool for data packaging in this round, the nodes ranked in the top 5% to 15% form the regulatory candidate node pool for rationality verification of data in this round, and the nodes ranked in the top 5% to 15% form the verification node candidate pool for rationality verification of carbon emission data in this round. The reputation value of nodes that have not entered the candidate node pool will increase by R C as compensation;
[0076] Use the parent block as the seed to form a random sequence N of length n that does not repeat n ={N1,N2,…,N n}, then the nodes in the candidate node pool belonging to this sequence will be selected to participate in the i-th round of carbon emission data D i Verification of rationality;
[0077] The selected n nodes are grouped, and each node group is required to meet the following conditions:
[0078]
[0079] in, It represents the voting weight of the selected node n in verifying the rationality of carbon emission data.
[0080] In detail, in the consensus mechanism of carbon emission data rationality based on the linear regression model, the judgment mechanism of carbon emission data rationality is as follows: In the i-th round, the verification node uses the linear regression model to verify the carbon emission data D uploaded by the user i The rationality of the carbon emission data D i If the proportion of reasonable votes accounts for more than 1 / 2 of the total votes of the node group, then the node group believes that D i is reasonable, otherwise the node group believes that D i is unreasonable. If more than half of the nodes in the group believe that D i is reasonable, then D i After the i-th round of verification, the carbon emission data D i Reference opinion i =1; otherwise, D i Unreasonable and makes view i =0, discard carbon emission data D i .
[0081] In detail, in the consensus mechanism of carbon emission data rationality based on the linear regression model, the update of the verification node reputation value is: suppose the reputation value of node n after the end of the i-1 round of chain is When the verification node n is D i Evaluation and reference opinions i If the same, the reputation value of node n in round i is ΔR is the change in the reputation value of node n in the i-th round, and its calculation formula is:
[0082]
[0083] When the verification node n is D i Evaluation and reference opinions i Different, node reputation value The deduction of this carbon emission data D i The more verification nodes that make mistakes, the more difficult it is to judge the rationality of D. i The more difficult it is to judge, the more difficult it is to judge. If there are θ nodes making mistakes in this round of verification, the reputation value of the node making the wrong judgment will be reduced by
[0084]
[0085] As a preferred solution of the method for recording and supervising carbon emission data based on linear regression verification and reputation consensus of blockchain technology described in the present invention, the committee supervision mechanism based on reputation value includes the selection and update mechanism of the supervision node committee, the supervision mechanism of the verification node, and the reputation value and information code update rules of the supervision node. (The supervision of the most successful verification times is upgraded, and the upgrade packaging of the most supervision; the supervision node records the opinions of the verification node, and also adds the record comparison of the minority obeying the majority)
[0086] According to the reasonable range of carbon emissions, the driving distance of a single transport, the load of the transport vehicle, the driver's driving habits and the type of fuel used by the vehicle, a linear regression model is constructed to verify the rationality of carbon emission data.
[0087] The data uploaded by the user includes the driving distance L of a single transport, the load B of the vehicle for this transport, the driver's driving habits DH and the type of fuel used by the vehicle F T , then the linear regression verification model of the carbon emissions C of the transport vehicle in a single transport is:
[0088] C=0.0024×L+0.1317×B+26.2994×DH-128.6085×F T +272.4340
[0089] S2: The supervisory committee node records and verifies the carbon emission data opinions submitted by each verification node, forms aggregated opinions and final reference opinions, and constructs a blockchain supervision mechanism based on node reputation.
[0090] The Supervisory Committee is randomly composed of nodes with the highest success rate of verification and the highest reputation value;
[0091] The Supervisory Committee accepts reports from other nodes and receives evidence from the reporting nodes. After reaching a consensus in the Supervisory Committee, it decides whether the report is successful or not. After supervision and acceptance of the report, the Supervisory Committee node compares the final opinion of the Supervisory Committee and updates the reputation value of each node participating in the supervision.
[0092] Selection and update mechanism of supervisory committee nodes: Introducing intersection degree S NM Indicates the degree of association of node N to node M;
[0093] The information code of node N is expressed as:
[0094]
[0095] The information code of node M is expressed as:
[0096]
[0097] Then S NM The calculation formula is:
[0098]
[0099] Candidate supervisory node pool N s From the candidate node pool N B Did not participate in this round of carbon emission data D i Verification and verification success rate The top 50% of nodes make up;
[0100] Based on the node intersection S NM The supervisory node selection function F(C,R,S) with the node reputation value R is obtained, where C represents the set of node information codes of the candidate supervisory node pool, R represents the set of node reputation values of the candidate supervisory node pool; S represents the intersection degree matrix of the candidate supervisory node pool; by selecting the function F(C,R,S), select the supervisory node from the candidate supervisory node pool N s Several supervisory nodes with high reputation and low node intersection are selected to form a supervisory committee. The selection function is expressed as:
[0101] F(C,S,R)=ΣR+ΣS ij
[0102] After every T rounds of supervision, the supervision committee is updated and iterated by selecting the function F(C, R, S).
[0103] The verification node supervision mechanism includes: in the i-th round, the verification node monitors the carbon emission data D i After verification, the supervisory committee node in the supervisory committee records the D i After all committee nodes have completed their records, they will compare their own records with those of other committee nodes. If more than 50% of the committee nodes’ records are consistent, the record will be used as the final aggregated opinion msg i , and by msg i Form a reference opinion i ; If all records in the Supervisory Committee do not reach a 50% consensus rate, the current Supervisory Committee will be dissolved and re-elected until the final aggregate opinion is formed. i ;
[0104] If a node reports the data that has been uploaded to the chain, the Supervisory Committee will accept the report and check the node's evidence; if more than half of the committee nodes believe that the report is true, the node's report is successful, the reported data will be discarded, and all nodes involved in uploading the data will be punished; otherwise, the node's report fails and the committee does not take any action.
[0105] The reputation value and information code update rules of the supervision node include: the reputation value of the known supervision node is updated to R after the i-1th round of supervisioni-1 , then after the i-th round of supervision ends, the supervisory node reputation value is updated to R i =R i-1 +ΔR, ΔR is the change in the reputation value of the supervisory node in the i-th round; if the supervisory node gives correct records in the i-th round of supervision or gives correct opinions in the process of accepting reports, the calculation formula of ΔR is:
[0106]
[0107] in, μ increases with the frequency of successful supervision by the supervisory node. First increase and then decrease, when the frequency of successful supervision of the supervision node reaches When , μ reaches its maximum value;
[0108] If the supervision node gives an erroneous record in the i-th round of supervision, or the committee is dissolved, or fails to give a unanimous opinion in the process of accepting reports, and the i-th round of supervision committee is composed of γ nodes, the calculation formula of ΔR is:
[0109]
[0110] After the i-th round of chaining is completed, the information code of the supervision node will be updated; the committee node participates in the formation of an aggregated opinion msg, and the total number of supervision times of the committee node Increase by 1. After a committee is dissolved, the total number of supervisions by the committee node Increase by 1, accept one report, the total number of supervision times of committee nodes Increase by 1; committee nodes form aggregated opinion msg i If the correct record is given in the process, the number of successful supervisions of the node is S C Increase by 1; if a consensus is given in the process of accepting node reports, the number of successful supervisions of the node is S C Increase by 1.
[0111] Specifically, in the committee supervision mechanism based on reputation value, the supervision mechanism of the verification node is: in the i-th round, the verification node performs the carbon emission data D i After verification, the supervisory committee node in the supervisory committee records the verification nodes of D i After all committee nodes have completed their records, they will compare their own records with those of other committee nodes. If more than 1 / 2 of the committee nodes’ records are consistent, the record will be used as the final aggregated opinion msg i , and by msg i Form a reference opinionView i; If all records in the Supervisory Committee do not reach a 1 / 2 consensus rate, the current Supervisory Committee will be dissolved and re-elected until the final aggregate opinion is formed. i . Like msg i =10X111,msg i [n] takes 1, 0, and X to represent the carbon emission data D of the nth node participating in the verification. i The evaluation opinion is reasonable, unreasonable or incomplete.
[0112] In particular, if a node reports on the data that has been uploaded to the chain, the Supervisory Committee will accept the report and check the evidence of the node. If more than half of the committee nodes believe that the report is true, the node's report is successful, the reported data is discarded, and all nodes involved in uploading the data are punished; otherwise, the node's report fails and the committee does not take any action.
[0113] S3: The packaging node records the verified carbon emission data in this round and the changes in the reputation values of related nodes, and makes them public to the participating nodes, constructing a three-level supervision packaging mechanism based on reputation values.
[0114] Selection of packaging nodes based on reputation value, the packaging node of round i is selected from the above candidate node pool; if i=1, the packaging node is selected from the selected packaging candidate node pool; a random sequence N with a length of z and no repetition is formed with the parent block as the seed z ={N1,N2,…,N z}, in the random sequence N z Among the z nodes, select the frequency of successful supervision The largest node z As the packaging node for this round of carbon emission data on the chain; if there is a successful supervision frequency If the nodes are the same, the node with the highest reputation value will be selected as the packaging node for the carbon emission data of this round to be uploaded to the chain;
[0115] Suppose that after the i-1th round of chaining, the node Node z The reputation value is Node z Data D i , the verification node in the i-th round verifies the data D i Aggregate opinion msg formed by rationality verification i The change in the reputation value of the verification and supervision nodes in the i-th round is packaged and uploaded to the chain, and is subject to inspection by the nodes participating in the i-th round of verification and supervision; if Node z The records of Node z Packaging is successful; if there is a node to Node z The record raised an objection. After inspection, Nodez If the record is indeed wrong, then the Node z Packing failed;
[0116] Round i Node z Reputation ΔR is the node of round i z The change in reputation value; if the packaging node Node in round i z If the packaging is successful, the calculation formula is:
[0117]
[0118] If Node z The packaging node of round i z If packaging fails, Node z The reputation value is halved:
[0119]
[0120] In detail, in the three-level supervision packaging mechanism based on reputation value, the selection of packaging nodes based on reputation value is as follows: the packaging node of the i-th round is selected from the above candidate node pool; if i=1, the packaging node is selected from the selected packaging candidate node pool. A random sequence N with a length of z and no repetition is formed with the parent block as the seed. z ={N1,N2,…,N z}, in the random sequence N Z Among the z nodes, select the frequency of successful supervision The largest node z As the packaging node for this round of carbon emission data on the chain; if there is a successful supervision frequency For the same nodes, the node with the highest reputation value will be selected as the packaging node for uploading the carbon emission data of this round to the chain.
[0121] According to the reasonable range of carbon emissions, the driving distance of a single transport, the load of the transport vehicle, the driver's driving habits and the type of fuel used by the vehicle, a linear regression model is constructed to verify the rationality of carbon emission data.
[0122] The data uploaded by the user includes the driving distance L of a single transport, the load B of the vehicle for this transport, the driver's driving habits DH and the type of fuel used by the vehicle F T , then the linear regression verification model of the carbon emissions C of the transport vehicle in a single transport is:
[0123] C=0.0024×L+0.1317×B+26.2994×DH-128.6085×F T +272.4340
[0124] On the other hand, this embodiment also provides a carbon emission data recording and supervision system based on blockchain, which includes:
[0125] The collection module collects carbon emission data, verifies the rationality of the carbon emission data, and uploads it to a regulatory committee randomly composed of nodes with the highest successful verification frequency and the highest credibility to generate reference opinions, update the credibility of each verification node, and construct a consensus mechanism for verifying the rationality of carbon emission data.
[0126] In the supervision module, the supervision committee node records and verifies the carbon emission data opinions submitted by each verification node, forms aggregated opinions and final reference opinions, and constructs a blockchain supervision mechanism based on node reputation.
[0127] The packaging module records the verified carbon emission data and the changes in the reputation values of related nodes in this round, and makes them public to the participating nodes, thus constructing a three-level supervision packaging mechanism based on reputation values.
[0128] The verification module constructs a linear regression model for verifying the rationality of carbon emission data based on the reasonable range of carbon emissions formed by the driving distance of a single transport, the load of the transport vehicle, the driver's driving habits and the type of fuel used by the vehicle.
[0129] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0130] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0131] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0132] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0133] Example 2
[0134] The data is uploaded by the enterprise, which includes the driving distance L of each transport by different drivers in different time periods, the load B of the transport vehicle, the driver's driving habits DH and the type of fuel used by the vehicle F T .
[0135] After identifying that an enterprise has uploaded data, a random sequence N with a length of n and no repetition is formed using the parent block as a seed. n ={N1,N2,…,N n}, select the nodes belonging to the sequence from the nodes ranked in the top 50% of the reputation value as verification nodes.
[0136] Each node is assigned a node information code, such as the information code of node N in, Represents the reputation value of node N in round i-1; V C They represent the number of times node N verifies node M and the number of times node N correctly verifies the rationality of carbon emission data; P N , P C Respectively represent the total number of times the node participated in packaging and the total number of times the node successfully packaged; S C They represent the number of supervisions of node N on node M and the total number of successful supervisions of node N respectively.
[0137] The selected n verification nodes are grouped into verification node groups, and each node group is required to meet the following conditions:
[0138]
[0139] in, Indicates the voting weight of a verification node n in verifying the rationality of carbon emission data.
[0140] Each verification node will use the linear regression model to verify the data uploaded by the enterprise one by one. The carbon emissions of a transport vehicle in a single transport is C, and the linear regression verification model of C is:
[0141] C=0.0024×L+0.1317×B+26.2994×DH-128.6085×F T +272.4340
[0142] The verification node uses a linear regression model to verify the carbon emission data uploaded by the user D i The rationality of the carbon emission data D i If the proportion of reasonable votes accounts for more than 1 / 2 of the total votes of the node group, then the node group believes that D i is reasonable; otherwise, the node group believes that D i is unreasonable. If more than half of the nodes in the group believe that D i is reasonable, then D i After the i-th round of verification, the carbon emission data D i Reference opinion i =1; otherwise, D i Unreasonable and makes view i =0, discard carbon emission data Di .
[0143] Suppose the reputation value of node n after the i-1th round of chaining is When the verification node n is D i Evaluation and reference opinions i If the same, the reputation value of node n in round i is ΔR is the change in the reputation value of node n in the i-th round, and its calculation formula is:
[0144]
[0145] When the verification node n is D i Evaluation and reference opinionsView i Different, node reputation value The deduction of this carbon emission data D i The more verification nodes that make mistakes, the more difficult it is to judge the rationality of D. i The more difficult it is to judge, the more difficult it is to judge. If there are θ nodes making mistakes in this round of verification, the reputation value of the node making the wrong judgment will be reduced by
[0146]
[0147] Nodes participating in verification cannot participate in supervision and packaging. Any two nodes have an intersection degree S NM surface
[0148] It indicates the degree of association between node N and node M. The information code of node N is expressed as
[0149]
[0150] , the information code of node M is expressed as Then S NM The calculation formula is:
[0151]
[0152] Candidate supervisory node pool N s From the candidate node pool N B Did not participate in this round of carbon emission data D i Verification and verification success rate The top 50% of nodes make up;
[0153] Based on the node intersection S NMThe supervisory node selection function F(C,R,S) with the node reputation value R is obtained, where C represents the set of node information codes of the candidate supervisory node pool, R represents the set of node reputation values of the candidate supervisory node pool; S represents the intersection degree matrix of the candidate supervisory node pool; by selecting the function F(C,R,S), select the supervisory node from the candidate supervisory node pool N s Several supervisory nodes with high reputation and low node intersection are selected to form a supervisory committee. The selection function is expressed as:
[0154] F(C,S,R)=ΣR+ΣS ij
[0155] In round i, the verification node verifies the carbon emission data D i After verification, the supervisory committee node in the supervisory committee records the verification nodes of D i After all committee nodes have completed their records, they will compare their own records with those of other committee nodes. If more than 1 / 2 of the committee nodes’ records are consistent, the record will be used as the final aggregated opinion msg i , and by msg i Form a reference opinionView i ; If all records in the Supervisory Committee do not reach a 1 / 2 consensus rate, the current Supervisory Committee will be dissolved and re-elected until the final aggregate opinion is formed. i . Like msg i =10X111,msg i [n] takes 1, 0, and X to represent the carbon emission data D of the nth node participating in the verification. i The evaluation opinion is reasonable, unreasonable or incomplete.
[0156] There will be nodes reporting wrong or forged data to the Supervisory Committee. If a node reports the data that has been uploaded to the chain, the Supervisory Committee will accept the report and check the evidence of the node. If more than half of the committee nodes believe that the report is true, the node's report is successful, the reported data will be discarded, and all nodes involved in uploading the data will be punished; otherwise, the node's report fails and the committee does not take any action.
[0157] It is known that the reputation value of the supervisory node is updated to R after the i-1th round of supervision. i-1 , then after the i-th round of supervision ends, the supervisory node reputation value is updated to R i =R i-1 +ΔR, ΔR is the change in reputation of the supervisory node Node in the i-th round. If the supervisory node gives correct records in the i-th round of supervision or gives correct opinions in the process of accepting reports, the calculation formula of ΔR is:
[0158]
[0159] in, μ increases with the frequency of successful supervision by the supervisory node. First increase and then decrease, when the frequency of successful supervision of the supervision node reaches When , μ reaches its maximum value.
[0160] If the supervision node gives an erroneous record in the i-th round of supervision, or the committee is dissolved, or fails to give a unanimous opinion in the process of accepting reports, and the i-th round of supervision committee is composed of γ nodes, the calculation formula of ΔR is:
[0161]
[0162] After the i-th round of chaining is completed, the information code of the supervisory node will be updated. The committee node participates in an aggregate opinion msg i The total number of supervisions by the committee nodes is Increase by 1; committee nodes form aggregated opinion msg i If a correct record is given in the process of receiving the node report or a consensus is given in the process of accepting the node report, then the number of successful supervisions of the node is S C Increase by 1.
[0163] Verification nodes and regulatory nodes cannot participate in packaging. If i = 1, the packaging node is selected from the selected packaging candidate node pool. Use the parent block as the seed to form a random sequence N of length z that is not repeated. z ={N1,N2,…,N z}, in the random sequence N Z Among the z nodes, select the frequency of successful supervision The largest node z As the packaging node for this round of carbon emission data on the chain; if there is a successful supervision frequency If the nodes are the same, the node with the highest reputation value is selected. z Serves as the packaging node for this round of carbon emission data on the chain.
[0164] Node z Data D i , the verification node in the i-th round verifies the data D i Aggregate opinion msg formed by rationality verification i The change in the reputation value of the verification and supervision nodes in the i-th round is packaged and uploaded to the chain, and is subject to inspection by the nodes participating in the i-th round of verification and supervision. z The records of Node z Packaging is successful; if there is a node to Node z The record raised an objection. After inspection, Node zIf the record is indeed wrong, then the Node z If packaging fails, you need to reselect the packaging node for packaging until the current packaging is successfully completed.
[0165] Suppose that after the i-1th round of chaining, the node Node z The reputation value is Round i Node z Reputation ΔR is the node of round i z The change in reputation value. If the packaging node Node in round i z If the packaging is successful, the calculation formula is:
[0166]
[0167] If the packaging node Node in round i z If packaging fails, Node z The reputation value is halved:
[0168]
[0169] First, during the data collection phase, the vehicle’s GPS device automatically records the starting and ending positions of each trip, calculates the total driving distance, and uses the vehicle’s built-in load sensor to automatically record load data before and after each transport. The vehicle’s driving data recording device records acceleration, braking frequency, average speed and other data to reflect the driver’s driving habits. The driver enters the type of fuel used (such as diesel, gasoline, electricity, etc.) through the system interface before starting the transport, and the vehicle’s carbon dioxide emissions are directly measured through the exhaust gas analyzer. All collected data is automatically transmitted to the relevant database, and then a machine learning method is used to establish a linear regression equation to obtain the relationship between driving distance, load rate (full load or empty load), driver driving habits (smooth driving and frequent sudden acceleration or sudden braking), and the carbon emission coefficient of different fuel types and carbon emissions, thereby constructing a verification model, such as Figure 7 shown.
[0170] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for recording and supervising carbon emission data based on blockchain, characterized in that: include: Collect carbon emission data, verify the rationality of carbon emission data, upload it to the supervision committee composed of nodes with the highest successful verification frequency and the highest reputation value to generate reference opinions, update the reputation value of each verification node, and construct a consensus mechanism for the rationality verification of carbon emission data; The supervisory committee node records and verifies the carbon emission data opinions submitted by each verification node, forms aggregated opinions and final reference opinions, and constructs a blockchain supervision mechanism based on node reputation value; The packaging node records the verified carbon emission data in this round and the changes in the reputation values of related nodes, and makes them public to the participating nodes, constructing a three-level supervision packaging mechanism based on reputation values.
2. The method for recording and supervising carbon emission data based on blockchain as claimed in claim 1, characterized in that: The verification of the rationality of carbon emission data includes constructing a linear regression model for verifying the rationality of carbon emission data based on the reasonable range of carbon emission according to the driving distance of a single transport, the load of the transport vehicle, the driving habits of the driver and the type of fuel used by the vehicle; The consensus mechanism for verifying the rationality of carbon emission data includes a system composed of multiple independent nodes, and each node verifies the rationality of carbon emission data using a linear regression model; The node N information code is expressed as: in, Represents the reputation value of node N in round i-1; V C They represent the number of times node N verifies node M and the number of times node N correctly verifies the rationality of carbon emission data; P N , P C , respectively represent the total number of times the node participates in packaging and the total number of times the node successfully packages; S C They represent the number of supervisions of node N on node M and the total number of successful supervisions of node N respectively.
3. The method for recording and supervising carbon emission data based on blockchain as claimed in claim 2, characterized in that: The consensus mechanism for verifying the rationality of carbon emission data also includes the selection and grouping of participating nodes for carbon emission data verification: Suppose in the i-th round, the nodes with the top 50% of the reputation value are selected from the nodes that did not participate in verification, supervision and packaging in the previous round to form a candidate node pool N B ; When i=1, a non-repeating random sequence is randomly generated with a length of half the total number of nodes. The nodes ranked in the top 5% of the sequence form the candidate node pool for data packaging in this round, the nodes ranked in the top 5% to 15% form the regulatory candidate node pool for rationality verification of data in this round, and the nodes ranked in the top 5% to 15% form the verification node candidate pool for rationality verification of carbon emission data in this round. The reputation value of nodes that have not entered the candidate node pool will increase by R C as compensation; Use the parent block as the seed to form a random sequence N of length n that does not repeat n ={N1,N2,…,N n }, then the nodes in the candidate node pool belonging to this sequence will be selected to participate in the i-th round of carbon emission data D i Verification of rationality; The selected n nodes are grouped, and each node group is required to meet the following conditions: in, It represents the voting weight of the selected node n in verifying the rationality of carbon emission data.
4. The method for recording and supervising carbon emission data based on blockchain as claimed in claim 3, characterized in that: The blockchain supervision mechanism based on node reputation value includes that the supervision committee accepts reports from other nodes and receives evidence from the reporting nodes, and decides whether the report is successful or not after reaching a consensus in the supervision committee; After supervision and acceptance of reports, the supervisory committee node compares the final opinions of the supervisory committee and updates the reputation value of each node involved in supervision; Selection and update mechanism of supervisory committee nodes: Introducing intersection degree S NM Indicates the degree of association of node N to node M; The information code of node N is expressed as: The information code of node M is expressed as: Then S NM The calculation formula is: Candidate supervisory node pool N s From the candidate node pool N B Did not participate in this round of carbon emission data D i Verification and verification success rate The top 50% of nodes make up; Based on the node intersection S NM The supervisory node selection function F(C,R,S) with the node reputation value R is obtained, where C represents the set of node information codes of the candidate supervisory node pool, R represents the set of node reputation values of the candidate supervisory node pool; S represents the intersection degree matrix of the candidate supervisory node pool; by selecting the function F(C,R,S), select the supervisory node from the candidate supervisory node pool N s Several supervisory nodes with high reputation and low node intersection are selected to form a supervisory committee. The selection function is expressed as: F(C,S,R)=∑R+∑S ij After every T rounds of supervision, the supervision committee is updated and iterated by selecting the function F(C, R, S).
5. The method for recording and supervising carbon emission data based on blockchain as claimed in claim 4, characterized in that: The verification node supervision mechanism includes: in the i-th round, the verification node monitors the carbon emission data D i After verification, the supervisory committee node in the supervisory committee records the D i After all committee nodes have completed their records, they will compare their own records with those of other committee nodes. If more than 50% of the committee nodes’ records are consistent, the record will be used as the final aggregated opinion msg i , and by msg i Form a reference opinion i ; If all records in the Supervisory Committee do not reach a 50% consensus rate, the current Supervisory Committee will be dissolved and re-elected until the final aggregate opinion is formed. i ; If a node reports the data that has been uploaded to the chain, the Supervisory Committee will accept the report and check the node's evidence; if more than half of the committee nodes believe that the report is true, the node's report is successful, the reported data will be discarded, and all nodes involved in uploading the data will be punished; otherwise, the node's report fails and the committee does not take any action.
6. The method for recording and supervising carbon emission data based on blockchain as claimed in claim 5, characterized in that: The reputation value and information code update rules of the supervision node include: the reputation value of the known supervision node is updated to R after the i-1th round of supervision i-1 , then after the i-th round of supervision ends, the supervisory node reputation value is updated to R i =R i-1 +ΔR, ΔR is the change in the reputation value of the supervisory node in the i-th round; if the supervisory node gives correct records in the i-th round of supervision or gives correct opinions in the process of accepting reports, the calculation formula of ΔR is: in, μ increases with the frequency of successful supervision by the supervisory node. It increases first and then decreases. When the frequency of successful supervision of the supervision node reaches 1 / 2, μ reaches its maximum value. If the supervision node gives an erroneous record in the i-th round of supervision, or the committee is dissolved, or fails to give a unanimous opinion in the process of accepting reports, and the i-th round of supervision committee is composed of γ nodes, the calculation formula of ΔR is: After the i-th round of chaining is completed, the information code of the supervision node will be updated; the committee node participates in the formation of an aggregated opinion msg, and the total number of supervision times of the committee node Increase by 1. After a committee is dissolved, the total number of supervisions by the committee node Increase by 1, accept one report, the total number of supervision times of committee nodes Increase by 1; committee nodes form aggregated opinion msg i If the correct record is given in the process, the number of successful supervisions of the node is S C Increase by 1; if a consensus is given in the process of accepting node reports, the number of successful supervisions of the node is S C Increase by 1.
7. The method for recording and supervising carbon emission data based on blockchain as claimed in claim 6, characterized in that: The three-level supervision packaging mechanism based on reputation value includes: Selection of packaging nodes based on reputation value: the packaging nodes for round i are selected from the above candidate node pool; If i=1, the packing node is selected from the selected packing candidate node pool; a random sequence N with a length of z and no repetition is formed with the parent block as the seed. z ={N1,N2,…,N z }, in the random sequence N z Among the z nodes, select the frequency of successful supervision The largest node z As the packaging node for this round of carbon emission data on the chain; if there is a successful supervision frequency If the nodes are the same, the node with the highest reputation value will be selected as the packaging node for the carbon emission data of this round to be uploaded to the chain; Suppose that after the i-1th round of chaining, the node Node z The reputation value is Node z Data D i , the verification node in the i-th round verifies the data D i Aggregate opinion msg formed by rationality verification i The change in the reputation value of the verification and supervision nodes in the i-th round is packaged and uploaded to the chain, and is subject to inspection by the nodes participating in the i-th round of verification and supervision; if Node z The records of Node z Packaging is successful; if there is a node to Node z The record raised an objection. After inspection, Node z If the record is indeed wrong, then the Node z Packing failed; Round i Node z Reputation ΔR is the node of round i z The change in reputation value; If the packaging node Node in round i z If the packaging is successful, the calculation formula is: If Node z The packaging node of round i z If packaging fails, Node z The reputation value is halved:
8. A carbon emission data recording and monitoring system based on blockchain using the method as described in any one of claims 1 to 7, characterized in that: The collection module collects carbon emission data, verifies the rationality of carbon emission data, and uploads it to a supervision committee composed of nodes with the highest successful verification frequency and the highest reputation value to generate reference opinions, update the reputation value of each verification node, and construct a consensus mechanism for verifying the rationality of carbon emission data; Supervision module: the supervision committee node records and verifies the carbon emission data opinions submitted by each verification node, forms aggregated opinions and final reference opinions, and constructs a blockchain supervision mechanism based on node reputation value; Packaging module: Packaging nodes record the verified carbon emission data and the changes in the reputation values of related nodes in this round, and make public announcements to participating nodes to construct a three-level supervision packaging mechanism based on reputation values; The verification module constructs a linear regression model for verifying the rationality of carbon emission data based on the reasonable range of carbon emissions formed by the driving distance of a single transport, the load of the transport vehicle, the driver's driving habits and the type of fuel used by the vehicle.
9. A computer device comprising: Memory and processor; The memory stores a computer program, which is characterized in that when the processor executes the computer program, it implements the steps of a method for recording and supervising carbon emission data based on blockchain.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a method for recording and supervising carbon emission data based on blockchain are implemented.
Citation Information
Patent Citations
Blockchain consensus method based on dynamic reputation mechanism in Internet of Vehicles environment
CN111756546A
Block chain consensus method with security perception and response strategy
CN115357660A
Parallel supervisible identity privacy protection method
CN116032661A
Supervisable block chain dynamic fragment design method and system
CN116389483A
Carbon emission processing method and device based on block chain
CN116911499A
