Multi-source data fusion method and device, computer equipment and storage medium

By extracting and deduplicating entities from power grid data sources, forming entity triples and constructing knowledge graphs, the challenge of multi-source data fusion in the power industry is solved, efficient integration and analysis of data is achieved, and operational efficiency and decision support are improved. .

CN118709142APending Publication Date: 2024-09-27南方电网能源发展研究院有限责任公司
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410958556.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The diversity and heterogeneity of multi-source data in the power industry have led to challenges in data management, analysis, and decision-making. Existing technologies are difficult to effectively perform data fusion, resulting in data redundancy and inconsistency issues.

Method used

By extracting and deduplicating entity key items from multiple power grid data sources, entity triples are formed, mapped to the same semantic space, and merged with similar semantic information. Finally, a power data knowledge graph is constructed to ensure the consistency and semantics of the data. understand.

Benefits of technology

It achieves efficient integration and analysis of data, reduces redundancy and inconsistency, improves the operational efficiency of the power industry, provides a comprehensive structured knowledge base, supports in-depth analysis and decision-making, and optimizes the decision-making process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709142A
    Figure CN118709142A
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to a multi-source data fusion method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: performing entity key item extraction and entity data deduplication on physical object data of a plurality of power grid data sources to obtain a data processing result; based on a metadata table in the data processing result, performing matching connection on entities of each power grid data source to obtain an entity triple; mapping the entity triples of the power grid data sources to the same semantic space, and combining similar semantic information in the semantic space to obtain fused data; and constructing a power data knowledge graph based on the fused data. By adopting the method, data fusion can be effectively carried out, and efficient data management in the power industry is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a multi-source data fusion method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] In the power industry, multi-source data fusion is a task with important applications and prospects. With the rapid development of the Internet, the Internet of Things, social media, and sensor technology, a large amount of data from different sources and in different formats has emerged in the power industry, including structured data (such as relational databases and spreadsheets), semi-structured data (such as web pages and log files), and unstructured data (such as text, images, and audio). The accumulation and widespread application of these multi-source data have brought new challenges and opportunities to data management, analysis, and decision-making in the power industry. Based on this, how to effectively fuse data and achieve efficient data management in the power industry has become an urgent problem to be solved. Summary of the invention

[0003] Based on this, it is necessary to provide a multi-source data fusion method, device, computer equipment, computer-readable storage medium and computer program product that can effectively perform data fusion and realize efficient data management in the power industry in response to the above technical problems.

[0004] In a first aspect, the present application provides a multi-source data fusion method, comprising:

[0005] Extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results;

[0006] Based on the metadata table in the data processing result, matching and connecting entities of each power grid data source to obtain entity triples;

[0007] Mapping entity triples of each power grid data source to the same semantic space, and merging similar semantic information in the semantic space to obtain fused data;

[0008] Based on the fused data, a power data knowledge graph is constructed.

[0009] In one embodiment, the entity triple includes an entity, an attribute, and a corresponding relationship between the entity and the attribute; extracting entity key items from physical object data of multiple power grid data sources includes:

[0010] The physical object data of multiple power grid data sources are subjected to entity recognition, attribute extraction processing, and extraction processing of the corresponding relationship between entities and attributes.

[0011] In one of the embodiments, matching and connecting entities of each power grid data source based on the metadata table in the data processing result to obtain entity triples includes:

[0012] Based on the matching connection method of entity business type, the matching connection method based on metadata table structure and the matching connection method based on metadata table data, the entities of each power grid data source are matched and connected to obtain entity triples.

[0013] In one embodiment, the performing entity recognition on the physical object data of multiple power grid data sources includes:

[0014] Obtain a sample data set of power grids with entity labels;

[0015] Using the power grid sample data set to train a preset neural network model to obtain an entity recognition model;

[0016] The power grid data of each power grid data source is input into the entity recognition model, and the entity recognition data is output.

[0017] In one embodiment, constructing a power data knowledge graph based on the fused data includes:

[0018] Determining sensitive data in the fused data, the sensitive data including user power usage data and user identity data;

[0019] Encrypting the sensitive data to obtain encrypted data;

[0020] The electric power knowledge graph is constructed based on the encrypted data and the fused data.

[0021] In one embodiment, deduplication of physical object data from multiple power grid data sources includes:

[0022] Obtaining the cosine similarity between any two entities in the power grid data source;

[0023] Any two entities whose cosine similarity is not greater than a set threshold are determined as duplicate entities, and the duplicate entities are removed.

[0024] In a second aspect, the present application also provides a multi-source data fusion device, comprising:

[0025] A processing module, used to extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results;

[0026] A matching connection module, used to match and connect entities of each power grid data source based on the metadata table in the data processing result to obtain entity triples;

