Node classification method, device, computer equipment and storage medium for heterogeneous graph

By embedding the topological structure of the heterogeneous graph and supplementing the attributes referenced by the external knowledge base, the problem of missing node attributes in the heterogeneous graph is solved, the quality of the graph and the accuracy of node classification are improved, and more effective isomers are realized. Node classification.

CN118427715BActive Publication Date: 2024-09-17SOUTH CHINA NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410888430.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-17
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Existing technologies are easily affected by noise and missing attributes when processing low-quality heterogeneous graphs, resulting in poor performance in node classification tasks, and existing methods have limited effectiveness in improving graph quality.

Method used

By using the topological structure information of the heterogeneous graph for graph embedding, the node attribute and edge relationship embedding matrix is ​​obtained, and the external knowledge base is quoted to supplement the attributes of the nodes to be supplemented with attributes, reconstruct the node attribute matrix of the heterogeneous graph, and solve the problem of node attributes. Missing issues improve the quality of the diagram.

Benefits of technology

The quality of heterogeneous graphs is improved, making it more accurate and effective in node classification tasks, and improving the accuracy of classification recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118427715B
    Figure CN118427715B
Patent Text Reader

Abstract

The present invention relates to the field of information technology, and in particular to a node classification method, device, computer equipment and storage medium for a heterogeneous graph. The method uses the topological structure information of the heterogeneous graph to perform graph embedding, obtains a heterogeneous graph node attribute embedding matrix and a heterogeneous graph edge relationship embedding matrix, references an external knowledge base, obtains an external knowledge base subgraph node attribute embedding matrix and an external knowledge base subgraph edge relationship embedding matrix corresponding to the nodes to be supplemented with attributes in the heterogeneous graph, combines the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix and the external knowledge base subgraph edge relationship embedding matrix corresponding to the nodes to be supplemented with attributes, supplements the attributes of the nodes to be supplemented, obtains a reconstructed heterogeneous graph node attribute embedding matrix, solves the problem of missing node attributes in low-quality heterogeneous graphs, makes it more effectively applied to downstream node classification tasks, and realizes more accurate heterogeneous graph node classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a method, device, computer equipment and storage medium for node classification of a heterogeneous graph. Background Art

[0002] A heterogeneous graph is a graph with different types of nodes and edges, which can be used to represent various complex relationship networks, such as social networks, biological networks, and transportation networks. Node classification is one of the important tasks in heterogeneous graph analysis, which involves classifying nodes into different categories in order to better understand their relationships and functions.

[0003] As an effective method for processing graph structures, graph neural networks have attracted more and more attention since their introduction, and have achieved excellent results in various downstream tasks such as node classification. However, most of the current research on graph neural networks ignores the quality issues of heterogeneous graphs themselves. Most heterogeneous graphs in the real world inevitably have noise or missing attributes, which will directly affect the performance of downstream tasks of the model.

[0004] Some previous studies have used simple one-hot encoding vectors to represent this type of problem. This method is mostly irrelevant to the original image and easily introduces noise. Other studies have used existing attributes of the original image to complete the image, but the improvement it brings is limited when the original image itself is of poor quality. Summary of the invention

[0005] Based on this, the present invention provides a node classification method, device, computer equipment and storage medium for a heterogeneous graph, which utilizes the topological structure information of the heterogeneous graph to perform graph embedding, obtains the heterogeneous graph node attribute embedding matrix and the heterogeneous graph edge relationship embedding matrix, references an external knowledge base, obtains the external knowledge base subgraph node attribute embedding matrix and the external knowledge base subgraph edge relationship embedding matrix corresponding to the nodes to be supplemented with attributes in the heterogeneous graph, combines the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix and the external knowledge base subgraph edge relationship embedding matrix corresponding to the nodes to be supplemented with attributes, supplements the attributes of the nodes to be supplemented, obtains the reconstructed heterogeneous graph node attribute embedding matrix, solves the problem of missing node attributes in low-quality heterogeneous graphs, improves the quality of heterogeneous graphs, enables them to be more effectively applied to downstream node classification tasks, and achieves more accurate heterogeneous node classification.

[0006] Thus, the emoticon package to be tested can be classified and identified more comprehensively, and the accuracy of classification and identification of the emoticon package to be tested can be improved. The technical method is as follows:

[0007] In a first aspect, an embodiment of the present application provides a node classification method for a heterogeneous graph, comprising the following steps:

[0008] Obtaining topological structure information of a heterogeneous graph to be classified and a preset heterogeneous graph node classification model, wherein the heterogeneous graph node classification model includes a pre-embedded module, an attribute supplement module and a node classification module;

[0009] Inputting the topological structure information of the heterogeneous graph to be classified into the pre-embedding module, performing graph embedding on the heterogeneous graph to be classified, and obtaining a heterogeneous graph node attribute embedding matrix and a heterogeneous graph edge relationship embedding matrix;

[0010] Determine a number of nodes to be supplemented with attributes of the heterogeneous graph to be classified, and obtain, according to a preset external knowledge base, an external knowledge base subgraph node attribute embedding matrix and an external knowledge base subgraph edge relationship embedding matrix corresponding to the number of nodes to be supplemented with attributes;

[0011] Inputting the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix corresponding to the plurality of nodes to be supplemented with attributes, and the external knowledge base subgraph edge relationship embedding matrix into the attribute supplementation module, supplementing the attributes of the plurality of nodes to be supplemented with attributes in the heterogeneous graph to be classified, and obtaining a reconstructed heterogeneous graph node attribute embedding matrix;

[0012] The reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified are input into the node classification module to perform node classification, so as to obtain the node classification result of the heterogeneous graph to be classified.

[0013] In a second aspect, an embodiment of the present application provides a node classification device for a heterogeneous graph, including:

[0014] A data acquisition module, used to obtain the topological structure information of the heterogeneous graph to be classified and a preset heterogeneous graph node classification model, wherein the heterogeneous graph node classification model includes a pre-embedded module, an attribute supplement module and a node classification module;

[0015] An embedding matrix construction module, used for inputting the topological structure information of the heterogeneous graph to be classified into the pre-embedding module, performing graph embedding on the heterogeneous graph to be classified, and obtaining a heterogeneous graph node attribute embedding matrix and a heterogeneous graph edge relationship embedding matrix;

