Power data fusion reasoning method based on association rule and graph convolutional neural network

Through methods based on association rules and graph convolutional neural networks, the problem of mining association rules for graph-structured data in power business data is solved, data support for power big data analysis and reasoning is achieved, and query efficiency and result accuracy are improved.

CN118536598AInactive Publication Date: 2024-08-23STATE GRID JIANGSU ELECTRIC POWER CO LTD NANTONG POWER SUPPLY BRANCH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410625983.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technology makes it difficult to effectively utilize association rule algorithms to mine and predict association rules for graph-structured data in power business data, resulting in low query efficiency and inaccurate results in power big data analysis and reasoning.

Method used

The power data fusion inference method based on association rules and graph convolutional neural network is used to construct a set of power data triples, extract rule samples, calculate support and confidence, screen strong association rules, and use graph convolutional neural network learning Representation vectors in the power diagram structure, calculate the probability of association rules between entities, and optimize model parameters to achieve data fusion.

Benefits of technology

It realizes the formation of logical views of power business data and the association of data information, improves the data support capabilities of power big data analysis and mining, and improves the accuracy and efficiency of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536598A
    Figure CN118536598A
Patent Text Reader

Abstract

The invention discloses a power data fusion inference method based on association rules and a graph convolutional neural network. The method comprises the steps that a power data triple set is constructed according to power business data, rule samples are extracted from the power data triple set to serve as candidate rules, and strong association rules are obtained through screening; constructing a power data fusion inference model based on the association rules and the graph convolutional neural network, and calculating the probability that the association rules exist among entities in the triple; performing training learning on the power data fusion inference model to obtain optimal parameters; the optimized power data fusion reasoning model is input into the test set of the power triple data, and generation, fusion and reasoning of representation vectors of entities in the power triple data are achieved. According to the scheme, the data information of the power business objects is associated and fused, and data support is provided for power big data analysis, mining and reasoning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of power data processing, and in particular relates to a power data fusion reasoning method based on association rules and graph convolutional neural networks. Background Art

[0002] The power company has built a series of information systems, which has generated a large amount of power-related business data, which has brought problems such as low query efficiency and inaccurate results to the real-time query performance of the system. In fact, these massive amounts of power business data are related. How to use association rule algorithms to horizontally pull together the various fragmented basic wide tables, indicators, and labels of the attributes related to the power business perspective, aggregate them to form a logical business view, and associate and integrate more data information of power business objects to provide data support for power big data analysis, mining, and reasoning has important practical significance. At present, the existing research work on association rule mining mainly focuses on transaction data sets, and has not conducted association rule mining and prediction for the large amount of graph structure data in the existing power business data. Summary of the invention

[0003] In order to solve the shortcomings of the prior art, the present invention provides a power data fusion reasoning method based on association rules and graph convolutional neural networks. The association rule algorithm is adopted to horizontally connect the fragmented basic wide tables, indicators, and labels of the relevant attributes of the power business perspective, and aggregate them to form a logical business view, so as to associate and integrate more data information of power business objects and provide data support for power big data analysis, mining and reasoning.

