Random disturbance-based interpretable potential cooperation relationship prediction method and device

By deleting edges in the collaborator network and optimizing the edge perturbation matrix, the problem of the lack of interpretability of the graph neural network model in the collaborator network is solved, interpretable prediction of potential cooperative relationships is achieved, and the transparency of the prediction results is improved. sex.

CN118780464APending Publication Date: 2024-10-15SHANXI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410747997.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-08-04
Filing Date
2024-06-11
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing graph neural network models lack interpretability in a network of collaborators, resulting in an opaque decision-making process and reducing the author's acceptance of link prediction results.

Method used

By deleting different edges in the collaborator network and calculating the model error before and after deleting the edges, the contribution value of each edge is obtained, the edge perturbation matrix is ​​initialized, and combined with the original network matrix, the edge perturbation matrix is ​​optimized, and finally input into the cooperation relationship prediction model to obtain optimal prediction results.

Benefits of technology

Interpretable predictions of potential partnerships are achieved, improving the transparency and acceptability of prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780464A_ABST
    Figure CN118780464A_ABST
Patent Text Reader

Abstract

The invention discloses an interpretable potential cooperation relationship prediction method and device based on random disturbance, and the method comprises the steps: obtaining partners of a target author pair i and j, constructing a partner network, obtaining a partner network adjacency matrix, and inputting the partner network adjacency matrix into a cooperation relationship prediction model; different edges of the partner network are deleted for multiple times, model errors are compared with original non-deleted edges after each time of edge deletion, a contribution value of each edge and first k edges which are most important for prediction are obtained, an initialized edge disturbance matrix is obtained, a new adjacency matrix is obtained through dot multiplication of the initialized edge disturbance matrix and an adjacency matrix of the partner network, and the new adjacency matrix is input into a cooperation relation prediction model; calculating a loss difference value before and after disturbance; s4 and S5 are repeated for multiple times, the loss difference values are sorted, an optimal edge disturbance matrix is obtained, dot multiplication is carried out on the optimal edge disturbance matrix and a partner network adjacency matrix, an optimal adjacency matrix is obtained and input into the cooperation relation prediction model, and a final prediction result of whether the i and the j have the cooperation relation in the future or not is obtained. According to the invention, whether the target author has the cooperation relationship in the future can be predicated in an explanatory manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cooperative relationship prediction, and in particular to an explainable potential cooperative relationship prediction method and device based on random disturbance. Background Art

[0002] Academic collaboration can effectively spread ideas and opinions, and is one of the key factors in promoting scientific development. A collaborator network is a network that analyzes and models collaborator relationships, where nodes represent authors and edges represent the collaboration between two authors, that is, they have published at least one paper together. Link prediction is one of the important tasks in studying collaborator networks. Accurate link prediction can help researchers find potential partners, accelerate knowledge dissemination, and promote scientific and technological development. As an important tool for studying collaborator networks, graph neural networks have effectively improved the accuracy of predicting whether two authors will collaborate in the future in a collaborator network. However, because most graph neural network models lack interpretability and the decision-making process is opaque, authors have a low acceptance of the prediction results given by the model, which makes it difficult for authors to adopt the results of link prediction based on graph neural network models. Summary of the invention

[0003] The present invention provides an interpretable potential cooperative relationship prediction method and device based on random perturbation to solve the problems existing in the above-mentioned prior art. The technical solution is as follows:

[0004] In one aspect, the present invention provides an interpretable potential cooperative relationship prediction method based on random disturbance, which is implemented by an electronic device and includes:

[0005] S1. Obtain the collaborators of the target author pair i, j, and construct a collaborator network according to the cooperative relationship between the target author pair i, j and the collaborators, and obtain the collaborator network adjacency matrix. The collaborator network includes nodes and edges. The nodes represent each author, and the edges represent that the authors of the two nodes connecting the edge have had a cooperative relationship.

[0006] S2, inputting the partner network adjacency matrix into the constructed cooperative relationship prediction model to obtain the original prediction result of whether i and j will have a cooperative relationship in the future;