[0027] A data fusion module is used to map entity triples of each power grid data source to the same semantic space, and merge similar semantic information in the semantic space to obtain fused data;

[0028] A graph construction module is used to construct a power data knowledge graph based on the fused data.

[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0030] Extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results;

[0031] Based on the metadata table in the data processing result, matching and connecting entities of each power grid data source to obtain entity triples;

[0032] Mapping entity triples of each power grid data source to the same semantic space, and merging similar semantic information in the semantic space to obtain fused data;

[0033] Based on the fused data, a power data knowledge graph is constructed.

[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0035] Extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results;

[0036] Based on the metadata table in the data processing result, matching and connecting entities of each power grid data source to obtain entity triples;

[0037] Mapping entity triples of each power grid data source to the same semantic space, and merging similar semantic information in the semantic space to obtain fused data;

[0038] Based on the fused data, a power data knowledge graph is constructed.

[0039] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0040] Extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results;

[0041] Based on the metadata table in the data processing result, matching and connecting entities of each power grid data source to obtain entity triples;

[0042] Mapping entity triples of each power grid data source to the same semantic space, and merging similar semantic information in the semantic space to obtain fused data;

[0043] Based on the fused data, a power data knowledge graph is constructed.

[0044] The above-mentioned multi-source data fusion method, device, computer equipment, computer-readable storage medium and computer program product can ensure data consistency and avoid information conflicts caused by different data sources by extracting and deduplicating entity key items from multiple power grid data sources. By matching entities connected to different data sources to form entity triples, information scattered in different data sources can be integrated to enhance data integration capabilities. Mapping entity triples from different data sources to the same semantic space and merging similar semantic information can improve the semantic understanding of data and make data easier to analyze and apply. Constructing a power data knowledge graph based on fused data can provide a comprehensive and structured knowledge base for the power industry, which is helpful for in-depth analysis and decision support. Through the knowledge graph, key information can be quickly obtained and analyzed, providing data support for the operation and management of the power industry and optimizing the decision-making process. The application of data fusion technology can reduce data redundancy and inconsistency, improve the efficiency of data processing, and thus improve the operational efficiency of the entire power industry. The constructed knowledge graph can serve as the basis for intelligent applications and support advanced applications such as predictive maintenance, fault diagnosis, and energy management. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 is an application environment diagram of a multi-source data fusion method in an embodiment;

[0047] Figure 2 A schematic diagram of a multi-source data fusion method according to an embodiment;

[0048] Figure 3 A schematic diagram of a flow chart of a multi-source data fusion method in another embodiment;

[0049] Figure 4 It is a flowchart of the multi-source data fusion method in the most detailed embodiment;

[0050] Figure 5 is a structural block diagram of a multi-source data fusion device in an embodiment;

[0051] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The multi-source data fusion method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 extracts entity key items and deduplicates entity data from the physical object data of multiple power grid data sources to obtain data processing results; based on the metadata table in the data processing results, the entities of each power grid data source are matched and connected to obtain entity triples; the entity triples of each power grid data source are mapped to the same semantic space, and similar semantic information in the semantic space is merged to obtain fused data; based on the fused data, a power data knowledge graph is constructed. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head mounted device may be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0054] In an exemplary embodiment, Figure 2 As shown in the figure, a multi-source data fusion method is provided, which is applied to Figure 1 The server in the example is used to illustrate, including the following steps S202 to S208. Among them:

[0055] Step S202 , extracting entity key items and deduplicating entity data from physical object data of multiple power grid data sources to obtain data processing results.

[0056] Specifically, entities refer to physical objects in power grid data, such as power stations, substations, transmission lines, transformers, etc. These physical objects are the basic building blocks of the power grid knowledge graph. Key attributes are identified for each entity, which can describe the characteristics and status of the entity, such as the voltage level of the substation, the length and capacity of the transmission line, and the model of the equipment.

[0057] Specifically, entity data deduplication involves removing duplicate records and inconsistencies in the data to ensure that the description of each entity is accurate and unique. Various algorithms and techniques, such as cluster analysis, fuzzy matching, and unique constraints, are used to identify and merge duplicate entity records. Entity information from different data sources is then integrated into a unified data model to form a consistent data view. Through deduplication and cleaning, the quality of the data is improved, laying a solid foundation for subsequent data analysis and knowledge extraction.

[0058] Step S204: Based on the metadata table in the data processing result, matching and connecting entities of each power grid data source to obtain entity triples.

[0059] Specifically, the metadata table is a data structure that describes the attributes, types, and relationships of entities in the data source. It provides a basic framework for data integration and analysis. In multiple power grid data sources, it is first necessary to identify the entities in each data source. These entities may be physical devices (such as transformers, transmission lines), geographical locations, organizational structures, etc. By comparing the entity attributes in different data sources, find the entity records representing the same physical object. Determine the logical relationship or physical connection between entities. For example, a substation may be connected to multiple transmission lines.