[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions.

[0005] The present invention first discloses a power data fusion reasoning method based on association rules and graph convolutional neural network, which includes the following steps:

[0006] Step 1: Collect power business data, and construct a power data triplet set according to the power business data, wherein each triplet in the power data triplet set includes two entities and a relationship between the two entities;

[0007] Step 2, extracting rule samples from the power data triple set as candidate rules, counting the frequencies of all candidate rules, calculating the support and confidence of the candidate rules according to the frequencies, and screening the candidate rules using a predefined minimum support threshold and a minimum confidence threshold to obtain strong association rules;

[0008] Step 3: construct a power data fusion reasoning model based on association rules and graph convolutional neural networks, construct the power data triple set into a power graph structure, use the power data fusion reasoning model to learn the representation vector of adjacent node information and relationships in the power graph structure, and calculate the probability of the existence of association rules between entities in the triples based on the representation vector;

[0009] Step 4, using the Adam optimizer and the binary cross entropy loss function to train and learn the power data fusion inference model to obtain optimal parameters corresponding to the best performance of the model, and save the trained model;

[0010] Step 5, the test set of power triplet data is input into the optimized power data fusion reasoning model to realize the generation, fusion and reasoning of representation vectors of entities in the power triplet data.

[0011] The present invention further includes the following preferred embodiments:

[0012] The step 2 further comprises:

[0013] Step 2.1, define the two association rules of inference and reverse symmetry, denoted as (e i , r k , e j )→(e i , r t , e j )and The inference rule represents two entities e i and e j Because of the relationship k connected, and through the relationship r t connected, the reverse symmetry rule is expressed by the relationship r k We can infer the reverse relationship r t ,According to the two association rules, rule samples are extracted from the given triple set as candidate rules;

[0014] Step 2.2: Count the frequencies of all candidate rule samples, let t n =e i , r k , e j ;t m =e j , r t , e i , the support and confidence calculation formulas are used to calculate the support and confidence corresponding to these two types of candidate rules, respectively, denoted as Support(t n →t m ), Confidence(t n →tm )and in:

[0015]

[0016]

[0017]

[0018]

[0019] Where D represents the relationship set.

[0020] Step 2.3, set the minimum support threshold λ Support and the minimum confidence threshold λ Confidence , filter out the strong association rule set corresponding to the two rules, recorded as Rule s1 and Rule s2 .

[0021] In step 3, the method of learning the representation vector of the adjacent node information and relationship in the power graph structure by using the power data fusion inference model further includes:

[0022] The triple set is constructed into a power graph structure G=(E, R) consisting of multiple nodes and multiple relationships, where E is a point in the graph, corresponding to an entity of the triple, and R is an edge of the graph, corresponding to a relationship of the triple;

[0023] For each triplet (e i , r k , e j ), the adjacent node information and relationship of the graph convolutional neural network GCN is used to learn the representation vectors of nodes and edges, and form the representation vector of the triple

[0024]

[0025] Where W1 represents the linear transformation matrix, and Corresponding entity e i and e j The representation vector of Representation relationship k The representation vector of

[0026] According to the confidence level, two strong association rules involved in the triples are calculated. s1 and Rule s2 The weight α (i , k , j), the weight of the association rule is integrated into the representation vector of the triple And propagate and aggregate through GCN to obtain the entity e in the final triple i The representation vector

[0027]

[0028] f gcn Represents the pooling operation. For any entity i, j∈E, the corresponding representation vector is obtained and

[0029] In step 3, the calculating of the probability of the existence of association rules between entities in the triples based on the representation vector further includes:

[0030] The probability of an association rule between entity i and entity j is calculated using the ReLU and sigmoid activation functions:

[0031]

[0032] The step 4 further comprises:

[0033] In the training phase, positive labels are used to represent the true set of association rules between entities, that is, the existence of interactions, denoted as Y + ; Use negative labels to represent the set formed by removing positive labels from the entity set E and performing log-uniform sampling, that is, there is no interaction, recorded as Y - ; Calculate the associated probability and the loss function of the true situation

[0034]

[0035] Use the Adam optimizer to minimize the loss function Thereby, the parameters in the power data fusion reasoning model are adjusted to the optimal configuration.

[0036] The present invention also discloses a power data fusion reasoning method system based on association rules and graph convolutional neural networks using the above-mentioned power data fusion reasoning method based on association rules and graph convolutional neural networks, comprising:

[0037] A triplet construction module, used for collecting power business data, and constructing a power data triplet set according to the power business data, wherein each triplet in the power data triplet set includes two entities and a relationship between the two entities;

[0038] An association rule acquisition module, used to extract rule samples from the power data triple set as candidate rules, count the frequencies of all candidate rules, calculate the support and confidence of the candidate rules according to the frequencies, and screen the candidate rules using a predefined minimum support threshold and a minimum confidence threshold to obtain strong association rules;

[0039] A fusion reasoning model construction module, used to construct a power data fusion reasoning model based on association rules and graph convolutional neural networks, construct the power data triple set into a power graph structure, use the power data fusion reasoning model to learn the representation vector of adjacent node information and relationships in the power graph structure, and calculate the probability of the existence of association rules between entities in the triples based on the representation vector;

[0040] A model optimization module, used to train and learn the power data fusion inference model using an Adam optimizer and a binary cross entropy loss function to obtain optimal parameters corresponding to the best performance of the model, and save the trained model;

[0041] The fusion reasoning module is used to integrate the power data fusion reasoning model after the input of the test set of power triple data into an optimized model, so as to realize the generation, fusion and reasoning of the representation vector of the entities in the power triple data.

[0042] Accordingly, the present application also discloses a terminal, including a processor and a storage medium;

[0043] The storage medium is used to store instructions;

[0044] The processor is used to operate according to the instructions to execute the steps of the aforementioned power data fusion reasoning method based on association rules and graph convolutional neural network.

[0045] Accordingly, the present application also discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the aforementioned power data fusion reasoning method based on association rules and graph convolutional neural networks.

[0046] The beneficial effect of the present invention lies in that, compared with the prior art, the present invention provides a power data fusion reasoning method based on association rules and graph convolutional neural networks, which horizontally pulls together the fragmented basic wide tables, indicators, and labels of attributes related to the power business perspective, aggregates them to form a logical business view, associates and integrates more data information of power business objects, and provides data support for power big data analysis and mining. The power data fusion reasoning model based on association rules and graph convolutional neural networks is used to fuse association rules and graph convolutional neural networks to realize the generation, fusion and reasoning of representation vectors of entities in power triple data. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a schematic diagram of generating strong association rules in the present invention.

[0048] Figure 2 This is a framework diagram of the power data fusion reasoning model based on association rules and graph convolutional neural network in the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0050] The embodiments described in this application are only a part of the embodiments of the present invention, not all embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the protection scope of the present invention.

