Intelligent right and interest exchange recommendation system
Through the intelligent rights exchange recommendation system, combined with data encryption and machine learning algorithms, the data security and accuracy problems of traditional recommendation systems are solved, personalized recommendation and efficient user experience are achieved, and multi-scenario application needs are adapted.
Patent Information
- Application Number
- CN202411018429.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional recommendation systems have a risk of data leakage in data transmission and storage. The data is not comprehensive enough and the algorithm is limited when analyzing user behavior, resulting in insufficient accurate recommendation results, slow response speed, and lack flexibility and adaptability, which limits its equity redemption. Efficiency of scenario application.
An intelligent equity redemption recommendation system was designed, including user management, points management, data security, recommendation engine, equity management, activity management, customer service and expansion functional modules, using data encryption, machine learning algorithms and big data analysis to provide personalized and enhance the security and response speed of the system through user feedback optimization algorithm.
It improves the accuracy and user experience of recommendations, enhances user participation and satisfaction, ensures data security and privacy, and adapts to rapidly changing user needs and technological development.
Smart Images

Figure CN118886957A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of recommendation systems, and in particular to an intelligent rights and interests exchange recommendation system. Background Art
[0002] The points system has undergone many evolutions, from the initial simple accumulation of points to the current diversified points redemption. The early points system was mainly concentrated in the retail industry, such as supermarkets and shopping malls. With the development of e-commerce, the points system has been widely used in various fields such as online shopping, airlines, hotel reservations, credit cards and banks. The modern points system has also introduced emerging technologies such as social media interaction and gamification elements to further enhance user experience and engagement. By accumulating points, customers are motivated to make repeated purchases and consumption, thereby enhancing customer loyalty, which can enhance the brand's position in the minds of customers and make them give priority to the brand when choosing products or services. Through the accumulation of points, companies can collect customer consumption behavior data to help analyze market demand and consumption habits. The points system increases customer interaction with the brand and enhances user experience through various promotional activities.
[0003] The recommendation system is an information filtering system that aims to provide users with personalized product, service or content recommendations by analyzing user behavior, preferences and needs, helping users find content that suits their interests and needs in a large amount of information. The point system and recommendation system can have common goals in improving customer experience and increasing customer loyalty. The recommendation system can use point data to analyze user consumption habits and preferences and provide more accurate personalized recommendations. The point system can increase the channels and methods for users to obtain points through the recommendation system's recommendation strategy, further motivating user participation and consumption behavior.
[0004] However, in general, traditional recommendation systems are prone to data leakage risks during data transmission and storage, lack effective data encryption measures, and may not provide accurate recommendation results due to incomplete data or algorithm limitations when analyzing user behavior and preferences. When processing large amounts of user data, traditional systems may respond slowly, affecting user experience. They may face complex operations and high costs during maintenance and upgrades, and often lack sufficient flexibility and adaptability when responding to rapidly changing user needs and technological developments. The above shortcomings also doom their recommendation systems to have great limitations in the multi-scenario application of equity exchange.
[0005] In summary, it is necessary to propose an intelligent equity exchange recommendation system to solve the above problems. Summary of the invention
[0006] The purpose of the present invention is to provide an intelligent rights exchange recommendation system to solve the problems raised in the above background technology.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] An intelligent rights exchange recommendation system, including a user management module, a points management module, a data security module, a recommendation engine module, a rights management module, an activity management module, a customer service module, and an expansion function module;
[0009] The user management module is used to provide user registration, identity authentication and membership level management;
[0010] The points management module is used for points recording, points redemption and points validity period management;
[0011] The data security module is used for data encryption, access control and security audit;
[0012] The recommendation engine module is used to establish user portraits, provide recommendation algorithms and feedback learning;
[0013] The equity management module is used for equity classification, inventory management, and equity listing and delisting;
[0014] The activity management module is used to provide promotion activities, activity registration and activity evaluation;
[0015] The customer service module is used to provide online customer service, work order tracking and problem explanation;
[0016] The extended function module is used for social sharing, virtual reality experience and predictive analysis.
[0017] Preferably, the user management module also includes a user registration unit, a user identity verification unit and a membership level management unit. The user registration unit is used to process the registration of new users, including information filling, verification and storage. The user identity verification unit is used to authenticate the user through a password, SMS verification code or two-factor verification. The membership level management unit is used to automatically upgrade or downgrade the user's membership level based on consumption points and activity participation. The membership levels include temporary members, ordinary members or senior members.
[0018] Preferably, the points management module also includes a points recording unit, a points redemption unit and a points validity period management unit. The points recording unit is used to record the points obtained by the user for each consumption, the points consumption record and the points change history. The points redemption unit enables the user to use points to redeem goods or services and is used to update the points balance in real time. The points validity period management unit is used to track the validity period of points, remind users of points that are about to expire, and process expired points.
[0019] Preferably, the data security module also includes a data encryption unit, an access control unit and a security audit unit. The data encryption unit is used to encrypt, store and transmit user data and points information to ensure data security. The access control unit is used to control access to data and functions of various parts of the system according to user roles and permissions. The security audit unit is used to record and monitor system access and operation logs, and discover and alarm potential security threats.
[0020] Preferably, the recommendation engine module also includes a user portrait unit, a recommendation algorithm unit and a feedback learning unit. The user portrait unit is used to generate a user portrait based on user behavior, interests, and consumption record data; the recommendation algorithm unit is used to apply a machine learning algorithm to analyze the user portrait and recommend personalized redemption content to different users; the feedback learning unit is used to continuously adjust and optimize the recommendation algorithm based on user feedback on the recommended content to improve the accuracy of the recommendation.
[0021] Preferably, the rights management module also includes a rights classification unit, an inventory management unit and a rights listing and delisting unit. The rights classification unit is used to classify and manage redeemable goods and services according to categories and membership levels. The inventory management unit is used to track and manage the inventory quantity of redeemable goods to prevent overselling. The rights listing and delisting unit is used to manage the listing and delisting status of goods and services to ensure that the redemption content seen by users is the latest.
[0022] Preferably, the activity management module also includes a promotion activity unit, an activity registration unit and an activity evaluation unit. The promotion activity unit is used to design and manage points promotion activities, including double points days and limited-time redemption discounts. The activity registration unit allows users to register for activities and is used to record activity participation. The activity evaluation unit is used to evaluate the effectiveness of activities and adjust activity strategies based on user participation and feedback.
[0023] Preferably, the customer service module also includes an online customer service unit, a work order tracking unit and a problem explanation unit. The online customer service unit is used to provide online customer service support and answer questions that users have during the points redemption process. The work order tracking unit is used to handle user complaints and problem feedback and track the progress of work order processing. The problem explanation unit is used to provide answers to frequently asked questions and usage guides to help users quickly solve problems.
[0024] Preferably, the extended function module also includes a social sharing unit, a virtual reality experience unit and a predictive analysis unit. The social sharing unit allows users to share redemption results on social media to increase system exposure and user interaction. The virtual reality experience unit is used to allow users to preview the actual experience of redeemable services related to travel and accommodation through virtual reality technology. The predictive analysis unit uses big data and AI technology to predict users' future consumption behavior and interest changes, and adjust recommendation strategies in advance.
[0025] Based on the above system, the present invention also proposes a smart equity exchange recommendation method, comprising the following steps:
[0026] S1. Data collection: collect basic user information, including name, age, gender, and contact information, use MySQL database for data storage, use AES encryption algorithm for data encryption, collect user consumption records and points information, including the amount, time, location, and points earned for each consumption, collect user behavior data, including browsing products, adding to shopping carts, and redemption history, and use React front-end framework and Djang back-end framework for data recording;
[0027] S2. Data processing: Clean the collected data, remove duplicate and erroneous data, classify and label the data, including consumption type, consumption frequency, and preferred products, and standardize the data to ensure that the data format of different data sources is consistent;
[0028] S3. User portrait construction: Analyze users' consumption habits and preferences, generate personalized user portraits, mark users' interests, common redemption methods and redemption preferences based on the user portraits, group users according to their consumption capacity and behavioral characteristics, and form user group portraits;
[0029] S4. Recommendation algorithm design: Choose to use Python's TF-IDFTerm Frequency-Inverse DocumentFrequency and cosine similarity to calculate product similarity, use Python's Surprise library to implement user-based and item-based collaborative filtering, combine collaborative filtering and content recommendation, use the weighted average method, define the input and output of the recommendation algorithm, including user portraits, product features, and recommendation results, and design evaluation indicators for the recommendation algorithm, including accuracy, recall rate, and user satisfaction;
[0030] S5. Model training: Use historical data to train the recommendation model, adjust model parameters to optimize the recommendation effect, use the GridSearchCV tool to determine the optimal parameters through the grid search method, use the root mean square error RMSE and mean absolute error MAE to evaluate the accuracy of the model, verify the trained model to ensure the accuracy and stability of the model, and use the cross-validation method to evaluate the model performance to prevent overfitting and underfitting;
[0031] S6. Recommendation generation: Based on the user's current consumption behavior and points, the recommendation model is called to generate recommendation results. Combined with user portraits and real-time data, the recommendation content is dynamically adjusted to generate a recommendation list, including recommended products, services and activities;
[0032] S7. Recommendation display: Use Figma or Sketch to design the user interface layout, display the generated recommendation results to users through the user interface, provide detailed product and service information, design a user-friendly recommendation interface, use Axure RP to make interactive prototypes, ensure that the recommended content is easy to understand and operate, provide multiple display methods, use HTML and CSS to implement the list display of recommendation results, use JavaScript and CSS to implement the carousel display of recommendation results, use React.js and Material-UI to implement the recommendation card display, use Bootstrap to implement the pop-up window display of recommendation results, use Vue.js and Vuetify to implement dynamic recommendation areas, and automatically update recommended content;
[0033] S8. User feedback collection: record the user's click, browse, and redemption behavior data on the recommended content, collect user feedback on the recommended content through questionnaires and user evaluations, analyze user feedback data, and evaluate the recommendation effect and user satisfaction;
[0034] S9. Recommendation optimization: Based on user feedback data, use the Scikit-learn library to adjust the hyperparameters of the recommendation algorithm through the Grid Search method to improve the recommendation effect. Based on the newly collected data, use Python's Pandas and Scikit-learn libraries to update the user portrait, maintain the timeliness of the recommendation system, monitor the operation of the recommendation system, and promptly discover and solve problems.
[0035] Compared with the prior art, the beneficial effects of the present invention are as follows: the intelligent rights and interests redemption recommendation system of the present invention utilizes big data technology to analyze the user's historical consumption data, points accumulation and preferences, thereby providing personalized rights and interests recommendations, improving the accuracy and relevance of recommendations, and utilizing machine learning algorithms to predict the user's future behavior and needs, and recommending rights and interests that may be of interest to the user in advance, thereby increasing the user's participation and satisfaction. According to the user's specific needs and interests, the system provides personalized customized recommendation services, so that each user can enjoy unique rights and interests recommendations, and enhance the user's sense of exclusivity and belonging. At the same time, the system also provides a user-friendly interactive interface, so that users can conveniently and quickly view and redeem recommended rights and interests, thereby improving the user's operating experience. A user feedback mechanism is provided to collect user feedback on recommendation results, continuously optimize recommendation algorithms and strategies, ensure continuous improvement of recommendation results, and utilize social recommendation mechanisms to encourage users to share and evaluate recommended rights and interests, expand brand influence and user groups through user word-of-mouth communication, and also use data encryption and privacy protection technologies to ensure the security and privacy of user data. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A topological diagram of a smart equity exchange recommendation system of the present invention;
[0037] Figure 2 This is a flow chart of the equity exchange recommendation method based on the intelligent equity exchange recommendation system of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in 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.
[0039] Example 1
[0040] See also Figure 1 , the present invention proposes an intelligent rights exchange recommendation system, which is composed of a user management module, a points management module, a data security module, a recommendation engine module, a rights management module, an activity management module, a customer service module and an expansion function module;
[0041] Among them, the user management module is used to provide user registration, identity authentication and member-level management, the points management module is used for points recording, points redemption and points validity period management, the data security module is used for data encryption, access control and security auditing, the recommendation engine module is used to establish user portraits, provide recommendation algorithms and feedback learning, the rights management module is used for rights classification, inventory management and rights and interests delisting and delisting, the activity management module is used to provide promotional activities, activity registration and activity evaluation, the customer service module is used to provide online customer service, work order tracking and problem explanation, and the extended function module is used for social sharing, virtual reality experience and predictive analysis.
[0042] In this embodiment, it is also necessary to explain that:
[0043] The user management module of this system also includes a user registration unit, a user identity authentication unit and a membership level management unit. The user registration unit is used to process the registration of new users, including information filling, verification and storage. The user identity authentication unit is used to authenticate users through passwords, SMS verification codes and two-factor verification methods. The membership level management unit is used to automatically upgrade or downgrade the user's membership level based on consumption points and activity participation. Membership levels include temporary members, ordinary members or senior members.
[0044] In this embodiment, it is also necessary to explain that:
[0045] The points management module of this system also includes a points recording unit, a points redemption unit and a points validity period management unit. The points recording unit is used to record the points obtained by the user for each consumption, the points consumption record and the points change history. The points redemption unit enables the user to use the points to redeem goods or services and is used to update the points balance in real time. The points validity period management unit is used to track the validity period of points, remind users of points that are about to expire, and handle expired points.
[0046] In this embodiment, it is also necessary to explain that:
[0047] The data security module of this system also includes a data encryption unit, an access control unit and a security audit unit. The data encryption unit is used to encrypt, store and transmit user data and points information to ensure data security. The access control unit is used to control access to data and functions of various parts of the system according to user roles and permissions. The security audit unit is used to record and monitor system access and operation logs, and discover and alarm potential security threats.
[0048] In this embodiment, it is also necessary to explain that:
[0049] The recommendation engine module of this system also includes a user portrait unit, a recommendation algorithm unit and a feedback learning unit. The user portrait unit is used to generate user portraits based on user behavior, interests, and consumption record data. The recommendation algorithm unit is used to apply machine learning algorithms, analyze user portraits, and recommend personalized redemption content for different users. The feedback learning unit is used to continuously adjust and optimize the recommendation algorithm based on user feedback on the recommended content, thereby improving the accuracy of the recommendation.
[0050] In this embodiment, it is also necessary to explain that:
[0051] The rights and interests management module of this system also includes a rights and interests classification unit, an inventory management unit and a rights and interests listing and delisting unit. The rights and interests classification unit is used to classify and manage redeemable goods and services according to categories and membership levels. The inventory management unit is used to track and manage the inventory quantity of redeemable goods to prevent overselling. The rights and interests listing and delisting unit is used to manage the listing and delisting status of goods and services to ensure that the redemption content seen by users is the latest.
[0052] In this embodiment, it is also necessary to explain that:
[0053] The activity management module of this system also includes a promotion activity unit, an activity registration unit and an activity evaluation unit. The promotion activity unit is used to design and manage point promotion activities, including double point days and limited-time redemption discounts. The activity registration unit allows users to register for activities and is used to record activity participation. The activity evaluation unit is used to evaluate the effectiveness of activities and adjust activity strategies based on user participation and feedback.
[0054] In this embodiment, it is also necessary to explain that:
[0055] The customer service module of this system also includes an online customer service unit, a work order tracking unit and a problem explanation unit. The online customer service unit is used to provide online customer service support and answer users' questions during the points redemption process. The work order tracking unit is used to handle user complaints and problem feedback and track the progress of work order processing. The problem explanation unit is used to provide answers to frequently asked questions and usage guides to help users quickly solve problems.
[0056] In this embodiment, it is also necessary to explain that:
[0057] The extended functional modules of this system also include a social sharing unit, a virtual reality experience unit and a predictive analysis unit. The social sharing unit allows users to share redemption results on social media to increase system exposure and user interaction. The virtual reality experience unit is used to allow users to preview the actual experience of redeemable services related to travel and accommodation through virtual reality technology. The predictive analysis unit uses big data and AI technology to predict users' future consumption behavior and interest changes, and adjust recommendation strategies in advance.
[0058] Example 2
[0059] See also Figure 2 Based on the above intelligent equity exchange recommendation system, when the system is actually applied, the intelligent equity exchange recommendation method, specifically, the implementation steps are as follows:
[0060] The specific implementation steps of step S1 data collection are:
[0061] When a user registers or logs in, the user's name, age, gender, and contact information are collected through a form. The React front-end framework and the Node.js back-end framework are used to create the form and submit the data. The front-end form is first validated, and then the back-end data is received and validated before being stored in the database.
[0062] The collected user information is stored in the database, using MySQL relational database for data storage. The process includes data reception, data formatting and database storage;
[0063] Encrypt user data to ensure data security during transmission and storage. Use AES encryption algorithm to encrypt data. The process includes data reception, data encryption and database storage.
[0064] Every time a user consumes, the backend system automatically records the amount, time, location and points earned. The Spring Boot backend framework is used for data collection and processing. The process includes consumption data reception, data formatting and database storage. The points earned by the user are calculated based on the consumption amount. A custom algorithm is used for point calculation. The process includes consumption data reception, point calculation and data storage.
[0065] The formula for calculating points is: points = amount * pointRate;
[0066] Store consumption records and points information in the database, using a relational database for data storage. The process includes data reception, data formatting, and database storage.
[0067] When users browse products, the front-end and back-end linkage records the product information browsed by users. The React front-end framework and the Django back-end framework are used for data recording. The process is front-end browsing data collection, back-end data reception and database storage.
[0068] When a user adds a product to the shopping cart, the operation is recorded and data is recorded using the Vue.js front-end framework and the Flask back-end framework. The process is front-end shopping cart data collection, back-end data reception and database storage;
[0069] When users redeem points, the redeemed goods, time and points consumption are recorded, and the Express.js backend framework is used to record data. The process includes redemption data reception, data formatting and database storage;
[0070] The specific implementation steps of step S2 data processing are:
[0071] Clean the collected data, remove duplicate and erroneous data, classify and label the data, including consumption type, consumption frequency, and preferred products, and standardize the data to ensure that the data format of different data sources is consistent;
[0072] Data cleaning:
[0073] Use Python's Pandas library to deduplicate the data and remove duplicate records;
[0074] Use Python's Pandas library to define rules to identify and remove incorrect data, and remove records with a consumption amount less than 0 or an incorrect time format;
[0075] Use Python's Pandas library to check and remove data with missing key fields, and remove records without user IDs or spending amounts;
[0076] Consumption type classification:
[0077] Use Python's Pandas library to classify data based on consumption location and content, and divide the data into "dining", "shopping", and "entertainment" types;
[0078] Consumption frequency labeling:
[0079] Use Python's Pandas library to define frequency labels, calculate each user's consumption frequency and label them as "high frequency", "medium frequency", and "low frequency";
[0080] Preferred product labeling:
[0081] Use Python's Pandas library to analyze the product data browsed and purchased by each user and label their preferred product categories;
[0082] Data standardization:
[0083] Use Python's Pandas library to unify the data formats of different data sources and unify all date formats into "YYYY-MM-DD";
[0084] Numerical standardization: Use Python's Scikit-learn library to standardize numerical data and normalize the consumption amounts to eliminate the magnitude differences between different consumption amounts;
[0085] Data consistency check: Use Python's Pandas library to check and ensure the consistency of data after cleaning, classification, and standardization, and ensure that the ID of the same user in different records is consistent;
[0086] Step S3: The specific steps for constructing user portraits are as follows:
[0087] Analyze user consumption habits and preferences:
[0088] Consumption habit analysis: Use Python's Pandas library to analyze users' consumption frequency, consumption amount, and consumption time;
[0089]
[0090] Preference analysis: Use Python's Pandas and Numpy libraries to analyze the categories of goods purchased by users and their consumption scenarios;
[0091] Behavioral feature extraction: Use Python's Pandas library to calculate users' consumption cycles, activity levels and other behavioral features;
[0092] user_stats['active_days']=(user_stats['last_purchase']-user_stats['first_purchase']).dt.days
[0093] user_stats['avg_days_between_purchases']=
[0094] user_stats['active_days'] / user_stats['purchase_count']
[0095] Generate personalized user portraits:
[0096] Point of interest annotation: Use Python's Pandas and Numpy libraries to process user preference data and annotate the user's main points of interest;
[0097] user_stats['main_preference']=preferences.idxmax(axis=1)
[0098] Common redemption method annotation: Use Python's Pandas library to analyze users' redemption methods, such as coupons, points, etc., and mark users' commonly used redemption methods;
[0099] redemption_methods=
[0100] cleaned_data.groupby('user_id')['redemption_method'].agg(lambda x:x.mode()[0])
[0101] user_stats=user_stats.merge(redemption_methods,on='user_id',how='left')
[0102] Exchange preference labeling: Use Python's Pandas and Numpy libraries to analyze users' exchange records and label their exchange preferences;
[0103] redemption_preferences=cleaned_data.groupby(['user_id',
[0104] 'redeemed_item_category']).size().unstack(fill_value=0)
[0105] user_stats['main_redemption_preference']=
[0106] redemption_preferences.idxmax(axis=1)
[0107] User Grouping:
[0108] Grouping by spending power: Use Python's Scikit-learn library to perform K-means clustering algorithm to group users by spending power;
[0109] Grouping by behavioral characteristics: Use Python's Scikit-learn library to perform K-means clustering algorithm to group users by behavioral characteristics;
[0110] User group portrait formation: Use Python's Pandas library to combine the grouping results of consumption ability and behavioral characteristics to form a user group portrait;
[0111] The specific steps of the recommendation algorithm design in step S4 are:
[0112] Choose the appropriate recommendation algorithm:
[0113] Collaborative filtering algorithm: Use Python's Surprise library to implement user-based and item-based collaborative filtering;
[0114] from surprise import Dataset,Reader,KNNBasic
[0115] data=Dataset.load_from_df(ratings[['user_id','item_id',
[0116] 'rating']],Reader(rating_scale=(1,5)))
[0117] trainset=data.build_full_trainset()
[0118] algo=KNNBasic(sim_options={'user_based':True})
[0119] algo.fit(trainset)
[0120] Content recommendation algorithm: Use Python's TF-IDF (Term Frequency-Inverse Document Frequency) and cosine similarity to calculate product similarity;
[0121] from sklearn.feature_extraction.text import TfidfVectorizer
[0122] from sklearn.metrics.pairwise import linear_kernel
[0123] tfidf=TfidfVectorizer(stop_words='english')
[0124] tfidf_matrix=tfidf.fit_transform(items['description'])
[0125] cosine_sim=linear_kernel(tfidf_matrix,tfidf_matrix)
[0126] Hybrid recommendation algorithm: combines collaborative filtering and content recommendation, using a weighted average method;
[0127] def hybrid_recommendation(user_id,item_id,cf_score,content_score,alpha=0.5):
[0128] return alpha*cf_score+(1-alpha)*content_score
[0129] Define the input and output of the recommendation algorithm:
[0130] User profile input: Use the previously generated user profile data, including user ID, consumption habits, points of interest, common redemption methods and redemption preferences;
[0131] user_profile=user_stats.loc[user_stats['user_id']==
[0132] user_id]
[0133] Product feature input: Use product feature data, including product ID, description, category, etc.
[0134] item_profile=items.loc[items['item_id']==item_id]
[0135] Recommendation result output: The recommendation algorithm outputs a list of recommended products and their recommendation scores;
[0136] recommendations=algo.get_top_n(predictions,n=10)
[0137] Design evaluation indicators for recommendation algorithms: Accuracy: Use Python's Scikit-learn library to calculate the accuracy of recommendation results;
[0138] from sklearn.metrics import accuracy_score
[0139] accuracy=accuracy_score(true_labels,predicted_labels)
[0140] Recall rate: Use Python's Scikit-learn library to calculate the recall rate of recommendation results;
[0141] from sklearn.metrics import recall_score
[0142] recall=recall_score(true_labels,predicted_labels,average='binary')
[0143] User satisfaction: Through user feedback surveys, the user satisfaction score is calculated using Python’s Pandas library;
[0144] satisfaction_score=user_feedback['satisfaction'].mean();
[0145] The specific implementation steps of step S5 model training are:
[0146] Use historical data to train a recommendation model:
[0147] Data preparation: Use Python's Pandas library to load historical data and split it into training and test sets;
[0148] import pandas as pd
[0149] from sklearn.model_selection import train_test_split
[0150] data=pd.read_csv('historical_data.csv')
[0151] train_data,test_data=train_test_split(data,test_size=0.2,random_state=42)
[0152] Model selection: Select the user-based collaborative filtering algorithm and implement it using the Surprise library;
[0153] from surprise import Dataset,Reader,KNNBasic
[0154] reader=Reader(rating_scale=(1,5))
[0155] trainset=Dataset.load_from_df(train_data[['user_id',
[0156] 'item_id','rating']],reader).build_full_trainset()
[0157] algo=KNNBasic(sim_options={'user_based':True})
[0158] Model training: Use the training set to train the recommendation model;
[0159] Adjust model parameters to optimize recommendation performance:
[0160] Parameter selection: The optimal parameters were determined using a grid search method using the GridSearchCV tool;
[0161] from surprise.model_selection import GridSearchCV
[0162] param_grid={'k':[20,30,40],'min_k':[1,5,10]}
[0163] gs=GridSearchCV(KNNBasic,param_grid,measures=['rmse',
[0164] 'mae'],cv=5)
[0165] gs.fit(data)
[0166] best_params=gs.best_params['rmse']
[0167] Model retraining: Retrain the model using optimal parameters;
[0168] algo=KNNBasic(k=best_params['k'], min_k=best_params['min_k'], sim_options={'user_based':True})
[0169] algo.fit(trainset)
[0170] Hyperparameter optimization: adjust the learning rate and regularization parameters of the model to optimize the recommendation effect;
[0171] from surprise import SVD
[0172] param_grid={'lr_all':[0.002,0.005,0.01],'reg_all':[0.02,0.1,0.4]}
[0173] gs=GridSearchCV(SVD,param_grid,measures=['rmse','mae'],cv=5)
[0174] gs.fit(data)
[0175] best_params=gs.best_params['rmse']
[0176] algo=SVD(lr_all=best_params['lr_all'],
[0177] reg_all=best_params['reg_all'])
[0178] algo.fit(trainset)
[0179] Verify the trained model to ensure its accuracy and stability:
[0180] Prediction results: Use the test set to predict the trained model and obtain the recommendation results;
[0181] testset=Dataset.load_from_df(test_data[['user_id','item_id','rating']],reader).build_full_trainset().build_testset()
[0182] predictions=algo.test(testset)
[0183] Calculate the error: Use RMSE (root mean square error) and MAE (mean absolute error) to evaluate the accuracy of the model;
[0184] from surprise import accuracy
[0185] rmse=accuracy.rmse(predictions)
[0186] mae=accuracy.mae(predictions)
[0187] Result analysis: Analyze the error results to ensure the stability and accuracy of the model;
[0188] print(f'RMSE:{rmse},MAE:{mae}')
[0189] Use cross-validation to evaluate model performance and prevent overfitting and underfitting:
[0190] Cross validation settings: Use the cross_validate method of the Surprise library to perform 5-fold cross validation;
[0191] from surprise.model_selection import cross_validate
[0192] cross_validate(algo,data,measures=['RMSE','MAE'],cv=5,verbose=True)
[0193] Model evaluation: Evaluate model performance through cross-validation results to check overfitting and underfitting;
[0194] results=cross_validate(algo,data,measures=['RMSE','MAE'],cv=5,return_train_measures=True)
[0195] print(results['test_rmse'],results['test_mae'])
[0196] Performance summary: Summarize the results of cross-validation to ensure that the model performs stably on different datasets;
[0197] avg_rmse=sum(results['test_rmse']) /
[0198] len(results['test_rmse'])
[0199] avg_mae=sum(results['test_mae']) / len(results['test_mae'])
[0200] print(f'Average RMSE:{avg_rmse},Average MAE:{avg_mae}')
[0201] Step S6. The implementation process of recommendation generation is as follows:
[0202] Based on the user's current consumption behavior and points, the recommendation model is called to generate recommendation results:
[0203] Extract the user's current consumption behavior and points from the database. Use SQL query statements to extract data;
[0204] import sqlite3
[0205] conn=sqlite3.connect('user_data.db')
[0206] cursor = conn.cursor()
[0207] cursor.execute("SELECT user_id,item_id,rating FROM consumption_behavior WHERE user_id=?",(user_id,))
[0208] user_data = cursor.fetchall()
[0209] Convert the extracted data into the recommended model input format and use Pandas for data conversion;
[0210] import pandas as pd
[0211] user_df=pd.DataFrame(user_data, columns=['user_id',
[0212] 'item_id','rating'])
[0213] Use the trained recommendation model to predict user data and generate recommendation results;
[0214] from surprise import Dataset,Reader
[0215] reader=Reader(rating_scale=(1,5))
[0216] user_dataset=Dataset.load_from_df(user_df[['user_id',
[0217] 'item_id','rating']],reader)
[0218] user_testset=
[0219] user_dataset.build_full_trainset().build_testset()
[0220] user_predictions=algo.test(user_testset)
[0221] Combine user portraits and real-time data to dynamically adjust recommended content:
[0222] Extract the user's basic information and preference data, and use SQL query statements to obtain user portraits;
[0223] cursor.execute("SELECT*FROM user_profile WHERE user_id=?",(user_id,))
[0224] user_profile=cursor.fetchone()
[0225] Extract users' real-time behavior data, such as recently browsed products, search history, etc., and use SQL query statements to obtain real-time data;
[0226] cursor.execute("SELECT item_id FROM recent_views WHERE user_id=?",(user_id,))
[0227] recent_views=cursor.fetchall()
[0228] Adjust the weight and order of recommendation results based on user portraits and real-time data, and prioritize content that users are interested in;
[0229]
[0230]
[0231] Generate recommendation lists, including recommended products, services and activities;
[0232] The implementation steps of step S7 recommendation display are as follows:
[0233] Design a user-friendly recommendation interface:
[0234] Use Figma or Sketch to design the user interface layout, ensure that the interface is beautiful and easy to navigate, choose appropriate colors and fonts, use Adobe Color and Google Fonts to select color and font schemes to ensure visual comfort, design the interaction method of the interface, use Axure RP to make interactive prototypes, and ensure smooth interface operation
[0235] Display recommendation results:
[0236] Use HTML and CSS to display the list of recommended results and provide detailed product and service information;
[0237] Use JavaScript and CSS to implement a carousel display of recommendation results, and users can swipe left and right to view the recommended content;
[0238] Use React.js and Material-UI to display recommendation cards, which contain product images, names, and prices;
[0239] Use Bootstrap to implement a pop-up window display of recommendation results. After the user clicks the button, detailed recommendation information is displayed;
[0240] Use Vue.js and Vuetify to implement dynamic recommendation areas and automatically update recommended content;
[0241] The process of collecting user feedback in step S8 is as follows:
[0242] Record user behavior data: Use Google Analytics or Matomo tools deployed on websites or applications to track user clicks, browsing, and redemption behaviors;
[0243] Use MySQL or PostgreSQL to design the storage structure of behavioral data and create corresponding tables;
[0244] The collected behavior data is regularly imported into the database through Apache NiFi to ensure data consistency and integrity;
[0245] Collect user feedback:
[0246] Use SurveyMonkey to create a questionnaire and design a questionnaire that includes questions such as satisfaction with recommended content and suggestions for improvement;
[0247] Add a review module to the recommendation page and product details page, and use a star rating and comment system to collect user reviews of the recommended content;
[0248] Pop up a feedback window immediately after the recommended content is displayed, and use JavaScript pop-up windows to collect instant feedback;
[0249] Analyze user feedback data:
[0250] Use Python's Pandas library to clean and preprocess user feedback data to remove invalid or duplicate records;
[0251] Use Python's Scikit-learn library to perform data analysis and calculate the mean and distribution of user satisfaction scores;
[0252] Use Python's Matplotlib library to draw visualization charts of user feedback data to evaluate recommendation effects and user satisfaction;
[0253] The specific implementation steps of step S9 recommendation optimization are as follows:
[0254] Adjust the recommendation algorithm and model parameters:
[0255] Combine user feedback data with user behavior data, and use Python's Pandas library for data merging and feature extraction;
[0256] import pandas as pd
[0257] #Read data
[0258] behavior_data=pd.read_csv('user_behavior.csv')
[0259] feedback_data=pd.read_csv('feedback_data.csv')
[0260] #Merge data
[0261] merged_data=pd.merge(behavior_data,feedback_data,
[0262]
[0263] Use the Grid Search method to adjust the hyperparameters of the recommendation algorithm;
[0264]
[0265] Retrain the recommendation model using the best parameters and save the updated model; #Train the model using the best parameters
[0266] best_model=RandomForestClassifier(**best_params)best_model.fit(features,labels)
[0267] #Save model
[0268] import joblib
[0269] joblib.dump(best_model,'best_model.pkl')
[0270] Regularly update user profiles and model training data: Continuously collect the latest user behavior and feedback data, use Apache Kafka for data collection, and use Python's Pandas and Scikit-learn libraries to update user profiles based on the newly collected data;
[0271]
[0272] Merge new data into the training dataset and perform data cleaning and preprocessing;
[0273] #Merge new data
[0274] updated_data=pd.concat([merged_data, new_behavior_data, new_feedback_data], ignore_index=True)
[0275] #Data cleaning and preprocessing
[0276] updated_data.drop_duplicates(inplace=True)
[0277] updated_data.dropna(subset=['feature1','feature2','feature3','rating'],inplace=True)
[0278] Monitor the operation of the recommendation system: Use Prometheus and Grafana to monitor the key indicators of the recommendation system in real time, such as response time, recommendation click rate, and user satisfaction. Use time series anomaly detection to detect anomalies in the operation of the recommendation system, discover problems in a timely manner, analyze the causes of detected problems, and quickly repair them to ensure the stable operation of the recommendation system.
[0279] Example 3
[0280] During the implementation of steps S1 to S9 of Example 2, the user data is encrypted, stored and transmitted by generating and managing encryption keys through Azure Key Vau lt, ensuring that all data transmission uses the TLS / SSL encryption protocol, using the HTTPS protocol at the API layer to ensure the security of data transmission between the client and the server, prevent data leakage and unauthorized access, set up an access control mechanism using Azure AD to ensure that only authorized personnel can access and operate user data, conduct security audits regularly, discover and repair system vulnerabilities, ensure system security, conduct system maintenance regularly to ensure stable system operation, continuously upgrade and optimize the recommendation system according to user needs and technological development, provide technical support and training to help users become familiar with and use the recommendation system.
[0281] 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.
Claims
1. An intelligent equity exchange recommendation system, characterized in that: Including user management module, points management module, data security module, recommendation engine module, rights management module, activity management module, customer service module, and extended function module; The user management module is used to provide user registration, identity authentication and membership level management; The points management module is used for points recording, points redemption and points validity period management; The data security module is used for data encryption, access control and security audit; The recommendation engine module is used to establish user portraits, provide recommendation algorithms and feedback learning; The equity management module is used for equity classification, inventory management, and equity listing and delisting; The activity management module is used to provide promotion activities, activity registration and activity evaluation; The customer service module is used to provide online customer service, work order tracking and problem explanation; The extended function module is used for social sharing, virtual reality experience and predictive analysis.
2. The intelligent equity exchange recommendation system according to claim 1, characterized in that: The user management module also includes a user registration unit, a user identity verification unit and a membership level management unit. The user registration unit is used to process the registration of new users, including information filling, verification and storage. The user identity verification unit is used to authenticate the user through a password, SMS verification code or two-factor verification. The membership level management unit is used to automatically upgrade or downgrade the user's membership level based on consumption points and activity participation. The membership levels include temporary membership, ordinary membership or senior membership.
3. The intelligent equity exchange recommendation system according to claim 2, characterized in that: The points management module also includes a points recording unit, a points redemption unit and a points validity period management unit. The points recording unit is used to record the points obtained by the user for each consumption, the points consumption record and the points change history. The points redemption unit enables the user to use the points to redeem goods or services and is used to update the points balance in real time. The points validity period management unit is used to track the validity period of points, remind users of points that are about to expire, and handle expired points.
4. The intelligent equity exchange recommendation system according to claim 3, characterized in that: The data security module also includes a data encryption unit, an access control unit and a security audit unit. The data encryption unit is used to encrypt, store and transmit user data and points information to ensure data security. The access control unit is used to control access to data and functions of various parts of the system according to user roles and permissions. The security audit unit is used to record and monitor system access and operation logs, and discover and alarm potential security threats.
5. The intelligent equity exchange recommendation system according to claim 4, characterized in that: The recommendation engine module also includes a user portrait unit, a recommendation algorithm unit and a feedback learning unit. The user portrait unit is used to generate a user portrait based on user behavior, interests, and consumption record data. The recommendation algorithm unit is used to apply a machine learning algorithm to analyze the user portrait and recommend personalized redemption content to different users. The feedback learning unit is used to continuously adjust and optimize the recommendation algorithm based on user feedback on the recommended content to improve the accuracy of the recommendation.
6. The intelligent equity exchange recommendation system according to claim 5, characterized in that: The rights management module also includes a rights classification unit, an inventory management unit and a rights listing and delisting unit. The rights classification unit is used to classify and manage redeemable goods and services according to categories and membership levels. The inventory management unit is used to track and manage the inventory quantity of redeemable goods to prevent overselling. The rights listing and delisting unit is used to manage the listing and delisting status of goods and services to ensure that the redemption content seen by users is the latest.
7. The intelligent equity exchange recommendation system according to claim 6, characterized in that: The activity management module also includes a promotion activity unit, an activity registration unit and an activity evaluation unit. The promotion activity unit is used to design and manage point promotion activities, including double point days and limited-time redemption discounts. The activity registration unit allows users to register for activities and is used to record activity participation. The activity evaluation unit is used to evaluate the effectiveness of activities and adjust activity strategies based on user participation and feedback.
8. The intelligent equity exchange recommendation system according to claim 7, characterized in that: The customer service module also includes an online customer service unit, a work order tracking unit and a problem explanation unit. The online customer service unit is used to provide online customer service support and answer questions that users have during the points redemption process. The work order tracking unit is used to handle user complaints and problem feedback and track the progress of work order processing. The problem explanation unit is used to provide answers to frequently asked questions and usage guides to help users quickly solve problems.
9. The intelligent equity exchange recommendation system according to claim 8, characterized in that: The extended function module also includes a social sharing unit, a virtual reality experience unit and a predictive analysis unit. The social sharing unit allows users to share redemption results on social media to increase system exposure and user interaction. The virtual reality experience unit is used to allow users to preview the actual experience of redeemable services related to travel and accommodation through virtual reality technology. The predictive analysis unit uses big data and AI technology to predict users' future consumption behavior and interest changes, and adjust recommendation strategies in advance.
10. A smart equity exchange recommendation method, according to a smart equity exchange recommendation system according to any one of claims 1 to 9, characterized in that: The following steps are involved: S1. Data collection: collect basic user information, including name, age, gender, and contact information, use MySQL database for data storage, use AES encryption algorithm for data encryption, collect user consumption records and points information, including the amount, time, location, and points earned for each consumption, collect user behavior data, including browsing products, adding to shopping carts, and redemption history, and use React front-end framework and Djang back-end framework for data recording; S2. Data processing: Clean the collected data, remove duplicate and erroneous data, classify and label the data, including consumption type, consumption frequency, and preferred products, and standardize the data to ensure that the data format of different data sources is consistent; S3. User portrait construction: Analyze users' consumption habits and preferences, generate personalized user portraits, mark users' interests, common redemption methods and redemption preferences based on the user portraits, group users according to their consumption capacity and behavioral characteristics, and form user group portraits; S4. Recommendation algorithm design: Choose to use Python's TF-IDF (Term Frequency-Inverse Document Frequency) and cosine similarity to calculate product similarity, use Python's Surprise library to implement user-based and item-based collaborative filtering, combine collaborative filtering and content recommendation, use the weighted average method, define the input and output of the recommendation algorithm, including user portraits, product features, and recommendation results, and design evaluation indicators for the recommendation algorithm, including accuracy, recall rate, and user satisfaction; S5. Model training: Use historical data to train the recommendation model, adjust model parameters to optimize the recommendation effect, use the GridSearchCV tool to determine the optimal parameters through the grid search method, use the root mean square error (RMSE) and mean absolute error (MAE) to evaluate the accuracy of the model, verify the trained model to ensure the accuracy and stability of the model, and use the cross-validation method to evaluate the model performance to prevent overfitting and underfitting; S6. Recommendation generation: Based on the user's current consumption behavior and points, the recommendation model is called to generate recommendation results. Combined with user portraits and real-time data, the recommendation content is dynamically adjusted to generate a recommendation list, including recommended products, services and activities; S7. Recommendation display: Use Fi gma or Sketch to design the user interface layout, display the generated recommendation results to users through the user interface, provide detailed product and service information, design a user-friendly recommendation interface, use Axure RP to make interactive prototypes, ensure that the recommended content is easy to understand and operate, provide multiple display methods, use HTML and CSS to implement a list display of recommendation results, use JavaScript and CSS to implement a carousel display of recommendation results, use React.js and Material-UI to implement recommendation card display, use Bootstrap to implement a pop-up window display of recommendation results, use Vue.js and Vueti fy to implement a dynamic recommendation area, and automatically update the recommended content; S8. User feedback collection: record the user's click, browse, and redemption behavior data on the recommended content, collect user feedback on the recommended content through questionnaires and user evaluations, analyze user feedback data, and evaluate the recommendation effect and user satisfaction; S9. Recommendation optimization: Based on user feedback data, use the Scikit-learn library to adjust the hyperparameters of the recommendation algorithm through the Grid Search method to improve the recommendation effect. Based on the newly collected data, use Python's Pandas and Scikit-learn libraries to update the user portrait, maintain the timeliness of the recommendation system, monitor the operation of the recommendation system, and promptly discover and solve problems.
Citation Information
Patent Citations
Mixed recommendation system and method based on Kalman filtering
CN105824897A
Intelligent store digital marketing system
CN110288381A
Expert platform website system based on block chain technology and content circulation method thereof
CN110457390A
Smart tourism integral management system
CN112053183A
Commodity linear hybrid recommendation method and system applied to point system
CN115375381A
Cited By
Commodity recommendation method and system applied to point system
CN120047216A
Machine learning-based integral exchange data dynamic management system
CN120543230A