[0060] An entity triple usually consists of three parts: subject, predicate, and object. In power grid data, the subject may be a device, the predicate is a word that describes the device attributes or relationships, and the object may be another device or a specific value. Constructing triples: For example, if a substation (subject) is connected to another substation (object) through a transmission line (predicate), a triple can be formed (substation 1, through, transmission line, substation 2).

[0061] By matching connections, information scattered in different data sources is integrated into a unified view, which helps reduce data redundancy and inconsistency. Entity triples are the basic units for building knowledge graphs. Organizing these triples can form a networked knowledge structure that facilitates complex queries and analysis.

[0062] Step S206 , mapping the entity triples of each power grid data source to the same semantic space, and merging similar semantic information in the semantic space to obtain fused data.

[0063] Specifically, semantic space is an abstract concept that refers to a shared, standardized framework for representing and understanding the meaning of entities and their relationships. Entity triples (Subject-Predicate-Object) in different data sources are mapped into this unified semantic space to ensure that each entity and relationship has a clear and consistent representation. By defining unified naming conventions, attributes, and relationship types, entities and relationships in different data sources are converted into a standardized format.

[0064] In the same semantic space, there may be multiple entities or relationships that describe the same or similar concepts. Merging these similar semantic information can reduce redundancy and enhance data consistency. Since different data sources may use different terms or expressions to describe the same entity or relationship, the mapping and merging process needs to resolve these ambiguities and ensure semantic clarity. Fusion data is formed by integrating information from different data sources into a comprehensive and consistent data set. Fusion data can be used to build or enrich knowledge graphs, where each node represents an entity, the edge represents the relationship between entities, and the attributes of the nodes and edges provide additional descriptive information.

[0065] Step S208: constructing a power data knowledge graph based on the fused data.

[0066] Specifically, fused data is obtained by integrating and cleaning power grid data from different data sources, which eliminates redundancy and inconsistency between data and provides a unified data view. Knowledge graphs are usually composed of nodes (representing entities, such as substations, transmission lines, etc.) and edges (representing relationships between entities, such as connection, control, etc.). In the knowledge graph, each entity in the power system is represented as a node, and each node has its attributes, such as name, location, voltage level, etc. The relationship between entities is represented by edges, which can be unidirectional or bidirectional, and can have weights or attributes to further describe the characteristics of the relationship. The semantic information of the fused data is used to enrich the nodes and edges of the knowledge graph, so that the graph contains not only structured information but also rich semantic content. The knowledge graph can be visualized to help users intuitively understand the structure and dynamics of the power grid and the connection between different entities and concepts.

[0067] In the above multi-source data fusion method, by extracting and deduplicating entity key items from multiple power grid data sources, data consistency can be ensured and information conflicts caused by different data sources can be avoided. By matching entities connecting different data sources to form entity triples, information scattered in different data sources can be integrated to enhance data integration capabilities. Mapping entity triples from different data sources to the same semantic space and merging similar semantic information can improve the semantic understanding of data and make data easier to analyze and apply. Constructing a power data knowledge graph based on fused data can provide a comprehensive and structured knowledge base for the power industry, which is helpful for in-depth analysis and decision support. Through the knowledge graph, key information can be quickly obtained and analyzed, providing data support for the operation and management of the power industry and optimizing the decision-making process. The application of data fusion technology can reduce data redundancy and inconsistency, improve the efficiency of data processing, and thus improve the operational efficiency of the entire power industry. The constructed knowledge graph can serve as the basis for intelligent applications and support advanced applications such as predictive maintenance, fault diagnosis, and energy management.

[0068] In an exemplary embodiment, an entity triple includes an entity, an attribute, and a corresponding relationship between the entity and the attribute; extracting entity key items from physical object data of multiple power grid data sources includes:

[0069] The physical object data of multiple power grid data sources are subjected to entity recognition, attribute extraction processing, and extraction processing of the corresponding relationship between entities and attributes.

[0070] Specifically, entity recognition refers to determining the entities in the data that represent physical objects of the power grid, such as power stations, substations, transmission lines, transformers, etc. This step is to identify these objects with actual physical meaning by analyzing the data source.

[0071] Attribute extraction refers to extracting the attributes of each identified entity, which describe the characteristics of the entity, such as the voltage level of the substation, the length of the transmission line, the capacity of the transformer, etc. Attribute extraction is an important step in understanding the characteristics and status of the entity.

[0072] Correspondence extraction between entities and attributes refers to determining the correspondence between entities and their attributes. This includes not only the direct association of attribute values, but also the dependency or influence relationship between attributes. For example, the voltage level of a transmission line may determine the maximum power it can carry.

