A social network user recommendation method and system
Through deep neural networks and graph convolutional networks, multi-behavior cascade relationships of social network user vectors are established, and combined with decoupled representation and attention mechanisms, the problem of lack of precise recommendations in traditional social networks is solved, and higher quality user experience and social interaction are achieved.
Patent Information
- Application Number
- CN202411282536.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2044-09-13
AI Technical Summary
Traditional social networking platforms rely on users to add friends or follow accounts on their own, and lack an accurate recommendation mechanism, resulting in limited user experience and social interaction quality, especially today when data information changes dramatically.
Analytical prediction method based on user multi-behavior and potential interests is adopted, and multiple behavior vector cascade relationships of user vectors are established through deep neural network models and graph convolutional networks. Decoupled representation technology and attention mechanism are used for deep learning, and potential friends are recommended in combination with Pearson's similarity calculation and hierarchical clustering method.
It improves the user experience and activity of the social network platform and provides more accurate and personalized social relationship recommendations.
Smart Images

Figure CN119226612B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a social network system, and in particular to a method and system for recommending users to a social network. Background Art
[0002] With the prevalence of social networks, users are faced with an ever-increasing array of information and contacts to choose from. However, effectively discovering and building social connections relevant to their interests has become a challenge. Traditional social networking platforms rely on users to add friends or follow accounts on their own, often making recommendations based on user-selected interests. The lack of a recommendation mechanism that analyzes user behavior limits the user experience and the quality of social interaction.
[0003] User recommendations can cover a variety of scenarios and contexts. Their primary purpose is to quickly recommend relevant accounts to users in areas such as hobbies, learning resources, or daily life and work, thereby expanding their social connections. Therefore, ensuring the reliability of user recommendations is crucial. Summary of the Invention
[0004] The purpose of the present invention is to overcome the shortcomings of the existing technology and provide a social network user recommendation method and system. The technical problem to be solved is: traditional social network platforms rely on users to add friends or follow accounts on their own, lacking an accurate recommendation mechanism, which limits the quality of user experience and social interaction, especially in today's era of rapid data information changes; the purpose of the present invention is to specifically target scenarios with big data and users' multiple interests, and provide a social network user recommendation method and system. In social network user recommendation, the impact of users' potential behaviors on recommended users is taken into account, and a social network user recommendation method and system based on analysis and prediction of users' multiple behaviors and potential interests is proposed. The method and system aim to accurately identify and recommend potential social relationships that users may be interested in through data modeling, thereby improving user experience and the activity of social network platforms.
[0005] The purpose of the present invention is mainly achieved through the following technical solutions: A social network user recommendation method includes the following steps:
[0006] Step S1: Collect behavioral information data of users registered in the system. The behavioral information data includes user data, behavioral data and point of interest data. The behavioral data includes social interaction data. The behavioral information data is vectorized through a word vector model and four vector groups are output. The four vector groups are: user vector group, behavior vector group, user interest vector group and social interaction vector group.
[0007] Step S2: Analyze and learn the behavior information data using a deep neural network model to embed the user vector and the user interest vector, thereby completing the initialization embedding of the user vector and the user interest vector, and outputting the first behavior in which the embedding of the user vector and the user interest vector is initialized;
[0008] The behavior vectors in the behavior vector group are embedded into user vectors and user interest vectors through the graph convolutional network of the deep neural network model. The embedding learned in the behavior vector is used as the input feature of the subsequent behavior vector. The dependency relationship between the behavior vectors in the embedding learning process is captured, and the cascade relationship between multiple behavior vectors of the user vector is established.
[0009] The cascade relationship between multiple behavior vectors is decoupled and characterized to obtain different factor vectors. The influence of different factor vectors on different user preference scores is modeled. The embedding of user vectors and user interest vectors in all behavior vectors is used as the personalized features of user vectors and user interest vectors. The user vector and interest feature vector are extracted from the current behavior vector as meta-units. The meta-units are calculated through a two-layer feedforward neural network to form a meta-network. The meta-network generates a transformation matrix to represent the personalized feature transformation of different user vectors and user interest vectors in different behavior vectors.
[0010] The influence value of different factor vectors on different user preference scores is the preference score of the user vector to the user interest vector calculated by the aggregation embedding method. The preference scores are sorted to obtain the user interest tags as the user vector portrait.
[0011] Step S3: Based on the user vector portrait and social interaction vector, a similarity matrix and a hierarchical clustering method are used in turn to perform a two-stage screening of potential friends, match possible social relationships between user vectors, and recommend potential friends with similar interests according to a set threshold number.
[0012] A further optimization solution is to vectorize the behavior information data through the word vector model and output four sets of vector groups, including:
[0013] The user data is trained using a word vector model and the user vector is recorded as u, u∈U=(u1,u2,...,u M ), M represents the total number of user vectors, U represents the user vector group, u M represents the user vector of the Mth user.
[0014] The behavior data and interest point data are trained using the word vector model and recorded as G b , G b ∈G=(G 1 ,G 2 ,...,G B), G represents the behavior vector group, b represents the bth behavior in the vector group, that is, the current behavior vector is recorded as behavior vector b, B represents the total number of behavior vectors, and the trained user interest vector is recorded as i, i∈I=(i1,i2,...,i N ), I represents the user interest vector group, and N represents the total number of user interest vector types.
[0015] Constructing a user-social trust matrix based on social interaction vector groups X uu' Represents the interaction between user vector u and user vector u'. Interaction between users is recorded as 1, and no interaction is recorded as 0.
[0016] The word vector model is a model that maps text to a high-dimensional vector space, so that short words in the text are represented in this vector space, and the semantic information of the words is encoded as vectors. Words with similar semantics are also closer in the vector space. Its basic idea is to capture the semantic relationship between words by learning the context of a word, so that these vectors can mathematically reflect the similarity and relationship between words.
[0017] A further optimization scheme is that the first line of embedding of the user vector and the user interest vector is initialized and the specific output steps are as follows:
[0018] The user vector u and user interest vector i are initialized as and d represents the size of the embedding, Represents the domain, Represents a domain of size d.
[0019] make and They are used to represent the embedding matrices of user vectors and user interest vectors respectively. M and N are the total number of user vectors and the total number of types of user interest vectors respectively.
[0020] Each user vector and user interest vector is uniquely represented by a vector by using ID U and ID I Represent the vector embeddings of all user vectors and user interest vectors, and They are user vector u m and user interest vector i n vector.
[0021] User vector u m and user interest vector i n The first row of the embedding is initialized to a vector:
[0022] A further optimization solution is to construct the cascade relationship of multiple behavior vectors of the user vector in the following specific steps:
[0023] The embedding of user vector and user interest vector in behavior vector b is recorded as and Perform graph convolution on the user vector-user interest vector interaction graph of behavior vector b to obtain
[0024]
[0025] and They represent the embedding of user vector u and user interest vector i under behavior vector b after being updated through the lth layer, is the normalization term, N u Represents the set of user interest vectors interacting with user vector u, N i Represents the set of user vectors that interact with user interest vector i.
[0026] The first embedding is recorded as l = 0. There are L layers of embedding in total. After L layers of embedding, the embeddings of each layer are fused to construct the final comprehensive embedding of the user vector and the user interest vector. The final comprehensive embedding is also the cascade relationship of multiple behavior vectors, which is expressed as: The user vector u and user interest vector i learned under the behavior vector b are expressed as:
[0027]
[0028] Used to control aggregation, representing the weight of embedding at layer l.
[0029] The further optimization solution is that the steps for constructing personalized features are as follows:
[0030] The embedding obtained from the behavior vector b uses decoupling representation technology to identify and model the impact of different factor vectors on different user preference scores. Because different types of behavior vectors reflect different aspects of user preferences, it is a comprehensive embedding of user vectors and user interest vectors, decoupling and representing each independent factor vector in various behavior vectors, ensuring that each factor vector remains independent. This separation allows for more accurate modeling of user preference scores based on these individual factor vectors, and better mining the potential interests of user vectors.
[0031] Using the decoupled representation technique, the embeddings of the user vector and user interest vector learned in each behavior vector are evenly divided into K independent blocks, that is, the factor vector is represented as:
[0032] and
[0033] They represent the kth block of user vector and user interest vector embedding respectively, d represents the embedding dimension, and K represents the total number of divided blocks.
[0034] Each block represents an independent factor vector, which can more effectively mine the diverse preferences of user vectors for user interest vectors in different behavior vectors. The embeddings of user vectors and user interest vectors in all behavior vectors are divided into K blocks and used as personalized features.
[0035] The further optimization scheme is that the personalized feature conversion steps are as follows:
[0036] The personalized feature mapping of the user vector and the user interest vector is to transition from the current behavior vector b to the next behavior vector, and extract the meta-units of the user vector and the interest feature vector from the behavior vector b.
[0037] Embed K blocks one by one, and the definition of the unit cell in the bth block is as follows:
[0038]
[0039] They represent the meta-units of the k-th block embedding of the user vector and the user interest vector in the behavior vector b respectively; represents the kth block embedding of the user vector and user interest vector learned in the behavior vector b.
[0040] They correspond to the aggregated embeddings of the first-order potential friends around the user vector and user interest vector learned from the previous behavior vector, respectively.
[0041] Graph convolution uses the k-th block embedding of the user vector and user interest vector’s own nodes and the k-th block embedding of the first-order potential friends of the previous behavior vector as meta-units; it combines the features learned from the interaction in the current behavior vector with the features directly inherited from the previous behavior vector to capture the personalized features of the user vector and user interest vector.
[0042] The user vector and user interest vector personalized transformation matrix are generated using the meta-units collected in the meta-network; the meta-network is defined as follows:
[0043]
[0044] f(…) represents the meta-network, which uses a two-layer feedforward neural network. is the personalized transformation matrix and is embedded into the kth block of the corresponding user vector and user interest vector in the behavior vector b.
[0045] The further optimization solution is that the specific steps for constructing user vector portraits are as follows:
[0046] The user interest vector i in the behavior vector b is calculated by using the attention mechanism through the aggregation embedding method to calculate the user preference score of the user vector u for the user interest vector i:
[0047]
[0048] Y ui Get the user preference score of user vector u to user interest vector i, represents the aggregation of user vector u’s preference for the kth factor vector, taking into account the degree of preference in different behavior vectors. It means that the preference score of the kth factor vector of the user interest vector is calculated using the information of all behavior vectors.
[0049] Finally, all K factor vectors are scored and sorted according to the scores to make user interest tags as user vector portraits, which are recorded as user vector-user interest vector matrix
[0050] A further optimization plan is to screen potential friends in two stages. The first stage of screening potential friends in two stages includes:
[0051] In the first stage, potential friends are screened using the user vector-user interest vector matrix and Pearson similarity calculation to calculate the similarity of the fusion attribute preferences of user vector u and user vector v. The similarities are sorted according to the calculated similarities, and the W user vectors with the highest similarity are found as potential friends.
[0052]
[0053] Credibility coefficient I u ∩I v represents the common interest item set of user vectors u and v, |I u ∩I v | represents the number of common rating items of two user vectors, |I u ∪I v | represents the number of all rating items of user vectors u and v, I s represents the common attribute set of non-commonly rated items of two user vectors, sim f (u,v) represents the similarity between user vectors u and v, R ui Indicates the preference of user vector u to user interest vector i, Represents the mean score of user vector u, and user vector v represents the same, R vi Indicates the preference of user vector v to user interest vector i, represents the mean rating of the user vector v.
[0054] The further optimization plan is to screen potential friends in two stages. The second stage of screening potential friends in two stages includes:
[0055] The user vector-user interest vector matrix uses a hierarchical clustering method to cluster the W potential friends screened in the second stage, and specifies the number of clusters to be Y. After clustering is completed, the potential friends in each cluster have similar interests and hobbies. From each cluster, a potential friend with the highest similarity to the target user vector is selected, and finally Y potential friends with similar interests are obtained.
[0056] The social network user recommendation system of the present invention comprises a sequentially connected data collection and integration module, a user vector portrait construction module and a potential friend matching recommendation module;
[0057] The data collection and integration module consists of a data collection unit and a word vector model data integration unit;
[0058] The data collection unit collects behavioral information data of registered users of the system. The behavioral information data includes user data, behavioral data, and point of interest data. The behavioral data also includes social interaction data. The word vector model data integration unit vectorizes the collected behavioral information data through the word vector model and outputs four vector groups. The four vector groups are: user vector group, behavior vector group, user interest vector group, and social interaction vector group. A user-social trust matrix is generated based on the social interaction vector group.
[0059] The user vector profile construction module consists of a nesting unit, a decoupling cascade unit, and a personalized feature conversion unit.
[0060] The nesting unit uses the user vector, user interest vector, behavior vector and user-social trust matrix, adopts a deep neural network model to analyze and learn, embeds the user vector and user interest vector, and outputs the first behavior vector initialized by the embedding of the user vector and user interest vector;
[0061] The decoupling cascade unit nests the first behavior vector that initializes the embedding of the user vector and the user interest vector multiple times to establish a cascade relationship between multiple behavior vectors of the user vector. The decoupling representation technology is used to model the influence of different factor vectors on different user preference scores.
[0062] The personalized feature conversion unit maps the personalized features of the user vector and user interest vector to transition from the current behavior vector to the next behavior vector, and extracts the user vector and interest feature vector from the current behavior vector as meta-units. The meta-units are calculated through a two-layer feedforward neural network to form a meta-network. The meta-network realizes the feature conversion between different user vectors and user interest vectors in different behavior vectors. The preference score of the user vector for the user interest vector is calculated using the attention mechanism using the aggregate embedding method. The preference scores are then sorted to obtain the user interest label as the user vector portrait.
[0063] The potential friend matching and recommendation module includes a two-stage screening of potential friends. The first stage screens potential friends based on the user interest tags and social interaction vectors of the user vector portrait, and uses the similarity matrix to calculate the user vectors with similar interests. The second stage screens potential friends based on the W most similar matrices determined in the first stage as the user vectors with similar interests. The hierarchical clustering method is used to screen potential friends in two stages, match the possible social relationships between user vectors, and recommend Y potential friends with the most similar interests.
[0064] The working principle of this solution is as follows: According to the behavioral information data, the word vector model is used to convert it into the corresponding vector group, and the relationship between user behavior, potential behavior and interests is analyzed through deep learning through decoupling representation technology and attention mechanism. The user vector portrait is made using the graph convolutional network, and the user interest vector is marked. The potential friends are screened and recommended through the two-stage Pearson similarity calculation and hierarchical clustering method. A social network user recommendation method and system based on the analysis and prediction of user vectors and multiple behavior vectors is proposed.
[0065] In summary, the present invention has the following advantages compared with the existing technology: the social network user recommendation method and system of the present invention, using advanced technical means and algorithms, solves the accuracy and personalization problems existing in traditional social network recommendation systems, provides user vectors with a better social experience, and has significant market application potential and economic value. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The drawings described herein are intended to provide a further understanding of the embodiments of the present invention, constitute part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0067] Figure 1 A diagram of a social network user recommendation system;
[0068] Figure 2 A step-by-step diagram of a recommendation method for social network users;
[0069] Figure 3 A diagram of the steps of data collection and integration in a social network user recommendation method;
[0070] Figure 4 A diagram showing the steps involved in constructing a user vector profile in a social network user recommendation method.
[0071] Figure 5 Graph of the decoupled cascade steps for constructing user vector profiles in a user recommendation method for social networks. DETAILED DESCRIPTION
[0072] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with examples and drawings. The exemplary embodiments of the present invention and their descriptions are only used to explain the present invention and are not intended to limit the present invention.
[0073] Traditional social networking platforms rely on user vectors to add friends or follow accounts independently, lacking a precise recommendation mechanism. This limits the user vector experience and the quality of social interaction vectors, especially in today's rapidly changing data and information landscape. In light of this, the present invention provides the following embodiments to address the aforementioned technical issues.
[0074] This invention provides a scenario specifically for recommending potential friends on social networking platforms. It proposes a social network user recommendation method and system based on user vectors, multiple behavior vectors, and interest analysis and prediction, which can be applied to different social networking platforms. The principles of this invention are:
[0075] According to the behavioral information data, the word vector model is used to convert it into the corresponding vector group, and the deep neural network model is used for analysis and learning. The graph convolutional network is used to establish the cascade relationship of multiple behavior vectors of the user vector. The decoupling representation technology and attention mechanism are used for deep learning to analyze the relationship between user behavior, potential behavior and interests, and the impact value of different factor vectors on different user preference scores is modeled. The user vector is profiled using the graph convolutional network, and the user interest vector is marked. The potential friends are screened and recommended in two stages through Pearson similarity calculation and hierarchical clustering method. A social network user recommendation method and system based on the analysis and prediction of user vectors and multiple behavior vectors is proposed.
[0076] Example:
[0077] A social network user recommendation system, such as Figure 1 As shown, it includes: a sequentially connected data collection and integration module, a user vector portrait construction module and a potential friend matching recommendation module.
[0078] The data collection and integration module consists of a data collection unit and a word vector model data integration unit;
[0079] The data collection unit collects behavioral information data of registered users of the system. The behavioral information data includes user data, behavioral data, and point of interest data. The behavioral data also includes social interaction data. The word vector model data integration unit vectorizes the collected behavioral information data through the word vector model and outputs four vector groups. The four vector groups are: user vector group, behavior vector group, user interest vector group, and social interaction vector group. A user-social trust matrix is generated based on the social interaction vector group.
[0080] The user vector profile construction module consists of a nesting unit, a decoupling cascade unit, and a personalized feature conversion unit.
[0081] The nesting unit uses the user vector, user interest vector, behavior vector and user-social trust matrix, adopts a deep neural network model to analyze and learn, embeds the user vector and user interest vector, and outputs the first behavior vector initialized by the embedding of the user vector and user interest vector;
[0082] The decoupling cascade unit nests the first behavior vector that initializes the embedding of the user vector and the user interest vector multiple times to establish a cascade relationship between multiple behavior vectors of the user vector. The decoupling representation technology is used to model the influence of different factor vectors on different user preference scores.
[0083] The personalized feature conversion unit maps the personalized features of the user vector and the user interest vector to transition from the current behavior vector to the next behavior vector, and extracts the user vector and interest feature vector from the current behavior vector as a meta-unit. The meta-unit is calculated through a two-layer feedforward neural network to form a meta-network. The meta-network realizes the feature conversion of different user vectors and user interest vectors in different behavior vectors. The aggregation embedding method is used to use the attention mechanism to calculate the preference score of the user vector to the user interest vector, and the preference scores are sorted to obtain the user interest label as the user vector portrait.
[0084] The potential friend matching and recommendation module includes a two-stage screening of potential friends. The first stage screens potential friends based on the user interest tags and social interaction vectors of the user vector portrait, and uses the similarity matrix to calculate the user vectors with similar interests. The second stage screens potential friends based on the W most similar matrices determined in the first stage as the user vectors with similar interests. The hierarchical clustering method is used to screen potential friends in two stages, match the possible social relationships between user vectors, and recommend Y potential friends with the most similar interests.
[0085] The social platform using the social network user recommendation system of this embodiment, the specific social network user recommendation method is as follows Figure 2 , including 3 steps:
[0086] Step S1: Collect behavioral information data of users registered in the system. The behavioral information data includes user data, behavioral data and point of interest data. The behavioral data includes social interaction data. The behavioral information data is vectorized through a word vector model and four vector groups are output. The four vector groups are: user vector group, behavior vector group, user interest vector group and social interaction vector group.
[0087] Step S2: Analyze and learn the behavior information data using a deep neural network model to embed the user vector and the user interest vector, thereby completing the initialization embedding of the user vector and the user interest vector, and outputting the first behavior in which the embedding of the user vector and the user interest vector is initialized;
[0088] The behavior vectors in the behavior vector group are embedded into user vectors and user interest vectors through the graph convolutional network of the deep neural network model. The embedding learned in the behavior vector is used as the input feature of the subsequent behavior vector. The dependency relationship between the behavior vectors in the embedding learning process is captured, and the cascade relationship between multiple behavior vectors of the user vector is established.
[0089] The cascade relationship between multiple behavior vectors is decoupled and characterized to obtain different factor vectors. The influence of different factor vectors on different user preference scores is modeled. The embedding of user vectors and user interest vectors in all behavior vectors is used as the personalized features of user vectors and user interest vectors. The user vector and interest feature vector are extracted from the current behavior vector as meta-units. The meta-units are calculated through a two-layer feedforward neural network to form a meta-network. The meta-network generates a transformation matrix to represent the personalized feature transformation of different user vectors and user interest vectors in different behavior vectors.
[0090] The influence value of different factor vectors on different user preference scores is the preference score of the user vector to the user interest vector calculated by the aggregation embedding method. The preference scores are sorted to obtain the user interest tags as the user vector portrait.
[0091] Step S3: Based on the user vector profile and social interaction vector, a similarity matrix and hierarchical clustering method are used in a two-stage process to screen potential friends. This method matches possible social relationships between user vectors and recommends potential friends with similar interests based on a set threshold. In this embodiment, the user vector group consists of multiple user vectors, the behavior vector group consists of multiple behavior vectors, the user interest vector group consists of multiple user interest vectors, and the social interaction vector group consists of multiple social interaction vectors.
[0092] Wherein step S1 is as follows Figure 3 As shown, specifically including:
[0093] The collection includes user data, behavior data, and point of interest data, and social interaction data is treated as a separate set of data in the user's behavior data, because social interaction data can directly reflect the existing connections between users, such as jointly paying attention to a topic, and user A liked user B's comment.
[0094] User data: Collect basic user information, including age and gender.
[0095] Behavioral data: Data collection on users’ behavioral activities on social networking platforms, including content posted, likes, comments, shares, clicks, browsing history, and search queries in the fields of travel, sports, food, film and television entertainment, and learning.
[0096] Point of interest data: collects user interest tags, topics of interest, community information of participation, and content types or topics that users frequently visit.
[0097] Social interaction data: Obtain the interaction history between users and other users, such as the number of private messages, likes, and comments.
[0098] Converting user data, behavior data, point of interest data, and social interaction data into vector representation is to ensure data quality and consistency.
[0099] The user data is trained using a word vector model and the user vector is recorded as u, u∈U=(u1,u2,...,u M ), M represents the total number of user vectors, U represents the user vector group, u M represents the user vector of the Mth user.
[0100] The behavior data and interest point data are trained using the word vector model and recorded as G b , G b ∈G=(G 1 ,G 2 ,...,G B ), G represents the behavior vector group, b represents the bth behavior in the vector group, that is, the current behavior vector is recorded as behavior vector b, B represents the total number of behavior vectors, and the trained user interest vector is recorded as i, i∈I=(i1,i2,...,i N ), I represents the user interest vector group, and N represents the total number of user interest vector types.
[0101] Constructing a user-social trust matrix based on social interaction vector groups X uu' Represents the interaction between user vector u and user vector u'. Interaction between users is recorded as 1, and no interaction is recorded as 0.
[0102] The word vector model is a model that maps text to a high-dimensional vector space, so that short words in the text are represented in this vector space, and the semantic information of the words is encoded as vectors. Words with similar semantics are also closer in the vector space. Its basic idea is to capture the semantic relationship between words by learning the context of a word, so that these vectors can mathematically reflect the similarity and relationship between words.
[0103] In this embodiment, the word vector model adopts the Chinese short text sentiment classification model proposed by Yang in 2021, which can combine the context to obtain the specific meaning of polysemous words in the text. First, the pre-trained user data, behavior data and interest point data are learned using the ELMo model. The BiLSTM network structure in the ELMo model makes the word vector context-sensitive, and the expression of polysemous words is more accurate, which can effectively improve the accuracy of sentiment classification. The final output vector group is more in line with the various behavior vectors and language habits of interests in Chinese short texts.
[0104] In step S2, the user vector portrait is constructed using a graph convolutional network to improve it.
[0105] First, user vectors show different preferences for different factor vectors in different behavior vectors, which requires a method to effectively disentangle and independently evaluate the impact of these changing factor vectors on user vectors and user interest vectors, as well as to calculate the preferences of user vectors for different user interest vector factor vectors.
[0106] Then, during modeling, we first use the graph convolutional network to find the cascade relationship between behavior vectors to ensure that the information obtained from one behavior vector can be passed to the next behavior vector, that is, the embedding of one behavior vector is the input of the next behavior vector.
[0107] Furthermore, within each behavior vector, a decoupled representation technique is employed to separate the various factor vectors entangled in the embedding of the user vector and the user interest vector. This unique meta-network, integrating the user vector, the user interest vector, and the user behavior vector, facilitates personalized feature transfer between behavior vectors, thereby improving recommendation accuracy.
[0108] Finally, the attention mechanism is used to capture the subtle preferences of user vectors for different factor vectors in different behavior vectors, so that the potential interests of user vectors can be mined. The potential interests and user interest vectors are linearly aggregated together, and the user interest vectors are sorted according to the aggregated scores as the user vector portrait.
[0109] Step S2 is as follows Figure 4 As shown, specifically including:
[0110] Embedding initialization: Initialize the embedding of user vectors and user interest vectors, and output the first initialized line of the embedding of user vectors and user interest vectors as a vector, laying the foundation for the learning process of the entire model.
[0111] The user vector u and user interest vector i are initialized as and d represents the size of the embedding, Represents the domain, Represents a domain of size d.
[0112] make and They are used to represent the embedding matrices of user vectors and user interest vectors respectively. M and N are the total number of user vectors and the total number of types of user interest vectors respectively.
[0113] Each user vector and user interest vector is uniquely represented by a vector by using ID U and ID I Represent the vector embeddings of all user vectors and user interest vectors, and They are user vector u m and user interest vector i n vector.
[0114] User vector u m and user interest vector i n The first row of the embedding is initialized to a vector:
[0115] Due to the cascading nature of behavior vectors in the model, where the embeddings learned in one behavior vector serve as input features for subsequent behavior vectors, an effective pre-training operation is crucial. Insufficient embeddings learned in previous behavior vectors may adversely affect the learning process of subsequent behavior vectors.
[0116] Decoupled Cascade: At the core of the model, a graph convolutional network is used to deeply learn the embedding of user vectors and user interest vectors in each behavior vector, modeling the cascade relationship between behavior vectors. The cascade relationship between behavior vectors is utilized to ensure that the information obtained from one behavior vector can be passed to the next behavior vector. Decoupled representation technology is used to identify the impact of different factor vectors on different user preference scores, ensuring that these different factor vectors are independent of each other. User vectors and interest feature vectors are extracted from the behavior vector b as meta-units. The meta-units are calculated through a two-layer feedforward neural network to obtain a meta-network, generate personalized conversion moments for user vectors and user interest vectors, and capture the personalized features of user vectors and user interest vectors.
[0117] It is specially designed to capture the detailed preferences of user vectors to user interest vectors and promote the personalized feature conversion of user vectors and user interest vectors in various behavior vectors.
[0118] Decoupled cascade first constructs the cascade relationship of multiple behavior vectors of the user vector.
[0119] The embedding of user vector and user interest vector in behavior vector b is recorded as and Perform graph convolution on the user vector-user interest vector interaction graph of behavior vector b to obtain
[0120]
[0121] and They represent the embedding of user vector u and user interest vector i under behavior vector b after being updated through the lth layer, is the normalization term, N u Represents the set of user interest vectors interacting with user vector u, N i Represents the set of user vectors that interact with user interest vector i.
[0122] The first embedding is recorded as l = 0. There are L layers of embedding in total. After L layers of embedding, the embeddings of each layer are fused to construct the final comprehensive embedding of the user vector and the user interest vector. The final comprehensive embedding is also the cascade relationship of multiple behavior vectors, which is expressed as: The user vector u and user interest vector i learned under the behavior vector b are expressed as:
[0123]
[0124] Used to control aggregation, representing the weight of embedding at layer l.
[0125] Then personalized feature construction is performed.
[0126] The embedding obtained from the behavior vector b is further used to identify and model the impact of different factor vectors on different user preference scores using decoupled representation technology. Because different types of behavior vectors reflect different aspects of user preferences, it is a comprehensive embedding of user vectors and user interest vectors, decoupling and representing them as independent factor vectors in various behavior vectors, ensuring that each factor vector remains independent. This separation allows for more accurate modeling of user preference scores based on these individual factor vectors, and better mining the potential interests of user vectors.
[0127] Using the decoupled representation technique, the embeddings of the user vector and user interest vector learned in each behavior vector are evenly divided into K independent blocks, that is, the factor vector is represented as:
[0128] and
[0129] They represent the kth block of user vector and user interest vector embedding respectively, d represents the embedding dimension, and K represents the total number of divided blocks.
[0130] Each independent block represents an independent factor vector. Due to the cascade relationship of behavior vectors, these factor vectors are independent of each other. This independence enables the model to more effectively explore the diverse preferences of user vectors for user interest vectors in different behavior vectors, and divide the embeddings of user vectors and user interest vectors in all behavior vectors into K blocks; blocks in corresponding positions in different behavior vectors represent the same factor vector.
[0131] The inherent structure of the cascade relationship is exploited to ensure that the K block embeddings of the user vector and the user interest vector in the first behavior vector remain independent. These embeddings are then passed one by one to subsequent behavior vectors through block feature transformation, maintaining independence and consistency of factor vectors between behavior vectors. The process of maintaining independent block embeddings is repeated in each subsequent behavior vector.
[0132] Finally, personalized feature conversion is performed.
[0133] The meta-network formed by promoting customized feature extraction between different behavior vectors can better capture the different preferences of user vectors and provide more personalized and accurate preference representation covering various behavior vectors.
[0134] Personalized feature mapping of user vector and user interest vector is crucial for transitioning from the current behavior vector b to the next behavior vector, extracting the meta-units of user vector and interest feature vector from the behavior vector b, and retaining the most personalized and significant features of user vector and user interest vector.
[0135] Embed K blocks one by one, and the definition of the unit cell in the bth block is as follows:
[0136]
[0137] They represent the meta-units of the k-th block embedding of the user vector and the user interest vector in the behavior vector b respectively; represents the kth block embedding of the user vector and user interest vector learned in the behavior vector b.
[0138] They correspond to the aggregated embeddings of the first-order potential friends around the user vector and user interest vector learned from the previous behavior vector, respectively.
[0139] During graph convolution, the k-th block embeddings of the user vector and user interest vector’s own nodes and the k-th block embeddings of their first-order potential friends in the previous behavior vector are used as meta-units; this strategy combines the features learned from the interactions in the current behavior vector with the features directly inherited from the previous behavior vector, aiming to more accurately capture the personalized features of the user vector and user interest vector.
[0140] The user vector and user interest vector personalized transformation matrix are generated using the meta-units collected in the meta-network; the meta-network is defined as follows:
[0141]
[0142] f(…) represents the meta-network, which uses a two-layer feedforward neural network. It is a personalized transformation matrix and is embedded in the kth block of the corresponding user vector and user interest vector in the behavior vector b; the main function of the meta-network is to generate these customized transformation matrices, which are specially designed to be consistent with the unique personality characteristics of each user vector and user interest vector, capturing the subtle user preference scores in each different behavior vector, and effectively promoting the personalized feature conversion of user vectors and user interest vectors between different behavior vectors.
[0143] Considering the transfer of preferences and relationships between different behavior vectors reveals more detailed user preference scores from multi-behavior data. A user vector within a behavior vector may be more focused on a specific factor vector, suggesting that the feature input transferred from the previous behavior vector to the current behavior vector should retain more information about this specific factor vector. Therefore, the transfer between behavior vectors is inherently personalized. For user interest vectors, the factor vectors that attract user interest vectors vary across different behavior vectors, requiring the transfer of user interest vector information between behavior vectors to more closely align with the user vector's personalized preferences within each specific behavior vector.
[0144] After converting the personalized features, the meta-network is used to complete the user interest label. The attention mechanism is used through the aggregation embedding method to calculate the preference of the user vector u for the user interest vector i, comprehensively mine the user interest vector, and label the user vector as the user vector portrait.
[0145] The user interest vector i in the behavior vector b is calculated by using the attention mechanism through the aggregation embedding method to calculate the user preference score of the user vector u for the user interest vector i:
[0146]
[0147] Y ui Get the user preference score of user vector u to user interest vector i, represents the aggregation of user vector u’s preference for the kth factor vector, taking into account the degree of preference in different behavior vectors. It means that the preference score of the kth factor vector of the user interest vector is calculated using the information of all behavior vectors.
[0148] Finally, all K factor vectors are scored and sorted according to the scores to make user interest tags as user vector portraits, which are recorded as user vector-user interest vector matrix
[0149] Step S3, potential friend matching recommendation adopts a two-stage screening of potential friends: based on the user vector portrait, after completing the calculation of the user interest vector dissimilarity matrix in the first stage, the second stage of potential friend screening is carried out based on this. The first stage uses Pearson similarity calculation to obtain the similarity between the two user vectors. Specifically, a similarity matrix of the user interest vector between the two user vectors is constructed, and W potential friends with the most similar vector to the target user are selected. Based on the first stage, the second stage of hierarchical clustering screening is carried out based on the processed W potential friends to obtain the final Y potential friends who are similar to the target user vector and diverse from each other.
[0150] In the first stage, potential friends are screened using the user vector-user interest vector matrix and Pearson similarity calculation to calculate the similarity of the fusion attribute preferences of user vector u and user vector v.
[0151]
[0152] Sort by the calculated similarity and find the W user vectors with the highest similarity as potential friends.
[0153] Credibility coefficient I u ∩I v represents the common interest item set of user vectors u and v, |I u ∩I v | represents the number of common rating items of two user vectors, |I u ∪I v | represents the number of all rating items of user vectors u and v, I s represents the common attribute set of non-commonly rated items of two user vectors, sim f (u,v) represents the similarity between user vectors u and v, R ui Indicates the preference of user vector u to user interest vector i, Represents the mean score of user vector u, and user vector v represents the same, R vi Indicates the preference of user vector v to user interest vector i, represents the mean rating of the user vector v.
[0154] In the second stage, a hierarchical clustering method is used to screen potential friends. The user vector-user interest vector matrix uses a hierarchical clustering method to cluster the W potential friends screened in the second stage, and the number of clusters is specified as Y. After clustering is completed, the potential friends in each class have similar interests and hobbies, and the interests of potential friends in different classes vary greatly. From each class, a potential friend with the highest similarity to the target user vector is selected, and finally Y potential friends with similar interests are obtained.
[0155] In hierarchical clustering, "finding potential friends" means finding the user vector with the smallest distance to the user vector in each merging process.
[0156] In the first stage, we filter the potential friends and find the W most similar potential friends. Based on the user vector-user interest vector matrix of the user vector portrait, we use the user vector as a data point to calculate the similarity or distance matrix:
[0157] First, the user vector-user interest vector matrix is used to calculate the similarity or distance between user vectors, and the commonly used Manhattan distance method is used to calculate the Manhattan distance between user vectors and user interest vectors; each user vector is regarded as an independent class, and initially each class contains only one user vector; the distance matrix between all classes is calculated to construct a distance matrix. Initially, this is just the distance matrix between user vectors; then the merge is started, the minimum distance or maximum similarity in the distance matrix is found, and the corresponding two classes are merged; the distance matrix is updated to reflect the distance between the new class and other classes; the distance is updated, and the distance between the new class and other classes is updated using the mean link of the merge strategy; the mean link, the distance between the new class and other classes is the mean distance of all points in the new class and the mean distance of the points in the other classes; the two steps of updating the distance and the mean link are repeated until all user vectors are merged into one class, or the predetermined Y class is found.
[0158] After screening potential friends according to the second stage, relevant potential friends are recommended to promote more social interaction vectors and relationship building.
[0159] In this embodiment, the system also uses a stream processing system to collect and organize data before performing word vector model processing on the data.
[0160] In this embodiment, behavioral information data of registered users of the system is collected periodically through a stream processing system. The stream processing system is a system that processes real-time data streams. The stream processing system can process and analyze data streams in real time or near real time. These data streams can be continuous data from various data sources such as sensors, logs, social media, and transaction records.
[0161] Among them, the key features of the stream processing system include real-time processing. The stream processing system can process continuously arriving data streams and quickly generate results, which is crucial for the real-time response required in this embodiment and the social media analysis of user vectors; the low latency of the stream processing system. One of the goals of the design of the stream processing system is to minimize processing delays. The time from data to results should be as short as possible. In this embodiment, the profiling of user vectors also requires timely subsequent modeling based on the collected data, so the low latency of the stream processing system is also very important; the stream processing system is scalable. The stream processing system needs to process a large amount of data streams, so it usually has a high degree of scalability and can be horizontally expanded to process more data streams; the stream processing system is fault-tolerant. In order to ensure the reliability of the system, the stream processing system usually has a fault-tolerant mechanism that can handle node failure problems, so that the amount of abnormal behavior information data output is reduced.
[0162] In this embodiment of the stream processing system, the data collection and processing of user behavior information generally includes the following steps:
[0163] First, data collection is performed: the data source collected by the stream processing system can collect data from a variety of sources, including application logs, sensors, social media platforms, and transaction systems; the data collection tools collected by the stream processing system usually use data collection tools or agents to collect data and push it into the stream processing system.
[0164] Then, the data stream is organized into event streams or record streams. These streams contain information about user vector behavior data and points of interest data. The data format can be structured JSON, Avro format, or semi-structured log files.
[0165] Data processing is then carried out: first, real-time calculations are performed. The stream processing system performs real-time calculations on the incoming data stream through aggregation, filtering, and windowing operations; and data conversion is performed on the real-time calculation results, converting the raw data into useful information and extracting the user's points of interest from the click stream.
[0166] Finally, data storage and analysis: For temporary storage, the processed data can be temporarily stored in memory for subsequent analysis, or stored in a database or data warehouse for persistent storage; and for real-time analysis, the system can analyze real-time data and generate real-time reports.
[0167] Finally, we get user data and behavior data, and through analysis of the behavior data, we can infer the user's interest point data.
[0168] The collected data are firstly,collected and integrated, the collected data are cleaned and,preprocessed, and the collected user data are vectorized.
[0169] Before the word vector model processes the data, the collected user behavior information data will be used to remove outliers and noise data, and process missing values and incomplete data.
[0170] Integrate information from different data sources into a unified dataset and transmit it to the word vector model.
[0171] In specific embodiment 1, Figure 1 The system also includes real-time recommendation services and user vector feedback mechanisms to update user data in a closed loop.
[0172] The real-time recommendation judgment module includes a judgment unit and a data processing unit. The judgment unit judges whether the user vector agrees or rejects the potential friend recommendation. After the user vector makes the operation, it triggers the data processing unit to send an action signal to the data collection and integration module to collect new behavioral information data; dynamically adjust the user vector portrait and the potential friend matching recommendation results to ensure the timeliness and accuracy of the recommendation.
[0173] The user vector feedback module collects user vector feedback data and passes it to the data collection and integration module. This optimizes the recommendation algorithm, improving the level of intelligent recommendation and user vector satisfaction.
[0174] The real-time recommendation judgment module and user vector feedback module allow the system to continuously update and optimize the user vector portrait; when the real-time recommendation judgment triggers the streaming data system to collect user vector behavior data and the user vector feedback mechanism to collect user vector feedback data in real time, the user vector portrait is continuously updated and optimized to reflect the user vector's latest interest and behavior vector patterns.
[0175] Update user vector portraits based on real-time data, continuously optimize models and algorithms, and ensure the timeliness and accuracy of user vector portraits.
[0176] Combined with user vector feedback data, interest weights and recommendation strategies are adjusted to improve user vector satisfaction and recommendation accuracy.
[0177] The specific method of updating user data through a closed-loop real-time recommendation service and user vector feedback mechanism:
[0178] Step S4: After recommending a potential friend in step S3, determine whether the user vector of the recommended potential friend agrees or refuses to recommend the potential friend, triggering step S1 to collect new behavioral information data for the user vector and adjust the user vector portrait in real time.
[0179] Step S5: Set up a user vector feedback mechanism, set up a user vector feedback page in the system, collect user vector feedback data, and pass the user vector feedback data back to step S1.
[0180] The user vector feedback mechanism in step S5 includes: collecting user vector feedback, transmitting feedback data and user vector communication.
[0181] First, collect user vector feedback including:
[0182] Real-time feedback collection: A user vector feedback page with a feedback button or form is set up on the platform user vector interaction interface and recommendation result page, allowing user vectors to directly provide feedback on the similarity of interests of recommended potential friends and user interest vectors.
[0183] Implicit feedback collection: Through user vector behavior data, we can check the click-through rate, browsing time, and collection of recommended potential friends, analyze the user vector's preference for recommended content, and extract features of the recommended potential friends accepted by the user vector.
[0184] Text feedback collection: sentiment analysis and topic extraction are performed on the text feedback provided by user vectors to gain a deeper understanding of the needs and feelings of user vectors. The behavioral vectors are trained through the word vector model and transmitted to data collection and integration.
[0185] Then, the feedback data is transferred to step S1 .
[0186] Finally, it includes user vector communication, which will promptly provide feedback to user vectors on potential friends recommended based on the latest collected user vector behavior data, remind users to update recommended potential friends, enhance user vectors' trust and satisfaction with the system, design appropriate feedback response mechanisms, and use automated responses or manual customer service support to ensure that user vectors feel valued and listened to after providing feedback.
[0187] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for recommending users on a social network, characterized in that: include: Step S1: collect behavioral information data of registered users of the system, wherein the behavioral information data includes user data, behavioral data, and point of interest data, wherein the behavioral data includes social interaction data. The behavioral information data is vectorized through a word vector model and four vector groups are output. The four vector groups are: user vector group, behavior vector group, user interest vector group, and social interaction vector group. Step S2: Analyze and learn the behavior information data using a deep neural network model to embed the user vector and the user interest vector, thereby completing the initialization embedding of the user vector and the user interest vector, and outputting the first behavior in which the embedding of the user vector and the user interest vector is initialized; The behavior vectors in the behavior vector group are embedded into user vectors and user interest vectors through the graph convolutional network of the deep neural network model. The embedding learned in the behavior vector is used as the input feature of the subsequent behavior vector. The dependency relationship between the behavior vectors in the embedding learning process is captured, and the cascade relationship between multiple behavior vectors of the user vector is established. The cascade relationship between multiple behavior vectors is decoupled and characterized to obtain different factor vectors. The influence of different factor vectors on different user preference scores is modeled. The embedding of user vectors and user interest vectors in all behavior vectors is used as the personalized features of user vectors and user interest vectors. The user vector and interest feature vector are extracted from the current behavior vector as meta-units. The meta-units are calculated through a two-layer feedforward neural network to form a meta-network. The meta-network generates a transformation matrix to represent the personalized feature transformation of different user vectors and user interest vectors in different behavior vectors. The influence of different factor vectors on different user preference scores is the preference score of the user vector to the user interest vector calculated by the aggregate embedding method. The preference scores are sorted to obtain the user interest tags as the user vector portrait; Step S3: Based on the user vector portrait and social interaction vector, a similarity matrix and a hierarchical clustering method are used in turn to perform a two-stage screening of potential friends, match possible social relationships between user vectors, and recommend potential friends with similar interests according to a set threshold number.
2. A social network user recommendation method according to claim 1, characterized in that: The behavior information data is vectorized through the word vector model and four vector groups are output, specifically including: The user data is trained using a word vector model and the user vector is recorded as u, u∈U=(u1,u2,...,u M ), M represents the total number of user vectors, U represents the user vector group, u M represents the user vector of the Mth user; The behavior data and interest point data are trained using the word vector model and recorded as G b , G b ∈G=(G 1 ,G 2 ,...,G B ), G represents the behavior vector group, b represents the bth behavior in the vector group, that is, the current behavior vector is recorded as behavior vector b, B represents the total number of behavior vectors, and the trained user interest vector is recorded as i, i∈I=(i1,i2,...,i N ), I represents the user interest vector group, and N represents the total number of user interest vector types; Constructing a user-social trust matrix based on social interaction vector groups X uu' Represents the interaction between user vector u and user vector u'. Interaction between users is recorded as 1, and no interaction is recorded as 0.
3. A social network user recommendation method according to claim 1 or 2, characterized in that: The first line of embedding initialization of the user vector and user interest vector is as follows: The user vector u and user interest vector i are initialized as and d represents the size of the embedding, Represents the domain, represents a domain of size d; make and The embedding matrices used to represent user vectors and user interest vectors respectively, where M and N are the total number of user vectors and the total number of types of user interest vectors respectively; Each user vector and user interest vector is uniquely represented by a vector by using ID U and ID I Represent the vector embeddings of all user vectors and user interest vectors, and They are user vector u m and user interest vector i n vector of User vector u m and user interest vector i n The first row of the embedding is initialized to a vector:
4. A social network user recommendation method according to claim 3, characterized in that: The specific steps for constructing the cascade relationship of multiple behavior vectors of the user vector are as follows: The embedding of user vector and user interest vector in behavior vector b is recorded as and Perform graph convolution on the user vector-user interest vector interaction graph of behavior vector b to obtain and They represent the embedding of user vector u and user interest vector i under behavior vector b after being updated through the lth layer, is the normalization term, N u Represents the set of user interest vectors interacting with user vector u, N i Represents the set of user vectors that interact with user interest vector i; The first embedding is recorded as l = 0. There are L layers of embedding in total. After L layers of embedding, the embedding of each layer is fused to construct the final comprehensive embedding of the user vector and the user interest vector. The final comprehensive embedding is also a cascade relationship of multiple behavior vectors, which is expressed as: The user vector u and user interest vector i learned under the behavior vector b are expressed as: Used to control aggregation, representing the weight of embedding at layer l.
5. A social network user recommendation method according to claim 4, characterized in that: The steps for constructing the personalized features are as follows: The embedding obtained from the behavior vector b uses the decoupling representation technique to identify and model the impact of different factor vectors on different user preference scores, decoupling and representing each independent factor vector in various behavior vectors to ensure that each factor vector remains independent; Using the decoupled representation technique, the embeddings of the user vector and user interest vector learned in each behavior vector are evenly divided into K independent blocks, that is, the factor vector is represented as: They represent the kth block of the user vector and user interest vector embedding, d represents the embedding dimension, and K represents the total number of blocks; Each block represents an independent factor vector to mine the diverse preferences of user vectors for user interest vectors in different behavior vectors, and divide the embeddings of user vectors and user interest vectors in all behavior vectors into K blocks as personalized features.
6. A social network user recommendation method according to claim 5, characterized in that: The steps of converting the personalized features are as follows: The personalized feature mapping of the user vector and the user interest vector is to transition from the current behavior vector b to the next behavior vector, and extract the meta-units of the user vector and the interest feature vector from the behavior vector b; Embed the K blocks one by one, and the definition of the unit in the b-th block is as follows: They represent the meta-units of the k-th block embedding of the user vector and the user interest vector in the behavior vector b respectively; represents the kth block embedding of the user vector and user interest vector learned in the behavior vector b; They correspond to the aggregate embedding of the first-order potential friends around the user vector and user interest vector learned from the previous behavior vector, respectively; Graph convolution uses the k-th block embedding of the user vector and the user interest vector’s own node and the k-th block embedding of the first-order potential friends of the previous behavior vector as meta-units; Combine the features learned from the interactions in the current behavior vector with the features directly inherited from the previous behavior vector to capture the personalized features of the user vector and the user interest vector; The user vector and user interest vector personalized transformation matrix are generated using the meta-units collected in the meta-network; the meta-network is defined as follows: f(…) represents the meta-network, which uses a two-layer feedforward neural network. is the personalized transformation matrix and is embedded into the kth block of the corresponding user vector and user interest vector in the behavior vector b.
7. A social network user recommendation method according to claim 6, characterized in that: The specific steps for constructing the user vector portrait are as follows: The user interest vector i in the behavior vector b is calculated by using the attention mechanism through the aggregation embedding method to calculate the user preference score of the user vector u for the user interest vector i: Y ui Get the user preference score of user vector u to user interest vector i, represents the aggregation of user vector u’s preference for the k-th factor vector, Indicates that the preference score of the kth factor vector of the user interest vector is calculated using the information of all behavior vectors; Finally, all K factor vectors are scored and sorted according to the scores to make user interest tags as user vector portraits, which are recorded as user vector-user interest vector matrix 8. The method for recommending users to a social network according to claim 7, wherein: The first stage of screening potential friends in the two-stage screening of potential friends specifically includes: In the first stage, potential friends are screened using the user vector-user interest vector matrix and Pearson similarity calculation to calculate the similarity of the fused attribute preferences of user vector u and user vector v. The similarities are then sorted based on the calculated similarities to find the W user vectors with the highest similarity as potential friends. Credibility coefficient I u ∩I v represents the common interest item set of user vectors u and v, |I u ∩I v | represents the number of common rating items of two user vectors, |I u ∪I v | represents the number of all rating items of user vectors u and v, I s represents the common attribute set of non-commonly rated items of two user vectors, sim f (u,v) represents the similarity between user vectors u and v, R ui Indicates the preference of user vector u to user interest vector i, Represents the mean score of user vector u, and user vector v represents the same, R vi Indicates the preference of user vector v to user interest vector i, represents the mean rating of the user vector v.
9. The method for recommending users to a social network according to claim 8, wherein: The second stage of screening potential friends in the two-stage screening of potential friends specifically includes: The user vector-user interest vector matrix uses a hierarchical clustering method to cluster the W potential friends screened in the second stage, and specifies the number of clusters to be Y. After clustering is completed, the potential friends in each cluster have similar interests and hobbies. From each cluster, one potential friend with the highest similarity to the target user vector is selected, and ultimately Y potential friends with similar interests are obtained.
10. A social network user recommendation system, characterized in that: It includes a sequentially connected data collection and integration module, a user vector portrait construction module, and a potential friend matching recommendation module; The data collection and integration module includes a data collection unit and a word vector model data integration unit; The data collection unit collects behavioral information data of system registered users, wherein the behavioral information data includes user data, behavioral data and point of interest data, and the behavioral data also includes social interaction data. The word vector model data integration unit vectorizes the collected behavioral information data through the word vector model and outputs four vector groups, which are: user vector group, behavior vector group, user interest vector group and social interaction vector group, and generates a user-social trust matrix based on the social interaction vector group; User vector profile building module, including nesting unit, decoupling cascade unit and personalized feature conversion unit; The nesting unit uses the user vector, user interest vector, behavior vector and user-social trust matrix, adopts a deep neural network model to analyze and learn, embeds the user vector and user interest vector, and outputs a first behavior vector initialized by embedding the user vector and user interest vector; The decoupling cascade unit nests the first behavior vector that initializes the embedding of the user vector and the user interest vector multiple times to establish a cascade relationship between multiple behavior vectors of the user vector, and models the influence values of different factor vectors on different user preference scores through decoupling representation technology; The personalized feature conversion unit maps the personalized features of the user vector and the user interest vector to transition from the current behavior vector to the next behavior vector, and extracts the user vector and the interest feature vector from the current behavior vector as a meta-unit. The meta-unit is calculated through a two-layer feedforward neural network to form a meta-network. The meta-network realizes the feature conversion of different user vectors and user interest vectors in different behavior vectors, adopts the aggregate embedding method and the attention mechanism to calculate the preference score of the user vector for the user interest vector, and sorts the preference scores to obtain the user interest tags as the user vector portrait; The potential friend matching and recommendation module includes two stages of screening potential friends. In the first stage, the potential friends are screened based on the user interest tags and social interaction vectors of the user vector portrait, and the user vectors with similar interests are calculated using a similarity matrix. In the second stage, the most similar W matrices are determined as user vectors with similar interests based on the potential friends screened in the first stage. The hierarchical clustering method is used to perform the two-stage screening of potential friends, match the possible social relationships between user vectors, and recommend Y potential friends with the most similar interests.
Citation Information
Patent Citations
Trust degree and metric factor matrix decomposition fused interest point recommendation method and system
CN110955829A
Recommendation model generation method and device, recommendation method and device and electronic equipment
CN118260482A