Multi-modal recommendation method based on double-view self-supervised learning
Through the combination of dual-view self-supervised learning and graph neural network, modal features are used to encode users and items, which solves the data sparse and cold start problems in traditional recommendation methods, achieves more efficient recommendation accuracy, and is suitable for a variety of applications. Application scenarios.
Patent Information
- Application Number
- CN202411341478.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional recommendation methods suffer from data sparse and cold start problems, and fail to fully utilize the semantic information of items, resulting in low recommendation accuracy.
A multi-modal recommendation method based on dual-view self-supervised learning is adopted, using graph neural network to encode the modal features of users and items, and recommending by calculating the inner product of user and item ID embeddings, combined with modal feature purifier and comparison View builder improves recommendation accuracy.
It improves the accuracy and efficiency of the recommendation system, is suitable for a variety of scenarios, such as education, art, and digital entertainment, and has broad business potential and social significance.
Smart Images

Figure CN118861384A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a multimodal recommendation method based on dual-view self-supervised learning, belonging to the technical field of multimodal recommendation systems. Background Art
[0002] With the development of computer vision and natural language processing technology, using the modal features of items as auxiliary semantic information to help complete recommendation tasks has received increasing attention. Traditional recommendation methods have problems with data sparsity and cold start. In addition, traditional recommendation methods only use user behavior data and fail to fully mine the semantic information of items, so the recommendation accuracy is relatively low.
[0003] In order to solve these problems, a multimodal recommendation method based on dual-view self-supervised learning is proposed. In addition to using user behavior data, this method also uses the modal features of items as semantic information, which can understand users and items more comprehensively. The core idea of the multimodal recommendation method based on dual-view self-supervised learning proposed in this invention is to use graph neural networks to encode users, items and modal features of items, and calculate the inner product of the encoded user and item ID embeddings to obtain items recommended to users based on the calculation results. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a multimodal recommendation method based on dual-view self-supervised learning, so as to alleviate the data sparsity and cold start problems existing in the current recommendation system and improve the recommendation accuracy.
[0005] The technical solution of the present invention is: a multimodal recommendation method based on dual-view self-supervised learning. This method can make full use of the modal features of items as semantic information to complete accurate recommendations. Compared with other multimodal recommendation methods, the present invention uses the exit technology instead of the negative sample generation strategy in the comparison view generator, so the calculation time is faster and the recommendation accuracy is higher. The key to the present invention is to use the modal features output by the modal purifier, input it into the graph neural network and apply the obtained output to the item ID embedding, so that the item ID embedding contains the modal features related to the user's preferences, thereby achieving accurate recommendations.
[0006] The specific steps are:
[0007] Step 1: Modal feature extraction and purification stage;
[0008] Step 1.1: Use the pre-trained model to extract features from image and text modalities respectively to obtain image modality features and text modality features .
[0009] Step 1.2: Extract the modal features of the image and text and Input to the modal feature purifier, the modal feature purifier first and Perform linear transformation to obtain high-level features and , and then use it as the input of the activation function sigmod to get and , and finally embed the item ID Respectively and , Perform cross product to obtain the image modality features most relevant to user preferences and text modality features ,Right now:
[0010]
[0011]
[0012] in, is the linear transformation matrix, is the corresponding bias function.
[0013] Step 2: Information encoding stage;
[0014] Step 2.1: The modal features obtained in Step 1.2 and The features of the items extracted using the pre-trained model are called original modal features. Including image and text modalities. In the graph neural network of item-item view, firstly, the original modal features are calculated by and The original modal features The similarity matrix between items is obtained by ,Right now:
[0015]
[0016] in, Representative items In modal Similarly, Representative items In modal The value on .
[0017] It is then normalized to sparse the similarity matrix, retaining only a specific number of edges for each user and item interaction edges, and obtain a new similarity matrix ,Right now:
[0018]
[0019] Finally, the image modality features most relevant to user preferences are and text modality features exist Upward propagation obtains modal features containing richer semantic signals and ,Right now:
[0020]
[0021]
[0022] Step 2.2: Embed the IDs of users and items generated by the random generator and Input into the user-item view graph neural network, and construct the user-item adjacency matrix based on the historical interaction information between users and items. In this adjacency matrix, if the user interacts with the item, the value is 1, otherwise the value is 0. yes The diagonal matrix of Normalize. Use LightGCN's backbone module to embed the IDs of users and items. and Encoding, by capturing high-order behavior-related signals, obtains higher-order ID embeddings with aggregated neighbor information and .Right now:
[0023]
[0024]
[0025] Step 2.3: Obtained from Step 2.1 and Add and average to get the semantic information of item-item view ,Will and Add and average to get the behavior information of user-item view ,Will and Add and divide according to the number of users and items to get the user and item ID embedding that incorporates modal features and .
[0026] Step 3: Modal fusion stage;
[0027] Step 3.1: The image modality and text modality features obtained in Step 2.1 and , using the transformer encoder layer pair and conduct Fusion obtains a fusion representation of image and text modalities ,Right now:
[0028]
[0029] Step 3.2: Fusion representation of the fused image and text modalities Enter into the Comparison View Builder.
[0030] Step 4: Comparison view generation stage;
[0031] Step4.1: Combine the results from Step2.1, Step2.2 and Step3.2 and Input to the contrast view generator, which consists of two branches, one of which uses a multi-layer perceptron to obtain a linear mapping of the input, namely:
[0032]
[0033] in , is the linear transformation matrix for mapping, is the bias function for mapping.
[0034] Another branch uses the dropout technique to randomly lose some neurons with probability p, namely:
[0035]
[0036] in , is a Bernoulli distribution.
[0037] Step 5: Recommendation stage;
[0038] Step 5.1: User ID embedding with modal features and item ID embedded The transpose of is multiplied to get the ranking score of the user's item ,Right now:
[0039]
[0040] Step5.2: According to Step2.3 The value of the sequence is sorted from large to small. The larger the value, the higher the priority of the recommendation. According to the actual needs, the top k items can be recommended. Get the recommended items by the corresponding item ID.
[0041] The beneficial result of the present invention is that the multimodal recommendation method using graph neural network helps to represent the embedding of item ID by using modal features as semantic information, thereby improving the recommendation accuracy. The modal features are extracted using pre-trained models such as VGG16, and the modal feature purifier is used for feature purification. The ID embedding of users and items is encoded using graph neural network, thereby improving the recommendation accuracy. In addition, the present invention has a wide range of application value and is applicable to a variety of scenarios. This technology is expected to play an important role in education, art, digital entertainment and other fields, and has great commercial potential and social significance. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a flow chart of the present invention;
[0043] Figure 2 is a diagram of the architecture of the modal feature purifier of the present invention;
[0044] Figure 3 4 is a diagram of the architecture of the comparison view generator of the present invention. DETAILED DESCRIPTION
[0045] The present invention will be further explained below in conjunction with the accompanying drawings and specific implementation methods.
[0046] Example 1: Figure 1 As shown in FIG. 1 , a multimodal recommendation method based on dual-view self-supervised learning is shown in FIG. 1 . The specific steps are as follows:
[0047] Step 1: Modal feature extraction and purification stage
[0048] Step 1.1: Convert the original modalities, i.e., images and texts, into numerical embedding representations, and use pre-trained models to extract features from image and text modalities. Use the pre-trained model in VGG16 to extract image modality features, and use the pre-trained model in sentence-transformer to extract text modality; obtain image modality features respectively. and text modality features ,In this embodiment, 4096-dimensional features are extracted in the image modality and 384-dimensional features are extracted in the text modality.
[0049] Step 1.2: Extract the modal features of the image and text and Input to the modal feature purifier, the modal feature purifier first and Perform linear transformation to obtain high-level features and , and then use it as the input of the activation function sigmod to get and , and finally embed the item ID Respectively and , Perform cross product to obtain the image modality features most relevant to user preferences and text modality features ,Right now:
[0050]
[0051] in is the linear transformation matrix, is the corresponding bias function.
[0052] Step 2: Information encoding stage
[0053] Step 2.1: The modal features obtained in Step 1.2 and Input into the graph neural network of item-item view to capture semantic related signals and obtain richer item modal features and The features of the items extracted using the pre-trained model are called original modal features. Including image and text modalities. In the graph neural network of item-item view, firstly, the original modal features are calculated by and The original modal features The similarity matrix between items is obtained by ,Right now:
[0054]
[0055] in Representative items In modal Similarly, Representative items In modal The value on .
[0056] It is then normalized to sparse the similarity matrix, retaining only a specific number of edges for each user and item interaction edges, and obtain a new similarity matrix ,Right now:
[0057]
[0058] Step 2.2: Embed the IDs of users and items generated by the random generator and Input into the user-item view graph neural network, and construct the user-item adjacency matrix based on the historical interaction information between users and items. In this adjacency matrix, if the user interacts with the item, the value is 1, otherwise the value is 0. yes The diagonal matrix of Normalize. Use LightGCN's backbone module to embed the IDs of users and items. and Encoding, by capturing high-order behavior-related signals, obtains higher-order ID embeddings with aggregated neighbor information and .Right now:
[0059]
[0060]
[0061] Step 2.3: Obtained from Step 2.1 and Add and average to get the semantic information of item-item view , obtained in Step 2.2 and Add and average to get the behavior information of user-item view ,Will and Add and divide according to the number of users and items to get the user-item ID embedding that incorporates modal features and .
[0062] Step 3: Modal fusion stage
[0063] Step 3.1: The image modality and text modality features obtained in Step 2.1 and Make a concatenation, then use it as the input of the linear layer, and then input it into the Transformer encoder. and conduct Fusion obtains a fusion representation of image and text modalities ,Right now:
[0064]
[0065] Step 3.2: Fusion representation of the fused image and text modalities Enter into the Comparison View Builder.
[0066] Step 4: Comparison view generation phase
[0067] Step4.1: Combine the results from Step2.1 and Step2.2 and Input to the contrast view generator, the contrast view generator consists of two branches, one of which uses a multi-layer perceptron to obtain a linear mapping of the input, namely:
[0068]
[0069] in , is the linear transformation matrix for mapping, is the bias function for mapping.
[0070] Another branch uses the dropout technique to randomly lose some neurons with probability p, namely:
[0071]
[0072] in , is a Bernoulli distribution.
[0073] Step 5: Recommendation stage
[0074] Step 5.1: Embed the user ID obtained in Step 2.3 with the modal features and item ID embedded The transpose of is multiplied to get the ranking score of the user's item ,Right now:
[0075]
[0076] Step5.2: According to Step2.3 The value of is arranged in descending order. The larger the value, the higher the priority of recommendation. According to the actual needs, the top k items can be recommended. Get the recommended items by the corresponding item ID.
[0077] In order to verify the effect of the present invention, three public data sets in the field of multimodal recommendation systems (Amazon-Baby, Amazon-Sports and Amazon-Clothing) were selected for verification. Recall and NDCG were used as indicators for performance evaluation. Recall is a measure of the proportion of related items that the recommendation system can successfully recommend, indicating the proportion of items successfully recommended by the recommendation system among all related items. NDCG is an indicator to measure the ranking quality of the recommendation system, which takes into account the relevance and recommendation order of the recommended items. The higher the ranking of the recommended items, the higher the evaluation score obtained. The higher the values of the above two evaluation indicators, the better the effect of the present invention.
[0078] Table 1 Performance comparison of this model with other three models
[0079] It can be concluded from the results in Table 1 that the experimental results of the present invention on the public data sets in the three multimodal recommendation system fields are better than those of the other three models, which verifies the effect of the present invention.
[0080] Figure 1 The architecture of a multimodal recommendation method based on dual-view self-supervised learning is shown. First, the original image and text are input into the pre-trained model VGG16 and sentence-transformer to extract features. and , where the image modality It is a 4096-dimensional feature, text mode is a 384-dimensional feature. and Input into the modal feature extractor to obtain modal features related to user preferences and . Then embed the user and item IDs and Input into the item-item graph neural network, and Input them into the item-item graph neural network and encode them separately to obtain , fusion Get the fusion representation of image and text modalities Finally, Input into the comparison view generator for optimization, while using and Perform inner product operation, and arrange the calculated inner product values in descending order according to the values obtained by the inner product operation, and put the inner product values in the sequence The corresponding item ID is recommended to the user.
[0081] Figure 2 The figure shows the architecture of the modal feature extractor, which consists of a linear transformation layer, a sigmoid activation function and a cross product. The modal features of the extracted image and text are and Input to the modal feature purifier, the modal feature purifier first and Perform linear transformation to obtain high-level features and , and then use it as the input of the activation function sigmod to get and , and finally embed the item ID Respectively and , Perform cross product to obtain the image modality features most relevant to user preferences and text modality features .
[0082] Figure 3 The architecture of the contrastive view generator is shown, which consists of two branches, one adopting a linear mapping strategy to generate new embeddings and the other using a dropout mechanism to randomly drop some neurons to generate embeddings.
[0083] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A multimodal recommendation method based on dual-view self-supervised learning, characterized in that: The method comprises: Step 1: Use the pre-trained model to extract features from image and text modalities, and then use the extracted features as the input of the modal feature purifier to obtain the purified modal features that are most relevant to user preferences; Step 2: The purified modal features and the ID embeddings of users and items are embedded through the graph neural network of the item-item view to obtain the modal features of items and the ID embeddings of users and items with neighbor information, thereby obtaining semantic information and behavioral information. The semantic information and behavioral information are then added together to obtain the user and item ID embeddings that incorporate modal features. Step 3: Fuse the modal features of the items and input the fused features into the contrast view generator. In the contrast view generator, a linear representation of the input fused features and a random representation using the dropout technology are obtained respectively. The expression of the fused features is enhanced by contrastive learning technology. Step 4: Input the modal features of the items and the ID embeddings of users and items with neighbor information into the comparison graph generator to obtain two new embeddings corresponding to each input; Step 5: Based on the new embeddings corresponding to each input obtained by the contrast view generator, the characteristics of users and items are continuously learned, and the user and item IDs that have integrated the modal features are embedded for inner product operations, and the recommended items are obtained based on the results of the inner product operations.
2. According to claim 1, a multimodal recommendation method based on dual-view self-supervised learning is characterized in that: The specific step 1 is as follows: first, the pre-trained model is used to extract features from the image and text modalities respectively, and the image modality features are obtained respectively. and text modality features ; Then use the modal feature purifier to and Perform linear transformation to obtain high-level features and , and then and As the input of the activation function sigmod, we get and , and finally embed the item ID Respectively and , Perform cross product to obtain the image modality features most relevant to user preferences and text modality features ,Right now: ; ; in, is the linear transformation matrix, is the corresponding bias function.
3. The multimodal recommendation method based on dual-view self-supervised learning according to claim 1, characterized in that: The Step 2 is specifically as follows: Step 2.1: and Input into the graph neural network of item-item view, and obtain richer item modal features by capturing semantic related signals. and ; Step 2.2: Embed the IDs of users and items and Input into the user-item view graph neural network, by capturing high-order behavior-related signals, a higher-order user and item ID embedding with aggregated neighbor information is obtained and ; Step 2.3: and Add and average to get the semantic information of item-item view ,Will and Add and average to get the behavior information of user-item view ,Will and Add and divide according to the number of users and items to get the user and item ID embedding that incorporates modal features and .
4. The multimodal recommendation method based on dual-view self-supervised learning according to claim 3, characterized in that: The step 2.1 is specifically as follows: extracting the original modal features of the object using the pre-trained model, wherein the original modal features Including image and text modalities, in the graph neural network of item-item view, firstly, the original modal features are calculated by and The original modal features The similarity matrix between items is obtained by ,Right now: ; in, Representative items In modal Similarly, Representative items In modal The value on ; Then the similarity matrix Normalization is performed to sparse the similarity matrix, retaining only a certain number of edges for each user and item interaction. edges, and obtain a new similarity matrix ,Right now: ; Finally, the image modality features most relevant to user preferences are and text modality features exist Upward propagation obtains modal features containing semantic signals and ,Right now: ; 。 5. The multimodal recommendation method based on dual-view self-supervised learning according to claim 3, characterized in that: The specific step of Step 2.2 is as follows: embed the IDs of users and items generated by the random generator into and Input into the user-item view graph neural network, and construct the user-item adjacency matrix based on the historical interaction information between users and items. In this adjacency matrix, if the user interacts with the item, the value is 1, otherwise the value is 0. yes The diagonal matrix of Normalize and use the LightGCN backbone module to embed the IDs of users and items and Encoding, by capturing high-order behavior-related signals, obtains higher-order ID embeddings with aggregated neighbor information and ,Right now: ; 。 6. The multimodal recommendation method based on dual-view self-supervised learning according to claim 1, characterized in that: The specific step 3 is: use the encoder layer of transformer and Perform concatenation to obtain a fusion representation of image and text modalities ,Right now: 。 7. The multimodal recommendation method based on dual-view self-supervised learning according to claim 1, characterized in that: The specific step 4 is as follows: the contrast view generator is composed of two branches, one of which uses a multi-layer perceptron to obtain a linear mapping of the input, namely: ; in , is the linear transformation matrix for mapping, is the bias function for mapping; Another branch uses the dropout technique to randomly lose some neurons with probability p, namely: ; in , is a Bernoulli distribution.
8. The multimodal recommendation method based on dual-view self-supervised learning according to claim 1, characterized in that: The specific operation of the inner product operation is: embedding the user ID that integrates the modal features into and item ID embedded The transpose of is multiplied to get the ranking score of the user's item, that is: ; in, The ranking score of the user's items.
9. The multimodal recommendation method based on dual-view self-supervised learning according to claim 1, characterized in that: The specific operation of obtaining the recommended items according to the inner product calculation result is: arranging the values obtained by the inner product calculation in order from large to small, the larger the value, the higher the recommendation priority, setting the top k recommended items according to the actual use needs, and Get the recommended items by the corresponding item ID.
Citation Information
Patent Citations
Multi-view multi-mode commodity recommendation method based on attention neural network
CN114693397A
Recommendation method based on comparative learning and multi-behavior semantic enhancement
CN118113938A
Cited By
Multi-modal hemodynamic analysis method and device applied to sepsis
CN119991565A
