Directed network link prediction network training method, application method, device and medium

By performing low-rank approximation and iterative adversarial training on directed graphs, the problem of insufficient utilization of link directionality information in existing technologies is solved, thereby improving the accuracy of network link prediction.

CN118839779BActive Publication Date: 2026-11-24BIG DATA & INFORMATION TECH RES INST OF WENZHOU UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410984401.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2026-11-24
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively utilize the directional information of links, resulting in poor accuracy in predicting network links with directional differences.

Method used

By performing a low-rank approximation on the directed graph to obtain the node embedding representation, a node pair dataset is constructed, and feature extraction and orientation discrimination are performed. The directed network link prediction network is then trained iteratively using orientation discrimination adversarial loss and link prediction loss to improve the model's accuracy in predicting network links with orientation differences.

Benefits of technology

It improves the accuracy of predicting network links with directional differences by capturing the directional information of the links, thus enhancing the model's predictive performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118839779B_ABST
    Figure CN118839779B_ABST
Patent Text Reader

Abstract

The application provides a directed network link prediction network training method, an application method, equipment and a medium, and relates to the technical field of network link prediction.The training method comprises the following steps: obtaining node embedding representation by performing low-rank approximation on a directed graph, constructing a node pair data set according to the node embedding representation, extracting node pair embedding features from the node pair data set, obtaining a direction type probability distribution by performing direction discrimination on the node pair embedding features, obtaining a link existence probability by performing link prediction on the node pair embedding features, determining a direction discrimination adversarial loss according to the direction type probability distribution, determining a link prediction loss according to the link existence probability, and iteratively performing adversarial training according to the direction discrimination adversarial loss and the link prediction loss to obtain a trained directed network link prediction network.The application effectively utilizes the directionality information of the link by iteratively performing adversarial training according to the direction discrimination adversarial loss and the link prediction loss, and improves the accuracy of the model in predicting network links with direction differences.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network link prediction technology, specifically to a directed network link prediction network training method, application method, device, and medium. Background Technology

[0002] In the real world, many complex systems can be modeled using graphs or networks, such as social networks, transportation networks, and biomolecular interaction networks. Accurately predicting potential links in these networks is crucial for understanding network structure, optimizing network performance, and discovering new connections.

[0003] Link prediction methods include traditional similarity metrics and graph neural networks (GNNs). Traditional similarity metrics, such as common neighbor methods and Jaccard coefficient methods, are simple and intuitive, but they struggle to capture high-order structural information within the network. Compared to traditional methods, GNN-based link prediction can automatically learn low-dimensional embeddings of nodes, demonstrating superior performance in feature extraction and representation learning. However, in many real-world networks, links often exhibit strong directionality, reflecting the asymmetry of interactions between nodes. For example, in social networks, a user following a blogger may not necessarily follow back, demonstrating the asymmetry of follow relationships. Existing methods, whether similarity metrics or GNNs, struggle to effectively utilize this directional information, resulting in poor accuracy in predicting links in networks with directional differences.

[0004] Therefore, existing technologies have difficulty effectively utilizing the directional information of such links, resulting in poor accuracy in predicting network links with directional differences. Summary of the Invention

[0005] In view of this, it is necessary to provide a directed network link prediction network training method, application method, device and medium to solve the problem that in the existing technology, it is difficult to effectively utilize the directional information of such links, resulting in poor accuracy in predicting network links with directional differences.

[0006] To address the aforementioned technical problems, this invention provides a method for training a directed network link prediction network, comprising: The node embedding representation is obtained by performing a low-rank approximation on the acquired directed graph, and a node pair dataset is constructed based on the node embedding representation. The node pair dataset is input into the initial directed network link prediction network. Feature extraction is performed on the node pair dataset to obtain node pair embedding features. Direction discrimination is performed on the node pair embedding features to obtain the direction type probability distribution. Link prediction is performed on the node pair embedding features to obtain the link existence probability. The direction discrimination adversarial loss is determined based on the direction type probability distribution. The link prediction loss is determined based on the link existence probability. The initial directed network link prediction network is iteratively trained based on the direction discrimination adversarial loss and the link prediction loss to obtain the fully trained directed network link prediction network.

