Commodity alignment method based on dynamic graph neural network

By using the dynamic graph neural network combined with the temporal relationship attention mechanism and context clustering on the e-commerce platform, the problem of the complexity of dynamic attributes and time-sensitive information in the entity alignment technology in the e-commerce platform is solved, and a more efficient and accurate Product matching.

CN118709693AActive Publication Date: 2024-09-27CAIQIMAO (GUANGZHOU) INFORMATION TECHNOLOGY CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410877618.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-27
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

In e-commerce platforms, dynamic changes in entity relationships and attributes, complex contextual information, and time-sensitive information complexity make it difficult for existing entity alignment technologies to achieve efficient and accurate product matching.

Method used

A product alignment method based on dynamic graph neural networks is adopted, including the context evolution module, graph attention network GAT and GCN-GRU combined network. Through the temporal relationship attention mechanism and context clustering, it captures the temporal relationship and dynamic changes of product attributes and optimizes matching. efficiency.

Benefits of technology

It achieves more accurate cross-platform product matching, reduces invalid matching, improves matching efficiency, and enhances the model's sensitivity to product changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709693A
    Figure CN118709693A
Patent Text Reader

Abstract

The invention belongs to the field of network alignment technology application, and particularly relates to a commodity alignment method based on a dynamic graph neural network, which comprises the following steps: acquiring commodity information of different e-commerce platforms, determining a to-be-matched commodity, inputting the commodity information of the different e-commerce platforms into a trained dynamic graph neural network, matching scores of the to-be-matched commodity and other commodities are obtained, and the commodity which is located on different e-commerce platforms from the to-be-matched commodity and has the highest matching score is selected as an aligned commodity of the to-be-matched commodity; a context evolution module based on time perception is designed, and when data of an e-commerce platform is processed, the time relation between commodity attributes changing along with time is captured; according to the cross-platform commodity matching method, a time relation attention mechanism is adopted, it is ensured that the contribution degree and importance of each time node are accurately reflected by evaluating and endowing different time points with corresponding attention weights while the commodity attributes and the commodity relations are considered, and therefore more accurate cross-platform commodity matching is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of network alignment technology application, and specifically relates to a commodity alignment method based on a dynamic graph neural network. Background Art

[0002] In recent years, with the rapid development of Internet technology, e-commerce has become one of the main forms of global business activities. The commodity entity information on e-commerce platforms is becoming increasingly large and dynamically changing. This information often comes from different data channels, so there may be a large number of duplicate entities. Entity alignment technology aims to match the corresponding entities in different data sources in order to better integrate and analyze data. In the business field, entity alignment provides convenience for enterprises to implement personalized marketing strategies and accurately push products and services; in terms of national security, entity alignment can help track and identify potential terrorists or cyber attackers. Therefore, entity alignment research has received widespread attention from many domestic and foreign scholars.

[0003] So far, domestic and foreign researchers have conducted in-depth research on entity alignment technology. Existing entity alignment methods can be mainly divided into two types: traditional knowledge graph alignment technology based on relationship reasoning and similarity calculation; graph neural network-based entity alignment model that uses graph neural network to learn low-dimensional vector representations of different entities in the knowledge graph, aggregates entities and their relationship features by considering domain information, and also takes into account single-hop and multi-hop domain information to achieve efficient feature aggregation process and improve the efficiency of entity alignment.

[0004] At present, although a lot of research has been done on entity alignment technology and fruitful research results have been achieved, there are still some problems:

[0005] (1) In e-commerce platforms, entity relationships and attributes are dynamically changing. How to better utilize their dynamic attributes for entity alignment is a difficult problem.

[0006] (2) The problem of complex and diverse information in e-commerce platforms. How to effectively extract the contextual information of complex e-commerce platforms affects the accuracy of alignment.

[0007] (3) Timeliness of data in e-commerce platforms. In e-commerce platforms, rich time information is the key to alignment, and how to effectively use time information is obviously a problem. Summary of the invention