[0073] The formation of entity triples refers to the integration of entities, attributes and the relationships between them into triples. A triple usually includes: entity (Subject), relationship (Predicate), attribute value (Object). For example, ("Substation A", "Has", "220kV voltage level").

[0074] During the extraction process, the data needs to be cleaned to remove erroneous, duplicated or inconsistent information. At the same time, the data needs to be standardized to ensure that the same entities and attributes in different data sources have a unified representation method.

[0075] In this embodiment, the consistency of representation and understanding of information from different data sources is ensured through unified entity recognition and attribute extraction. By integrating information scattered in different data sources, a comprehensive and integrated data view is constructed to provide support for in-depth analysis and decision-making. Data cleaning and standardization improve data quality, reduce errors and inconsistencies, and enhance data reliability. Automated entity recognition and attribute extraction reduce the need for manual processing and improve the efficiency of data processing.

[0076] In an exemplary embodiment, based on the metadata table in the data processing result, matching and connecting entities of each power grid data source to obtain entity triples includes:

[0077] Based on the matching connection method of entity business type, the matching connection method based on metadata table structure and the matching connection method based on metadata table data, the entities of each power grid data source are matched and connected to obtain entity triples.

[0078] Specifically, the matching and connection method based on entity business type focuses on matching entities based on their business functions and types. For example, all entities of the "substation" type are connected, regardless of which data source they come from. Business types may include power stations, transmission lines, distribution equipment, etc., and their business roles and functions in the power grid are considered during matching.

[0079] Based on the matching connection method of metadata table structure, this method matches entities based on the structural features of metadata tables, such as the consistency of table names, column names or data models. If metadata tables of different data sources have similar or corresponding structures, these structural features can be used to identify and connect corresponding entities. The algorithms that can be used include: unsupervised learning algorithms (clustering algorithms, association rule mining algorithms) and similarity measurement algorithms. The algorithms that can be used include: cosine similarity, Jaccard similarity and Levenshtein distance.

[0080] A matching connection method based on metadata table data. This method matches entities by analyzing the specific data content in the metadata table, such as the entity name, attribute value or other descriptive information. By comparing the entity descriptions in different data sources, different data representations pointing to the same entity can be identified and matched and connected. The algorithms that can be used include: unsupervised learning algorithms (clustering algorithms, association rule mining algorithms) and similarity measurement algorithms.

[0081] You can also use a matching connection method based on business rules. In the power grid planning and construction domain, a large part of the metadata list is in the form of project tables, project details tables, investment project requirements, etc., most of which are associated by project id, applicant id, department id, etc. In the marketing domain, there are work order tables, work order details, operating transformer tables, etc. in the metadata list, which are associated based on work order numbers, transformer numbers, etc. These table associations are all associated and matched based on business rules. Common solutions: 1. The relationship between each metadata can be obtained based on the physical model in the metadata list. 2. New businesses can use the rules set by business personnel, and data analysts can trace the source tables, fields, and associations. 3. Historical businesses can extract source tables, fields, and associations based on table associations in the scripts that have been written.

[0082] Regardless of the matching and connection method used, the ultimate goal is to construct an entity triple, that is, to determine the relationship between the subject, predicate, and object. For example, if it is found through matching that two substations are connected through a transmission line, a triple (substation A, connection, substation B) can be constructed.

[0083] In this embodiment, through these matching connection methods, information from different power grid data sources can be effectively integrated to build an accurate, consistent and rich power grid knowledge graph to provide support for power grid monitoring, analysis, planning and decision-making.

[0084] In an exemplary embodiment, Figure 3 As shown, entity recognition is performed on physical object data from multiple power grid data sources, including:

[0085] Step S302, obtaining a power grid sample data set with entity labels;

[0086] Step S304, training a preset neural network model using a power grid sample data set to obtain an entity recognition model;

[0087] Step S306, inputting the power grid data of each power grid data source into the entity recognition model, and outputting the entity recognition data.

[0088] Specifically, the training and application process of the entity recognition model is as follows:

[0089] a. Data preparation: Prepare a set of power grid sample datasets with entity labels, which contain power grid text data and corresponding entity location and type labels.

[0090] b. Feature extraction: Convert the power grid text data into a feature representation that can be understood by the machine learning algorithm. For example, this includes processing the text data through word segmentation, part-of-speech tagging, and syntactic analysis to extract useful feature information, such as word vectors and contextual information.

[0091] c. Model selection and design: According to the requirements of the entity recognition task and the data situation, select the appropriate neural network model structure, such as recurrent neural network, long short-term memory network, converter, etc. At the same time, design the appropriate model structure, including the number of layers, number of hidden units, etc.

