Energy digital object tracing method and device

By obtaining the key elements of energy digital objects and constructing a bloodline map, the problem of opaque energy flow paths is solved, energy management is efficient and safe, and the credibility and compliance of energy digital objects are improved.

CN118536819APending Publication Date: 2024-08-23STATE GRID HEBEI ELECTRIC POWER CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410392189.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-02
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The opacity of energy flow paths leads to low efficiency of energy management. Existing technology cannot effectively trace the source and evolution process of energy, affecting the safety and compliance of energy management.

Method used

By obtaining the key elements of energy digital objects, establishing kinship relationships and constructing a tree-like kinship map, the traceability of energy digital objects is realized and the integrity and credibility of the data are ensured.

Benefits of technology

It improves the credibility and compliance of energy digital object information, enhances the efficiency and security of energy management, and ensures the transparency and traceability of energy flow paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536819A
    Figure CN118536819A
Patent Text Reader

Abstract

The invention provides an energy digital object tracing method and device, and relates to the technical field of data tracing. The method comprises the following steps: acquiring various energy digital objects, wherein the energy digital objects comprise energy equipment data, energy production data, energy consumption data, energy quality data and energy market data; key elements of various energy digital objects are extracted, a key element feature set is constructed, and key element features include energy types, producing areas, production dates, suppliers and prices; based on blood relationship analysis, establishing corresponding blood relationships for various energy digital objects and corresponding key elements; and according to each blood relationship, a tree-shaped blood relationship map of the energy digital object is constructed, and the tree-shaped blood relationship map is used for tracing various energy digital objects. According to the invention, the problem of low energy management caused by the non-transparent energy circulation path can be solved, the relationship between the energy digital objects can be effectively managed, and the credibility, compliance and evaluation accuracy of the energy digital object information can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data traceability technology, and in particular to an energy digital object traceability method and device. Background Art

[0002] In the early days, energy management mainly relied on manual operation and management. However, with the increase in energy demand, the complexity of managing energy is also growing, and the prototype of energy management system has begun to emerge. In the 21st century, the development of information technology has promoted the comprehensive digitalization of energy management. Energy digital objects are embedded with detailed information such as energy production, supply, and consumption, which can realize the whole process tracking and management of energy flow. However, with the increase in energy flow bodies, anomaly detection and traceability problems began to emerge. It is mainly reflected in the opacity of energy flow paths, such as energy supply from unknown sources, which seriously affects the efficiency and safety of energy management.

[0003] Since traditional databases and storage servers have security risks and are unavoidable, achieving the traceability of dynamic data is the key to ensuring the safe application of dynamic data in the Internet of Things. Su Jianhui and others introduced a monitoring recording function system based on information technology, which standardized and digitized the content of monitoring records, and played an important role in promoting the development of supervision work and improving the efficiency of supervision work. In the power supervision industry, the data management of power projects has always been a shortcoming in the establishment process. Although some units in the power industry currently compile and use data management software, they are not universal and have poor traceability. Summary of the invention

[0004] The present application provides an energy digital object tracing method and device to solve the problem of low energy management efficiency caused by the opacity of energy flow paths in the prior art.

[0005] In a first aspect, the present application provides an energy digital object traceability method, comprising:

[0006] Acquire various energy digital objects, including energy equipment data, energy production data, energy consumption data, energy quality data, and energy market data;

[0007] Extract key elements of various energy digital objects and construct a key element feature set, wherein the key element features include energy type, origin, production date, supplier and price;

[0008] Based on blood relationship analysis, establish corresponding blood relationship for various energy digital objects and corresponding key elements;

[0009] According to each blood relationship, a tree-like blood relationship map of energy digital objects is constructed, and the tree-like blood relationship map is used to trace the source of various energy digital objects.

[0010] In a second aspect, the present application provides an energy digital object tracing device, comprising:

[0011] A data acquisition module, used to acquire various energy digital objects, including energy equipment data, energy production data, energy consumption data, energy quality data and energy market data;

[0012] An element extraction module is used to extract key elements of various energy digital objects and construct a key element feature set, wherein the key element features include energy type, origin, production date, supplier and price;

[0013] The relationship building module is used to establish corresponding blood relationships for various energy digital objects and corresponding key elements based on blood relationship analysis;

[0014] The graph construction module is used to construct a tree-like lineage graph of energy digital objects according to each lineage relationship, and the tree-like lineage graph is used to trace the source of various energy digital objects.

[0015] The present application provides a method and device for tracing the source of energy digital objects, which obtain various types of energy digital objects, including energy equipment data, energy production data, energy consumption data, energy quality data and energy market data; extract key elements of various types of energy digital objects, and construct a key element feature set, and the key element features include energy type, origin, production date, supplier and price; based on lineage analysis, establish corresponding lineage relationships for various types of energy digital objects and corresponding key elements; according to each lineage relationship, construct a tree-like lineage map of energy digital objects, and the tree-like lineage map is used to trace the source of various types of energy digital objects. The present application determines the corresponding lineage relationship through energy digital objects and their key factors, and draws a tree-like lineage map according to the lineage relationship, so as to achieve the traceability of various types of energy digital objects, solve the problem of poor energy management caused by the opacity of energy circulation paths, and can not only effectively manage the relationship between energy digital objects, but also trace the source and evolution process of energy digital objects, thereby improving the credibility and compliance of energy digital object information, as well as the accuracy of evaluation. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0017] Figure 1It is a flowchart for implementing the energy digital object traceability method provided in the embodiment of the present application;

