High-order link prediction method using common neighbor clustering mutual information
Through the combination of common neighbor clustering mutual information and high-order clustering coefficients, the problem that traditional link prediction is difficult to predict high-order structures is solved, and accurate prediction of high-order links in complex networks is achieved, especially efficient prediction in dense networks. Effect.
Patent Information
- Application Number
- CN202410776305.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-15
AI Technical Summary
Traditional link prediction methods are difficult to directly predict and restore high-order structures in complex networks and identify false high-order interactions, and fail to fully consider the impact of high-order clustering structures on link prediction.
A high-order link prediction method using common neighbor clustering and mutual information is used to predict the formation possibility of high-order links by calculating information entropy and topological structure similarity indicators, combined with high-order clustering coefficients, and designs new data partitioning strategies and negative sampling methods to Improve prediction performance.
The prediction accuracy of 3-clique is significantly improved, especially in dense networks, it can accurately predict high-order clustering patterns in the network, and solves the problem of imbalance between positive and negative test samples in high-order link prediction.
Smart Images

Figure CN118784499A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of network information transmission prediction, and relates to a high-order link prediction in a complex network, and specifically to a high-order link prediction method using common neighbor clustering mutual information. Background Art
[0002] The study of complex networks has attracted widespread attention from researchers in different fields. Various complex systems in real life, such as online social networking sites, transportation systems, and biological networks, are all complex networks composed of a large number of nodes or entities and intricate relationships between nodes. Link prediction, as an important research direction of complex networks, aims to predict unknown links or find missing links through observed data in the network. It is of great significance to understand the evolution of complex networks. In addition, link prediction has a wide range of application values in various fields. In drug discovery, it can predict the interaction between drug targets and drugs, which helps guide researchers to choose appropriate methods for pharmaceutical tasks. In recommendation systems, potential products of interest can be recommended to users based on their purchase records, effectively improving personalized user experience. At the same time, link prediction algorithms can be used in the field of network security, helping to detect network attacks and abnormal behaviors by predicting potential links in the network, thereby strengthening network security protection.
[0003] Traditional link prediction problems revolve around pairwise interactions between nodes in complex systems. However, there is growing evidence that in many real-world systems, relationships between entities often go beyond pairwise relationships; for example, in a collaborator network, collaboration between authors occurs not only between two people, but also between three or more people. In biological networks, interactions between proteins occur between multiple protein molecules. Research on the higher-order topological structure of complex systems can enhance the modeling capabilities of complex systems and better understand, analyze, and predict their dynamic behaviors. Higher-order interactions have a significant impact on the dynamics of network systems, breaking the limitations of the original single-type pairwise interaction network topology analysis and providing new ideas for interaction analysis of complex networks. However, traditional link prediction cannot directly predict higher-order structures in the network. How to predict and restore missing higher-order structures in the network and identify false higher-order interactions has become an urgent problem to be solved.
[0004] In order to study the high-order interaction relationship in the network, Nassar and Benson et al. proposed a new link prediction task, which directly targets the prediction of triangular structure (i.e., third-order cliques), where the task is which nodes in the network are more likely to form triangles with a given edge. Chavan and Potika proposed an algorithm based on triangle embedding to solve the problem of high-order link prediction, combining node2vec, graph2vec and graph neural network to study the high-order link prediction problem of converting open triangles into triangular closures. Lv Linyuan et al. proposed two similarity measures, simple decomposition weight and closure ratio weight, based on local information to predict possible future high-order interactions in simplex networks. However, the existing methods are rarely used for high-order link prediction, most of which are extensions of traditional link prediction algorithms, and do not consider the impact of high-order clustering structures in the network on high-order link prediction. Summary of the invention
[0005] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0006] In order to solve the problem in the prior art that the transplanting device easily causes the root system of the plant to break, the present invention adopts the following technical solution.
[0007] A high-order link prediction method using common neighbor clustering mutual information comprises the following steps:
[0008] Step 1, define the high-order link prediction problem and symbols;
[0009] Step 2, using the strategy of common neighbor clustering mutual information to calculate the similarity score and predict the formation of high-order links;
[0010] Step 3: Determine the benchmark algorithm and evaluation indicators;
[0011] Step 4, determine the data partitioning strategy to be suitable for high-order link prediction;
[0012] Step 5, verify the prediction performance of the high-order link prediction method using common neighbor clustering mutual information;
[0013] Step 6: Design experiments to verify the effectiveness of using negative sampling to construct test data.
[0014] Preferably, in the above-mentioned high-order link prediction method, in step 1:
[0015] The information transmission network is defined as: G n =(K1 , K 2 , K 3 , ..., K n );
[0016] in,
[0017]
[0018] |V| is the number of nodes, i.e. the number of 1-cliques;
[0019] |E| is the number of edges, i.e. the number of 2-cliques;
[0020] |K 3 | is the number of triangles, i.e. the number of 3-cliques;
[0021] |K n | is the number of n-cliques;
[0022] In the formula,
[0023] n is the highest order of the network;
[0024] is the corresponding faction in the network, k 1 is a 1-clique, k 2 is a 2-clique, ..., k l is an l-clique, the superscript can be omitted;
[0025] K 1 is the set of nodes (V) in the network, i.e., the set of 1-cliques;
[0026] K 2 is the set of edges (E) in the network, i.e. the set of 2-cliques;
[0027] K 3 is the set of triangles in the network, i.e. the set of 3-cliques;
[0028] K l It is the set of l-order fully connected subgraphs formed by edges in the network, that is, the set of l-cliques.
[0029] Preferably, in the above-mentioned high-order link prediction method, in step 1:
[0030] The problem of high-order link prediction is defined as: given a high-order clique k l (l≥2) with other first-order factions k 1 The possibility of forming higher-order interactions; specifically:
[0031] Given faction k l and other first-order factions k that may form higher-order interactions with it 1 As the predicted k (l+1) , the high-order link prediction method is to calculate the k to be predicted (l+1) The similarity score of (l+1) possibility.
[0032] Preferably, in the above-mentioned high-order link prediction method, in step 2:
[0033] In high-order link prediction, given k to be predicted 3 , it can form factions k 3 This event is recorded as To be predicted k 3 Forming factions 3 The possibility can be achieved through events The uncertainty of occurrence is measured by information entropy. The smaller the information entropy, the smaller the prediction k 3 Forming factions 3 The greater the possibility, and vice versa.
[0034] Preferably, in the above-mentioned high-order link prediction method, the method is also used to improve the performance of high-order link prediction based on the network topology structure, specifically:
[0035] Define the network topology feature set Ω and the k to be predicted 3 , based on the theoretical definition of information entropy:
[0036] in: is the conditional self-information, indicating that k is known to be predicted 3 In the case of a certain topological structure feature set Ω, faction k 1 and faction k 2 Forming factions 3 This incident The greater the uncertainty, the greater the faction k 1 and faction k 2 The smaller the similarity, the smaller the clique k 3 The smaller the probability.
[0037] Preferably, in the above-mentioned high-order link prediction method, ω is defined as a characteristic element in the network topology feature set Ω, and based on the mutual information theory, Defined as:
[0038]
[0039] The topological structure similarity index based on mutual information theory is defined as:
[0040]
[0041] Preferably, the above-mentioned high-order link prediction method also includes using a high-order clustering coefficient to characterize the high-order clustering degree of neighbor nodes around the node. The method combines the topological structure mutual information theory and the high-order clustering attributes of common neighbor nodes to calculate the similarity index. The specific determination steps are as follows:
[0042] First determine the events of non-connected node pairs (x, y) Probability of occurrence:
[0043]
[0044] in is the total number of edges formed by the ith node, |V| is the number of nodes in the network, and |E| is the number of edges in the network.
[0045] Based on the above formula, in high-order link prediction, for any unconnected link k to be predicted without any prior structure 3 ,event Occurrence (i.e. formation of faction k 3 ) is calculated as:
[0046]
[0047] in Indicates that the i-th edge forms faction k 3 The total number of K 3 | is the faction k in the network 3 According to the definition of information entropy, The entropy of is:
[0048]
[0049] Given a prediction k 3 , its common neighbor set is defined as
[0050]
[0051] in and Represents faction k 1 and faction k 2 The set of neighbors of ;
[0052] Assume ω is the k to be predicted 3 One of the common neighbors exists When considering the l-order clustering property of common neighbors ω, the clique k 1 and faction k 2 Forming factions 3The probability of l (ω) is used to represent the neighbor clique k around node ω. 1 and faction k 2 There is no faction formed between 3 The probability of To express, due to the high-order clustering coefficient C l (ω) represents the neighboring clique k of node ω in the l-order clustering structure. 1 and adjacent faction k 2 Forming factions 3 The probability of l-order clustering structure is k 1 and faction k 2 Forming factions 3 The probability is defined as:
[0053]
[0054] Based on the information entropy theory, the conditional entropy of the l-order clustering coefficient of common neighbors ω is:
[0055]
[0056] Given k to be predicted 3 The common neighbor set The similarity index of the l-order clustering properties of all common neighbors is:
[0057]
[0058] Preferably, in the above-mentioned high-order link prediction method, the benchmark algorithms in step 3 include 12 benchmark algorithms and the high-order link prediction method (CICN) using common neighbor clustering mutual information, wherein the 12 benchmark algorithms are CN, AA, AA-MAX, AA-MUL, JS, JS-MAX, JS-MUL, PSP, SSP-MAX, SSP-MUL, TRPR and TRPRW methods;
[0059] The 12 benchmark methods are defined as follows:
[0060]
[0061]
[0062] The PSP method models the information flow from the seed node to other edges in the network through a Markov chain. The stationary distribution of the chain provides the score on the node. Given a faction k 2 , for example, for the edge (u,v), we can get:
[0063] (I-αP)x u =(1-α)e u
[0064] (I-αP)x v =(1-α)e v
[0065] Then, we can get the following equation:
[0066]
[0067] in:
[0068] I is the identity matrix, P is the column random walk matrix of the undirected network adjacency matrix A, P(i,j)=A(i,j) / |Γ j |, e u is a vector of all zeros except for index u, e u (u) = 1, x u The solution is the similarity between node u and other nodes, x v The solution is the similarity between node v and other nodes; e u,v is a vector of all zeros except for index u,v, e u,v (u) = e u,v (v) = 1 / 2, the solution of x is the similarity between each node and edge (u, v);
[0069] The PSP method is equivalent to the sum of the SSP on each node, and then the SSP method value is determined according to the PSP method; the maximum value of the single similarity score of u, v in the edge (u, v) and other nodes is SSP-MAX, and the product of the similarity scores is SSP-MUL, which is defined as:
[0070]
[0071] where max(x u ,x v ) means taking the maximum value element by element, x u ⊙x v Represents element-wise multiplication;
[0072] TRPR method for participation in many factions k 3 The edges are weighted to enhance k 3 The impact of; first introduce a tensor T, which encodes all triangles in the network:
[0073]
[0074] Calculating the Matrix in It measures the correlation between the edge (i, j) and the node score distribution in the vector x; TRPR is calculated on the weighted adjacency matrix An iteration of the power method is run on where the columns are renormalized to make the matrix columns random;
[0075] TRPRW introduces a scalar multiple to the TRPR method. Multiply any scalar by produce and the fair contribution of the weight of A; a simple scalar is defined in TRPRW as: This scalar will ensure that A and The sum of the weights is equal.
[0076] Preferably, in the above-mentioned high-order link prediction method, based on the similarity score and the test machine, the precision curve AUC and the recall curve AUPR of each indicator are calculated;
[0077] in,
[0078]
[0079] n represents the number of independent comparisons. n' represents the The 3-clique score is higher than that from U 3 -K 3 The number of 3-cliques, n” indicates the number of times the scores are the same;
[0080] The link prediction problem is regarded as a binary classification task. The evaluation of a binary classification task with two categories can be expressed as a confusion matrix. In the confusion matrix, a true positive (TP) indicates a situation where a prediction is positive but it is actually a positive example; a true negative (TN) indicates a situation where a prediction is negative but it is actually a negative example; a false positive (FP) indicates a situation where a prediction is positive but it is actually a negative example; and a false negative (FN) indicates a situation where a prediction is negative but it is actually a positive example.
[0081] Based on the confusion matrix, the values of AUPR's vertical axis precision and horizontal axis recall indicators are determined as follows:
[0082]
[0083] Preferably, in the above-mentioned high-order link prediction method, the data partitioning strategy in step 4 is based on the principle that nodes and edges interact to form triangles. Specifically, let K 3 represents all existing factions k in the network 3 A collection of; first from K 3 Extract faction k 3 , then, for each chosen faction k 3 , randomly remove its wedge structure from the original network, and finally use the remaining network as the training set, and the removed wedge structure constitutes the test set.
[0084] Compared with the prior art, the present invention has the following beneficial effects:
[0085] (1) We propose a new approach to solve the problem of high-order link prediction, which directly targets the prediction of high-order cliques.
[0086] (2) The present invention integrates the influence of multiple high-order clustering of nodes and uses different orders of high-order clustering coefficients of nodes based on information entropy to measure the contribution of common neighbor nodes, which can accurately predict the 3-clique in the network.
[0087] (3) The proposed method is compared with 12 benchmark methods on 9 real networks. The results show that the high-order clustering pattern of nodes can significantly improve the accuracy of predicting 3-cliques, especially in dense networks.
[0088] (4) A new dataset partitioning method is proposed for 3-clique prediction, and a negative sampling method is used to solve the imbalance problem between positive and negative test samples in high-order link prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] Figure 1 A flowchart of high-order link prediction in the present invention;
[0090] Figure 2 It is the AUC value of different order clustering structures on the nine networks.
[0091] Figure 3 is the AUPR value of different order clustering structures on nine networks.
[0092] Figure 4 It is a line graph of the changes in AUC values of 13 indicators under different training set ratios on nine networks.
[0093] Figure 5 It is a line graph of the changes in AUPR values of 13 indicators under different training set ratios on nine networks.
[0094] Figure 6 A comparison of the prediction performance of 13 indicators measured by AUC on four networks with different test sample ratios.
[0095] Figure 7 Comparison of the prediction performance of 13 indicators measured by AUPR on four networks with different test sample ratios. DETAILED DESCRIPTION
[0096] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0097] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0098] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments. The present invention provides the following embodiments.
[0099] This embodiment uses a high-order link prediction method based on common neighbor clustering mutual information, and the specific steps are as follows:
[0100] Step 1), first define the high-order link prediction problem and symbols. In traditional link prediction, given an undirected unweighted network G = (V, E), where V represents the node set and E represents the edge set. In order to test the accuracy of the algorithm, the links observed in E are divided into a training set E T and the test set E P , for every non-existent link L xy =UE, where x, y∈V, U represents all possible edge sets. The task of traditional link prediction is to assign a score to estimate the possibility of its link. The high-order link prediction in this application estimates the possibility of high-order interaction based on some prior known information. In the high-order link prediction method in this application, the information transmission network is described as G n =(K 1 , K 2 , K 3 , ..., K n ).
[0101] in n is the highest order of the network, K 1 , K 2 , K 3 , ..., K n They are the set of 1-cliques (nodes), 2-cliques (edges), 3-cliques (triangles), ..., n-cliques (n-order fully connected graphs) in the network. |V| represents the number of nodes in the network, which is equivalent to the number of 1-cliques; |E| represents the number of edges in the network, which is equivalent to the number of 2-cliques; |K 3 | represents the number of 3-cliques in the network, which is equivalent to the number of triangles; |K l| represents the number of l-cliques in the network.
[0102] In this embodiment, in order to test the accuracy of the algorithm, G n The observed K n Divide into training set and test set for The task of high-order link prediction is to identify as many test sets as possible. The high-level structure.
[0103] Therefore, traditional link prediction can be considered as a given node Which nodes to look for More likely to link with it, remember k is the predicted 2 , the algorithm measures the formation of faction k 2 The possibility of (edge), such as Figure 1 The high-order link prediction can be considered as a given faction k l , find out which factions k l It is more likely to form a high-order interaction with it, denoted by (k 1 , k l ) is the k to be predicted l+1 , calculate its similarity score to estimate its formation of faction k l+1 When l = 2, the predicted faction k 3 ,like Figure 1 As shown in figure (b), and so on.
[0104] This invention research faction k 3 Given a predictor, according to all the unobserved k 3 , that is (k 1 , k 2 ) to rank them. In order to verify the predictive performance of the predictor, the k observed in the network 3 is randomly divided into two parts, namely the training set and test set here, is considered known information, and Only used for testing algorithms. Obviously, and
[0105] Step 2) Calculate the similarity score using the mutual information strategy of common neighbor clustering to predict the formation of high-order links. Calculate the topological structure similarity index based on mutual information theory and the high-order clustering properties of the nodes C l(θ). Given an event Q, P(Q) represents the probability of the event, and its uncertainty, i.e., information entropy I(Q), can be defined as:
[0106] I(Q)=-log(P(Q)) (1)
[0107] According to formula (1), we can get the conditional self-information:
[0108] I(X|Y)=-log(P(X|Y)) (2)
[0109] Where P(X|Y) is the conditional probability, which is the conditional probability of event X occurring given that event Y has occurred.
[0110] In high-order link prediction (prediction faction k 3 ), faction k 1 and faction k 2 Forming factions 3 The uncertainty can be expressed by information entropy. 3 , it can form factions k 3 This event is recorded as Then to be predicted k 3 Forming factions 3 The possibility can be achieved through events The uncertainty of occurrence is measured by information entropy. The smaller the information entropy, the smaller the prediction k 3 Forming factions 3 The greater the possibility, and vice versa.
[0111] Many topological structures between factions can improve the performance of high-order link prediction. From the perspective of information entropy, these topological structures can largely eliminate the uncertainty of high-order interactions. The more useful information the network topology provides, the more helpful it is in eliminating the uncertainty of high-order interactions, and the more likely it is to generate high-order interactions. Given a topological structure feature set Ω, k to be predicted 3 , and its similarity method based on information entropy is defined as:
[0112]
[0113] in: is the conditional self-information, indicating that k is known to be predicted 3 In the case of a certain topological structure feature set Ω, faction k 1 and faction k 2 Forming factions 3 This incident The greater the uncertainty, the greater the faction k 1 and faction k 2The smaller the similarity, the smaller the clique k 3 The smaller the probability is. Given a characteristic element ω in the set Ω, that is, (ω∈Ω), and assuming that the elements in the set Ω are independent of each other, based on the mutual information theory, Defined as:
[0114]
[0115] Combining formulas (3) and (4), given the k to be predicted 3 , the topological structure similarity index based on mutual information theory is defined as:
[0116]
[0117] Formula (5) shows that each feature ω helps to eliminate faction k 1 and faction k 2 Forming factions 3 The more valuable information the feature ω provides, the more likely it is that the prediction k 3 The greater the contribution.
[0118] The prediction method in this embodiment needs to determine the high-order clustering characteristics of each common neighbor, and the specific determination method is as follows.
[0119] Traditional link prediction methods based on local structure use the local clustering coefficient of common neighbor nodes between node pairs to measure node contribution, such as Figure 1 Given a node pair (x, y) (i.e., k 2 ) and one of its common neighbors m. The basic principle of this method is to evaluate the local clustering coefficient to form a closed triangle (i.e., clique k) between neighboring nodes with node m as the core. 3 ), the higher the second-order clustering coefficient around the common neighbor node m, the greater the possibility of forming an edge between the node pair (x, y). Furthermore, when using the high-order aggregation properties of the nodes, when the third-order clustering coefficient of the nodes is larger, the faction k 1 and faction k 2 Take the common neighbor node n as an example, the neighbors with it as the core form a faction k 4 The greater the possibility, the greater the faction k 1 and faction k 2 Forming factions 3 The greater the probability, as shown in Figure (1) (d). It can be seen that when predicting a given faction k l With adjacent factions 1 Forming factions (l+1) When , we can use the l-order clustering coefficient C of their common neighbors l Measuring the predicted k (l+1)The probability of closure, the higher the clustering coefficient, the greater the possibility of closure, and the easier it is to form k (l+1) (l≥2).
[0120] Therefore, in this embodiment, this high-order clustering structure is introduced into high-order link prediction to improve prediction accuracy. In addition, the prediction method in this embodiment measures the impact of the high-order clustering attributes of nodes on high-order link prediction in a deeper level from the perspective of clustering coefficient.
[0121] The local clustering coefficient measures the formation of cliques k between adjacent nodes centered on θ 3 The higher the local clustering coefficient, the higher the degree of closure between neighbors. According to the closure process of the faction structure, the local clustering coefficient (second-order clustering coefficient) can be further defined as:
[0122]
[0123] Among them, K 3 (θ) represents the clique k containing node θ 3 Set, W 2 (θ) represents the set of wedges centered at node θ. Formula (6) means that node θ and its neighbors form a clique k 3 The larger the 2nd-order clustering coefficient, the smaller the faction k 3 The higher the degree of closure, the smaller the clique k. 3 The formation process of the third-order clustering coefficient is regarded as the faction k 4 The third-order clustering coefficient is a measure of the probability that the neighbors of node θ form a clique k with θ as the core. 4 The probability of is defined as:
[0124]
[0125] By analogy, the 4th-order clustering coefficient is defined as:
[0126]
[0127] The l-order clustering coefficient is defined as:
[0128]
[0129] Among them, K l+1 (θ) represents the clique k containing node θ (l+1) The collection of W l (θ) denotes the set of wedges of order l centered at θ.
[0130] The high-order clustering coefficient characterizes the high-order clustering degree of neighbor nodes around a node. Combining the step topology mutual information theory and the high-order clustering properties of common neighbor nodes, this embodiment provides a new high-order link prediction method (CICN) using common neighbor clustering mutual information, and calculates its similarity index:
[0131] For events of non-connected node pairs (x,y) without any prior structure The probability of occurrence is calculated as:
[0132]
[0133] in is the total number of edges formed by the ith node, |V| is the number of nodes in the network, and |E| is the number of edges in the network. According to formula (10), we can infer that for the k-th prediction network without any prior structure and no connectivity, 3 ,event Occurrence (i.e. formation of faction k 3 ) is calculated as:
[0134]
[0135] in Indicates that the i-th edge forms faction k 3 The total number of K 3 | is the faction k in the network 3 According to the definition of information entropy, The entropy of is:
[0136]
[0137] Given a prediction k 3 , its common neighbor set is defined as
[0138]
[0139] in and Represents faction k 1 and faction k 2 The set of neighbors.
[0140] Assume ω is the k to be predicted 3 One of the common neighbors exists When considering the l-order clustering property of common neighbors ω, the clique k 1 and faction k 2 Forming factions 3 The probability of l (ω) is used to represent the neighbor clique k around node ω. 1 and faction k2 There is no faction formed between 3 The probability of To represent. Since the high-order clustering coefficient C l (ω) represents the neighboring clique k of node ω in the l-order clustering structure. 1 and adjacent faction k 2 Forming factions 3 The probability of , therefore, exists:
[0141] C l (ω)≈P l (ω) (14)
[0142]
[0143] Assume that the clustering coefficients of different orders of node ω {C 3 (ω),C 4 (ω),...,C l (ω)} are independent of each other. According to probability theory, the faction k considering the l-order clustering structure 1 and faction k 2 Forming factions 3 The probability is defined as:
[0144]
[0145] Combining formula (1) and formula (13), the conditional entropy of the l-order clustering coefficient of its common neighbors ω is:
[0146]
[0147] According to formula (3), given the k to be predicted 3 The common neighbor set The similarity method for the l-th order clustering properties of all common neighbors is defined as follows:
[0148]
[0149] In order to simplify the calculation method, the prediction method in this embodiment adopts the contribution of the 3rd, 4th and 5th order clustering coefficients (3≤l≤5), so the CICN index is defined as:
[0150]
[0151] Step 3), determine the benchmark algorithm and evaluation indicators, the specific method is as follows.
[0152] Benchmark algorithm: Calculate the k to be predicted based on CICN and benchmark methods 3 The similarity scores of each method are stored in the corresponding dictionary.
[0153] Among them, there are 12 benchmark algorithms, namely CN, AA, AA-MAX, AA-MUL, JS, JS-MAX, JS-MUL, PSP, SSP-MAX, SSP-MUL, TRPR and TRPRW. The similarity scores of the 12 benchmark algorithms and CICN are calculated respectively; the details are as follows.
[0154] The other 12 benchmark methods are defined as follows:
[0155]
[0156]
[0157] Pair-seededPageRank (PSP) models the information flow from seed nodes to other edges in the network through Markov chains, and the stationary distribution of the chain provides the scores on the nodes. Given a faction k 2 , for example, for the edge (u,v), we can get:
[0158] (I-αP)x u =(1-α)e u (25)
[0159] (I-αP)x v =(1-α)e v (26)
[0160] Adding formula (25) and formula (26) yields:
[0161]
[0162] Where I is the identity matrix, P is the column random walk matrix of the undirected network adjacency matrix A, P(i,j)=A(i,j) / |Γ j |, e u is a vector of all zeros except for index u, e u (u) = 1, x u The solution is the similarity between node u and other nodes, x v Similarly. u,v is a vector of all zeros except for index u,v, e u,v (u) = e u,v (v) = 1 / 2, the solution of x is the similarity between each node and the edge (u, v). It is obvious that Pair-seeded PageRank is equivalent to the sum of Single-seeded PageRank (SSP) on each node, which is at most a scalar multiple. Consider the maximum value SSP-MAX of the single similarity score between u and v in the edge (u, v) and other nodes, and the product SSP-MUL of the similarity scores is defined as:
[0163]
[0164] where max(x u ,x v ) means taking the maximum value element by element, x u ⊙x v Represents element-wise multiplication.
[0165] Triangle reinforced PageRank (TRPR) for k 3 The edges with higher weights are given to enhance k 3 First, we introduce a tensor T, which encodes all triangles in the network:
[0166]
[0167] Assume that the graph is undirected, so that T is completely symmetric in all permutations of the index. The typical approach to solving the PageRank linear system is the power method. TRPR modifies the power method by adding a step to redistribute the network weights. Specifically, compute the matrix in It measures the correlation of edge (i, j) with the node score distribution in vector x. TRPR is used in weighted adjacency matrix. An iteration of the power method is run on where the columns are renormalized to make the matrix columns random.
[0168] Although TRPR forms a new adjacency matrix To participate in many factions 3 The edges with higher weights are introduced, but these weights are usually dominated by the weights in the adjacency matrix A. In order to give fair contributions to these edges, the weighted version of TRPR (TRPRW) introduces a scalar multiple to Multiply any scalar by produce and the fair contribution of the weight of A. A simple scalar is defined in TRPRW as: This scalar will ensure that A and The sum of the weights is equal.
[0169] Evaluation indicators:
[0170] Based on the dictionary of similarity scores, the test set, and the set of non-existent 3-cliques, the precision curve AUC and recall curve AUPR of each indicator are calculated. AUC is used as an accuracy measurement to measure the accuracy of the algorithm as a whole.
[0171]
[0172] Where n is the number of independent comparisons. n' is the The 3-clique score is higher than that from The degree of 3-clique, where U 3 represents all possible 3-cliques in the network, and n' represents the number of times the score is the same.
[0173] The link prediction problem is regarded as a binary classification task. Therefore, most of the evaluation indicators of any binary classification task can be used for link prediction evaluation. The evaluation of a binary classification task with two categories can be expressed as a confusion matrix. In this confusion matrix, a true positive (TP) indicates a situation where a positive example is predicted but is actually a positive example; a true negative (TN) indicates a situation where a negative example is predicted but is actually a negative example; a false positive (FP) indicates a situation where a positive example is predicted but is actually a negative example; and a false negative (FN) indicates a situation where a negative example is predicted but is actually a positive example. Based on the confusion matrix, the values of the AUPR's vertical axis precision (Precision) and horizontal axis recall (Recall) indicators can be derived as follows:
[0174]
[0175] The precision and recall curve is composed of recall on the X-axis and precision on the Y-axis. AUPR is the preferred evaluation metric for imbalanced problems mainly targeting minority classes.
[0176] Step 4), determine a data partitioning strategy for high-order link prediction. Traditional link prediction tasks focus on predicting faction k 2 (edge). In order to evaluate the performance of the model, a certain proportion of edges are usually randomly removed from the original network as a training set, and the removed edges are used as a test set. Since the high-order link prediction task in this embodiment involves predicting which factions k in the network 1 (node) will associate with the given faction k 2 (Edges) interact to form faction k 3 (triangle), so this embodiment expands the traditional data set partitioning method. Specifically, let K 3 represents all existing factions k in the network 3 (triangle). First, from K 3 A certain proportion of factions k are randomly selected from 3 Then, for each selected faction k 3 , randomly remove its wedge structure from the original network. Finally, the remaining network is used as the training set, and the removed wedge structure constitutes the test set. In order to evaluate the predictive ability of the high-order model, for each faction k in the training set 2 (edge), the high-order model is for each faction that has no interaction with it. 1(Node) is assigned a score, the higher the score, the more likely it is to form a faction k 3 (triangle).
[0177] Step 5), design an experiment to verify the prediction performance of the common neighbor high-order link prediction method. Through simulation verification in nine networks, the parameters of each network are as follows:
[0178] Table 1: Network topology information
[0179]
[0180] Topological information of real-world networks. |V| and |E| represent the number of nodes and edges in the network, and the average degree is expressed as <k>, the network density is denoted as ρ, C 3 , C 4 and C 5 represent the 3rd-order, 4th-order, and 5th-order clustering coefficients respectively, |K 3 | and |K 4 | represent the number of corresponding cliques in the network.
[0181] Figure 2 What is shown is the impact of different high-order clustering structures on AUC, Figure 3 What is shown is the impact of different high-order clustering structures on AUPR. In these two figures and mean considering only the 3rd-order clustering coefficient, 4th-order clustering coefficient, and 5th-order clustering coefficient separately. means using the 3rd-order and 4th-order clustering coefficients in combination, means using the 3rd-order, 4th-order, and 5th-order clustering coefficients in combination. From Figure 2 and Figure 3 it can be seen that the use of high-order clustering structures significantly improves the prediction performance, especially on the five networks of Tols, Macaque, Chebyshev, 145Bit, and 165Bit in Figure 2 . The method achieves the best prediction performance in terms of AUC. On the Journals and Scc-enron networks, whether under the AUC metric or the AUPR metric the method achieves the best prediction effect, which may be related to the density of the network. It is not difficult to see from Table 1 that the 3rd-order and 4th-order clustering coefficients of the Journals and Scc-enron networks are relatively high, and there are more 3-cliques and 4-cliques. The high-order clustering structure information in the network can improve the prediction accuracy, and the 3rd-order clustering structure information is extremely beneficial for the prediction of 3-cliques. In other words, the more triangular structures there are in the network, the easier it is for high-order interactions to occur between nodes and edges to form 3-cliques. Other high-order clustering information can also improve the prediction performance of 3-cliques to a certain extent, which depends on whether the high-order clustering degree in the network has a potential impact on the 3rd-order clique to be predicted. However, as the high-order clustering coefficient increases, the computational complexity also increases. To solve this problem, and are selected to balance accuracy and efficiency, that is, considering the 3rd-order clustering coefficient alone and considering the 3rd-order and 4th-order clustering coefficients in combination which ensures the prediction accuracy while having a relatively low computational complexity.
[0182] Table 2 shows the experimental results of the independent sampling and partitioning of the dataset 50 times, and the AUC of CICN and other algorithms. It performs best on the Tols, Macaque, Chebyshev, 145Bit, and 165Bit networks, and second best on the Journals and Hamsterster networks. ) and Scc-enron network (i.e. ) performs best on the Power-eris network (i.e. ) performed second best. On the Power-eris network and Hamsterster network, the AA method achieved the best results. The reason may be that the high-order clustering coefficient and average degree of these two networks are low, and AA can give more weight to nodes with lower degrees to improve the prediction performance.
[0183] Table 2: Comparison of prediction accuracy of 13 methods on 9 real networks under the AUC indicator
[0184]
[0185] Table 3 shows the AUPR experimental results of CICN and other algorithms on 9 networks after the data set was independently sampled and divided 50 times and the random sampling rate of the training set was set to 0.9. The CICN method can achieve the best prediction performance on 6 networks, and the other 3 networks can achieve the second best. On the Chebyshev network, the AA-MUL method performs best, which may be related to the fact that the network has fewer high-order factions and the average degree of the network is low. On the Hamsterster and 162Bit networks, the AA method can achieve the best performance. From the topological structure of the network, their high-order clustering coefficients and average degrees are low, which is inconsistent with the definition of the CICN method that integrating high-order clustering structures can improve the prediction performance, but is consistent with the definition of the AA method. It is not difficult to find from Tables 2 and 3 that CICN* usually performs better, The prediction performance of CICN* is very close in most cases. Considering the computational complexity and accuracy, for the convenience of expression, we uniformly specify in the following experiments It is the CICN method.
[0186] Experiments were conducted under different training set ratios to verify the stability of the CICN method's prediction performance. The training set ratios were 70%, 75%, 80%, 85%, and 90%.
[0187] Table 3: Comparison of prediction accuracy of 13 methods on 9 real networks under the AUPR indicator
[0188]
[0189] Figure 4 The AUC represents the prediction performance of 13 methods on 9 networks with different training set partition ratios. Each point represents the average of 50 independent experiments. On the four networks of Tols, Macaque, Journals and Scc-enron, the AUC value decreases with the increase of the training set ratio, which may be related to the density of the network. The density of these four networks is large. When the training set ratio is too high, the model will overfit the training data, resulting in poor performance on the test data. However, on these four networks, the CICN method shows better prediction performance, which is higher than the prediction performance of the benchmark method. On the five networks of Chebyshev, 145Bit, Power-eris, Hamsterster, and 162Bit, in most cases, the AUC value increases with the increase of the training set ratio, which may be related to the small network density. There are also some methods that decrease with the increase of the training set ratio, which may be related to the destruction of the network structure required by the method. Among these five networks, the CICN method can show the best prediction effect on three of them, and can approach the best prediction performance on the Power-eris and Hamsterster networks. The results show that under different test set partition ratios, the performance of the CICN method is improved to varying degrees compared with the baseline method. Almost under different network training set ratios, the CICN method has better prediction performance than most baseline methods.
[0190] Figure 5 It represents the prediction performance of 13 methods on 9 networks with different training set partitioning ratios measured by AUPR. Each point represents the average of 50 independent experiments. It can be observed from the figure that CICN performs best on Tols, Macaque, Journals and Scc-enron networks, and outperforms other methods in almost all training set percentages. On Chebyshev, 145Bit, and Hamsterster networks, when the training set is relatively low, the prediction performance of CICN has significant changes. When too many 3-cliques are deleted, the high-order structure in the network is greatly destroyed, resulting in a decrease in the influence of the high-order clustering coefficient, which affects the performance of CICN. Figure 5 It is not difficult to find that the CICN method maintains better performance on all networks, which shows that the CICN method is stable and reliable.
[0191] Step 6), design an experiment to verify the effectiveness of using negative sampling to construct test data. In this embodiment, when calculating the prediction score of the model, there is an imbalance problem with a small number of positive samples and a large number of negative samples, resulting in a high complexity of the model. In machine learning, negative sampling is usually used to balance the number of positive samples and negative samples. Inspired by this, the negative sampling method is used for data construction, and the proportion of negative samples is balanced by generating the same number of positive samples, thereby improving the prediction ability of the model.
[0192] 90% of the 3-cliques are randomly selected as the training set, and the test set consists of the remaining 3-cliques as positive test samples and the same number of non-existent 3-cliques randomly sampled as negative test samples.
[0193] To verify the feasibility of the method, experiments were carried out on 4 networks. In the test set, positive test samples and negative test samples were divided in the ratio of 1:1, 1:2, 1:3, 1:4, and 1:5.
[0194] Figure 6 It indicates that the prediction performance of 13 methods on 4 networks with different positive and negative test sample ratios is measured by AUC. Figure 7 It indicates that the prediction performance of 13 methods on 4 networks with different test sample ratios is measured by AUPR. Figure 6 In the study, the CICN method can achieve the best prediction performance under five different positive and negative test sample partitioning ratios on Macaque, Journals, and 162Bit networks, and can approach the best prediction performance on the Power-eris network. Figure 7 In the figure, as the number of negative test samples increases, the AUPR value shows an overall downward trend. This is because the AUPR indicator focuses on the accuracy and recall of positive samples. Among them, the CICN method shows the best prediction performance in different positive and negative test sample division ratios in Macaque, Journals and Power-eris networks, while the 162Bit network fails to achieve the best prediction performance. From the perspective of network structure, the density of the 162Bit network is small and the high-order clustering degree is low. As the proportion of negative test samples increases, the high-order structure will be destroyed, causing the prediction performance of the CICN method to decline. Therefore, using the negative sampling method for data construction (i.e., positive test samples and negative test samples are divided into 1:1) can solve the imbalance problem of high-order link prediction without affecting the prediction performance, and improve the model calculation efficiency.
[0195] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.
[0196] The above content is a further detailed description of the present invention in combination with specific implementation methods. It cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope determined by the claims submitted for the present invention.< / k>
Claims
1. A high-order link prediction method using common neighbor clustering mutual information, characterized in that: The steps include: Step 1, define the high-order link prediction problem and symbols; Step 2, using the strategy of common neighbor clustering mutual information to calculate the similarity score and predict the formation of high-order links; Step 3: Determine the benchmark algorithm and evaluation indicators; Step 4, determine the data partitioning strategy to be suitable for high-order link prediction; Step 5, verify the prediction performance of the high-order link prediction method using common neighbor clustering mutual information; Step 6: Design experiments to verify the effectiveness of using negative sampling to construct test data.
2. The high-order link prediction method using common neighbor clustering mutual information according to claim 1, characterized in that: In step 1: The information transmission network is defined as: G n =(K1, K2, K3, ..., K n ); in, |V| is the number of nodes, i.e. the number of 1-cliques; |E| is the number of edges, i.e. the number of 2-cliques; |K3| is the number of triangles, i.e. the number of 3-cliques; |K l | is the number of l-cliques; In the formula, n is the highest-order clique of the network; is the corresponding i-order clique in the network, k1 is the first-order clique (1-clique), k2 is the second-order clique (2-clique), ..., k l is an l-clique, the superscript can be omitted; K1 is the set of nodes (V) in the network, i.e., the set of 1-cliques; K2 is the set of edges (E) in the network, i.e., the set of 2-cliques; K3 is the set of triangles formed by edges in the network, that is, the set of 3-cliques; K n It is the set of n-order fully connected subgraphs composed of edges in the network, that is, the set of n-cliques.
3. The high-order link prediction method using common neighbor clustering mutual information according to claim 2, characterized in that: In step 1, The problem of high-order link prediction is defined as: given a high-order clique k l (l≥2) The possibility of forming higher-order interactions with other first-order cliques k1; specifically: Given faction k l and other factions k1 that may form higher-order interactions with it as the predicted k l+1 , the high-order link prediction method is to calculate the k to be predicted l+1 The similarity score of l+1 possibility.
4. The high-order link prediction method using common neighbor clustering mutual information according to claim 3, characterized in that: In step 2, In high-order link prediction, given the to-be-predicted k3, the event that it can form clique k3 is recorded as The possibility of k3 forming faction k3 can be predicted by event The uncertainty of occurrence is measured by information entropy. The smaller the information entropy, the greater the possibility that the predicted k3 will form faction k3; the larger the information entropy, the smaller the possibility that the predicted k3 will form faction k3.
5. The high-order link prediction method using common neighbor clustering mutual information according to claim 4, characterized in that: This method is also based on the network topology structure to improve the performance of high-order link prediction. Specifically, the network topology feature set Ω and the prediction k3 are defined, and the theoretical definition based on information entropy is: in: is the conditional self-information, which indicates that when a certain topological structure feature set Ω of the predicted k3 is known, the faction k1 and the faction k2 form the faction k3. The greater the uncertainty, the less similar factions k1 and k2 are, and the smaller the probability that they form faction k3.
6. The high-order link prediction method using common neighbor clustering mutual information according to claim 5, characterized in that: Define ω as a characteristic element in the network topology feature set Ω. Based on the mutual information theory, Defined as: The topological structure similarity index based on mutual information theory is defined as:
7. The high-order link prediction method using common neighbor clustering mutual information according to claim 6, characterized in that: It also includes using a high-order clustering coefficient to characterize the high-order clustering degree of neighboring nodes around a node. This method combines the topological structure mutual information theory and the high-order clustering properties of common neighboring nodes to calculate the similarity index. The specific determination steps are as follows: First determine the events of non-connected node pairs (x, y) Probability of occurrence: in is the total number of edges formed by the ith node, |V| is the number of nodes in the network, and |E| is the number of edges in the network. Based on the above formula, in high-order link prediction, for the faction k3 to be predicted without any prior structure disconnection, the event The probability of occurrence (i.e. formation of clique k3) is calculated as: in represents the total number of cliques k3 formed by the ith edge, and |K3| is the total number of cliques k3 in the network. According to the definition of information entropy, The entropy of is: Given a prediction k3, its common neighbor set is defined as in and Represent the neighbor sets of faction k1 and faction k2 respectively; ω is one of the k3 common neighbors to be predicted, and there exists When considering the l-order clustering property of common neighbors ω, the probability that cliques k1 and k2 form clique k3 is expressed as P l (ω) is used to represent the probability that the neighbor cliques k1 and k2 around node ω do not form clique k3, which is expressed as To express, due to the high-order clustering coefficient C l (ω) represents the probability that the neighboring cliques k1 and k2 of node ω form clique k3 under the l-order clustering structure. Therefore, the possibility of cliques k1 and k2 forming clique k3 under the l-order clustering structure is defined as: Based on the information entropy theory, the conditional entropy of the l-order clustering coefficient of common neighbors ω is: Given the common neighbor set of k3 to be predicted The similarity index of the l-order clustering properties of all common neighbors is:
8. The high-order link prediction method using common neighbor clustering mutual information according to any one of claims 1 to 7, characterized in that: The benchmark algorithms in step 3 include 12 benchmark algorithms and the high-order link prediction method (CICN) using common neighbor clustering mutual information, wherein the 12 benchmark algorithms are CN, AA, AA-MAX, AA-MUL, JS, JS-MAX, JS-MUL, PSP, SSP-MAX, SSP-MUL, TRPR and TRPRW methods; The 12 benchmark methods are defined as follows: The PSP method models the information flow from the seed node to other edges in the network through a Markov chain. The stable distribution of the chain provides the score on the node. Given a k2, for example, the edge (u, v), we can get: (I-αP)x u =(1-a)e u (I-αP)x v =(1-a)e v Then, we can get the following equation: (I-αP)(x u +x v )=(1-a)(e) u +e v ) (I-αP)(x u +x v )=(1-a)(2e) u,v ) (I-αP)x=(1-α)e u,v ; in: I is the identity matrix, P is the column random walk matrix of the undirected network adjacency matrix A, P(i,j)=A(i,j) / |Γ j |, e u is a vector of all zeros except for index u, e u (u) = 1, x u The solution is the similarity between node u and other nodes, x v The solution is the similarity between node v and other nodes; e u,v is a vector of all zeros except for index u,v, e u,v (u) = e u,v (v) = 1 / 2, the solution of x is the similarity between each node and edge (u, v); The PSP method is equivalent to the sum of the SSP on each node, and then the SSP method value is determined according to the PSP method; the maximum value of the single similarity score of u, v in the edge (u, v) and other nodes is SSP-MAX, and the product of the similarity scores is SSP-MUL, which is defined as: where max(x u ,x v ) means taking the maximum value element by element, x u ⊙x v Represents element-wise multiplication; The TRPR method assigns weights to the edges participating in many factions k3 to enhance the influence of k3; first, a tensor is introduced T , which encodes all triangles in the network: Calculating the Matrix in It measures the correlation between the edge (i, j) and the node score distribution in the vector x; TRPR is calculated on the weighted adjacency matrix An iteration of the power method is run on where the columns are renormalized to make the matrix columns random; TRPRW introduces a scalar multiple to the TRPR method. Multiply any scalar by produce and the fair contribution of the weight of A; a simple scalar is defined in TRPRW as: This scalar will ensure that A and The sum of the weights is equal.
9. The high-order link prediction method using common neighbor clustering mutual information according to claim 8, characterized in that: Based on the similarity score and the test machine, calculate the precision curve AUC and recall curve AUPR of each indicator; in, n represents the number of independent comparisons. n' represents the The 3-clique score is higher than that from The number of 3-cliques, where U3 represents all possible 3-cliques in the network, and n” represents the number of times the score is the same; The link prediction problem is regarded as a binary classification task. The evaluation of a binary classification task with two categories can be expressed as a confusion matrix. In the confusion matrix, a true positive (TP) indicates a situation where a prediction is positive but it is actually a positive example; a true negative (TN) indicates a situation where a prediction is negative but it is actually a negative example; a false positive (FP) indicates a situation where a prediction is positive but it is actually a negative example; and a false negative (FN) indicates a situation where a prediction is negative but it is actually a positive example. Based on the confusion matrix, the values of AUPR's vertical axis precision and horizontal axis recall indicators are determined as follows:
10. The high-order link prediction method using common neighbor clustering mutual information according to claim 9, characterized in that: The data partitioning strategy in step 4 is based on the principle that nodes and edges (clique k2) interact to form triangles (clique k3). Specifically, let K3 represent the set of all existing cliques k3 in the network; first, a certain proportion of cliques k3 are randomly selected from K3, and then, for each selected clique k3, its wedge structure is randomly removed from the original network. Finally, the remaining network is used as the training set, and the removed wedge structures constitute the test set.
Citation Information
Cited By
Mutual information-based similarity evaluation method
CN120995118A