[0016] An external knowledge acquisition module is used to obtain, according to a preset external knowledge base, a plurality of nodes to be supplemented with attributes of the heterogeneous graph to be classified, an external knowledge base subgraph node attribute embedding matrix and an external knowledge base subgraph edge relationship embedding matrix corresponding to the plurality of nodes to be supplemented with attributes;

[0017] An embedding matrix reconstruction module is used to input the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix corresponding to a number of nodes to be supplemented with attributes, and the external knowledge base subgraph edge relationship embedding matrix into the attribute supplementation module, perform attribute supplementation on a number of nodes to be supplemented with attributes in the heterogeneous graph to be classified, and obtain a reconstructed heterogeneous graph node attribute embedding matrix;

[0018] The heterogeneous graph node classification module is used to input the reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified into the node classification module for node classification, so as to obtain the node classification result of the heterogeneous graph to be classified.

[0019] In a third aspect, an embodiment of the present application provides a computer device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor; when the computer program is executed by the processor, the steps of the node classification method for heterogeneous graphs as described in the first aspect are implemented.

[0020] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the node classification method for a heterogeneous graph as described in the first aspect are implemented.

[0021] In this embodiment, a node classification method, apparatus, computer equipment and storage medium for a heterogeneous graph are provided, and graph embedding is performed using the topological structure information of the heterogeneous graph to obtain a heterogeneous graph node attribute embedding matrix and a heterogeneous graph edge relationship embedding matrix, and an external knowledge base is referenced to obtain an external knowledge base subgraph node attribute embedding matrix and an external knowledge base subgraph edge relationship embedding matrix corresponding to the nodes to be supplemented with attributes in the heterogeneous graph. The nodes to be supplemented with attributes are supplemented with the node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, and the external knowledge base subgraph node attribute embedding matrix and the external knowledge base subgraph edge relationship embedding matrix are combined to obtain a reconstructed heterogeneous graph node attribute embedding matrix, which solves the problem of missing node attributes in low-quality heterogeneous graphs, improves the quality of heterogeneous graphs, and enables them to be more effectively applied to downstream node classification tasks, thereby achieving more accurate heterogeneous node classification.

[0022] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of a process flow of a node classification method for a heterogeneous graph provided in one embodiment of the present application;

[0024] Figure 2A schematic diagram of the process of S2 in a node classification method for a heterogeneous graph provided in one embodiment of the present application;

[0025] Figure 3 A schematic diagram of the process of S4 in a node classification method for a heterogeneous graph provided in one embodiment of the present application;

[0026] Figure 4 A schematic diagram of the process of S5 in a node classification method for a heterogeneous graph provided in one embodiment of the present application;

[0027] Figure 5 A schematic diagram of the process of S6 in a node classification method for a heterogeneous graph provided in another embodiment of the present application;

[0028] Figure 6 A schematic diagram of the structure of a multimodal expression package classification device provided in one embodiment of the present application;

[0029] Figure 7 A schematic diagram of the structure of a computer device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0031] The terms used in this application are for the purpose of describing the target embodiments only and are not intended to limit the application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0032] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".

[0033] See also Figure 1 , Figure 1A schematic flow chart of a node classification method for a heterogeneous graph provided in one embodiment of the present application includes the following steps:

[0034] S1: Obtain the topological structure information of the heterogeneous graph to be classified and the preset heterogeneous graph node classification model.

[0035] The execution subject of the node classification method for heterogeneous graphs of the present application is a classification device of the node classification method for heterogeneous graphs (hereinafter referred to as classification device).

[0036] In an optional embodiment, the classification device may be a computer device, a server, or a server cluster formed by combining multiple computer devices.

[0037] In this embodiment, the classification device may obtain the topological structure information of the heterogeneous graph to be classified input by the user, or may obtain the topological structure information of the heterogeneous graph to be classified from a preset database, wherein the topological structure information of the heterogeneous graph to be classified is as follows:

[0038] G = (V, E, T, R, A)

[0039] Where G is the heterogeneous graph to be classified, V is the node set, E is the edge set, T is the node type set, R is the edge type set, A is the node attribute set, and the sum of the node type and the edge type is greater than 2. Each node in G has its node type, and similarly, each edge in G has an edge type. A is the set of node attributes in G, and G contains nodes with missing attributes. The node attribute set includes node attributes of several nodes, which are used to represent the feature information of nodes in the heterogeneous graph.

[0040] A node classification model of a heterogeneous graph preset by a classification device, wherein the heterogeneous graph node classification model includes a pre-embedded module, an attribute supplement module and a node classification module.

[0041] S2: Input the topological structure information of the heterogeneous graph to be classified into the pre-embedding module, perform graph embedding on the heterogeneous graph to be classified, and obtain a heterogeneous graph node attribute embedding matrix and a heterogeneous graph edge relationship embedding matrix.

[0042] Due to the heterogeneity of its nodes, heterogeneous graphs are different from homogeneous graphs that only consider topological information during node embedding. The embedding of heterogeneous graphs requires extracting node representations from complex network structures and node attributes. In this embodiment, the classification device inputs the topological structure information of the heterogeneous graph to be classified into the pre-embedding module, performs graph embedding on the heterogeneous graph to be classified, and obtains the heterogeneous graph node attribute embedding matrix and the heterogeneous graph edge relationship embedding matrix.

[0043] The pre-embedding module includes a heterogeneous network embedding module and a word embedding module. Figure 2, Figure 2 The schematic flow diagram of S2 in the node classification method of a heterogeneous graph provided in one embodiment of the present application includes steps S21 to S23, which are specifically as follows:

[0044] S21: Input the topological structure information of the heterogeneous graph to be classified into the heterogeneous network embedding module, map the node attributes of several nodes according to the node attribute set in the topological structure information, obtain the mapped node attribute embedding representation of several nodes of the heterogeneous graph to be classified, perform initialization processing according to the mapped node attribute embedding representation of several nodes of the heterogeneous graph to be classified, and construct the initial node attribute embedding matrix of the heterogeneous graph to be classified; construct the domain node set of the heterogeneous graph to be classified according to the node attribute set and node type set in the topological structure information and the random walk strategy guided by meta-path.

[0045] The heterogeneous network embedding module can initialize the embedding of the heterogeneous graph based on the topological information of the heterogeneous graph, and generate a heterogeneous node sequence with rich semantics by using a random walk guided by a meta-path.

