Cross-e-commerce platform commodity alignment method based on unsupervised learning

Through unsupervised learning methods, including low-rank tensor completion and knowledge graphs, the problem of high-cost label acquisition and high-dimensional sparsity in cross-platform product alignment is solved, efficient and accurate product alignment is achieved, and the integrity of the data set is improved. and autonomy of the alignment algorithm.

CN118747674APending Publication Date: 2024-10-08CHONGQING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410903757.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Cross-platform product alignment faces high-cost positive entity data label acquisition, complex high-dimensional feature processing, and high-dimensional sparsity issues, resulting in inefficiency and inaccurate alignment results.

Method used

Using a method based on unsupervised learning, by constructing product-category-description tensors, using low-rank tensor completion models for data completion, learning product triplet embedding representations, using self-organizing mapping networks to divide subsets, and constructing Knowledge graph, using graph attention network for product alignment.

Benefits of technology

It significantly reduces the dependence on labels, improves the autonomy and generalization ability of the alignment algorithm, reduces the alignment complexity, improves processing efficiency and accuracy, and enhances the integrity and reliability of the data set.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747674A_ABST
    Figure CN118747674A_ABST
Patent Text Reader

Abstract

The invention relates to an unsupervised learning-based cross-e-commerce platform commodity alignment method. The method comprises the following steps of: complementing commodity data of two e-commerce platforms by utilizing a low-rank tensor complementing model; respectively constructing a commodity triple set corresponding to each e-commerce platform according to the commodity data complemented by the two e-commerce platforms; according to the commodity triple set corresponding to each e-commerce platform, utilizing a knowledge representation learning algorithm to learn the embedded representation of each commodity triple; dividing a commodity triple set corresponding to each e-commerce platform into a plurality of commodity triple subsets by using a self-organizing mapping network according to the embedding representation of the commodity triple; constructing a knowledge graph according to each commodity triple subset, and aligning the commodities of the two e-commerce platforms by using a graph attention network according to the knowledge graph of each commodity triple subset; according to the method, the problem of huge cross-platform commodity data can be relieved through tensor completion and pre-classification methods, and cross-platform commodity alignment is realized through an unsupervised cross-platform alignment method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of Internet application technology, and in particular relates to a cross-e-commerce platform product alignment method based on unsupervised learning. Background Art

[0002] The Internet is developing rapidly in today's world, and various types of e-commerce platforms have emerged. Online shopping has become a popular way of consumption. People will buy or sell the same products on different platforms. Product alignment technology aims to align products on different platforms. For merchants, aligning products on different e-commerce platforms can help them better control market information. For consumers, by comparing products on different e-commerce platforms, they can choose the most cost-effective products. Therefore, the product alignment task has received extensive attention from scholars at home and abroad.

[0003] So far, domestic and foreign scholars have conducted a lot of research on the task of product alignment. At present, the task of product entity alignment can be divided into two categories: supervised product entity alignment and unsupervised product entity alignment. The supervised learning-based product entity alignment method labels the products, marks the product data to train the model, and uses the trained model to align the product entities; the unsupervised learning-based product entity alignment method does not require labels, analyzes the internal connection of product data through similarity measurement, and predicts the entity alignment of products.

[0004] Domestic and foreign scholars have achieved remarkable results in cross-platform product alignment research, laying a solid foundation for future research. However, product entity alignment still faces some challenges when facing cross-platform product data:

[0005] 1. The cost of labeling positive entity data for products across platforms is huge. Most entity alignment tasks achieve entity alignment by labeling positive entities, but combined with the actual e-commerce platform product data, the cost of labeling positive entity data is huge, which brings difficulties to cross-platform product alignment.

[0006] 2. Complexity of cross-platform product features. In actual e-commerce platforms, product features have high dimensionality, especially in large-scale e-commerce platforms, where each product may have dozens or even hundreds of features. When aligning products across platforms, these high-dimensional features need to be processed. The alignment process may consume a lot of computing resources and time, resulting in a decrease in the efficiency of cross-platform product alignment, making cross-platform product alignment highly complex.

[0007] 3. High-dimensional sparsity of cross-platform product data. Cross-platform product data has many features, but most of the feature values ​​are missing. This high-dimensional sparsity brings certain challenges to the research on cross-platform product alignment. Especially when it comes to product data of actual e-commerce platforms, the missing data will lead to inaccurate models during the alignment process. Summary of the invention

[0008] In order to solve the problems existing in the background technology, a method for aligning products across e-commerce platforms based on unsupervised learning is provided in the present invention, comprising:

[0009] S1: Based on the product data of the two e-commerce platforms, the "product-category-description" tensors are constructed respectively, and the constructed "product-category-description" tensors are completed using the low-rank tensor completion model to obtain the completed product data of the two e-commerce platforms;