[0007] S3, deleting a different edge from the partner network multiple times, inputting the corresponding partner network adjacency matrix after each edge deletion into the cooperation relationship prediction model, comparing the model error after each edge deletion with the original one without edge deletion, obtaining the contribution value of each edge, and then obtaining the top k edges in the partner network that are most important for prediction;

[0008] S4. Obtain an initialized edge perturbation matrix according to the first k edges;

[0009] S5, multiplying the edge perturbation matrix by the original partner network adjacency matrix to obtain a new adjacency matrix, inputting the new adjacency matrix into the cooperation relationship prediction model, and calculating the loss difference before and after the perturbation;

[0010] S6. Repeat S4 and S5 multiple times, sort the loss differences, and obtain the optimal edge perturbation matrix. Multiply the optimal edge perturbation matrix by the original partner network adjacency matrix to obtain the optimal adjacency matrix. Input the optimal adjacency matrix into the cooperative relationship prediction model to obtain the final prediction result of whether i and j will have a cooperative relationship in the future.

[0011] Optionally, the step of obtaining collaborators of the target author pair i, j in S1, constructing a collaborator network according to the cooperative relationships between the target author pair i, j and the collaborators, and obtaining a collaborator network adjacency matrix includes:

[0012] S11, obtaining the direct collaborator N1(i, j) of the target author pair i, j;

[0013] S12, obtaining the direct collaborator of the direct collaborator N1(i,j), and obtaining the two-hop indirect collaborator N2(i,j) of the target author to i,j;

[0014] S13, construct the collaborator network of the target author pair i, j according to the target author pair i, j and the direct collaborator N1(i, j) and the two-hop indirect collaborator N2(i, j), and obtain the collaborator network adjacency matrix

[0015] Optionally, the step S2 inputs the partner network adjacency matrix into a constructed partnership prediction model to obtain an original prediction result of whether i and j will have a partnership in the future, specifically including:

[0016] The prediction is made using the following formula (1):

[0017]

[0018] in, It represents the original prediction value of whether there will be a cooperative relationship between partner networks i and j in the future. φ represents the cooperative relationship prediction model. The cooperative relationship prediction model is a cooperative relationship prediction model based on the graph neural network GNN, including an encoder and a decoder. The encoder is a two-layer graph convolutional network GCN, which is responsible for obtaining the embedded representation of the node; the decoder decodes the embedded representation into the probability of the existence of a cooperative relationship.

[0019] Optionally, in S3, the model error is compared after each edge deletion with the original model error without edge deletion to obtain the contribution value of each edge, and then the top k edges in the partner network that are most important for prediction are obtained, as shown in the following formulas (2)-(6):

[0020]

[0021] Among them, Δ δ,e is the contribution value of edge e, represents the loss function of the partnership prediction model, y represents the label of whether i and j will have a partnership in the future, Indicates the original prediction value of whether there will be a cooperative relationship between partner networks i and j in the future, Indicates the predicted value of whether there will be a cooperative relationship between partner networks i and j in the future after edge deletion;

[0022] The first k edges are obtained by sorting the edge contribution values ​​in descending order.

[0023] Optionally, obtaining an initialized edge perturbation matrix according to the first k edges in S4 includes:

[0024] S41, randomly initialize a matrix with standard normal distribution, the matrix and the partner network adjacency matrix The number of rows and columns is the same;

[0025] S42. Fill the first k edge contribution values ​​into the corresponding positions of the matrix to obtain an initialized edge perturbation matrix M(i, j).

[0026] Optionally, the step of performing a dot multiplication of the edge perturbation matrix and the original partner network adjacency matrix in S5 to obtain a new adjacency matrix, inputting the new adjacency matrix into the cooperation relationship prediction model, and calculating the loss difference before and after the perturbation includes:

[0027] S51, multiply the edge perturbation matrix by the original partner network adjacency matrix to obtain a new adjacency matrix, as shown in the following formula (7):

[0028]