[0046] Although the topological information of the heterogeneous graph is universally present in each node, not every node of the heterogeneous graph has node attributes. In this embodiment, the classification device inputs the topological structure information of the heterogeneous graph to be classified into the heterogeneous network embedding module, and maps the node attributes of several nodes according to the node attribute set in the topological structure information of the heterogeneous graph to be classified, and obtains the mapped node attribute embedding representation of several nodes of the heterogeneous graph to be classified. Specifically, the classification device maps the node attributes of several nodes of the heterogeneous graph to be classified into a low-dimensional vector space, and constructs the mapped node attribute embedding representation of several nodes of the heterogeneous graph to be classified, so as to capture the relationship and structural information between nodes, and reflect the local and global structural characteristics of nodes.

[0047] The classification device performs initialization processing according to the mapped node attribute embedding representations of several nodes of the heterogeneous graph to be classified, and constructs an initial node attribute embedding matrix of the heterogeneous graph to be classified, wherein the initial node attribute embedding matrix includes the initial node attribute embedding representations of several nodes, and the initial node attribute embedding representations are converted by the heterogeneous network embedding module based on the corresponding mapped node attribute embedding representations of the nodes.

[0048] The heterogeneous network embedding module constructs a domain node set of the heterogeneous graph to be classified according to a set of node attributes and a set of node types in the topological structure information of the heterogeneous graph to be classified and a random walk strategy guided by a meta-path, wherein the domain node set of the heterogeneous graph to be classified includes domain node subsets of several node types of several nodes.

[0049] S22: Input the initial node attribute embedding matrix of the heterogeneous graph to be classified and the domain node set into the word embedding module, and adopt the maximization conditional probability calculation method to obtain the target conditional probability of several nodes of the heterogeneous graph to be classified; according to the target conditional probability, obtain the first node attribute embedding representation of several nodes of the heterogeneous graph to be classified, and construct the heterogeneous graph node attribute embedding matrix.

[0050] The word embedding module adopts a skip-gram model to maintain the proximity between a node and its domain nodes.

[0051] In this embodiment, the classification device inputs the initial node attribute embedding matrix of the heterogeneous graph to be classified and the domain node set into the word embedding module, and adopts the maximum conditional probability calculation method to obtain the target conditional probability of several nodes of the heterogeneous graph to be classified; according to the target conditional probability, the first node attribute embedding representation of several nodes of the heterogeneous graph to be classified is obtained, and the heterogeneous graph node attribute embedding matrix is ​​constructed, as follows:

[0052] The classification device inputs the initial node attribute embedding matrix and the domain node set of the heterogeneous graph to be classified into the word embedding module, and obtains the conditional probabilities of the several nodes of the heterogeneous graph to be classified and the corresponding domain node subsets of the several node types according to the initial node attribute embedding matrix, the domain node subsets of the several node types of the several nodes in the domain node set, and the preset conditional probability calculation algorithm, wherein the conditional probability calculation algorithm is:

[0053]

[0054] In the formula, Given the initial node attribute embedding matrix v After nodes, v The node corresponds to the first node in the domain node subset. The conditional probability of a node, is the first The initial node attribute embedding representation of domain nodes, is the initial node attribute embedding matrix v The initial node attribute embedding representation of nodes, is the initial node attribute embedding matrix u The initial node attribute embedding representation of each node.

[0055] The classification device calculates and iterates the conditional probabilities of the several nodes of the heterogeneous graph to be classified and the corresponding domain node subsets of the several node types according to a preset maximization iterative algorithm, so as to maximize the conditional probabilities of the several nodes and the corresponding domain node subsets of the several node types, and obtain the target conditional probabilities of the several nodes, wherein the maximization iterative algorithm is:

[0056]

[0057] In the formula, To obtain the maximum value function, A subset of domain nodes.

[0058] S23: According to the edge set in the topological structure information of the heterogeneous graph to be classified, the first node attribute embedding representations of the nodes of the heterogeneous graph to be classified are subtracted one by one, and the subtraction results between several nodes are obtained as the first edge relationship embedding representations of the corresponding edges, and the edge relationship embedding matrix of the heterogeneous graph is constructed.

[0059] In this embodiment, the classification device subtracts the first node attribute embedding representations of the two nodes of the corresponding edges in the initial node attribute embedding matrix of the heterogeneous graph to be classified from each other according to the edge set in the topological structure information of the heterogeneous graph to be classified, so as to model the relationship between the two nodes, obtain the subtraction results between several nodes as the first edge relationship embedding representations of the corresponding edges, and construct the edge relationship embedding matrix of the heterogeneous graph.

[0060] S3: Determine a number of nodes to be supplemented with attributes of the heterogeneous graph to be classified, and obtain, according to a preset external knowledge base, an external knowledge base subgraph node attribute embedding matrix and an external knowledge base subgraph edge relationship embedding matrix corresponding to the number of nodes to be supplemented with attributes.

[0061] The external knowledge base is composed of a large number of knowledge subgraphs. In this embodiment, the classification device determines several nodes to be supplemented with attributes of the heterogeneous graph to be classified, and obtains the external knowledge base subgraph node attribute embedding matrix and the external knowledge base subgraph edge relationship embedding matrix corresponding to the several nodes to be supplemented with attributes according to the preset external knowledge base, wherein the external knowledge base includes the topological structure information of several external knowledge base subgraphs.

[0062] Specifically, the classification device uses entity linking to find the entities corresponding to each node to be supplemented with attributes in the external knowledge base according to a number of nodes to be supplemented with attributes, determines the external knowledge base subgraph where the entities corresponding to the several nodes to be supplemented with attributes are located, obtains the topological structure information of the external knowledge base subgraph, and adopts the TransE method according to the topological structure information of the external knowledge base subgraph. The TransE method is a model for knowledge graph embedding. The core idea is to map the entities and relationships in the knowledge graph into the same low-dimensional continuous vector space for computer processing, and construct the original external knowledge base subgraph node attribute embedding matrices corresponding to the several nodes to be supplemented with attributes and the original external knowledge base subgraph edge relationship embedding matrices.