[0010] S2: Construct the product triple sets corresponding to each e-commerce platform based on the completed product data of the two e-commerce platforms;

[0011] S3: Based on the product triple sets corresponding to each e-commerce platform, the knowledge representation learning algorithm is used to learn the embedding representation of each product triple;

[0012] S4: Based on the embedded representation of the product triples, the product triple sets corresponding to each e-commerce platform are divided into multiple product triple subsets using a self-organizing map network;

[0013] S5: Construct knowledge graphs according to each product triplet subset respectively, and use graph attention network to align the products of the two e-commerce platforms according to the knowledge graphs of each product triplet subset.

[0014] Preferably, the construction of the "product-category-description" tensor includes:

[0015] Build tensors for two e-commerce platforms and Among them, i1 represents the quantity dimension of the goods in the first e-commerce platform; j1 represents the type dimension of the goods in the first e-commerce platform; k1 represents the description dimension of the goods in the first e-commerce platform; i2 represents the quantity dimension of the goods in the second e-commerce platform; j2 represents the type dimension of the goods in the second e-commerce platform; k2 represents the description dimension of the goods in the second e-commerce platform.

[0016] Preferably, the initial low-rank tensor completion model includes:

[0017]

[0018] sP Ω (M) = P Ω (X)

[0019] Among them, rank(x) represents the rank of tensor X, X represents the target tensor after completion, M represents the tensor to be completed M∈{M1,M2}, and Ω represents the observable element position index set of the tensor to be completed;

[0020] Since the initial low-rank tensor completion model is a non-convex optimization problem, considering the tensor trace norm ‖x‖ * is the convex envelope of the tensor rank, which transforms the tensor completion problem into the following tensor trace norm minimization model, thereby converting it into solving a convex optimization problem:

[0021]

[0022] Among them, ‖X‖ * represents the trace norm of tensor X; since the convex envelope of the tensor rank has no explicit expression, the tensor trace norm cannot be defined as the convex envelope of the tensor rank. By taking the trace norm of tensor X ‖X‖ * Convert to all matrices X that expand the tensor X along n modes (i) The convex combination of the trace norm of , describes the tensor completion problem as the following convex optimization model:

[0023]

[0024] Among them, ω i ≥0 and n represents the number of modes of the tensor X; by introducing n auxiliary tensors The final low-rank tensor completion model is:

[0025]

[0026] xT (i) =A i for i=1,…,n

[0027] xT Ω =M Ω

[0028] Preferably, the construction of the product triple set corresponding to each e-commerce platform includes: constructing product triple sets T1 and T2 for the product data of the two e-commerce platforms respectively; wherein the product triples in the triple set T1 are expressed as (ID1, P1, O1); the product triples in the triple set T2 are expressed as (ID2, P2, O2); ID1 represents the head entity, which is the product name in the first e-commerce platform; O1 represents the tail entity, which is the product name in the first e-commerce platform, ID1≠O1; P1 represents the relationship between ID1 and O1; ID2 represents the head entity, which is the product name in the second e-commerce platform; O2 represents the tail entity, which is the product name in the second e-commerce platform, ID2≠O2.

[0029] Preferably, learning the embedding representation of each commodity triple by using a knowledge representation learning algorithm comprises:

[0030] S31: Randomly generate vector representations of the head entity, relationship, and tail entity of the product triple, denoted as h, v, and u respectively;

[0031] S32: Randomly generate negative sample data; the triplet that originally exists in the product triplet set is called the correct triplet (h, v, u); randomly replace the tail entity in the correct triplet with the entity in the entity set E of the product triplet set, specifically: (h, v, u′), where u′∈E represents the negative sample corresponding to u;

[0032] S33: Constructing loss function Taking the minimum loss function as the optimization goal, optimize the vector representation of the product triples and obtain the embedded representation of the product triples based on the TransE model;

[0033] The loss function includes:

[0034]

[0035] score(h,v,u)=||h+vu||

[0036] Among them, λ>0 represents the boundary parameter value.

[0037] Preferably, the method of dividing the commodity triplet set corresponding to each e-commerce platform into a plurality of commodity triplet subsets by using a self-organizing map network comprises:

[0038] S41: Randomly initialize the weight m of each neuron in the SOM competition layer j (j=1,2,....,N), where N is the number of neurons in the SOM competition layer; after the initialization is completed, set the number of iterations t=1 and then execute step S42;

[0039] S42: Embedding representation z for each product triple in the product triple set i = [hvu], select the best matching unit in the SOM competition layer, denoted as c; the calculation formula is as follows:

[0040]