[0007] In one possible implementation, a low-rank approximation is performed on the obtained directed graph to obtain node embedding representations, and a node pair dataset is constructed based on these node embedding representations, including: The node embedding representation is obtained by performing a low-rank approximation on the acquired directed graph based on the truncated singular value decomposition method. Positive sample node pairs are constructed based on the node embedding representation, and no-link node pairs are randomly generated. Negative sample node pairs are constructed based on the reverse node pairs of the positive sample node pairs and the no-link node pairs. Construct a node pair dataset based on positive and negative sample node pairs.

[0008] In one possible implementation, feature extraction is performed on the node pair dataset to obtain node pair embedding features, including: Multi-level feature mapping activation is performed on the node-pair dataset to obtain the node-pair embedded features; In the multi-level feature map activation, each level of feature map activation includes a fully connected layer feature map and an activation function.

[0009] In one possible implementation, orientation type probability distribution is obtained by performing orientation discrimination on the node-to-embedded features, and link existence probability is obtained by performing link prediction on the node-to-embedded features, including: After performing dimensionality reduction on the node's embedded features using the first feature mapping, the orientation type prediction is performed to obtain the orientation type probability distribution. After performing second feature mapping to reduce the dimensionality of the embedded features of the nodes, link prediction is performed to obtain the probability of link existence. Both the first feature map dimensionality reduction and the second feature map dimensionality reduction involve two fully connected layers and corresponding activation functions.

[0010] In one possible implementation, the direction discrimination adversarial loss is determined based on the direction type probability distribution, and the link prediction loss is determined based on the link existence probability, including: The direction discrimination adversarial loss is determined based on the direction type probability distribution and the cross-entropy function. The link prediction loss is determined based on the link prediction probability and the binary cross-entropy function.

[0011] In one possible implementation, the initial directed network link prediction network is iteratively trained adversarially based on the direction discrimination adversarial loss and the link prediction loss to obtain a fully trained directed network link prediction network, including: The network parameters for orientation discrimination are updated by backpropagating the adversarial loss gradient based on the orientation discrimination. The total predicted loss is determined based on the direction discrimination adversarial loss and the link prediction loss, and the network parameters for feature extraction and link prediction are updated by backpropagation based on the gradient of the total predicted loss. Evaluate the prediction performance of the directed link prediction network, iterate the training until the prediction performance no longer improves, and obtain a fully trained directed link prediction network.

[0012] In one possible implementation, evaluating the performance of directed network link prediction includes: Construct a node pair test set and determine the prediction performance of the directed network link prediction network on the node pair test set based on the area under the ROC curve method.

[0013] On the other hand, the present invention also provides a directed network link prediction network application method, comprising: Obtain the directed graph of the network to be predicted; The directed graph of the network to be predicted is input into the trained directed network link prediction network to obtain the network link prediction results. Among them, the fully trained directed network link prediction network is determined according to the above-mentioned directed network link prediction network training method.

[0014] On the other hand, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the above-described directed network link prediction network training method and / or the above-described directed network link prediction network application method.

[0015] On the other hand, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the above-described directed network link prediction network training method and / or the above-described directed network link prediction network application method.

[0016] The beneficial effects of adopting the above implementation method are as follows: In the directed network link prediction network training method provided by the present invention, the directional information of the link is captured by performing directional discrimination on the node embedding features, and the directional discrimination adversarial loss and link prediction loss are used for iterative adversarial training to effectively utilize the directional information of the link and improve the accuracy of the model in predicting network links with directional differences. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating an embodiment of the directed network link prediction network training method provided by the present invention. Figure 2 This is a schematic diagram illustrating the process of constructing a dataset from node pairs according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the direction determination and link prediction process according to an embodiment of the present invention; Figure 4 A flowchart illustrating the direction discrimination adversarial loss and link prediction loss provided by this invention; Figure 5 This is a schematic diagram of the iterative adversarial training process according to an embodiment of the present invention; Figure 6 A flowchart is provided as an embodiment of the directed network link prediction network application method provided by the present invention. Figure 7 A schematic diagram of the structure of an embodiment of the electronic device provided by the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0020] It should be understood that the accompanying drawings are not drawn to scale. The flowcharts used in this invention illustrate operations implemented according to some embodiments of the invention. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or performed simultaneously. Furthermore, those skilled in the art, guided by the content of this invention, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.

