Social platform user interest recommendation method based on big data analysis

Through big data analysis and multi-technology integration, combined with real-time data processing and deep learning models, accurate user portraits are constructed, which solves the multiple shortcomings of user interest recommendation systems on social platforms, achieves highly accurate and personalized interest recommendations, and improves user experience and system stability.

CN118747244AInactive Publication Date: 2024-10-08SHENZHEN LEWEI TECH DEV CO LTD

Patent Information

Application Number
CN202411066254.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing social platform user interest recommendation system lacks multi-technology integration, lacks real-time performance, limited application of deep learning models, single recommendation results, and inaccurate user portrait construction, resulting in insufficient recommendation accuracy and personalization.

Method used

Using methods based on big data analysis, combined with data mining, machine learning and neural network technology, through real-time data processing, diversified recommendations, deep learning models and hybrid recommendation algorithms, we build accurate user portraits and provide personalized and diverse interests. recommend.

Benefits of technology

It improves the accuracy, personalization and timeliness of recommendations, enhances user experience and system stability, can dynamically adapt to user needs, and provide diverse and novel recommendation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747244A_ABST
    Figure CN118747244A_ABST
Patent Text Reader

Abstract

The invention discloses a social platform user interest recommendation method based on big data analysis, and the method comprises the steps: S1, collecting user behavior data from a social platform in real time, and storing the user data through an Apache Hadoop distributed storage system; s2, dividing the users into different interest groups by using a K-means clustering algorithm; s3, realizing real-time processing of the user behavior data by using Apache Kafka; s4, performing collaborative filtering recommendation based on user behavior similarity and project similarity, and analyzing user interest tags and project tags; s5, analyzing and predicting a behavior sequence of the user by using a long short-term memory network, and performing similarity calculation and recommendation by using a Word2Vec technology; and S6, providing personalized interest recommendation for the user according to the user portrait and the real-time behavior data, and increasing diversity and novelty of recommendation results through a mixed recommendation algorithm. The method has the advantages of being high in recommendation accuracy, high in individuation, timely in response, excellent in user experience and high in system stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of interest recommendation, and in particular to a method for recommending interests of users on a social platform based on big data analysis. Background Art

[0002] With the rapid development of information technology, social platforms have become an indispensable part of people's daily lives. Users show their interests and preferences on social platforms through likes, comments, and sharing. However, how to effectively provide personalized interest recommendations based on user behavior data and improve user experience has become an important research topic.

[0003] In the existing technology, traditional user interest recommendation systems mainly rely on collaborative filtering and content-based recommendation methods. These methods often seem to be unable to cope with increasingly complex user needs and changing behavior patterns. Specifically, traditional methods have obvious shortcomings in the following aspects:

[0004] 1. Lack of multi-technology integration: Traditional recommendation systems are usually based on a single technology, such as collaborative filtering or content-based recommendation. This single technology approach is difficult to fully capture the complex behavior patterns of users, resulting in insufficient accuracy and personalization of recommendation results.

[0005] 2. Lack of real-time performance: Many existing recommendation systems are unable to achieve real-time processing and recommendation of user behavior data, resulting in delayed recommendation content and inability to respond to users' immediate needs in a timely manner.

[0006] 3. Limited application of deep learning models: Traditional recommendation systems rarely use deep learning models to analyze user behavior sequences and cannot fully capture long-term and short-term changes in user interests, resulting in low accuracy of recommendation results.

[0007] 4. Single recommendation results: A single recommendation algorithm can easily lead to single recommendation results, fail to provide diverse and novel recommendations, and reduce the user experience.

[0008] 5. Inaccurate user portrait construction: Traditional methods often rely only on simple behavioral data when constructing user portraits, lacking comprehensive mining of user interest characteristics, resulting in insufficient pertinence and effectiveness of recommendations.

[0009] Therefore, how to provide a method for recommending user interests on a social platform based on big data analysis is an urgent problem that technicians in this field need to solve. Summary of the invention

[0010] One object of the present invention is to propose a method for recommending user interests on a social platform based on big data analysis. The present invention makes full use of technologies such as big data analysis, data mining, machine learning, recommendation algorithms and neural networks, and describes in detail specific methods for improving recommendation effects through multi-technology integration, real-time data processing and recommendation, application of deep learning models, diversified and novel recommendations, and precise construction of user portraits. The method has the advantages of high recommendation accuracy, strong personalization, timely response, excellent user experience and strong system stability.

[0011] A method for recommending user interests on a social platform based on big data analysis according to an embodiment of the present invention is characterized by comprising the following steps:

[0012] S1. Collect user behavior data from social platforms in real time, clean the collected data, remove noise and outliers, and use the Apache Hadoop distributed storage system to store user data;

[0013] S2. Extract features from user behavior data, use K-means clustering algorithm to divide users into different interest groups, and build user portraits;

[0014] S3, using Apache Kafka to achieve real-time processing of user behavior data and update user profiles based on real-time user behavior data;

[0015] S4. Perform collaborative filtering recommendations based on user behavior similarity and project similarity, analyze user interest tags and project tags, perform content-based recommendations through similarity calculation, and combine collaborative filtering and content-based recommendation algorithms to provide diverse recommendation results.

[0016] S5. Use long short-term memory networks to analyze and predict user behavior sequences, and use Word2Vec technology to embed users and items into low-dimensional vector space for similarity calculation and recommendation.

[0017] S6. Provide users with personalized interest recommendations based on user portraits and real-time behavior data, and increase the diversity and novelty of recommendation results through hybrid recommendation algorithms.

[0018] Optionally, the S1 specifically includes:

[0019] S11, continuously monitor and capture user behavior data from social platforms through API interfaces, and the real-time data stream is time-stamped t i and user behavior i The sequence {(t1, b1), (i2, b2), ..., (t n , b n )}, where t i Indicates the timestamp of the i-th behavior, bi represents the i-th behavior type, and n represents the number of data points;

[0020] S12. Apply data cleaning algorithms to process captured data, remove noise and irrelevant information in unstructured data, use mean and standard deviation to identify outliers, and define any data point that deviates from the mean by more than three standard deviations as an outlier:

[0021]

[0022]

[0023] |b i -μ|>3σ;

[0024] Among them, μ is the mean of user behavior data, σ is the standard deviation, and b i is the i-th behavior data, n is the number of data points;

[0025] S13. For outliers in behavioral data, they are defined as any behavior that deviates from the average user behavior pattern by more than three standard deviations. Outlier detection is based on calculating the mean of user behavior data in the past 24 hours. μ24h and standard deviation σ 24h :

[0026]

[0027]

[0028] |b i -μ 24h |3σ 24h ;

