Data entity automatic identification method for big data federated learning and AI mining
By calculating the field value weight and vector similarity, combined with the sub-graph division algorithm, the data entity is automatically identified, which solves the problems of inefficiency and subjectivity of manual matching, improves the accuracy and efficiency of data processing, and reduces data loss and error associations. risk.
Patent Information
- Application Number
- CN202411248761.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-11-29
AI Technical Summary
The prior art relies on manual matching and rule setting in data integration, resulting in inefficient identification of data entities and is susceptible to subjective judgments. Especially in heterologous databases, field names differences lead to data loss or erroneous association, which affects the accuracy of analysis results. .
The candidate entity is selected by calculating the weight of the field value, converted it into a data entity and computed the vector cosine similarity, and the sub-graph division algorithm is used to divide the data entity equivalence relationship diagram to realize automatic identification of the data entity.
It significantly improves the efficiency and accuracy of data processing, reduces the risk of data loss and error association, and enhances the quality of data fusion.
Smart Images

Figure CN119047471A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method for automatically identifying data entities for big data federated learning and AI mining. Background Art
[0002] With the booming development of information technology, data integration and analysis have become the key force to promote decision support and business insights. Although the importance of data analysis is becoming increasingly prominent, the diversity of data sources and the inconsistency of data formats have brought challenges to the effective integration of data. In particular, in heterogeneous databases or data tables, the field names of the same type of data often differ, a phenomenon known as "data entity synonyms". Data entity synonyms not only increase the difficulty of data merging, but also affect the implementation of advanced data applications such as federated learning.
[0003] Existing technologies rely on manual matching and rule setting to identify data entities, which is not only inefficient but also susceptible to subjective judgment. For example, when merging two databases, differences in field names may lead to data loss or incorrect association, affecting the accuracy of analysis results; in addition, there is a phenomenon that the same type of data information has multiple fields, which makes data joint application even less efficient. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method for automatic identification of data entities for big data federated learning and AI mining, which can effectively identify similar data fields in different databases.
[0005] The technical solution adopted by the present invention to solve the technical problem is: to provide a data entity automatic identification method for big data federated learning and AI mining, comprising the following steps:
[0006] Calculate the field value weight of each field value, and select candidate entities based on the field value weight to obtain a candidate entity set;
[0007] Convert the fields in the candidate entity set into data entities, and calculate the vector cosine similarity between every two data entities;
[0008] A data entity equivalence relationship graph is obtained according to the vector cosine similarity, and a subgraph partitioning algorithm is used to partition the data entity equivalence relationship graph to obtain a data entity equivalence relationship subgraph.
[0009] The field value weight of each field value is calculated, and candidate entities are selected based on the field value weight to obtain a candidate entity set, specifically:
[0010] Count the distribution information of the field values in the field value set, and calculate the field value weight of each field value based on the distribution information of the field value;
[0011] Build a fields collection containing each field value;
[0012] In each field set, any two fields are traversed, and candidate entities are selected according to the field value weights to obtain a candidate entity set.
[0013] The field value weight is obtained by calculating weight=tf×idf, where weight is the field value weight of field value t, and tf is the occurrence frequency of field value t, expressed as: w t represents the number of times the field value t appears in the field value set, W represents the total number of the field value set, and idf is the inverse document frequency, which is expressed as: N is the total number of all field value sets, and n is the number of field values t in all field value sets.
[0014] The candidate entities are selected according to the field value weights to obtain a candidate entity set, which is specifically:
[0015] Select the largest field value weight between the two fields;
[0016] The field value weight of each field in the two fields is respectively accumulated with the selected field value weight to obtain the accumulated field value weight of each field;
[0017] Fields whose accumulated field value weights exceed a threshold are selected, and the selected fields are used as candidate entities to obtain a candidate entity set.
[0018] The fields in the candidate entity set are converted into data entities, and the vector cosine similarity between every two data entities is calculated, specifically:
[0019] Convert each field in the candidate entity set into a numerical vector, wherein the data vector serves as a data entity of the field;
[0020] pass The vector cosine similarity between every two data vectors is calculated to obtain the vector cosine similarity between every two data entities, where Sim(E1, E2) represents the vector cosine similarity between data entity E1 and data entity E2.
[0021] The subgraph partitioning algorithm is used to partition the data entity equivalence relationship graph to obtain a data entity equivalence relationship subgraph, specifically:
[0022] Taking each node in the data entity equivalence relationship graph as the starting unit of the data entity equivalence relationship subgraph;
[0023] Traverse each node and try to divide the node into the data entity equivalence relationship subgraph where its neighboring nodes are located, calculate the modularity difference Q after division, and select the largest modularity difference Q;
[0024] If the maximum modularity difference Q is greater than 0 and satisfies the similarity constraint, the division method corresponding to the maximum modularity difference Q is used as the final division result. Otherwise, return to the previous step until the maximum modularity difference Q no longer increases.
[0025] When the similarity constraint is not satisfied, all edges of the equivalent relationship subgraph between the node and the data entity it incorporates are removed.
[0026] The data entity automatic identification method also includes: when the maximum modularity difference Q no longer increases, all nodes in the same data entity equivalence relationship subgraph are compressed into a new node, the weight of the edge in the data entity equivalence relationship subgraph is converted into the weight of the new node and itself, and the edge weight in the data entity equivalence relationship subgraph is converted into the edge weight between the new nodes.
[0027] The modularity difference Q is obtained by It is calculated, where ∑in represents the sum of the weights of the internal connecting edges of the divided data entity equivalence relationship subgraph G, Σout represents the sum of the weights of the connecting edges of the divided data entity equivalence relationship subgraph G and the external edges connected to it, and n′ is the number of nodes inside the divided data entity equivalence relationship subgraph G.
[0028] The technical solution adopted by the present invention to solve its technical problem is: providing a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned data entity automatic identification method are implemented.
[0029] Beneficial Effects
[0030] Due to the adoption of the above-mentioned technical scheme, the present invention has the following advantages and positive effects compared with the prior art: the present invention identifies data entities through vector similarity calculation and subgraph partitioning, realizes automatic identification of data entities by analyzing the characteristics of most data in the field, and significantly improves the efficiency and accuracy of data processing. The present invention overcomes the low efficiency and subjectivity of traditional methods that rely on manual matching, while enhancing the quality of data fusion and reducing the risk of data loss and erroneous association. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a flow chart of a method for automatic identification of data entities according to a first embodiment of the present invention;
[0032] Figure 2 It is a data entity equivalence relationship diagram in the first embodiment of the present invention. DETAILED DESCRIPTION
[0033] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.
[0034] The first embodiment of the present invention relates to a method for automatic identification of data entities for big data federated learning and AI mining, which can efficiently and accurately identify similar data entities from different data sources and in different data formats.
[0035] To facilitate the description of this embodiment, the following definitions are first made:
[0036] Field and field value: represents the data structure in the data source. The field can be represented as F = {t1, t2, ..., t n}, where t i Represents a field value.
[0037] Heterogeneous data: refers to data from different data sources. Heterogeneous data S can be represented as S = {S1, S2, ..., S n}, in fact, S i Represents a single independent data source. For any S i All meet S i ={F i1 , F i2 , F i3 , …, F in}.
[0038] Data entity: used to describe the data source S i A single field and its field value in F ii The feature object is an abstract concept. This feature object uses the data entity E i express.
[0039] Data entity similarity: represents the similarity between two data entities E1 and E2, which can be expressed as Sim(E1, E2)∈[0,1].
[0040] Equivalence relationship: If two data entities represent objects of the same type in the real world, then the two data entities are defined to have an equivalence relationship, that is, the two data entities are equivalent.
[0041] The goal of data entity recognition is to determine whether the data entities in two heterogeneous database tables have an equivalent relationship. If two data entities are identified as equivalent through data entity recognition technology, the field mapping between the data can be expressed as follows:
[0042] S i :F ia →S j :F jb
[0043] Among them, S i and S j Indicates the data source, which can refer to different data sources or the same data source. S:F indicates the field F in the data source S. F ia ∈S i ,F jb ∈S j , and F ia ≠F jb .
[0044] The data entity automatic identification method of this embodiment is as follows: Figure 1 As shown, the following steps are included:
[0045] Step 1: Calculate the field value weight of each field value, and select candidate entities based on the field value weight to obtain a candidate entity set. This step specifically includes:
[0046] (1) Counting the distribution information of the field values in the field value set, and calculating the field value weight of each field value based on the distribution information of the field value;
[0047] Before data entity recognition, it is assumed that the field value corresponding to each field contains the characteristic information of the field, which is an important premise of data entity recognition technology. In order to evaluate the importance of field values in the representation of data entity characteristics, this implementation introduces tf-idf information as a weight to measure the importance between field values. By counting the value distribution information in the field value set, the weight of each field value is calculated. The calculation method is as follows:
[0048] weight = tf × idf
[0049] Among them, weight is the field value weight of field value t, and tf is the frequency of occurrence of field value t, which is expressed as: w t represents the number of times the field value t appears in the field value set, W represents the total number of the field value set, and idf is the inverse document frequency, which is expressed as: N is the total number of all field value sets, and n is the number of field values t in all field value sets.
[0050] (2) Construct a field set containing each field value. Specifically, according to all the field values, for any field value t, construct a set of the form t→{IF1,IF2,...,IF n}. Where t represents the field value, {IF1,IF2,...,IF n} represents a collection of fields IF in the data source that contain the field value t.
[0051] (3) In each field set, traverse any two fields and select candidate entities according to the field value weight to obtain a candidate entity set. Specifically, select the largest field value weight of the two fields; add the field value weight of each field in the two fields with the selected field value weight to obtain the accumulated field value weight of each field; select the field whose accumulated field value weight exceeds the threshold, and use the selected field as a candidate entity to obtain a candidate entity set.
[0052] Step 2: Convert the fields in the candidate entity set into data entities, and calculate the vector cosine similarity between every two data entities.
[0053] The similarity calculation method of this embodiment can be based on neural network and WordEmbedding technology. Through neural network and WordEmbedding technology, the text data of the candidate entity set of the field is converted into a high-dimensional numerical vector, and the numerical vector is used as the data entity representation of the field. Suppose the data entity after the candidate entity set of field F1 is converted to E1 = {v 11 ,v 12 ,...,v 1n}, the candidate entity set of field F2 is converted into the data entity E2 = {v 21 ,v 22 ,...,v 2n}. The cosine similarity of two data entity vectors is calculated as follows:
[0054]
[0055] Among them, Sim(E1, E2) represents the vector cosine similarity between data entity E1 and data entity E2.
[0056] Step 3, obtaining a data entity equivalence relationship graph according to the vector cosine similarity, and using a subgraph partitioning algorithm to partition the data entity equivalence relationship graph to obtain a data entity equivalence relationship subgraph.
[0057] In actual applications, due to problems with data quality and algorithm robustness, the similarity calculation between two data entities only considers the local similarity, which leads to misjudgment of the equivalence relationship of some data entities and the existence of confused data entities in the data entity equivalence set. The accuracy is difficult to meet the requirements of actual application scenarios.
[0058] In view of the existence of such a problem, this implementation adopts a subgraph partitioning algorithm and adds global perspective considerations to further discover the true equivalent entity set and effectively improve the accuracy of data entity recognition.
[0059] Figure 2 The figure shows the data entity equivalence relationship diagram based on vector cosine similarity, where the solid line represents the correct equivalence relationship, the dotted line represents the incorrect equivalence relationship, and the numbers represent the weights of the edges between data entities (i.e., similarity). By analyzing the data entity equivalence relationship diagram, we can find that the data entities have the following characteristics:
[0060] (A) The internal connectivity between truly equivalent data entities is relatively strong, and the internal weights are also relatively large.
[0061] (B) Confused data entities often have fewer edge degrees in the relationship graph and relatively smaller edge weights.
[0062] In the data entity equivalence graph, the similarity between data entities varies. According to the structure of the graph, several subgraphs are divided. The nodes within the subgraphs are closely connected, while the connection between two subgraphs is relatively sparse. This implementation uses the modularity difference Q to measure the subgraph division effect, and its calculation method is:
[0063]
[0064] Among them, ∑in represents the sum of the weights of the internal connecting edges of the divided data entity equivalence relationship subgraph G, ∑out represents the sum of the weights of the connecting edges of the divided data entity equivalence relationship subgraph G and the external edges connected to it, and n′ is the number of nodes inside the divided data entity equivalence relationship subgraph G.
[0065] The goal of subgraph partitioning is to make the edges inside the data entity equivalence relationship subgraph after partitioning dense (high similarity), while the edges between the data entity equivalence relationship subgraphs are sparse (low similarity). The definition of the modularity difference Q can characterize the pros and cons of subgraph partitioning. The larger the modularity difference Q, the better the effect of subgraph partitioning. The specific steps of the subgraph partitioning algorithm in this implementation are as follows:
[0066] (1) Initializing, taking each node in the data entity equivalence relationship graph as the starting unit of the data entity equivalence relationship subgraph;
[0067] (2) Traverse each node and try to divide the node into the data entity equivalence relationship subgraph where its neighboring nodes are located, calculate the modularity difference Q after the division, and select the largest modularity difference Q.
[0068] (3) Determine whether the maximum modularity difference Q is greater than 0 and whether it satisfies the similarity constraint. If both conditions are met (i.e., the maximum modularity difference Q is greater than 0 and satisfies the similarity constraint), then accept the current division (i.e., take the division method corresponding to the maximum modularity difference Q as the final division result). If one of the two conditions is not met, then abandon the current division and repeat steps (2) and (3) until the maximum modularity difference Q cannot be increased. It is worth mentioning that if the similarity constraint is not met, then remove all edges of the equivalent relationship subgraph between the node and the data entity to be merged.
[0069] (4) All nodes in the same data entity equivalence relationship subgraph are compressed into a new node, the weight of the edge in the data entity equivalence relationship subgraph is converted into the weight of the new node and itself, and the edge weight in the data entity equivalence relationship subgraph is converted into the edge weight between the new nodes. Repeat the above steps (2) and (3) until the maximum modularity difference Q no longer increases.
[0070] It is not difficult to find that the present invention identifies data entities through vector similarity calculation and subgraph partitioning, realizes automatic identification of data entities by analyzing the characteristics of most data in the field, and significantly improves the efficiency and accuracy of data processing. The present invention overcomes the low efficiency and subjectivity of traditional methods that rely on manual matching, while enhancing the quality of data fusion and reducing the risk of data loss and erroneous association.
[0071] The second embodiment of the present invention relates to a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for automatic identification of data entities of the first embodiment are implemented.
[0072] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0073] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0074] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction method, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0075] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0076] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for automatic identification of data entities for big data federated learning and AI mining, characterized in that: The following steps are involved: Calculate the field value weight of each field value, and select candidate entities based on the field value weight to obtain a candidate entity set; convert the fields in the candidate entity set into data entities, and calculate the vector cosine similarity between every two data entities; A data entity equivalence relationship graph is obtained according to the vector cosine similarity, and a subgraph partitioning algorithm is used to partition the data entity equivalence relationship graph to obtain a data entity equivalence relationship subgraph.
2. The data entity automatic identification method for big data federated learning and AI mining according to claim 1 is characterized in that: The field value weight of each field value is calculated, and candidate entities are selected based on the field value weight to obtain a candidate entity set, specifically: Count the distribution information of the field values in the field value set, and calculate the field value weight of each field value based on the distribution information of the field value; Build a fields collection containing each field value; In each field set, any two fields are traversed, and candidate entities are selected according to the field value weights to obtain a candidate entity set.
3. The data entity automatic identification method for big data federated learning and AI mining according to claim 2 is characterized in that: The field value weight is obtained by calculating weight=tf×idf, where weight is the field value weight of field value t, and tf is the occurrence frequency of field value t, expressed as: w t represents the number of times the field value t appears in the field value set, W represents the total number of the field value set, and idf is the inverse document frequency, which is expressed as: N is the total number of all field value sets, and n is the number of field values t in all field value sets.
4. The method for automatic identification of data entities for big data federated learning and AI mining according to claim 2, characterized in that: The candidate entities are selected according to the field value weights to obtain a candidate entity set, which is specifically: Select the largest field value weight between the two fields; The field value weight of each field in the two fields is respectively accumulated with the selected field value weight to obtain the accumulated field value weight of each field; Fields whose accumulated field value weights exceed a threshold are selected, and the selected fields are used as candidate entities to obtain a candidate entity set.
5. The data entity automatic identification method for big data federated learning and AI mining according to claim 1 is characterized in that: The fields in the candidate entity set are converted into data entities, and the vector cosine similarity between every two data entities is calculated, specifically: Convert each field in the candidate entity set into a numerical vector, wherein the data vector serves as the data entity of the field; The vector cosine similarity between every two data vectors is calculated to obtain the vector cosine similarity between every two data entities, where Sim(E1, E2) represents the vector cosine similarity between data entity E1 and data entity E2.
6. The method for automatic identification of data entities for big data federated learning and AI mining according to claim 1, characterized in that: The subgraph partitioning algorithm is used to partition the data entity equivalence relationship graph to obtain a data entity equivalence relationship subgraph, specifically: Taking each node in the data entity equivalence relationship graph as the starting unit of the data entity equivalence relationship subgraph; Traverse each node and try to divide the node into the data entity equivalence relationship subgraph where its neighboring nodes are located, calculate the modularity difference Q after division, and select the largest modularity difference Q; If the maximum modularity difference Q is greater than 0 and satisfies the similarity constraint, the division method corresponding to the maximum modularity difference Q is used as the final division result. Otherwise, return to the previous step until the maximum modularity difference Q no longer increases.
7. The method for automatic identification of data entities for big data federated learning and AI mining according to claim 6, characterized in that: When the similarity constraint is not satisfied, all edges of the equivalent relationship subgraph between the node and the data entity it incorporates are removed.
8. The method for automatic identification of data entities for big data federated learning and AI mining according to claim 6, characterized in that: Also includes: When the maximum modularity difference Q no longer increases, all nodes in the same data entity equivalence relationship subgraph are compressed into a new node, the weights of the edges in the data entity equivalence relationship subgraph are converted into the weights of the new node and itself, and the edge weights in the data entity equivalence relationship subgraph are converted into the edge weights between the new nodes.
9. The method for automatic identification of data entities for big data federated learning and AI mining according to claim 6, characterized in that: The modularity difference Q is obtained by It is calculated, where ∑in represents the sum of the weights of the internal connecting edges of the divided data entity equivalence relationship subgraph G, ∑out represents the sum of the weights of the connecting edges of the divided data entity equivalence relationship subgraph G and the external edges connected to it, and n′ is the number of nodes inside the divided data entity equivalence relationship subgraph G.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for automatic data entity identification as claimed in any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Entity recognition method based on Map-Reduce framework
CN104239553A
An optimization method of entity alignment based on graph partition
CN109359172A
Graph model filtering method fusing shallow semantic information
CN111428031A
Multi-source heterogeneous public security big data intelligent docking engine system
CN113468163A
Method and system for managing primary field-specific entity records required by user
US20180253494A1