[0092] d. Construct training set and test set: Divide the data set into training set and test set for model training and evaluation. For example, 80% of the data is used for training and 20% of the data is used for testing.

[0093] e. Model training: Use the training set to train the entity recognition model. In each training iteration, the training data is input into the model, the loss function (such as cross entropy loss) is calculated, and the back propagation algorithm is used to update the parameters and weights of the model. For example, an optimization algorithm such as gradient descent can be used to minimize the loss function.

[0094] f. Model evaluation and tuning: During the training process, the model can be evaluated using the test set, and the accuracy, recall, F1 value and other indicators can be calculated to measure the performance of the model. Based on the evaluation results, the model's hyperparameters, network structure, etc. can be adjusted to obtain better entity recognition results.

[0095] g. Model application: After sufficient training and tuning, the entity recognition model can be used for new power grid data, identify the entities therein, and output the location and type information of the entities.

[0096] In this embodiment, an automated neural network model is used to achieve rapid and accurate identification of key physical objects in power grid data, improve data processing efficiency, and provide data support for power grid knowledge management and intelligent decision-making.

[0097] In an exemplary embodiment, based on the fused data, a power data knowledge graph is constructed, including:

[0098] Determine sensitive data in the fused data, including user electricity usage data and user identity data;

[0099] Encrypting sensitive data to obtain encrypted data;

[0100] Build an electricity knowledge graph based on encrypted data and fused data.

[0101] Specifically, sensitive data identification refers to identifying sensitive information in fused data, such as users' electricity usage data and identity data, which usually involve personal privacy or commercial secrets.

[0102] Data encryption refers to the encryption of identified sensitive data to ensure the security and confidentiality of the data. Encryption is the conversion of data from a readable format to a non-readable format that can only be decrypted by someone with the correct key.

[0103] Building a knowledge graph means using fused data (including encrypted sensitive data) to build a power knowledge graph on the basis of ensuring the security of sensitive data. This means that in the knowledge graph, sensitive data will exist in encrypted form and will not directly expose user privacy. Only authorized users or systems can access encrypted data and decrypt the data when necessary for specific operations or analysis. Even if sensitive data is encrypted, the knowledge graph can still use the metadata or other non-sensitive attributes of this data for multi-dimensional analysis and association.

[0104] In this embodiment, through this encryption method, the power data knowledge graph can make full use of data resources without leaking user privacy, provide support for the operation, maintenance and optimization of the power grid, and ensure the security and compliance of the data.

[0105] In an exemplary embodiment, performing entity data deduplication on physical object data of multiple power grid data sources includes:

[0106] Obtain the cosine similarity between any two entities in the power grid data source;

[0107] Any two entities whose cosine similarity is not greater than a set threshold are determined as duplicate entities, and the duplicate entities are removed.

[0108] Specifically, the cosine similarity between two entities in the power grid data is calculated. If the cosine similarity is less than or equal to the set threshold, the two entities are determined to be the same entity. For example, the name, type, attribute and other information of the entity are used to judge the degree of similarity. Assuming that there are two power grid data sources, the entity name in one data source is "Transformer 001", and the entity name in the other data source is "Transformer No. 001". The cosine similarity of the two entities is less than or equal to 2, then it is considered that the similarity between the two entities is very high, belonging to the same entity, and entity alignment can be performed. Optionally, the Hamming distance, edit distance and Jaccard similarity between entities can also be calculated to judge the similarity between entities.

[0109] In this embodiment, by calculating the cosine similarity of entity pairs in the power grid data and setting a threshold for similarity judgment, the technical solution can effectively identify and remove duplicate entities in the data, thereby improving the consistency and accuracy of the data. In addition, by comprehensively using cosine similarity and other similarity calculation methods (such as Hamming distance, edit distance, Jaccard similarity), the similarity between entities can be more comprehensively evaluated, the entity matching and data deduplication process can be optimized, and the foundation for building an accurate and efficient power data knowledge graph can be laid.

[0110] like Figure 4 As shown, the most detailed embodiment of the present application is:

[0111] (1) Knowledge aggregation: Integrate knowledge in technology, policy, operational experience, and data analysis to provide accurate forecasting, optimized operations, and decision-making support.

[0112] (2) Knowledge extraction: aims to transform unstructured text data into structured knowledge representation, involving the following main tasks:

[0113] 2.1) Entity Recognition: Named entity recognition technology is used to identify entities related to the power grid in the text, such as generators, substations, lines, etc. Entity recognition can be based on rules, pattern matching or machine learning.

[0114] 2.2) Relationship extraction: Through relationship extraction technology, the relationships between entities in the power grid are extracted from the text, such as connection relationships, dependency relationships, power supply relationships, etc. Among them, relationship extraction can be achieved using methods such as pattern matching, semantic role labeling, and dependency syntax analysis.