[0029] Among them, μ 24h is the mean of user behavior data in the past 24 hours, σ 24h is the standard deviation, b j is the jth behavior data in the past 24 hours, and N is the number of data points in 24 hours;

[0030] S14. Use the Apache Hadoop distributed storage system to store the cleaned data, format the stored data into a structured JSON file, index the data during the data storage process, use timestamps and user IDs as primary keys, archive old data, implement data encryption and access control strategies, and apply data desensitization technology to process personal sensitive information to comply with data protection regulations.

[0031] Optionally, the S2 specifically includes:

[0032] S21. Extract features from user behavior data:

[0033] v i =(f i1 , f i2 , ..., f im );

[0034] Among them, v i represents the feature vector of user i, f ij represents the jth eigenvalue, and m represents the total number of features;

[0035] S22, normalize the extracted feature data, and use the maximum and minimum normalization method to scale the feature values ​​to the interval [0, 11:

[0036]

[0037] Among them, f′ ij represents the normalized eigenvalue, min(f j ) and max(f j ) represent the features f j The minimum and maximum values ​​of

[0038] S23, use K-means clustering algorithm to divide users into different interest groups, randomly select k initial cluster centers, denoted as c1, c2, ..., c k For each user i, calculate the Euclidean distance between it and all cluster centers and assign user i to the cluster center c that is closest to it. j :

[0039]

[0040] Among them, d(v i , c j ) represents the relationship between user i and cluster center c j The Euclidean distance, f il represents the lth feature value of user i, c jl represents the lth eigenvalue of cluster center j;

[0041]

[0042] Among them, c j represents the new coordinates of cluster center j, C j represents the set of users belonging to cluster center j, |C j | represents the set C j The number of users in

[0043] S24, repeating the allocation and updating steps until the location of the cluster center no longer changes significantly, and finally determining k user interest groups;

[0044] S25. Build a user portrait, assign each user to a corresponding interest group, and combine the user's feature vector with the group feature to generate a user portrait:

[0045] p i =αv i +(1-α)c j ;

[0046] Among them, pi represents the final portrait vector of user i, α is the adjustment parameter that controls the weight ratio of user characteristics and group characteristics, and c j represents the cluster center of the group to which user i belongs;

[0047] S26. Use principal component analysis technology to reduce the dimensionality of high-dimensional user feature vectors and simplify the complexity of user portraits:

[0048]

[0049] in, is the user feature vector after dimensionality reduction, and W is the matrix containing the first k principal components.

[0050] Optionally, the S3 specifically includes:

[0051] S31, extracting real-time data stream from user behavior data with timestamp t i and user behavior i The sequence {(t1, b1), (t2, b2), ..., (t n , b n )}, where t i Indicates the timestamp of the i-th behavior, b i represents the i-th behavior type, and n represents the number of data points;

[0052] S32. Use Apache Kafka to implement real-time data stream processing. The Kafka cluster receives the user behavior data stream, splits it into multiple partitions, and calculates the offset of each partition:

[0053]

[0054] Among them, offset i Indicates the offset of the i-th data, size(b j ) represents the size of the j-th behavior data;

[0055] S33, the user behavior data stream is transmitted to Apache Flink for real-time processing. Flink consumes the data stream from the Kafka cluster, parses each data, and i and timestamp t iSort the data:

[0056] sorted_data=sort({(ID1,t1),(ID2,t2),...,(ID n , t n )));

[0057] Among them, sorted_data represents the data set sorted by user ID and timestamp;

[0058] S34. Perform window processing on the sorted data. Use sliding window technology to divide the user behavior data into fixed time windows. The size of each window is w and the sliding step is s:

[0059] window k ={(t i , b i )|t i ∈[t k , t k +w)};

[0060] Among them, window k represents the kth time window, t k Indicates the start time of the window;

[0061] S35: Extract features from the data in each window and calculate the behavior feature vector of each user in the current window.

[0062]

[0063] in, represents the behavior feature vector of user i in the current window, |W i | represents the number of behavior data belonging to user i in the window, b represents the feature vector of the jth behavior data;

[0064] S36. Input the feature vector of each window into the recurrent neural network to capture the time dependency of user behavior:

[0065] h t =σ(W xh x t +W hh h t-1 +b h );

[0066] Among them, h t represents the hidden state at time step t, σ is the activation function, and W xh is the weight matrix input to the hidden layer, W hh is the weight matrix from hidden layer to hidden layer, xt is the input feature vector of the current time step, h t-1 is the hidden state of the previous time step, b h is the bias vector of the hidden layer;

[0067] S37. Update the user portrait according to the output of the recursive neural network, store the updated user portrait in the distributed database system, implement data encryption and access control strategies, and apply data desensitization technology to process personal sensitive information.

[0068] Optionally, the S4 specifically includes:

[0069] S41. Collaborative filtering recommendation based on user behavior similarity. First, calculate the similarity between each user using the Pearson correlation coefficient:

[0070]

[0071] Among them, sim(u, v) represents the similarity between user u and user v, r u , i and r v , i represents the ratings of user u and user v on item i, and They represent the average ratings of user u and user v respectively, and I represents the set of items rated by users together;

[0072] S42. Collaborative filtering recommendation based on item similarity. First, calculate the cosine similarity between each item:

[0073]

[0074] Among them, sim(i, j) represents the similarity between item i and item j, r u,i and r u,j They represent the ratings of item i and item j by user u, and U represents the set of users who have rated item i and item j;

[0075] S43. Combine user behavior similarity and item similarity to make comprehensive recommendations. For each user u, predict the user's rating for unrated item j based on user similarity and item similarity:

[0076]

[0077] in, represents the predicted rating of user u for item j, represents the average rating of user u, sim(u,v) represents the similarity between user u and user v, r v,j represents the rating of item j by user v, and U represents the set of users similar to user u;

[0078] S44, analyze user interest tags and project tags, perform content-based recommendations based on tag similarity, and calculate user interest tag vector t u and the item label vector t j The similarity between:

[0079]

[0080] Among them, sim(t u , t j ) represents the user interest tag vector t u and the item label vector t j The similarity between ||t u || and ||t j || represents the modulus of the user interest tag vector and the item tag vector respectively;

[0081] S45. Based on user interest tags and combined with user historical behavior data, deep learning models are used to mine potential points of interest and extract high-order features through deep learning models:

[0082] h l =f(W l h l-1 +b l );

[0083] Among them, h l represents the hidden layer output of the lth layer, f represents the activation function, W l represents the weight matrix of the lth layer, h l-1 represents the hidden layer output of the l-1th layer, b l Represents the bias vector of the lth layer;

[0084] S46. Combine collaborative filtering recommendation, content-based recommendation and deep learning model recommendation results to generate a final recommendation list. Use a hybrid recommendation algorithm to calculate the comprehensive recommendation score based on the user's historical behavior data, label similarity and the output of the deep learning model:

[0085]

[0086] in, represents the comprehensive predicted score of user u for item j, represents the prediction score based on collaborative filtering, represents the content-based prediction score, represents the prediction score based on the deep learning model, and λ1, λ2, and λ3 are the mixed weight parameters.

[0087] Optionally, the S5 specifically includes:

[0088] S51. Use the long short-term memory network to analyze and predict the user's behavior sequence, convert the user behavior data sequence into the input format of the long short-term memory network, and the input of each time step is represented as a vector x t , whose dimension is the number of user behavior features;

[0089] S52. Construct LSTM network structure:

[0090] f t =σ(W f ·[h t-1 , x t ]+b f );

[0091] i t =σ(W i ·[h t -1,x t ]+b i );

[0092] o t =σ(W o ·[h t-1 , x t ]+b o );

[0093] c t =f t ·c t-1 +i t tanh(W c ·[h t-1 , x t ]+b c );

[0094] h t =o t ·tanh(c t );

[0095] Among them, f t 、i t , o t Represent the activation vectors of the forget gate, input gate, and output gate, respectively, W f , W i , W o , W c is the weight matrix, b f , b i , b o , b c is the bias vector, c t is the state vector of the memory unit, h t is the output vector of the hidden layer;

[0096] S53, inputting the user behavior data sequence into the long short-term memory network, calculating the hidden state and memory unit state of each time step, and outputting the predicted user behavior feature vector;

[0097] S54. Use the attention mechanism to enhance the effect of long short-term memory networks, and dynamically allocate weights by calculating the dependencies between different time steps:

[0098] e t,t′ =v T tanh(W e [h t ;h t′ ]+b e );

[0099]

[0100] h′ t =∑ t′ α t,t′ h t′ ;

[0101] Among them, e t,t′ represents the attention score between time steps t and t′, α t,t′ represents the attention weight, v, W e 、b e Represent the weight vector, weight matrix and bias vector respectively, h′ t represents the hidden state after adjustment by the attention mechanism;

[0102] S55, use Word2Vec technology to embed users and projects into low-dimensional vector space. First, mark users and projects and construct the interaction matrix M of users and projects, where M ij represents the interaction frequency between user i and item j;

[0103] S56. Use the Word2Vec model to train the embedding vectors of users and items. For each user i, select the items that have been interacted with as positive samples and the items that have not been interacted with as negative samples. Construct a training data set and update the embedding vector by maximizing the similarity of positive samples and minimizing the similarity of negative samples:

[0104]

[0105] Among them, u i and v j Denote the embedding vectors of user i and item j respectively, D+ and D- denote the positive sample and negative sample sets respectively, and σ denotes the Sigmoid activation function;

[0106] S57. Store the trained user and item embedding vectors in the database for subsequent recommendation calculations. Optimize user and item embeddings through graph neural networks. Treat users and items as nodes in the graph, and interactive relationships as edges. Extract high-order features through graph convolution layers:

[0107]

[0108] in, represents the feature vector of node i in the l+1 layer, N(i) represents the set of neighbor nodes of node i, c ij is the normalization coefficient, W (l) and b (l) They represent the weight matrix and bias vector of the lth layer respectively.

[0109] Optionally, the S6 specifically includes:

[0110] S61. Provide personalized interest recommendations for users based on user portraits and real-time behavior data. First, extract the user's interest feature vector p from the user portrait. u , where p u Represents the interest characteristics of user u;

[0111] S62. Use a hybrid recommendation algorithm, combining collaborative filtering and content-based recommendation, to generate a candidate recommendation list and calculate the recommendation score for each candidate item j.

[0112]

[0113] in, represents the recommendation score of user u for item j, represents the recommendation score based on collaborative filtering, represents the content-based recommendation score, λ1 and λ2 are hybrid weight parameters;

[0114] S63: Based on the user's real-time behavior data, dynamically adjust the recommendation score, consider the user's real-time interest changes, and calculate the real-time adjusted recommendation score

[0115]

[0116] in, represents the adjusted recommendation score, β is the adjustment parameter, f(b u,j ) represents the real-time interaction feature function between user u and item j, b u,j Represents the real-time interaction feature vector between user u and item j;

[0117] S64: In order to ensure the diversity and novelty of the recommendation results, apply the diversity optimization algorithm to re-sort the recommendation list and calculate the recommendation score after diversity optimization.

[0118]

[0119] in, represents the recommendation score after diversity optimization, γ is the diversity weight parameter, and d(u, j) represents the content similarity difference between user u and item j;

[0120] S65. Use reinforcement learning algorithm to optimize recommendation strategy and learn user feedback through reinforcement learning model:

[0121]

[0122] Among them, L represents the cumulative reward of reinforcement learning, γ is the discount factor, and r t represents the immediate reward at time step t;

[0123] S66: Generate a final recommendation list, sort the recommendation scores after diversity optimization, select the N items with the highest scores as recommendation results, return the recommendation results to the user, and collect feedback on the recommendation results for updating the user portrait and optimizing the recommendation model;

[0124] S67. Implement data encryption and access control strategies, desensitize users’ personal sensitive information, and continuously monitor and evaluate the performance of the recommendation system.

[0125] The beneficial effects of the present invention are:

[0126] (1) The present invention provides a deep understanding and dynamic adaptation of user behavior by combining big data analysis, data mining, machine learning, recommendation algorithms and neural network technology, so that the system can accurately capture the interests and needs of users, thereby providing highly accurate and personalized recommendation services. In particular, through real-time data processing and dynamic user portrait updates, the system can quickly respond to users' immediate needs, improve the timeliness of recommendations and user satisfaction.

[0127] (2) This invention enhances the ability to analyze user behavior sequences by introducing long short-term memory networks (LSTM) and attention mechanisms, which can capture long-term and short-term changes in user interests and further improve the accuracy of recommendations. At the same time, the Word2Vec technology is used to embed users and items into a low-dimensional vector space, and the embedding vectors are optimized in combination with graph neural networks, making the recommendation results more diverse and novel.

[0128] (3) The present invention solves the problem of uniform recommendation results caused by a single algorithm by combining collaborative filtering and content-based recommendation methods through a hybrid recommendation algorithm, provides more diverse and novel recommendations, and improves user experience. Through the diversity optimization algorithm, the system can balance the relevance and diversity of recommendations, and increase the novelty and diversity of recommendation results.

[0129] (4) The present invention accurately constructs user portraits and uses clustering algorithms and association rule mining technology to extract user interest features from massive user behavior data, thereby more comprehensively capturing user interests and preferences and improving the pertinence and effectiveness of recommendations.

[0130] (5) The present invention optimizes the recommendation strategy through reinforcement learning algorithm, and can continuously adjust and optimize the recommendation algorithm through user feedback, thereby enhancing the intelligence and adaptability of the recommendation system. Combined with data encryption and access control strategies, the security and privacy protection of user data are ensured, making the system highly secure and reliable during the recommendation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0131] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0132] Figure 1 This is a general framework diagram of a method and system for recommending user interests on a social platform based on big data analysis proposed by the present invention;

