A social recommendation method and system based on a graph neural network
By using a graph neural network-based social recommendation method, which utilizes high-order social network structures and graph structure information to calculate the latent factors of users and items, the problem of low recommendation efficiency in existing technologies is solved, and more efficient recommendation results are achieved.
Patent Information
- Application Number
- CN202311754335.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-19
AI Technical Summary
Existing social recommendation systems fail to effectively utilize high-order social network structures and graph structure information, resulting in low recommendation efficiency.
A graph neural network-based approach is used to calculate user latent factors and project latent factors by obtaining initial interest embedding vectors, social influence strength, social network embedding vectors, interaction embedding vectors, and attention mechanisms, and finally obtain the interaction probability.
It improves the accuracy and generalization ability of social recommendations, and enhances recommendation efficiency.
Smart Images

Figure CN117909595B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a social recommendation method and system based on graph neural networks. Background Technology
[0002] In recent years, the utilization of social relationships in recommender systems has attracted increasing attention. These social recommender systems are developed based on the phenomenon that users typically obtain and spread information through people around them (such as classmates, friends, or colleagues), meaning that users' potential social relationships can play an important role in helping them filter information. Therefore, social relationships have been shown to help improve recommender performance.
[0003] Users play a central role on social platforms. The key to social recommendation lies in learning user embeddings that reflect both their social behavior and their interest in specific items. Most social-based recommendation systems enhance the learning of each user's embeddings with their social neighbors by utilizing user-user matrices, or by normalizing the user embedding learning process through social neighbors to advance matrix factorization models. These models leverage first-order social neighbors for recommendations and partially alleviate the data sparsity problem in matrix factorization, but they still have several issues. Most social recommendation systems only consider the influence of a user's first-order social neighbors. However, in reality, users are influenced not only by first-order neighbors but also by higher-order social network structures that are often egocentric. Furthermore, previous recommendation models did not consider the impact of graph structure information, or the source and importance of users' potential preferences; these problems all contribute to inefficient recommendations.
[0004] Therefore, providing a social recommendation method and system based on graph neural networks that can improve recommendation efficiency is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this invention is to provide a social recommendation method and system based on graph neural networks, which can effectively enhance the accuracy and generalization ability of social recommendations, thereby improving the efficiency of social recommendations.
[0006] The first objective of this invention is to provide a social recommendation method based on graph neural networks;
[0007] The technical solution provided by this invention is as follows:
[0008] A social recommendation method based on graph neural networks includes the following steps:
[0009] Obtain the initial interest embedding vector;
[0010] The intensity of social influence is obtained based on the initial interest embedding vector and the multilayer perceptron.
[0011] The user's social network embedding vector is obtained based on the intensity of social influence.
[0012] Obtain the user's interaction embedding vector for the project;
[0013] By aggregating the social network embedding vector and the interaction embedding vector, user latent factors are obtained;
[0014] Potential factors of a project can be obtained through project information residual connections and attention mechanisms.
[0015] The interaction probability is obtained based on the user latent factors and the project latent factors.
[0016] Preferably, obtaining the initial interest embedding vector specifically includes:
[0017] Through the potential embedding of free users M a and eigenvector n a The initial interest embedding vector is calculated and obtained. The specific calculation formula is as follows:
[0018]
[0019] Where W1 is the transformation matrix and g(x) is the transformation function.
[0020] Preferably, the step of obtaining the social influence intensity based on the initial interest embedding vector and the multilayer perceptron specifically includes the following steps:
[0021] The initial interest embedding vector of each user is input into the neural influence layer of the multilayer perceptron;
[0022] The neural influence layer models the propagation of each user's latent preferences in graph G using layer-by-layer convolutional recursion, and calculates the social influence strength for users in the (k+1)th layer of the social network; the specific formula for calculating the social influence strength is as follows:
[0023]
[0024] in, Indicated as the intensity of social impact; This is represented as the initial interest embedding vector for user a; Let g be the initial interest embedding vector of user b; v This is represented as a multilayer perceptron.
[0025] Preferably, the method of obtaining the social influence intensity from the user's social network embedding vector specifically includes the following steps:
[0026] The intensity of social influence is calculated using a formula to obtain the user's social network embedding vector. The specific calculation formula is as follows:
[0027]
[0028] Preferably, obtaining the user's interaction embedding vector for the project specifically includes the following steps:
[0029] Achieve rating-aware interaction through project embedding and rating embedding;
[0030] By aggregating the rating-aware interactions using a mean function, the user's interaction embedding vector for the project can be obtained.
[0031] Preferably, the step of obtaining user latent factors by aggregating the social network embedding vector and the embedding vector specifically includes:
[0032] The social network embedding vector and the embedding vector are concatenated to obtain the latent factors;
[0033] The latent factors are combined into the final user latent factors through the multilayer perceptron.
[0034] Preferably, the step of obtaining project latent factors through project information residual connections and attention mechanisms specifically includes the following steps:
[0035] Acquire rating-aware interactive users;
[0036] Obtain the attention score and normalize the attention score;
[0037] The processed attention score and the rating-aware interactive user are used to obtain the project's latent factors through a mean aggregation function.
[0038] Preferably, obtaining the interaction probability based on the user latent factors and the project latent factors specifically includes the following steps:
[0039] The user latent factor z i and the project's latent factor z j The probability of a recommendation interaction is calculated using the inner product formula; the specific formula is as follows:
[0040]
[0041] Where T represents the transpose, i.e., z i Transpose; z i Represented as user latent factors; z j Represented as potential factors of the project; This represents the probability of a recommendation interaction.
[0042] Preferably, after obtaining the interaction probability based on the user latent factors and the project latent factors, the method further includes the step of:
[0043] The recommended interaction probability is optimized by calculating the user-item interaction graph loss.
[0044] The second objective of this invention is to provide a social recommendation system based on graph neural networks;
[0045] The technical solution provided by this invention is as follows:
[0046] A social recommendation system based on graph neural networks includes: an initial vector acquisition module, an intensity acquisition module, a social vector acquisition module, an embedding vector acquisition module, an aggregation module, a first acquisition module, and a second acquisition module;
[0047] The initial vector acquisition module is used to acquire the initial interest embedding vector;
[0048] The intensity acquisition module is used to acquire the social influence intensity based on the initial interest embedding vector and the multilayer perceptron.
[0049] The social vector acquisition module is used to acquire the user's social network embedding vector based on the social influence intensity.
[0050] The embedding vector acquisition module is used to acquire the embedding vectors of multiple users for a project;
[0051] The aggregation module is used to obtain user latent factors by aggregating the social network embedding vector and the embedding vector;
[0052] The first acquisition module is used to acquire potential project factors through project information residual connections and attention mechanisms;
[0053] The second acquisition module is used to acquire the interaction probability based on the user potential factors and the project potential factors.
[0054] This invention provides a social recommendation method based on graph neural networks, comprising: obtaining an initial interest embedding vector; obtaining social influence strength based on the initial interest embedding vector and a multilayer perceptron; obtaining a user's social network embedding vector based on the social influence strength; obtaining a user's interaction embedding vector with an item; obtaining a user latent factor by aggregating the social network embedding vector and the interaction embedding vector; obtaining an item latent factor through item information residual connections and an attention mechanism; and obtaining an interaction probability based on the user latent factor and the item latent factor. This method effectively enhances the accuracy and generalization ability of social recommendations by obtaining relevant user and item free embeddings, and then using a multilayer perceptron and an attention mechanism to obtain user latent factors and item latent factors, thereby improving the efficiency of social recommendations.
[0055] The present invention also provides a social recommendation system based on graph neural networks. Since this system and the social recommendation method based on graph neural networks solve the same technical problem and belong to the same technical concept, they should have the same beneficial effects, and will not be described in detail here. Attached Figure Description
[0056] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0057] Figure 1 This is a flowchart of a social recommendation method based on graph neural networks in an embodiment of the present invention;
[0058] Figure 2 This is a schematic diagram of the structure of a social recommendation system based on a graph neural network in an embodiment of the present invention. Detailed Implementation
[0059] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0060] like Figure 1 As shown, this embodiment of the invention provides a social recommendation method based on graph neural networks, including the following steps:
[0061] S1. Obtain the initial interest embedding vector;
[0062] S2. Obtain the social influence intensity based on the initial interest embedding vector and the multilayer perceptron;
[0063] S3. Obtain the user's social network embedding vector based on the social influence intensity;
[0064] S4. Obtain the user's interaction embedding vector for the project;
[0065] S5. By aggregating the social network embedding vector and the interaction embedding vector, user latent factors are obtained;
[0066] S6. Obtain potential project factors through project information residual connections and attention mechanisms;
[0067] S7. Obtain the interaction probability based on the user latent factors and the project latent factors.
[0068] In steps S1 to S3, users and items are encoded using the corresponding free vector representation to obtain the user's initial interest embedding vector for the item. Then, the social influence intensity is obtained based on the initial interest embedding vector and the multilayer perceptron. The multilayer perceptron is a feedforward artificial neural network model that maps multiple input datasets to a single output dataset. Finally, the user's social network embedding vector is calculated based on the social influence intensity.
[0069] In steps S4 to S6, the user-user social network graph is processed into an undirected graph. Then, the user-item interaction embedding vector is obtained from the user-item graph. Here, user-item includes multiple users to one item and one user to multiple items. Then, the social network embedding vector and interaction embedding vector in the above steps are aggregated and calculated to obtain the user latent factor. Finally, the project latent factor is obtained by using the item information residual connection method and combining it with the attention mechanism.
[0070] In step S7, the user's latent factors z i and project potential factor z j The interaction probability is calculated using the inner product formula; the specific formula is as follows:
[0071]
[0072] Among them, z i Let z be the latent factor of the user; T represents the transpose, i.e., z i Transpose; z j Represented as potential factors of the project; This is represented as the interaction probability. Then, the top n items with the highest interaction probability are recommended to the user, thereby effectively enhancing the accuracy and generalization ability of social recommendations and improving their efficiency.
[0073] Preferably, obtaining the initial interest embedding vector specifically includes:
[0074] Through the potential embedding of free users M a and eigenvector n a The initial interest embedding vector is calculated and obtained. The specific calculation formula is as follows:
[0075]
[0076] Where W1 is the transformation matrix and g(x) is the transformation function.
[0077] In practical applications, users and items are encoded using corresponding free vector representations, such that M∈R M×D The free latent embedding vector represents the D-dimensional user; user a is represented by a one-hot encoding, and the embedding layer performs index selection and outputs the free user latent embedding M. a That is, the a-th row of the transpose of the user-free embedding vector matrix P; for each user a, the embedding M will be... a and its associated eigenvector n a User fusion embedding, as input, and capturing the user's initial interest in different types of input data as output.
[0078] Preferably, the step of obtaining the social influence intensity based on the initial interest embedding vector and the multilayer perceptron specifically includes the following steps:
[0079] The initial interest embedding vector of each user is input into the neural influence layer of the multilayer perceptron;
[0080] The neural influence layer models the propagation of each user's potential preferences in graph G using layer-by-layer convolutional recursion and calculates the social influence strength of users in the (k+1)th layer of the social network.
[0081] In practical application, the initial interest embedding vector of each user is input into the neural influence layer of the multilayer perceptron. Then, the neural influence layer will recursively model the propagation of each user's latent preferences in graph G using layer-by-layer convolution. The purpose of this modeling is to obtain the updated embedding of the new layer, that is, at each layer K+1, by using the embedding of user a from the previous layer k. As input, the output of these recursive layers has a diffusion operation. updated embedding; then calculate the social influence strength of user b on user a in the (k+1)-th layer of the social network, and the specific calculation formula is:
[0082]
[0083] wherein, represents the social influence strength; represents the initial interest embedding vector of user a; represents the initial interest embedding vector of user b; g v represents a multi-layer perceptron; in this embodiment, the graph G is a social network graph, G=<U∪V,X,Y,R,S>. U(|U|=M) is the set of all user nodes in the social network, V(|V|=N) is the set of all item nodes, X is a user attribute matrix (X∈R d1×M , d1 represents the dimension), Y is an item attribute matrix (Y∈R d2×N , d2 represents the dimension), R is a user-item interaction matrix (R∈R M×N ), and S is a user-user social contact matrix; the purpose of setting the graph G is to predict users' unknown preferences for items.
[0084] Preferably, the obtaining the social network embedding vector of the user specifically includes steps:
[0085] the social influence strength is calculated through a formula to obtain the social network embedding vector of the user wherein, the specific calculation formula is:
[0086]
[0087] wherein, S represents a user-user social contact matrix (S∈R M×M ).
[0088] In the actual application process, in each layer k+1, by taking the embedding vector of user a as input, these layers recursively output an updated embedding with a diffusion operation; model the embedding update of interest diffusion aggregated by the (k+1)-th layer social neighbors of the user, and calculate the social network embedding vector of the user through the above formula in combination with the social influence strength, wherein the social influence strength takes the embeddings of two related users in the k-th layer as input parameters, and sends these features into a multi-layer attention network to learn complex relationships between features for social influence strength learning.
[0089] Preferably, the obtaining the interaction embedding vector of the user for the item specifically includes steps:
[0090] Achieve rating-aware interaction through project embedding and rating embedding;
[0091] By aggregating the rating-aware interactions using a mean function, the user's interaction embedding vector for the project is obtained.
[0092] In practical applications, the user-item graph not only includes user interactions with items but also user ratings of items. Therefore, embedding items into the graph is crucial. a Its rating embedded e r The concatenation of these data points serves as the input data for the multilayer perceptron, thereby obtaining the rating-perceived interaction x. ia The specific formula is as follows:
[0093]
[0094] in, This represents a concatenation operation between two embedding vectors; g v This is represented as a multilayer perceptron.
[0095] Then, using the project aggregation function... The element-wise mean of the vector is used to obtain the user's interaction embedding vector for the project. C(i) is user u i The specific aggregation formula for the project set that interacts with it is shown below:
[0096]
[0097] Where, α i Fixed as W represents the weights of the neural network, d1 represents the bias of the neural network, and σ represents the nonlinear activation function. The bias of the neural network is a set d, d∈(d1, d2, d3, d4, d5, d6, d7, d8, d9, d1). 10 d 11 .......d′ n ).
[0098] Preferably, the step of obtaining user latent factors by aggregating the social network embedding vector and the embedding vector specifically includes:
[0099] The social network embedding vector and the embedding vector are concatenated to obtain the latent factors;
[0100] The latent factors are combined into the final user latent factors through the multilayer perceptron.
[0101] In practical application, for each (v) a u i User-project pair assigns initial attention score And the initial attention score After normalization, the target attention score α is obtained. ia The specific formula is as follows:
[0102]
[0103]
[0104] Where, p i Represented as user u i Embedding vector; α ia This indicates that the user u is represented by the historical interaction record C(i). i When there is a preference, with v a Interaction with user u i The attention score contributed by the project space latent factors should be noted. It is important to note that the project space latent factors here have a different meaning from the project latent factors obtained later. The project space latent factors here refer to a user rating multiple products, while the project latent factors obtained later refer to a product being rated by multiple users, not from a single module.
[0105] Then, the embedding vector h of the user and the product is obtained by using the mean aggregation function. i The specific formula is as follows:
[0106]
[0107] Then embed the user's social network into the vector. and the embedding vector h of the user for the product i Connecting these together yields the latent factor z1, as shown in the following formula:
[0108]
[0109] Finally, the latent factors z1 are combined into the final user latent factor z using a standard multilayer perceptron. i The specific combination process is as follows:
[0110] z2=σ(W2·z1+d5)
[0111] z3=σ(W3·z2+d6)
[0112] z4=σ(W4·z3+d7)
[0113] …
[0114] z i =σ(W l ·z l-1 +d n )
[0115] Where l is the index of the hidden layer.
[0116] Preferably, the step of obtaining project latent factors through project information residual connections and attention mechanisms specifically includes the following steps:
[0117] Acquire rating-aware interactive users;
[0118] Obtain the attention score and normalize the attention score;
[0119] The processed attention score and the rating-aware interactive user are used to obtain the project's latent factors through a mean aggregation function.
[0120] In practical applications, rating-aware interactive user f is obtained through user embedding and rating embedding calculations. jt The specific calculation formula is as follows:
[0121]
[0122] Where, p t It is user-embedded, e r It is a rating embedding.
[0123] Then, by aggregating ratings from projects, we can perceive the interaction of users f. jt Obtain the project's latent factor z j The aggregation formula is as follows:
[0124]
[0125] Where B(j) represents the relationship with item v j A collection of interactive items; Aggre items This is represented as an aggregate function for the project.
[0126] However, since aggregation is a general term and there are many ways to aggregate, the latent factor z of the project can be obtained through aggregation. j The specific process and formula are as follows:
[0127] First, attention scores are obtained by interacting with users through rating. And attention scores Normalization yields the processed attention score The specific formula is shown below:
[0128]
[0129]
[0130] Where, q j Indicates item v j Embedded.
[0131] Then, the attention score and rating-aware interactive user data are used to obtain the project latent factor z through the mean aggregation function. j The specific formula is as follows:
[0132] z j =σ(W·{∑ t∈B(j) μ jt f jt}+d 11 ).
[0133] Preferably, after obtaining the interaction probability based on the user latent factors and the project latent factors, the method further includes the step of:
[0134] The interaction probability is optimized by calculating the user-item interaction graph loss.
[0135] In practical applications, the loss function of the user-item interaction graph is calculated, and then the Adam optimizer is used to optimize the parameters for obtaining the interaction probability based on the loss function. The specific formula is as follows:
[0136]
[0137] Among them, R + R represents the positive sample set. - denoted as the negative sample set; σ(x) represents the sigmoid function; Θ represents the regularization parameter.
[0138] like Figure 2 As shown, the present invention also provides a social recommendation system based on graph neural networks, including: an initial vector acquisition module, an intensity acquisition module, a social vector acquisition module, an embedding vector acquisition module, an aggregation module, a first acquisition module, and a second acquisition module;
[0139] The initial vector acquisition module is used to acquire the initial interest embedding vector;
[0140] The intensity acquisition module is used to acquire the social influence intensity based on the initial interest embedding vector and the multilayer perceptron.
[0141] The social vector acquisition module is used to acquire the user's social network embedding vector based on the social influence intensity.
[0142] The embedding vector acquisition module is used to acquire the embedding vectors of multiple users for a project;
[0143] The aggregation module is used to obtain user latent factors by aggregating the social network embedding vector and the embedding vector;
[0144] The first acquisition module is used to acquire potential project factors through project information residual connections and attention mechanisms;
[0145] The second acquisition module is used to acquire the interaction probability based on the user potential factors and the project potential factors.
[0146] In practical application, the system includes an initial vector acquisition module, an intensity acquisition module, a social vector acquisition module, an embedding vector acquisition module, an aggregation module, a first acquisition module, and a second acquisition module. The initial vector acquisition module is connected to the intensity acquisition module. The social vector acquisition module is connected to both the aggregation module and the intensity acquisition module. The aggregation module is connected to both the second acquisition module and the embedding vector acquisition module. The first acquisition module is connected to the second acquisition module. The initial vector acquisition module sends the acquired initial interest embedding vector to the intensity acquisition module. The intensity acquisition module, after acquiring the social influence intensity based on the initial interest embedding vector and the multilayer perceptron, sends the social influence intensity to the social vector acquisition module. The social vector acquisition module then... After obtaining the user's social network embedding vector based on the strength of social influence, the social network embedding vector is sent to the aggregation module. The embedding vector acquisition module obtains the embedding vectors of multiple users for a single item and sends them to the aggregation module. The aggregation module then obtains the user's latent factors by aggregating the social network embedding vectors and the embedding vectors, and sends the user's latent factors to the second acquisition module. The first acquisition module obtains the project's latent factors through project information residual connections and attention mechanisms, and sends the project's latent factors to the second acquisition module. The second acquisition module then obtains the interaction probability based on the user's latent factors and the project's latent factors, thereby effectively enhancing the accuracy and generalization ability of social recommendations and improving the efficiency of social recommendations.
[0147] In the embodiments provided in this application, it should be understood that the disclosed methods and systems can be implemented in other ways. The system embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, and can be electrical, mechanical, or other forms.
[0148] Furthermore, in the various embodiments of the present invention, each functional module can be fully integrated into a processor, or each module can be a separate device, or two or more modules can be integrated into a device; each functional module in the various embodiments of the present invention can be implemented in hardware or in the form of hardware plus software functional units.
[0149] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by program instructions and related hardware. The aforementioned program instructions can be stored in a computer-readable storage medium. When the program instructions are executed, they perform the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0150] It should be understood that the use of terms such as "method," "apparatus," "unit," and / or "module" in this application is merely to distinguish one method of different components, elements, parts, sections, or assemblies at different levels. However, if other terms can achieve the same purpose, they may be replaced by other expressions.
[0151] As indicated in this application and claims, unless the context clearly indicates otherwise, the words "a," "an," "a," and / or "the" are not specifically singular and may include the plural. Generally, the terms "comprising" and "including" only indicate the inclusion of expressly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements. An element defined by the phrase "comprising an..." does not exclude the presence of other identical elements in the process, method, product, or apparatus that includes the element.
[0152] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0153] If a flowchart is used in this application, it is used to illustrate the operations performed by the system according to embodiments of this application. It should be understood that the preceding or following operations are not necessarily performed in exact order. Instead, the steps can be processed in reverse order or simultaneously. Furthermore, other operations can be added to these processes, or one or more steps can be removed from them.
[0154] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A social recommendation method based on graph neural networks, characterized in that, Includes the following steps: Obtain the initial interest embedding vector; The intensity of social influence is obtained based on the initial interest embedding vector and the multilayer perceptron. The step of obtaining the social influence strength based on the initial interest embedding vector and the multilayer perceptron includes: The initial interest embedding vector of each user is input into the neural influence layer of the multilayer perceptron; The neural influence layer models the propagation of each user's latent preferences in the social network graph G using layer-by-layer convolutional recursion, and calculates the social influence strength for users in the (k+1)th layer of the social network; the specific formula for calculating the social influence strength is as follows: ; in, Indicated as the intensity of social impact; This is represented as the initial interest embedding vector for user a; This is represented as the initial interest embedding vector for user b; Represented as a multilayer perceptron; The user's social network embedding vector is obtained based on the intensity of social influence. The social influence strength is obtained by acquiring the user's social network embedding vector, including: The intensity of social influence is calculated using a formula to obtain the user's social network embedding vector. The specific calculation formula is as follows: ; Obtain the user's interaction embedding vector for the project; By aggregating the social network embedding vector and the interaction embedding vector, user latent factors are obtained; Potential factors of a project can be obtained through project information residual connections and attention mechanisms. The method of obtaining project latent factors through project information residual connections and attention mechanisms includes: Acquire rating-aware interactive users; Obtain the attention score and normalize the attention score; The processed attention score and the rating-aware interactive user are used to obtain the project's latent factors through a mean aggregation function; The interaction probability is obtained based on the user latent factors and the project latent factors; The step of obtaining the interaction probability based on the user latent factors and the project latent factors includes: The user's potential factors and the project's potential factors The probability of a recommendation interaction is calculated using the inner product formula; the specific formula is as follows: ; Where T represents the transpose, that is, Transpose; Represented as user latent factors; Represented as potential factors of the project; This represents the probability of a recommendation interaction.
2. The social recommendation method based on graph neural networks according to claim 1, characterized in that, The process of obtaining the initial interest embedding vector specifically includes: Through the potential embedding of free users and eigenvectors The initial interest embedding vector is calculated and obtained. The specific calculation formula is as follows: ; in, It is a transformation matrix. It is a transformation function.
3. The social recommendation method based on graph neural networks according to claim 1, characterized in that, The process of obtaining the user's interaction embedding vector for the project specifically includes the following steps: Achieve rating-aware interaction through project embedding and rating embedding; By aggregating the rating-aware interactions using a mean function, the user's interaction embedding vector for the project is obtained.
4. The social recommendation method based on graph neural networks according to claim 1, characterized in that, The step of obtaining user latent factors by aggregating the social network embedding vector and the interaction embedding vector specifically includes: The social network embedding vector and the interaction embedding vector are concatenated to obtain latent factors; The latent factors are combined into the final user latent factors through the multilayer perceptron.
5. The social recommendation method based on graph neural networks according to claim 1, characterized in that, After obtaining the interaction probability based on the user latent factors and the project latent factors, the method further includes the following steps: The recommended interaction probability is optimized by calculating the user-item interaction graph loss.
6. A social recommendation system based on graph neural networks, used to implement the method described in any one of claims 1-5, characterized in that, include: Initial vector acquisition module, strength acquisition module, social vector acquisition module, embedded vector acquisition module, aggregation module, first acquisition module and second acquisition module; The initial vector acquisition module is used to acquire the initial interest embedding vector; The intensity acquisition module is used to acquire the social influence intensity based on the initial interest embedding vector and the multilayer perceptron. The social vector acquisition module is used to acquire the user's social network embedding vector based on the social influence intensity. The embedding vector acquisition module is used to acquire the interaction embedding vectors of multiple users for a project; The aggregation module is used to obtain user latent factors by aggregating the social network embedding vector and the interaction embedding vector; The first acquisition module is used to acquire potential project factors through project information residual connections and attention mechanisms; The second acquisition module is used to acquire the interaction probability based on the user potential factors and the project potential factors.
Citation Information
Patent Citations
Interest point recommendation method based on graph neural network
CN112084427A
Social recommendation method and system based on social group influence
CN115080869A