[0029] Among them, G i,j represents the new adjacency matrix;

[0030] S52, the new adjacency matrix G i,j The cooperation relationship prediction model is input, and the prediction result of whether i and j will have a cooperation relationship in the future after adding disturbance is obtained by the model output, as shown in the following formula (8):

[0031]

[0032] in, It indicates the predicted value of whether there will be a cooperative relationship between i and j in the future after adding the disturbance;

[0033] S53, calculating the loss difference before and after the disturbance, the loss difference consists of three parts, as shown in the following formula (9):

[0034]

[0035] Among them, loss represents the final loss value, express The cross entropy loss between y and y, Size(M(i,j)) represents the sum of all elements in the edge perturbation matrix M(i,j), and Discrete(M(i,j)) represents the element-by-element multiplication of the edge perturbation matrix M(i,j).

[0036] Optionally, S4 and S5 are repeated multiple times in S6, and the loss differences are sorted to obtain an optimal edge perturbation matrix, and the optimal edge perturbation matrix is ​​multiplied by the original partner network adjacency matrix to obtain an optimal adjacency matrix, and the optimal adjacency matrix is ​​input into the cooperative relationship prediction model to obtain a final prediction result of whether i and j will have a cooperative relationship in the future, including:

[0037] Repeat to obtain the initialized edge perturbation matrix M(i,j), and multiply the edge perturbation matrix by the adjacency matrix of the partner network to obtain the new adjacency matrix G i,j Input the partnership prediction model and calculate the loss difference multiple times;

[0038] Obtaining a plurality of loss differences, sorting them, and selecting an edge perturbation matrix with the smallest loss as the optimal edge perturbation matrix;

[0039] The optimal edge perturbation matrix is ​​multiplied by the original partner network adjacency matrix to obtain the optimal adjacency matrix, and the optimal adjacency matrix is ​​input into the cooperative relationship prediction model to obtain the final prediction result of whether i and j will have a cooperative relationship in the future.

[0040] On the other hand, a device for predicting potential cooperative relationships based on random disturbances is provided, the device comprising:

[0041] An acquisition module is used to acquire collaborators of the target author pair i, j, and to construct a collaborator network according to the cooperation relationship between the target author pair i, j and the collaborators, and obtain an adjacency matrix of the collaborator network. The collaborator network includes nodes and edges. The nodes represent each author, and the edges represent that the authors of the two nodes connecting the edge have had a cooperation relationship.

[0042] An input module is used to input the partner network adjacency matrix into the constructed cooperative relationship prediction model to obtain an original prediction result of whether i and j will have a cooperative relationship in the future;

[0043] An edge deletion module is used to delete different edges from the partner network multiple times, input the corresponding partner network adjacency matrix after each edge deletion into the cooperation relationship prediction model, compare the model error after each edge deletion with the original one without edge deletion, obtain the contribution value of each edge, and then obtain the top k edges in the partner network that are most important for prediction;

[0044] An initialization module is used to obtain an initialized edge perturbation matrix based on the first k edges;

[0045] A calculation module, used for performing a dot multiplication of the edge perturbation matrix and the original partner network adjacency matrix to obtain a new adjacency matrix, inputting the new adjacency matrix into the cooperation relationship prediction model, and calculating the loss difference before and after the perturbation;

[0046] The prediction module is used to repeat S4 and S5 multiple times, sort the loss differences, obtain the optimal edge perturbation matrix, multiply the optimal edge perturbation matrix by the original partner network adjacency matrix to obtain the optimal adjacency matrix, input the optimal adjacency matrix into the cooperation relationship prediction model, and obtain the final prediction result of whether i and j will have a cooperation relationship in the future.

[0047] On the other hand, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the above-mentioned explainable potential cooperative relationship prediction method based on random perturbations.

[0048] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the above-mentioned explainable potential cooperative relationship prediction method based on random perturbations.

[0049] Compared with the prior art, the above technical solution has at least the following beneficial effects:

[0050] The present invention obtains the contribution value of the edge by deleting each edge of the collaborator network and calculating the model error before and after deleting the edge, initializes the edge perturbation matrix according to the edge contribution value sorted in descending order, and then combines it with the original collaborator network adjacency matrix to optimize the edge perturbation matrix to obtain the optimal edge perturbation matrix, multiplies the optimal edge perturbation matrix with the original collaborator network adjacency matrix to obtain the optimal adjacency matrix, inputs the optimal adjacency matrix into the cooperative relationship prediction model, and obtains the final prediction result of whether i and j will have a cooperative relationship in the future. It can not only predict whether the target author will have a cooperative relationship with i and j in the future, but also make the prediction explainable. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0052] Figure 1 It is a flowchart of an explainable potential cooperative relationship prediction method based on random disturbance provided by an embodiment of the present invention;

[0053] Figure 2 is a schematic diagram of the structure of a cooperative relationship prediction model provided by an embodiment of the present invention;

[0054] Figure 3 is a schematic diagram of calculating edge contribution provided by an embodiment of the present invention;

[0055] Figure 4 Schematic diagram of an interpretable potential cooperative relationship prediction method based on random disturbance provided by an embodiment of the present invention;

[0056] Figure 5 It is a block diagram of an interpretable potential cooperative relationship prediction device based on random disturbance provided by an embodiment of the present invention;

[0057] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] like Figure 1 As shown, an embodiment of the present invention provides an interpretable potential cooperative relationship prediction method based on random disturbance, which can be implemented by an electronic device. Figure 1 The flowchart of a method for predicting potential cooperative relationships based on random disturbances is shown in FIG. The processing flow of the method may include the following steps:

[0060] S1. Obtain the collaborators of the target author pair i, j, and construct a collaborator network according to the cooperative relationship between the target author pair i, j and the collaborators, and obtain the collaborator network adjacency matrix. The collaborator network includes nodes and edges. The nodes represent each author, and the edges represent that the authors of the two nodes connecting the edge have had a cooperative relationship.

[0061] Optionally, the step of obtaining collaborators of the target author pair i, j in S1, constructing a collaborator network according to the cooperative relationships between the target author pair i, j and the collaborators, and obtaining a collaborator network adjacency matrix includes:

[0062] S11, obtaining the direct collaborator N1(i, j) of the target author pair i, j;

[0063] S12, obtaining the direct collaborator of the direct collaborator N1(i,j), and obtaining the two-hop indirect collaborator N2(i,j) of the target author to i,j;

[0064] S13, construct the collaborator network of the target author pair i, j according to the target author pair i, j and the direct collaborator N1(i, j) and the two-hop indirect collaborator N2(i, j), and obtain the collaborator network adjacency matrix

[0065] Specifically, i and j are target node pairs, and the embodiment of the present invention is to predict whether i and j will cooperate in the future (whether there will be a cooperative relationship in the future). i1, i2, etc. are authors who have directly cooperated with i. 11 、i 12 etc. have worked directly with i1 and i2, then i 11 、i 12 Similarly, the authors mentioned above are combined into a network, which is a collaborator network. As long as any two authors have direct collaboration, there is an edge between them (there is no edge for indirect collaboration, such as i and i 11 There is no edge between them).

[0066] S2, inputting the partner network adjacency matrix into the constructed cooperative relationship prediction model to obtain the original prediction result of whether i and j will have a cooperative relationship in the future;

[0067] Optionally, the step S2 inputs the partner network adjacency matrix into a constructed partnership prediction model to obtain an original prediction result of whether i and j will have a partnership in the future, specifically including:

[0068] The prediction is made using the following formula (1):

[0069]

[0070] in, represents the original prediction value of whether there will be a cooperative relationship between partner networks i and j in the future, φ represents a cooperative relationship prediction model, and the cooperative relationship prediction model is a cooperative relationship prediction model based on graph neural network GNN, such as Figure 2 As shown, it includes an encoder and a decoder. The encoder is a two-layer graph convolutional network GCN, which is responsible for obtaining the embedded representation of the node; the decoder decodes the embedded representation into the probability of the existence of a cooperative relationship (such as performing a dot product operation on the embedded representations of the two endpoints of the link to obtain the probability that the link exists (the cooperative relationship exists)).