[0063] In order to avoid adding too much topological structure information of the external knowledge base subgraph into the embedding representation as much as possible, thereby introducing too much knowledge graph noise, the classification device extracts the node attribute embedding representation associated with the entity corresponding to the node to be supplemented in the corresponding original external knowledge base subgraph node attribute embedding matrix, and extracts the edge relationship embedding representation associated with the entity corresponding to the node to be supplemented in the corresponding original external knowledge base subgraph edge relationship embedding matrix, and constructs several external knowledge base subgraph node attribute embedding matrices and external knowledge base subgraph edge relationship embedding matrices corresponding to the nodes to be supplemented respectively. Specifically, the node attribute embedding representation associated with the entity corresponding to the node to be supplemented can be the node attribute embedding representation of the neighboring node connected to the entity, and the edge relationship attribute embedding representation associated with the entity corresponding to the node to be supplemented can be the edge relationship attribute embedding representation of the neighboring node connected to the entity.

[0064] In an optional embodiment, since the distribution of node degrees in the external knowledge base generally has a long tail problem, that is, the number of nodes with small degrees accounts for a large proportion, while the number of nodes with large degrees is small. Severe long tail distribution will make the obtained knowledge base information insufficient or redundant. In order to alleviate the long tail problem and balance the degree of the nodes, in view of the above problem, the classification device samples several second edge relationship embedding representations in the external knowledge base subgraph edge relationship embedding matrix corresponding to the constructed several nodes to be supplemented with attributes. Specifically, the classification device defines the sampling category (up sampling or down sampling) according to the preset hyperparameter K. When the number of several second edge relationship embedding representations in the external knowledge base subgraph edge relationship embedding matrix is ​​greater than the hyperparameter K, the several second edge relationship embedding representations in the external knowledge base subgraph edge relationship embedding matrix are downsampled, that is, they are randomly deleted to reduce the number of the second edge relationship embedding representations to K; conversely, for the nodes whose number of second edge relationship embedding representations in the external knowledge base subgraph edge relationship embedding matrix is ​​less than K, they are upsampled, that is, the neighboring nodes are randomly repeated to increase the number of the second edge relationship embedding representations to K.

[0065] S4: Input the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix corresponding to several nodes to be supplemented with attributes, and the external knowledge base subgraph edge relationship embedding matrix into the attribute supplementation module, perform attribute supplementation on several nodes to be supplemented with attributes in the heterogeneous graph to be classified, and obtain the reconstructed heterogeneous graph node attribute embedding matrix.

[0066] In this embodiment, the classification device inputs the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix corresponding to several nodes to be supplemented with attributes, and the external knowledge base subgraph edge relationship embedding matrix into the attribute supplementation module, performs attribute supplementation on several nodes to be supplemented with attributes in the heterogeneous graph to be classified, and obtains a reconstructed heterogeneous graph node attribute embedding matrix.

[0067] See also Figure 3 , Figure 3 The schematic flow diagram of S4 in the node classification method of a heterogeneous graph provided in one embodiment of the present application includes steps S41 to S44, which are specifically as follows:

[0068] S41: Based on a plurality of first edge relationship embedding representations of a plurality of nodes to be supplemented with attributes and a plurality of second edge relationship embedding representations in an edge relationship embedding matrix of an external knowledge base subgraph corresponding to the nodes to be supplemented with attributes, an attention calculation method is adopted to obtain an attention weight score set of each of the nodes to be supplemented with attributes.

[0069] In order to make the external knowledge base subgraph have different node attributes when facing different nodes in the heterogeneous graph, the attributes of the nodes of the heterogeneous graph are supplemented, that is, the node attributes of the external knowledge base subgraph that are strongly associated with the heterogeneous graph are obtained. In this embodiment, the classification device adopts an attention calculation method according to a plurality of first edge relationship embedding representations associated with a plurality of nodes to be supplemented with attributes in the edge relationship embedding matrix of the heterogeneous graph and a plurality of second edge relationship embedding representations in the edge relationship embedding matrix of the external knowledge base subgraph corresponding to the nodes to be supplemented with attributes, and obtains a plurality of attention weight score sets of the nodes to be supplemented with attributes according to a preset attention weight algorithm to capture the knowledge subgraph embedding related to the topological structure, and uses a relationship-aware method to calculate the knowledge subgraph in the external knowledge base related to the nodes to be supplemented with attributes of the heterogeneous graph to be classified and the importance of each node in the knowledge subgraph to the node to be supplemented with attributes, wherein the attention weight score set includes the attention weight scores between the plurality of first edge relationship embedding representations and the plurality of second edge relationship embedding representations, and the attention weight algorithm is:

[0070]

[0071] In the formula, is the node to be supplemented with attributes i The first edge relation embedding representation is the same as the j The attention weight score between the second edge relation embedding representations, is the node to be supplemented with attributes i The first edge relation embedding representation is , is the node to be supplemented with attributes j , The second edge relation embedding representation is W is the learnable parameter matrix, The external knowledge base subgraph edge relationship embedding matrix corresponding to the node to be supplemented with attributes, is the activation function, T is the transpose symbol.

[0072] S42: Perform weighted aggregation processing according to the attention weight score set and a number of second node attribute embedding representations in the corresponding external knowledge base subgraph node attribute embedding matrix to obtain a number of candidate node attribute embedding representations of the number of nodes to be supplemented with attributes.

[0073] In this embodiment, the classification device performs weighted aggregation processing based on the attention weight score set of the node to be supplemented with attributes and the second node attribute embedding representations in the external knowledge base subgraph node attribute embedding matrix corresponding to the node to be supplemented with attributes, based on a preset weighted aggregation algorithm, to obtain several candidate node attribute embedding representations of the nodes to be supplemented with attributes, and obtain a knowledge graph embedding representation that is more closely related to the topological structure of the heterogeneous graph as the candidate supplementary attributes of the node to be supplemented with attributes, wherein the weighted aggregation algorithm is:

[0074]

[0075] In the formula, is the node to be supplemented with attributes i The attribute embedding representation of candidate nodes is The attribute embedding matrix of the external knowledge base subgraph node corresponding to the node to be supplemented with attributes is j The second node attribute embedding representation, Embedding matrix for the attribute of subgraph nodes in external knowledge base.

[0076] S43: According to the first node attribute embedding representations of the plurality of nodes to be supplemented with attributes and the plurality of candidate node attribute embedding representations of the plurality of nodes to be supplemented with attributes, a cosine similarity calculation method is used to obtain the cosine similarity of the plurality of candidate node attribute embedding representations.