[0115] 2.3) Event extraction: Extract event information related to the operation status of the power grid from the text, such as fault events, power outage events, etc. Event extraction can be achieved through methods such as trigger word recognition and semantic role labeling.

[0116] 2.4) Attribute extraction: Extract attribute information of power grid entities, such as power, voltage, line capacity, etc. Attribute extraction can be performed through keyword matching, rule matching or machine learning-based methods.

[0117] 2.5) Text classification and clustering: By classifying and clustering the power grid text data, the text can be classified into different categories according to its subject, content or characteristics, thus facilitating the organization and management of power grid knowledge.

[0118] (3) Knowledge mapping: involves mapping entities, attributes, and relationships in data from different sources into a common knowledge graph to achieve association and consistency between cross-source data. In the knowledge mapping process, the following are involved:

[0119] 3.1) Entity alignment: The process of matching and aligning entities with the same semantics in different data sources. For example, by analyzing the attributes, context information, identifiers, etc. of the entities, similar or identical entities are matched and corresponding associations are established in the knowledge graph.

[0120] 3.2) Attribute mapping: Map attributes in different data sources to attributes in the knowledge graph. For example, by analyzing the semantics, type, value and other characteristics of the attributes, attributes with similar or identical meanings are mapped so that data from different sources can remain consistent in the knowledge graph.

[0121] 3.3) Relationship mapping: Map the relationships in different data sources to the relationships in the knowledge graph. For example, by analyzing the semantics, type, direction and other characteristics of the relationship, relationships with similar or identical meanings are mapped to build associations between cross-source data.

[0122] 3.4) Value alignment: The process of matching and aligning attribute values ​​in different data sources. For example, by analyzing the semantics, type, structure and other characteristics of attribute values, similar or identical attribute values ​​are matched and corresponding associations are established in the knowledge graph.

[0123] (4) Knowledge modeling: The process of converting knowledge and information in the real world into a form that can be understood and processed by computers. Knowledge modeling involves the following processes:

[0124] 4.1) Determine the domain and goal: Clarify the domain and goal to be modeled. For example, for knowledge modeling in the power grid domain, the goal can be to describe the attributes and relationships of power equipment, substations, lines, etc.

[0125] 4.2) Entity Modeling: Identify and define the entities that need to be modeled, which can be physical objects, concepts, events, etc. in the power grid. For example, generators, substations, loads, etc., define unique identifiers and related attributes for each entity.

[0126] 4.3) Relationship modeling: Define the relationship between entities, which can be a connection, dependency, hierarchy, etc. For example, the connection relationship between the generator and the substation, the dependency relationship between the substation and the line, etc., and define a unique identifier and related attributes for each relationship.

[0127] 4.4) Attribute modeling: Define attributes for entities and relationships to describe their characteristics and properties, such as the power output attribute of a generator, the capacity attribute of a line, etc.

[0128] 4.5) Build the graph: Based on the definitions of entities, relationships, and attributes, build the graph structure of the power knowledge graph, with each entity and relationship as a node in the graph and the connections between them as edges.

[0129] 4.6) Enriching the graph: Enrich the knowledge graph by adding more entities, relationships, and attributes. For example, this can be done through text mining, knowledge extraction, expert knowledge input, etc.

[0130] 4.7) Application and reasoning: Use knowledge graphs for application and reasoning. For example, graph algorithms, query languages, or reasoning engines can be used to query, infer, and analyze knowledge in knowledge graphs.

[0131] (5) Knowledge fusion and knowledge mining: Knowledge fusion refers to the integration and fusion of knowledge from different data sources to form a more comprehensive, consistent and accurate knowledge representation. In the process of knowledge fusion, the quality and usability of knowledge can be improved by eliminating conflicts and inconsistencies, filling knowledge gaps, and providing richer semantic relationships.

[0132] Among them, knowledge fusion includes entity recognition and linking, relationship extraction and alignment, conflict resolution, knowledge completion and reasoning, etc. Knowledge fusion can eliminate conflicts and inconsistencies between different knowledge sources, match and align similar entities and relationships, fill in knowledge gaps, perform logical reasoning and inference, etc., so as to achieve knowledge fusion.

[0133] In knowledge fusion, the first important link is entity recognition and disambiguation, which involves identifying entity references from text and determining the specific entities to which these references correspond, mainly including entity disambiguation and coreference resolution. The second important link is matching and associating based on the semantic relationship between entities, which is mainly achieved through semantic similarity calculation, text matching algorithm, graph matching algorithm and other technologies. Its goal is to link related entities in different data sources to form a more comprehensive knowledge representation.