[0021] Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor systems and / or microcontroller systems.

[0022] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0023] Figure 1 This is a flowchart illustrating an embodiment of the directed network link prediction network training method provided by the present invention, as shown below. Figure 1 As shown, the directed network link prediction network training method includes: S101. Perform a low-rank approximation on the obtained directed graph to obtain the node embedding representation, and construct a node pair dataset based on the node embedding representation; S102. Input the node pair dataset into the initial directed network link prediction network, extract features from the node pair dataset to obtain node pair embedding features, perform direction discrimination on the node pair embedding features to obtain the direction type probability distribution, perform link prediction on the node pair embedding features to obtain the link existence probability, determine the direction discrimination adversarial loss based on the direction type probability distribution, determine the link prediction loss based on the link existence probability, and iteratively train the initial directed network link prediction network based on the direction discrimination adversarial loss and the link prediction loss to obtain the fully trained directed network link prediction network.

[0024] Compared with existing technologies, the directed network link prediction network training method provided by this invention captures the directional information of the link by performing directional discrimination on the node embedding features, and effectively utilizes the directional information of the link by iterative adversarial training through directional discrimination adversarial loss and link prediction loss, thereby improving the accuracy of the model in predicting network links with directional differences.

[0025] In some embodiments of the present invention Figure 2 This is a schematic diagram illustrating the process of constructing a dataset from node pairs according to an embodiment of the present invention, such as... Figure 2 As shown, a low-rank approximation is performed on the obtained directed graph to obtain the node embedding representation. A node pair dataset is then constructed based on the node embedding representation, including: S201. The node embedding representation is obtained by performing a low-rank approximation on the obtained directed graph based on the truncated singular value decomposition method. S202. Construct positive sample node pairs based on node embedding representation, randomly generate no-link node pairs that do not have links, and construct negative sample node pairs based on the reverse node pairs of positive sample node pairs and no-link node pairs. S203. Construct a node pair dataset based on positive sample node pairs and negative sample node pairs.

[0026] Specifically, in this embodiment, directed network links are represented in the form of a graph. For a given directed graph... ,in Represents a set of nodes. Representing a set of directed edges, the embodiment uses TSVD (Truncated Singular Value Decomposition) to process the adjacency matrix of the graph. We perform a low-rank approximation to obtain the initial node embedding representation.

[0027] First, the implementation example uses the adjacency matrix. Perform SVD decomposition to obtain ,in and It is an orthogonal matrix. It is a diagonal matrix. And select... The left and right singular vectors corresponding to the maximal singular values ​​are used to obtain the truncated singular value decomposition. The example uses the method of taking... Each row in the vector serves as the initial embedding vector for the corresponding node, i.e., the node's embedding vector. The node embedding is represented as The resulting initial node embedding representation can preserve the structural information of the original graph in a low-dimensional space.

[0028] Then, the implementation example uses the node embedding representation obtained from initialization for the graph. Each directed edge in Construct training samples .in, Indicates the starting node Embedded vector, Indicates the termination node Embedded vector, A binary label (0 or 1) indicating whether a link exists between nodes. Indicates the direction type of the link (0 indicates from). arrive 1 indicates from arrive The example uses these training samples as positive samples, randomly selects some of the reversed node pairs of the positive samples as negative samples, and then randomly generates negative samples for the non-existent node pairs. The underscore indicates that the orientation type of the node pair is not a concern. Additionally, the implementation example requires maintaining a balance between the number of positive and negative samples, and merging the resulting positive and negative samples to form a node pair dataset.