[0133] Figure 2 A real-time data processing and analysis flow chart of a social platform user interest recommendation method based on big data analysis proposed by the present invention;

[0134] Figure 3 This is a flow chart of a recommendation algorithm for a method for recommending user interests on a social platform based on big data analysis proposed by the present invention. DETAILED DESCRIPTION

[0135] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.

[0136] refer to Figure 1-Figure 3 , a method for recommending user interests on a social platform based on big data analysis, characterized in that it comprises the following steps:

[0137] S1. Collect user behavior data from social platforms in real time, clean the collected data, remove noise and outliers, and use the Apache Hadoop distributed storage system to store user data;

[0138] In this implementation, S1 specifically includes:

[0139] S11, continuously monitor and capture user behavior data from social platforms through API interfaces, and the real-time data stream is time-stamped t i and user behavior i The sequence {(t1, b1), (t2, b2), ..., (t n , b n )}, where t i Indicates the timestamp of the i-th behavior, b i represents the i-th behavior type, and n represents the number of data points;

[0140] S12. Apply data cleaning algorithms to process captured data, remove noise and irrelevant information in unstructured data, use mean and standard deviation to identify outliers, and define any data point that deviates from the mean by more than three standard deviations as an outlier:

[0141]

[0142]

[0143] |b i -μ|>3σ;