[0134] (6) Knowledge storage: It is the process of storing and organizing knowledge in an appropriate form and structure. It involves converting knowledge from various sources (such as text, images, videos, sounds, etc.) into a storable and retrievable form so that it can be easily accessed and used when needed.

[0135] (7) Knowledge application: The process of applying stored knowledge to actual problem solving and decision support. By combining acquired and organized knowledge with specific situations and needs, knowledge application can provide targeted solutions and insights.

[0136] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0137] Based on the same inventive concept, the embodiment of the present application also provides a multi-source data fusion device for implementing the multi-source data fusion method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more multi-source data fusion device embodiments provided below can refer to the limitations of the multi-source data fusion method above, and will not be repeated here.

[0138] In an exemplary embodiment, Figure 5 As shown, a multi-source data fusion device is provided, comprising:

[0139] A processing module, used to extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results;

[0140] A matching connection module is used to match and connect entities of various power grid data sources based on the metadata table in the data processing result to obtain entity triples;

[0141] The data fusion module is used to map the entity triples of each power grid data source into the same semantic space and merge similar semantic information in the semantic space to obtain fused data;

[0142] The graph construction module is used to build a power data knowledge graph based on fused data.

[0143] In an exemplary embodiment, an entity triple includes an entity, an attribute, and a correspondence between the entity and the attribute; a processing module is used to perform entity recognition, attribute extraction processing, and extraction processing of the correspondence between the entity and the attribute on physical object data of multiple power grid data sources.

[0144] In an exemplary embodiment, the matching connection module is used to match and connect entities of each power grid data source based on a matching connection method based on entity business type, a matching connection method based on metadata table structure, and a matching connection method based on metadata table data to obtain entity triples.

[0145] In an exemplary embodiment, a processing module is used to obtain a power grid sample data set with entity labels; use the power grid sample data set to train a preset neural network model to obtain an entity recognition model; input the power grid data from each power grid data source into the entity recognition model, and output entity recognition data.

[0146] In an exemplary embodiment, a graph construction module is used to determine sensitive data in the fused data based on the fused data, where the sensitive data includes user electricity usage data and user identity data; encrypt the sensitive data to obtain encrypted data; and construct an electricity knowledge graph based on the encrypted data and the fused data.

[0147] In an exemplary embodiment, the processing module is used to obtain the cosine similarity between any two entities in the power grid data source; determine any two entities whose cosine similarity is not greater than a set threshold as duplicate entities, and remove the duplicate entities.

[0148] Each module in the above multi-source data fusion device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0149] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store physical object data of the power grid data source. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a multi-source data fusion method is implemented.

[0150] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0151] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0152] Extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results;

[0153] Based on the metadata table in the data processing results, the entities of each power grid data source are matched and connected to obtain entity triples;

[0154] Map the entity triples of each power grid data source to the same semantic space, and merge similar semantic information in the semantic space to obtain fused data;

[0155] Based on the fused data, a knowledge graph of power data is constructed.

[0156] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0157] The entity triplet includes an entity, an attribute and a corresponding relationship between the entity and the attribute; entity recognition, attribute extraction processing and extraction processing of the corresponding relationship between the entity and the attribute are performed on the physical object data of multiple power grid data sources.

[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0159] Based on the matching connection method of entity business type, the matching connection method based on metadata table structure and the matching connection method based on metadata table data, the entities of each power grid data source are matched and connected to obtain entity triples.

[0160] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0161] A power grid sample data set with entity labels is obtained; a preset neural network model is trained using the power grid sample data set to obtain an entity recognition model; power grid data from each power grid data source is input into the entity recognition model, and entity recognition data is output.

[0162] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0163] Based on the fused data, sensitive data in the fused data is determined, and the sensitive data includes user electricity usage data and user identity data; the sensitive data is encrypted to obtain encrypted data; based on the encrypted data and the fused data, an electric power knowledge graph is constructed.

[0164] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0165] Obtain the cosine similarity between any two entities in the power grid data source; determine any two entities whose cosine similarity is not greater than a set threshold as duplicate entities, and remove the duplicate entities.

[0166] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0167] Extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results;

[0168] Based on the metadata table in the data processing results, the entities of each power grid data source are matched and connected to obtain entity triples;

[0169] Map the entity triples of each power grid data source to the same semantic space, and merge similar semantic information in the semantic space to obtain fused data;

[0170] Based on the fused data, a knowledge graph of power data is constructed.

[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0172] The entity triplet includes an entity, an attribute and a corresponding relationship between the entity and the attribute; entity recognition, attribute extraction processing and extraction processing of the corresponding relationship between the entity and the attribute are performed on the physical object data of multiple power grid data sources.

[0173] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0174] Based on the matching connection method of entity business type, the matching connection method based on metadata table structure and the matching connection method based on metadata table data, the entities of each power grid data source are matched and connected to obtain entity triples.