[0077] In this embodiment, the classification device uses a cosine similarity calculation method to obtain the cosine similarity of several candidate node attribute embedding representations of several nodes to be supplemented with attributes based on the first node attribute embedding representations of several nodes to be supplemented with attributes in the heterogeneous graph node attribute embedding matrix and several candidate node attribute embedding representations of several nodes to be supplemented with attributes.

[0078] S44: Compare the cosine similarities of several candidate node attribute embedding representations of the same node to be supplemented with attributes, and obtain several target node attribute embedding representations of the node to be supplemented with attributes; replace the first node attribute embedding representation of the corresponding node to be supplemented with attributes in the heterogeneous graph node attribute embedding matrix according to the target node attribute embedding representations of the node to be supplemented with attributes, and obtain the reconstructed heterogeneous graph node attribute embedding matrix.

[0079] In order to reduce noise, in this embodiment, the classification device compares the cosine similarities of several candidate node attribute embedding representations of the same node to be supplemented with attributes, takes the candidate node attribute embedding representation with the maximum cosine similarity as the target node attribute embedding representation, obtains the target node attribute embedding representation of the node to be supplemented with attributes, repeats the above method to obtain the target node attribute embedding representations of several nodes to be supplemented with attributes, as the node attribute supplements of the node to be supplemented with attributes.

[0080] The classification device replaces the first node attribute embedding representation of the corresponding node to be supplemented with attributes in the heterogeneous graph node attribute embedding matrix according to the target node attribute embedding representation of several nodes to be supplemented with attributes, and obtains the reconstructed heterogeneous graph node attribute embedding matrix, thereby improving the quality of the heterogeneous graph and making it more effectively applied to downstream node classification tasks.

[0081] S5: Inputting the reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified into the node classification module to perform node classification, and obtaining the node classification result of the heterogeneous graph to be classified.

[0082] The node classification module is a heterogeneous graph neural network ( HGNN ), in this embodiment, the classification device inputs the reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified into the node classification module to perform node classification, and obtains the node classification result of the heterogeneous graph to be classified, wherein the node classification result includes the classification results of several nodes.

[0083] The topological structure information of the heterogeneous graph is used to embed the graph and obtain the heterogeneous graph node attribute embedding matrix and the heterogeneous graph edge relationship embedding matrix. The external knowledge base is referenced to obtain the external knowledge base subgraph node attribute embedding matrix and the external knowledge base subgraph edge relationship embedding matrix corresponding to the nodes to be supplemented in the heterogeneous graph. Combined with the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix and the external knowledge base subgraph edge relationship embedding matrix corresponding to the nodes to be supplemented, attributes are supplemented for the nodes to be supplemented and the reconstructed heterogeneous graph node attribute embedding matrix is ​​obtained. This solves the problem of missing node attributes in low-quality heterogeneous graphs, improves the quality of heterogeneous graphs, and makes them more effectively applied to downstream node classification tasks, achieving more accurate heterogeneous node classification.

[0084] See also Figure 4 , Figure 4 The schematic flow diagram of S5 in the node classification method of a heterogeneous graph provided in one embodiment of the present application includes steps S51 to S52, which are specifically as follows:

[0085] S51: Inputting the reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified into the heterogeneous graph neural network to obtain predicted node classification probability data of several nodes of the heterogeneous graph to be classified.

[0086] In this embodiment, the classification device inputs the reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified into the heterogeneous graph neural network, and obtains the predicted node classification probability data of several nodes of the heterogeneous graph to be classified according to the preset node classification probability data calculation algorithm, wherein the predicted node classification probability data includes probability vectors of several categories, and the node classification probability data calculation algorithm is:

[0087]

[0088] In the formula, To predict node classification probability data, The reconstructed heterogeneous graph node attribute embedding matrix n The node attribute embedding representation of nodes, It is the functional representation of heterogeneous graph neural network.

[0089] S52: According to the predicted node classification probability data, the category corresponding to the maximum probability vector of several nodes of the heterogeneous graph to be classified is obtained as the classification result, thereby obtaining the node classification result of the heterogeneous graph to be classified.

[0090] In this embodiment, the classification device obtains the category corresponding to the maximum probability vector of several nodes of the heterogeneous graph to be classified according to the predicted node classification probability data, and obtains the node classification result of the heterogeneous graph to be classified as the classification result.

[0091] In an optional embodiment, step S6 is further included: training the heterogeneous graph node classification model, see Figure 5 , Figure 5 A schematic flow chart of S6 in a node classification method for a heterogeneous graph provided in another embodiment of the present application includes steps S61 to S64, which are specifically as follows:

[0092] S61: Obtain the topological structure information of several sample heterogeneous graphs and the real node classification probability data of several nodes of several of the sample heterogeneous graphs; input the topological structure information of several of the sample heterogeneous graphs into the pre-embedding module to obtain the heterogeneous graph node attribute embedding matrix and the heterogeneous graph edge relationship embedding matrix of several of the sample heterogeneous graphs.

[0093] In this embodiment, the classification device obtains topological structure information of several sample heterogeneous graphs and real node classification probability data of several nodes of several sample heterogeneous graphs.

[0094] The classification device inputs the topological structure information of several of the sample heterogeneous graphs into the pre-embedding module to obtain the heterogeneous graph node attribute embedding matrix and the heterogeneous graph edge relationship embedding matrix of several of the sample heterogeneous graphs. The specific implementation method can refer to steps S21~S23, which will not be repeated here.

[0095] S62: Inputting the heterogeneous graph node attribute embedding matrices, heterogeneous graph edge relationship embedding matrices, external knowledge base subgraph node attribute embedding matrices corresponding to several nodes to be supplemented with attributes, and external knowledge base subgraph edge relationship embedding matrices of several sample heterogeneous graphs into the attribute supplementation module to obtain target node attribute embedding representations of several nodes to be supplemented with attributes of several sample heterogeneous graphs.

[0096] In this embodiment, the classification device obtains the external knowledge base subgraph node attribute embedding matrix and the external knowledge base subgraph edge relationship embedding matrix corresponding to several nodes to be supplemented with attributes of several sample heterogeneous graphs. The specific embodiment can refer to step S3 and will not be repeated here.