[0071] S3, deleting different edges from the partner network multiple times, inputting the corresponding partner network adjacency matrix after each edge deletion into the cooperation relationship prediction model, comparing the model error after each edge deletion with the original one without edge deletion, and obtaining the contribution value of each edge, and then obtaining the top k edges in the partner network that are most important for prediction, such as Figure 3 As shown;

[0072] Optionally, in S3, the model error is compared after each edge deletion with the original model error without edge deletion to obtain the contribution value of each edge, and then the top k edges in the partner network that are most important for prediction are obtained, as shown in the following formulas (2)-(6):

[0073]

[0074] Among them, Δ δ,e is the contribution value of edge e, represents the loss function of the partnership prediction model, y represents the label of whether i and j will have a partnership in the future, Indicates the original prediction value of whether there will be a cooperative relationship between partner networks i and j in the future, Indicates the predicted value of whether there will be a cooperative relationship between partner networks i and j in the future after edge deletion;

[0075] The first k edges are obtained by sorting the edge contribution values ​​in descending order.

[0076] S4. Obtain an initialized edge perturbation matrix according to the first k edges;

[0077] Optionally, obtaining an initialized edge perturbation matrix according to the first k edges in S4 includes:

[0078] S41, randomly initialize a matrix with standard normal distribution, the matrix and the partner network adjacency matrix The number of rows and columns is the same;

[0079] S42. Fill the first k edge contribution values ​​into the corresponding positions of the matrix to obtain an initialized edge perturbation matrix M(i, j).

[0080] S5, multiplying the edge perturbation matrix by the original partner network adjacency matrix to obtain a new adjacency matrix, inputting the new adjacency matrix into the cooperation relationship prediction model, and calculating the loss difference before and after the perturbation;

[0081] Optionally, the step of performing a dot multiplication of the edge perturbation matrix and the original partner network adjacency matrix in S5 to obtain a new adjacency matrix, inputting the new adjacency matrix into the cooperation relationship prediction model, and calculating the loss difference before and after the perturbation includes:

[0082] S51, multiply the edge perturbation matrix by the original partner network adjacency matrix to obtain a new adjacency matrix, as shown in the following formula (7):

[0083]

[0084] Among them, G i,j represents the new adjacency matrix;

[0085] S52, the new adjacency matrix G i,j The cooperation relationship prediction model is input, and the prediction result of whether i and j will have a cooperation relationship in the future after adding disturbance is obtained by the model output, as shown in the following formula (8):

[0086]

[0087] in, It indicates the predicted value of whether there will be a cooperative relationship between i and j in the future after adding the disturbance;

[0088] S53, calculating the loss difference before and after the disturbance, the loss difference consists of three parts, as shown in the following formula (9):

[0089]

[0090] Among them, loss represents the final loss value, express The cross entropy loss between y and edge perturbation matrix M(i,j) is represented by Size(M(i,j)), which represents the sum of all elements in edge perturbation matrix M(i,j). Discrete(M(i,j)) represents the element-by-element multiplication of edge perturbation matrix M(i,j) (i.e., using element-wise entropy to promote the discrete values ​​in edge enhancement matrix close to 0 or 1).

[0091] S6. Repeat S4 and S5 multiple times, sort the loss differences, and obtain the optimal edge perturbation matrix. Multiply the optimal edge perturbation matrix by the original partner network adjacency matrix to obtain the optimal adjacency matrix. Input the optimal adjacency matrix into the cooperative relationship prediction model to obtain the final prediction result of whether i and j will have a cooperative relationship in the future.