[0051] In view of the shortcomings of the prior art, the present invention proposes a power data fusion reasoning method based on association rules and graph convolutional neural networks. In view of the massive business-related data in the power system, different association rule algorithms are extracted from multiple perspectives, candidate strong association rules are screened out, and a knowledge graph of fused association rules is constructed, and an association rule generation model based on graph convolutional neural networks is proposed. A graph convolutional neural network is used to learn the feature vectors of the head entity, tail entity, and relationship of the association rules in the knowledge graph, learn the weights corresponding to different association rules, and fuse them to form a triple vector for representing the association rules. The representation vectors of these rules are aggregated on the graph structure network to form the final representation vector; according to the downstream task of reasoning about the association relationship of power data, an excitation function is used to convert the above vectors to output the probability of association.

[0052] Combination Figure 1 and Figure 2 The power data fusion reasoning method based on association rules and graph convolutional neural network disclosed in the present invention includes the following steps:

[0053] Step 1: Collect power business data, and construct a power data triplet set based on the power business data, wherein each triplet in the power data triplet set includes two entities and a relationship between the two entities.

[0054] The step 1 collects power business data, including the number of employees of each power supply company, the number of equipment, the number of substations of each voltage level, the number of transmission lines, the amount of electricity sold, the amount of transmission, the original value of assets and the standard operating cost (unit price), etc., and constructs a triple set for the power business data, denoted as T = {(h, r, t)}, each triple contains a head entity and a tail entity, denoted as h, t∈E, respectively, and the corresponding relationship r∈R, R represents a real number. For any triple (ei , r k , e j ), treating it as an entity (e i , e j ) Application relationship k A basic fact of , and can be modeled by the transformation hypothesis, is the relationship r k As the head entity i and tail entity e i The translation between .

[0055] Step 2: Extract rule samples from the power data triple set as candidate rules, count the frequencies of all candidate rules, calculate the support and confidence of the candidate rules according to the frequencies, and use the predefined minimum support threshold and minimum confidence threshold to screen the candidate rules to obtain strong association rules.

[0056] In step 2, the specific operations are as follows:

[0057] Step 2.1, define the two association rules of inference and reverse symmetry, denoted as (e i , r k , e j )→(e i , r t , e j )and Among them, the inference rule represents two entities e i and e j Because of the relationship k connected, and through the relationship r t The reverse symmetry rule indicates that through the relationship r k We can infer the reverse relationship r t According to the two association rules defined above, rule samples are extracted from the given triple set as candidate rules.