[0018] Figure 2 It is a schematic diagram of the PROV core structure provided in the embodiment of the present application;

[0019] Figure 3 It is a structural schematic diagram of the energy digital object traceability device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0021] In order to make the purpose, technical solutions and advantages of the present application clearer, specific embodiments will be described below in conjunction with the accompanying drawings.

[0022] Figure 1 The implementation flow chart of the energy digital object traceability method provided in the embodiment of the present application is detailed as follows:

[0023] In step 101, various energy digital objects are obtained, and the energy digital objects include energy equipment data, energy production data, energy consumption data, energy quality data and energy market data.

[0024] In the embodiment of the present application, various energy digital object data are collected, and the energy digital object data includes energy equipment data, energy production data, energy consumption data, energy quality data and energy market data. Among them, the data includes the original data, processing data, derived data, etc. of various energy digital objects.

[0025] In a possible implementation, after step 101, the method may further include:

[0026] Clean, convert and integrate various energy digital objects to obtain pre-processed energy digital objects.

[0027] Optionally, after collecting various types of energy digital object data, it is necessary to pre-process the various types of energy digital object data to ensure data quality and consistency, which requires a pre-processing process of cleaning, converting and integrating various types of energy digital objects.

[0028] In one possible implementation, the present application can also identify the attribute information of the corresponding array entity for each type of preprocessed energy digital object data, including the organization or individual to which it belongs and the creation time, so as to better distinguish various types of energy digital objects and facilitate the subsequent extraction of key elements.

[0029] In a possible implementation, after step 101, the method may further include:

[0030] Based on the hash algorithm, the summary information of various energy digital objects is calculated to generate hash values ​​of various energy digital objects;

[0031] Based on asymmetric cryptographic algorithms, digital signatures are performed on hash values ​​of various energy digital objects;

[0032] Accordingly, step 102 may include:

[0033] Decrypt all types of digital energy objects after digital signature;

[0034] Extract the key elements of various energy objects after decryption.

[0035] Optionally, in order to ensure that the ownership of energy digital objects is complete, traceable, and tamper-proof during multi-party circulation, the embodiment itself adopts hash algorithm and asymmetric cryptographic algorithm to implement online ownership confirmation and trusted identification technology of energy digital objects.

[0036] This application uses a highly secure and widely used hash algorithm, such as SHA-256, to perform summary calculations on the data of various energy digital objects and generate unique fixed-length hash values ​​corresponding to various energy digital objects to ensure the integrity and uniqueness of the data. This application optimizes the data as follows:

[0037] Energy digital object rights confirmation optimization: In order to implement digital signatures, this application introduces asymmetric cryptographic algorithms, such as RSA or DSA. The data party uses its private key to digitally sign the hash summary information to ensure the source and integrity of the data. The recipient can use the provider's public key to verify the digital signature to confirm that the data has not been tampered with and comes from a legitimate source. And after decrypting various types of digitally signed energy digital objects, the key elements of the corresponding energy digital objects can be extracted.

[0038] Metadata description optimization: Metadata, also known as intermediary data or relay data, is data that describes data, mainly information that describes data attributes, and is used to support functions such as indicating storage location, historical data, resource search, and file records. In addition to extracting core metadata, this application can also add data timestamp information to the metadata description information to record the generation and update time of the data, further increasing the credibility and traceability of the data.

[0039] Metadata description information can also include relevant information of the data provider, such as organization name, contact information, etc., so that the source and provider of the data can be traced during the data flow process.

[0040] Energy Digital Object Certificate Optimization: To ensure uniqueness and prevent conflicts, this application uses a more complex certificate record number generation algorithm, such as a Universally Unique Identifier (UUID), to ensure that each certificate record number is a unique identifier.

[0041] In addition to using a hash algorithm to generate summary information, the embodiment of the present application can also be combined with salting technology to increase the randomness of the hash value and enhance the security of the data.

[0042] Energy digital object provider signature optimization: This application strictly manages the provider's private key and uses hardware security module (HSM) or layered encryption technology to ensure the security of the private key and prevent the private key from being leaked. You can also choose the appropriate signature algorithm and key length according to actual security requirements to ensure the strength and security of the signature.

[0043] The embodiment of the present application adopts hash algorithm and asymmetric encryption algorithm to perform performance testing and optimization, ensuring that real-time and efficiency requirements can be met in large-scale data processing; combined with data encryption technology, energy digital objects are end-to-end encrypted to ensure the security of data during transmission and storage.

[0044] Based on the above optimization, the embodiments of the present application can further improve the security, reliability and efficiency of online rights confirmation and trusted identification technology of energy digital objects, thereby ensuring that the data ownership of energy digital objects is complete, traceable and cannot be tampered with during the multi-party circulation process.