[0029] In some embodiments of the present invention, feature extraction is performed on the node pair dataset to obtain node pair embedding features, including: Multi-level feature mapping activation is performed on the node-pair dataset to obtain the node-pair embedded features; In the multi-level feature map activation, each level of feature map activation includes a fully connected layer feature map and an activation function.

[0030] Specifically, in this embodiment, the feature extractor performs feature extraction on the node-pair dataset through multi-level feature mapping activation. This multi-level feature mapping activation includes four network layers, each consisting of a fully connected layer and a corresponding ReLU activation function, which maps features onto the input node-pair dataset or features obtained from the previous layer. The input to the first network layer is the concatenation of the embedding vectors of the start and end nodes. , dimension The fourth network layer outputs the node pair embedding features. , dimension .

[0031] In some embodiments of the present invention Figure 3 This is a schematic diagram of the direction determination and link prediction process according to an embodiment of the present invention, as shown below. Figure 3 As shown, direction type probability distribution is obtained by performing direction discrimination on the node-embedded features, and link existence probability is obtained by performing link prediction on the node-embedded features, including: S301. After performing the first feature mapping to reduce the dimension of the embedded features of the nodes, the orientation type prediction is performed to obtain the orientation type probability distribution. S302. After performing second feature mapping to reduce the dimension of the embedded features of the nodes, link prediction is performed to obtain the probability of link existence. Both the first feature map dimensionality reduction and the second feature map dimensionality reduction involve two fully connected layers and corresponding activation functions.

[0032] Specifically, in this embodiment, both the direction discriminator and the link predictor consist of two feature mapping layers and an output layer. In the direction discriminator, both feature mapping layers are composed of fully connected layers and the ReLU activation function, used to perform feature mapping and dimensionality reduction on the embedded features of the nodes. Finally, the output layer of the direction discriminator, which predicts the direction type, maps the features to a probability distribution of the direction type with a dimension of 2 and the Softmax activation function. Similarly, in the link predictor, both feature mapping layers are composed of fully connected layers and the ReLU activation function. Finally, the output layer of the link predictor, which predicts the link, maps the features to the link existence probability with a dimension of 1 and the Sigmoid activation function.

[0033] In some embodiments of the present invention Figure 4 A flowchart illustrating the direction determination discrimination adversarial loss and link prediction loss provided by this invention is shown below. Figure 4As shown, the direction discrimination adversarial loss is determined based on the direction type probability distribution, and the link prediction loss is determined based on the link existence probability, including: S401. Determine the direction discrimination adversarial loss based on the direction type probability distribution and the cross-entropy function; S402. Determine the link prediction loss based on the link prediction probability and the binary cross-entropy function.

[0034] Specifically, in this embodiment, the loss function comprises two parts, where the discrimination loss of the direction discriminator is the cross-entropy loss, expressed by the formula:

[0035] in, This is a true direction type tag. This represents the probability predicted by the direction discriminator.

[0036] The loss function of the link predictor is the binary cross-entropy loss, expressed by the formula:

[0037] in, For real labels, The probability is predicted by the link predictor.

[0038] In some embodiments of the present invention Figure 5 This is a schematic diagram of the iterative adversarial training process according to an embodiment of the present invention, as shown below. Figure 5 As shown, the initial directed network link prediction network is iteratively trained based on the direction discrimination adversarial loss and the link prediction loss to obtain the fully trained directed network link prediction network, including: S501. Update the network parameters for orientation discrimination by backpropagating the adversarial loss gradient based on the orientation discrimination. S502. Determine the total predicted loss based on the direction discrimination adversarial loss and the link prediction loss, and update the network parameters for feature extraction and link prediction based on the gradient of the total predicted loss through backpropagation. S503. Evaluate the prediction performance of the directed link prediction network, iterate the training until the prediction performance no longer improves, and obtain the fully trained directed link prediction network.

[0039] Specifically, in this embodiment, the total prediction loss is obtained by combining the direction discrimination adversarial loss and the link prediction loss, expressed by the formula:

[0040] in, It is a balancing factor used to control the proportion of direction discrimination and adversarial loss in the total loss.