[0058] Step 2.2: Count the frequencies of all candidate rule samples, let t n =e i , r k , e j .t m =e j , r t , e i , the support and confidence calculation formulas are used to calculate the support and confidence corresponding to these two types of candidate rules, respectively, denoted as Support(t n →t m ), Confidence(t n →t m )and

[0059] in:

[0060]

[0061]

[0062]

[0063]

[0064] Where D represents the relationship set.

[0065] Step 2.3, finally set the minimum support threshold λ Support and the minimum confidence threshold λ Confidence , filter out the strong association rule set corresponding to the two rules that meet the requirements, recorded as Rule s1 and Rule s2 , as auxiliary information of power graph structure data, it is used for the fusion and reasoning of power business data.

[0066] Step 3: Construct a power data fusion reasoning model based on association rules and graph convolutional neural networks, construct the power data triple set into a power graph structure, use the power data fusion reasoning model to learn the representation vector of adjacent node information and relationships in the power graph structure, and calculate the probability of the existence of association rules between entities in the triples based on the representation vector.

[0067] The present invention constructs an electric power data fusion reasoning model based on association rules and graph convolutional neural networks. The model not only uses the graph attention network to represent and learn the topological structure information in the electric power graph structure data, but also integrates the strong association rules implied between entities to propagate and learn on the topological structure, and finally obtains an accurate entity representation vector.

[0068] In step 3, the description of the power data fusion reasoning model based on association rules and graph convolutional neural network is as follows:

[0069] Step 3.1, construct the triple set into a power graph structure consisting of multiple nodes and multiple relationships, denoted as G = (E, R), where E is the point in the graph, corresponding to the entity of the triple, and R is the edge of the graph, corresponding to the relationship of the triple.

[0070] Step 3.2: for each triplet (e i , r k , e j), the adjacent node information and relationship of the node (entity) and edge (relationship) are learned through the graph convolutional neural network (GCN), and the representation vector of the triple is formed, which is recorded as

[0071]

[0072] Where W1 represents the linear transformation matrix, and Corresponding entity e i and e j The representation vector of Representation relationship k The representation vector of .

[0073] Step 3.3, in order to determine the relative weight of the neighborhood, an attention aggregation mechanism is added on the basis of the graph convolutional neural network. Specifically, two association rules involved in the triples are calculated according to the confidence. s1 and Rule s2 The weight of (i , k , j) , the weight of the association rule is integrated into the representation vector of the triple And propagate and aggregate through GCN to obtain the entity e in the final triple i The representation vector of

[0074]

[0075] f gcn Represents the pooling operation. Through the above steps, for any entity i, j∈E, the corresponding representation vector can be obtained and Then, the probability that there is an association rule between entity i and entity j can be calculated by ReLU and sigmoid activation functions:

[0076]

[0077] The power data fusion reasoning model not only uses the graph attention network to represent and learn the topological structure information in the power graph structure data, but also integrates the strong association rules contained in the entities to propagate and learn on the topological structure, so as to obtain accurate entity representation vectors.

[0078] Step 4: Use the Adam optimizer and the binary cross entropy loss function to train and learn the power data fusion inference model to obtain the optimal parameters corresponding to the best performance of the model, and save the trained model.

[0079] In step 4, the loss function is selected based on the binary cross entropy loss function, which is used for model back propagation and gradient descent optimization, denoted as The power data triplet set is divided into a training set and a test set according to a predefined ratio. On the training set, the present invention uses the Adam optimizer to minimize the above loss function, thereby adjusting the parameters in the prediction model to the optimal configuration. The specific operation is as follows:

[0080] The power data triple set is divided into training set and test set according to the ratio of 4:1. In the training stage, the positive label is used to represent the real set of association rules between entities, that is, there is interaction, which is recorded as Y + ; The negative label represents the set formed by removing the positive label from the entity set E and performing log-uniform sampling, that is, there is no interaction, recorded as Y - ; The associated probability and the loss function of the true situation as follows:

[0081]

[0082] The present invention uses the Adam optimizer to minimize the above loss function Thus, the parameters in the power data fusion inference model based on association rules and graph convolutional neural network are adjusted to the optimal configuration.

[0083] Step 5: Input the optimized power data fusion reasoning model into the test set of power triple data to realize the generation, fusion and reasoning of representation vectors of entities in the power triple data.

[0084] In step 5, with the help of the power data fusion reasoning model based on association rules and graph convolutional neural network trained in step 4, in the testing phase, the representation vector generation, fusion and reasoning of the entities in the power triplet data are finally realized by inputting the triples in the test set.

[0085] The beneficial effect of the present invention lies in that, compared with the prior art, the present invention provides a power data fusion reasoning method based on association rules and graph convolutional neural networks, which horizontally pulls together the fragmented basic wide tables, indicators, and labels of attributes related to the power business perspective, aggregates them to form a logical business view, associates and integrates more data information of power business objects, and provides data support for power big data analysis and mining. The power data fusion reasoning model based on association rules and graph convolutional neural networks is used to fuse association rules and graph convolutional neural networks to realize the generation, fusion and reasoning of representation vectors of entities in power triple data.

[0086] The present invention may be a system, a method and / or a computer program product. The present invention also discloses a power data fusion reasoning method system based on association rules and graph convolutional neural networks based on the aforementioned power data fusion reasoning method based on association rules and graph convolutional neural networks, comprising:

[0087] A triplet construction module, used for collecting power business data, and constructing a power data triplet set according to the power business data, wherein each triplet in the power data triplet set includes two entities and a relationship between the two entities;

[0088] An association rule acquisition module, used to extract rule samples from the power data triple set as candidate rules, count the frequencies of all candidate rules, calculate the support and confidence of the candidate rules according to the frequencies, and screen the candidate rules using a predefined minimum support threshold and a minimum confidence threshold to obtain strong association rules;

[0089] A fusion reasoning model construction module, used to construct a power data fusion reasoning model based on association rules and graph convolutional neural networks, construct the power data triple set into a power graph structure, use the power data fusion reasoning model to learn the representation vector of adjacent node information and relationships in the power graph structure, and calculate the probability of the existence of association rules between entities in the triples based on the representation vector;

[0090] A model optimization module, used to train and learn the power data fusion inference model using an Adam optimizer and a binary cross entropy loss function to obtain optimal parameters corresponding to the best performance of the model, and save the trained model;

[0091] The fusion reasoning module is used to integrate the power data fusion reasoning model after the input of the test set of power triple data into an optimized model, so as to realize the generation, fusion and reasoning of the representation vector of the entities in the power triple data.

[0092] Based on the spirit of the present invention, those skilled in the art can easily think that a computer program product can be obtained based on the aforementioned power data fusion reasoning method based on association rules and graph convolutional neural networks. The computer program product may include a computer-readable storage medium, which carries computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure. That is, the present application also includes a terminal, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the aforementioned power data fusion reasoning method based on association rules and graph convolutional neural networks.

[0093] Computer readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device. Computer readable storage medium can be, for example, - but not limited to - electrical storage device, magnetic storage device, optical storage device, electromagnetic storage device, semiconductor storage device or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, for example, punch card or groove protrusion structure with instructions stored thereon and any suitable combination of the above. Computer readable storage medium used here is not interpreted as instantaneous signal itself, such as radio wave or other free propagating electromagnetic wave, electromagnetic wave propagated by waveguide or other transmission medium (for example, light pulse by optical fiber cable) or electrical signal transmitted by wire.