[0041] Among them, arg min j ||z i -m j ||2 means to find the value that makes ||z i -m j ||2 the smallest independent variable j; ||z i -m j ||2 means z i -m j 2-norm of ;

[0042] S43: For each neuron j in the SOM competition layer, update its weight m j , the calculation formula is as follows:

[0043] m j (t+1)=m j (t)+α(t)·h c (j,t)·[z i -m j (t)]

[0044]

[0045] Among them, m j (t) represents the weight of the jth neuron in the competition layer of SOM after the tth iteration; α(t) represents the learning rate function of SOM, |T| represents the number of elements in the product triple set T; r c and r j They represent the coordinates of the best matching unit c and the jth neuron in the SOM competition layer; the weights m of all neurons in the SOM competition layer j After the update is completed, set t=t+1 and proceed to step S44;

[0046] S44: Repeat steps S42 to S43 until the preset number of iterations is reached. At this time, the weight of the jth neuron in the SOM competition layer is

[0047] S45: For a product triple in the product triple set T, determine the product triple subset number λ to which it belongs. The calculation expression is as follows:

[0048]

[0049] zi Merge into set C λ In, C λ =C λ ∪{z i};

[0050] S46: Step S45 is continuously repeated until all product triples in the product triple set T are traversed; the product triple subset set obtained after SOM clustering of the two e-commerce platforms is recorded as and Where J and K represent the number of product triplet subsets of the two platforms, x represents the entity in the first e-commerce platform, and y represents the entity in the second e-commerce platform; represents the j-th product triplet subset of the first e-commerce platform; Represents the kth product triplet subset of the second e-commerce platform.

[0051] Preferably, constructing a knowledge graph according to each commodity triplet subset includes:

[0052] S51: extracting the common features of all product triples in the product triple subsets on the two e-commerce platforms respectively;

[0053] S52: Calculate common features using the cosine similarity algorithm and The similarity is calculated as follows:

[0054]

[0055] in, and Represents the feature vector and The modulus of; j∈{1,2,…,J}, k∈{1,2,…,K}; represents the common features of all product triplets in the jth product triplet subset of the first e-commerce platform; represents the common features of all product triplets in the kth product triplet subset of the second e-commerce platform;

[0056] S53: Extract the M pairs with the highest similarity and And renumber them to get the common feature set: Map the common feature set back to the product triple subset to obtain

[0057] S54: For each subset pair Build separately and knowledge graph.

[0058] Preferably, the common features of all product triples in the extracted product triple subset include:

[0059] S511: Define the feature vector set of all product triplets in the product triplet subset as Z = [z1, z2, ..., z n ], calculate the mean vector of Z The formula is as follows:

[0060]

[0061] Where n represents the number of product triples in the product triple subset; then calculate the central vector group Z of vector group Z c , the formula is as follows:

[0062]

[0063] Z c =[z c1 , z c2, …,z cn ]

[0064] S512: Calculate vector group Z c The covariance matrix C of is as follows:

[0065]

[0066] in, Represents Z c The transpose of

[0067] S513: Find the eigenvalue and eigenvector of Z. The eigenvalue decomposition covariance matrix C is expressed as follows:

[0068] (C-λ i E)v i =0

[0069] Among them, v i is the eigenvector, λ i is the eigenvalue; E represents the identity matrix;

[0070] S514: Select the largest eigenvalue λ i The corresponding eigenvector v i as a common feature of a subset of product triplets;

[0071] S515: Traversal C x and C y The product triple subset in executes S511 to S514 to obtain C x and C y Common features of the subset of product triples in and

[0072] Preferably, the aligning the products of the two e-commerce platforms by using a graph attention network according to the knowledge graph of each product triplet subset includes:

[0073] S51: For each subset pair definition Representation Subset The commodity entity in Representation Subset The product entity in the subset, x and y are a positive sample pair. Randomly select P products that are different from product entity x as negative product entity x of product entity x -p ; From the subset Randomly select P products that are different from product entity y as negative product entity y of product entity y -p , p∈{1,2,…,P};

[0074] S52: and The knowledge graphs of are input into the graph attention network GAE for encoding. and The loss function is constructed by the features after entity encoding in the graph, and the parameters of the graph attention network GAE are updated by gradient propagation until the loss function converges to obtain the aligned and

[0075] Preferably, the loss function includes:

[0076]

[0077] in, represents the loss function, represents a hyperparameter; f(x) T f(y) represents the dot product of the vector representations of two entities x and y after being transformed by the GAE graph autoencoder, and T represents the transpose; f(x) and f(y -p ) represent the positive sample x and the pth negative sample y respectively. -p The vector representation after conversion by GAE graph autoencoder; f(x -p ) represents the negative sample x -p Vector representation after conversion by GAE graph autoencoder.