[0008] In order to solve the above-mentioned problems in the prior art, the present invention adopts a product alignment method based on a dynamic graph neural network, including: obtaining product information from different e-commerce platforms, determining products to be matched, inputting the product information from different e-commerce platforms into a trained dynamic graph neural network, obtaining the matching scores between the products to be matched and the remaining products, and selecting the products that are on different e-commerce platforms and have the highest matching scores as the aligned products of the products to be matched; the dynamic graph neural network includes: a context evolution module, a graph attention network GAT, and a GCN-GRU combined network;

[0009] The training process of dynamic graph neural network includes:

[0010] S1. Obtain product information from different e-commerce platforms, extract the product information, and obtain a product sequence; the product sequence includes multiple products, each product includes basic attributes and attribute values; the basic attributes are arranged in chronological order of appearance;

[0011] S2, using the context clustering method to perform context clustering on the product sequence to obtain a set of product clusters;

[0012] S3. Construct a product knowledge graph for each product cluster in the product cluster set; the nodes of the product knowledge graph are products, and the edges are the relationships between products;

[0013] S4, input the product cluster and its product knowledge graph into the context evolution module to obtain the product embedding of each product cluster;

[0014] S5. Input the product embedding of the product cluster into GAT and process it using the temporal relationship attention mechanism to obtain the implicit feature representation of each product in each product cluster;

[0015] S6. Determine the target product, input the implicit feature representation of each product in the product cluster into the GCN-GRU combined network, and obtain the final embedded representation of the target product;

[0016] S7, input the final embedded representation of the target product into the fully connected layer to obtain the prediction result of the target product;

[0017] S8. Calculate the loss function value according to the prediction result of the target product, update the model parameters according to the loss function value, and complete the model training when the loss function value is minimized.

[0018] The context clustering method is used to perform context clustering on the product sequence, including:

[0019] S21. Divide the basic attributes of the commodity into general attributes and specific attributes;

[0020] S22, using the Jaccard similarity algorithm to calculate a similarity matrix between all products based on the common attributes; clustering the products based on the similarity matrix to obtain a product cluster based on the common attributes;

[0021] S23, using the Jaccard similarity algorithm to calculate a similarity matrix between all commodities according to the specific attributes; clustering the commodities according to the similarity matrix to obtain commodity clusters based on the specific attributes;

[0022] S24. Combining the commodity clusters based on common attributes and the commodity clusters based on specific attributes to obtain a commodity cluster set: Among them, commodity cluster C k [p * ]={(p * ,e i ,o i )|e i ∈C k}, where e i is the i-th product in the k-th product cluster, p * is the attribute group of the kth product cluster. The attributes in the attribute group are arranged in the order of appearance. i For product e i In the attribute group p * The attribute value vector on , K is the number of product clusters.

[0023] The basic attributes of commodities are divided into:

[0024]

[0025] Among them, l p is the identifier of the attribute, l p =0 indicates general attributes, l p =1 indicates a specific attribute, w and a indicate parameters, prop p Represents the proportion of attribute p, and unknown represents unknown.

[0026] Constructing a product knowledge graph for each product cluster in the product cluster set includes: taking each product as a node of the product knowledge graph; each occurrence of an attribute corresponds to a time step, calculating the relationship between the products at each time step, and taking the relationship as an edge of the product knowledge graph.

[0027] The context evolution module includes: a GNN encoder and a time context encoder; the context evolution module processes the product cluster and its product knowledge graph including:

[0028] S41, inputting the product cluster into a time context encoder to aggregate context information, and obtaining a time vector for each product in the product cluster;

[0029] S42, inputting the commodity knowledge graph of the commodity cluster into the GNN encoder to obtain the relationship vector of each commodity in the commodity cluster;

[0030] S43: embed the time vector and the relationship vector of each commodity in the commodity cluster respectively, and fuse the embedding results to obtain the commodity embedding of each commodity cluster.