[0092] Optionally, S4 and S5 are repeated multiple times in S6, and the loss differences are sorted to obtain an optimal edge perturbation matrix, and the optimal edge perturbation matrix is ​​multiplied by the original partner network adjacency matrix to obtain an optimal adjacency matrix, and the optimal adjacency matrix is ​​input into the cooperative relationship prediction model to obtain a final prediction result of whether i and j will have a cooperative relationship in the future, including:

[0093] Repeat to obtain the initialized edge perturbation matrix M(i,j), and multiply the edge perturbation matrix by the adjacency matrix of the partner network to obtain the new adjacency matrix G i,j Input the cooperation relationship prediction model, calculate the loss difference multiple times (the number of times is related to the size of the partner network, generally less than the number of edges in the partner network), such as Figure 4 As shown;

[0094] Obtaining a plurality of loss differences, sorting them, and selecting an edge perturbation matrix with the smallest loss as the optimal edge perturbation matrix;

[0095] The optimal edge perturbation matrix is ​​multiplied by the original partner network adjacency matrix to obtain the optimal adjacency matrix, and the optimal adjacency matrix is ​​input into the cooperative relationship prediction model to obtain the final prediction result of whether i and j will have a cooperative relationship in the future.

[0096] like Figure 5 As shown, the embodiment of the present invention also provides an interpretable potential cooperative relationship prediction device based on random disturbance, and the device includes:

[0097] The acquisition module 510 is used to acquire the collaborators of the target author pair i, j, and to construct a collaborator network according to the cooperation relationship between the target author pair i, j and the collaborators, and obtain a collaborator network adjacency matrix, wherein the collaborator network includes nodes and edges, wherein the nodes represent each author, and the edges represent that the authors of the two nodes connecting the edge have had a cooperation relationship;

[0098] An input module 520 is used to input the partner network adjacency matrix into the constructed cooperation relationship prediction model to obtain an original prediction result of whether i and j will have a cooperation relationship in the future;

[0099] The edge deletion module 530 is used to delete different edges from the partner network multiple times, input the corresponding partner network adjacency matrix after each edge deletion into the cooperation relationship prediction model, compare the model error after each edge deletion with the original one without edge deletion, obtain the contribution value of each edge, and then obtain the top k edges in the partner network that are most important for prediction;

[0100] An initialization module 540 is used to obtain an initialized edge perturbation matrix according to the first k edges;

[0101] A calculation module 550 is used to perform a dot multiplication of the edge perturbation matrix and the original partner network adjacency matrix to obtain a new adjacency matrix, input the new adjacency matrix into the cooperation relationship prediction model, and calculate the loss difference before and after the perturbation;

[0102] Prediction module 560 is used to repeat S4 and S5 multiple times, sort the loss differences, obtain the optimal edge perturbation matrix, multiply the optimal edge perturbation matrix by the original partner network adjacency matrix to obtain the optimal adjacency matrix, input the optimal adjacency matrix into the cooperative relationship prediction model, and obtain the final prediction result of whether i and j will have a cooperative relationship in the future.

[0103] An interpretable potential cooperative relationship prediction device based on random perturbations provided in an embodiment of the present invention has a functional structure corresponding to an interpretable potential cooperative relationship prediction method based on random perturbations provided in an embodiment of the present invention, which will not be repeated here.

[0104] Figure 6 It is a structural diagram of an electronic device 600 provided in an embodiment of the present invention. The electronic device 600 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 601 and one or more memories 602, wherein at least one instruction is stored in the memory 602, and the at least one instruction is loaded and executed by the processor 601 to implement the steps of the above-mentioned random perturbation-based explainable potential cooperative relationship prediction method.