[0078] The present invention has at least the following beneficial effects

[0079] The present invention is based on unsupervised learning, which makes the negative entities of entity alignment move away, thus largely eliminating the dependence on manually labeled labels, significantly reducing the cost of obtaining large-scale high-quality labeled data, and improving the autonomy and generalization ability of the entity alignment algorithm; by pre-classifying before entity alignment, similar categories of goods are classified into one category, and then entity alignment is performed on each category of goods, thereby effectively reducing the complexity of the overall alignment task and improving processing efficiency and accuracy. For data with missing or incomplete conditions, accurate inferences and effective completion are made based on the discovered product associations, thereby greatly improving the accuracy and completeness of the overall data set, making the data analysis results more reliable and valuable for reference. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 is a schematic diagram of the method of the present invention;

[0081] Figure 2 This is a schematic diagram of the classification of the commodity triple set of the present invention. DETAILED DESCRIPTION

[0082] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.

[0083] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.

[0084] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.

[0085] See also Figure 1 and Figure 2 , a method for aligning products across e-commerce platforms based on unsupervised learning of the present invention comprises:

[0086] S1: Based on the product data of the two e-commerce platforms, the "product-category-description" tensors are constructed respectively, and the constructed "product-category-description" tensors are completed using the low-rank tensor completion model to obtain the completed product data of the two e-commerce platforms;

[0087] S2: Construct the product triple sets corresponding to each e-commerce platform based on the completed product data of the two e-commerce platforms;

[0088] S3: Based on the product triple sets corresponding to each e-commerce platform, the knowledge representation learning algorithm is used to learn the embedding representation of each product triple;

[0089] S4: Based on the embedded representation of the product triples, the product triple sets corresponding to each e-commerce platform are divided into multiple product triple subsets using a self-organizing map network;

[0090] S5: Construct knowledge graphs according to each product triplet subset respectively, and use graph attention network to align the products of the two e-commerce platforms according to the knowledge graphs of each product triplet subset.

[0091] In this embodiment, commodity data is obtained through an API interface provided by an e-commerce platform, and the e-commerce platform may be a commodity trading platform such as TikTok, Taobao, or JD.com.

[0092] Preferably, the construction of the "product-category-description" tensor includes:

[0093] Build tensors for two e-commerce platforms and Among them, i1 represents the quantity dimension of the goods in the first e-commerce platform; j1 represents the type dimension of the goods in the first e-commerce platform; k1 represents the description dimension of the goods in the first e-commerce platform; i2 represents the quantity dimension of the goods in the second e-commerce platform; j2 represents the type dimension of the goods in the second e-commerce platform; k2 represents the description dimension of the goods in the second e-commerce platform.

[0094] In this embodiment, the description dimension of the product is represented as the description of the product including: an introduction to the product, such as the introduction in the details of the product page, including the parameters, materials, styles, etc. of the product.

[0095] Preferably, the initial low-rank tensor completion model includes:

[0096]

[0097] sP Ω (M) = P Ω (X)

[0098] Among them, rank(x) represents the rank of tensor X, X represents the target tensor after completion, M represents the tensor to be completed M∈{M1,M2}, and Ω represents the observable element position index set of the tensor to be completed;

[0099] Since the initial low-rank tensor completion model is a non-convex optimization problem, considering the tensor trace norm ‖x‖ * is the convex envelope of the tensor rank, which transforms the tensor completion problem into the following tensor trace norm minimization model, thereby converting it into solving a convex optimization problem:

[0100]

[0101] Among them, ‖X‖ * represents the trace norm of tensor X; since the convex envelope of the tensor rank has no explicit expression, the tensor trace norm cannot be defined as the convex envelope of the tensor rank. By taking the trace norm of tensor X ‖X‖ * Convert to all matrices X that expand the tensor X along n modes (i) The convex combination of the trace norm of , describes the tensor completion problem as the following convex optimization model:

[0102]

[0103] Among them, ω i ≥0 and n represents the number of modes of the tensor X; by introducing n auxiliary tensors The final low-rank tensor completion model is:

[0104]

[0105] xT (i) =A i for i=1,…,n

[0106] xT Ω =M Ω

[0107] In this embodiment, the cross-platform commodity data has high-dimensional sparsity and numerous features, but most of the feature values ​​are missing. When it comes to commodity data on e-commerce platforms, the missing data causes inaccuracies in the model during the alignment process. Therefore, this embodiment uses a low-rank tensor completion model to complete the acquired e-commerce data, thereby greatly improving the accuracy and completeness of the overall data set, making the data analysis results more reliable and valuable for reference. After obtaining the final low-rank tensor completion model, the traditional method is used for completion, that is, first constructing the augmented Lagrangian function of the low-rank tensor completion model, and using the alternating direction multiplier method to iteratively update the low-rank tensor completion model to solve the completed tensor.