[0031] The temporal context encoder processes the commodity clusters in the commodity cluster set, including: using a linear mapping method to generate an initial representation of each commodity in each commodity cluster, splicing the initial representations of the commodities in each commodity cluster to obtain an initial commodity embedding of each commodity cluster, and using a temporal context encoder to process the initial commodity embedding of each commodity cluster to obtain a time vector of each commodity in the commodity cluster.

[0032] The use of the temporal relationship attention mechanism to process the product embedding of the product cluster includes:

[0033]

[0034] Among them, a i,j,x From commodity node e i To e j On the edge of x The time-specific attention coefficient, β i,j,m From commodity node e i To e j On the edge of x The corresponding relationship r m The relation-specific attention coefficient, W t is the diagonal time transformation matrix, W r is the diagonal relation transformation matrix, Represents all nodes from commodity e i To e j The set of time steps on the edge of Represents the commodity node e i The set of adjacent products, t x Represents a collection of time steps The time steps included, r m Indicates that at time step t x From commodity node e i To e j The relationship on the edge, is the commodity node e j Hidden features at the qth layer of GAT.

[0035] Time-specific attention coefficient a i,j,x for:

[0036]

[0037] in, Represents the commodity node e i The time vector, Represents the commodity node e i At time step t x The embedding of the time vector, Represents the commodity node e z At time step t x ′ is the embedding of the time vector.

[0038] Relation-specific attention coefficient β i,j,m for:

[0039]

[0040] in, Represents the commodity node e i The relationship vector of Represents the commodity node e i and commodity node e j The relationship m The corresponding relationship vector embedding, Represents the commodity node e i and commodity node e z The relationship r′ m The corresponding relationship vector embedding, Indicates that from the commodity node e i To product node e z The set of time steps and relations on the edge of m Representing a collection At time step t x relationship.

[0041] The GCN-GRU combined network processes the implicit feature representation of each product including:

[0042]

[0043] Among them, W (l-1) represents the parameter matrix of GCN in the l-1th layer GCN-GRU combination network, is the commodity node e u The features of GCN output in the l-1th layer GCN-GRU combined network, For the target product f The set of adjacent commodity nodes, Represents the features of the GRU output in the l-1th layer GCN-GRU combination network, is the feature of GCN output in the l-th layer GCN-GRU combined network, is the implicit feature representation of the target product at the lth time step, Q is the number of layers of GAT

[0044] Beneficial effects:

[0045] 1. The present invention designs a time-aware context evolution module to capture the temporal relationship between product attributes that change over time when processing data from e-commerce platforms; 2. The present invention adopts a temporal relationship attention mechanism to ensure that while considering the relationship between products, different time points are evaluated and given corresponding attention weights, accurately reflecting the contribution and importance of each time node, thereby achieving more accurate cross-platform product matching, significantly reducing invalid matching of product changes, and optimizing matching efficiency; 3. The present invention combines GCN and GRU to capture the dynamic information of product features evolving over time, thereby enhancing the model's sensitivity to product changes. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A flowchart of a product alignment method based on a dynamic graph neural network provided by an embodiment of the present invention;

[0047] Figure 2 A schematic diagram of a temporal relationship attention mechanism provided by an embodiment of the present invention;

[0048] Figure 3 A schematic diagram of a context evolution module provided in an embodiment of the present invention;

[0049] Figure 4 A schematic diagram of an alignment module provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] The present invention provides a product alignment method based on a dynamic graph neural network, comprising: obtaining product information of different e-commerce platforms, determining products to be matched, inputting the product information of different e-commerce platforms into a trained dynamic graph neural network, obtaining a matching score between the product to be matched and other products, and selecting a product that is on a different e-commerce platform from the product to be matched and has the highest matching score as an alignment product for the product to be matched; the dynamic graph neural network comprises: a context evolution module, a graph attention network GAT, and a GCN-GRU combined network;

[0052] like Figure 1As shown in the figure, the training process of the dynamic graph neural network includes:

[0053] S1. Obtain product information from different e-commerce platforms, extract the product information, and obtain a product sequence; the product sequence includes multiple products, each of which includes: basic attributes P = {p 1 ,…,p n} and their attribute values; the basic attributes are arranged in the order of appearance; where n is the number of attributes;