[0045] In a possible implementation, after step 101, the method may further include:

[0046] For any energy digital object, perform the following steps:

[0047] Obtaining target information of the energy digital object, and extracting a target triplet from the target information of the energy digital object, wherein the target triplet includes an energy digital object target head entity, an energy digital object target relationship, and an energy digital object tail entity, and the target information includes data, attributes, and relationships between data of the energy digital object;

[0048] Use n relations in the preset blood relationship map to replace the target relations in the target triples respectively, and obtain n replacement triples, where the replacement triples include the head entity, the relation and the tail entity, and n is a positive integer;

[0049] Input each replacement triple into the vector representation model respectively, output the corresponding replacement triple vector, and calculate the Manhattan distance of the corresponding replacement triple based on each replacement triple vector respectively, where the replacement triple vector includes a head entity vector, a relation vector and a tail entity vector;

[0050] Input the target triples into the vector representation model respectively, output the target triple vector, and calculate the Manhattan distance of the target triple based on the target triple vector. The target triple vector includes the target head entity vector, the target relationship vector and the target tail entity vector.

[0051] Sort the Manhattan distance of the target triplet and the Manhattan distance of each replacement triplet by size to get the first sorting;

[0052] Calculate the credibility score of the target triple based on all Manhattan distances and the first sorting results;

[0053] Determine whether the credibility score is not less than the preset credibility;

[0054] If the credibility score is less than the preset credibility, the energy digital object is deleted.

[0055] Among them, this application can also realize the traceability management of energy digital objects throughout their life cycle through the design of smart contracts. First, according to the requirements of the core elements of trusted management of energy digital objects, the smart contract demand analysis is carried out, and then the analysis and design of the smart contract are completed.

[0056] Smart contract requirements include: 1. Permission verification: Smart contracts need to implement permission verification for different user roles (reading users, reviewing users, and supervisor identification centers) to ensure that only users with legitimate permissions can perform key operations; 2. Energy digital object certificate generation and storage: Smart contracts must be able to securely generate and store certificates for energy digital objects, including information such as identification, content authentication, and user identity authentication; 3. Digital object rights protection: Smart contracts need to verify the authenticity of energy digital object information, including authentication of electronic data information content and authentication of user identities, and save relevant verification records; 4. Digital object supervision / identification: Smart contracts must be able to collect and save supervision logs, record all sensitive operations of the system and the persons who issued the operations, and ensure the integrity and security of supervision information.

[0057] Smart contract analysis and design: 1. Permission verification contract design: The design includes user permission authorization and status management functions, and performs permission verification according to user roles to ensure that users can only execute functions for which they have permissions; 2. Energy digital object generation and storage contract: The design includes certificate generation and storage functions to ensure the safe generation and storage of energy digital object certificates, including the generation of certificate record numbers and the verification and registration of digital signatures; 3. Rights protection contract design: The design includes functions for maintaining the rights and status information of energy digital objects, including querying digital object summary information, uploading query results, updating the status of energy digital objects, and recording and storing user operation information; 4. Supervision / identification contract design: The design includes supervision and identification functions in the energy digital object process, recording user behavior information, including the writing and indexing of log information.

[0058] This application can design a smart contract for traceability data management based on the PROV data model. Based on the PROV data model, the smart contract can combine the relationship between entities, activities and agents to manage the traceability data of the entire life cycle of energy digital objects. Among them, the entity is the energy digital object itself, the contract needs to record the status and attribute information of the energy digital object, the activity is the generation, storage, protection, supervision and other operations of the energy digital object, and the activity is recorded in the contract, the agent is the user role (reading user, viewing user, supervisor identification center), and the agent is recorded in the contract for permission verification and user behavior tracking.

[0059] In the embodiment of the present application, the contract can associate each operation and user role with the corresponding entity and activity based on the idea of ​​the PROV data model, ensuring that the entire life cycle of the energy digital object can be tracked and recorded. Through this smart contract design, the complete traceability management of the energy digital object can be achieved, ensuring the security, integrity and credibility of the data.

[0060] based on Figure 2 PROV core structure, the traceability object to be described in this application is called entity, the activity is the operation performed on the entity within a period of time (such as copying and modifying data, etc.), and the agent is defined as the creator or editor of the data.

[0061] The representation of traceability information is mainly reflected through traceability metadata. The traceability data model is represented as a tuple, which describes the object to be traced, the operation performed on the traceability object, and the user (creator / editor) information. That is, the traceability record can be represented as (data entity, operation performed on the data, user name).

[0062] The logic of writing and reading the traceability metadata on the lineage chain, including information such as the granted permissions, is coded and implemented through smart contracts by all parties involved in data traceability. The contracts are compiled and deployed, and data storage and query are achieved through conditional triggering of predetermined rules and automatic execution of contracts.

[0063] The construction and execution of smart contracts can be divided into the following three steps:

[0064] (1) All parties involved agree on a smart contract;

[0065] (2) Deploy the compiled smart contract to the blockchain and obtain the contract address and ABI (JSON representation of the contract interface);