[0094] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0095] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages-such as Smalltalk, C++, etc., and conventional procedural programming languages-such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network-including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may be personalized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A power data fusion reasoning method based on association rules and graph convolutional neural network, characterized in that: The following steps are involved: Step 1: Collect power business data, and construct a power data triplet set according to the power business data, wherein each triplet in the power data triplet set includes two entities and a relationship between the two entities; Step 2, extracting rule samples from the power data triple set as candidate rules, counting the frequencies of all candidate rules, calculating the support and confidence of the candidate rules according to the frequencies, and screening the candidate rules using a predefined minimum support threshold and a minimum confidence threshold to obtain strong association rules; Step 3: construct a power data fusion reasoning model based on association rules and graph convolutional neural networks, construct the power data triple set into a power graph structure, use the power data fusion reasoning model to learn the representation vector of adjacent node information and relationships in the power graph structure, and calculate the probability of the existence of association rules between entities in the triples based on the representation vector; Step 4, using the Adam optimizer and the binary cross entropy loss function to train and learn the power data fusion inference model to obtain optimal parameters corresponding to the best performance of the model, and save the trained model; Step 5, the test set of power triplet data is input into the optimized power data fusion reasoning model to realize the generation, fusion and reasoning of representation vectors of entities in the power triplet data.

2. The power data fusion reasoning method based on association rules and graph convolutional neural network according to claim 1 is characterized in that: The step 2 further comprises: Step 2.1, define the two association rules of inference and reverse symmetry, denoted as (e i , r k , e j )→(e i , r t , e j )and The inference rule represents two entities e i and e j Because of the relationship k connected, and through the relationship r t connected, the reverse symmetry rule is expressed by the relationship r k We can infer the reverse relationship r t ,According to the two association rules, rule samples are extracted from the given triple set as candidate rules; Step 2.2: Count the frequencies of all candidate rule samples, let t n =e i , r k , e j ;t m =e j , r t , e i , the support and confidence calculation formulas are used to calculate the support and confidence corresponding to these two types of candidate rules, respectively, denoted as Support(t n →t m ), Confidence(t n →t m )and in: Where D represents the relationship set; Step 2.3, set the minimum support threshold λ Support and the minimum confidence threshold λ Confidence , filter out the strong association rule set corresponding to the two rules, recorded as Rule s1 and Rule s2 .

3. The power data fusion reasoning method based on association rules and graph convolutional neural network according to claim 2 is characterized in that: In step 3, the use of the power data fusion inference model to learn the representation vector of the adjacent node information and relationship in the power graph structure further includes: The triple set is constructed into a power graph structure G=(E, R) consisting of multiple nodes and multiple relationships, where E is a point in the graph, corresponding to an entity of the triple, and R is an edge of the graph, corresponding to a relationship of the triple; For each triplet (e i , r k , e j ), the adjacent node information and relationship of the graph convolutional neural network GCN is used to learn the representation vectors of nodes and edges, and form the representation vector of the triple Where W1 represents the linear transformation matrix, and Corresponding entity e i and e j The representation vector of Representation relationship k The representation vector of According to the confidence level, two strong association rules involved in the triples are calculated. s1 and Rule s2 Weight α (i , k , j) , the weight of the association rule is integrated into the representation vector of the triple And propagate and aggregate through GCN to obtain the entity e in the final triple i The representation vector f gcn Represents the pooling operation. For any entity i, j∈E, the corresponding representation vector is obtained and 4. The power data fusion reasoning method based on association rules and graph convolutional neural network according to claim 3 is characterized in that: In step 3, the calculating of the probability of the existence of association rules between entities in the triples based on the representation vector further includes: The probability of an association rule between entity i and entity j is calculated using the ReLU and sigmoid activation functions:

5. The power data fusion reasoning method based on association rules and graph convolutional neural network according to claim 4 is characterized in that: The step 4 further comprises: In the training phase, positive labels are used to represent the true set of association rules between entities, that is, the existence of interactions, denoted as Y + ; Use negative labels to represent the set formed by removing positive labels from the entity set E and performing log-uniform sampling, that is, there is no interaction, recorded as Y - ; Calculate the associated probability and the loss function of the true situation Use the Adam optimizer to minimize the loss function Thereby, the parameters in the power data fusion reasoning model are adjusted to the optimal configuration.