[0054] S2, using the context clustering method to perform context clustering on the product sequence to obtain a set of product clusters;

[0055] In the commodity database, the two attributes "production date" and "shelf life start date" often appear together, but their contribution to revealing the evolution of the commodity life cycle is limited. This is because there is an inherent correlation between some commodity attributes (for example, food with a "shelf life start date" must have a "production date"), which leads to the problem of overlapping attributes. For a certain type of commodity, its common attributes are often prevalent in all commodities in this category, while specific attributes are only reflected in a few individuals in this category. For example, the "production date" attribute appears in almost all food products, but attributes such as "suitable for sports occasions" and "outdoor protection level" only appear in some specific types of outdoor equipment products.

[0056] Therefore, the context clustering method is used to perform context clustering on the product sequence, including:

[0057] S21. Divide the basic attributes of the commodity into general attributes and specific attributes;

[0058] S22, using the Jaccard similarity algorithm to calculate a similarity matrix between all products based on the common attributes; clustering the products based on the similarity matrix to obtain a product cluster based on the common attributes;

[0059] S23, using the Jaccard similarity algorithm to calculate a similarity matrix between all commodities according to the specific attributes; clustering the commodities according to the similarity matrix to obtain commodity clusters based on the specific attributes;

[0060] S24. Combining the commodity clusters based on common attributes and the commodity clusters based on specific attributes to obtain a commodity cluster set: Among them, commodity cluster C k [p * ]={(p * ,e i ,o i )|e i ∈C k}, where e iis the i-th product in the k-th product cluster, p * represents the attribute group (specific attribute or common attribute) of the kth product cluster. The attributes in the attribute group are arranged in the order of appearance. i For product e i In the attribute group p * The attribute value vector on the , including the specific attribute values ​​of multiple attributes, K is the number of commodity clusters,, {(p * ,e i ,o i )} is a sequence of commodity attribute changes, which means that at time t, each commodity cluster in the commodity cluster set contains a series of commodities that have * There are specific observation vectors or changes on the .

[0061] The basic attributes of commodities are divided into:

[0062]

[0063] Among them, l p =0 indicates general attributes, l p =1 indicates a specific attribute, w,a∈[0,1] indicates a parameter, prop p Indicates the attribute ratio; in order to reduce the error, l is introduced p = unknown (unknown), when unknown attributes appear, the unknown attributes are ignored and clustering is performed only based on known attributes;

[0064] In one embodiment, preferably, w=0.8, a=0.2;

[0065] Calculating prop p The formula is as follows:

[0066]

[0067] Among them, count(p) represents the number of times attribute p appears, parentType(p) represents the direct parent type of the type of the commodity set including attribute p in the commodity type hierarchy Γ to which it belongs, that is, when the input type is "smartphone", this function may return its parent type "mobile phone", and more organized management and analysis can be carried out according to different levels of entity types. The calculation formula of parentType(p) is as follows:

[0068] parentType(p)=parent(type(E[p]),Γ)

[0069] Where E[p] represents a set of products containing attribute p, type(·) is a type function, which indicates the type of a product set obtained based on the product set;

[0070] The parentType() is a function proposed in the document "TEA: Time-aware Entity Alignment in Knowledge Graphs". Since there is no predefined product type hierarchy Γ that can be used directly, the present invention estimates the product type hierarchy Γ according to a co-occurrence-based method.

[0071] Estimation process:

[0072] Create an attribute co-occurrence matrix M, where M[i][j] represents attribute p i and attribute p j Number of times it appears in the same product:

[0073]

[0074] Among them, δ is the indicator function, and E represents all commodities and their attribute data;

[0075] Use the values ​​in the co-occurrence matrix to compute a co-occurrence measure between attributes:

[0076]

[0077] Use co-occurrence measures between attributes to build a hierarchy of attributes:

[0078] Step 1, initialization: each attribute is treated as an independent cluster;