[0144] Among them, μ is the mean of user behavior data, σ is the standard deviation, and b i is the i-th behavior data, n is the number of data points;

[0145] S13. For outliers in behavior data, they are defined as any behavior that deviates from the average user behavior pattern by more than three standard deviations. Outlier detection is based on calculating the mean μ of user behavior data in the past 24 hours. 24h and standard deviation σ 24h :

[0146]

[0147]

[0148] |b i -μ 24h |3σ 24h ;

[0149] Among them, μ 24h is the mean of user behavior data in the past 24 hours, σ 24h is the standard deviation, b j is the jth behavior data in the past 24 hours, and N is the number of data points in 24 hours;

[0150] S14. Use Apache Hadoop distributed storage system to store cleaned data, format the stored data into structured JSON files, index the data during data storage, use timestamp and user ID as primary keys, archive old data, implement data encryption and access control strategies, and apply data desensitization technology to process personal sensitive information to comply with data protection regulations.

[0151] S2. Extract features from user behavior data, use K-means clustering algorithm to divide users into different interest groups, and build user portraits;

[0152] In this implementation, S2 specifically includes:

[0153] S21. Extract features from user behavior data:

[0154] v i =(f i1 , f i2 , ..., f im );

[0155] Among them, v i represents the feature vector of user i, f ij represents the jth eigenvalue, and m represents the total number of features;

[0156] S22, normalize the extracted feature data, and use the maximum and minimum normalization method to scale the feature values ​​to the [0, 1] interval:

[0157]

[0158] Among them, f′ ij represents the normalized eigenvalue, min(f j ) and max(f j ) represent the features f j The minimum and maximum values ​​of

[0159] S23, use K-means clustering algorithm to divide users into different interest groups, randomly select k initial cluster centers, denoted as c1, c2, ..., c k For each user i, calculate the Euclidean distance between it and all cluster centers and assign user i to the cluster center c that is closest to it. j :

[0160]

[0161] Among them, d(v i , c j ) represents the relationship between user i and cluster center c j The Euclidean distance, fil represents the lth feature value of user i, c jl represents the lth eigenvalue of cluster center j;

[0162]

[0163] Among them, c j represents the new coordinates of cluster center j, C j represents the set of users belonging to cluster center j, |C j | represents the set C j The number of users in

[0164] S24, repeating the allocation and updating steps until the location of the cluster center no longer changes significantly, and finally determining k user interest groups;

[0165] S25. Build a user portrait, assign each user to a corresponding interest group, and combine the user's feature vector with the group feature to generate a user portrait:

[0166] p i =αv i +(1-α)c j ;

[0167] Among them, p i represents the final portrait vector of user i, α is an adjustment parameter that controls the weight ratio of user characteristics and group characteristics, and c j represents the cluster center of the group to which user i belongs;

[0168] S26. Use principal component analysis technology to reduce the dimensionality of high-dimensional user feature vectors and simplify the complexity of user portraits:

[0169]

[0170] in, is the user feature vector after dimensionality reduction, and W is the matrix containing the first k principal components.

[0171] S3, using Apache Kafka to achieve real-time processing of user behavior data and update user profiles based on real-time user behavior data;

[0172] In this implementation, S3 specifically includes:

[0173] S31, extracting real-time data stream from user behavior data with timestamp t i and user behavior i The sequence {(t1, b1), (t2, b2), ..., (t n , b n )}, where t iIndicates the timestamp of the i-th behavior, b i represents the i-th behavior type, and n represents the number of data points;

[0174] S32. Use Apache Kafka to implement real-time data stream processing. The Kafka cluster receives the user behavior data stream, splits it into multiple partitions, and calculates the offset of each partition:

[0175]

[0176] Among them, offset i Indicates the offset of the i-th data, size(b j ) represents the size of the j-th behavior data;

[0177] S33, the user behavior data stream is transmitted to Apache Flink for real-time processing. Flink consumes the data stream from the Kafka cluster, parses each data, and i and timestamp t i Sort the data:

[0178] sorted_data=sort({(ID1,t1),(ID2,t2),...,(ID n , t n )});

[0179] Among them, sorted_data represents the data set sorted by user ID and timestamp;

[0180] S34. Perform window processing on the sorted data. Use sliding window technology to divide the user behavior data into fixed time windows. The size of each window is w and the sliding step is s:

[0181] window k ={(t i , b i )|t i ∈[t k , t k +w)};

[0182] Among them, window k represents the kth time window, t k Indicates the start time of the window;

[0183] S35: Extract features from the data in each window and calculate the behavior feature vector of each user in the current window.

[0184]

[0185] in, represents the behavior feature vector of user i in the current window, |W i | represents the number of behavior data belonging to user i in the window, b represents the feature vector of the jth behavior data;

[0186] S36. Input the feature vector of each window into the recurrent neural network to capture the time dependency of user behavior:

[0187] h t =σ(W xh x t +W hh h t-1 +b h );