[0108] Preferably, the construction of the product triple set corresponding to each e-commerce platform includes: constructing product triple sets T1 and T2 for the product data of the two e-commerce platforms respectively; wherein the product triples in the triple set T1 are expressed as (ID1, P1, O1); the product triples in the triple set T2 are expressed as (ID2, P2, O2); ID1 represents the head entity, which is the product name in the first e-commerce platform; O1 represents the tail entity, which is the product name in the first e-commerce platform, ID1≠O1; P1 represents the relationship between ID1 and O1; ID2 represents the head entity, which is the product name in the second e-commerce platform; O2 represents the tail entity, which is the product name in the second e-commerce platform, ID2≠O2.

[0109] In this embodiment, the commodities on the e-commerce platform are regarded as entities, and the relationship between commodities can be described by the categories to which they belong. The same commodity can be described as one category or multiple categories on the e-commerce platform; for example, a laptop computer can be classified as a home decoration category or an electronic product category, etc. Therefore, the relationship between two commodity entities can be determined by whether the two commodities belong to the same category. When the two commodities belong to the same category, it is considered that there is a relationship between them. When the two commodities belong to multiple categories, it can be considered that the weight of the relationship between them is greater, and the relationship weight between the commodities can be defined in this way; similarly, technical personnel in this field can choose different judgment criteria according to actual conditions to construct the relationship between commodity entity pairs.

[0110] Preferably, learning the embedding representation of each commodity triple by using a knowledge representation learning algorithm comprises:

[0111] S31: Randomly generate vector representations of the head entity, relationship, and tail entity of the product triple, denoted as h, v, and u respectively;

[0112] S32: Randomly generate negative sample data; the triplet that originally exists in the product triplet set is called the correct triplet (h, v, u); randomly replace the tail entity in the correct triplet with the entity in the entity set E of the product triplet set, specifically: (h, v, u′), where u′∈E represents the negative sample corresponding to u;

[0113] S33: Constructing loss function Taking the minimum loss function as the optimization goal, optimize the vector representation of the product triples and obtain the embedded representation of the product triples based on the TransE model;

[0114] The loss function includes:

[0115]

[0116] score(h,v,u)=|h+vu||

[0117] Among them, λ>0 represents the boundary parameter value.

[0118] Preferably, the method of dividing the commodity triplet set corresponding to each e-commerce platform into a plurality of commodity triplet subsets by using a self-organizing map network comprises:

[0119] S41: Randomly initialize the weight m of each neuron in the SOM competition layer j (j=1, 2, ...., N), where N is the number of neurons in the SOM competition layer; after the initialization is completed, set the number of iterations t=1 and then execute step S42;

[0120] S42: Embedding representation z for each product triple in the product triple set i = [hvu], select the best matching unit in the SOM competition layer, denoted as c; the calculation formula is as follows:

[0121]

[0122] Among them, arg min j ||z i -m j ||2 means to find the value that makes ||z i -m j ||2 the smallest independent variable j; ||z i -m j ||2 means z i -m j 2-norm of ;

[0123] S43: For each neuron j in the SOM competition layer, update its weight m j , the calculation formula is as follows:

[0124] m j (t+1)=m j (t)+α(t)·h c (j, t)·[z i -m j (t)]

[0125]

[0126] Among them, m j (t) represents the weight of the jth neuron in the competition layer of SOM after the tth iteration; α(t) represents the learning rate function of SOM, |T| represents the number of elements in the product triple set T; r c and r j They represent the coordinates of the best matching unit c and the jth neuron in the SOM competition layer; the weights m of all neurons in the SOM competition layer j After the update is completed, set t=t+1 and proceed to step S44;

[0127] S44: Repeat steps S42 to S43 until the preset number of iterations is reached. At this time, the weight of the jth neuron in the SOM competition layer is

[0128] S45: For a product triple in the product triple set T, determine the product triple subset number λ to which it belongs. The calculation expression is as follows:

[0129]

[0130] z i Merge into set C λ In, C λ =C λ ∪{z i};

[0131] S46: Step S45 is continuously repeated until all product triples in the product triple set T are traversed; the product triple subset set obtained after SOM clustering of the two e-commerce platforms is recorded as and Where J and K represent the number of product triplet subsets of the two platforms, x represents the entity in the first e-commerce platform, and y represents the entity in the second e-commerce platform; represents the j-th product triplet subset of the first e-commerce platform; Represents the kth product triplet subset of the second e-commerce platform.

