Name disambiguation method and device based on time sequence heterogeneous academic information network
By constructing a time-series heterogeneous academic information network and performing feature aggregation, the problem of inaccurate name disambiguation caused by ignoring time changes and heterogeneity in the existing technology is solved, and the embodiment and disambiguation effect of ambiguous entity features are improved.
Patent Information
- Application Number
- CN202410785909.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-18
AI Technical Summary
Existing name disambiguation methods ignore the influence of characteristic factors such as the author's position, work unit, cooperation partners, and research directions over time. As a result, the extracted representation information cannot fully reflect the characteristics of the entity to be disambiguated, and ignores nodes and The heterogeneity of edges can easily lead to errors in name disambiguation.
Construct a time-series heterogeneous academic information network, extract initial feature vectors by publishing time-encoded node information, and conduct primary and secondary feature aggregation based on meta-paths to capture the semantic and structural information of nodes to form high-quality final representation vectors for aggregation class analysis.
It better reflects the characteristics of ambiguous entities, improves the accuracy and effect of name disambiguation, and can more fully capture the temporal information and dynamic semantic information in heterogeneous information networks.
Smart Images

Figure CN118798175A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of natural language processing, and in particular to a method and device for disambiguating personal names based on a temporally heterogeneous academic information network. Background Art
[0002] There are many types of scientific and technological resources, including scientific and technological papers, scientific and technological patents, scientific and technological talents, scientific and technological projects, scientific instruments, and scientific research institutions. Faced with massive multi-source and heterogeneous scientific and technological resources, how to break the "resource island", explore the deep knowledge of scientific and technological resources, and transform scientific and technological knowledge into scientific and technological services is a hot issue in current research.
[0003] In the real world, multiple different real entities may point to the same name reference, which leads to ambiguity. After the entity extraction of the acquired scientific and technological resource data, there will be a large number of entities with the same name. The key technology of knowledge graph is easy to realize the information fusion of scientific and technological resources, but the ambiguity of entities with the same name in the fusion process will greatly affect the accuracy and availability of the scientific and technological resource knowledge graph. In particular, due to the uniqueness of institutions, scientific research patents, etc. to a certain extent, the difficulty lies in the disambiguation of talent entities, that is, the disambiguation of author entities with the same name.
[0004] Some existing methods for name disambiguation, taking scientific papers as an example, will construct heterogeneous information networks to better represent the semantic and structural information of nodes, and then convert the heterogeneous information networks into homogeneous networks, focusing on using document heterogeneous information networks for node embedding representation. However, the disadvantage of this processing method is that it only considers the static attributes of the author, ignoring the impact of changes in characteristic factors such as their position, work unit, cooperation partners, and research directions over time, making the final extracted representation information unable to fully reflect the characteristics of the entity to be disambiguated. In addition, the existing technology treats different types of information equally, ignoring the heterogeneity of nodes and edges, which can easily cause errors in name disambiguation. Summary of the invention
[0005] 1. Technical issues to be resolved
[0006] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a method and device for name disambiguation based on a time-heterogeneous academic information network, which solves the technical problem in the existing name disambiguation method that the influence of the characteristic factors of the ambiguous entity changing over time is ignored, resulting in the final extracted representation information being unable to fully reflect the characteristics of the entity to be disambiguated.
[0007] (II) Technical solution
[0008] In order to achieve the above object, the main technical solutions adopted by the present invention include:
[0009] In a first aspect, an embodiment of the present invention provides a method for disambiguating names based on a temporally heterogeneous academic information network, comprising:
[0010] S10, for multiple documents to be disambiguated, constructing a temporal heterogeneous academic information network according to the attribute data of the multiple documents;
[0011] The time-series heterogeneous academic information network includes a plurality of nodes and edges connecting the nodes, and the nodes are divided into a plurality of node types according to the classification of attribute data;
[0012] The information on the edge includes: publishing time;
[0013] S20, feature encoding the time-series heterogeneous academic information network to map the node information of the time-series heterogeneous academic information network to the same feature space, and obtain the mapping of each node of the time-series heterogeneous academic information network in the feature space as an initial feature vector;
[0014] S30, for all target nodes under the target type, traverse the edges and nodes of the temporal heterogeneous academic information network to determine all target meta-paths connecting any two target nodes; based on the publication time on the target meta-path, perform initial feature aggregation on the initial vector features of the nodes contained in the target meta-path corresponding to each target node to obtain a temporal feature vector set based on different publication times; the temporal feature vector set corresponds to the target node one by one;
[0015] S40, based on the semantic features of the time series feature vector set corresponding to each target node, perform secondary feature aggregation on the time series feature vector set to obtain a final representation vector containing high-quality representation information of the target node;
[0016] S50, performing cluster analysis based on the similarity of the final representation vectors of all target nodes, and dividing the multiple documents to be disambiguated into different clusters to achieve the purpose of name disambiguation; wherein the documents corresponding to a cluster belong to the same ambiguous entity.
[0017] Optionally, in S10, the classification of the attribute data includes: document characteristics, author characteristics, organization, publication location and publication time;
[0018] The node types of the temporal heterogeneous academic information network include: organizational structure, author characteristics, document characteristics and publication location, and each node is an attribute data under this node type;
[0019] The step of constructing a time-series heterogeneous academic information network based on the attribute data of the plurality of documents comprises:
[0020] Determine all nodes of the temporal heterogeneous academic information network according to the attribute data of each document, and use edges to connect the nodes belonging to the same document in the temporal heterogeneous academic information network, attach the publication time of the corresponding document to the edge connecting the author feature and the document feature, and the edge connecting the document feature and the publication location, so as to form a temporal heterogeneous academic information network;
[0021] When there are multiple publication times between the author feature and the document feature, or between the document feature and the publication location, multiple edges are used to connect the corresponding nodes, and one edge corresponds to one publication time.
[0022] Optionally, the method is used to perform name disambiguation on multiple documents with the same author characteristics;
[0023] In S30, the target type is a document feature;
[0024] In S50, the ambiguous entity is the author.
[0025] Optionally, the S20 includes: using a multi-layer perceptron to perform feature encoding on the attribute data corresponding to all nodes in the temporal heterogeneous academic information network to obtain an initial feature vector;
[0026] The expression of the multi-layer perceptron is formula (1), and the formula (1) is:
[0027] h u =j(x u W1+b1) (1);
[0028] In formula (1), x u represents the attribute data corresponding to a node u, W1 represents the first weight matrix of the multilayer perceptron, b1 represents the first bias matrix of the multilayer perceptron, h u Represents x u The corresponding initial feature vector; σ(·) represents the activation function.
[0029] Optionally, the S30 includes:
[0030] S301, based on the time-series heterogeneous academic information network, taking any two target nodes as the starting point and the end point, traversing the edges and nodes of the time-series heterogeneous academic information network, and determining all meta-paths connecting any two target nodes;
[0031] S302, based on the meta-path and formula (2), using a meta-path encoder to perform aggregate encoding to obtain an embedding vector corresponding to each meta-path;
[0032] The formula (2) is:
[0033] h P(s,j)=f θ (P(s,j)) (2);
[0034] In formula (2), P(s,j) represents all nodes on a meta-path, s represents the starting point of the meta-path, and j represents the end point of the meta-path; h P (s,j) represents the embedding vector corresponding to the meta-path, f θ (·) represents a meta-path encoder, and the expression of the meta-path encoder is formula (3):
[0035]
[0036] In formula (3), MEAN{·} represents the average value operation; h' t represents the initial feature vector of a node t on the meta-path P(s,j);
[0037] S303: For a target node s, obtain all meta-paths starting from the target node s to form a target meta-path set, expressed as (P(s,j)1,t1),(P(s,j)2,t2),…,(P(s,j) n ,t n ), where P(s,j) n represents the target meta-path of the nth target meta-path, t n Indicates the timestamp of the nth target meta-path, where the value of the timestamp is the publishing time attached to the edge connecting the end point on the corresponding target meta-path; n is a positive integer;
[0038] S304, determining a corresponding time contribution factor based on the difference between the timestamps of the n target meta-paths and the current time;
[0039] S305. Based on the time contribution factors of the n target meta-paths and the corresponding initial feature vectors, according to formula (10), the timing information of the target node is extracted to obtain n timing feature vectors corresponding to the n target meta-paths of the target node as the timing feature vector set of the target node, which is expressed as
[0040] The formula (10) is:
[0041]
[0042] In formula (10), represents the temporal feature vector of the target node s under the i-th target meta-path P, η i represents the time contribution factor of the i-th target meta-path, represents the initial feature vector of all nodes on the ith meta-target path, i is a positive integer less than or equal to n, and σ(·) represents the activation function;
[0043] S306. Repeat S303 to S305 until a set of time series feature vectors of all target nodes is obtained.
[0044] Optionally, the S304 includes:
[0045] Based on the difference between the timestamps of the n target meta-paths and the current time, determine the time contribution factor of each target meta-path according to formulas (4) to (7);
[0046] The formulas (4) to (7) are:
[0047]
[0048] k(tt i )=exp(δ i (tt i )) (5);
[0049]
[0050] In formulas (4) to (7), η i represents the time contribution factor of the i-th target meta-path, α i represents the first attention coefficient of the i-th target meta-path, Represents a target node s and the i-th target meta-path P(s,j) determined based on negative Euclidean distance i The similarity between them, k(·) represents the contribution function used to model the time, exp(·) represents the exponential function with e as the base, δ i represents the time contribution rate, t represents the current time, t i represents the i-th target meta-path P(s,j) i The corresponding timestamp.
[0051] Optionally, the first attention coefficient is obtained based on a first calculation step, and the first calculation step includes:
[0052] T1, based on the difference between the timestamp corresponding to each target meta-path and the current time, determine the importance of the target meta-path P(s, j) to the target node s according to formula (8);
[0053] The formula (8) is:
[0054]
[0055] In formula (8), LeakyReLU(·) represents the LeakyReLU activation function, represents the first parameterized attention vector preset for the target meta-path P, || represents the vector concatenation operation, and h' s represents the initial feature vector of the target node s, e i represents the i-th target meta-path P(s,j) i The importance of the target node s;
[0056] T2. Based on the importance of all target meta-paths P(s, j) to the target node s, normalization is performed according to formula (9) to obtain the first attention coefficient of each target meta-path; the formula (9) is:
[0057]
[0058] In formula (9), α i represents the first attention coefficient of the i-th target meta-path, and exp(·) represents the exponential function with e as the base.
[0059] Optionally, the S40 includes:
[0060] S401, based on the time series feature vector set of the target node s According to formula (11), secondary feature aggregation is performed to obtain the semantic feature vector of the target node s under its target meta-path; the formula (11) is:
[0061]
[0062] In formula (11), represents the semantic feature vector of the target node s under its target meta-path, β P represents the second attention coefficient of the target meta-path P, represents the temporal feature vector of the target node s under the target meta-path P, P A represents the set of all target meta-paths to the target node s;
[0063] S402: semantic feature vector based on target node s under target meta-path The final representation vector of the target node s is determined according to formula (12), which is:
[0064]
[0065] In formula (12), z s represents the final representation vector of the target node s, σ(·) represents the activation function, and W o represents the third weight matrix;
[0066] S403. Repeat steps S401 to S402 until the final representation vectors of all target nodes are obtained.
[0067] Optionally, in S401, the second attention coefficient of the target meta-path P is obtained based on a second calculation step, and the second calculation step includes:
[0068] Q1. According to formula (13), the time series feature vector set of the target node s is Perform secondary feature transformation to obtain an intermediate semantic feature vector; the formula (13) is:
[0069]
[0070] In formula (13), represents the intermediate semantic feature vector corresponding to the i-th temporal feature vector of the target node s, V A represents the set of all target nodes, |·| represents the operation of taking the number of set elements, tanh(·) represents the tanh activation function, W2 represents the second weight matrix, b2 represents the second bias matrix, Represents the i-th time series feature vector of the target node s;
[0071] Q2. Based on the above M intermediate semantic feature vectors, determine the importance of the intermediate semantic feature vectors to the target node s one by one according to formula (14); the formula (14) is:
[0072]
[0073] In formula (14), represents the importance of the i-th intermediate semantic feature vector to the target node s, represents the preset second parameterized attention vector;
[0074] Q3. Based on the importance of the n intermediate semantic feature vectors to the target node s, normalization is performed according to formula (15) to obtain the second attention coefficient of the target meta-path P. The formula (15) is:
[0075]
[0076] In formula (15), represents the second attention coefficient of the i-th target meta-path P, e P Represents the importance of the semantic features of all target meta-paths to the target node s.
[0077] In a second aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program stored in the memory, the steps of the method for disambiguating personal names based on a time-heterogeneous academic information network described in the first aspect are implemented.
[0078] (III) Beneficial effects
[0079] The beneficial effects of the present invention are as follows: the name disambiguation method and system of the present invention constructs a temporal heterogeneous academic information network including publication time, and extracts an initial feature vector including publication time information based on the temporal heterogeneous academic information network; then, based on the initial feature vector, a primary feature aggregation is performed to extract temporal features to capture the semantic and structural information of the node, and a set of temporal feature vectors including temporal information is obtained; then, based on the set of temporal feature vectors, a secondary feature aggregation is performed to extract semantic features, and multiple final representation vectors including high-quality representation information of the target node are obtained for the final clustering analysis. Compared with the existing name disambiguation method, the name disambiguation method provided by the present invention can extract a set of temporal feature vectors with temporal features based on the primary feature aggregation step, so as to better capture the dynamic semantic information and structural information of the document nodes including temporal information in the heterogeneous information network, thereby more fully reflecting the characteristics of the ambiguous entity, so that the final clustering analysis step can obtain a better disambiguation effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 A flowchart of a method for disambiguating names based on a temporally heterogeneous academic information network provided by an embodiment;
[0081] Figure 2 A schematic diagram of a time-series heterogeneous academic information network provided for an embodiment;
[0082] Figure 3 A schematic flow chart of the sub-steps of S30 provided in the embodiment;
[0083] Figure 4 A schematic diagram of a target meta-path of a target node P1 provided in an embodiment;
[0084] Figure 5 This is a schematic flow chart of the sub-steps of S40 provided in the embodiment. DETAILED DESCRIPTION
[0085] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.
[0086] Example 1
[0087] like Figure 1As shown, the embodiment of the present invention provides a method for name disambiguation based on a temporally heterogeneous academic information network, which specifically includes the following steps:
[0088] S10. For multiple documents to be disambiguated, a time-series heterogeneous academic information network is constructed according to the attribute data of the multiple documents.
[0089] The temporal heterogeneous academic information network includes a plurality of nodes and edges connecting the nodes, wherein the nodes are divided into a plurality of node types according to the classification of attribute data, and the information on the edges includes: publication time.
[0090] In a specific implementation scheme, there are four documents to be disambiguated, and the classification of attribute data corresponding to the four documents to be disambiguated includes: document features (paper, P), author features (author, A), organization (organiztion, O), publication place (conferrence, C) and publication time. In the above attribute data, document features include title, keywords, classification number or abstract. More specifically, the SciBERT pre-trained model can be used to extract the title and keywords of the document to be disambiguated and concatenate to obtain the document feature vector; the author feature is the mean of the above document feature vector, that is, the mean of the document features of all documents to be disambiguated is used to represent the author; the organization and publication place can be one-hot encoded according to their names or IDs to obtain the corresponding attribute data, and the attribute data of the above nodes can also be called embedded vectors.
[0091] like Figure 2 As shown, the node types of the time-series heterogeneous academic information network include: organizational structure, author characteristics, document characteristics and publication location, and each node is an attribute data under this node type.
[0092] The steps of constructing a temporally heterogeneous academic information network specifically include:
[0093] All nodes of the temporal heterogeneous academic information network are determined according to the attribute data of each document, and the nodes belonging to the same document in the temporal heterogeneous academic information network are connected by edges, and the publication time of the corresponding document is attached to the edge connecting the author feature and the document feature, and the edge connecting the document feature and the publication location, so as to form a temporal heterogeneous academic information network. When there are multiple publication times between the author feature and the document feature, or between the document feature and the publication location, multiple edges are used to connect the corresponding nodes, and one edge corresponds to one publication time.
[0094] S20. Feature encoding is performed on the time-series heterogeneous academic information network to map the node information of the time-series heterogeneous academic information network to the same feature space, and the mapping of each node of the time-series heterogeneous academic information network in the feature space is obtained as an initial feature vector.
[0095] Specifically, a multi-layer perceptron (MLP) can be used to convert the embedding vectors corresponding to all nodes in the temporal heterogeneous academic information network into the same feature space to obtain an initial feature vector.
[0096] The expression of the multi-layer perceptron is formula (1), and the formula (1) is:
[0097] h u =σ(x u W1+b1) (1);
[0098] In formula (1), x u represents the attribute data corresponding to a node u, W1 represents the first weight matrix of the multilayer perceptron, b1 represents the first bias matrix of the multilayer perceptron, h u Represents x u The corresponding initial feature vector; σ(·) represents the activation function.
[0099] The multilayer perceptron mentioned above may be a trained model with a suitable first weight matrix and a first bias matrix.
[0100] S30. For a target type among all types of nodes, based on the publication time, perform initial feature aggregation on the initial vector features corresponding to each target node under the target type to obtain a set of time series feature vectors based on the publication time; the set of time series feature vectors corresponds one-to-one to the target node.
[0101] Specifically, corresponding to Figure 2 The time-series heterogeneous academic information network provided, if the method provided in this embodiment is used to disambiguate names of multiple documents with the same author name, the corresponding ambiguous entity is the author, and in this step, the target type is the document feature.
[0102] S40: Based on the semantic features of each group of the time series feature vector sets, perform secondary feature aggregation on the time series feature vectors to obtain a final representation vector containing high-quality representation information of the target node.
[0103] S50, performing cluster analysis based on the similarity of the final representation vectors of all target nodes, and dividing the multiple documents to be disambiguated into different clusters to achieve the purpose of name disambiguation; wherein the documents corresponding to a cluster belong to the same ambiguous entity.
[0104] Specifically, the cluster analysis method in step S50 may be an agglomerative hierarchical clustering method, which includes the following steps:
[0105] S501, each final representation vector is a cluster, and the similarity between any two final representation vectors is calculated to obtain an initial similarity matrix between n×n vectors;
[0106] S502, finding the two final representation vectors with the greatest similarity in the similarity matrix, and merging the two into a new cluster;
[0107] S503, recalculating the similarity between the new cluster and all other clusters;
[0108] S504: Repeat S502 and S503 until the number of clusters no longer changes.
[0109] The name disambiguation method provided in the present embodiment constructs a temporal heterogeneous academic information network including publication time, and extracts an initial feature vector including publication time information based on the temporal heterogeneous academic information network; then, based on the initial feature vector, a primary feature aggregation is performed to extract temporal features to capture the semantic and structural information of the node, and a set of temporal feature vectors including temporal information is obtained; then, a secondary feature aggregation is performed based on the set of temporal feature vectors to extract semantic features, and multiple final representation vectors including high-quality representation information of the target node are obtained for final clustering analysis. Compared with the existing name disambiguation method, the name disambiguation method provided in the present embodiment can better capture the dynamic semantic information and structural information of the document nodes including temporal information in the heterogeneous information network based on the primary feature aggregation step, thereby more fully reflecting the characteristics of the ambiguous entity, so that the final clustering analysis step can obtain a better disambiguation effect.
[0110] Example 2
[0111] In order to better understand the name disambiguation method provided in Example 1, this example describes in detail the specific steps of extracting the time series feature vector in step S30 provided in Example 1.
[0112] like Figure 3 As shown, in the name disambiguation method provided in this embodiment, step S30 includes sub-steps S301 to S306, which are specifically as follows:
[0113] S301. Based on the time-series heterogeneous academic information network, taking any two target nodes as the starting point and the end point, traverse the edges and nodes of the time-series heterogeneous academic information network to determine all meta-paths connecting any two target nodes.
[0114] S302: Based on the meta-path and formula (2), a meta-path encoder is used to perform aggregate encoding to obtain an embedding vector corresponding to each meta-path.
[0115] The formula (2) is:
[0116] h P (s,j)=f θ (P(s,j)) (2).
[0117] In formula (2), P(s,j) represents all nodes on a meta-path, s represents the starting point of the meta-path, and j represents the end point of the meta-path; h P (s,j) represents the embedding vector corresponding to the meta-path, f θ (·) represents a meta-path encoder, and the expression of the meta-path encoder is formula (3):
[0118]
[0119] In formula (3), MEAN{·} represents the average value operation; h' t represents the initial feature vector of a node t on the meta-path P(s,j);
[0120] S303: For a target node s, obtain all meta-paths starting from the target node s to form a target meta-path set, expressed as (P(s,j)1,t1),(P(s,j)2,t2),…,(P(s,j) n ,t n ), where P(s,j) n represents the target meta-path of the nth target meta-path, t n Represents the timestamp of the nth target meta-path, where the value of the timestamp is the publishing time attached to the edge connecting the end point on the corresponding target meta-path; n is a positive integer.
[0121] In the formula (P(s,j)1,t1), (P(s,j)2,t2), ..., (P(s,j) n ,t n ), j represents any end point of the target meta-path, not a specific end point.
[0122] Specifically, for Figure 2 The temporal heterogeneous academic information network shown in FIG. 1 takes the target node P1 as the starting point, and the following can be extracted: Figure 4The five target meta-paths shown in the figure. Among them, the PAP type path indicates that the two documents have the same entity author, the PAPAP type path indicates that the entity authors of two different documents have collaborated before, the PAOAP type path indicates that the entity authors of two different documents are from the same unit, and the PCP type path indicates that the two documents are published in the same place. It can also be seen from the second and fourth paths that sometimes the same starting point and end point may correspond to multiple target meta-paths. The structural information and semantic information of all nodes on the target meta-path have been learned by encoding the target meta-path using the above meta-path encoder.
[0123] S304: Determine a corresponding time contribution factor based on the difference between the timestamps of the n target meta-paths and the current time.
[0124] S305. Based on the time contribution factors of the n target meta-paths and the corresponding initial feature vectors, according to formula (10), the timing information of the target node is extracted to obtain n timing feature vectors corresponding to the n target meta-paths of the target node as the timing feature vector set of the target node, which is expressed as
[0125] The formula (10) is:
[0126]
[0127] In formula (10), represents the temporal feature vector of the target node s under the i-th target meta-path P, η i represents the time contribution factor of the i-th target meta-path, represents the initial feature vector of all nodes on the i-th meta-target path, i is a positive integer less than or equal to n, and σ(·) represents the activation function.
[0128] S306. Repeat S303 to S305 until a set of time series feature vectors of all target nodes is obtained.
[0129] Considering that for each target meta-path instance, the impact on the target node is different at different times, when aggregating the information of the meta-target path, the time contribution factor is used to introduce the impact of the timestamp of the target meta-path on the final extracted temporal feature vector, thereby enhancing the accuracy of the subsequent final representation vector. In a preferred implementation of this embodiment, in S304, based on the difference between the timestamp of the target meta-path and the current time, the influence of the publication time is introduced into the temporal feature vector by adopting an attention mechanism. Specifically, S304 includes the steps of:
[0130] Based on the difference between the timestamps of the n target meta-paths and the current time, the time contribution factor of each target meta-path is determined according to formulas (4) to (7).
[0131] The formulas (4) to (7) are:
[0132]
[0133] k(tt i )=exp(δ i (tt i )) (5);
[0134]
[0135] In formulas (4) to (7), η i represents the time contribution factor of the i-th target meta-path, α i represents the first attention coefficient of the i-th target meta-path, Represents a target node s and the i-th target meta-path P(s,j) determined based on negative Euclidean distance i The similarity between them, k(·) represents the contribution function used to model the time, exp(·) represents the exponential function with e as the base, δ i represents the time contribution rate, t represents the current time, t i represents the i-th target meta-path P(s,j) i The corresponding timestamp.
[0136] Before S304, the first attention coefficient is obtained by a first calculation step, and the first calculation step includes steps T1 to T2:
[0137] T1. Based on the difference between the timestamp corresponding to each target meta-path and the current time, the importance of the target meta-path P(s, j) to the target node s is determined according to formula (8).
[0138] The formula (8) is:
[0139]
[0140] In formula (8), LeakyReLU(·) represents the LeakyReLU activation function, represents the first parameterized attention vector preset for the target meta-path P, || represents the vector concatenation operation, and h' s represents the initial feature vector of the target node s, e i represents the i-th target meta-path P(s,j) i The importance of the target node s;
[0141] T2. Based on the importance of all target meta-paths P(s, j) to the target node s, normalization is performed according to formula (9) to obtain the first attention coefficient of each target meta-path; the formula (9) is:
[0142]
[0143] In formula (9), α i represents the first attention coefficient of the i-th target meta-path, and exp(·) represents the exponential function with e as the base.
[0144] The initial feature aggregation step provided in this embodiment captures the dynamic semantics and structural information of the node by fusing time information, and uses the attention mechanism to capture the contribution of time information corresponding to different structural information to the node, which can further improve the representation ability of the final representation vector for ambiguous entities and ensure the disambiguation effect.
[0145] Example 3
[0146] In order to better understand the name disambiguation method provided in Example 1, this example describes in detail the specific steps of extracting the time series feature vector in step S40 provided in Example 1.
[0147] like Figure 5 As shown, in the name disambiguation method provided in this embodiment, step S40 includes sub-steps S401 to S403, which are specifically as follows:
[0148] S401, based on the time series feature vector set of the target node s According to formula (11), secondary feature aggregation is performed to obtain the semantic feature vector of the target node s under its target meta-path.
[0149] The formula (11) is:
[0150]
[0151] In formula (11), represents the semantic feature vector of the target node s under its target meta-path, β P represents the second attention coefficient of the target meta-path P, represents the temporal feature vector of the target node s under the target meta-path P, P A Represents the set of all target meta-paths to target node s.
[0152] S402: semantic feature vector based on target node s under target meta-path The final representation vector of the target node s is determined according to formula (12), which is:
[0153]
[0154] In formula (12), z s represents the final representation vector of the target node s, σ(·) represents the activation function, and W o represents the third weight matrix.
[0155] S403. Repeat steps S401 to S402 until the final representation vectors of all target nodes are obtained.
[0156] Different target meta-paths represent different semantic information. If different target meta-paths are treated equally, some important semantic information provided by useful target meta-paths will be reduced. Therefore, this embodiment introduces a second attention coefficient based on the attention mechanism, and weakens the influence of unimportant target meta-paths and strengthens the influence of important target meta-paths on the target node by a weighted method. In a preferred implementation of this embodiment, the second attention coefficient of the target meta-path P can be determined by a second calculation step before S401. The second calculation step includes:
[0157] Q1. According to formula (13), the time series feature vector set of the target node s is Perform secondary feature transformation to obtain the intermediate semantic feature vector.
[0158] The formula (13) is:
[0159]
[0160] In formula (13), represents the intermediate semantic feature vector corresponding to the i-th temporal feature vector of the target node s, V A represents the set of all target nodes, |·| represents the operation of taking the number of set elements, tanh(·) represents the tanh activation function, W2 represents the second weight matrix, b2 represents the second bias matrix, Represents the i-th time series feature vector of the target node s.
[0161] Q2. Based on the above M intermediate semantic feature vectors, determine the importance of the intermediate semantic feature vector to the target node s one by one according to formula (14).
[0162] The formula (14) is:
[0163]
[0164] In formula (14), represents the importance of the i-th intermediate semantic feature vector to the target node s, Represents the preset second parameterized attention vector.
[0165] Q3. Based on the importance of the n intermediate semantic feature vectors to the target node s, normalization is performed according to formula (15) to obtain the second attention coefficient of the target meta-path P.
[0166] The formula (15) is:
[0167]
[0168] In formula (15), represents the second attention coefficient of the i-th target meta-path P, e P Represents the importance of the semantic features of all target meta-paths to the target node s.
[0169] The secondary feature aggregation step provided in this embodiment uses the attention mechanism to capture the contribution of semantic information corresponding to different structural information to the target node, which can further improve the representation ability of the final representation vector for ambiguous entities and ensure the disambiguation effect.
[0170] Example 4
[0171] For the name disambiguation method provided in Examples 1 to 3, in order to further improve the disambiguation effect, its specific implementation form can be to construct a graph neural network based on steps S30 and S40, and cooperate with the remaining steps to complete the name disambiguation. The graph neural network specifically includes a sequentially connected temporal feature aggregation module and a semantic feature aggregation module. Based on the name disambiguation method provided in Examples 1 to 3 above, the initial feature vector obtained in step S20 is input into the graph neural network to obtain the final representation vector output by the graph neural network, which contains high-quality representation information of the target node, and then the final representation vector is used for name disambiguation based on step S50. The structure of the graph neural network is as follows:
[0172] The time series feature aggregation module is used to perform initial feature aggregation on the initial vector features corresponding to each target node under the target type among all types of nodes based on the publication time, so as to obtain a time series feature vector set based on the publication time; the time series feature vector set corresponds to the target node one by one.
[0173] The semantic feature aggregation module is used to perform secondary feature aggregation on the temporal feature vectors based on the semantic features of each group of the temporal feature vector sets to obtain a final representation vector containing high-quality representation information of the target node.
[0174] Based on the above graph neural network, the corresponding time contribution rate δ in formulas (5), (8), (12), (13), and (14) is i , the first parameterized attention vector preset by the target meta-path P The third weight matrix W o, the second weight matrix W2, the second bias matrix b2, the preset second parameterized attention vector It can be used as the model parameters of the graph neural network and learned through the training process of the graph neural network. Specifically, the Aminer dataset can be used as the training set to train the graph neural network. When the model loss obtained by training is less than the preset value, the training ends. At this time, the corresponding model parameters obtained are the first weight matrix W1, the first bias matrix b1, and the time contribution rate δ i , the first parameterized attention vector preset by the target meta-path P The third weight matrix W o , the second weight matrix W2, the second bias matrix b2, the preset second parameterized attention vector The corresponding value of .
[0175] In addition, this embodiment also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program stored in the memory, it implements the name disambiguation method based on a time-series heterogeneous academic information network or the steps of a graph neural network described in embodiments 1 to 4.
[0176] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0177] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0178] In the present invention, unless otherwise clearly specified and limited, when a first feature is “on” or “below” a second feature, it may be that the first and second features are in direct contact, or that the first and second features are in indirect contact through an intermediate medium. Moreover, when a first feature is “above”, “above” or “above” a second feature, it may be that the first feature is directly above or obliquely above the second feature, or it may simply mean that the first feature is higher in level than the second feature. When a first feature is “below”, “below” or “below” a second feature, it may be that the first feature is directly below or obliquely below the second feature, or it may simply mean that the first feature is lower in level than the second feature.
[0179] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0180] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may alter, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A method for disambiguating names based on a temporally heterogeneous academic information network, characterized in that: include: S10, for multiple documents to be disambiguated, constructing a temporal heterogeneous academic information network according to the attribute data of the multiple documents; The time-series heterogeneous academic information network includes a plurality of nodes and edges connecting the nodes, and the nodes are divided into a plurality of node types according to the classification of attribute data; The information on the edge includes: publishing time; S20, feature encoding the time-series heterogeneous academic information network to map the node information of the time-series heterogeneous academic information network to the same feature space, and obtain the mapping of each node of the time-series heterogeneous academic information network in the feature space as an initial feature vector; S30, for all target nodes under the target type, traverse the edges and nodes of the temporal heterogeneous academic information network to determine all target meta-paths connecting any two target nodes; based on the publication time on the target meta-path, perform initial feature aggregation on the initial vector features of the nodes contained in the target meta-path corresponding to each target node to obtain a temporal feature vector set based on different publication times; the temporal feature vector set corresponds to the target node one by one; S40, based on the semantic features of the time series feature vector set corresponding to each target node, perform secondary feature aggregation on the time series feature vector set to obtain a final representation vector containing high-quality representation information of the target node; S50, performing cluster analysis based on the similarity of the final representation vectors of all target nodes, and dividing the multiple documents to be disambiguated into different clusters to achieve the purpose of name disambiguation; wherein the documents corresponding to a cluster belong to the same ambiguous entity.
2. The method according to claim 1, characterized in that In S10, the classification of the attribute data includes: document characteristics, author characteristics, organization, publication location and publication time; The node types of the temporal heterogeneous academic information network include: organizational structure, author characteristics, document characteristics and publication location, and each node is an attribute data under this node type; The step of constructing a time-series heterogeneous academic information network based on the attribute data of the plurality of documents comprises: Determine all nodes of the temporal heterogeneous academic information network according to the attribute data of each document, and use edges to connect the nodes belonging to the same document in the temporal heterogeneous academic information network, attach the publication time of the corresponding document to the edge connecting the author feature and the document feature, and the edge connecting the document feature and the publication location, so as to form a temporal heterogeneous academic information network; When there are multiple publication times between the author feature and the document feature, or between the document feature and the publication location, multiple edges are used to connect the corresponding nodes, and one edge corresponds to one publication time.
3. The method according to claim 2, characterized in that The method is used to disambiguate multiple documents with the same author name; In S30, the target type is a document feature; In S50, the ambiguous entity is the author.
4. The method according to claim 3, characterized in that The S20 includes: using a multi-layer perceptron to perform feature encoding on the attribute data corresponding to all nodes in the temporal heterogeneous academic information network to obtain an initial feature vector; The expression of the multi-layer perceptron is formula (1), and the formula (1) is: h u =σ(x u W1+b1) (1); In formula (1), x u represents the attribute data corresponding to a node u, W1 represents the first weight matrix of the multilayer perceptron, b1 represents the first bias matrix of the multilayer perceptron, h u Represents x u The corresponding initial feature vector; σ(·) represents the activation function.
5. The method according to claim 4, characterized in that The S30 includes: S301, based on the time-series heterogeneous academic information network, taking any two target nodes as the starting point and the end point, traversing the edges and nodes of the time-series heterogeneous academic information network, and determining all meta-paths connecting any two target nodes; S302, based on the meta-path and formula (2), using a meta-path encoder to perform aggregate encoding to obtain an embedding vector corresponding to each meta-path; The formula (2) is: h P (s,j)=f θ (P(s,j)) (2); In formula (2), P(s,j) represents all nodes on a meta-path, s represents the starting point of the meta-path, and j represents the end point of the meta-path; h P (s,j) represents the embedding vector corresponding to the meta-path, f θ (·) represents a meta-path encoder, and the expression of the meta-path encoder is formula (3): In formula (3), MEAN{·} represents the average value operation; h' t represents the initial feature vector of a node t on the meta-path P(s,j); S303: For a target node s, obtain all meta-paths starting from the target node s to form a target meta-path set, expressed as (P(s,j)1,t1),(P(s,j)2,t2),…,(P(s,j) n ,t n ), where P(s,j) n represents the target meta-path of the nth target meta-path, t n Indicates the timestamp of the nth target meta-path, where the value of the timestamp is the publishing time attached to the edge connecting the end point on the corresponding target meta-path; n is a positive integer; S304, determining a corresponding time contribution factor based on the difference between the timestamps of the n target meta-paths and the current time; S305. Based on the time contribution factors of the n target meta-paths and the corresponding initial feature vectors, according to formula (10), the timing information of the target node is extracted to obtain n timing feature vectors corresponding to the n target meta-paths of the target node as the timing feature vector set of the target node, which is expressed as The formula (10) is: In formula (10), represents the temporal feature vector of the target node s under the i-th target meta-path P, η i represents the time contribution factor of the i-th target meta-path, represents the initial feature vector of all nodes on the ith meta-target path, i is a positive integer less than or equal to n, and σ(·) represents the activation function; S306. Repeat S303 to S305 until a set of time series feature vectors of all target nodes is obtained.
6. The method according to claim 5, characterized in that The S304 includes: Based on the difference between the timestamps of the n target meta-paths and the current time, determine the time contribution factor of each target meta-path according to formulas (4) to (7); The formulas (4) to (7) are: k(t-t i )=exp(δ i (t-t i )) (5); In formulas (4) to (7), η i represents the time contribution factor of the i-th target meta-path, α i represents the first attention coefficient of the i-th target meta-path, Represents a target node s and the i-th target meta-path P(s,j) determined based on negative Euclidean distance i The similarity between them, k(·) represents the contribution function used to model the time, exp(·) represents the exponential function with e as the base, δ i represents the time contribution rate, t represents the current time, t i represents the i-th target meta-path P(s,j) i The corresponding timestamp.
7. The method according to claim 6, characterized in that The first attention coefficient is obtained based on a first calculation step, and the first calculation step includes: T1, based on the difference between the timestamp corresponding to each target meta-path and the current time, determine the importance of the target meta-path P(s, j) to the target node s according to formula (8); The formula (8) is: In formula (8), LeakyReLU(·) represents the LeakyReLU activation function, represents the first parameterized attention vector preset for the target meta-path P, || represents the vector concatenation operation, and h' s represents the initial feature vector of the target node s, e i represents the i-th target meta-path P(s,j) i The importance of the target node s; T2. Based on the importance of all target meta-paths P(s, j) to the target node s, normalization is performed according to formula (9) to obtain the first attention coefficient of each target meta-path; the formula (9) is: In formula (9), α i represents the first attention coefficient of the i-th target meta-path, and exp(·) represents the exponential function with e as the base.
8. The method according to any one of claims 5 to 7, characterized in that The S40 includes: S401, based on the time series feature vector set of the target node s According to formula (11), secondary feature aggregation is performed to obtain the semantic feature vector of the target node s under its target meta-path; the formula (11) is: In formula (11), represents the semantic feature vector of the target node s under its target meta-path, β P represents the second attention coefficient of the target meta-path P, represents the set of temporal feature vectors of the target node s under the target meta-path set, P A represents the set of all target meta-paths to the target node s; S402: semantic feature vector based on target node s under target meta-path The final representation vector of the target node s is determined according to formula (12), which is: In formula (12), z s represents the final representation vector of the target node s, σ(·) represents the activation function, and W o represents the third weight matrix; S403. Repeat steps S401 to S402 until the final representation vectors of all target nodes are obtained.
9. The method according to claim 8, characterized in that In S401, the second attention coefficient of the target meta-path P is obtained based on a second calculation step, and the second calculation step includes: Q1. According to formula (13), the time series feature vector set of the target node s is Perform secondary feature transformation to obtain an intermediate semantic feature vector; the formula (13) is: In formula (13), represents the intermediate semantic feature vector corresponding to the i-th temporal feature vector of the target node s, V A represents the set of all target nodes, |·| represents the operation of taking the number of set elements, tanh(·) represents the tanh activation function, W2 represents the second weight matrix, b2 represents the second bias matrix, represents the i-th time series feature vector of the target node s; Q2. Based on the above M intermediate semantic feature vectors, determine the importance of the intermediate semantic feature vectors to the target node s one by one according to formula (14); the formula (14) is: In formula (14), represents the importance of the i-th intermediate semantic feature vector to the target node s, A second parameterized attention vector representing the target meta-path preset; Q3. Based on the importance of the n intermediate semantic feature vectors to the target node s, normalization is performed according to formula (15) to obtain the second attention coefficient of the target meta-path P. The formula (15) is: In formula (15), represents the second attention coefficient of the i-th target meta-path P, e P Represents the importance of the semantic features of all target meta-paths to the target node s.
10. An electronic device, characterized in that: It includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program stored in the memory, the steps of the method for disambiguating personal names based on a time-series heterogeneous academic information network as described in any one of claims 1 to 9 are implemented.
Citation Information
Cited By
Automatic construction method of traditional Chinese medicine knowledge graph based on node splitting and node shrinking
CN119294501A