[0188] Among them, h t represents the hidden state at time step t, σ is the activation function, and W xh is the weight matrix input to the hidden layer, W hh is the weight matrix from hidden layer to hidden layer, x t is the input feature vector of the current time step, h t-1 is the hidden state of the previous time step, b h is the bias vector of the hidden layer;

[0189] S37. Update the user portrait according to the output of the recursive neural network, store the updated user portrait in the distributed database system, implement data encryption and access control strategies, and apply data desensitization technology to process personal sensitive information.

[0190] S4. Perform collaborative filtering recommendations based on user behavior similarity and project similarity, analyze user interest tags and project tags, perform content-based recommendations through similarity calculation, and combine collaborative filtering and content-based recommendation algorithms to provide diverse recommendation results.

[0191] In this implementation, S4 specifically includes:

[0192] S41. Collaborative filtering recommendation based on user behavior similarity. First, calculate the similarity between each user using the Pearson correlation coefficient:

[0193]

[0194] Among them, sim(u, v) represents the similarity between user u and user v, r v , i and r v , i represents the ratings of user u and user v on item i, and They represent the average ratings of user u and user v respectively, and I represents the set of items rated by users together;

[0195] S42. Collaborative filtering recommendation based on item similarity. First, calculate the cosine similarity between each item:

[0196]

[0197] Among them, sim(i, j) represents the similarity between item i and item j, r u,i and r u,j They represent the ratings of item i and item j by user u, and U represents the set of users who have rated item i and item j;

[0198] S43. Combine user behavior similarity and item similarity to make comprehensive recommendations. For each user u, predict the user's rating for unrated item j based on user similarity and item similarity:

[0199]

[0200] in, represents the predicted rating of user u for item j, represents the average rating of user u, sim(u,v) represents the similarity between user u and user v, r v,j represents the rating of item j by user v, and U represents the set of users similar to user u;

[0201] S44, analyze user interest tags and project tags, perform content-based recommendations based on tag similarity, and calculate user interest tag vector t u and the item label vector t j The similarity between:

[0202]

[0203] Among them, sim(t u , t j ) represents the user interest tag vector t u and the item label vector t j The similarity between ||t u || and ‖|t j || represents the modulus of the user interest tag vector and the item tag vector respectively;

[0204] S45. Based on user interest tags and combined with user historical behavior data, deep learning models are used to mine potential points of interest and extract high-order features through deep learning models:

[0205] h l =f(W l hl-1 +b l );

[0206] Among them, h l represents the hidden layer output of the lth layer, f represents the activation function, W l represents the weight matrix of the lth layer, h l-1 represents the hidden layer output of the l-1th layer, b l Represents the bias vector of the lth layer;

[0207] S46. Combine collaborative filtering recommendation, content-based recommendation and deep learning model recommendation results to generate a final recommendation list. Use a hybrid recommendation algorithm to calculate the comprehensive recommendation score based on the user's historical behavior data, label similarity and the output of the deep learning model:

[0208]

[0209] in, represents the comprehensive predicted score of user u for item j, represents the prediction score based on collaborative filtering, represents the content-based prediction score, represents the prediction score based on the deep learning model, and λ1, λ2, and λ3 are the mixed weight parameters.

[0210] S5. Use long short-term memory networks to analyze and predict user behavior sequences, and use Word2Vec technology to embed users and items into low-dimensional vector space for similarity calculation and recommendation.

[0211] In this implementation, S5 specifically includes:

[0212] S51. Use the long short-term memory network to analyze and predict the user's behavior sequence, convert the user behavior data sequence into the input format of the long short-term memory network, and the input of each time step is represented as a vector x t , whose dimension is the number of user behavior features;

[0213] S52. Construct LSTM network structure:

[0214] f t =σ(W f ·[h t-1 , x t ]+b f );

[0215] i t =σ(W i ·[h t -1,x t ]+b i );

[0216] 0 t =σ(W0·[h t -1,x t ]+b0);

[0217] c t =f t ·c t-1 +i t tanh(W c ·[h t-1 , x t ]+b c );

[0218] h t =o t ·tanh(c t );

[0219] Among them, f t 、i t , o t Represent the activation vectors of the forget gate, input gate, and output gate, respectively, W f , W i , W o , W c is the weight matrix, b f , b i , b o , b c is the bias vector, c t is the state vector of the memory unit, h t is the output vector of the hidden layer;

[0220] S53, inputting the user behavior data sequence into the long short-term memory network, calculating the hidden state and memory unit state of each time step, and outputting the predicted user behavior feature vector;

[0221] S54. Use the attention mechanism to enhance the effect of long short-term memory networks, and dynamically allocate weights by calculating the dependencies between different time steps:

[0222] e t,t′ =v T tanh(W e [h t ; ht ′]+b e );

[0223]

[0224] h′ t =∑ t′ α t,t 'h t′ ;

[0225] Among them, e t,t′ represents the attention score between time steps t and t′, α t,t′ represents the attention weight, v, W e , b e Represent the weight vector, weight matrix and bias vector respectively, h′ t represents the hidden state after adjustment by the attention mechanism;

[0226] S55. Use Word2Vec technology to embed users and items into a low-dimensional vector space. First, mark the users and items and construct the interaction matrix M of users and items, where M ij represents the interaction frequency between user i and item j;

[0227] S56. Use the Word2Vec model to train the embedding vectors of users and items. For each user i, select the items that have been interacted with as positive samples and the items that have not been interacted with as negative samples. Construct a training data set and update the embedding vector by maximizing the similarity of positive samples and minimizing the similarity of negative samples:

[0228]

[0229] Among them, u i and v j Denote the embedding vectors of user i and item j respectively, D+ and D- denote the positive sample and negative sample sets respectively, and σ denotes the Sigmoid activation function;

[0230] S57. Store the trained user and item embedding vectors in the database for subsequent recommendation calculations. Optimize user and item embeddings through graph neural networks. Treat users and items as nodes in the graph, and interactive relationships as edges. Extract high-order features through graph convolution layers:

[0231]

[0232] in, represents the feature vector of node i in the l+1 layer, N(i) represents the set of neighbor nodes of node i, c ij is the normalization coefficient, W (l) and b (l) They represent the weight matrix and bias vector of the lth layer respectively.

[0233] S6. Provide users with personalized interest recommendations based on user portraits and real-time behavior data, and increase the diversity and novelty of recommendation results through hybrid recommendation algorithms.

[0234] In this implementation, S6 specifically includes:

[0235] S61. Provide personalized interest recommendations for users based on user portraits and real-time behavior data. First, extract the user's interest feature vector pu from the user portrait, where pu represents the interest feature of user u.

[0236] S62. Use a hybrid recommendation algorithm, combining collaborative filtering and content-based recommendation, to generate a candidate recommendation list and calculate the recommendation score for each candidate item j.