[0132] In this embodiment, a competitive learning algorithm is used, that is, neurons compete with each other to continuously optimize the network structure and weights during the training process, and a large amount of commodity triple data can be used to learn the complex semantic relationship between entities. These semantic information can be effectively encoded in the vector space, so that similar entities are also located in the vector space. This can significantly reduce the complexity and amount of data processing, and can reduce the dimension and redundancy of the data while maintaining the key information of the data, thereby improving the processing efficiency.

[0133] Preferably, constructing a knowledge graph according to each commodity triplet subset includes:

[0134] S51: extracting the common features of all product triples in the product triple subsets on the two e-commerce platforms respectively;

[0135] S52: Calculate common features using the cosine similarity algorithm and The similarity is calculated as follows:

[0136]

[0137] in, and Represents the feature vector and The modulus of; j∈{1,2,…,J}, k∈{1,2,…,K}; represents the common features of all product triplets in the jth product triplet subset of the first e-commerce platform; represents the common features of all product triplets in the kth product triplet subset of the second e-commerce platform;

[0138] S53: Extract the M pairs with the highest similarity and And renumber them to get the common feature set: Map the common feature set back to the product triple subset to obtain

[0139] S54: For each subset pair Build separately and knowledge graph.

[0140] Preferably, the common features of all product triples in the extracted product triple subset include:

[0141] S511: Define the feature vector set of all product triplets in the product triplet subset as Z = [z1, z2, ... z n ], calculate the mean vector of Z The formula is as follows:

[0142]

[0143] Where n represents the number of product triples in the product triple subset; then calculate the central vector group Z of vector group Z c , the formula is as follows:

[0144]

[0145] Z c =[z c1 , z c2 ,...,z cn ]

[0146] S512: Calculate vector group Z c The covariance matrix C of is as follows:

[0147]

[0148] in, Represents Z c The transpose of

[0149] S513: Find the eigenvalue and eigenvector of Z. The eigenvalue decomposition covariance matrix C is expressed as follows:

[0150] (C-λ i E)v i =0

[0151] Among them, v i is the eigenvector, λ i is the eigenvalue; E represents the identity matrix;

[0152] S514: Select the largest eigenvalue λ i The corresponding eigenvector v i as a common feature of a subset of product triplets;

[0153] S515: Traversal C x and C y The product triple subset in executes S511 to S514 to obtain C x and C y Common features of the subset of product triples in and

[0154] Preferably, the aligning the products of the two e-commerce platforms by using a graph attention network according to the knowledge graph of each product triplet subset includes:

[0155] S51: For each subset pair definition Representation Subset The commodity entity in Representation Subset The product entity in the subset, x and y are a positive sample pair. Randomly select P products that are different from product entity x as negative product entity x of product entity x -p ; From the subset Randomly select P products that are different from product entity y as negative product entity y of product entity y -p , p∈{1,2,…,P};

[0156] S52: and The knowledge graphs of are input into the graph attention network GAE for encoding. and The loss function is constructed by the features after entity encoding in the graph, and the parameters of the graph attention network GAE are updated by gradient propagation until the loss function converges to obtain the aligned and After the model training is completed, for any two cross-platform product entities, the potential alignment relationship can be obtained by comparing the similarity of their embedded vectors in the unified vector space.

[0157] Preferably, the loss function includes:

[0158]

[0159] in, represents the loss function, represents a hyperparameter; f(x) T f(y) represents the dot product of the vector representations of two entities x and y after being transformed by the GAE graph autoencoder, and T represents the transpose; f(x) and f(y -p ) represent the positive sample x and the pth negative sample y respectively. -p The vector representation after conversion by GAE graph autoencoder; f(x -p ) represents the negative sample x -p Vector representation after conversion by GAE graph autoencoder.

[0160] The present invention is based on unsupervised learning, which makes the negative entities of entity alignment move away, thus largely eliminating the dependence on manually labeled labels, significantly reducing the cost of obtaining large-scale high-quality labeled data, and improving the autonomy and generalization ability of the entity alignment algorithm; by pre-classifying before entity alignment, similar categories of goods are classified into one category, and then entity alignment is performed on each category of goods, thereby effectively reducing the complexity of the overall alignment task and improving processing efficiency and accuracy. For data with missing or incomplete conditions, accurate inferences and effective completion are made based on the discovered product associations, thereby greatly improving the accuracy and completeness of the overall data set, making the data analysis results more reliable and valuable for reference.

[0161] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

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

[0163] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.

Claims