[0041] In this embodiment, the total loss function represents the adversarial training of the direction discriminator and the link predictor. This embodiment takes into account that bidirectional node pairs can play a better training role in the prediction network training process. Therefore, this loss function encourages the feature extractor to extract node pair representations that are helpful for link prediction but not for direction discrimination.

[0042] In each training iteration, the parameters of the direction discriminator are first trained and updated using gradient backpropagation based on the direction-discriminative adversarial loss. Then, the parameters of the feature extractor and link predictor are trained using gradient backpropagation based on the total loss. This adversarial training method enables the feature extractor to learn node embedding representations with orientation invariance.

[0043] Meanwhile, during iterative training, the model performance is evaluated on the validation set at regular intervals, and the model hyperparameters and training strategy are adjusted based on the performance on the validation set. When the performance on the validation set no longer improves, the training process is stopped, and the current model parameters are saved as the final training result.

[0044] In some embodiments of the present invention, evaluating the performance of directed network link prediction includes: Construct a node pair test set and determine the prediction performance of the directed network link prediction network on the node pair test set based on the area under the ROC curve method.

[0045] Specifically, when evaluating model performance, the implementation uses AUC (Area Under ROC Curve) as an evaluation metric. This method first constructs an ROC curve (receiver operating characteristic curve) using a validation set and validation structure. Then, it calculates the area under the ROC curve as the model's evaluation metric.

[0046] In summary, this invention captures the directional information of links by performing directional discrimination on node embedding features, and effectively utilizes the directional information of links through iterative adversarial training using directional discrimination adversarial loss and link prediction loss, thereby improving the accuracy of the model in predicting network links with directional differences.

[0047] This invention also provides a method for predicting directed network links, combined with... Figure 6 Let's take a look. Figure 6 A flowchart illustrating an embodiment of the directed network link prediction network application method provided by the present invention includes: S601. Obtain the directed graph of the network to be predicted; S602. Input the directed graph of the network to be predicted into the trained directed network link prediction network to obtain the network link prediction result.

[0048] In an embodiment of the present invention, firstly, the directed graph of the network to be predicted is effectively acquired, and then the network link prediction network trained as described above is used to effectively predict the network to be predicted, thereby outputting the network link prediction result.

[0049] The present invention also provides an electronic device 700, such as... Figure 7 As shown, Figure 7 This is a schematic diagram of an embodiment of the electronic device provided by the present invention. The electronic device 700 includes a processor 701, a memory 702, and a computer program stored in the memory 702 and executable on the processor 701. When the processor 701 executes the program, it implements the above-mentioned directed network link prediction network training method and / or the above-mentioned directed network link prediction network application method.

[0050] In a preferred embodiment, the electronic device further includes a display 703 for displaying the process by which the processor 701 executes the directed network link prediction network training method and / or the directed network link prediction network application method.

[0051] The processor 701 may be an integrated circuit chip with signal processing capabilities. The processor 701 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP) or an application-specific integrated circuit (ASIC). It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can also be a microprocessor or any conventional processor.

[0052] The memory 702 can be, but is not limited to, random access memory (RAM), read-only memory (ROM), secure digital storage (SD card), flash memory card, etc. The memory 702 stores programs. After receiving an execution instruction, the processor 701 executes the program. The process definition method disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 701, or implemented by the processor 701.

[0053] The display 703 can be an LED display, an LCD display, or a touch screen display, etc. The display 703 is used to display various information from the electronic device 700.

[0054] Understandable Figure 7 The structure shown is only a schematic diagram of one possible structure of electronic device 700. Electronic device 700 may also include more than one of the following: Figure 7 Show more or fewer components. Figure 7 The components shown can be implemented using hardware, software, or a combination thereof.

[0055] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described directed network link prediction network training method and / or the above-described directed network link prediction network application method.

[0056] Generally, computer instructions for implementing the methods of the present invention can be carried on any combination of one or more computer-readable storage media. Non-transitory computer-readable storage media can include any computer-readable medium except for transient, propagating signals themselves.

