Intelligent user recommendation method based on user preferences and personalized features
The collaborative filtering method that combines the UI2vec algorithm and the self-attention mechanism solves the problem of low recommendation accuracy and low degree of personalization of user recommendation methods, achieving more accurate personalized recommendations and enhanced model robustness.
Patent Information
- Application Number
- CN202410758784.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing user recommendation methods have problems such as low recommendation accuracy and low degree of personalization. Feature matching is difficult, and traditional collaborative filtering algorithms are difficult to distinguish the importance of information and capture the diversity interaction between features, resulting in low recommendation accuracy.
The UI2vec algorithm is used to map the feature vectors of users and items into the same latent space. It combines the self-attention mechanism and the collaborative filtering algorithm of feature fusion to automatically assign weights through the self-attention mechanism and use the multi-head attention mechanism to capture the interaction between features.
It improves the accuracy and personalization of recommendation results, enhances the robustness and generalization ability of the model, can more accurately capture user preferences and item characteristics, and dynamically adjust recommendation results.
Smart Images

Figure CN118568353A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and specifically refers to an intelligent user recommendation method based on user preferences and personalized features. Background Art
[0002] Existing user recommendation methods have the problems of low recommendation accuracy and low personalization, and feature matching is difficult. The original feature dimensions of users and projects are different and high-dimensional. It is difficult to find a suitable metric when directly matching features, resulting in reduced recommendation accuracy. In addition, high-dimensional features contain a large amount of noise data, making it difficult to distinguish important features from noise, which affects the recommendation results. At the same time, due to the lack of a unified latent space for feature mapping, it is difficult for the system to capture the personalized preferences of users, and the recommendation results are more generalized with reduced personalization. Directly using the original features makes it difficult to dynamically adjust and update user preferences, and cannot timely reflect changes in user interests. At the same time, traditional collaborative filtering algorithms have the problems of difficulty in distinguishing the importance of information and poor generalization ability. They usually cannot dynamically adjust weights according to the relationship between specific users and projects, resulting in low recommendation accuracy. Traditional collaborative filtering algorithms usually use a fixed weight distribution method and cannot adjust feature weights according to specific scenarios. Important information is difficult to highlight, and they cannot capture the diverse interactions between features, and have poor generalization ability and robustness. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an intelligent user recommendation method based on user preferences and personalized features. In order to solve the problems of low recommendation accuracy and low personalization in the user recommendation method, the UI2vec algorithm is used to map the user's feature vector and the project's feature vector to the same latent space, so that the user's interests and the characteristics of the project are compared and calculated in the same dimension, which improves the accuracy of similarity calculation. Through embedding representation, high-dimensional user and project features are compressed into a low-dimensional space, retaining the most important features, reducing noise, and improving the accuracy of recommendation results. The embedded representation of users and projects is learned through the UI2vec model to capture the user's personalized preferences and the unique characteristics of the project, thereby achieving more accurate personalized recommendations. In order to solve the problems of difficult to distinguish information importance and poor generalization ability in traditional collaborative filtering algorithms, a collaborative filtering algorithm based on self-attention mechanism and feature fusion is used to calculate the user's interest in candidate recommendation projects. Different weights are automatically assigned in feature interactions through the self-attention mechanism to reflect the difference in information importance and optimize the recommendation results. Through the multi-head attention mechanism, the diverse interactions between features are captured to improve the robustness and generalization ability of the model.
[0004] The technical solution adopted by the present invention is as follows: The intelligent user recommendation method based on user preferences and personalized features provided by the present invention comprises the following steps:
[0005] Step S1: User data collection, collecting user data, including personal information, historical behavior data, preferences and likes, and using user data to construct a user feature vector;
[0006] Step S2: Project data collection, collecting relevant information of the project, including content features, tags, categories, and using the relevant information of the project to construct a feature vector of the project;
[0007] Step S3: feature embedding representation, using the UI2vec algorithm to map the user's feature vector and the item's feature vector to the same latent space, and obtain the embedding representation of the user's feature vector and the item's feature vector;
[0008] Step S4: Similarity calculation: Based on the embedded representation of the user's feature vector and the item's feature vector, the similarity between the user and the item is calculated to obtain the user's similarity score for all items. Several items with high similarity scores are selected as candidate recommendation items.
[0009] Step S5: Generate recommendation results. According to the similarity scores of the candidate recommendation items, a collaborative filtering algorithm based on self-attention mechanism and feature fusion is used to calculate the user's interest in the candidate recommendation items, and generate a recommendation list. At the same time, filtering and sorting are performed to generate the final recommendation list.
[0010] Step S6: Presenting the recommendation results, presenting the final recommendation list to the user on a web page, App or email;
[0011] Step S7: Evaluation and optimization: Introduce evaluation indicators to evaluate the final recommendation list, including indicators of recommendation accuracy and user satisfaction, obtain evaluation results, and optimize and adjust the collaborative filtering algorithm and model based on the evaluation results.
[0012] Further, step S3 specifically includes the following steps:
[0013] Step S31: data preparation, receiving the user's feature vector and the item's feature vector collected in step S1 and step S2;
[0014] Step S32: construct document labels, define document labels for the user's feature vector and the project's feature vector respectively, use the user ID as the label of the user's feature vector, and the project ID as the label of the project's feature vector;
[0015] Step S33: construct a UI2vec model, using Doc2Vec as the basic framework to construct an embedded representation UI2vec model;
[0016] Step S34: training the UI2vec model, using the user's feature vector and the item's feature vector to train the UI2vec model, the UI2vec model learns the relationship between the user and the item and maps them to the same latent space;
[0017] Step S35: embedding representation, extracting the embedding representation of the user and the item from the UI2vec model using the user ID and the item ID;
[0018] Further, step S33 specifically includes the following contents:
[0019] Based on Doc2Vec, use the Gensim library to build the UI2vec model, customize a class, inherit the Doc2Vec class in the Gensim library, and rewrite the document tag generation function of the UI2vec model;
[0020] Merge the feature vectors of the user and the project into a new label vector according to the concatenation rule, and associate the user ID and project ID in step S32 with the corresponding label vector;
[0021] Set parameters, including embedding dimension, context window size, and number of negative samples;
[0022] Further, step S5 specifically includes the following steps:
[0023] Step S51: data preparation, receiving user feature vectors and item feature vectors;
[0024] Step S52: construct a model and design a collaborative filtering model based on self-attention mechanism and feature fusion, including an input layer, a feature embedding layer, a self-attention layer, a feature fusion layer and an output layer;
[0025] Step S53: self-attention mechanism calculation, dynamically calculating the interaction weight between the user and the candidate item;
[0026] Step S54: feature fusion, fusing the user feature vector, the feature vector of the candidate item, and the interaction weight calculated by the self-attention mechanism;
[0027] Step S55: model training, training the collaborative filtering model based on the self-attention mechanism and feature fusion, and optimizing the parameters thereof to obtain a trained collaborative filtering model based on the self-attention mechanism and feature fusion;
[0028] Step S56: generating recommendations, generating a recommendation list based on the similarity scores of the candidate recommendation items using the trained collaborative filtering model based on the self-attention mechanism and feature fusion; Further, step S52 specifically includes the following contents:
[0029] Input layer: receives user feature vector and item feature vector; ; v=[ v 1 . v 2 ,…, v n ] ;
[0030] in, is the user feature vector, is the item feature vector;
[0031] Feature embedding layer: The input user feature vector and item feature vector are converted into low-dimensional feature representation through the embedding layer. The formula used is as follows: ; ;
[0032] in, is a user feature vector, is a project feature vector, and is the embedding matrix of user features and the embedding matrix of item features, and is the bias term;
[0033] Self-attention layer: A multi-head attention mechanism is used to calculate the interaction weight between the user feature vector and the item feature vector. The formula used is as follows: ; ; ; ; ; ;
[0034] in, is the query vector, is the key vector, is a vector of values, is the attention weight matrix, is the attention output matrix, and are the user feature vector represented by low-dimensional embedding and the item feature vector represented by low-dimensional embedding, yes The transpose of is the dimension of the key, is a multi-head attention mechanism, is the weight matrix of multi-head attention output, Output for attention;
[0035] Feature fusion layer: The calculated interaction weight is weightedly fused with the original feature vector to obtain the user's interest score for the candidate recommendation item. The formula used is as follows: ; ;
[0036] in, is the fused feature vector, is the weight matrix of the feature fusion layer, is the bias vector of the feature fusion layer;
[0037] Output layer: Output the user's interest score for each candidate recommendation item; ;
[0038] in, is the user's interest score in the project, is the bias vector of the output layer, is the activation function.
[0039] The beneficial effects achieved by the present invention using the above scheme are as follows:
[0040] (1) To address the problems of low recommendation accuracy and low personalization in user recommendation methods, the UI2vec algorithm is used to map the user's feature vector and the item's feature vector to the same latent space, so that the user's interests and the item's characteristics can be compared and calculated on the same dimension, which improves the accuracy of similarity calculation. Through embedding representation, high-dimensional user and item features are compressed into a low-dimensional space, retaining the most important features, reducing noise, and improving the accuracy of recommendation results. The embedded representation of users and items is learned through the UI2vec model to capture the user's personalized preferences and the unique characteristics of the item, thereby achieving more accurate personalized recommendations.
[0041] (2) In view of the problems of traditional collaborative filtering algorithms such as difficulty in distinguishing the importance of information and poor generalization ability, a collaborative filtering algorithm based on self-attention mechanism and feature fusion is used to calculate the user's interest in candidate recommendation items. The self-attention mechanism is used to automatically assign different weights in feature interactions to reflect the differences in information importance and optimize the recommendation results. The multi-head attention mechanism is used to capture the diverse interactions between features, thereby improving the robustness and generalization ability of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flowchart of the intelligent user recommendation method based on user preferences and personalized features provided by the present invention.
[0043] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0045] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0046] Embodiment 1, the present invention provides an intelligent user recommendation method based on user preferences and personalized features, the method comprising the following steps:
[0047] Step S1: User data collection, collecting user data, including personal information, historical behavior data, preferences and likes, and using user data to construct a user feature vector;
[0048] Step S2: Project data collection, collecting relevant information of the project, including content features, tags, categories, and using the relevant information of the project to construct a feature vector of the project;
[0049] Step S3: feature embedding representation, using the UI2vec algorithm to map the user's feature vector and the item's feature vector to the same latent space, and obtain the embedding representation of the user's feature vector and the item's feature vector;
[0050] Step S4: Similarity calculation: Based on the embedded representation of the user's feature vector and the item's feature vector, the similarity between the user and the item is calculated to obtain the user's similarity score for all items. Several items with high similarity scores are selected as candidate recommendation items.
[0051] Step S5: Generate recommendation results. According to the similarity scores of the candidate recommendation items, a collaborative filtering algorithm based on self-attention mechanism and feature fusion is used to calculate the user's interest in the candidate recommendation items, and generate a recommendation list. At the same time, filtering and sorting are performed to generate the final recommendation list.
[0052] Step S6: Presenting the recommendation results, presenting the final recommendation list to the user on a web page, App or email;
[0053] Step S7: Evaluation and optimization: Introduce evaluation indicators to evaluate the final recommendation list, including indicators of recommendation accuracy and user satisfaction, obtain evaluation results, and optimize and adjust the collaborative filtering algorithm and model based on the evaluation results.
[0054] Example 2, see Figure 1 This embodiment is based on the above embodiment, and step S3 specifically includes the following steps:
[0055] Step S31: Data preparation, receiving the user's feature vector and the item's feature vector collected in step S1 and step S2. The code used is as follows:
[0056] import numpy as np # Example user feature vector and item feature vector user_features = { 'user1': np.array([0.1, 0.3, 0.5]), 'user2': np.array([0.4, 0.2, 0.6]) } item_features = { 'item1': np.array([0.3, 0.6, 0.9]), 'item2': np.array([0.5, 0.7, 0.8]) };
[0057] Step S32: Construct document labels, define document labels for the user's feature vector and the project's feature vector respectively, use the user ID as the label of the user's feature vector, and the project ID as the label of the project's feature vector. The code used is as follows:
[0058] # User tags and project tags user_labels = list(user_features.keys()) item_labels = list(item_features.keys());
[0059] Step S33: construct a UI2vec model, using Doc2Vec as the basic framework to construct an embedded representation UI2vec model;
[0060] Step S33 specifically includes the following contents:
[0061] Based on Doc2Vec, use the Gensim library to build the UI2vec model, customize a class, inherit the Doc2Vec class in the Gensim library, and rewrite the document tag generation function of the UI2vec model. The code used is as follows:
[0062] from gensim.models.doc2vec import Doc2Vec, TaggedDocument class UI2Vec(Doc2Vec): def __init__(self, *args, **kwargs): super(UI2Vec, self).__init__(*args, **kwargs) def build_vocab(self, documents): # Rewrite document tag generation function tagged_data = [TaggedDocument(words=doc, tags=[label]) fordoc, label in documents] super(UI2Vec, self).build_vocab(tagged_data) # Setting parameters embedding_dim = 50 # embedding dimension window_size = 5 # context window size negative_sampling = 10 # negative sampling number;
[0063] According to the concatenation rule, the feature vectors of the user and the project are merged into a new label vector, and the user ID and project ID in step S32 are associated with the corresponding label vector. The code used is as follows:
[0064] # Joining rules: user features + project features documents = [(np.concatenate((user_features[uid], item_features[iid])), f"{uid}_{iid}") for uid in user_features for iid in item_features] # Build UI2vec model ui2vec_model=UI2Vec(vector_size=embedding_dim,window=window_size,negative=negative_sampling) ui2vec_model.build_vocab(documents);
[0065] Set parameters, including embedding dimension, context window size, and number of negative samples;
[0066] Step S34: Train the UI2vec model. Use the user's feature vector and the item's feature vector to train the UI2vec model. The UI2vec model learns the relationship between users and items and maps them to the same latent space. The code used is as follows:
[0067] # Train UI2vec model ui2vec_model.train(documents, total_examples=len(documents), epochs=20);
[0068] Step S35: Embedding representation, using user ID and item ID to extract the embedding representation of users and items from the UI2vec model. The code used is as follows:
[0069] # Extract embedding representations of users and items user_embeddings = {uid: ui2vec_model.dv[uid] for uid in user_labels} item_embeddings = {iid: ui2vec_model.dv[iid] for iid in item_labels} # Example extraction print("User embedding representation:", user_embeddings) print("Item embedding representation:", item_embeddings);
[0070] Through the above operations, the UI2vec algorithm is used to map the user's feature vector and the project's feature vector to the same latent space to address the problems of low recommendation accuracy and low personalization in user recommendation methods. This allows the user's interests and the project's characteristics to be compared and calculated on the same dimension, improving the accuracy of similarity calculations. Through embedded representation, high-dimensional user and project features are compressed into a low-dimensional space, retaining the most important features, reducing noise, and improving the accuracy of recommendation results. The embedded representation of users and projects is learned through the UI2vec model to capture the user's personalized preferences and the unique characteristics of the project, thereby achieving more accurate personalized recommendations.
[0071] Example 3, see Figure 1 This embodiment is based on the above embodiment, and step S5 specifically includes the following steps:
[0072] Step S51: data preparation, receiving user feature vectors and item feature vectors;
[0073] Step S52: construct a model and design a collaborative filtering model based on self-attention mechanism and feature fusion, including an input layer, a feature embedding layer, a self-attention layer, a feature fusion layer and an output layer;
[0074] Step S52 specifically includes the following contents:
[0075] Input layer: receives user feature vector and item feature vector; ; v=[ v 1 . v 2 ,…, v n ] ;
[0076] in, is the user feature vector, is the project feature vector, and the code used is as follows:
[0077] import tensorflow as tf from tensorflow.keras.layers import Input # Input layer user_input = Input(shape=(user_features['user1'].shape[0],), name='user_input') item_input = Input(shape=(item_features['item1'].shape[0],), name='item_input');
[0078] Feature embedding layer: The input user feature vector and item feature vector are converted into low-dimensional feature representation through the embedding layer. The formula used is as follows: ; ;
[0079] in, is a user feature vector, is a project feature vector, and is the embedding matrix of user features and the embedding matrix of item features, and is the bias term, and the code used is as follows:
[0080] from tensorflow.keras.layers import Dense # Embedding layer embedding_dim = 50 user_embedding=Dense(embedding_dim,activation='relu',name='user_embedding')(user_input) item_embedding=Dense(embedding_dim,activation='relu',name='item_embedding')(item_input);
[0081] Self-attention layer: A multi-head attention mechanism is used to calculate the interaction weight between the user feature vector and the item feature vector. The formula used is as follows: ; ; ; ; ; ;
[0082] in, is the query vector, is the key vector, is a vector of values, is the attention weight matrix, is the attention output matrix, and are the user feature vector represented by low-dimensional embedding and the item feature vector represented by low-dimensional embedding, yes The transpose of is the dimension of the key, is a multi-head attention mechanism, is the weight matrix of multi-head attention output, For attention output, the code used is as follows:
[0083] from tensorflow.keras.layers import MultiHeadAttention # Self-attention layer num_heads = 4 attention_output=MultiHeadAttention(num_heads=num_heads,key_dim=embedding_dim)(user_embedding, item_embedding);
[0084] Feature fusion layer: The calculated interaction weight is weightedly fused with the original feature vector to obtain the user's interest score for the candidate recommendation item. The formula used is as follows: ; ;
[0085] in, is the fused feature vector, is the weight matrix of the feature fusion layer, is the bias vector of the feature fusion layer. The code used is as follows:
[0086] from tensorflow.keras.layers import Concatenate # Feature fusion layer concat_input = Concatenate()([user_embedding, attention_output, item_embedding]) fusion_output = Dense(embedding_dim, activation='relu', name='fusion_output')(concat_input);
[0087] Output layer: Output the user's interest score for each candidate recommendation item; ;
[0088] in, is the user's interest score in the project, is the bias vector of the output layer, To activate the function, the code used is as follows:
[0089] # Output layer output = Dense(1, activation='sigmoid', name='output')(fusion_output) # Build the model model = tf.keras.Model(inputs=[user_input, item_input], outputs=output) model.compile(optimizer='adam', loss='binary_crossentropy');
[0090] Step S53: self-attention mechanism calculation, dynamically calculating the interaction weight between the user and the candidate item;
[0091] Step S54: feature fusion, fusing the user feature vector, the feature vector of the candidate item, and the interaction weight calculated by the self-attention mechanism;
[0092] Step S55: Model training, training the collaborative filtering model based on the self-attention mechanism and feature fusion, and optimizing the parameters therein to obtain a trained collaborative filtering model based on the self-attention mechanism and feature fusion. The code used is as follows:
[0093] # Prepare training data import numpy as np # Example training data user_feature_matrix = np.array([user_features['user1'], user_features['user2']]) item_feature_matrix = np.array([item_features['item1'], item_features['item2']]) labels = np.array([1, 0]) # Example labels # Train the model model.fit([user_feature_matrix, item_feature_matrix], labels, epochs=10, batch_size=2);
[0094] Step S56: Recommendation generation: According to the similarity scores of the candidate recommendation items, a recommendation list is generated using the trained collaborative filtering model based on the self-attention mechanism and feature fusion. The code used is as follows:
[0095] # Example Generate Recommendation Results predicted_scores = model.predict([user_feature_matrix, item_feature_matrix]) recommended_items = np.argsort(predicted_scores, axis=0)[::-1] # Sort by scores in descending order print("Recommended items:", recommended_items);
[0096] Through the above operations, in order to solve the problems of traditional collaborative filtering algorithms in which it is difficult to distinguish the importance of information and their generalization ability is poor, a collaborative filtering algorithm based on self-attention mechanism and feature fusion is used to calculate the user's interest in candidate recommendation items. Different weights are automatically assigned in feature interactions through the self-attention mechanism to reflect the differences in the importance of information and optimize the recommendation results. Through the multi-head attention mechanism, the diverse interactions between features are captured to improve the robustness and generalization ability of the model.
[0097] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0098] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
[0099] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. An intelligent user recommendation method based on user preferences and personalized features, characterized by: The method comprises the following steps: Step S1: user data collection, collecting user data and using the user data to construct a user feature vector; Step S2: Project data collection, collecting relevant information of the project and using the relevant information of the project to construct a feature vector of the project; Step S3: feature embedding representation, using the UI2vec algorithm to map the user's feature vector and the item's feature vector to the same latent space, and obtain the embedding representation of the user's feature vector and the item's feature vector; Step S4: Similarity calculation: Based on the embedded representation of the user's feature vector and the item's feature vector, the similarity between the user and the item is calculated to obtain the user's similarity score for all items. Several items with high similarity scores are selected as candidate recommendation items. Step S5: Generate recommendation results. According to the similarity scores of the candidate recommendation items, a collaborative filtering algorithm based on self-attention mechanism and feature fusion is used to calculate the user's interest in the candidate recommendation items, and generate a recommendation list. At the same time, filtering and sorting are performed to generate the final recommendation list. Step S6: Presenting the recommendation results, presenting the final recommendation list to the user on a web page, App or email; Step S7: Evaluation and optimization: Introduce evaluation indicators to evaluate the final recommendation list, including indicators of recommendation accuracy and user satisfaction, obtain evaluation results, and optimize and adjust the collaborative filtering algorithm and model based on the evaluation results.
2. The intelligent user recommendation method based on user preferences and personalized features according to claim 1, characterized in that: Step S3 specifically includes the following steps: Step S31: data preparation, receiving the user's feature vector and the item's feature vector collected in step S1 and step S2; Step S32: construct document labels, define document labels for the user's feature vector and the project's feature vector respectively, use the user ID as the label of the user's feature vector, and the project ID as the label of the project's feature vector; Step S33: construct a UI2vec model, using Doc2Vec as the basic framework to construct an embedded representation UI2vec model; Step S33 specifically includes the following contents: Based on Doc2Vec, use the Gensim library to build the UI2vec model, customize a class, inherit the Doc2Vec class in the Gensim library, and rewrite the document tag generation function of the UI2vec model; Merge the feature vectors of the user and the project into a new label vector according to the concatenation rule, and associate the user ID and project ID in step S32 with the corresponding label vector; Set parameters, including embedding dimension, context window size, and number of negative samples; Step S34: training the UI2vec model, using the user's feature vector and the item's feature vector to train the UI2vec model, the UI2vec model learns the relationship between the user and the item and maps them to the same latent space; Step S35: embedding representation, extracting the embedding representation of the user and the item from the UI2vec model using the user ID and the item ID.
3. The intelligent user recommendation method based on user preferences and personalized features according to claim 2, characterized in that: Step S5 specifically includes the following steps: Step S51: data preparation, receiving user feature vectors and item feature vectors; Step S52: construct a model and design a collaborative filtering model based on self-attention mechanism and feature fusion, including an input layer, a feature embedding layer, a self-attention layer, a feature fusion layer and an output layer; Step S53: self-attention mechanism calculation, dynamically calculating the interaction weight between the user and the candidate item; Step S54: feature fusion, fusing the user feature vector, the feature vector of the candidate item, and the interaction weight calculated by the self-attention mechanism; Step S55: model training, training the collaborative filtering model based on the self-attention mechanism and feature fusion, and optimizing the parameters thereof to obtain a trained collaborative filtering model based on the self-attention mechanism and feature fusion; Step S56: Recommendation generation: According to the similarity scores of the candidate recommendation items, a recommendation list is generated using a trained collaborative filtering model based on self-attention mechanism and feature fusion.
Citation Information
Patent Citations
Sequence recommendation method and computer readable storage medium
CN112256971A
Multi-relation collaborative filtering recommendation based on dynamic graph attention network
CN112256980A