[0079] Step 2: Calculate the similarity between clusters based on the co-occurrence metric between attributes and merge the most similar clusters;

[0080] Step 3: Repeat step 2 until the preset number of iterations is reached to obtain a predefined attribute hierarchy; the attribute hierarchy includes multiple levels of attribute clusters, and the product type is inferred based on the attribute hierarchy to obtain a product type hierarchy: the product type is a higher-level abstraction of the attribute set, reflecting the main categories and subcategories of the product. For example, from the attribute groupings such as "hardware configuration" and "appearance design", product types such as "high-end smartphones" and "economical tablets" can be inferred; the product types are organized into a tree structure or a hierarchical structure according to their inclusion relationship and similarity. The top layer may be the broadest product category (such as electronic products), followed by subcategories (such as mobile devices), detailed categories (such as smartphones), and finally specific product types (such as gaming phones); finally, a mapping relationship between attributes and product types is established to clarify which attributes belong to which type.

[0081] S3. Construct a commodity knowledge graph for each commodity cluster in the commodity cluster set: define the nodes in the graph as commodities, and define the edges in the graph as the relationships between commodities. m , m is the index of the relationship type.

[0082] Each occurrence of an attribute corresponds to a time step, and the relationship between items calculated at each time step includes:

[0083] Same-category relationship: indicates that two products belong to the same category, such as "Apple phone" and "Samsung phone" are both subcategories of "smartphone"; creating the edge of the same-category relationship includes: obtaining the category attribute of the product. If two products belong to the same category, such as Apple phone and Samsung phone both belong to the smartphone category, then construct a same-category relationship edge between them.

[0084] Complementary relationship: indicates that two products are usually purchased or used together, such as "coffee machine" and "coffee beans". Creating a complementary relationship edge includes: obtaining user behavior data, determining whether the two products are usually purchased or used together, and if so, building a complementary relationship edge between them.

[0085] Substitution relationship: indicates that two products have similar functions and can replace each other, such as "Bluetooth headsets" of different brands. Creating an edge of a substitution relationship includes: obtaining the functional attributes of two products, and if the functions of the two products are similar, then building an edge of a substitution relationship between them.

[0086] S4, input the product cluster and its product knowledge graph into the context evolution module to obtain the product embedding of each product cluster;

[0087] When considering the similarity judgment between products, it is generally believed that products with the same or similar characteristics are very likely to belong to the same category or be comparable. However, product attributes are not static and will evolve with factors such as market changes, technological updates, and changes in user needs. In a certain characteristic cluster of a product (general attributes or specific attributes), time-related attribute changes show an interaction phenomenon along the time axis, that is, attribute changes that occur early often affect other attribute changes that occur in a later period of time. For example, the time attribute of the first launch date of a smartphone can provide important background for understanding its subsequent time attribute changes such as system upgrades and processor updates.

[0088] Therefore, if Figure 3 As shown, the present invention uses the context evolution module to process the commodity clusters of the commodity cluster set and the commodity knowledge graph thereof, including:

[0089] Before using the temporal context encoder and GNN encoder to process the product cluster, the initial representation of each product in the product cluster is generated, including:

[0090] The initial representation of each commodity in the commodity cluster is generated by means of linear mapping, so as to describe the initial state of the commodity in the time series and its law of change over time:

[0091]

[0092] in, For series operation, W 1 is the weight matrix to be learned, is a randomly initialized commodity node e i Embedded, is the initial representation of the kth commodity cluster, and I is the number of commodities in the commodity cluster.

[0093] S41, inputting the product cluster into a time context encoder to aggregate context information, and obtaining a time vector for each product in each product cluster;

[0094] The initial representation is processed using a temporal context encoder to obtain the time vector of each item in the item cluster.

[0095] S42, inputting the commodity knowledge graph of the commodity cluster into the GNN encoder to obtain the relationship vector of the commodity node of each commodity cluster;

[0096] S43: embed the time vectors and relationship vectors of the commodities in the commodity cluster, perform weighted summation on the embedding results, and obtain the commodity embedding of each commodity cluster.