[0237]

[0238] in, represents the recommendation score of user u for item j, represents the recommendation score based on collaborative filtering, represents the content-based recommendation score, λ1 and λ2 are hybrid weight parameters;

[0239] S63: Based on the user's real-time behavior data, dynamically adjust the recommendation score, consider the user's real-time interest changes, and calculate the real-time adjusted recommendation score

[0240]

[0241] in, represents the adjusted recommendation score, β is the adjustment parameter, f(b u,j ) represents the real-time interaction feature function between user u and item j, b u,j Represents the real-time interaction feature vector between user u and item j;

[0242] S64: In order to ensure the diversity and novelty of the recommendation results, apply the diversity optimization algorithm to re-sort the recommendation list and calculate the recommendation score after diversity optimization.

[0243]

[0244] in, represents the recommendation score after diversity optimization, γ is the diversity weight parameter, and d(u, j) represents the content similarity difference between user u and item j;

[0245] S65. Use reinforcement learning algorithm to optimize recommendation strategy and learn user feedback through reinforcement learning model:

[0246]

[0247] Among them, L represents the cumulative reward of reinforcement learning, γ is the discount factor, and r t represents the immediate reward at time step t;

[0248] S66: Generate a final recommendation list, sort the recommendation scores after diversity optimization, select the N items with the highest scores as recommendation results, return the recommendation results to the user, and collect feedback on the recommendation results for updating the user profile and optimizing the recommendation model;

[0249] S67. Implement data encryption and access control strategies, desensitize users’ personal sensitive information, and continuously monitor and evaluate the performance of the recommendation system.

[0250] Embodiment 1:

[0251] In order to verify the feasibility of the present invention, the present invention is applied to the user recommendation system of a large social platform company B. Company B has millions of active users and generates a large amount of behavioral data every day, including clicks, likes, comments, shares, etc. Traditional recommendation systems have been unable to meet the personalized needs of users, resulting in poor user experience and increased user churn. In order to improve the accuracy and personalization of the recommendation system, Company B decided to adopt the user interest recommendation method based on big data analysis of the present invention.

[0252] Company B first collects user behavior data from social platforms in real time through API interfaces. These data include user clicks, likes, comments, shares, and other behaviors. Each piece of behavior data is recorded in the form of timestamp and behavior type. Through data cleaning algorithms, noise and outliers are removed to ensure the accuracy and integrity of the data. The cleaned data is stored in the Apache Hadoop distributed storage system to provide support for subsequent analysis.

[0253] Features are extracted from user behavior data, and users are divided into different interest groups using the K-means clustering algorithm. Each user's feature vector contains the user's interests, preferences, and social network relationships. Through cluster analysis, Company B can build accurate user portraits to help identify the interest characteristics of different user groups.

[0254] Company B uses Apache Kafka and Apache Flink to implement real-time processing of user behavior data. The Kafka cluster receives the user behavior data stream and splits it into multiple partitions. Flink consumes the data stream from Kafka, parses each data and sorts the data according to the user ID and timestamp. Through the sliding window technology, the user behavior data is divided into fixed time windows, and the data in each window is used to dynamically update the user profile.

[0255] Company B uses a hybrid recommendation algorithm that combines collaborative filtering and content-based recommendation methods. First, the similarity between users is calculated using the Pearson correlation coefficient, and collaborative filtering recommendations are made based on the similarity of user behaviors. Then, the similarity between items is calculated using cosine similarity, and recommendations are made based on item similarity. Finally, the hybrid recommendation algorithm combines user interest tags and item tags to generate diverse recommendation results.

[0256] To further improve the accuracy of recommendations, Company B introduced the long short-term memory network (LSTM) and attention mechanism to analyze the user's behavior sequence. The LSTM model can capture the long-term and short-term changes in user interests, and the attention mechanism enhances the focus on key behaviors. In addition, Company B also uses Word2Vec technology to embed users and items into a low-dimensional vector space and optimizes the embedded vectors through a graph neural network (GNN).

[0257] Based on real-time updated user portraits and behavior data, Company B can provide users with personalized interest recommendations. Through the diversity optimization algorithm, the system can balance the relevance and diversity of the recommendation results to ensure the novelty of the recommendation results. The reinforcement learning algorithm further optimizes the recommendation strategy and continuously adjusts the recommendation algorithm based on user feedback to improve the intelligence and adaptability of the recommendation.

[0258] In the three months of actual operation at Company B, the system's performance and user experience have been significantly improved. The specific data is shown in the following table:

[0259] Table 1: Comparison of data before and after deployment

[0260] Data Category Before deploying the system After deploying the system Recommended accuracy 72.5% 93.4% Customer satisfaction 68% 90% User activity 5 million 5.5 million Recommended response time 5 seconds Within 1 second Diversity and novelty 0.45 0.54 User acceptance of new recommendations 40% 70% Reinforcement learning optimization effect - 1500 times / month Data security 3 times / quarter 0 times / quarter

[0261] Through the method of the present invention, Company B not only solved the shortcomings of the recommendation system in terms of accuracy and personalization, but also significantly improved user satisfaction and platform activity. At the same time, through the application of real-time data processing and deep learning models, the system can dynamically adapt to changes in user needs and ensure the timeliness and diversity of recommendation results. Finally, the method of the present invention showed significant superiority in the application of Company B, providing an effective and efficient solution for the user recommendation system of the social platform.

[0262] It can be seen from the above embodiments that the present invention provides a deep understanding and dynamic adaptation of user behavior by combining technologies such as big data analysis, data mining, machine learning, recommendation algorithms and neural networks, and can accurately capture the interests and needs of users, thereby providing highly accurate and personalized recommendation services. In particular, through real-time data processing and dynamic user portrait updates, the system can quickly respond to users' immediate needs, improve the timeliness of recommendations and user satisfaction. The method of the present invention not only solves the shortcomings of traditional recommendation systems in terms of diversity and novelty, but also significantly improves the accuracy of recommendations and user experience, and has broad application prospects and commercial value.

[0263] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for recommending user interests on a social platform based on big data analysis, characterized in that: The steps include: S1. Collect user behavior data from social platforms in real time, clean the collected data, remove noise and outliers, and use the Apache Hadoop distributed storage system to store user data; S2. Extract features from user behavior data, use K-means clustering algorithm to divide users into different interest groups, and build user portraits; S3, using Apache Kafka to achieve real-time processing of user behavior data and update user profiles based on real-time user behavior data; S4. Perform collaborative filtering recommendations based on user behavior similarity and project similarity, analyze user interest tags and project tags, perform content-based recommendations through similarity calculation, and combine collaborative filtering and content-based recommendation algorithms to provide diverse recommendation results. S5. Use long short-term memory networks to analyze and predict user behavior sequences, and use Word2Vec technology to embed users and items into low-dimensional vector space for similarity calculation and recommendation. S6. Provide users with personalized interest recommendations based on user portraits and real-time behavior data, and increase the diversity and novelty of recommendation results through hybrid recommendation algorithms.