1. A method for aligning products across e-commerce platforms based on unsupervised learning, characterized in that: include: S1: Construct "product-category-description" tensors based on the product data of the two e-commerce platforms, and use the low-rank tensor completion model to complete the constructed "product-category-description" tensors to obtain the completed product data of the two e-commerce platforms; S2: Construct the product triple sets corresponding to each e-commerce platform based on the completed product data of the two e-commerce platforms; S3: Based on the product triple sets corresponding to each e-commerce platform, the knowledge representation learning algorithm is used to learn the embedding representation of each product triple; S4: Based on the embedded representation of the product triples, the product triple sets corresponding to each e-commerce platform are divided into multiple product triple subsets using a self-organizing map network; S5: Construct knowledge graphs according to each product triplet subset respectively, and use graph attention network to align the products of the two e-commerce platforms according to the knowledge graphs of each product triplet subset.

2. According to claim 1, a method for aligning products across e-commerce platforms based on unsupervised learning is characterized in that: The construction of the "product-category-description" tensor includes: Build tensors for two e-commerce platforms and Among them, i1 represents the quantity dimension of the goods in the first e-commerce platform; j1 represents the type dimension of the goods in the first e-commerce platform; k1 represents the description dimension of the goods in the first e-commerce platform; i2 represents the quantity dimension of the goods in the second e-commerce platform; j2 represents the type dimension of the goods in the second e-commerce platform; k2 represents the description dimension of the goods in the second e-commerce platform.

3. According to the unsupervised learning-based cross-e-commerce platform product alignment method of claim 2, it is characterized in that: The initial low-rank tensor completion model includes: s.t.P Ω (M)=P Ω (X) Among them, rank(x) represents the rank of tensor X, X represents the target tensor after completion, M represents the tensor to be completed M∈{M1,M2}, and Ω represents the observable element position index set of the tensor to be completed; Since the initial low-rank tensor completion model is a non-convex optimization problem, considering the tensor trace norm ‖x‖ * is the convex envelope of the tensor rank, which transforms the tensor completion problem into the following tensor trace norm minimization model, thereby converting it into solving a convex optimization problem: Among them, ‖X‖ * represents the trace norm of tensor X; since the convex envelope of the tensor rank has no explicit expression, the tensor trace norm cannot be defined as the convex envelope of the tensor rank. By taking the trace norm of tensor X ‖X‖ * Convert to all matrices X that expand the tensor X along n modes (i) The convex combination of the trace norm of , describes the tensor completion problem as the following convex optimization model: Among them, ω i ≥0 and n represents the number of modes of the tensor X; by introducing n auxiliary tensors The final low-rank tensor completion model is: s.t.X (i) =A i fori=1,…,n。 s.t.X Ω =M Ω 4. According to claim 2, a method for aligning products across e-commerce platforms based on unsupervised learning is characterized in that: The method of constructing a set of commodity triples corresponding to each e-commerce platform includes: constructing commodity triple sets T1 and T2 respectively for the commodity data of the two e-commerce platforms; wherein the commodity triples in the triple set T1 are expressed as (ID1, P1, O1); the commodity triples in the triple set T2 are expressed as (ID2, P2, O2); ID1 represents the head entity, which is the commodity name in the first e-commerce platform; O1 represents the tail entity, which is the commodity name in the first e-commerce platform, ID1≠O1; P1 represents the relationship between ID1 and O1; ID2 represents the head entity, which is the commodity name in the second e-commerce platform; O2 represents the tail entity, which is the commodity name in the second e-commerce platform, ID2≠O2.

5. According to claim 4, a method for aligning products across e-commerce platforms based on unsupervised learning is characterized in that: include: The method of learning the embedding representation of each commodity triple by using the knowledge representation learning algorithm includes: S31: Randomly generate vector representations of the head entity, relationship, and tail entity of the product triple, denoted as h, v, and u respectively; S32: Randomly generate negative sample data; the triplet that originally exists in the product triplet set is called the correct triplet (h, v, u); randomly replace the tail entity in the correct triplet with the entity in the entity set E of the product triplet set, specifically: (h, v, u′), where u′∈E represents the negative sample corresponding to u; S33: Constructing loss function Taking the minimum loss function as the optimization goal, optimize the vector representation of the product triples and obtain the embedded representation of the product triples based on the TransE model; The loss function includes: score(h,v,u)=||h+vu|| Among them, λ>0 represents the boundary parameter value.