6. A power data fusion reasoning method system based on association rules and graph convolutional neural network, characterized in that: include: A triplet construction module, used for collecting power business data, and constructing a power data triplet set according to the power business data, wherein each triplet in the power data triplet set includes two entities and a relationship between the two entities; An association rule acquisition module, used to extract rule samples from the power data triple set as candidate rules, count the frequencies of all candidate rules, calculate the support and confidence of the candidate rules according to the frequencies, and screen the candidate rules using a predefined minimum support threshold and a minimum confidence threshold to obtain strong association rules; A fusion reasoning model construction module, used to construct a power data fusion reasoning model based on association rules and graph convolutional neural networks, construct the power data triple set into a power graph structure, use the power data fusion reasoning model to learn the representation vector of adjacent node information and relationships in the power graph structure, and calculate the probability of the existence of association rules between entities in the triples based on the representation vector; A model optimization module, used to train and learn the power data fusion inference model using an Adam optimizer and a binary cross entropy loss function to obtain optimal parameters corresponding to the best performance of the model, and save the trained model; The fusion reasoning module is used to integrate the power data fusion reasoning model after the input of the test set of power triple data into an optimized model, so as to realize the generation, fusion and reasoning of the representation vector of the entities in the power triple data.

7. The power data fusion reasoning method system based on association rules and graph convolutional neural network according to claim 6 is characterized in that: The association rule acquisition module is further used to: Define two association rules, inference and reverse symmetry, which are denoted as (e i , r k , e j )→(e i , r t , e j )and The inference rule represents two entities e i and e j Because of the relationship k connected, and through the relationship r t connected, the reverse symmetry rule is expressed by the relationship r k We can infer the reverse relationship r t ,According to the two association rules, rule samples are extracted from the given triple set as candidate rules; Count the frequencies of all candidate rule samples, let t n =e i , r k , e j ;t m =e j , r t , e i , the support and confidence calculation formulas are used to calculate the support and confidence corresponding to these two types of candidate rules, respectively, denoted as Support(t n →t m ), Confidence(t n →t m )and in: Where D represents the relationship set; Set the minimum support threshold λ Support and the minimum confidence threshold λ Confidence , filter out the strong association rule set corresponding to the two rules, recorded as Rule s1 and Rule s2 .

8. The power data fusion reasoning method system based on association rules and graph convolutional neural network according to claim 7 is characterized in that: The fusion reasoning model building module is further used to: The triple set is constructed into a power graph structure G=(E, R) consisting of multiple nodes and multiple relationships, where E is a point in the graph, corresponding to an entity of the triple, and R is an edge of the graph, corresponding to a relationship of the triple; For each triplet (e i , r k , e j ), the adjacent node information and relationship of the graph convolutional neural network GCN is used to learn the representation vectors of nodes and edges, and form the representation vector of the triple Where W1 represents the linear transformation matrix, and Corresponding entity e i and e j The representation vector of Representation relationship k The representation vector of According to the confidence level, two strong association rules involved in the triples are calculated. s1 and Rule s2 Weight α (i , k , j) , the weight of the association rule is integrated into the representation vector of the triple And propagate and aggregate through GCN to obtain the entity e in the final triple i The representation vector f gcn Represents the pooling operation. For any entity i, j∈E, the corresponding representation vector is obtained and 9. The power data fusion reasoning method system based on association rules and graph convolutional neural network according to claim 8 is characterized in that: The fusion reasoning model building module is further used to: The probability of an association rule between entity i and entity j is calculated using the ReLU and sigmoid activation functions:

10. The power data fusion reasoning method system based on association rules and graph convolutional neural network according to claim 9 is characterized in that: The model optimization module is further used to: In the training phase, positive labels are used to represent the true set of association rules between entities, that is, the existence of interactions, denoted as Y + ; Use negative labels to represent the set formed by removing positive labels from the entity set E and performing log-uniform sampling, that is, there is no interaction, recorded as Y - ; Calculate the associated probability and the loss function of the true situation Use the Adam optimizer to minimize the loss function Thereby, the parameters in the power data fusion reasoning model are adjusted to the optimal configuration.

11. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the power data fusion reasoning method based on association rules and graph convolutional neural network according to any one of claims 1 to 5.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the power data fusion reasoning method based on association rules and graph convolutional neural network described in any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • Power failure knowledge graph reasoning method and system

    CN119692485A