[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0176] A power grid sample data set with entity labels is obtained; a preset neural network model is trained using the power grid sample data set to obtain an entity recognition model; power grid data from each power grid data source is input into the entity recognition model, and entity recognition data is output.

[0177] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0178] Based on the fused data, sensitive data in the fused data is determined, and the sensitive data includes user electricity usage data and user identity data; the sensitive data is encrypted to obtain encrypted data; based on the encrypted data and the fused data, an electric power knowledge graph is constructed.

[0179] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0180] Obtain the cosine similarity between any two entities in the power grid data source; determine any two entities whose cosine similarity is not greater than a set threshold as duplicate entities, and remove the duplicate entities.

[0181] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0182] Extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results;

[0183] Based on the metadata table in the data processing results, the entities of each power grid data source are matched and connected to obtain entity triples;

[0184] Map the entity triples of each power grid data source to the same semantic space, and merge similar semantic information in the semantic space to obtain fused data;

[0185] Based on the fused data, a knowledge graph of power data is constructed.

[0186] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0187] The entity triplet includes an entity, an attribute and a corresponding relationship between the entity and the attribute; entity recognition, attribute extraction processing and extraction processing of the corresponding relationship between the entity and the attribute are performed on the physical object data of multiple power grid data sources.

[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0189] Based on the matching connection method of entity business type, the matching connection method based on metadata table structure and the matching connection method based on metadata table data, the entities of each power grid data source are matched and connected to obtain entity triples.

[0190] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0191] A power grid sample data set with entity labels is obtained; a preset neural network model is trained using the power grid sample data set to obtain an entity recognition model; power grid data from each power grid data source is input into the entity recognition model, and entity recognition data is output.

[0192] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0193] Based on the fused data, sensitive data in the fused data is determined, and the sensitive data includes user electricity usage data and user identity data; the sensitive data is encrypted to obtain encrypted data; based on the encrypted data and the fused data, an electric power knowledge graph is constructed.

[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0195] Obtain the cosine similarity between any two entities in the power grid data source; determine any two entities whose cosine similarity is not greater than a set threshold as duplicate entities, and remove the duplicate entities.

[0196] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0197] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0198] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0199] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A multi-source data fusion method, characterized in that: The method comprises: Extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results; Based on the metadata table in the data processing result, matching and connecting entities of each power grid data source to obtain entity triples; Mapping entity triples of each power grid data source to the same semantic space, and merging similar semantic information in the semantic space to obtain fused data; Based on the fused data, a power data knowledge graph is constructed.

2. The method according to claim 1, characterized in that The entity triplet includes an entity, an attribute, and a corresponding relationship between the entity and the attribute; Extract entity key items from physical object data from multiple power grid data sources, including: The physical object data of multiple power grid data sources are subjected to entity recognition, attribute extraction processing, and extraction processing of the corresponding relationship between entities and attributes.

3. The method according to claim 1, characterized in that The matching and connecting entities of each power grid data source based on the metadata table in the data processing result to obtain entity triples includes: Based on the matching connection method of entity business type, the matching connection method based on metadata table structure and the matching connection method based on metadata table data, the entities of each power grid data source are matched and connected to obtain entity triples.

4. The method according to claim 2, characterized in that: The entity recognition of the physical object data of the multiple power grid data sources includes: Obtain a sample data set of power grids with entity labels; Using the power grid sample data set to train a preset neural network model to obtain an entity recognition model; The power grid data of each power grid data source is input into the entity recognition model, and the entity recognition data is output.

5. The method according to claim 1, characterized in that The step of constructing a power data knowledge graph based on the fused data includes: Determining sensitive data in the fused data, the sensitive data including user power usage data and user identity data; Encrypting the sensitive data to obtain encrypted data; The electric power knowledge graph is constructed based on the encrypted data and the fused data.

6. The method according to claim 1, characterized in that The step of performing entity data deduplication on the physical object data of multiple power grid data sources includes: Obtaining the cosine similarity between any two entities in the power grid data source; Any two entities whose cosine similarity is not greater than a set threshold are determined as duplicate entities, and the duplicate entities are removed.

7. A multi-source data fusion device, characterized in that: The device comprises: A processing module, used to extract entity key items and deduplicate entity data from physical object data of multiple power grid data sources to obtain data processing results; A matching connection module, used to match and connect entities of each power grid data source based on the metadata table in the data processing result to obtain entity triples; A data fusion module is used to map entity triples of each power grid data source to the same semantic space, and merge similar semantic information in the semantic space to obtain fused data; A graph construction module is used to construct a power data knowledge graph based on the fused data.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. 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 the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Data management method and device of power system and storage medium

    CN119622044A

  • Data fusion method and electronic equipment

    CN120744822A