2. According to claim 1, a method for recommending user interests on a social platform based on big data analysis is characterized in that: The S1 specifically includes: S11, continuously monitor and capture user behavior data from social platforms through API interfaces, and the real-time data stream is time-stamped t i and user behavior i The sequence {(t1,b1),(t2,b2),…,(t n ,b n )}, where t i Indicates the timestamp of the i-th behavior, b i represents the i-th behavior type, and n represents the number of data points; S12. Apply data cleaning algorithms to process captured data, remove noise and irrelevant information in unstructured data, use mean and standard deviation to identify outliers, and define any data point that deviates from the mean by more than three standard deviations as an outlier: |b i -μ|>3σ; Among them, μ is the mean of user behavior data, σ is the standard deviation, and b i is the i-th behavior data, n is the number of data points; S13. For outliers in behavior data, they are defined as any behavior that deviates from the average user behavior pattern by more than three standard deviations. Outlier detection is based on calculating the mean μ of user behavior data in the past 24 hours. 24h and standard deviation σ 24h : |b i -m 24h |3p 24h ; Among them, μ 24h is the mean of user behavior data in the past 24 hours, σ 24h is the standard deviation, b j is the jth behavior data in the past 24 hours, and N is the number of data points in 24 hours; S14. Use Apache Hadoop distributed storage system to store cleaned data, format the stored data into structured JSON files, index the data during data storage, use timestamp and user ID as primary keys, archive old data, implement data encryption and access control strategies, and apply data desensitization technology to process personal sensitive information to comply with data protection regulations.

3. The method for recommending user interests on a social platform based on big data analysis according to claim 2, characterized in that: The S2 specifically includes: S21. Extract features from user behavior data: v i =(f i1 ,f i2 ,…,f im ); Among them, v i represents the feature vector of user i, f ij represents the jth eigenvalue, and m represents the total number of features; S22. Normalize the extracted feature data and use the maximum and minimum normalization method to scale the feature values ​​to the [0,1] interval: Among them, f′ ij represents the normalized eigenvalue, min(f j ) and max(f j ) represent the features f j The minimum and maximum values ​​of S23, use K-means clustering algorithm to divide users into different interest groups, randomly select k initial cluster centers, denoted as c1, c2, ..., c k For each user i, calculate the Euclidean distance between it and all cluster centers and assign user i to the cluster center c that is closest to it. j : Among them, d(v i ,c j ) represents the relationship between user i and cluster center c j The Euclidean distance, f il represents the lth feature value of user i, c jl represents the lth eigenvalue of cluster center j; Among them, c j represents the new coordinates of cluster center j, C j represents the set of users belonging to cluster center j, |C j | represents the set C j The number of users in S24, repeating the allocation and updating steps until the location of the cluster center no longer changes significantly, and finally determining k user interest groups; S25. Build a user portrait, assign each user to a corresponding interest group, and combine the user's feature vector with the group feature to generate a user portrait: p i =αv i +(1-a)c j ; Among them, p i represents the final portrait vector of user i, α is an adjustment parameter that controls the weight ratio of user characteristics and group characteristics, and c j represents the cluster center of the group to which user i belongs; S26. Use principal component analysis technology to reduce the dimensionality of high-dimensional user feature vectors and simplify the complexity of user portraits: in, is the user feature vector after dimensionality reduction, and W is the matrix containing the first k principal components.

4. The method for recommending user interests on a social platform based on big data analysis according to claim 3, characterized in that: The S3 specifically includes: S31, extracting real-time data stream from user behavior data with timestamp t i and user behavior i The sequence {(t1,b1),(t2,b2),…,(t n ,b n )}, where t i Indicates the timestamp of the i-th behavior, b i represents the i-th behavior type, and n represents the number of data points; S32. Use Apache Kafka to implement real-time data stream processing. The Kafka cluster receives the user behavior data stream, splits it into multiple partitions, and calculates the offset of each partition: Among them, offset i Indicates the offset of the i-th data, size(b j ) represents the size of the j-th behavior data; S33, the user behavior data stream is transmitted to Apache Flink for real-time processing. Flink consumes the data stream from the Kafka cluster, parses each data, and i and timestamp t i Sort the data: sorted_data=sort({(ID1,t1),(ID2,t2),…,(ID n ,t n )}); Among them, sorted_data represents the data set sorted by user ID and timestamp; S34. Perform window processing on the sorted data. Use sliding window technology to divide the user behavior data into fixed time windows. The size of each window is w and the sliding step is s: window k ={(t i ,b i )∣t i ∈[t k ,t k +w)}; Among them, windwo k represents the kth time window, t k Indicates the start time of the window; S35: Extract features from the data in each window and calculate the behavior feature vector of each user in the current window. in, represents the behavior feature vector of user i in the current window, |W i | represents the number of behavior data belonging to user i in the window, b j The feature vector representing the jth behavior data; S36. Input the feature vector of each window into the recurrent neural network to capture the time dependency of user behavior: h t =σ(W xh x t +W hh h t-1 +b h ); Among them, h t represents the hidden state at time step t, σ is the activation function, and W xh is the weight matrix input to the hidden layer, W hh is the weight matrix from hidden layer to hidden layer, x t is the input feature vector of the current time step, h t-1 is the hidden state of the previous time step, b h is the bias vector of the hidden layer; S37. Update the user portrait according to the output of the recursive neural network, store the updated user portrait in the distributed database system, implement data encryption and access control strategies, and apply data desensitization technology to process personal sensitive information.

