Real-time personalized recommendation system
Through the real-time personalized recommendation system, algorithms such as TF-IDF and RNN are used to extract user and product features, solving the problems of data sparsity and cold start of new users in social networks, and achieving more accurate and dynamic personalized recommendation effects.
Patent Information
- Application Number
- CN202410435756.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional recommendation systems face data sparsity problems and new user cold start problems in social networks, making it difficult to provide accurate personalized recommendations.
A real-time personalized recommendation system is used to extract user interest features through the TF-IDF algorithm and convolutional neural network (CNN), combined with the recurrent neural network (RNN) to model user behavior sequences, and the TF-IDF algorithm is used to extract product features, and real-time Data flow processing and feedback optimize recommendation algorithms to achieve personalized recommendations.
It improves the accuracy and difference of recommendations, can handle sparse data, identify changes in user interests, dynamically update models, provide recommendation results that are more in line with user needs, mine long-tail information, and reduce computational complexity.
Smart Images

Figure CN118568335A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of information recommendation, and specifically refers to a real-time personalized recommendation system. Background Art
[0002] In today's Internet era, recommendation systems have become a key technology in platforms such as e-commerce websites and social networks. By analyzing user behavior and interests, recommendation systems provide users with personalized information and suggestions. The goal of recommendation systems is to help users efficiently discover products, news, and potential social relationships of interest.
[0003] However, traditional recommendation systems have shown some shortcomings when dealing with the challenges of the new social network environment. The scale-free nature of social networks causes recommendation systems to face data sparsity problems, where a small number of users have a large number of social relationships, while most users have limited social data. In addition, the cold start problem of new users also affects the effectiveness of the recommendation system. Due to the lack of interest data related to new users, traditional recommendation systems find it difficult to provide accurate personalized recommendations. Summary of the invention
[0004] In view of the above situation, in order to solve some shortcomings of traditional recommendation systems in dealing with challenges in the new environment of social networks, the scale-free characteristics of social networks cause the recommendation system to face data sparsity problems. The present invention provides a real-time personalized recommendation system. By using the TF-IDF algorithm, the system can better model the user's interest in goods / services. According to the user's historical behavior and key features related to goods / services, the user's interest can be more accurately inferred, thereby achieving personalized recommendations. The technical solution adopted by the present invention is as follows: The present invention provides a real-time personalized recommendation system, including:
[0005] Data collection module: responsible for collecting users' real-time behavior data;
[0006] Real-time data processing module: processes the collected real-time data to extract key features and identify user interests and behavior patterns;
[0007] User modeling module: builds user models based on user historical behaviors and real-time data to understand user preferences and interests;
[0008] Recommendation algorithm module: Based on user models and product / service information, implement personalized recommendation algorithms to provide users with customized product and service recommendations;
[0009] Feedback processing module: processes user feedback information, including click feedback, purchase feedback, evaluation, etc., to adjust and optimize the recommendation algorithm;
[0010] Recommendation result display module: displays personalized recommendation results on the front-end interface in a user-friendly manner;
[0011] Real-time update module: ensures that the recommendation system can respond to users' real-time behaviors and changes in a timely manner, and update user models and recommendation results.
[0012] Furthermore, the real-time behavior data includes browsing history, click history, purchase history, and search history.
[0013] Furthermore, the real-time data processing module includes:
[0014] A data receiving unit receives real-time data from a data collection module;
[0015] The data processing and feature extraction unit processes the received real-time data, extracts key features, and identifies the user's interests and behavior patterns;
[0016] The real-time analysis and calculation unit uses real-time data stream processing technology to perform real-time data analysis and calculation in order to quickly respond to changes in user behavior;
[0017] The user behavior modeling unit builds a real-time model of the user based on real-time processed data to better understand the user's preferences and interests.
[0018] Furthermore, the data processing and feature extraction unit adopts a convolutional neural network algorithm, and the algorithm formula is as follows:
[0019] Convolution operation:
[0020] Convolution operation is the core operation in CNN, which is used to extract local features of input data;
[0021] For the input feature map X and convolution kernel K, the mathematical formula of the convolution operation is:
[0022] (X*K)(i,j)=∑ m ∑ n X(i+m,j+n)·K(m,n);
[0023] Among them, X*K is the convolution result, i and j are the coordinates of the output feature map, m and n are the coordinates of the convolution kernel; pooling operation:
[0024] The pooling operation is used to reduce the spatial size of the feature map, reduce the amount of calculation, and retain the main features;
[0025] For the input feature map X, the mathematical formula of the pooling operation is usually maximum pooling or average pooling;
[0026] Max Pooling: Y(i, j) = max m,nX(i·s+m, j·s+n);
[0027]
[0028] Among them, Y is the feature map after pooling, s is the stride of pooling, and m and n are the sizes of pooling;
[0029] Fully connected layer:
[0030] The fully connected layer is used to connect the outputs of the convolutional layer and the pooling layer and generate the final output;
[0031] For input X and weight matrix W, the mathematical formula of the fully connected layer is;
[0032] Y = f(W·X+b);
[0033] Among them, f is the activation function, W is the weight matrix, and b is the bias term.
[0034] Furthermore, the user modeling module includes:
[0035] Feature extraction unit, which extracts key features from users’ historical behaviors and real-time data, and can describe users’ preferences, interests, and behavior patterns;
[0036] The user model training unit uses a machine learning algorithm to train the extracted user features and establish a user model;
[0037] Real-time update unit, ensuring that the user model can be updated in a timely manner to reflect the user's latest behavior and interest changes;
[0038] The user interest prediction unit predicts the user's interest in different products or services based on the user model so as to be used in the recommendation algorithm.
[0039] Furthermore, the recommendation algorithm module includes:
[0040] User feature input unit, which inputs user features into the recommendation algorithm model, usually extracted from the user modeling module;
[0041] A product / service feature input unit, which inputs the features of a product or service into a recommendation algorithm model;
[0042] The personalized recommendation algorithm unit generates personalized recommendation results using the recommendation algorithm based on user characteristics and product / service characteristics; the recommendation result sorting and filtering unit sorts and filters the generated recommendation results to ensure that the most relevant and attractive recommendation content is presented to the user first;
[0043] The recommendation result output unit outputs the sorted and filtered recommendation results to other parts of the recommendation system so that they can be finally presented to the user.
[0044] Furthermore, the product / service feature input unit adopts the TF-IDF algorithm, and the algorithm formula is as follows: Term Frequency (TF), which is used to measure the frequency of occurrence of a term in a document;
[0045] formula: Inverse Document Frequency (IDF), which is used to measure the importance of a word in the entire document collection;
[0046] formula: TF-IDF, which comprehensively considers the frequency of a word in a document and its importance in the entire document collection;
[0047] Formula: TF-IDF(t)=TF(t)×IDF(t).
[0048] Furthermore, the personalized recommendation algorithm unit adopts a recurrent neural network algorithm, and the algorithm formula is as follows:
[0049] For a time step t, the input of the RNN is the input x at the current moment t , the hidden state h at the previous moment t-1 , the output is the hidden state h at the current moment t and the corresponding output y t ;
[0050] Hide status updates:
[0051] h t =tanh(W hh ·h t-1 +W hx ·x t +b h );
[0052] Among them, W hh is the weight matrix from hidden state to hidden state, W hx is the weight matrix input to the hidden state, b h is the bias term, tanh is the hyperbolic tangent activation function;
[0053] Output calculation:
[0054] y t =W yh ·h t +b y ;
[0055] Among them, W yh is the weight matrix from hidden state to output, b y is the output bias term.
[0056] This solution also discloses an operation method of the real-time personalized recommendation system, which mainly includes the following steps:
[0057] Step A1: In the data collection phase, use front-end tracking, log collection, and API calls to collect user behavior data in real time;
[0058] Step A2: Data transmission and storage, the collected real-time data is transmitted to the system background and stored for subsequent processing;
[0059] Step A3: In the real-time data processing stage, the collected real-time data is processed and analyzed using real-time data stream processing technology to extract key features;
[0060] Step A4: Feature engineering: further process the extracted real-time data features and perform feature engineering to better express the user's behavior and interests;
[0061] Step A5: In the user modeling phase, the user model is established and updated based on the data processed by feature engineering;
[0062] Step A6: Real-time recommendation algorithm, using the established user model and product / service information to implement a personalized recommendation algorithm;
[0063] Step A7: Feedback processing and analysis: process user feedback information, establish a feedback mechanism, collect user feedback data, and optimize and adjust the recommendation system by analyzing feedback information;
[0064] Step A8: Generate recommendation results: Generate personalized recommendation results based on the output of the real-time recommendation algorithm for display to the user;
[0065] Step A9: Interface display and interaction: design the user interface to display the personalized recommendation results on the front-end interface in a user-friendly manner;
[0066] Step A10: Real-time update and optimization to ensure that the recommendation system can respond to users' real-time behaviors and changes in a timely manner. Real-time data processing and model update strategies are adopted to ensure that the system can quickly make corresponding adjustments when user behaviors change, and regular optimization work is carried out.
[0067] The beneficial effects achieved by the present invention using the above structure are as follows: The present invention provides a real-time personalized recommendation system, which realizes the following
[0068] Beneficial effects:
[0069] (1) Sequence modeling: RNN has advantages in processing sequence data and can better capture the sequence information of user behavior and interests. For recommendation systems, user behaviors usually occur in chronological order, such as browsing, clicking, purchasing, etc. By using RNN, the system can better model these sequences and improve its ability to perceive changes in user interests.
[0070] (2) Temporal relevance: RNN can consider temporal relevance and has a better ability to process the sequence of user behaviors. This helps to identify users’ long-term and short-term interests and make personalized recommendations more accurately.
[0071] (3) Flexible input length: RNN has a certain flexibility in the length of the input sequence and can process user behavior sequences of different lengths. This is beneficial for personalized recommendation systems because the lengths of behavior sequences of different users may vary.
[0072] (4) Contextual information: RNN can capture contextual information and understand the context behind the user’s current behavior. In the recommendation system, this helps to better understand the user’s current interests and needs and improve the accuracy of recommendations.
[0073] (5) Dynamic update: Since RNN has the ability to dynamically update weights, the model can be dynamically adjusted according to the user’s real-time behavior and feedback information, so that the recommendation results are more in line with the user’s current interests and preferences.
[0074] (6) Key feature extraction: The TF-IDF algorithm can effectively extract the key features of goods / services, focusing on words that appear frequently in a document but are rare in the entire document collection. This helps the system better understand the characteristics and features of goods / services.
[0075] (7) Weighting of Distinguishing Features: TF-IDF has distinguishing features between different goods / services. By weighting keywords, the recommendation system can pay more attention to unique goods / services, thereby improving the differentiation of recommendations.
[0076] (8) Processing long-tail information: The TF-IDF algorithm helps discover the characteristics of unpopular products / services because it assigns higher weights to words that are relatively rare in the entire document collection. This helps the system mine long-tail information and provide more comprehensive and diverse recommendation options.
[0077] (9) Interest modeling: By using the TF-IDF algorithm, the system can better model the user's interest in products / services. Based on the user's historical behavior and key features related to products / services, the user's interests can be more accurately inferred, thereby achieving personalized recommendations.
[0078] (10) Sparse feature processing: In the feature representation of goods / services, the TF-IDF algorithm has certain advantages in processing the sparsity of data. For large-scale sets of goods / services, TF-IDF can efficiently encode features and reduce computational complexity. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] Figure 1 This is a flow chart of the real-time personalized recommendation system proposed by the present invention.
[0080] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0081] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0082] Embodiment 1:
[0083] See also Figure 1 As shown, this embodiment is a real-time personalized recommendation system, including a data collection module, a real-time data processing module, a user modeling module, a recommendation algorithm module, a feedback processing module, a recommendation result display module and a real-time update module;
[0084] Among them, the data collection module is responsible for collecting users' real-time behavior data;
[0085] Among them, the real-time data processing module: processes the collected real-time data to extract key features and identify user interests and behavior patterns;
[0086] Among them, the user modeling module: builds a user model based on the user's historical behavior and real-time data to understand the user's preferences and interests;
[0087] Among them, the recommendation algorithm module: based on the user model and product / service information, implements a personalized recommendation algorithm to provide users with customized product and service recommendations;
[0088] Among them, the feedback processing module: processes user feedback information, including click feedback, purchase feedback, evaluation, etc., to adjust and optimize the recommendation algorithm;
[0089] Among them, the recommendation result display module: displays personalized recommendation results on the front-end interface in a user-friendly manner;
[0090] Among them, the real-time update module ensures that the recommendation system can respond to users' real-time behaviors and changes in a timely manner, and update user models and recommendation results.
[0091] Embodiment 2:
[0092] See also Figure 1 As shown, this embodiment is a method for using a real-time personalized recommendation system, comprising the following steps:
[0093] Step A1: In the data collection phase, use front-end tracking, log collection, and API calls to collect user behavior data in real time;
[0094] Step A2: Data transmission and storage, the collected real-time data is transmitted to the system background and stored for subsequent processing;
[0095] Step A3: In the real-time data processing stage, the collected real-time data is processed and analyzed using real-time data stream processing technology to extract key features;
[0096] Step A4: Feature engineering: further process the extracted real-time data features and perform feature engineering to better express the user's behavior and interests;
[0097] Step A5: In the user modeling phase, the user model is established and updated based on the data processed by feature engineering;
[0098] Step A6: Real-time recommendation algorithm, using the established user model and product / service information to implement a personalized recommendation algorithm; Step A7: Feedback processing and analysis, processing user feedback information, establishing a feedback mechanism, collecting user feedback data, and optimizing and adjusting the recommendation system by analyzing feedback information;
[0099] Step A8: Generate recommendation results: Generate personalized recommendation results based on the output of the real-time recommendation algorithm for display to the user;
[0100] Step A9: Interface display and interaction: design the user interface to display the personalized recommendation results on the front-end interface in a user-friendly manner;
[0101] Step A10: Real-time update and optimization to ensure that the recommendation system can respond to users' real-time behaviors and changes in a timely manner. Real-time data processing and model update strategies are adopted to ensure that the system can quickly make corresponding adjustments when user behaviors change, and regular optimization work is carried out.
[0102] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
[0103] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. Real-time personalized recommendation system, characterized by: include: Data collection module: responsible for collecting users' real-time behavior data; Real-time data processing module: processes the collected real-time data to extract key features and identify user interests and behavior patterns; User modeling module: builds user models based on user historical behaviors and real-time data to understand user preferences and interests; Recommendation algorithm module: Based on user models and product / service information, implement personalized recommendation algorithms to provide users with customized product and service recommendations; Feedback processing module: processes user feedback information, including click feedback, purchase feedback, evaluation, etc., to adjust and optimize the recommendation algorithm; Recommendation result display module: displays personalized recommendation results on the front-end interface in a user-friendly manner; Real-time update module: ensures that the recommendation system can respond to users' real-time behaviors and changes in a timely manner, and update user models and recommendation results.
2. The real-time personalized recommendation system according to claim 1, characterized in that: The real-time behavior data includes browsing history, click history, purchase history, and search history.
3. The real-time personalized recommendation system according to claim 2, characterized in that: The real-time data processing module includes: A data receiving unit receives real-time data from a data collection module; The data processing and feature extraction unit processes the received real-time data, extracts key features, and identifies the user's interests and behavior patterns; The real-time analysis and calculation unit uses real-time data stream processing technology to perform real-time data analysis and calculation in order to quickly respond to changes in user behavior; The user behavior modeling unit builds a real-time model of the user based on real-time processed data to better understand the user's preferences and interests.
4. The real-time personalized recommendation system according to claim 3, characterized in that: The data processing and feature extraction unit adopts a convolutional neural network algorithm, and the algorithm formula is as follows: Convolution operation: Convolution operation is the core operation in CNN, which is used to extract local features of input data; For the input feature map X and convolution kernel K, the mathematical formula of the convolution operation is: (X*K)(i,j)=∑ m ∑ n X(i+m,j+n)·K(m,n); Among them, X*K is the convolution result, i and j are the coordinates of the output feature map, and m and n are the coordinates of the convolution kernel; Pooling operation: The pooling operation is used to reduce the spatial size of the feature map, reduce the amount of calculation, and retain the main features; For the input feature map X, the mathematical formula of the pooling operation is usually maximum pooling or average pooling; Max Pooling:Y(i,j)=max m,n X(i·s+m,j·s+n); Among them, Y is the feature map after pooling, S is the stride of pooling, and m and n are the sizes of pooling; Fully connected layer: The fully connected layer is used to connect the outputs of the convolutional layer and the pooling layer and generate the final output; For input X and weight matrix W, the mathematical formula of the fully connected layer is; Y = f(W·X+b); Among them, f is the activation function, W is the weight matrix, and b is the bias term.
5. The real-time personalized recommendation system according to claim 4, characterized in that: The user modeling module includes: Feature extraction unit, which extracts key features from users’ historical behaviors and real-time data, and can describe users’ preferences, interests, and behavior patterns; The user model training unit uses a machine learning algorithm to train the extracted user features and establish a user model; Real-time update unit, ensuring that the user model can be updated in a timely manner to reflect the user's latest behavior and interest changes; The user interest prediction unit predicts the user's interest in different products or services based on the user model so as to be used in the recommendation algorithm.
6. The real-time personalized recommendation system according to claim 5, characterized in that: The recommendation algorithm modules include: User feature input unit, which inputs user features into the recommendation algorithm model, usually extracted from the user modeling module; A product / service feature input unit, which inputs the features of a product or service into a recommendation algorithm model; Personalized recommendation algorithm unit, which uses recommendation algorithm to generate personalized recommendation results based on user characteristics and product / service characteristics; A recommendation result sorting and filtering unit sorts and filters the generated recommendation results to ensure that the most relevant and attractive recommendation content is presented to the user first; The recommendation result output unit outputs the sorted and filtered recommendation results to other parts of the recommendation system so that they can be finally presented to the user.
7. The real-time personalized recommendation system according to claim 6, characterized in that: The product / service feature input unit adopts the TF-IDF algorithm, and the algorithm formula is as follows: Term Frequency (TF), which is used to measure the frequency of a term in a document; official: Inverse Document Frequency (IDF), which is used to measure the importance of a word in the entire document collection; official: TF-IDF, which comprehensively considers the frequency of a word in a document and its importance in the entire document collection; Formula: TF-IDF(t)=TF(t)×IDF(t).
8. The real-time personalized recommendation system according to claim 7, characterized in that: The personalized recommendation algorithm unit adopts a recurrent neural network algorithm, and the algorithm formula is as follows: For a time step t, the input of the RNN is the input x at the current moment t , the hidden state h at the previous moment t-1 , the output is the hidden state h at the current moment t and the corresponding output y t ; Hide status updates: h t =tanh(W hh ·h t-1 +W hx ·x t +b h ); Among them, W hh is the weight matrix from hidden state to hidden state, W hx is the weight matrix input to the hidden state, b h is the bias term, tanh is the hyperbolic tangent activation function; Output calculation: y t =W yh ·h t +b y ; Among them, W yh is the weight matrix from hidden state to output, b y is the output bias term.
9. The operation method of the real-time personalized recommendation system is characterized by: The operation using the real-time personalized recommendation system described in claim 8 mainly includes the following steps: Step A1: In the data collection phase, use front-end tracking, log collection, and API calls to collect user behavior data in real time; Step A2: Data transmission and storage, the collected real-time data is transmitted to the system background and stored for subsequent processing; Step A3: In the real-time data processing stage, the collected real-time data is processed and analyzed using real-time data stream processing technology to extract key features; Step A4: Feature engineering: further process the extracted real-time data features and perform feature engineering to better express the user's behavior and interests; Step A5: In the user modeling phase, the user model is established and updated based on the data processed by feature engineering; Step A6: Real-time recommendation algorithm, using the established user model and product / service information to implement a personalized recommendation algorithm; Step A7: Feedback processing and analysis: process user feedback information, establish a feedback mechanism, collect user feedback data, and optimize and adjust the recommendation system by analyzing feedback information; Step A8: Generate recommendation results: Generate personalized recommendation results based on the output of the real-time recommendation algorithm for display to the user; Step A9: Interface display and interaction: design the user interface to display the personalized recommendation results on the front-end interface in a user-friendly manner; Step A10: Real-time update and optimization to ensure that the recommendation system can respond to users' real-time behaviors and changes in a timely manner. Real-time data processing and model update strategies are adopted to ensure that the system can quickly make corresponding adjustments when user behaviors change, and regular optimization work is carried out.
Citation Information
Cited By
Smart park intelligent recommendation system based on data analysis
CN118964743A
Intelligent recommendation system for smart parks based on data analysis
CN118964743B
Effective weighted density peak clustering analysis method based on rough evidence theory
CN119862434A
Gravel information personalized recommendation method and platform based on user transaction behaviors
CN120655387A
Sandstone information personalized recommendation method and platform based on user transaction behavior
CN120655387B