[0066] (3) Calling a contract: When a contract is triggered, it can automatically execute the contract content according to pre-set conditions, and the execution of the contract is recorded on the data chain.

[0067] Combined with the energy digital object circulation relationship, the multimodal fine-grained entity extraction and representation technology is used to build the circulation chain. Entity extraction is the basis for the construction of the circulation chain system. The original energy digital object data has multimodal and coarse-grained characteristics.

[0068] On the one hand, the original data contains multiple types of data such as text, images, audio, video, etc. On the other hand, the knowledge granularity of the original data is relatively coarse, and only partial content in a long document or audio or video data can be used as a specific and targeted data link. The details are as follows:

[0069] First, metadata modeling technology for multimodal entities. Based on the preprocessing of multimodal original data, including textualization, pictorialization, and fragmentation, combined with the characteristics of digital object elements, a multimodal entity metadata model is constructed, and textual and pictorial data are uniformly represented from the dimensions of concepts, attributes, and relationships to facilitate entity mining.

[0070] Second, intelligent extraction technology of fine-grained entities. Through manually defined extraction rules, fine-grained entities are manually annotated to construct the original training data set, and the manual annotation results are further integrated with machine learning algorithms (such as conditional random fields, etc.) or deep learning algorithms (such as long short-term memory networks, etc.) to automatically identify and extract entities.

[0071] Third, noise filtering technology for multimodal entities. The data value attributes required by the pilot scenario of the circulation chain are based on the uniqueness of entities. In order to improve the accuracy of entity extraction and ensure the uniqueness of entities, clustering algorithms (such as k-means algorithm, etc.) are used based on the preliminary results of entity extraction to merge valid entities with the same semantics and filter out noise entities with low semantic relevance.

[0072] The relationship between entities is the core of the construction of the circulation chain system. In the multi-party circulation scenario, the relationship between entities not only includes the objective attribute relationship of time, place, people, events, etc., but also includes the logical relationship of reasoning, production and consumption, planning and policy, finance, etc.

[0073] Optionally, after obtaining various energy digital objects, this application also needs to perform the following operations:

[0074] For any energy digital object, the target information of the energy digital object is obtained, wherein the target information includes the data, attributes and relationships between individual data of the energy digital object. And the target triple is extracted from the target information of the energy digital object, wherein the target triple includes the target head entity of the energy digital object, the target relationship of the energy digital object and the target tail entity of the energy digital object. Then, the target relationship in the target triple is replaced by n relationships in a preset lineage map (preset generated lineage map) to obtain n replacement triples, wherein n is a positive integer. Each replacement triple is input into a pre-trained vector representation model, and the corresponding replacement triple vector is output. Based on each replacement triple vector, the Manhattan distance of the corresponding replacement triple is calculated, wherein the replacement triple vector includes a head entity vector, a relationship vector and a tail entity vector. And the target triple is input into the vector representation model, and the target triple vector is output. Based on the target triple vector, the Manhattan distance of the target triple is calculated, wherein the target triple vector includes a target head entity vector, a target relationship vector and a target tail entity vector. According to all Manhattan distances, all replacement triples and target triples are sorted in order of size to obtain a first sort. And according to the result of the first sort and all Manhattan distances, the credibility score of the target triple is calculated. It is judged whether the credibility score is not less than the preset credibility. If the credibility score is less than the preset credibility, the energy digital object is deleted. Thereby, the reliability of the data of the acquired energy digital object is improved.

[0075] Among them, the construction process of the vector representation model is as follows:

[0076] 1) Obtain energy digital object sample triples;

[0077] 2) Initialize each sample head entity, sample relationship and sample tail entity in the energy digital object sample triple, and obtain the head entity vector, relationship vector and tail entity vector of each sample triple;

[0078] 3) Randomly replace the sample head entity, sample relationship and sample tail entity in each energy digital object sample triple to obtain a damaged triple, where the sample head entity, sample relationship and sample tail entity before and after the replacement have the same attribute labels;

[0079] 4) Determine whether each damaged triplet overlaps with the sample triplet. If so, delete the damaged triplet that overlaps. If not, replace the sample triplet with the damaged triplet that does not overlap, and input the sample triplet and the damaged triplet that replaces the sample triplet into the preset loss function to calculate the loss value.

[0080] 5) Determine the current learning rate according to the fluctuation range of the loss value, and use the current learning rate as the weight. Based on the stochastic gradient descent method, fit and adjust the head entity vector, relationship vector and tail entity vector of the sample triplet to obtain the vector representation model.

[0081] The default loss function is:

[0082]

[0083] Among them, L is the loss value, T batch is the set of energy digital object sample triples and damaged triples, γ is the preset parameter, h is the sample head entity vector, r is the sample relationship vector, t is the sample tail entity vector, h′ is the head entity vector in the damaged triple, r′ is the relationship vector in the damaged triple, t′ is the tail entity vector in the damaged triple, d(·) represents the Manhattan distance, [·] + Indicates positive value operation.

[0084] In a possible implementation, calculating the credibility score of the target triplet according to all Manhattan distances and the results of the first sorting may include:

[0085] The credibility score of the target triple is calculated by the first formula, which is:

[0086]

[0087] Among them, C r Score the credibility of the target triplet, Rank r is the sorting number of the target triple, Rank max is the maximum sorting number in the first sorting, D min is the minimum Manhattan distance, D r is the Manhattan distance of the target triplet.

[0088] The embodiment of the present application calculates the credibility score through Manhattan distance and sorting results, which can be applied to the company's internal and external interface environment and improve the ability of authenticity compliance assessment of energy digital object information.

[0089] In step 102, key elements of various energy digital objects are extracted to construct a key element feature set, where the key element features include energy type, origin, production date, supplier and price.

[0090] The embodiment of the present application extracts features from the data of various energy digital objects obtained, and determines key elements according to the needs of energy business, such as energy type, origin, production date, supplier and price, etc. These key elements can also be used as entities to construct key element feature combinations of energy digital objects to provide support for subsequent energy digital object traceability.

[0091] In step 103, based on the lineage analysis, corresponding lineage relationships are established for various energy digital objects and corresponding key elements.

[0092] In the embodiment of the present application, based on the acquired data of various energy digital objects and the key elements of the corresponding energy digital objects, the blood relationship of the corresponding energy digital objects is established.

[0093] In a possible implementation, after step 103, the method may further include:

[0094] According to the blood relationship between various energy digital objects and corresponding key elements, a directed graph is used to obtain the data blood relationship link of each blood relationship. Each data blood relationship link includes multiple nodes and multiple edges. Each node is an energy digital object or a key element, and each edge is a transformation or processing process between two adjacent nodes.

[0095] Accordingly, step 104 may include:

[0096] Based on each data lineage link, a tree-like lineage map of energy digital objects is constructed.

[0097] Optionally, the present application uses a directed graph to represent the data lineage link, that is, according to the lineage relationship between various types of energy digital objects and the key factors of the corresponding energy digital objects, a directed graph is used to depict the data lineage link of each lineage relationship, wherein each data lineage link includes multiple nodes and multiple edges, each node represents an energy digital object or key factor, and each edge represents the transformation or processing process between data. And according to each data lineage link, a tree-like lineage map of energy digital objects is constructed.

[0098] In order to ensure the multi-source nature of data lineage, one data entity can be transformed from multiple data entities, and the processing process can also be multiple.

[0099] In the embodiment of the present application, in view of the large scale of data, it is also possible to consider using distributed computing and storage technology to improve the efficiency and performance of data processing. In addition, machine learning and data mining technology can be introduced to automatically analyze and mine data lineage, and assist in generating lineage relations and key element features.

[0100] In step 104, a tree-like lineage map of energy digital objects is constructed according to each lineage relationship. The tree-like lineage map is used to trace the source of various energy digital objects.

[0101] In an embodiment of the present application, a corresponding data lineage link is depicted according to each lineage relationship, and based on each data lineage link, a tree-like lineage map of energy digital objects is constructed to trace the source of various types of energy digital objects.

[0102] In a possible implementation, step 104 may include:

[0103] Based on fine-grained multimodal evidence entity extraction and representation technology, the granularity of each data lineage link is refined to generate data table links or field lineages for various energy digital objects;

[0104] Utilize the data table links or field lineages of various energy digital objects to construct a tree-like lineage map of energy digital objects.

[0105] Optionally, by using the fine-grained multimodal evidence entity extraction and representation technology, the granularity of each data lineage link can be refined to generate data table links or field lineages of various energy digital objects, which can reflect the hierarchical relationship between data. Then, using the data table links or field lineages of various energy digital objects, a tree-like lineage map of energy digital objects is constructed.

[0106] The embodiment of the present application uses a tree-like lineage map to achieve the traceability of energy digital object information and track the origin and evolution of data entities. Based on lineage information and key element characteristics, a credibility assessment mechanism for energy digital object information is constructed to improve the credibility and compliance of the assessment data.

[0107] The present application provides a method for tracing the source of energy digital objects, which obtains various types of energy digital objects, including energy equipment data, energy production data, energy consumption data, energy quality data and energy market data; extracts key elements of various types of energy digital objects, and constructs a set of key element features, and the key element features include energy type, origin, production date, supplier and price; based on lineage analysis, establishes corresponding lineage relationships for various types of energy digital objects and corresponding key elements; and constructs a tree-like lineage map of energy digital objects according to each lineage relationship, and the tree-like lineage map is used to trace the source of various types of energy digital objects. The present application determines the corresponding lineage relationship through energy digital objects and their key factors, and draws a tree-like lineage map according to the lineage relationship, so as to realize the traceability of various types of energy digital objects, solves the problem of poor energy management caused by the opacity of energy circulation paths, and can not only effectively manage the relationship between energy digital objects, but also trace the source and evolution process of energy digital objects, thereby improving the credibility and compliance of energy digital object information, as well as the accuracy of evaluation.

[0108] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0109] The following is an embodiment of the device of the present application. For details not described in detail, please refer to the corresponding method embodiment described above.