5. The method for recommending user interests on a social platform based on big data analysis according to claim 4, characterized in that: The S4 specifically includes: S41. Collaborative filtering recommendation based on user behavior similarity. First, calculate the similarity between each user using the Pearson correlation coefficient: Among them, sim(u,v) represents the similarity between user u and user v, r u,i and r v,i They represent the ratings of user u and user v on item i, respectively. and They represent the average ratings of user u and user v respectively, and I represents the set of items rated by users together; S42. Collaborative filtering recommendation based on item similarity. First, calculate the cosine similarity between each item: Among them, sim(i,j) represents the similarity between item i and item j, r u,i and r u,j They represent the ratings of item i and item j by user u, and U represents the set of users who have rated item i and item j; S43. Combine user behavior similarity and item similarity to make comprehensive recommendations. For each user u, predict the user's rating for unrated item j based on user similarity and item similarity: in, represents the predicted rating of user u for item j, represents the average rating of user u, sim(u,v) represents the similarity between user u and user v, r v,j represents the rating of item j by user v, and U represents the set of users similar to user u; S44, analyze user interest tags and project tags, perform content-based recommendations based on tag similarity, and calculate user interest tag vector t u and the item label vector t j The similarity between: Among them, sim(t u ,t j ) represents the user interest tag vector t u and the item label vector t j The similarity between ||t u || and ||t j || represents the modulus of the user interest tag vector and the item tag vector respectively; S45. Based on user interest tags and combined with user historical behavior data, deep learning models are used to mine potential points of interest and extract high-order features through deep learning models: h l =f(W l h l-1 +b l ); Among them, h l represents the hidden layer output of the lth layer, f represents the activation function, W l represents the weight matrix of the lth layer, h l-1 represents the hidden layer output of the l-1th layer, b l Represents the bias vector of the lth layer; S46. Combine collaborative filtering recommendation, content-based recommendation and deep learning model recommendation results to generate a final recommendation list. Use a hybrid recommendation algorithm to calculate the comprehensive recommendation score based on the user's historical behavior data, label similarity and the output of the deep learning model: in, represents the comprehensive predicted score of user u for item j, represents the prediction score based on collaborative filtering, represents the content-based prediction score, It represents the prediction score based on the deep learning model, and λ1, λ2, and λ3 are the mixed weight parameters.

6. A method for recommending user interests on a social platform based on big data analysis according to claim 5, characterized in that: The S5 specifically includes: S51. Use the long short-term memory network to analyze and predict the user's behavior sequence, convert the user behavior data sequence into the input format of the long short-term memory network, and the input of each time step is represented as a vector x t , whose dimension is the number of user behavior features; S52. Construct LSTM network structure: f t =σ(W f ·[h t-1 ,x t ]+b f ); i t =σ(W i ·[h t-1 ,x t ]+b i ); the t =σ(W o ·[h t-1 ,x t ]+b o ); c t =f t ·c t-1 +i t ·tanh(W c ·[h t-1 ,x t ]+b c ); h t =o t ·tanh(c t ); Among them, f t 、i t , o t Represent the activation vectors of the forget gate, input gate, and output gate, respectively, W f , W i , W o , W c is the weight matrix, b f 、b i 、b o 、b c is the bias vector, c t is the state vector of the memory unit, h t is the output vector of the hidden layer; S53, inputting the user behavior data sequence into the long short-term memory network, calculating the hidden state and memory unit state of each time step, and outputting the predicted user behavior feature vector; S54. Use the attention mechanism to enhance the effect of long short-term memory networks, and dynamically allocate weights by calculating the dependencies between different time steps: e t,t' =v T tanh(W e [h t ;h t' ]+b e ); h' t =∑ t' a t,t' h t' ; Among them, e t,t' represents the attention score between time steps t and t', α t,t' represents the attention weight, v, W e 、b e Respectively represent the weight vector, weight matrix and bias vector, h' t represents the hidden state after adjustment by the attention mechanism; S55. Use Word2Vec technology to embed users and items into a low-dimensional vector space. First, mark the users and items and construct the interaction matrix M of users and items, where M ij represents the interaction frequency between user i and item j; S56. Use the Word2Vec model to train the embedding vectors of users and items. For each user i, select the items that have been interacted with as positive samples and the items that have not been interacted with as negative samples. Construct a training data set and update the embedding vector by maximizing the similarity of positive samples and minimizing the similarity of negative samples: Among them, u i and v j Denote the embedding vectors of user i and item j respectively, D + and D - Represent the positive sample and negative sample sets respectively, σ represents the Sigmoid activation function; S57. Store the trained user and item embedding vectors in the database for subsequent recommendation calculations. Optimize user and item embeddings through graph neural networks. Treat users and items as nodes in the graph, and interactive relationships as edges. Extract high-order features through graph convolution layers: in, represents the feature vector of node i in the l+1 layer, N(i) represents the set of neighbor nodes of node i, c ij is the normalization coefficient, W (l) and b (l) They represent the weight matrix and bias vector of the lth layer respectively.

7. A method for recommending user interests on a social platform based on big data analysis according to claim 6, characterized in that: The S6 specifically includes: S61. Provide personalized interest recommendations for users based on user portraits and real-time behavior data. First, extract the user's interest feature vector p from the user portrait. u , where p u Represents the interest characteristics of user u; S62. Use a hybrid recommendation algorithm, combining collaborative filtering and content-based recommendation, to generate a candidate recommendation list and calculate the recommendation score for each candidate item j. in, represents the recommendation score of user u for item j, represents the recommendation score based on collaborative filtering, represents the content-based recommendation score, λ1 and λ2 are hybrid weight parameters; S63: Based on the user's real-time behavior data, dynamically adjust the recommendation score, consider the user's real-time interest changes, and calculate the real-time adjusted recommendation score in, represents the adjusted recommendation score, β is the adjustment parameter, f(b u,j ) represents the real-time interaction feature function between user u and item j, b u,j Represents the real-time interaction feature vector between user u and item j; S64: In order to ensure the diversity and novelty of the recommendation results, apply the diversity optimization algorithm to re-sort the recommendation list and calculate the recommendation score after diversity optimization. in, represents the recommendation score after diversity optimization, γ is the diversity weight parameter, and d(u,j) represents the content similarity difference between user u and item j; S65. Use reinforcement learning algorithm to optimize recommendation strategy and learn user feedback through reinforcement learning model: Among them, L represents the cumulative reward of reinforcement learning, γ is the discount factor, and r t represents the immediate reward at time step t; S66: Generate a final recommendation list, sort the recommendation scores after diversity optimization, select the N items with the highest scores as recommendation results, return the recommendation results to the user, and collect feedback on the recommendation results for updating the user profile and optimizing the recommendation model; S67. Implement data encryption and access control strategies, desensitize users’ personal sensitive information, and continuously monitor and evaluate the performance of the recommendation system.

Citation Information

Patent Citations

  • User smart recommendation system based on Internet user features

    CN107222562A

  • Information technology consultation service method and system based on correlation analysis

    CN117407571A

  • Live broadcast accurate drainage method and system based on Internet big data analysis

    CN117768665A

  • Efficient recommendation algorithm and system for large model

    CN117909589A

  • Social recommendation method based on multi-feature heterogeneous graph neural networks

    US20220414792A1

Cited By

  • User portrait generation method and system based on behavior data

    CN119048147A

  • Method, device and equipment for improving retention of user in community and storage medium

    CN119071354A

  • Digital scene design and compiling drawing system based on AI features

    CN119129432A

  • User personalized content pushing system and promotion method based on big data

    CN119646319A

  • E-commerce recommendation method based on false comment detection optimization

    CN119887333A