[0097] The classification device inputs the heterogeneous graph node attribute embedding matrices, heterogeneous graph edge relationship embedding matrices, external knowledge base subgraph node attribute embedding matrices corresponding to several nodes to be supplemented with attributes, and external knowledge base subgraph edge relationship embedding matrices of several sample heterogeneous graphs into the attribute supplementation module to obtain target node attribute embedding representations of several nodes to be supplemented with attributes of several sample heterogeneous graphs. For specific embodiments, please refer to steps S41~S44, which will not be repeated here.

[0098] S63: Obtain mapping node attribute embedding representations of several nodes to be supplemented with attributes of several sample heterogeneous graphs, and obtain a first loss value according to the mapping node attribute embedding representations of several nodes to be supplemented with attributes of several sample heterogeneous graphs, the target node attribute embedding representations and a preset first loss function.

[0099] The first loss function is:

[0100]

[0101] In the formula, is the first loss value, is the number of nodes to be supplemented with attributes, For the k The mapping node attribute embedding representation of the nodes to be supplemented with attributes, For the kThe target node attribute embedding representation of the node to be supplemented with attributes.

[0102] In this embodiment, the classification device uses the Euclidean distance calculation method to calculate the Euclidean distance between the first node attribute embedding representation and the target node attribute embedding representation of the same node to be supplemented with attributes as the loss value, based on the first node attribute embedding representation of several nodes to be supplemented with attributes in the heterogeneous graph node attribute embedding matrix of several sample heterogeneous graphs, the target node attribute embedding representation and a preset first loss function, so as to train the heterogeneous graph node classification model, so that the target node attribute embedding representation of the node to be supplemented with attributes output by the heterogeneous graph node classification model is as close as possible to the original node attribute, thereby improving the accuracy of heterogeneous graph node classification.

[0103] S64: constructing a reconstructed heterogeneous graph node attribute embedding matrix of several of the sample heterogeneous graphs, inputting the reconstructed heterogeneous graph node attribute embedding matrices of several of the sample heterogeneous graphs and the topological structure information of several of the sample heterogeneous graphs into the node classification module, obtaining predicted node classification probability data of several nodes of several of the sample heterogeneous graphs, obtaining a second loss value according to the predicted node classification probability data of several nodes of several of the sample heterogeneous graphs, the real node classification probability data and a preset second loss function, and training the heterogeneous graph node classification model according to the first loss value and the second loss function.

[0104] In this embodiment, the classification device constructs a reconstructed heterogeneous graph node attribute embedding matrix of several of the sample heterogeneous graphs, inputs the reconstructed heterogeneous graph node attribute embedding matrix of several of the sample heterogeneous graphs and the topological structure information of several of the sample heterogeneous graphs into the node classification module, and obtains the predicted node classification probability data of several nodes of several of the sample heterogeneous graphs. The specific embodiments can refer to steps S51~S52, which will not be repeated here.

[0105] The classification device obtains a second loss value according to the predicted node classification probability data of several nodes of the sample heterogeneous graph, the real node classification probability data and a preset second loss function, wherein the second loss value is:

[0106]

[0107] In the formula, is the second loss value, Classify probability data for real nodes.

[0108] The classification device calculates a total loss value according to the first loss value and the second loss function, and trains the heterogeneous graph node classification model according to the total loss value, so that the heterogeneous graph node classification model can complement the deficiencies of the heterogeneous graph with the help of information from the external knowledge base, solves the problem of missing node attributes in low-quality heterogeneous graphs, and realizes more accurate heterogeneous node classification, wherein the total loss value is:

[0109]

[0110] In the formula, L is the total loss value, α is the preset supplementary loss coefficient.

[0111] See also Figure 6 , Figure 6 A schematic diagram of the structure of a node classification device for a heterogeneous graph provided by an embodiment of the present application. The device can implement all or part of the node classification method for a heterogeneous graph through software, hardware, or a combination of both. The device 6 includes:

[0112] A data acquisition module 61, used to obtain the topological structure information of the heterogeneous graph to be classified and a preset heterogeneous graph node classification model, wherein the heterogeneous graph node classification model includes a pre-embedded module, an attribute supplement module and a node classification module;

[0113] An embedding matrix construction module 62 is used to input the topological structure information of the heterogeneous graph to be classified into the pre-embedding module, perform graph embedding on the heterogeneous graph to be classified, and obtain a heterogeneous graph node attribute embedding matrix and a heterogeneous graph edge relationship embedding matrix;

[0114] The external knowledge acquisition module 63 is used to obtain the external knowledge base subgraph node attribute embedding matrix and the external knowledge base subgraph edge relationship embedding matrix corresponding to the plurality of nodes to be supplemented with attributes of the heterogeneous graph to be classified according to the predetermined external knowledge base;

[0115] The embedding matrix reconstruction module 64 is used to input the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix corresponding to the several nodes to be supplemented with attributes, and the external knowledge base subgraph edge relationship embedding matrix into the attribute supplementation module, supplement the attributes of the several nodes to be supplemented with attributes in the heterogeneous graph to be classified, and obtain the reconstructed heterogeneous graph node attribute embedding matrix;

[0116] The heterogeneous graph node classification module 65 is used to input the reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified into the node classification module for node classification, so as to obtain the node classification result of the heterogeneous graph to be classified.

[0117] In an embodiment of the present application, the topological structure information of the heterogeneous graph to be classified and the preset heterogeneous graph node classification model are obtained through a data acquisition module, wherein the heterogeneous graph node classification model includes a pre-embedding module, an attribute supplementation module and a node classification module; through an embedding matrix construction module, the topological structure information of the heterogeneous graph to be classified is input into the pre-embedding module, and the heterogeneous graph to be classified is embedded in the graph to obtain a heterogeneous graph node attribute embedding matrix and a heterogeneous graph edge relationship embedding matrix; through an external knowledge acquisition module, according to determining a number of nodes to be supplemented with attributes of the heterogeneous graph to be classified, according to a preset external knowledge base, a number of external knowledge base subgraph node attribute embedding matrices corresponding to the nodes to be supplemented with attributes are obtained. The node attribute embedding matrix of the heterogeneous graph, the edge relationship embedding matrix of the heterogeneous graph, the node attribute embedding matrix of the external knowledge base subgraph corresponding to several nodes to be supplemented with attributes, and the edge relationship embedding matrix of the external knowledge base subgraph are input into the attribute supplementation module through the embedding matrix reconstruction module, and the attributes of several nodes to be supplemented with attributes in the heterogeneous graph to be classified are supplemented to obtain the reconstructed heterogeneous graph node attribute embedding matrix; through the heterogeneous graph node classification module, the reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified are input into the node classification module for node classification to obtain the node classification result of the heterogeneous graph to be classified.