[0110] Figure 3 The schematic diagram of the structure of the energy digital object traceability device provided in the embodiment of the present application is shown. For the convenience of explanation, only the part related to the embodiment of the present application is shown, which is described in detail as follows:

[0111] like Figure 3 As shown, the energy digital object tracing device 3 includes:

[0112] The data acquisition module 31 is used to acquire various energy digital objects, including energy equipment data, energy production data, energy consumption data, energy quality data and energy market data;

[0113] An element extraction module 32 is used to extract key elements of various energy digital objects and construct a key element feature set, where the key element features include energy type, origin, production date, supplier and price;

[0114] A relationship establishment module 33 is used to establish corresponding blood relationships for various energy digital objects and corresponding key elements based on blood relationship analysis;

[0115] The graph construction module 34 is used to construct a tree-like bloodline graph of energy digital objects according to each bloodline relationship. The tree-like bloodline graph is used to trace the source of various energy digital objects.

[0116] The present application provides an energy digital object tracing device, which obtains various energy digital objects, including energy equipment data, energy production data, energy consumption data, energy quality data and energy market data; extracts key elements of various energy digital objects, and constructs a key element feature set, and the key element features include energy type, origin, production date, supplier and price; based on lineage analysis, establishes corresponding lineage relationships for various energy digital objects and corresponding key elements; according to each lineage relationship, constructs a tree-like lineage map of energy digital objects, and the tree-like lineage map is used to trace the source of various energy digital objects. The present application determines the corresponding lineage relationship through energy digital objects and their key factors, and draws a tree-like lineage map according to the lineage relationship, so as to achieve the traceability of various energy digital objects, solves the problem of poor energy management caused by the opacity of energy circulation paths, and can not only effectively manage the relationship between energy digital objects, but also trace the source and evolution process of energy digital objects, thereby improving the credibility and compliance of energy digital object information, as well as the accuracy of evaluation.

[0117] In a possible implementation, the device further includes:

[0118] An information calculation module, used to perform summary information calculation on various energy digital objects based on a hash algorithm to generate hash values ​​of various energy digital objects;

[0119] Digital signature module, used to digitally sign the hash values ​​of various energy digital objects based on asymmetric cryptographic algorithms;

[0120] Accordingly, the feature extraction module can be used to:

[0121] Decrypt all types of digital energy objects after digital signature;

[0122] Extract the key elements of various energy objects after decryption.

[0123] In a possible implementation, the device further includes a link building module, and the link building module may be used to:

[0124] According to the blood relationship between various energy digital objects and corresponding key elements, a directed graph is used to obtain the data blood relationship link of each blood relationship. Each data blood relationship link includes multiple nodes and multiple edges. Each node is an energy digital object or a key element, and each edge is a transformation or processing process between two adjacent nodes.

[0125] Accordingly, the graph building module can be used to:

[0126] Based on each data lineage link, a tree-like lineage diagram of energy digital objects is constructed.

[0127] In one possible implementation, the graph building module can be used to:

[0128] Based on fine-grained multimodal evidence entity extraction and representation technology, the granularity of each data lineage link is refined to generate data table links or field lineages for various energy digital objects;

[0129] Utilize the data table links or field lineages of various energy digital objects to construct a tree-like lineage map of energy digital objects.

[0130] In a possible implementation, the device further includes a credibility judgment module, which can be used to:

[0131] For any energy digital object, perform the following steps:

[0132] Obtaining target information of the energy digital object, and extracting a target triplet from the target information of the energy digital object, wherein the target triplet includes an energy digital object target head entity, an energy digital object target relationship, and an energy digital object tail entity, and the target information includes data, attributes, and relationships between data of the energy digital object;

[0133] Use n relations in the preset blood relationship map to replace the target relations in the target triples respectively, and obtain n replacement triples, where the replacement triples include the head entity, the relation and the tail entity, and n is a positive integer;

[0134] Input each replacement triple into the vector representation model respectively, output the corresponding replacement triple vector, and calculate the Manhattan distance of the corresponding replacement triple based on each replacement triple vector respectively, where the replacement triple vector includes a head entity vector, a relation vector and a tail entity vector;

[0135] Input the target triples into the vector representation model respectively, output the target triple vector, and calculate the Manhattan distance of the target triple based on the target triple vector. The target triple vector includes the target head entity vector, the target relationship vector and the target tail entity vector.

[0136] Sort the Manhattan distance of the target triplet and the Manhattan distance of each replacement triplet by size to get the first sorting;

[0137] Calculate the credibility score of the target triple based on all Manhattan distances and the first sorting results;

[0138] Determine whether the credibility score is not less than the preset credibility;

[0139] If the credibility score is less than the preset credibility, the energy digital object is deleted.

[0140] In a possible implementation, the credibility judgment module may also be used to:

[0141] The credibility score of the target triple is calculated by the first formula, which is:

[0142]

[0143] Among them, C r Score the credibility of the target triplet, Rank r is the sorting number of the target triple, Rank max is the maximum sorting number in the first sorting, D min is the minimum Manhattan distance, D r is the Manhattan distance of the target triplet.

[0144] In a possible implementation, the process of constructing the vector representation model is as follows:

[0145] Get energy digital object sample triplet;

[0146] Initialize each sample head entity, sample relationship and sample tail entity in the energy digital object sample triple, and obtain the head entity vector, relationship vector and tail entity vector of each sample triple;

[0147] Randomly replace the sample head entity, sample relationship and sample tail entity in each energy digital object sample triple to obtain a damaged triple, where the sample head entity, sample relationship and sample tail entity before and after the replacement have the same attribute label;

[0148] Determine whether each damaged triplet coincides with the sample triplet;

[0149] If there is a damaged triplet that overlaps with the sample triplet, the overlapping damaged triplet will be deleted;

[0150] If there is a damaged triplet that does not overlap with the sample triplet, the sample triplet is replaced with the damaged triplet that does not overlap, and the sample triplet and the damaged triplet that replaces the sample triplet are input into the preset loss function to calculate the loss value;

[0151] Determine the current learning rate based on the fluctuation range of the loss value;

[0152] Using the current learning rate as the weight, based on the stochastic gradient descent method, the head entity vector, relationship vector, and tail entity vector of the sample triple are fitted and adjusted to obtain a vector representation model;

[0153] Among them, the preset loss function is:

[0154]

[0155] Among them, L is the loss value, T batch is the set of energy digital object sample triples and damaged triples, γ is the preset parameter, h is the sample head entity vector, r is the sample relationship vector, t is the sample tail entity vector, and h ′ is the head entity vector in the damaged triplet, r ′ is the relation vector in the damaged triple, t ′ is the tail entity vector in the damaged triplet.

[0156] In a possible implementation, the device further includes a preprocessing module, which can be used to:

[0157] Clean, convert and integrate various energy digital objects to obtain various energy digital objects after preprocessing;

[0158] Accordingly, the feature extraction module can be used to:

[0159] Extract the key elements of various energy digital objects after preprocessing.

[0160] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0161] Those of ordinary skill in the art will appreciate that the templates, units, and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0162] If the module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the above-mentioned various energy digital object traceability method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal and software distribution medium.

[0163] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for tracing the provenance of energy digital objects, characterized in that: include: Acquire various energy digital objects, including energy equipment data, energy production data, energy consumption data, energy quality data, and energy market data; Extract key elements of various energy digital objects and construct a key element feature set, wherein the key element features include energy type, origin, production date, supplier and price; Based on blood relationship analysis, establish corresponding blood relationship for various energy digital objects and corresponding key elements; According to each blood relationship, a tree-like blood relationship map of energy digital objects is constructed, and the tree-like blood relationship map is used to trace the source of various energy digital objects.

2. The energy digital object tracing method according to claim 1 is characterized in that: After obtaining various types of energy digital objects, the method further includes: Based on the hash algorithm, the summary information of various energy digital objects is calculated to generate hash values ​​of various energy digital objects; Based on asymmetric cryptographic algorithms, digital signatures are performed on hash values ​​of various energy digital objects; Accordingly, the key elements of extracting various energy digital objects include: Decrypt all types of digital energy objects after digital signature; Extract the key elements of various energy objects after decryption.

3. The energy digital object tracing method according to claim 1 is characterized in that: After establishing corresponding blood relationship for various energy digital objects and corresponding key elements based on blood relationship analysis, the method further includes: According to the blood relationship between various energy digital objects and corresponding key elements, a directed graph is used to obtain the data blood relationship link of each blood relationship. Each data blood relationship link includes multiple nodes and multiple edges. Each node is an energy digital object or a key element, and each edge is a transformation or processing process between two adjacent nodes. Accordingly, the tree-like bloodline map of the energy digital object is constructed according to each bloodline relationship, including: Based on each data lineage link, a tree-like lineage map of energy digital objects is constructed.

4. The energy digital object tracing method according to claim 3 is characterized in that: The method of constructing a tree-like lineage map of energy digital objects according to each data lineage link includes: Based on fine-grained multimodal evidence entity extraction and representation technology, the granularity of each data lineage link is refined to generate data table links or field lineages for various energy digital objects; Utilize the data table links or field lineages of various energy digital objects to construct a tree-like lineage map of energy digital objects.

5. The energy digital object tracing method according to claim 1 is characterized in that: After obtaining various types of energy digital objects, the method further includes: For any energy digital object, perform the following steps: Obtaining target information of the energy digital object, and extracting a target triplet from the target information of the energy digital object, wherein the target triplet includes an energy digital object target header entity, an energy digital object target relationship, and an energy digital object tail entity, and the target information includes data, attributes, and relationships between data of the energy digital object; Use n relations in a preset blood relationship map to replace the target relations in the target triples respectively, to obtain n replacement triples, wherein the replacement triples include a head entity, a relation and a tail entity, and n is a positive integer; Input each replacement triple into the vector representation model respectively, output the corresponding replacement triple vector, and calculate the Manhattan distance of the corresponding replacement triple based on each replacement triple vector respectively, wherein the replacement triple vector includes a head entity vector, a relation vector and a tail entity vector; Inputting the target triples into the vector representation model respectively, outputting target triple vectors, and calculating the Manhattan distance of the target triples based on the target triple vectors, wherein the target triple vectors include a target head entity vector, a target relationship vector, and a target tail entity vector; The Manhattan distance of the target triplet and the Manhattan distance of each replacement triplet are sorted according to size to obtain a first sort; Calculating a credibility score of the target triplet according to all Manhattan distances and the results of the first sorting; Determining whether the credibility score is not less than a preset credibility; If the credibility score is less than the preset credibility, the energy digital object is deleted.