[0097] S5. Input the product embedding of each product cluster into GAT and process it using the temporal relation attention mechanism to obtain the implicit feature representation of each product in each product cluster.

[0098] Using the temporal relationship attention mechanism to process the product embedding of each product cluster includes:

[0099] As an extension of the traditional graph convolutional network (GCN), the graph attention network (GAT) incorporates a self-attention mechanism, which optimizes the feature representation of each product by paying attention to other products adjacent to the current product:

[0100]

[0101] Among them, σ(.) is a nonlinear activation function, is the commodity node e i The set of adjacent commodity nodes, e j For collection The jth commodity node included, W is the shared transformation matrix, a i,j For node e i To node e j The attention coefficient is , and q is the index of the GAT layer.

[0102] like Figure 2 As shown, in order to establish a temporal relationship attention mechanism, the present invention defines a new time-specific attention coefficient a i,j,x, relation-specific attention coefficient β i,j,m , diagonal time transformation matrix W t And the diagonal relationship transformation matrix W r .

[0103] Note that the coefficient is calculated as:

[0104]

[0105] The updated product characteristic equation can be obtained from the above formula:

[0106]

[0107] Among them, a i,j,x From commodity node e i To e j On the edge of x The corresponding time-specific attention coefficient, β i,j,m From commodity node e i To e j On the edge of x The corresponding relationship r m The corresponding relation-specific attention coefficient, W t is the diagonal time transformation matrix, W r is the diagonal relation transformation matrix, Represents all nodes from commodity e i To e j The set of time steps on the edge of Represents the commodity node e i The set of adjacent products, t x Represents a collection of time steps The time steps included, r m Indicates that at time step t x From commodity node e i To e j The relationship on the edge, is the commodity node e j Hidden features in the qth layer of GAT; Represents the commodity node e i The time vector, Represents the commodity node e i At time step t x The embedding of the time vector, Represents the commodity node e z At time step t′ x Embedding of the time vector of ; Represents the commodity node e i The relationship vector of Represents the commodity node e i and commodity node ej The relationship m The corresponding relationship vector embedding, Represents the commodity node e i and commodity node e z The relationship r′ m The corresponding relationship vector embedding, Indicates that from the commodity node e i To product node e z The set of time steps and relations on the edge of m Representing a collection At time step t x relationship.

[0108] S6. Determine the target product, input the implicit feature representation of each product in each product cluster into the GCN-GRU combined network, and obtain the final embedded representation of the target product;

[0109] like Figure 4 As shown in the figure, in order to effectively extract relevant information from the adjacent nodes of each product node, the two models of graph neural networks (GNNs) and recurrent neural networks (GRU) are borrowed. They each uniquely focus on the correlation between a node and its adjacent nodes, as well as the sequential dependency between adjacent nodes.

[0110] As an advanced graph neural network model, Graph Convolutional Networks (GCNs) is based on the core idea of ​​integrating the embedded representations of all neighboring nodes around each node in an intuitive and efficient way, and randomly sampling a commodity node as the target commodity. f Next, the current data related to the node will be extracted in all aspects based on the local environment of the node, that is, the characteristic set of its neighboring nodes and the information status it carries in the upper layer of the network architecture.

[0111] Recurrent neural networks (Gated Recurrent Unit, GRU) have excellent capabilities in capturing complex dependencies between sequences. The present invention chooses to adopt this type of network architecture to extract the temporal information features contained in the sequence of adjacent nodes around the selected commodity node.

[0112] Therefore, the present invention adopts the GCN-GRU combined network to effectively extract relevant information from the adjacent nodes of each commodity node:

[0113]

[0114] Among them, W (l-1) represents the parameter matrix of GCN in the l-1th layer GCN-GRU combination network, is the commodity node eu The features of GCN output in the l-1th layer GCN-GRU combined network, For the target product f The set of adjacent commodity nodes, Represents the features of the GRU output in the l-1th layer GCN-GRU combination network, is the feature of GCN output in the l-th layer GCN-GRU combined network, is the l-th implicit feature representation of the target product, that is, the implicit feature representation of the l-th time step, and Q is the number of layers of GAT.