6. According to the unsupervised learning-based cross-e-commerce platform product alignment method of claim 1, it is characterized in that: The method of using a self-organizing map network to divide the commodity triple set corresponding to each e-commerce platform into a plurality of commodity triple subsets includes: S41: Randomly initialize the weight m of each neuron in the SOM competition layer j (j=1,2,....,N), where N is the number of neurons in the SOM competition layer; after the initialization is completed, set the number of iterations t=1 and then execute step S42; S42: Embedding representation z for each product triple in the product triple set i = [hvu], select the best matching unit in the SOM competition layer, denoted as c; the calculation formula is as follows: Among them, arg min j ||z i -m j ||2 means to find the value that makes ||z i -m j ||2 the smallest independent variable j; ||z i -m j ||2 means z i -m j 2-norm of ; S43: For each neuron j in the SOM competition layer, update its weight m j , the calculation formula is as follows: m j (t+1)=m j (t)+α(t)·h c (j,t)·[z i -m j (t)] Among them, m j (t) represents the weight of the jth neuron in the competition layer of SOM after the tth iteration; α(t) represents the learning rate function of SOM, |T| represents the number of elements in the product triple set T; r v and r j They represent the coordinates of the best matching unit c and the jth neuron in the SOM competition layer; the weights m of all neurons in the SOM competition layer j After the update is completed, set t=t+1 and proceed to step S44; S44: Repeat steps S42 to S43 until the preset number of iterations is reached. At this time, the weight of the jth neuron in the SOM competition layer is S45: For a product triple in the product triple set T, determine the product triple subset number λ to which it belongs. The calculation expression is as follows: z i Merge into set C λ In, C λ =C λ ∪{z i }; S46: Step S45 is continuously repeated until all product triples in the product triple set T are traversed; the product triple subset set obtained after SOM clustering of the two e-commerce platforms is recorded as and Where J and K represent the number of product triplet subsets of the two platforms, x represents the entity in the first e-commerce platform, and y represents the entity in the second e-commerce platform; represents the j-th product triplet subset of the first e-commerce platform; Represents the kth product triplet subset of the second e-commerce platform.

7. The method for aligning products across e-commerce platforms based on unsupervised learning according to claim 6, characterized in that: The construction of the knowledge graphs according to each commodity triplet subset includes: S51: extracting the common features of all product triples in the product triple subsets on the two e-commerce platforms respectively; S52: Calculate common features using the cosine similarity algorithm and The similarity is calculated as follows: in, and Represents the feature vector and The modulus of; j∈{1,2,…,J}, k∈{1,2,…,K}; represents the common features of all product triplets in the jth product triplet subset of the first e-commerce platform; represents the common features of all product triplets in the kth product triplet subset of the second e-commerce platform; S53: Extract the M pairs with the highest similarity and And renumber them to get the common feature set: Map the common feature set back to the product triple subset to obtain S54: For each subset pair Build separately and knowledge graph.

8. The method for aligning products across e-commerce platforms based on unsupervised learning according to claim 7, characterized in that: The common features of all product triples in the extracted product triple subset include: S511: Define the feature vector set of all product triplets in the product triplet subset as Z = [z1, z2, ..., z n ], calculate the mean vector of Z The formula is as follows: Where n represents the number of product triplets in the product triplet subset; then calculate the central vector group Z of the vector group Z c , the formula is as follows: WITH c =[of c1 ,With c2 ,...,With cn ] S512: Calculate vector group Z c The covariance matrix C of is as follows: in, Represents Z c The transpose of S513: Find the eigenvalue and eigenvector of Z. The eigenvalue decomposition covariance matrix C is expressed as follows: (C-λ i E)v i 0 Among them, v i is the eigenvector, λ i is the eigenvalue; E represents the identity matrix; S514: Select the largest eigenvalue λ i The corresponding eigenvector v i as a common feature of a subset of product triplets; S515: Traversal C x and C y The product triple subset in executes S511 to S514 to obtain C x and C y Common features of the subset of product triples in and 9. The method for aligning products across e-commerce platforms based on unsupervised learning according to claim 8, characterized in that: The method of aligning the products of two e-commerce platforms using a graph attention network based on the knowledge graph of each product triplet subset includes: S51: For each subset pair definition Representation Subset The commodity entity in Representation Subset The product entity in the subset, x and y are a positive sample pair. Randomly select P products that are different from product entity x as negative product entity x of product entity x -p ; From the subset Randomly select P products that are different from product entity y as negative product entity y of product entity y -p , p∈{1,2,…,P}; S52: and The knowledge graphs are input into the graph attention network GAE for encoding. and The loss function is constructed by the features after entity encoding in the graph, and the parameters of the graph attention network GAE are updated by gradient propagation until the loss function converges to obtain the aligned and 10. A method for aligning products across e-commerce platforms based on unsupervised learning according to claim 9, characterized in that: The loss function includes: in, represents the loss function, represents a hyperparameter; f(x) T f(y) represents the dot product of the vector representations of two entities x and y after being transformed by the GAE graph autoencoder, and T represents the transpose; f(x) and f(y -p ) represent the positive sample x and the pth negative sample y respectively. -p The vector representation after conversion by GAE graph autoencoder; f(x -p ) represents the negative sample x -p Vector representation after conversion by GAE graph autoencoder.