Personalized recommendation method based on dynamic user portrait
Through the dynamic user portrait method, the multi-head attention mechanism and the graph convolution network are used to construct explicit and implicit relationship graphs, predict user interests and deterministic feedback probability, and solve the decrease in recommendation accuracy caused by the static nature of user portraits in the existing technology. problem, achieving more efficient personalized recommendations.
Patent Information
- Application Number
- CN202410994668.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing recommendation systems have deficiencies in the static nature of user profiles and potential preference mining, resulting in reduced recommendation accuracy, failure to update user interest tag weights in a timely manner, and ignoring changes in user interests.
A personalized recommendation method based on dynamic user portraits is used to obtain user interaction information, extract content feature vectors and latent factor feature vectors, generate multi-source feature representations, and use the multi-head attention mechanism to learn explicit and implicit correlation relationships to construct explicit Formula and implicit relationship diagrams are used to predict user interests and deterministic feedback probability, dynamically update user portraits, and finally recommend items through multi-layer perceptrons.
It improves the accuracy and performance of recommendations, can dynamically consider changes in user interests, and improves the accuracy of personalized recommendations.
Smart Images

Figure CN118626727A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of personalized recommendation technology, and more specifically, to a personalized recommendation method based on dynamic user portraits. Background Art
[0002] In the traditional project marketing process, the platform will use methods such as brand broadcasting and personal registration information analysis to locate the crowd and push information. Under the wave of big data, traditional methods have been greatly challenged. High-throughput and diverse data have greatly expanded the imagination of user analysis. User portrait is the mainstream method of characterizing users based on data. User portrait refers to a user model based on a series of real data. Through user surveys to understand users, according to their value dimensions, life trajectory dimensions, emotional interests dimensions, users are divided into different types, thus forming a model prototype. Then, according to the user's social attributes, living habits and consumption behavior information, "label" the user, and a labeled user model can be abstracted. Using user portraits, the platform analyzes potential users of the product and pushes it efficiently and accurately for specific groups using specific methods.
[0003] In the recommendation system, accurate acquisition of user preferences is the key to personalized recommendation and determines the quality of recommendation. However, most of the current mining of user preferences is based on user-item ratings, which ignores the user's potential preferences to a certain extent. In addition, most recommendation systems only study the user's static preferences, ignoring the changes in user interests and failing to update the weights of user interest tags in a timely manner, resulting in a decrease in recommendation accuracy. Therefore, how to mine the user's attention to the various attribute features of different items based on user portrait theory, predict the user's interests and change trends, and improve the accuracy of personalized recommendations is an urgent problem to be solved. Summary of the invention
[0004] In order to solve the above technical problems, the present invention proposes a personalized recommendation method based on dynamic user portraits to solve the problem that the prior art fails to take into account the dynamic changes of user portraits, and the constructed user portraits may deviate from the user's real portraits, resulting in a decrease in recommendation accuracy.
[0005] The present invention provides a personalized recommendation method based on dynamic user portraits, comprising: Acquire user interaction information, preprocess the interaction information, extract content feature vectors and latent factor feature vectors, and generate multi-source feature representations of users and items based on the content feature vectors and latent factor feature vectors; The explicit correlation between the user multi-source feature representation and the project multi-source feature representation is obtained by using the interaction information, the implicit correlation between the user multi-source feature representation and the project multi-source feature representation is learned based on the multi-head attention mechanism, and the explicit correlation and the implicit correlation are represented by a graph; Learning user preference representation based on explicit relationship graph, generating and outputting initial user portrait using user interest representation and user multi-source feature representation, learning and predicting the probability value of user's deterministic feedback based on implicit relationship graph, weighting the initial user portrait using the probability value, and generating dynamic user portrait; The dynamic user portrait and the multi-source feature representation of the project to be predicted are concatenated to obtain a unified numerical vector, a matching score between the dynamic user portrait and the project to be predicted is obtained through a multi-layer perceptron, and project recommendations are made based on the matching score.
[0006] In this solution, the user's interactive information is obtained, the interactive information is preprocessed, and the content feature vector and the latent factor feature vector are extracted, specifically: Obtain multi-source interactive information of users on the project, clean the interactive information of multiple data sources, and use data integration and transformation to aggregate the data of multiple data sources into the same database, and perform data reduction in the database; Using big data methods to obtain project recommendation examples, standardizing the project recommendation examples, extracting feature vectors used for recommendation, screening the feature vectors according to their usage frequency, and fixing the content feature matrix using the screened feature vector components; The RNN network is used to extract latent factor representations in multi-source interactive information, and a trainable latent factor feature matrix is generated. The content feature vector and the latent factor feature vector are respectively queried and extracted in the database through the fixed content feature matrix and the latent factor feature matrix, and the multi-source feature representations of users and projects are spliced and generated.
[0007] In this scheme, the interactive information is used to obtain the explicit association between the multi-source feature representation of the user and the multi-source feature representation of the item, specifically: The historical interactions between users and items within a preset time are extracted based on the preprocessed interaction information. The association between users and items is determined by judging whether there is interaction. The associated items are marked, and a sliding window is constructed using the marked items. For the multidimensional data sequences corresponding to other items in the sliding window, the relevance between the window marked item and the sequences corresponding to other items is calculated using a distance metric, and a weight matrix of the explicit association relationship of other items is obtained according to the relevance; A weight threshold is preset, and data in the weight matrix that is less than the preset weight threshold is reset to zero, so that other items corresponding to the updated weight matrix and the marked items are generated as nodes, and the relationship between users and items is an edge structure. An explicit relationship graph is constructed, and the weights corresponding to the edge structure in the explicit relationship graph are marked.
[0008] In this solution, the implicit association between the multi-source feature representation of users and the multi-source feature representation of items is learned based on the multi-head attention mechanism, specifically: Obtain multi-source feature representations of users and projects, obtain node feature embeddings of multi-source feature representations of users and projects through a linear layer with an activation function, and use a multi-head attention mechanism for feature processing; The number of self-attention branches is set according to the items that the user interacts with within a preset time, and the feature embedding fragments of each attention branch are obtained by dividing the time dimension by the number of self-attention branches; Using a linear layer to process the feature embedding fragments in parallel to obtain a query vector and a key vector, and calculating an implicit association weight matrix between the user and the item under single-head attention according to the query vector and the key vector; A plurality of implicit association weight matrices are concatenated to obtain an implicit association weight matrix set, and a one-dimensional convolutional neural network is used to perform learnable feature fusion on the implicit association weight matrix set to generate a weight matrix of the fused implicit association relationship; Taking users and projects as nodes and the implicit association relationship between users and projects as the edge structure, an implicit relationship graph is constructed, and the weight of the edge structure is set by the corresponding elements in the weight matrix of the implicit association relationship.
[0009] In this scheme, the user preference representation is learned based on the explicit relationship graph, and the user interest representation and the user multi-source feature representation are used to generate the output initial user profile, specifically: Constructing a deep graph convolutional network to learn the explicit relationship graph, obtaining the scores between the user and the project through inner product calculation, and obtaining the user's interest in all project nodes in the explicit relationship graph according to the scores; Aggregating the scores in combination with edge weights in the explicit relationship graph to generate a single-layer neighborhood representation, aggregating the single-layer neighborhood representation with the user node representation to obtain a first-layer user node representation, and importing the first-layer user node representation as a residual block into a subsequent graph convolution layer; A multi-layer aggregate representation of user nodes is obtained as the user preference representation, and the user preference representation and the user multi-source feature representation are weighted through the attention mechanism to obtain the initial user portrait.
[0010] In this solution, the probability value of the user's deterministic feedback is predicted based on implicit relationship graph learning, and the initial user profile is weighted using the probability value to generate a dynamic user profile, specifically: In the implicit relationship graph, nodes are clustered using deterministic feedback and non-deterministic feedback to construct deterministic feedback subgraphs and non-deterministic feedback subgraphs. Local user node representations are obtained based on edge weight aggregation using graph convolutional networks in the deterministic feedback subgraphs and non-deterministic feedback subgraphs respectively. The two user node representations are concatenated to obtain the global user node representation. The multi-source feature representation of the item to be predicted is used to locate the item in the deterministic feedback subgraph and the non-deterministic feedback subgraph. The neighbor nodes are selected and aggregated and updated, and then concatenated to obtain the global item node representation. Use the CTR prediction model to build a predictive feedback model, sample training samples in the clustering results, perform user interest training, and predict the objective function of the feedback model. for: ; in, Represents sampled data Positive and negative samples, represents the deterministic feedback probability, represents a positive sample, represents negative samples, Represents a set of model parameters; The probability value of the user's deterministic feedback on the predicted item is obtained, and the initial user profile is weighted using the probability value to generate a dynamic user profile of the user for the predicted item.
[0011] In this scheme, deterministic feedback and non-deterministic feedback are used to cluster nodes in the implicit relationship graph, dynamic negative sampling is introduced, a negative sample pool is constructed for the nodes corresponding to non-deterministic feedback, and nodes are randomly selected from the negative sample pool as negative samples based on a preset ratio; In addition, the interaction frequency within the preset time is used as an indicator to increase the interaction frequency of negative samples to generate pseudo negative samples, and to reduce the interaction frequency of positive samples to generate pseudo positive samples, so as to perform sampling data enhancement.
[0012] In this solution, a multi-layer perceptron is trained to learn dynamic user portraits for project scoring. The matching scores of dynamic user portraits and the items to be predicted are obtained through the multi-layer perceptron, and the items to be predicted are sorted to generate personalized recommendation results for users. The user's selection feedback on the recommended items is obtained, and a corresponding real-value reward is generated. The multi-source interaction information is updated through the real-value reward, and the multi-source feature representation of the user is adjusted.
[0013] The present invention discloses a personalized recommendation method based on dynamic user portraits, including obtaining user interaction information, extracting content feature vectors and latent factor feature vectors to generate multi-source feature representations of users and projects; obtaining explicit associations and implicit associations between user multi-source feature representations and project multi-source feature representations for graph representation; learning user preference representations according to explicit relationship graphs, generating and outputting initial user portraits using user interest representations and user multi-source feature representations, weighting initial user portraits according to the probability value of predicting the existence of deterministic feedback of users according to implicit relationship graphs, and generating dynamic user portraits; splicing dynamic user portraits and projects to be predicted, and obtaining matching scores through multi-layer perceptrons for project recommendation. The present invention improves recommendation accuracy and performance by predicting and quantifying implicit feedback of users and dynamically generating user portraits to take into account interest changes. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments or exemplary embodiments of the present invention, the drawings required for use in the embodiments or exemplary descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained according to the drawings without paying creative work.
[0015] Figure 1 A flowchart of a personalized recommendation method based on dynamic user portraits of the present invention is shown; Figure 2 A flow chart showing the generation and output of an initial user portrait in the present invention is shown; Figure 3 A flow chart of generating a dynamic user portrait according to the present invention is shown; Figure 4 A block diagram of a personalized recommendation system based on dynamic user portraits of the present invention is shown.
[0016] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0017] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0018] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0019] Figure 1 A flowchart of a personalized recommendation method based on dynamic user portraits of the present invention is shown; like Figure 1 As shown, the first aspect of the present invention provides a personalized recommendation method based on dynamic user portraits, comprising: S102, obtaining user interaction information, preprocessing the interaction information, extracting content feature vectors and latent factor feature vectors, and generating multi-source feature representations of users and items according to the content feature vectors and latent factor feature vectors; S104, using the interaction information to obtain the explicit correlation relationship between the user multi-source feature representation and the project multi-source feature representation, learning the implicit correlation relationship between the user multi-source feature representation and the project multi-source feature representation based on the multi-head attention mechanism, and representing the explicit correlation relationship and the implicit correlation relationship in a graph; S106, learning the user preference representation according to the explicit relationship graph, generating and outputting the initial user portrait using the user interest representation and the user multi-source feature representation, learning and predicting the probability value of the user's deterministic feedback according to the implicit relationship graph, and using the probability value to weight the initial user portrait to generate a dynamic user portrait; S108, concatenating the dynamic user portrait and the multi-source feature representation of the project to be predicted to obtain a unified numerical vector, obtaining a matching score between the dynamic user portrait and the project to be predicted through a multi-layer perceptron, and performing project recommendations based on the matching score.
[0020] It should be noted that the multi-source interactive information of users on the project is obtained, the interactive information of multiple data sources is cleaned, and the data of multiple data sources are aggregated into the same database by using data integration and transformation, and data reduction is performed in the database; the project recommendation instance is obtained by using big data methods, the project recommendation instance is standardized, the feature vector used for recommendation is extracted, and the feature vector is screened according to the frequency of use, and the screened feature vector components are used to fix the content feature matrix, such as the user's gender, age, occupation, and the year, category, text description, etc. of the product; the RNN network is used to model the user's short-term and long-term interests, and the projects involved in the long-term and short-term interests are embedded and represented, and the latent factor representation in the multi-source interactive information is extracted to generate a trainable latent factor feature matrix, such as user viewing, clicking, sharing, collection, commenting, etc., and the content feature vector and the latent factor feature vector are respectively queried and extracted in the database through the fixed content feature matrix and the latent factor feature matrix, and the multi-source feature representation of users and projects is generated by splicing.
[0021] It should be noted that the historical interaction between the user and the project within the preset time is extracted based on the pre-processed interaction information, and the association between the user and the project is determined by judging whether there is interaction, and the associated projects are marked, and the sliding window is constructed using the marked projects; for the multidimensional data sequence corresponding to other projects in the sliding window, the distance metric is used to calculate the association between the window marked project and the corresponding sequence of other projects, that is, the greater the distance between the two projects, the smaller the association between the two; conversely, the smaller the distance, the greater the association. The weight matrix of the explicit association relationship of other projects is obtained based on the said association , Represents the multidimensional data sequence corresponding to the items in the sliding window, Represents the length of the sliding window. The weight matrix of the explicit association relationship is normalized, and the elements of the weight matrix are scaled to the range of [0,1] based on the normalization principle to generate a normalized explicit association relationship representation. A weight threshold is preset, and data less than the preset weight threshold is set to zero in the weight matrix. Other items corresponding to the updated weight matrix and the marked items are generated as nodes, and the association between users and items is an edge structure. An explicit relationship graph is constructed, and the weights corresponding to the edge structures in the explicit relationship graph are marked.
[0022] It should be noted that the user multi-source feature representation and the project multi-source feature representation are obtained, and the node feature embedding layer is obtained through a linear layer with an activation function to obtain the node feature embedding of the user and project multi-source feature representation, so that it meets the data form requirements of the multi-head attention for the input data, and the multi-head attention mechanism is used for feature processing; the number of self-attention branches is set according to the projects that interact with the user within a preset time, and the self-attention branches are divided in the time dimension to obtain the feature embedding fragments of each attention branch; the linear layer is used to parallel process the feature embedding fragments to obtain the query vector and key vector , according to the query vector and key vector Calculate the implicit association weight matrix between users and items under single-head attention is the scaling factor, Represents normalization processing. Multiple implicit association weight matrices are concatenated to obtain an implicit association weight matrix set, and a convolutional neural network with one-dimensional convolution is used to perform learnable feature fusion and dimensionality reduction on the implicit association weight matrix set to generate a weight matrix of the fused implicit association relationship, and its diagonal elements are filled with zeros to shield meaningless sequence autocorrelation relationships; users and projects are taken as nodes, and the implicit association relationship between users and projects is taken as an edge structure to construct an implicit relationship graph, and the weight of the edge structure is set by the corresponding elements in the weight matrix of the implicit association relationship.
[0023] Figure 2A flow chart of generating and outputting an initial user portrait according to the present invention is shown.
[0024] According to an embodiment of the present invention, the user preference representation is learned based on the explicit relationship graph, and the user interest representation and the user multi-source feature representation are used to generate and output the initial user portrait, specifically: S202, constructing a deep graph convolutional network to learn the explicit relationship graph, obtaining scores between users and items through inner product calculation, and obtaining the user's interest in all item nodes in the explicit relationship graph according to the scores; S204, performing aggregation according to the scores combined with the edge weights in the explicit relationship graph to generate a single-layer neighborhood representation, and then aggregating the single-layer neighborhood representation with the user node representation to obtain a first-layer user node representation, and importing the first-layer user node representation as a residual block into a subsequent graph convolution layer; S206, obtaining a multi-layer aggregation representation of the user node as the user preference representation, and weighting the user preference representation and the user multi-source feature representation through an attention mechanism to obtain an initial user portrait.
[0025] It should be noted that the score between the user and the project is calculated by the inner product, which indicates the user's interest in a certain project. For example, if the user is interested in daily necessities, the node representation of the path will be strengthened during aggregation. The scores of all neighbor nodes are calculated and normalized, and the normalized scores are combined with the weights to obtain the user's interest in all relationships of the current node. After obtaining the first-layer aggregation information, the neighbors of the first layer are used as new nodes to expand outward, and then convolution is performed to obtain the second-layer information of the user node. This is repeated to obtain a multi-layer aggregation representation of the user node. Introducing residual blocks in multi-layer aggregation avoids the occurrence of smoothing.
[0026] Figure 3 A flow chart of generating a dynamic user portrait according to the present invention is shown.
[0027] According to an embodiment of the present invention, the probability value of the existence of deterministic feedback of the user is predicted based on implicit relationship graph learning, and the initial user portrait is weighted using the probability value to generate a dynamic user portrait, specifically: S302, clustering nodes in the implicit relationship graph using deterministic feedback and non-deterministic feedback, constructing a deterministic feedback subgraph and a non-deterministic feedback subgraph, and obtaining local user node representations based on edge weight aggregation using a graph convolutional network in the deterministic feedback subgraph and the non-deterministic feedback subgraph respectively; S304, concatenating two user node representations to obtain a global user node representation, locating the item to be predicted in the deterministic feedback subgraph and the non-deterministic feedback subgraph according to the multi-source feature representation of the item to be predicted, selecting neighbor nodes for aggregation and updating, and concatenating them to obtain a global item node representation; S306, using the CTR estimation model to build a prediction feedback model, sampling training samples in the clustering results, and performing user interest training; Objective function of the predictive feedback model for: ; in, Represents sampled data Positive and negative samples, represents the deterministic feedback probability, represents the approximate probability, represents the global user node representation, Represents the global project node representation, represents a positive sample, represents negative samples, Represents a set of model parameters; S308, obtaining a probability value of the user's deterministic feedback on the predicted item, using the probability value to weight the initial user portrait, and generating a dynamic user portrait of the user for the predicted item.
[0028] It should be noted that there are multiple interactive behaviors in the interaction between users and projects. The purchase behavior is regarded as deterministic feedback, and the behaviors such as clicking, browsing, collecting, adding to purchase, and deleting purchases are regarded as non-deterministic feedback. By aggregating the feedback, we can better understand the interaction between users and projects and predict the probability of users generating deterministic feedback on a certain project. The graph convolutional network is used to represent the deterministic feedback subgraph and the non-deterministic feedback subgraph. The popular penalty coefficient is introduced during aggregation. The popularity of projects of different categories is obtained based on big data analysis. If the user has deterministic feedback or non-deterministic feedback with a certain project and reaches the preset frequency threshold, the similarity between the project and the user's initial user portrait is judged. When the similarity is less than the preset threshold, the popular penalty coefficient is introduced to adaptively reduce the corresponding edge weight, and the updated edge weight is used for aggregation to obtain the local user node representation. By constructing a predictive feedback model, different user behaviors are quantified on a unified scale to characterize user preferences. The user preferences are used to predict the probability value of the user purchasing the project to be predicted as the dynamic change weight of the user portrait.
[0029] In the implicit relationship graph, nodes are clustered using deterministic feedback and non-deterministic feedback, and positive samples are sampled from the set of deterministic feedback. In addition, for items that users browse and interact with multiple times, a portion of such item samples are defined as positive samples as indicators of user interest tendency. Dynamic negative sampling is introduced to construct a negative sample pool for nodes corresponding to non-deterministic feedback, and nodes are randomly selected from the negative sample pool as negative samples based on a preset ratio; in addition, the interaction frequency within a preset time is used as an indicator, the interaction frequency of negative samples is increased to generate pseudo-negative samples, and the interaction frequency of positive samples is decreased to generate pseudo-positive samples, so as to enhance the sampling data.
[0030] The multi-layer perceptron is trained to learn dynamic user portraits for project scoring. Multiple fully connected layers are used, and each fully connected layer performs feature transformation through linear transformation and nonlinear activation function. The matching score between the dynamic user portrait and the project to be predicted is obtained through the multi-layer perceptron, and the projects to be predicted are sorted to generate personalized recommendation results for users; the user's selection feedback on the recommended project is obtained, and the corresponding real-value reward is generated. The multi-source interaction information is updated through the real-value reward, and the multi-source feature representation of the user is adjusted.
[0031] Figure 4 A block diagram of a personalized recommendation system based on dynamic user portraits of the present invention is shown.
[0032] The second aspect of the present invention further provides a personalized recommendation system 4 based on dynamic user portraits, the system comprising: a memory 41, a processor 42, the memory comprising a personalized recommendation method program based on dynamic user portraits, the personalized recommendation method program based on dynamic user portraits when executed by the processor implements the following steps: Acquire user interaction information, preprocess the interaction information, extract content feature vectors and latent factor feature vectors, and generate multi-source feature representations of users and items based on the content feature vectors and latent factor feature vectors; The explicit correlation between the user multi-source feature representation and the project multi-source feature representation is obtained by using the interaction information, the implicit correlation between the user multi-source feature representation and the project multi-source feature representation is learned based on the multi-head attention mechanism, and the explicit correlation and the implicit correlation are represented by a graph; Learning user preference representation based on explicit relationship graph, generating and outputting initial user portrait using user interest representation and user multi-source feature representation, learning and predicting the probability value of user's deterministic feedback based on implicit relationship graph, weighting the initial user portrait using the probability value, and generating dynamic user portrait; The dynamic user portrait and the multi-source feature representation of the project to be predicted are concatenated to obtain a unified numerical vector, a matching score between the dynamic user portrait and the project to be predicted is obtained through a multi-layer perceptron, and project recommendations are made based on the matching score.
[0033] The third aspect of the present invention also provides a computer-readable storage medium, which includes a personalized recommendation method program based on dynamic user portraits. When the personalized recommendation method program based on dynamic user portraits is executed by a processor, the steps of the personalized recommendation method based on dynamic user portraits as described in any one of the above items are implemented.
[0034] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0035] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0036] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0037] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0038] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A personalized recommendation method based on dynamic user portrait, characterized in that: The following steps are involved: Acquire user interaction information, preprocess the interaction information, extract content feature vectors and latent factor feature vectors, and generate multi-source feature representations of users and items based on the content feature vectors and latent factor feature vectors; The explicit correlation between the user multi-source feature representation and the project multi-source feature representation is obtained by using the interaction information, the implicit correlation between the user multi-source feature representation and the project multi-source feature representation is learned based on the multi-head attention mechanism, and the explicit correlation and the implicit correlation are represented by a graph; Learning user preference representation based on explicit relationship graph, generating and outputting initial user portrait using user interest representation and user multi-source feature representation, learning and predicting the probability value of user's deterministic feedback based on implicit relationship graph, weighting the initial user portrait using the probability value, and generating dynamic user portrait; The dynamic user portrait and the multi-source feature representation of the project to be predicted are concatenated to obtain a unified numerical vector, a matching score between the dynamic user portrait and the project to be predicted is obtained through a multi-layer perceptron, and project recommendations are made based on the matching score.
2. A personalized recommendation method based on dynamic user portrait according to claim 1, characterized in that: Obtain user interaction information, pre-process the interaction information, and extract content feature vectors and latent factor feature vectors, specifically: Obtain multi-source interactive information of users on the project, clean the interactive information of multiple data sources, and use data integration and transformation to aggregate the data of multiple data sources into the same database, and perform data reduction in the database; Using big data methods to obtain project recommendation examples, standardizing the project recommendation examples, extracting feature vectors used for recommendation, screening the feature vectors according to their usage frequency, and fixing the content feature matrix using the screened feature vector components; The RNN network is used to extract latent factor representations in multi-source interactive information, and a trainable latent factor feature matrix is generated. The content feature vector and the latent factor feature vector are respectively queried and extracted in the database through the fixed content feature matrix and the latent factor feature matrix, and the multi-source feature representations of users and projects are spliced and generated.
3. The personalized recommendation method based on dynamic user portrait according to claim 1, characterized in that: The explicit association between the multi-source feature representation of the user and the multi-source feature representation of the item is obtained by using the interaction information, specifically: The historical interactions between users and items within a preset time are extracted based on the preprocessed interaction information. The association between users and items is determined by judging whether there is interaction. The associated items are marked, and a sliding window is constructed using the marked items. For the multidimensional data sequences corresponding to other items in the sliding window, the relevance between the window marked item and the sequences corresponding to other items is calculated using a distance metric, and a weight matrix of the explicit association relationship of other items is obtained according to the relevance; A weight threshold is preset, and data in the weight matrix that is less than the preset weight threshold is reset to zero, so that other items corresponding to the updated weight matrix and the marked items are generated as nodes, and the relationship between users and items is an edge structure. An explicit relationship graph is constructed, and the weights corresponding to the edge structure in the explicit relationship graph are marked.
4. The personalized recommendation method based on dynamic user portrait according to claim 1, characterized in that: Based on the multi-head attention mechanism, the implicit correlation between the multi-source feature representation of users and the multi-source feature representation of items is learned, specifically: Obtain user multi-source feature representation and project multi-source feature representation, obtain node feature embedding of user and project multi-source feature representation through linear layer with activation function, and use multi-head attention mechanism for feature processing; The number of self-attention branches is set according to the items that the user interacts with within a preset time, and the feature embedding fragments of each attention branch are obtained by dividing the time dimension by the number of self-attention branches; Using a linear layer to process the feature embedding fragments in parallel to obtain a query vector and a key vector, and calculating an implicit association weight matrix between the user and the item under single-head attention according to the query vector and the key vector; A plurality of implicit association weight matrices are concatenated to obtain an implicit association weight matrix set, and a one-dimensional convolutional neural network is used to perform learnable feature fusion on the implicit association weight matrix set to generate a weight matrix of the fused implicit association relationship; Taking users and projects as nodes and the implicit association relationship between users and projects as the edge structure, an implicit relationship graph is constructed, and the weight of the edge structure is set by the corresponding elements in the weight matrix of the implicit association relationship.
5. The personalized recommendation method based on dynamic user portrait according to claim 1, characterized in that: The user preference representation is learned based on the explicit relationship graph, and the user interest representation and the user multi-source feature representation are used to generate and output the initial user portrait, specifically: Constructing a deep graph convolutional network to learn the explicit relationship graph, obtaining the scores between the user and the project through inner product calculation, and obtaining the user's interest in all project nodes in the explicit relationship graph according to the scores; Aggregating the scores in combination with edge weights in the explicit relationship graph to generate a single-layer neighborhood representation, aggregating the single-layer neighborhood representation with the user node representation to obtain a first-layer user node representation, and importing the first-layer user node representation as a residual block into a subsequent graph convolution layer; A multi-layer aggregate representation of user nodes is obtained as the user preference representation, and the user preference representation and the user multi-source feature representation are weighted through the attention mechanism to obtain the initial user portrait.
6. The personalized recommendation method based on dynamic user portrait according to claim 1, characterized in that: The probability value of the user's deterministic feedback is predicted based on the implicit relationship graph learning, and the initial user profile is weighted using the probability value to generate a dynamic user profile, specifically: In the implicit relationship graph, nodes are clustered using deterministic feedback and non-deterministic feedback to construct deterministic feedback subgraphs and non-deterministic feedback subgraphs. Local user node representations are obtained based on edge weight aggregation using graph convolutional networks in the deterministic feedback subgraphs and non-deterministic feedback subgraphs respectively. The two user node representations are concatenated to obtain the global user node representation. The predicted item is located in the deterministic feedback subgraph and the non-deterministic feedback subgraph according to the multi-source feature representation. The neighbor nodes are selected, aggregated and updated, and then concatenated to obtain the global item node representation. Use the CTR prediction model to build a predictive feedback model, sample training samples in the clustering results, perform user interest training, and predict the objective function of the feedback model. for: ; in, Represents sampled data Positive and negative samples, represents the deterministic feedback probability, represents a positive sample, represents negative samples, Represents a set of model parameters; The probability value of the user's deterministic feedback on the predicted item is obtained, and the initial user profile is weighted using the probability value to generate a dynamic user profile of the user for the predicted item.
7. The personalized recommendation method based on dynamic user portrait according to claim 6, characterized in that: In the implicit relationship graph, nodes are clustered using deterministic feedback and non-deterministic feedback, dynamic negative sampling is introduced, a negative sample pool is constructed for nodes corresponding to non-deterministic feedback, and nodes are randomly selected from the negative sample pool as negative samples based on a preset ratio; In addition, the interaction frequency within the preset time is used as an indicator to increase the interaction frequency of negative samples to generate pseudo negative samples, and to reduce the interaction frequency of positive samples to generate pseudo positive samples, so as to perform sampling data enhancement.
8. The personalized recommendation method based on dynamic user portrait according to claim 1, characterized in that: Train the multi-layer perceptron to learn dynamic user portraits to score items. The multi-layer perceptron obtains the matching scores between the dynamic user portraits and the items to be predicted, sorts the items to be predicted, and generates personalized recommendation results for users. The user's selection feedback on the recommended items is obtained, and a corresponding real-value reward is generated. The multi-source interaction information is updated through the real-value reward, and the multi-source feature representation of the user is adjusted.
Citation Information
Cited By
Data model training method and system based on display scheme
CN119226816A
A training method and system based on a display scheme data model
CN119226816B
Product recommendation method and device, computer equipment and storage medium
CN119539902A
Activity matching method and system based on user behaviors
CN120146959A