[0115] Since two clusterings are performed during context clustering, one product belongs to two product clusters. The GCN-GRU combined network is used to aggregate and update the features of the neighbor nodes of the target product in the two product clusters, and the obtained results are fused to obtain the final embedded representation.

[0116] S7. Input the final embedding representation of the target product into the fully connected layer to obtain the prediction result of the target product

[0117] S8. Calculate the loss function value according to the prediction result of the target product, update the model parameters according to the loss function value, and complete the model training when the loss function value is minimized.

[0118] After completing the embedding representation learning of all nodes, the final embedding vector of the target node is transformed through a fully connected layer in order to predict the matching score between the node and other candidate products. The loss function is defined as:

[0119]

[0120] Among them, y z ′ represents the prediction result of the model, which represents the candidate product e z With the target product f The similarity of z is the true label, and N is the total number of candidate products.

[0121] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A product alignment method based on dynamic graph neural network, characterized in that: include: Obtain product information from different e-commerce platforms, determine the products to be matched, input the product information from different e-commerce platforms into the trained dynamic graph neural network, obtain the matching score between the products to be matched and the remaining products, and select the product with the highest matching score on a different e-commerce platform as the alignment product for the products to be matched; The dynamic graph neural network includes: a context evolution module, a graph attention network GAT, and a GCN-GRU combined network; The training process of dynamic graph neural network includes: S1. Obtain product information from different e-commerce platforms, extract the product information, and obtain a product sequence; the product sequence includes multiple products, each product includes basic attributes and attribute values; the basic attributes are arranged in chronological order of appearance; S2, using the context clustering method to perform context clustering on the product sequence to obtain a set of product clusters; S3. Construct a product knowledge graph for each product cluster in the product cluster set; the nodes of the product knowledge graph are products, and the edges are the relationships between products; S4, input the product cluster and its product knowledge graph into the context evolution module to obtain the product embedding of each product cluster; S5. Input the product embedding of the product cluster into GAT and process it using the temporal relationship attention mechanism to obtain the implicit feature representation of each product in each product cluster; S6. Determine the target product, input the implicit feature representation of each product in the product cluster into the GCN-GRU combined network, and obtain the final embedded representation of the target product; S7, input the final embedded representation of the target product into the fully connected layer to obtain the prediction result of the target product; S8. Calculate the loss function value according to the prediction result of the target product, update the model parameters according to the loss function value, and complete the model training when the loss function value is minimized.

2. A commodity alignment method based on dynamic graph neural network according to claim 1, characterized in that: The context clustering method is used to perform context clustering on the product sequence, including: S21. Divide the basic attributes of the commodity into general attributes and specific attributes; S22, using the Jaccard similarity algorithm to calculate a similarity matrix between all products based on the common attributes; clustering the products based on the similarity matrix to obtain a product cluster based on the common attributes; S23, using the Jaccard similarity algorithm to calculate a similarity matrix between all commodities according to the specific attributes; clustering the commodities according to the similarity matrix to obtain commodity clusters based on the specific attributes; S24. Combining the commodity clusters based on common attributes and the commodity clusters based on specific attributes to obtain a commodity cluster set: Among them, commodity cluster C k [p * ]={(p * ,e i ,o i )|e i ∈C k }, where e i is the i-th product in the k-th product cluster, p * is the attribute group of the kth product cluster. The attributes in the attribute group are arranged in the order of appearance. i For product e i In the attribute group p * The attribute value vector on , K is the number of product clusters.

3. A commodity alignment method based on dynamic graph neural network according to claim 2, characterized in that: The basic attributes of commodities are divided into: Among them, l p is the identifier of the attribute, l p =0 indicates general attributes, l p =1 indicates a specific attribute, w and a indicate parameters, prop p Represents the proportion of attribute p, and unknown represents unknown.