[0118] The present application utilizes the topological structure information of a heterogeneous graph to perform graph embedding, obtains a heterogeneous graph node attribute embedding matrix and a heterogeneous graph edge relationship embedding matrix, references an external knowledge base, obtains an external knowledge base subgraph node attribute embedding matrix and an external knowledge base subgraph edge relationship embedding matrix corresponding to the nodes to be supplemented with attributes in the heterogeneous graph, combines the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix and the external knowledge base subgraph edge relationship embedding matrix corresponding to the nodes to be supplemented with attributes, supplements attributes of the nodes to be supplemented, obtains a reconstructed heterogeneous graph node attribute embedding matrix, solves the problem of missing node attributes in low-quality heterogeneous graphs, improves the quality of heterogeneous graphs, enables them to be more effectively applied to downstream node classification tasks, and achieves more accurate heterogeneous node classification.

[0119] Please refer to Figure 7 , Figure 7 The computer device 7 is a schematic diagram of a structure of a computer device provided in an embodiment of the present application. The computer device 7 includes: a processor 71, a memory 72, and a computer program 73 stored in the memory 72 and executable on the processor 71; the computer device may store multiple instructions, which are suitable for being loaded and executed by the processor 71 Figures 1 to 5 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figures 1 to 5The specific description of the illustrated embodiment will not be repeated here.

[0120] Among them, the processor 71 may include one or more processing cores. The processor 71 uses various interfaces and lines to connect various parts in the server, and executes various functions and processes data of the node classification device 6 of the heterogeneous graph by running or executing instructions, programs, code sets or instruction sets stored in the memory 72, and calling the data in the memory 72. Optionally, the processor 71 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programble Logic Array, PLA). The processor 71 can integrate one or more combinations of a central processing unit 71 (Central Processing Unit, CPU), a graphics processor 71 (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 71, but may be implemented separately through a chip.

[0121] The memory 72 may include a random access memory 72 (RAM) or a read-only memory 72 (Read-Only Memory). Optionally, the memory 72 includes a non-transitory computer-readable storage medium. The memory 72 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 72 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 72 may also be optionally at least one storage device located away from the aforementioned processor 71.

[0122] The present application also provides a storage medium, which can store multiple instructions, which are suitable for being loaded and executed by a processor. Figures 1 to 5 The method steps of the embodiment shown in the figure, and the specific execution process can be referred to as shown in the figure Figures 1 to 5The specific description of the illustrated embodiment will not be repeated here.

[0123] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0124] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0125] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the target application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each target application, but such implementation should not be considered to be beyond the scope of the present invention.

[0126] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0128] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0129] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.

[0130] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.

Claims

1. A node classification method for a heterogeneous graph, characterized in that: The following steps are involved: Obtaining topological structure information of a heterogeneous graph to be classified and a preset heterogeneous graph node classification model, wherein the topological structure information of the heterogeneous graph to be classified includes a node set, an edge set, a node type set, an edge type set, and a node attribute set, and the node attribute set includes node attributes of several nodes; the heterogeneous graph node classification model includes a pre-embedding module, an attribute supplementation module, and a node classification module; the pre-embedding module includes a heterogeneous network embedding module and a word embedding module; Input the topological structure information of the heterogeneous graph to be classified into the heterogeneous network embedding module, map the node attributes of several nodes according to the node attribute set in the topological structure information, obtain the mapped node attribute embedding representation of several nodes of the heterogeneous graph to be classified, initialize the mapped node attribute embedding representation, and construct the initial node attribute embedding matrix of the heterogeneous graph to be classified; construct the domain node set of the heterogeneous graph to be classified according to the node attribute set and node type set in the topological structure information and the random walk strategy guided by the meta-path; The initial node attribute embedding matrix of the heterogeneous graph to be classified and the domain node set are input into the word embedding module, and the target conditional probability of several nodes of the heterogeneous graph to be classified is obtained by using the maximum conditional probability calculation method; according to the target conditional probability, the first node attribute embedding representation of several nodes of the heterogeneous graph to be classified is obtained, and the heterogeneous graph node attribute embedding matrix is ​​constructed; According to the edge set in the topological structure information of the heterogeneous graph to be classified, the first node attribute embedding representations of the nodes of the heterogeneous graph to be classified are subtracted from each other, and the subtraction results between several nodes are obtained as the first edge relationship embedding representations of the corresponding edges, and the heterogeneous graph edge relationship embedding matrix is ​​constructed; Determine a number of nodes to be supplemented with attributes of the heterogeneous graph to be classified, and obtain, according to a preset external knowledge base, an external knowledge base subgraph node attribute embedding matrix and an external knowledge base subgraph edge relationship embedding matrix corresponding to the number of nodes to be supplemented with attributes; Inputting the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix corresponding to the plurality of nodes to be supplemented with attributes, and the external knowledge base subgraph edge relationship embedding matrix into the attribute supplementation module, supplementing the attributes of the plurality of nodes to be supplemented with attributes in the heterogeneous graph to be classified, and obtaining a reconstructed heterogeneous graph node attribute embedding matrix; The reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified are input into the node classification module to perform node classification, so as to obtain the node classification result of the heterogeneous graph to be classified.

2. The node classification method of heterogeneous graph according to claim 1, characterized in that: The method comprises the steps of inputting the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix corresponding to the plurality of nodes to be supplemented with attributes, and the external knowledge base subgraph edge relationship embedding matrix into the attribute supplementation module, supplementing the attributes of the plurality of nodes to be supplemented with attributes in the heterogeneous graph to be classified, and obtaining the reconstructed heterogeneous graph node attribute embedding matrix, including the steps of: According to a plurality of first edge relationship embedding representations of a plurality of nodes to be supplemented with attributes and a plurality of second edge relationship embedding representations in an edge relationship embedding matrix of an external knowledge base subgraph corresponding to the nodes to be supplemented with attributes, an attention calculation method is used to obtain an attention weight score set of each of the nodes to be supplemented with attributes; According to the attention weight score set and a plurality of second node attribute embedding representations in the corresponding external knowledge base subgraph node attribute embedding matrix, weighted aggregation processing is performed to obtain a plurality of candidate node attribute embedding representations of the plurality of nodes to be supplemented with attributes; According to the first node attribute embedding representations of the plurality of nodes to be supplemented with attributes and the plurality of candidate node attribute embedding representations of the plurality of nodes to be supplemented with attributes, a cosine similarity calculation method is used to obtain the cosine similarity of the plurality of candidate node attribute embedding representations; The cosine similarities of several candidate node attribute embedding representations of the same node to be supplemented with attributes are compared to obtain several target node attribute embedding representations of the node to be supplemented with attributes; according to the several target node attribute embedding representations of the node to be supplemented with attributes, the first node attribute embedding representation of the corresponding node to be supplemented with attributes in the heterogeneous graph node attribute embedding matrix is ​​replaced to obtain the reconstructed heterogeneous graph node attribute embedding matrix.