6. The energy digital object tracing method according to claim 5 is characterized in that: The step of calculating the credibility score of the target triplet according to all Manhattan distances and the results of the first sorting includes: The credibility score of the target triple is calculated by a first formula, where the first formula is: Among them, C r Score the credibility of the target triple, Rank r is the sorting sequence number of the target triple, Rank max is the maximum sorting number in the first sorting, D min is the minimum Manhattan distance, D r is the Manhattan distance of the target triplet.

7. The energy digital object tracing method according to claim 5 is characterized in that: The construction process of the vector representation model is as follows: Get energy digital object sample triplet; Initialize each sample head entity, sample relationship and sample tail entity in the energy digital object sample triple, and obtain the head entity vector, relationship vector and tail entity vector of each sample triple; Randomly replace the sample head entity, sample relationship and sample tail entity in each energy digital object sample triple to obtain a damaged triple, where the sample head entity, sample relationship and sample tail entity before and after the replacement have the same attribute label; Determine whether each damaged triplet coincides with the sample triplet; If there is a damaged triplet that overlaps with the sample triplet, the overlapping damaged triplet is deleted; If there is a damaged triplet that does not overlap with the sample triplet, the sample triplet is replaced with the damaged triplet that does not overlap, and the sample triplet and the damaged triplet that replaces the sample triplet are input into a preset loss function to calculate the loss value; Determine the current learning rate according to the fluctuation range of the loss value; Using the current learning rate as the weight, based on the stochastic gradient descent method, the head entity vector, the relationship vector, and the tail entity vector of the sample triple are fitted and adjusted to obtain a vector representation model; Wherein, the preset loss function is: Wherein, L is the loss value, T batch is the set of energy digital object sample triples and damaged triples, γ is a preset parameter, h is the sample head entity vector, r is the sample relationship vector, t is the sample tail entity vector, and h ′ is the head entity vector in the damaged triplet, r ′ is the relation vector in the damaged triple, t ′ is the tail entity vector in the damaged triplet.

8. The energy digital object tracing method according to claim 1 is characterized in that: After obtaining various types of energy digital objects, the method further includes: Clean, convert and integrate various energy digital objects to obtain various energy digital objects after preprocessing; Accordingly, the key elements of extracting various energy digital objects include: Extract the key elements of various energy digital objects after preprocessing.

9. An energy digital object tracing device, characterized in that: include: A data acquisition module, used to acquire various energy digital objects, including energy equipment data, energy production data, energy consumption data, energy quality data and energy market data; An element extraction module is used to extract key elements of various energy digital objects and construct a key element feature set, wherein the key element features include energy type, origin, production date, supplier and price; The relationship building module is used to establish corresponding blood relationships for various energy digital objects and corresponding key elements based on blood relationship analysis; The graph construction module is used to construct a tree-like lineage graph of energy digital objects according to each lineage relationship, and the tree-like lineage graph is used to trace the source of various energy digital objects.

10. The energy digital object tracing device according to claim 9, characterized in that: The device further comprises an evaluation module, wherein the evaluation module is configured to: For any energy digital object, perform the following steps: Obtaining target information of the energy digital object, and extracting a target triplet from the target information of the energy digital object, wherein the target triplet includes an energy digital object target header entity, an energy digital object target relationship, and an energy digital object tail entity, and the target information includes data, attributes, and relationships between data of the energy digital object; Use n relations in a preset blood relationship map to replace the target relations in the target triples respectively, to obtain n replacement triples, wherein the replacement triples include a head entity, a relation and a tail entity, and n is a positive integer; Input each replacement triple into the vector representation model respectively, output the corresponding replacement triple vector, and calculate the Manhattan distance of the corresponding replacement triple based on each replacement triple vector respectively, wherein the replacement triple vector includes a head entity vector, a relation vector and a tail entity vector; Inputting the target triples into the vector representation model respectively, outputting target triple vectors, and calculating the Manhattan distance of the target triples based on the target triple vectors, wherein the target triple vectors include a target head entity vector, a target relationship vector, and a target tail entity vector; The Manhattan distance of the target triplet and the Manhattan distance of each replacement triplet are sorted according to size to obtain a first sort; Calculating a credibility score of the target triplet according to all Manhattan distances and the results of the first sorting; Determining whether the credibility score is not less than a preset credibility; If the credibility score is less than the preset credibility, the energy digital object is deleted.

Citation Information

Cited By

  • Energy system data management method, device and equipment based on consanguinity analysis and storage medium

    CN119761615A

  • Energy System Data Management Method, Device, Equipment and Storage Medium Based on Blood Relationship Analysis

    CN119761615B