4. The product alignment method based on dynamic graph neural network according to claim 1 is characterized in that: Constructing a product knowledge graph for each product cluster in the product cluster set includes: taking each product as a node of the product knowledge graph; each occurrence of an attribute corresponds to a time step, calculating the relationship between the products at each time step, and taking the relationship as an edge of the product knowledge graph.

5. The method for product alignment based on dynamic graph neural network according to claim 1, characterized in that: The context evolution module includes: a GNN encoder and a time context encoder; the context evolution module processes the product cluster and its product knowledge graph including: S41, inputting the product cluster into a time context encoder to aggregate context information, and obtaining a time vector for each product in the product cluster; S42, inputting the commodity knowledge graph of the commodity cluster into the GNN encoder to obtain the relationship vector of each commodity in the commodity cluster; S43: embed the time vector and the relationship vector of each commodity in the commodity cluster respectively, and fuse the embedding results to obtain the commodity embedding of each commodity cluster.

6. A commodity alignment method based on dynamic graph neural network according to claim 5, characterized in that: The temporal context encoder processes the commodity clusters in the commodity cluster set, including: using a linear mapping method to generate an initial representation of each commodity in each commodity cluster, splicing the initial representations of the commodities in each commodity cluster to obtain an initial commodity embedding of each commodity cluster, and using a temporal context encoder to process the initial commodity embedding of each commodity cluster to obtain a time vector of each commodity in the commodity cluster.

7. The product alignment method based on dynamic graph neural network according to claim 1 is characterized in that: The use of the temporal relationship attention mechanism to process the product embedding of the product cluster includes: Among them, a i,j,x From commodity node e i To e j On the edge of x The time-specific attention coefficient, β i,j,m From commodity node e i To e j On the edge of x The corresponding relationship r m The relation-specific attention coefficient, W t is the diagonal time transformation matrix, W r is the diagonal relation transformation matrix, Represents all nodes from commodity e i To e j The set of time steps on the edge of Represents the commodity node e i The set of adjacent products, t x Represents a collection of time steps The time steps included, r m Indicates that at time step t x From commodity node e i To e j The relationship on the edge, is the commodity node e j Hidden features at the qth layer of GAT.

8. A commodity alignment method based on dynamic graph neural network according to claim 7, characterized in that: Time-specific attention coefficient a i,j,x for: in, Represents the commodity node e i The time vector, Represents the commodity node e i At time step t x The embedding of the time vector, Represents the commodity node e z At time step t ′ x The embedding of the time vector.

9. The method for product alignment based on dynamic graph neural network according to claim 7, characterized in that: Relation-specific attention coefficient β i,j,m for: in, Represents the commodity node e i The relationship vector of Represents commodity node e i and commodity node e j The relationship m The corresponding relationship vector embedding, Represents the commodity node e i and commodity node e z The relationship ′ m The corresponding relationship vector embedding, Indicates that from the commodity node e i To product node e z The set of time steps and relations on the edge, r ′ m Representing a collection At time step t x relationship.

10. The product alignment method based on dynamic graph neural network according to claim 1, characterized in that: The GCN-GRU combined network processes the implicit feature representation of each product including: Among them, W (l-1) represents the parameter matrix of GCN in the l-1th layer GCN-GRU combination network, is the commodity node e u The features of GCN output in the l-1th layer GCN-GRU combined network, For the target product f The set of adjacent commodity nodes, Represents the features of the GRU output in the l-1th layer GCN-GRU combination network, is the feature of GCN output in the l-th layer GCN-GRU combined network, is the feature of the lth time step represented by the implicit feature of the target product, and Q is the number of layers of GAT.

Citation Information

Patent Citations

  • Medical entity alignment method and system based on double-neighborhood graph neural network

    CN113361279A

  • Graph neural network-based session recommendation method and system fused with self-attention mechanism

    CN114971784A

  • Goods information automatic completion method based on graph neural network

    CN115269878A

  • Cross-website commodity alignment method and device

    CN115345687A

  • Entity alignment method for customs import and export commodity knowledge graph

    CN115641599A