Method, device, equipment and storage medium for generating personalized product labels
By constructing a tripartite graph structure of products, users and tags, using graph attention network and multi-head attention mechanism to calculate tag correlation, and combining dynamic threshold and conditional variational autoencoder to generate personalized tags, it solves the problem of tag generation in the existing technology. The problem of not being able to reflect user needs has been achieved, and more accurate and personalized product recommendations have been achieved.
Patent Information
- Application Number
- CN202410948727.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing product tag generation methods cannot fully reflect users' individual needs, lack flexibility and personalization, and are difficult to recommend suitable products to users among a large number of products.
By obtaining the characteristic information of the target product, user and label, a tripartite graph structure is constructed, the graph attention network and the multi-head attention mechanism are used to calculate the label correlation, and the dynamic threshold algorithm and the conditional variational autoencoder are combined to generate personalized labels.
It improves the accuracy and personalization of product label generation, meets the unique needs of users, provides users with more accurate product recommendations, and effectively copes with the challenges of massive data processing.
Smart Images

Figure CN118485502B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of label generation, and in particular to a method, device, equipment and storage medium for generating a personalized customized commodity label. Background Art
[0002] With the rapid development of e-commerce, the number and variety of goods are increasing. How to recommend suitable goods to users from a large number of goods has become an important task for e-commerce platforms. Traditional product recommendation systems mainly rely on content-based recommendations and collaborative filtering methods. These methods can improve the accuracy of recommendations to a certain extent, but they still have some limitations when facing personalized needs. Especially for users with unique needs and preferences, how to generate personalized product labels to better meet user needs is an urgent problem to be solved.
[0003] At present, the generation of product labels mainly relies on predefined label sets, which are usually manually defined by experts and have a certain degree of universality, but lack personalization and flexibility and cannot fully reflect the personalized needs of users. Summary of the invention
[0004] The main purpose of the present invention is to solve the technical problem that the existing product label generation cannot fully reflect the personalized needs of users.
[0005] A first aspect of the present invention provides a method for generating a personalized product label, the method comprising:
[0006] Acquire product information of a target product, user information of a target user, and a platform product tag set, and perform feature extraction on the product information and the user information to obtain product features and user features, respectively, wherein the platform product tag set includes a plurality of candidate tags;
[0007] Generating low-dimensional vector representations of the product features, user features, and candidate tags respectively, and constructing a tripartite graph structure of the target product, the target user, and the candidate tags according to the low-dimensional vector representations;
[0008] The tripartite graph structure is modeled by a preset graph attention network, and the correlation between the target product and the candidate label is calculated according to the modeling result by a multi-head attention mechanism to obtain a general label candidate list of the target product;
[0009] Applying a dynamic threshold algorithm to select a first label from the general label candidate list, and using a conditional variational autoencoder to generate a second label according to the product features and the user features;
[0010] A final commodity universal tag set for the target commodity relative to the target user is generated according to the first tag and the second tag.
[0011] Optionally, in a first implementation manner of the first aspect of the present invention, respectively generating low-dimensional vector representations of the product features, the user features, and the candidate tags, and constructing a tripartite graph structure of the target product, the target user, and the candidate tags according to the low-dimensional vector representations includes:
[0012] Applying a self-attention mechanism to the product features to perform feature enhancement to obtain enhanced product features;
[0013] According to the enhanced product features, cross-attention calculation is performed on the user features to obtain product-aware user features;
[0014] Calculating semantic similarity between the user features perceived by the product and the candidate tags to obtain a user-tag association matrix;
[0015] According to the user-label association matrix, applying a graph convolutional network to perform feature aggregation on the enhanced product features, the product-perceived user features, and the candidate labels, respectively, to obtain an initial low-dimensional vector representation;
[0016] Applying a contrastive learning loss function to optimize the initial low-dimensional vector representation to obtain an optimized low-dimensional vector representation;
[0017] A tripartite graph structure of the target product, the target user and the candidate tags is constructed according to the optimized low-dimensional vector representation through an edge weight calculation method.
[0018] Optionally, in a second implementation of the first aspect of the present invention, constructing a tripartite graph structure of the target product, the target user, and the candidate tag according to the optimized low-dimensional vector representation by using an edge weight calculation method includes:
[0019] Performing cosine similarity calculation on the optimized low-dimensional vector representations of the target product, the target user, and the candidate tag to obtain an initial similarity matrix between the three;
[0020] According to the initial similarity matrix, applying adaptive threshold screening to the relationship between the target product, the target user and the candidate tags to obtain a sparse similarity matrix;
[0021] Performing spectral clustering on the sparse similarity matrix to obtain clustering structure information of the target product, the target user, and the candidate tags;
[0022] According to the clustering structure information, applying local sensitive hashing to the sparse similarity matrix to perform fast nearest neighbor search to obtain a local connection relationship between the target product, the target user and the candidate tag;
[0023] Applying the PageRank algorithm to the local connection relationship to perform importance scoring, and obtaining a global influence score between the target product, the target user and the candidate tag;
[0024] According to the global influence score and the local connection relationship, the final edge weight is calculated by a weighted combination method, and a tripartite graph structure of the target product, the target user and the candidate tag is constructed according to the edge weight.
[0025] Optionally, in a third implementation of the first aspect of the present invention, the tripartite graph structure is modeled by a preset graph attention network, and the correlation between the target product and the candidate label is calculated according to the modeling result by a multi-head attention mechanism, and the general label candidate list of the target product is obtained, including:
[0026] Applying a preset graph attention network to the tripartite graph structure for initial feature propagation to obtain an initial node representation including an attention mechanism;
[0027] According to the initial node representation, a self-attention mechanism is applied to the target product node, the target user node, and the candidate tag node in the tripartite graph structure to obtain attention weights between the nodes;
[0028] Performing weighted aggregation on the attention weight and the initial node representation to obtain an updated node representation;
[0029] According to the updated node representation, a multi-head attention mechanism is applied between the target product node and the candidate label node to obtain outputs of multiple attention heads;
[0030] Concatenate and linearly transform the outputs of the multiple attention heads to obtain a correlation score between the target product and the candidate tags;
[0031] The candidate tags are sorted in descending order according to the relevance scores, and the first K candidate tags are selected to obtain a general tag candidate list for the target product, where K is a preset positive integer.
[0032] Optionally, in a fourth implementation of the first aspect of the present invention, applying a preset graph attention network to the tripartite graph structure for initial feature propagation to obtain an initial node representation including an attention mechanism includes:
[0033] Applying a linear transformation to each node in the tripartite graph structure to obtain an initial hidden state of the node;
[0034] According to the initial hidden state, the attention coefficient of the neighboring nodes of each node is calculated to obtain the initial attention distribution between the nodes;
[0035] Applying a softmax function to normalize the initial attention distribution to obtain a standardized attention weight;
[0036] According to the standardized attention weights, weighted summation is performed on the neighbor node features of each node to obtain aggregated neighbor information;
[0037] The aggregated neighbor information and the hidden state of the node itself are concatenated and processed through a nonlinear activation function to obtain an updated node representation;
[0038] Residual connections and layer normalization are applied to the updated node representation to obtain an initial node representation including an attention mechanism.
[0039] Optionally, in a fifth implementation of the first aspect of the present invention, applying a dynamic threshold algorithm to select a first label from the general label candidate list, and using a conditional variational autoencoder to generate a second label according to the product features and the user features includes:
[0040] Performing statistical analysis on the correlation scores in the general label candidate list to obtain score distribution characteristics, and calculating the optimal segmentation point by a kernel density estimation method based on the score distribution characteristics to obtain a dynamic threshold;
[0041] Applying the dynamic threshold to screen the general tag candidate list to obtain a first tag exceeding the dynamic threshold;
[0042] According to the product characteristics and the user characteristics, conditionally input the encoder of the conditional variational autoencoder to obtain distribution parameters of latent variables;
[0043] Reparameterizing and sampling the distribution parameters to obtain latent variable samples;
[0044] According to the latent variable sample and the conditional input, a decoding operation is performed on the decoder of the conditional variational autoencoder to obtain a generated second label.
[0045] Optionally, in a sixth implementation of the first aspect of the present invention, generating a final commodity universal tag set of the target commodity relative to the target user according to the first tag and the second tag includes:
[0046] Merging the first tag and the second tag to obtain an initial commodity universal tag set;
[0047] According to the pre-built commodity domain knowledge graph, entity linking is performed on each tag in the initial commodity general tag set to obtain a mapping relationship between the tag and the knowledge graph entity;
[0048] Based on the mapping relationship, applying graph inference rules to the initial commodity universal tag set to perform semantic consistency check to obtain a semantic conflict tag list and a semantic supplement tag list;
[0049] According to the semantically conflicting tag list and the semantically supplementary tag list, the initial commodity universal tag set is modified and expanded to obtain a semantically optimized tag set;
[0050] Applying a transformer-based sequence-to-sequence model to the semantically optimized label set to rearrange the label sequence to obtain an optimized label sequence;
[0051] According to the product features and preset context information, an attention mechanism is applied to the optimized label sequence to perform importance weighting, so as to obtain a final product universal label set that has been optimized and consistency checked.
[0052] A second aspect of the present invention provides a device for generating a personalized product label, the device for generating a personalized product label comprising:
[0053] A feature extraction module is used to obtain product information of a target product, user information of a target user, and a platform product tag set, and perform feature extraction on the product information and the user information to obtain product features and user features, respectively, wherein the platform product tag set includes a plurality of candidate tags;
[0054] A graph construction module, used to generate low-dimensional vector representations of the product features, user features and candidate tags respectively, and construct a tripartite graph structure of the target product, the target user and the candidate tags according to the low-dimensional vector representations;
[0055] A candidate label generation module is used to model the tripartite graph structure through a preset graph attention network, and calculate the correlation between the target product and the candidate label according to the modeling result through a multi-head attention mechanism to obtain a general label candidate list of the target product;
[0056] A label selection module, configured to select a first label from the general label candidate list by applying a dynamic threshold algorithm, and generate a second label according to the product features and the user features by using a conditional variational autoencoder;
[0057] A tag aggregation module is used to generate a final commodity common tag set of the target commodity relative to the target user according to the first tag and the second tag.
[0058] The third aspect of the present invention provides a device for generating personalized product labels, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the instructions in the memory so that the device for generating personalized product labels executes the steps of the above-mentioned method for generating personalized product labels.
[0059] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned method for generating personalized product labels.
[0060] The above-mentioned method, device, equipment and storage medium for generating personalized product labels obtain the product information of the target product, the user information of the target user and the platform product label set, perform feature extraction, generate low-dimensional vector representations of product features, user features and candidate labels, and construct a tripartite graph structure. The tripartite graph structure is modeled through a preset graph attention network, and the correlation between the target product and the candidate label is calculated using a multi-head attention mechanism to obtain a general label candidate list. Then, a dynamic threshold algorithm and a conditional variational autoencoder are applied to generate a final product general label set, thereby realizing personalized product label generation to meet the personalized needs of users. This method can improve the accuracy and personalization of product label generation, and can also effectively cope with the challenges of massive data processing, providing users with more accurate product recommendation services.
[0061] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0062] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 This is a schematic diagram of a first embodiment of a method for generating a personalized product label in an embodiment of the present invention;
[0064] Figure 2 A schematic diagram of an embodiment of a device for generating a personalized product label in an embodiment of the present invention;
[0065] Figure 3 The figure is a schematic diagram of an embodiment of a device for generating a personalized product label in an embodiment of the present invention. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are 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.
[0067] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device end including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or device ends.
[0068] To facilitate understanding of this embodiment, a method for generating a personalized product label disclosed in an embodiment of the present invention is first described in detail. Figure 1 As shown, the method comprises the following steps:
[0069] 101. Obtain product information of a target product, user information of a target user, and a platform product tag set, and perform feature extraction on the product information and the user information to obtain product features and user features, respectively, wherein the platform product tag set includes a plurality of candidate tags;
[0070] In one embodiment of the present invention, first, for the processing of commodity information, the focus is on the text description, image information and structured attributes of the commodity. For text description, advanced word embedding technology, such as Word2Vec or BERT model, is used. These models can convert text into low-dimensional dense vectors and effectively capture the semantic relationship between words. For example, the BERT model can better understand contextual information and generate more accurate text representations through a two-way training mechanism. For commodity images, pre-trained convolutional neural networks, such as ResNet or VGG networks, are used to extract high-level visual features. These networks are pre-trained on large-scale image data sets and can extract rich visual information, including features such as texture, shape, and color. In addition to text and image information, it is also necessary to consider the structured attributes of commodities, such as categories, prices, sales, etc. This information usually exists in the form of numerical values or categories, and can be processed by methods such as normalization or unique hot encoding. Then, the features of these different modalities are fused to construct a comprehensive multimodal commodity representation. This fusion can be achieved by simple feature splicing or more complex multimodal fusion techniques (such as attention mechanisms). For the processing of user information, a multi-angle analysis method is also used. First, we focus on the user's historical behavior sequence, such as browsing history, purchase history, etc. These sequence data contain information about the changes in user interests over time. Sequence models (such as RNN or Transformer) can be used to process these data to capture the dynamic changes in user interests. At the same time, it is also necessary to consider the user's static features, such as age, gender, occupation, etc. These features can be encoded through an embedding layer or a fully connected layer. Finally, the user's dynamic behavior representation and static features are fused to form a comprehensive user representation. When processing the platform product tag set, it is necessary not only to consider the semantics of a single tag, but also to capture the relationship between tags. To this end, a tag co-occurrence graph is constructed, in which nodes represent tags and edges represent the co-occurrence relationship between tags. Then, a graph neural network, such as GraphSAGE or GAT (graph attention network), is used to learn the embedding representation of tags. This method can effectively capture the semantic correlation and hierarchy between tags, providing richer semantic information for subsequent tag generation tasks.
[0071] 102. Generate low-dimensional vector representations of product features, user features, and candidate tags respectively, and construct a tripartite graph structure of target products, target users, and candidate tags based on the low-dimensional vector representations;
[0072] In one embodiment of the present invention, the low-dimensional vector representations of the product features, user features and candidate tags are generated respectively, and a tripartite graph structure of the target product, the target user and the candidate tags is constructed based on the low-dimensional vector representations, including: applying a self-attention mechanism to the product features for feature enhancement to obtain enhanced product features; performing cross-attention calculations on the user features based on the enhanced product features to obtain product-perceived user features; performing semantic similarity calculations on the product-perceived user features and the candidate tags to obtain a user-tag association matrix; applying a graph convolutional network to perform feature aggregation on the enhanced product features, the product-perceived user features and the candidate tags based on the user-tag association matrix to obtain an initial low-dimensional vector representation; optimizing the initial low-dimensional vector representation by applying a contrastive learning loss function to obtain an optimized low-dimensional vector representation; and constructing a tripartite graph structure of the target product, the target user and the candidate tags based on the optimized low-dimensional vector representation by an edge weight calculation method.
[0073] Specifically, the process of implementing this technical solution for product features involves multiple complex steps, which requires the comprehensive use of multiple advanced machine learning and deep learning technologies. First, starting from the extracted product features, the self-attention mechanism is applied to them for feature enhancement. The purpose of this step is to enable the model to adaptively focus on the important elements in the product features, so as to obtain a more refined and information-rich product representation. Specifically, a multi-head self-attention mechanism can be used to project the product features into the query, key and value space, and then the attention weights are calculated and weighted aggregation is performed. In this way, an enhanced product feature is obtained, which not only retains the original information but also highlights the key attributes of the product. Next, this enhanced product feature is used to guide the processing of user features. Cross-attention calculation is performed on user features, which actually makes the product features as queries and the user features as keys and values. In this way, a product-aware user feature can be obtained, which reflects the most relevant part of the user feature to the current product. The significance of this step is that it enables the user feature to be dynamically adjusted according to different products, so as to better capture the user's potential interest in a specific product. Then, users and tags need to be associated. To this end, the semantic similarity between the product-aware user feature and the candidate tag is calculated. This can be achieved by calculating the cosine similarity or dot product between vectors. Through this calculation, a user-label association matrix is obtained, which quantifies the relevance of each user to each label. This matrix provides an important foundation for the subsequent graph structure construction. With the user-label association matrix, we can start to build a preliminary graph structure. The enhanced product features, product-aware user features and candidate labels are used as nodes in the graph, and the values in the user-label association matrix are used as edge weights. Then, a graph convolutional network (GCN) is applied to this graph for feature aggregation. GCN can use the relationship between nodes to transfer and aggregate information, thereby generating node representations that take into account local structural information. Through this step, the initial low-dimensional vector representations of products, users and labels are obtained. In order to further improve the quality and discriminability of these low-dimensional vector representations, the idea of contrastive learning is introduced. Positive sample pairs (such as similar product pairs, user-interest label pairs) and negative sample pairs (such as irrelevant product-label pairs) can be constructed, and then the feature representation is optimized by maximizing the similarity of positive sample pairs while minimizing the similarity of negative sample pairs. This can be achieved by designing an appropriate contrastive learning loss function, such as InfoNCE loss. In this way, we get optimized low-dimensional vector representations, which not only contain their own feature information, but also contain the relationship information between entities. Finally, we need to build the final tripartite graph structure based on these optimized low-dimensional vector representations. This step involves the calculation of edge weights. We can use the similarity measure between vectors (such as cosine similarity) to calculate the strength of the association between nodes and use it as the weight of the edge.In addition, a threshold mechanism can be introduced to retain only the edges whose weight exceeds a certain threshold to obtain a sparse graph structure. In this way, a tripartite graph structure containing target products, target users, and candidate tags is obtained, in which the weight of the edge reflects the degree of association between nodes.
[0074] Furthermore, the method of constructing a tripartite graph structure of the target product, the target user and the candidate tags according to the optimized low-dimensional vector representation by using an edge weight calculation method includes: performing cosine similarity calculation on the optimized low-dimensional vector representations of the target product, the target user and the candidate tags to obtain an initial similarity matrix between the three; applying adaptive threshold screening to the relationship between the target product, the target user and the candidate tags according to the initial similarity matrix to obtain a sparse similarity matrix; performing spectral clustering on the sparse similarity matrix to obtain a relationship between the target product, the target user and the candidate tags. clustering structure information of the target products; based on the clustering structure information, applying local sensitive hashing to the sparse similarity matrix to perform fast nearest neighbor search to obtain the local connection relationship among the target product, the target user and the candidate tags; applying the PageRank algorithm to the local connection relationship to perform importance scoring to obtain the global influence score among the target product, the target user and the candidate tags; based on the global influence score and the local connection relationship, calculating the final edge weight through a weighted combination method, and constructing a tripartite graph structure of the target product, the target user and the candidate tags according to the edge weight.
[0075] Specifically, the process of implementing this technical solution involves multiple complex steps, which requires the comprehensive use of multiple advanced data processing and graph structure construction technologies. First, start with the optimized low-dimensional vector representation, which represents the target product, the target user, and the candidate tag respectively. In order to construct the tripartite graph structure, the similarity between these entities needs to be calculated first. Cosine similarity is chosen because it can effectively measure the angular relationship between vectors and is not affected by the length of the vector. By calculating the cosine similarity between each pair of entities, an initial similarity matrix is obtained, which contains the similarity information between all entity pairs. However, this initial similarity matrix may be too dense and contain many weakly related or irrelevant connections. In order to improve the quality and computational efficiency of the graph structure, this matrix needs to be sparse. The adaptive threshold screening method is adopted. This method does not simply set a fixed threshold, but dynamically determines the threshold according to the similarity distribution. For example, the threshold can be determined using percentiles or clustering-based methods, and only the connections with similarity higher than the threshold are retained. In this way, a sparse similarity matrix is obtained, which retains the most important connection relationships. Next, in order to further understand the implicit structure in this sparse matrix, spectral clustering is performed on it. Spectral clustering is a graph-based clustering method that uses the eigenvectors of the graph's Laplacian matrix for clustering. Through spectral clustering, we can obtain the clustering structure information of target products, target users, and candidate tags. This clustering structure information reflects the intrinsic connection between entities and can help better understand the overall structure of the data. With the clustering structure information, we can search for local connection relationships more efficiently. Locality sensitive hashing (LSH) technology is used to achieve fast nearest neighbor search. The core idea of LSH is to map similar items to the same "bucket" with high probability, so that approximate nearest neighbors can be found in constant time. By applying LSH to the sparse similarity matrix and combining it with the previously obtained clustering structure information, we can quickly find the local connection relationships of each entity, which reflect the closeness of the entity in the local neighborhood. However, only local connection relationships are not enough to fully reflect the importance of the entity in the entire graph structure. Therefore, the PageRank algorithm is introduced to calculate the global influence score. PageRank was originally used for web page ranking, but its core idea - propagating importance through the graph structure - is also applicable to this scenario. The local connection relationship is used as the input graph structure of PageRank, and the global influence score of each entity is obtained through iterative calculation. This score reflects the importance and influence of the entity in the entire graph structure. Finally, the local connection relationship and the global influence score need to be comprehensively considered to determine the final edge weight. A weighted combination method can be designed, such as using a linear combination or a nonlinear function to fuse the two types of information. This method allows the importance of local information and global information to be flexibly adjusted to adapt to different application scenarios.The calculated edge weights not only reflect the similarity between entities, but also take into account their status and influence in the entire graph structure. Based on these final edge weights, a tripartite graph structure of target products, target users, and candidate tags is constructed. This graph structure is a weighted graph in which nodes represent entities and edge weights reflect the strength of the relationship between entities. The advantage of this construction method is that it comprehensively considers information at multiple levels: local similarity, global structure, clustering characteristics, and influence. The graph structure constructed in this way can more comprehensively capture the complex relationships between entities, providing a rich and meaningful foundation for subsequent personalized label generation tasks.
[0076] 103. Model the tripartite graph structure through the preset graph attention network, and calculate the correlation between the target product and the candidate label according to the modeling result through the multi-head attention mechanism to obtain the general label candidate list of the target product;
[0077] In one embodiment of the present invention, the tripartite graph structure is modeled by a preset graph attention network, and the correlation between the target product and the candidate label is calculated according to the modeling result by a multi-head attention mechanism to obtain a general label candidate list of the target product, including: applying a preset graph attention network to the tripartite graph structure for initial feature propagation to obtain an initial node representation containing an attention mechanism; according to the initial node representation, applying a self-attention mechanism to the target product node, target user node and candidate label node in the tripartite graph structure respectively to obtain attention weights between nodes; performing weighted convergence on the attention weights and the initial node representation to obtain an updated node representation; according to the updated node representation, applying a multi-head attention mechanism between the target product node and the candidate label node to obtain the output of multiple attention heads; splicing and linearly transforming the outputs of the multiple attention heads to obtain a correlation score between the target product and the candidate label; sorting the candidate labels in descending order according to the correlation score, selecting the top K candidate labels, and obtaining a general label candidate list of the target product, where K is a preset positive integer.
[0078] Specifically, the preset graph attention network is applied to the constructed tripartite graph structure for initial feature propagation. The purpose of this step is to use the connection relationship in the graph structure to update the feature representation of the node. Specifically, each node aggregates the information of its neighbor nodes while considering the weight of the edge. Next, based on these initial node representations, the self-attention mechanism is applied to the target product node, target user node, and candidate label node in the tripartite graph structure respectively. The self-attention mechanism allows each node to interact with other nodes of the same type to capture more fine-grained relationship information. This step can be achieved by calculating the similarity between the query, key, and value, and then the attention weights obtained in the previous step are weighted and aggregated with the initial node representation. The purpose of this step is to fuse the relationship information between nodes of the same type captured by the self-attention mechanism with the initial node representation. Specifically, the aggregation can be performed in a weighted sum manner, so that the updated node representations are obtained, which not only contain the information of the node itself and its neighbors, but also consider the relationship between nodes of the same type. Next, based on the updated node representation, the multi-head attention mechanism is applied between the target product node and the candidate label node. The multi-head attention mechanism allows the model to focus on information in different subspaces at the same time, thereby capturing richer relational patterns. Each attention head can independently learn a set of transformations for queries, keys, and values, and then perform attention calculations in parallel. Subsequently, the outputs of these multi-head attentions are concatenated and linearly transformed. The concatenation operation combines the outputs of different attention heads, while the linear transformation further fuses this information. Through this process, the relevance scores between the target product and the candidate tags are obtained. These scores comprehensively consider the relationship information from multiple angles, so they can more comprehensively reflect the association between the product and the tag. Finally, the candidate tags are sorted in descending order according to these relevance scores, and the top K candidate tags are selected. Here K is a preset positive integer that determines the number of tags finally selected. Through this sorting and selection process, a general tag candidate list for the target product is obtained. This list contains the K tags that are most relevant to the target product. These tags not only consider the characteristics of the product itself, but also integrate the complex relationship between user information and tags.
[0079] Furthermore, the application of a preset graph attention network to the tripartite graph structure for initial feature propagation to obtain an initial node representation including an attention mechanism includes: applying a linear transformation to each node in the tripartite graph structure to obtain an initial hidden state of the node; calculating the attention coefficient of the neighboring nodes of each node based on the initial hidden state to obtain an initial attention distribution between nodes; applying a softmax function to normalize the initial attention distribution to obtain a standardized attention weight; performing weighted summation of the neighboring node features of each node based on the standardized attention weight to obtain aggregated neighbor information; concatenating the aggregated neighbor information and the node's own hidden state, and processing through a nonlinear activation function to obtain an updated node representation; applying residual connection and layer normalization to the updated node representation to obtain an initial node representation including an attention mechanism.
[0080] Specifically, a linear transformation is applied to each node in the tripartite graph structure. The purpose of this step is to map the original node features to a new feature space for subsequent attention calculation. Specifically, a learnable weight matrix W can be used for linear transformation. This linear transformation can be regarded as a preliminary processing of the original features, so that the features of different types of nodes (commodities, users, tags) are represented in the same feature space. Next, based on these initial hidden states, the attention coefficients of the neighboring nodes of each node are calculated. The core of this step is to evaluate the importance relationship between the node and its neighbors. The calculation of the attention coefficient usually adopts a learnable attention mechanism. For example, a small neural network can be used to calculate the attention score. Then, the softmax function is applied to this initial attention distribution for normalization. The role of the softmax function is to convert the attention score into a probability distribution to ensure that the sum of all attention weights is 1. Next, the neighbor node features of each node are weighted summed using these standardized attention weights. The purpose of this step is to aggregate neighbor information while considering the importance of neighbors. This process realizes information aggregation based on the attention mechanism, so that each node can selectively absorb the information of neighbors according to the attention weight. Subsequently, the aggregated neighbor information is concatenated with the node’s own hidden state and processed through a nonlinear activation function. The purpose of this operation is to fuse the node’s own information with the information aggregated from its neighbors while introducing nonlinearity to enhance the model’s expressiveness. Finally, residual connections and layer normalization are applied to the updated node representations. Residual connections can alleviate the vanishing gradient problem in deep graph neural networks and allow information to flow more directly.
[0081] 104. Apply a dynamic threshold algorithm to select a first label from the general label candidate list, and use a conditional variational autoencoder to generate a second label according to product features and user features;
[0082] In one embodiment of the present invention, the application of a dynamic threshold algorithm to select a first label from the general label candidate list, and the use of a conditional variational autoencoder to generate a second label based on the product features and the user features includes: performing statistical analysis on the correlation scores in the general label candidate list to obtain score distribution characteristics, and calculating the optimal segmentation point through a kernel density estimation method based on the score distribution characteristics to obtain a dynamic threshold; applying the dynamic threshold to screen the general label candidate list to obtain a first label that exceeds the dynamic threshold; performing conditional input on the encoder of the conditional variational autoencoder based on the product features and the user features to obtain distribution parameters of latent variables; performing reparameterization sampling on the distribution parameters to obtain latent variable samples; and performing a decoding operation on the decoder of the conditional variational autoencoder based on the latent variable samples and the conditional input to obtain a generated second label.
[0083] Specifically, the relevance scores in the general label candidate list are statistically analyzed. This step aims to understand the distribution characteristics of the scores. Specifically, statistics such as the mean, variance, skewness, and kurtosis of the scores can be calculated. These statistics can describe the central tendency, degree of dispersion, and shape characteristics of the score distribution. Based on these distribution characteristics, the kernel density estimation method is used to calculate the optimal segmentation point, thereby obtaining a dynamic threshold. Kernel density estimation is a non-parametric method that can smoothly estimate the probability density function of the score without assuming the specific form of the distribution in advance. By analyzing the estimated density function, the inflection point or local minimum of the density function can be found as the optimal segmentation point, which is the dynamic threshold. Next, this dynamic threshold is applied to the general label candidate list for screening, and those labels whose relevance scores exceed the threshold are retained as the first label. For example, assuming that for a smartphone, the first label obtained after screening by the dynamic threshold may include "high performance", "long battery life", "large screen", etc. These labels directly reflect the main characteristics of the product and are highly relevant to the current user group. Then, the processing stage of the conditional variational autoencoder (CVAE) is entered. First, the product features and user features are input as conditions to the encoder of CVAE. The encoder's task is to map these inputs to a latent space and output the distribution parameters of the latent variables. Usually, this distribution is assumed to be a Gaussian distribution. Then, these distribution parameters are reparameterized and sampled to obtain latent variable samples. The reparameterization technique is a key innovation in VAE, which allows gradients to be propagated backward through sampling operations. Finally, the sampled latent variable samples, together with the original conditional inputs (product features and user features), are input into the decoder of CVAE. The decoder's task is to generate new labels, namely second labels, based on these inputs. These generated second labels can usually capture more personalized or innovative aspects. For example, for the same smartphone, based on the characteristics of a specific user (such as a young photography enthusiast), the generated second labels may include "AI photography assistant", "creative shooting mode", "professional post-editing", etc.
[0084] 105. Generate a final commodity universal tag set for the target commodity relative to the target user according to the first tag and the second tag.
[0085] In one embodiment of the present invention, generating a final commodity universal tag set for the target commodity relative to the target user based on the first tag and the second tag includes: merging the first tag and the second tag to obtain an initial commodity universal tag set; performing entity linking on each tag in the initial commodity universal tag set based on a pre-constructed commodity domain knowledge graph to obtain a mapping relationship between tags and knowledge graph entities; based on the mapping relationship, applying graph inference rules to the initial commodity universal tag set to perform a semantic consistency check to obtain a semantic conflict tag list and a semantic supplement tag list; based on the semantic conflict tag list and the semantic supplement tag list, correcting and expanding the initial commodity universal tag set to obtain a semantically optimized tag set; applying a transformer-based sequence-to-sequence model to the semantically optimized tag set to rearrange the tag sequence to obtain an optimized tag sequence; applying an attention mechanism to the optimized tag sequence to perform importance weighting based on the commodity features and preset context information to obtain a final commodity universal tag set that has been optimized and consistency checked.
[0086] Specifically, the first label selected by the dynamic threshold algorithm and the second label generated by the conditional variational autoencoder are merged to form an initial product general label set. For example, for a smartphone, the initial label set may include "high performance", "long battery life", "large screen" (from the first label) and "AI photography assistant", "creative shooting mode" (from the second label). Next, each label in the initial label set is entity linked using the pre-built product domain knowledge graph. The purpose of this step is to establish a mapping relationship between natural language labels and entities in the knowledge graph, thereby providing structured knowledge support for subsequent semantic analysis. For example, "high performance" may be linked to the "processor performance" node in the knowledge graph, and "AI photography assistant" may be linked to the "artificial intelligence" and "photography function" nodes. Based on these mapping relationships, the system applies graph reasoning rules to perform semantic consistency checks on the initial label set. This process involves using relationships and attributes in the knowledge graph to identify potential semantic conflicts or omissions. In this way, the system can obtain a list of semantic conflicting labels and a list of semantic supplementary labels. For example, if the tag set contains both "thin and light" and "large battery capacity", it may be identified as a potential semantic conflict; if the tag set contains "5G" but lacks "high-speed network", the latter may be added to the list of semantic supplementary tags. Then, based on these two lists, the initial general tag set of the product is revised and expanded. This process may involve deleting conflicting tags, adjusting tag expressions, or adding supplementary tags. Continuing with the above example, the system may retain "thin and light" and remove "large battery capacity", or adjust both to "thin and light design, taking into account battery life"; at the same time, "high-speed network" may be added as a supplementary tag for "5G". Through these operations, a semantically optimized tag set is obtained. Next, the transformer-based sequence-to-sequence model is applied to the semantically optimized tag set to rearrange the tag sequence. The purpose of this step is to optimize the presentation order of the tags to make them more logical and semantically coherent. With its powerful sequence processing capabilities, the Transformer model can learn the dependencies and optimal ordering between tags. For example, the model may learn to put related tags such as "high-performance processor" and "smooth gaming experience" together, or put more important and attractive tags in front. Finally, the attention mechanism is applied to the optimized tag sequence to weight the importance according to the product characteristics and preset contextual information (such as user portraits, seasons, promotions, etc.). This step allows the system to dynamically adjust the importance of tags according to specific situations. For example, for a photography enthusiast user, the system may give higher weights to "AI photography assistant" and "professional-grade camera functions"; during winter promotions, tags such as "cold protection" and "long battery life" may receive more attention.
[0087] In this embodiment, by obtaining the product information of the target product, the user information of the target user, and the platform product label set, feature extraction is performed to generate low-dimensional vector representations of product features, user features, and candidate labels, and a tripartite graph structure is constructed. The tripartite graph structure is modeled by a preset graph attention network, and the correlation between the target product and the candidate label is calculated using a multi-head attention mechanism to obtain a general label candidate list. Then, a dynamic threshold algorithm and a conditional variational autoencoder are applied to generate a final product general label set, thereby realizing personalized customized product label generation to meet the personalized needs of users. This method can improve the accuracy and personalization of product label generation, and can also effectively cope with the challenges of massive data processing, providing users with more accurate product recommendation services.
[0088] The above describes the method for generating a personalized customized product label in an embodiment of the present invention. The following describes the device for generating a personalized customized product label in an embodiment of the present invention. Figure 2 In one embodiment of the present invention, a device for generating a personalized product label includes:
[0089] The feature extraction module 201 is used to obtain the product information of the target product, the user information of the target user, and the platform product tag set, and perform feature extraction on the product information and the user information to obtain product features and user features respectively, wherein the platform product tag set includes multiple candidate tags;
[0090] A graph construction module 202, used to generate low-dimensional vector representations of the product features, user features and candidate tags respectively, and to construct a tripartite graph structure of the target product, the target user and the candidate tags according to the low-dimensional vector representations;
[0091] The candidate label generation module 203 is used to model the tripartite graph structure through a preset graph attention network, and calculate the correlation between the target product and the candidate label according to the modeling result through a multi-head attention mechanism to obtain a general label candidate list of the target product;
[0092] The tag selection module 204 is used to select a first tag from the general tag candidate list by applying a dynamic threshold algorithm, and generate a second tag according to the product features and the user features by using a conditional variational autoencoder;
[0093] The tag aggregation module 205 is used to generate a final commodity common tag set of the target commodity relative to the target user according to the first tag and the second tag.
[0094] In an embodiment of the present invention, the device for generating personalized product labels runs the above-mentioned method for generating personalized product labels. The device for generating personalized product labels obtains the product information of the target product, the user information of the target user, and the platform product label set, performs feature extraction, generates low-dimensional vector representations of product features, user features, and candidate labels, and constructs a tripartite graph structure. The tripartite graph structure is modeled by a preset graph attention network, and the correlation between the target product and the candidate label is calculated using a multi-head attention mechanism to obtain a general label candidate list. Then, a dynamic threshold algorithm and a conditional variational autoencoder are applied to generate a final product general label set, thereby realizing the generation of personalized product labels to meet the personalized needs of users. This method can improve the accuracy and personalization of product label generation, and can also effectively cope with the challenges of massive data processing, providing users with more accurate product recommendation services.
[0095] above Figure 2 The device for generating a personalized product label in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The device for generating a personalized product label in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0096] Figure 3 It is a structural schematic diagram of a device for generating a personalized product label provided by an embodiment of the present invention. The device 300 for generating a personalized product label may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 310 (for example, one or more processors) and a memory 320, and one or more storage media 330 (for example, one or more mass storage device terminals) storing application programs 333 or data 332. Among them, the memory 320 and the storage medium 330 can be short-term storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the device 300 for generating a personalized product label. Furthermore, the processor 310 may be configured to communicate with the storage medium 330, and execute a series of instruction operations in the storage medium 330 on the device 300 for generating a personalized product label to implement the steps of the above-mentioned method for generating a personalized product label.
[0097] The device 300 for generating a personalized product label may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 360, and / or one or more operating systems 331, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 3 The structure of the device for generating personalized product labels shown does not constitute a limitation on the device for generating personalized product labels provided by the present invention, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0098] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the method for generating personalized product labels.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0100] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0101] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a personalized product label, characterized in that: The method for generating the personalized customized product label includes: Acquire product information of a target product, user information of a target user, and a platform product tag set, and perform feature extraction on the product information and the user information to obtain product features and user features, respectively, wherein the platform product tag set includes a plurality of candidate tags; Generate low-dimensional vector representations of the product features, user features and candidate tags respectively, and construct a tripartite graph structure of the target product, the target user and the candidate tags according to the low-dimensional vector representations; the generating low-dimensional vector representations of the product features, user features and candidate tags respectively, and constructing a tripartite graph structure of the target product, the target user and the candidate tags according to the low-dimensional vector representations includes: applying a self-attention mechanism to the product features to perform feature enhancement to obtain enhanced product features; performing cross-attention calculation on the user features according to the enhanced product features to obtain a product perceived user features; performing semantic similarity calculation on the user features perceived by the product and the candidate tags to obtain a user-tag association matrix; applying a graph convolutional network to perform feature aggregation on the enhanced product features, the user features perceived by the product and the candidate tags according to the user-tag association matrix to obtain an initial low-dimensional vector representation; optimizing the initial low-dimensional vector representation by applying a contrastive learning loss function to obtain an optimized low-dimensional vector representation; constructing a tripartite graph structure of the target product, the target user and the candidate tags according to the optimized low-dimensional vector representation by an edge weight calculation method; The method of constructing the tripartite graph structure of the target product, the target user and the candidate tag according to the optimized low-dimensional vector representation by using the edge weight calculation method includes: performing cosine similarity calculation on the optimized low-dimensional vector representations of the target product, the target user and the candidate tag to obtain an initial similarity matrix between the three; applying adaptive threshold screening to the relationship between the target product, the target user and the candidate tag according to the initial similarity matrix to obtain a sparse similarity matrix; performing spectral clustering on the sparse similarity matrix to obtain a clustered matrix of the target product, the target user and the candidate tag. class structure information; based on the cluster structure information, applying local sensitive hashing to the sparse similarity matrix to perform fast nearest neighbor search to obtain the local connection relationship between the target product, the target user and the candidate tag; applying the PageRank algorithm to the local connection relationship to perform importance scoring to obtain the global influence score between the target product, the target user and the candidate tag; based on the global influence score and the local connection relationship, calculating the final edge weight through a weighted combination method, and constructing a tripartite graph structure of the target product, the target user and the candidate tag according to the edge weight; The tripartite graph structure is modeled by a preset graph attention network, and the correlation between the target product and the candidate label is calculated according to the modeling result by a multi-head attention mechanism to obtain a general label candidate list of the target product; the tripartite graph structure is modeled by a preset graph attention network, and the correlation between the target product and the candidate label is calculated according to the modeling result by a multi-head attention mechanism to obtain a general label candidate list of the target product, including: applying a preset graph attention network to the tripartite graph structure for initial feature propagation to obtain an initial node representation containing an attention mechanism; according to the initial node representation, the target product in the tripartite graph structure is propagated. The self-attention mechanism is applied to the product node, the target user node and the candidate label node respectively to obtain the attention weights between the nodes; the attention weights and the initial node representation are weighted converged to obtain the updated node representation; according to the updated node representation, the multi-head attention mechanism is applied between the target product node and the candidate label node to obtain the output of multiple attention heads; the outputs of the multiple attention heads are concatenated and linearly transformed to obtain the correlation score between the target product and the candidate label; the candidate labels are sorted in descending order according to the correlation score, the top K candidate labels are selected, and a general label candidate list of the target product is obtained, where K is a preset positive integer; The applying of the preset graph attention network to the tripartite graph structure to perform initial feature propagation to obtain the initial node representation including the attention mechanism includes: applying a linear transformation to each node in the tripartite graph structure to obtain the initial hidden state of the node; calculating the attention coefficient of the neighbor nodes of each node according to the initial hidden state to obtain the initial attention distribution between the nodes; applying the softmax function to normalize the initial attention distribution to obtain the standardized attention weight; performing weighted summation of the neighbor node features of each node according to the standardized attention weight to obtain the aggregated neighbor information; concatenating the aggregated neighbor information and the hidden state of the node itself, and processing through a nonlinear activation function to obtain an updated node representation; applying residual connection and layer normalization to the updated node representation to obtain the initial node representation including the attention mechanism; Applying a dynamic threshold algorithm to select a first label from the general label candidate list, and using a conditional variational autoencoder to generate a second label according to the product features and the user features; applying the dynamic threshold algorithm to select a first label from the general label candidate list, and using a conditional variational autoencoder to generate a second label according to the product features and the user features includes: performing a statistical analysis on the correlation scores in the general label candidate list to obtain a score distribution feature, and calculating the optimal segmentation point by a kernel density estimation method based on the score distribution feature to obtain a dynamic threshold; applying the dynamic threshold to the general label candidate list to filter and obtain a first label that exceeds the dynamic threshold; conditionally inputting an encoder of a conditional variational autoencoder according to the product features and the user features to obtain distribution parameters of latent variables; reparameterizing and sampling the distribution parameters to obtain latent variable samples; performing a decoding operation on a decoder of the conditional variational autoencoder according to the latent variable samples and the conditional input to obtain a generated second label; A final commodity universal tag set for the target commodity relative to the target user is generated according to the first tag and the second tag.
2. The method for generating a personalized product label according to claim 1, characterized in that: Generating a final commodity universal tag set for the target commodity relative to the target user according to the first tag and the second tag includes: Merging the first tag and the second tag to obtain an initial commodity universal tag set; According to the pre-built commodity domain knowledge graph, entity linking is performed on each tag in the initial commodity general tag set to obtain a mapping relationship between the tag and the knowledge graph entity; Based on the mapping relationship, applying graph inference rules to the initial commodity universal tag set to perform semantic consistency check to obtain a semantic conflict tag list and a semantic supplement tag list; According to the semantically conflicting tag list and the semantically supplementary tag list, the initial commodity universal tag set is modified and expanded to obtain a semantically optimized tag set; Applying a transformer-based sequence-to-sequence model to the semantically optimized label set to rearrange the label sequence to obtain an optimized label sequence; According to the product features and preset context information, an attention mechanism is applied to the optimized label sequence to perform importance weighting, so as to obtain a final product universal label set that has been optimized and consistency checked.
3. A device for generating a personalized product label, characterized in that: The device for generating the personalized product label comprises: A feature extraction module is used to obtain product information of a target product, user information of a target user, and a platform product tag set, and perform feature extraction on the product information and the user information to obtain product features and user features, respectively, wherein the platform product tag set includes a plurality of candidate tags; A graph construction module is used to generate low-dimensional vector representations of the product features, user features and candidate tags respectively, and construct a tripartite graph structure of the target product, the target user and the candidate tags according to the low-dimensional vector representations; the low-dimensional vector representations of the product features, user features and candidate tags respectively are generated, and the tripartite graph structure of the target product, the target user and the candidate tags is constructed according to the low-dimensional vector representations, including: applying a self-attention mechanism to enhance the product features to obtain enhanced product features; performing cross-attention calculation on the user features according to the enhanced product features, Obtaining the user characteristics of commodity perception; calculating the semantic similarity of the user characteristics of commodity perception and the candidate tags to obtain a user-tag association matrix; applying a graph convolutional network to perform feature aggregation on the enhanced commodity characteristics, the user characteristics of commodity perception and the candidate tags according to the user-tag association matrix to obtain an initial low-dimensional vector representation; optimizing the initial low-dimensional vector representation by applying a contrastive learning loss function to obtain an optimized low-dimensional vector representation; constructing a tripartite graph structure of the target commodity, the target user and the candidate tags according to the optimized low-dimensional vector representation by an edge weight calculation method; The method of constructing the tripartite graph structure of the target product, the target user and the candidate tag according to the optimized low-dimensional vector representation by using the edge weight calculation method includes: performing cosine similarity calculation on the optimized low-dimensional vector representations of the target product, the target user and the candidate tag to obtain an initial similarity matrix between the three; applying adaptive threshold screening to the relationship between the target product, the target user and the candidate tag according to the initial similarity matrix to obtain a sparse similarity matrix; performing spectral clustering on the sparse similarity matrix to obtain a clustered matrix of the target product, the target user and the candidate tag. class structure information; based on the cluster structure information, applying local sensitive hashing to the sparse similarity matrix to perform fast nearest neighbor search to obtain the local connection relationship between the target product, the target user and the candidate tag; applying the PageRank algorithm to the local connection relationship to perform importance scoring to obtain the global influence score between the target product, the target user and the candidate tag; based on the global influence score and the local connection relationship, calculating the final edge weight through a weighted combination method, and constructing a tripartite graph structure of the target product, the target user and the candidate tag according to the edge weight; The candidate label generation module is used to model the tripartite graph structure through a preset graph attention network, and calculate the correlation between the target product and the candidate label according to the modeling result through a multi-head attention mechanism to obtain a universal label candidate list of the target product; the modeling of the tripartite graph structure through a preset graph attention network, and calculating the correlation between the target product and the candidate label according to the modeling result through a multi-head attention mechanism to obtain a universal label candidate list of the target product includes: applying a preset graph attention network to the tripartite graph structure for initial feature propagation to obtain an initial node representation containing an attention mechanism; based on the initial node representation, the tripartite graph structure is The target product node, the target user node and the candidate label node in the structure are respectively applied with the self-attention mechanism to obtain the attention weights between the nodes; the attention weights and the initial node representation are weightedly converged to obtain the updated node representation; according to the updated node representation, the multi-head attention mechanism is applied between the target product node and the candidate label node to obtain the output of multiple attention heads; the outputs of the multiple attention heads are concatenated and linearly transformed to obtain the correlation score between the target product and the candidate label; the candidate labels are sorted in descending order according to the correlation score, the top K candidate labels are selected, and a general label candidate list of the target product is obtained, where K is a preset positive integer; The applying of the preset graph attention network to the tripartite graph structure to perform initial feature propagation to obtain the initial node representation including the attention mechanism includes: applying a linear transformation to each node in the tripartite graph structure to obtain the initial hidden state of the node; calculating the attention coefficient of the neighbor nodes of each node according to the initial hidden state to obtain the initial attention distribution between the nodes; applying the softmax function to normalize the initial attention distribution to obtain the standardized attention weight; performing weighted summation of the neighbor node features of each node according to the standardized attention weight to obtain the aggregated neighbor information; concatenating the aggregated neighbor information and the hidden state of the node itself, and processing through a nonlinear activation function to obtain an updated node representation; applying residual connection and layer normalization to the updated node representation to obtain the initial node representation including the attention mechanism; A label selection module, for applying a dynamic threshold algorithm to select a first label from the general label candidate list, and using a conditional variational autoencoder to generate a second label according to the product features and the user features; the application of the dynamic threshold algorithm to select a first label from the general label candidate list, and using a conditional variational autoencoder to generate a second label according to the product features and the user features includes: performing statistical analysis on the correlation scores in the general label candidate list to obtain score distribution characteristics, and calculating the best segmentation point by a kernel density estimation method based on the score distribution characteristics to obtain a dynamic threshold; applying the dynamic threshold to the general label candidate list to filter and obtain a first label that exceeds the dynamic threshold; conditionally inputting an encoder of the conditional variational autoencoder according to the product features and the user features to obtain distribution parameters of latent variables; reparameterizing and sampling the distribution parameters to obtain latent variable samples; decoding the decoder of the conditional variational autoencoder according to the latent variable samples and the conditional input to obtain a generated second label; A tag aggregation module is used to generate a final commodity common tag set of the target commodity relative to the target user according to the first tag and the second tag.
4. A device for generating personalized product labels, characterized in that: The device for generating a personalized product label includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instructions in the memory to enable the device for generating a personalized customized product label to execute the steps of the method for generating a personalized customized product label as described in any one of claims 1-2.
5. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the method for generating a personalized product label as described in any one of claims 1-2 are implemented.
Citation Information
Patent Citations
Personalized commodity description generation method based on multi-source crowd-sourcing data
CN110781394A
Attention-oriented semantic sensitive label recommendation method
CN111488524A