[0105] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions, which can be executed by a processor in a terminal to complete the above-mentioned interpretable potential cooperative relationship prediction method based on random perturbations. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0106] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0107] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for predicting potential cooperative relationships based on random disturbances, characterized in that: The method comprises: S1. Obtain the collaborators of the target author pair i, j, and construct a collaborator network according to the cooperative relationship between the target author pair i, j and the collaborators, and obtain the collaborator network adjacency matrix. The collaborator network includes nodes and edges. The nodes represent each author, and the edges represent that the authors of the two nodes connecting the edge have had a cooperative relationship. S2, inputting the partner network adjacency matrix into the constructed cooperative relationship prediction model to obtain the original prediction result of whether i and j will have a cooperative relationship in the future; S3, deleting a different edge from the partner network multiple times, inputting the corresponding partner network adjacency matrix after each edge deletion into the cooperation relationship prediction model, comparing the model error after each edge deletion with the original one without edge deletion, obtaining the contribution value of each edge, and then obtaining the top k edges in the partner network that are most important for prediction; S4. Obtain an initialized edge perturbation matrix according to the first k edges; S5, multiplying the edge perturbation matrix by the original partner network adjacency matrix to obtain a new adjacency matrix, inputting the new adjacency matrix into the cooperation relationship prediction model, and calculating the loss difference before and after the perturbation; S6. Repeat S4 and S5 multiple times, sort the loss differences, and obtain the optimal edge perturbation matrix. Multiply the optimal edge perturbation matrix by the original partner network adjacency matrix to obtain the optimal adjacency matrix. Input the optimal adjacency matrix into the cooperative relationship prediction model to obtain the final prediction result of whether i and j will have a cooperative relationship in the future.

2. The method according to claim 1, characterized in that The step S1 of obtaining the collaborators of the target author pair i, j, constructing a collaborator network according to the cooperation relationship between the target author pair i, j and the collaborators, and obtaining the collaborator network adjacency matrix includes: S11, obtaining the direct collaborator N1(i, j) of the target author pair i, j; S12, obtaining the direct collaborator of the direct collaborator N1(i,j), and obtaining the two-hop indirect collaborator N2(i,j) of the target author to i,j; S13, construct the collaborator network of the target author pair i, j according to the target author pair i, j and the direct collaborator N1(i, j) and the two-hop indirect collaborator N2(i, j), and obtain the collaborator network adjacency matrix 3. The method according to claim 2, characterized in that The step S2 inputs the partner network adjacency matrix into the established cooperative relationship prediction model to obtain the original prediction result of whether i and j will have a cooperative relationship in the future, specifically including: The prediction is made using the following formula (1): in, It represents the original prediction value of whether there will be a cooperative relationship between partner networks i and j in the future. φ represents the cooperative relationship prediction model. The cooperative relationship prediction model is a cooperative relationship prediction model based on the graph neural network GNN, including an encoder and a decoder. The encoder is a two-layer graph convolutional network GCN, which is responsible for obtaining the embedded representation of the node; the decoder decodes the embedded representation into the probability of the existence of a cooperative relationship.

4. The method according to claim 3, characterized in that In S3, the model error is compared between the original model after each edge deletion and the original model before edge deletion to obtain the contribution value of each edge, and then the top k edges in the partner network that are most important for prediction are obtained, as shown in the following formulas (2)-(6): Among them, Δ δ,e is the contribution value of edge e, represents the loss function of the partnership prediction model, y represents the label of whether i and j will have a partnership in the future, Indicates the original prediction value of whether there will be a cooperative relationship between partner networks i and j in the future, Indicates the predicted value of whether there will be a cooperative relationship between partner networks i and j in the future after edge deletion; The first k edges are obtained by sorting the edge contribution values ​​in descending order.

5. The method according to claim 4, characterized in that The step of obtaining an initialized edge perturbation matrix according to the first k edges in S4 includes: S41, randomly initialize a matrix with standard normal distribution, the matrix and the partner network adjacency matrix The number of rows and columns is the same; S42. Fill the first k edge contribution values ​​into the corresponding positions of the matrix to obtain an initialized edge perturbation matrix M(i, j).