[0057] Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0058] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for training a directed network link prediction network, characterized in that, include: The obtained directed graph is approximated by a low-rank method to obtain a node embedding representation, and a node pair dataset is constructed based on the node embedding representation. The node pair dataset is input into the initial directed network link prediction network. Feature extraction is performed on the node pair dataset to obtain node pair embedding features. Direction discrimination is performed on the node pair embedding features to obtain the direction type probability distribution. Link prediction is performed on the node pair embedding features to obtain the link existence probability. The direction discrimination adversarial loss is determined based on the direction type probability distribution. The link prediction loss is determined based on the link existence probability. The initial directed network link prediction network is iteratively adversarially trained based on the direction discrimination adversarial loss and the link prediction loss to obtain a fully trained directed network link prediction network. The step of determining the direction discrimination adversarial loss based on the direction type probability distribution and determining the link prediction loss based on the link existence probability includes: The direction discrimination adversarial loss is determined based on the direction type probability distribution and the cross-entropy function. The link prediction loss is determined based on the link prediction probability and the binary cross-entropy function. The step of iteratively adversarially training the initial directed network link prediction network based on the direction discrimination adversarial loss and the link prediction loss to obtain a fully trained directed network link prediction network includes: The network parameters for the direction discrimination are updated based on the backpropagation of the adversarial loss gradient. The total predicted loss is determined based on the direction discrimination adversarial loss and the link prediction loss, and the network parameters of the feature extraction and the link prediction are updated by backpropagation based on the gradient of the total predicted loss. The prediction performance of the directed network link prediction network is evaluated, and the network is iteratively trained until the prediction performance no longer improves, thus obtaining a fully trained directed network link prediction network.

2. The directed network link prediction network training method according to claim 1, characterized in that, The process of performing a low-rank approximation on the acquired directed graph to obtain a node embedding representation, and constructing a node pair dataset based on the node embedding representation, includes: The node embedding representation is obtained by performing a low-rank approximation on the acquired directed graph based on the truncated singular value decomposition method. Positive sample node pairs are constructed based on the node embedding representation, and no-link node pairs are randomly generated. Negative sample node pairs are constructed based on the reverse node pairs of the positive sample node pairs and the no-link node pairs. Construct a node pair dataset based on the positive sample node pairs and the negative sample node pairs.

3. The directed network link prediction network training method according to claim 1, characterized in that, The step of extracting node pair embedding features from the node pair dataset includes: Multi-level feature mapping activation is performed on the node pair dataset to obtain node pair embedding features; In the multi-level feature mapping activation, each level of feature mapping activation includes a fully connected layer feature map and an activation function.

4. The directed network link prediction network training method according to claim 1, characterized in that, The step of determining the direction type probability distribution by performing direction discrimination on the embedded features of the node, and predicting the link existence probability by performing link prediction on the embedded features of the node, includes: After performing dimensionality reduction on the embedded features of the node using the first feature mapping, the orientation type prediction is performed to obtain the orientation type probability distribution; After performing a second feature mapping to reduce the dimensionality of the embedded features of the nodes, link prediction is performed to obtain the probability of link existence. Both the first feature map dimensionality reduction and the second feature map dimensionality reduction contain two fully connected layers and corresponding activation functions.

5. The directed network link prediction network training method according to claim 1, characterized in that, The evaluation of the directed network link prediction network prediction performance includes: Construct a node pair test set, and determine the prediction performance of the directed network link prediction network on the node pair test set based on the area under the ROC curve method.

6. A method for predicting directed network links, characterized in that, include: Obtain the directed graph of the network to be predicted; The directed graph of the network to be predicted is input into the trained directed network link prediction network to obtain the network link prediction result. The fully trained directed network link prediction network is determined according to the directed network link prediction network training method according to any one of claims 1 to 5.

7. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the directed network link prediction network training method according to any one of claims 1 to 5 and / or the directed network link prediction network application method according to claim 6.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the directed network link prediction network training method according to any one of claims 1 to 5 and / or the directed network link prediction network application method according to claim 6.

Citation Information

Patent Citations

  • Graph neural network model defense method and device based on generative adversarial network

    CN113378160A

  • Social network link prediction method and device, electronic equipment and medium

    CN116384563A