3. The node classification method of heterogeneous graph according to claim 2, characterized in that: The node classification module is a heterogeneous graph neural network; the node classification result includes classification results of several nodes; The step of inputting the reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified into the node classification module for node classification to obtain the node classification result of the heterogeneous graph to be classified comprises the following steps: Inputting the reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified into the heterogeneous graph neural network to obtain predicted node classification probability data of several nodes of the heterogeneous graph to be classified; According to the predicted node classification probability data, the category corresponding to the maximum probability vector of several nodes of the heterogeneous graph to be classified is obtained as the classification result, thereby obtaining the node classification result of the heterogeneous graph to be classified.

4. The node classification method of heterogeneous graph according to claim 3, characterized in that: The method further comprises the steps of: training the heterogeneous graph node classification model; the training of the heterogeneous graph node classification model comprises the steps of: Obtaining topological structure information of several sample heterogeneous graphs and real node classification probability data of several nodes of several sample heterogeneous graphs; inputting the topological structure information of several sample heterogeneous graphs into the pre-embedding module to obtain heterogeneous graph node attribute embedding matrices and heterogeneous graph edge relationship embedding matrices of several sample heterogeneous graphs; Inputting heterogeneous graph node attribute embedding matrices, heterogeneous graph edge relationship embedding matrices, external knowledge base subgraph node attribute embedding matrices corresponding to several nodes to be supplemented with attributes, and external knowledge base subgraph edge relationship embedding matrices of several sample heterogeneous graphs into the attribute supplementation module to obtain target node attribute embedding representations of several nodes to be supplemented with attributes of several sample heterogeneous graphs; Obtaining mapping node attribute embedding representations of several nodes to be supplemented with attributes of several sample heterogeneous graphs, and obtaining a first loss value according to the mapping node attribute embedding representations of several nodes to be supplemented with attributes of several sample heterogeneous graphs, the target node attribute embedding representations, and a preset first loss function; Construct a reconstructed heterogeneous graph node attribute embedding matrix of several of the sample heterogeneous graphs, input the reconstructed heterogeneous graph node attribute embedding matrix of several of the sample heterogeneous graphs and the topological structure information of several of the sample heterogeneous graphs into the node classification module, obtain the predicted node classification probability data of several nodes of several of the sample heterogeneous graphs, obtain the second loss value according to the predicted node classification probability data of several nodes of several of the sample heterogeneous graphs, the real node classification probability data and a preset second loss function, and train the heterogeneous graph node classification model according to the first loss value and the second loss function.

5. A node classification device for a heterogeneous graph, characterized in that: include: A data acquisition module, used to obtain the topological structure information of the heterogeneous graph to be classified and a preset heterogeneous graph node classification model, wherein the topological structure information of the heterogeneous graph to be classified includes a node set, an edge set, a node type set, an edge type set and a node attribute set, and the node attribute set includes node attributes of several nodes; the heterogeneous graph node classification model includes a pre-embedding module, an attribute supplementation module and a node classification module; the pre-embedding module includes a heterogeneous network embedding module and a word embedding module; An embedding matrix construction module is used to input the topological structure information of the heterogeneous graph to be classified into the heterogeneous network embedding module, map the node attributes of several nodes according to the node attribute set in the topological structure information, obtain the mapped node attribute embedding representation of several nodes of the heterogeneous graph to be classified, initialize the mapped node attribute embedding representation, and construct the initial node attribute embedding matrix of the heterogeneous graph to be classified; construct the domain node set of the heterogeneous graph to be classified according to the node attribute set and node type set in the topological structure information and the random walk strategy guided by the meta-path; The initial node attribute embedding matrix of the heterogeneous graph to be classified and the domain node set are input into the word embedding module, and the target conditional probability of several nodes of the heterogeneous graph to be classified is obtained by using the maximum conditional probability calculation method; according to the target conditional probability, the first node attribute embedding representation of several nodes of the heterogeneous graph to be classified is obtained, and the heterogeneous graph node attribute embedding matrix is ​​constructed; According to the edge set in the topological structure information of the heterogeneous graph to be classified, the first node attribute embedding representations of the nodes of the heterogeneous graph to be classified are subtracted from each other, and the subtraction results between several nodes are obtained as the first edge relationship embedding representations of the corresponding edges, and the heterogeneous graph edge relationship embedding matrix is ​​constructed; An external knowledge acquisition module is used to obtain, according to a preset external knowledge base, a plurality of nodes to be supplemented with attributes of the heterogeneous graph to be classified, an external knowledge base subgraph node attribute embedding matrix and an external knowledge base subgraph edge relationship embedding matrix corresponding to the plurality of nodes to be supplemented with attributes; An embedding matrix reconstruction module is used to input the heterogeneous graph node attribute embedding matrix, the heterogeneous graph edge relationship embedding matrix, the external knowledge base subgraph node attribute embedding matrix corresponding to a number of nodes to be supplemented with attributes, and the external knowledge base subgraph edge relationship embedding matrix into the attribute supplementation module, perform attribute supplementation on a number of nodes to be supplemented with attributes in the heterogeneous graph to be classified, and obtain a reconstructed heterogeneous graph node attribute embedding matrix; The heterogeneous graph node classification module is used to input the reconstructed heterogeneous graph node attribute embedding matrix and the topological structure information of the heterogeneous graph to be classified into the node classification module for node classification, so as to obtain the node classification result of the heterogeneous graph to be classified.

6. A computer device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the node classification method for a heterogeneous graph as described in any one of claims 1 to 4 are implemented.

7. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the node classification method for a heterogeneous graph as described in any one of claims 1 to 4 are implemented.