6. The method according to claim 5, characterized in that The step S5 multiplies the edge perturbation matrix by the original partner network adjacency matrix to obtain a new adjacency matrix, inputs the new adjacency matrix into the cooperation relationship prediction model, and calculates the loss difference before and after the perturbation, including: S51, multiply the edge perturbation matrix by the original partner network adjacency matrix to obtain a new adjacency matrix, as shown in the following formula (7): Among them, G i,j represents the new adjacency matrix; S52, the new adjacency matrix G i,j The cooperation relationship prediction model is input, and the prediction result of whether i and j will have a cooperation relationship in the future after adding disturbance is obtained by the model output, as shown in the following formula (8): in, It indicates the predicted value of whether there will be a cooperative relationship between i and j in the future after adding the disturbance; S53, calculating the loss difference before and after the disturbance, the loss difference consists of three parts, as shown in the following formula (9): Among them, loss represents the final loss value, express The cross entropy loss between y and y, Size(M(i,j)) represents the sum of all elements in the edge perturbation matrix M(i,j), and Discrete(M(i,j)) represents the element-by-element multiplication of the edge perturbation matrix M(i,j).

7. The method according to claim 6, characterized in that S4 and S5 are repeated multiple times in S6, and the loss differences are sorted to obtain the optimal edge perturbation matrix. The optimal edge perturbation matrix is ​​multiplied by the original partner network adjacency matrix to obtain the optimal adjacency matrix. The optimal adjacency matrix is ​​input into the cooperative relationship prediction model to obtain the final prediction result of whether i and j will have a cooperative relationship in the future, including: Repeat to obtain the initialized edge perturbation matrix M(i,j), and multiply the edge perturbation matrix by the adjacency matrix of the partner network to obtain the new adjacency matrix G i,j Input the partnership prediction model and calculate the loss difference multiple times; Obtaining a plurality of loss differences, sorting them, and selecting an edge perturbation matrix with the smallest loss as the optimal edge perturbation matrix; The optimal edge perturbation matrix is ​​multiplied by the original partner network adjacency matrix to obtain the optimal adjacency matrix, and the optimal adjacency matrix is ​​input into the cooperative relationship prediction model to obtain the final prediction result of whether i and j will have a cooperative relationship in the future.

8. An interpretable potential cooperative relationship prediction device based on random perturbations, characterized in that: The device comprises: An acquisition module is used to acquire collaborators of the target author pair i, j, and to construct a collaborator network according to the cooperation relationship between the target author pair i, j and the collaborators, and obtain an adjacency matrix of the collaborator network. The collaborator network includes nodes and edges. The nodes represent each author, and the edges represent that the authors of the two nodes connecting the edge have had a cooperation relationship. An input module is used to input the partner network adjacency matrix into the constructed cooperative relationship prediction model to obtain an original prediction result of whether i and j will have a cooperative relationship in the future; An edge deletion module is used to delete different edges from the partner network multiple times, input the corresponding partner network adjacency matrix after each edge deletion into the cooperation relationship prediction model, compare the model error after each edge deletion with the original one without edge deletion, obtain the contribution value of each edge, and then obtain the top k edges in the partner network that are most important for prediction; An initialization module is used to obtain an initialized edge perturbation matrix based on the first k edges; A calculation module, used for performing a dot multiplication of the edge perturbation matrix and the original partner network adjacency matrix to obtain a new adjacency matrix, inputting the new adjacency matrix into the cooperation relationship prediction model, and calculating the loss difference before and after the perturbation; The prediction module is used to repeat S4 and S5 multiple times, sort the loss differences, obtain the optimal edge perturbation matrix, multiply the optimal edge perturbation matrix by the original partner network adjacency matrix to obtain the optimal adjacency matrix, input the optimal adjacency matrix into the cooperation relationship prediction model, and obtain the final prediction result of whether i and j will have a cooperation relationship in the future.

9. An electronic device, comprising a processor and a memory, wherein at least one instruction is stored in the memory, wherein: The at least one instruction is loaded and executed by the processor to implement the explainable potential cooperative relationship prediction method based on random perturbations as described in any one of claims 1-7.

10. A computer-readable storage medium, wherein at least one instruction is stored in the storage medium, characterized in that: The at least one instruction is loaded and executed by the processor to implement the explainable potential cooperative relationship prediction method based on random perturbations as described in any one of claims 1-7.