User behavior analysis and model construction method and device based on big data
By constructing a user-ability characteristic matrix and ability-ability network, combined with deep learning and collaborative filtering algorithms, we solve the problem of user behavior analysis in big data, realize personalized recommendations and user ability assessment, and improve the efficiency and effectiveness of information screening and recommendation. accuracy.
Patent Information
- Application Number
- CN202410451921.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the era of information explosion, it is difficult for individuals and organizations to quickly identify and obtain the required data, resulting in limited data acquisition capabilities. There is an urgent need for a user behavior analysis and model building method based on big data to improve information screening efficiency and recommendation quality. Implement personalized recommendations.
By collecting user description page data and game data, extracting user avatar features and game features, constructing a user-capability feature matrix, using position coding and deep learning models for prediction, combining collaborative filtering and clustering algorithms to build a capability-capability network, and evaluate Influence and recommend personalization capabilities.
This method not only considers the user's personal characteristics, but also considers group behavior and association networks, improves the accuracy and personalization of recommendations, and achieves a comprehensive assessment of user capabilities and personalized recommendations.
Smart Images

Figure CN118797260A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for user behavior analysis and model building based on big data. Background Art
[0002] In today's era of information explosion, the massiveness and complexity of data poses a huge challenge to the ability to obtain data. Individuals and organizations are often drowned in a large amount of data, and it is difficult to quickly identify and obtain the required data.
[0003] In order to meet this challenge, a method and device for user behavior analysis and model building based on big data is urgently needed. Through big data analysis, we can deeply understand user behavior and identify the core capabilities of users. Summary of the invention
[0004] The purpose of the present invention is to provide a user behavior analysis and model building method and device based on big data, which can improve the efficiency of information screening, improve the quality of recommendation, and realize personalized recommendation.
[0005] In a first aspect, the present invention provides a user behavior analysis and model building method based on big data, comprising:
[0006] S1, collect user description page data D1, including user avatar data D1-1, page data D1-2, and text data D1-3 of the user description page, and extract the user avatar feature vector D1'; collect the user's game data D2, communication data D2-1, team data D2-2, innovation data D2-3, learning data D2-4, and decision data D2-5, and extract the user's game feature vector D2'; merge D1' and D2' to construct a user-capability feature matrix D3; use random partitioning, stratified partitioning, or cross-validation to divide D3 into training set and test set; collect the real capability feature matrix Dt;
[0007] S2, position encoding the user-capability feature matrix D3, retaining the sequence information;
[0008] S3, build a Transformer, BERT or GPT-3 model for the position-encoded user-ability feature matrix D3, minimize the prediction error, and obtain the optimal parameters; use the trained model to predict the user-ability score matrix D5;
[0009] S4, using the real capability feature matrix Dt, training the collaborative filtering model to optimize and improve the prediction performance of the user-ability rating matrix D5;
[0010] S5, clustering the user-ability score matrix D5 using DBSCAN or OPTICS clustering algorithm, and dividing the users into different clusters;
[0011] S6. For each cluster, construct a capability-capability network A, connect the capabilities with similar scores in the user-capability rating matrix D5 to obtain the association network G; use Katz centrality or HITS algorithm to evaluate the influence of capabilities; sort the capabilities by influence and find the core capabilities of each group, that is, the cluster capabilities;
[0012] S7, using collaborative filtering algorithm based on similar users to recommend capabilities related to the target user's known capabilities, i.e. personalized capabilities;
[0013] S8. Recommendation clustering capability and personalization capability.
[0014] The method of the present invention has the beneficial effect of not only considering the individual characteristics of the user, but also considering the group behavior and the associated network.
[0015] Optionally, the step S1 includes:
[0016] S11, collecting user description page data D1 and user game data D2, wherein collecting user description page data D1 includes user avatar data D1-1, page data D1-2, and text data D1-3 of the user description page; collecting user game data D2, including communication data D2-1, team data D2-2, innovation data D2-3, learning data D2-4, and decision data D2-5;
[0017] S12, extracting user description page features D1' and user game features D2', integrating D1' and D2', and constructing a user-capability feature matrix D3;
[0018] S13. Collect work negotiation data, team project data, work performance data, learning data, and decision-making data to form a true capability characteristic matrix Dt. Dt contains five scoring items: communication ability score, which is extracted from work negotiation data, meeting minutes, and work email exchanges; team collaboration ability score, which is extracted from team project data, project management software, colleague evaluations, and team achievements; innovation ability score, which is extracted from work performance data, results of new strategy implementation, and innovation proposals; learning ability score, which is extracted from training records, new skills mastery, and professional development activities; decision-making ability score, which is extracted from decision-making data and project results; the scoring uses a standardized range, and the scoring range is [0,1] or [-1,1].
[0019] Optionally, the step S12 includes:
[0020] S121, extract age and gender features, avatar features, and semantic features as D1': extract age and gender features D1-1'; extract avatar features D1-2', extract the personalized style or preference of the avatar; extract semantic features D1-3', use natural language processing technology to extract the semantic features of the user page, the user's description and comments on the avatar; use NRC EmotionLexicon or LIWC to identify the emotions in the user's text, such as concentration, excitement or frustration; the user's game performance under different emotions; style features and semantic features are related to the user's personality and emotional tendencies, helping to understand the user's behavior and decision-making process;
[0021] S122. Extract communication features, team features, innovation features, learning features, and decision features as D2': Communication feature D2-1', records the frequency and duration of communication between users and other players in the game, response time, and communication type, such as instructions, requests, and feedback; Team feature D2-2', collects the role, participation, contribution, and mutual assistance behavior of users in team games; Innovation feature D2-3', collects the number of times users try new strategies in the game, the diversity, and the success rate of these strategies; Learning feature D2-4', counts the speed at which users learn and master new skills in the game, the clearance rate, error rate, score, and ranking; Decision feature D2-5', records whether users use trial and error or logical reasoning in puzzle games; whether users adopt offense or defense in strategy games; the time to make decisions and the effectiveness of decisions.
[0022] S123, integrating the user description page features D1' and the user's game features D2' to construct a user-capability feature matrix D3, D3 includes: communication features, extracting communication frequency and communication efficiency features; team features, extracting collaboration frequency and team contribution features; innovation features, extracting the frequency and success rate of users trying new strategies in the game; learning features, extracting the speed and efficiency of users learning new skills in the game; decision-making features, extracting the speed and efficiency of users making decisions in the game;
[0023] The rows of the user-capability feature matrix D3 represent users, the columns represent capability indicators, and each element represents the feature value of the user under the corresponding capability indicator; the features in D3 are normalized to ensure that each feature has the same scale. Remove outliers, missing values, and duplicate values: Check the integrity and consistency of the data and delete data that does not meet the specifications; convert the data into a unified measurement unit and range, ranging from [0,1] or [-1,1].
[0024] Optionally, step S2 includes:
[0025] Positional encoding for D3:
[0026]
[0027]
[0028] Among them, pos is the user's position index in the game, counting from 0; d_model: the dimension of the position encoding, the same as the dimension of the feature matrix; PE(pos,2i) is the 2i-dimensional position encoding value of the pos position; PE(pos,2i+1) is the 2i+1-dimensional position encoding value of the pos position.
[0029] Assume that the user completes 10 tasks in the game and the dimension of the position encoding is 10, then the position encoding of the first task is:
[0030]
[0031]
[0032]
[0033]
[0034] Similarly, the position codes of all tasks are calculated. The user's position in the game can be represented by the task progress, and the user's position in the game can also be represented by the game time. The setting of d_model needs to be determined according to the complexity of the game scene. Generally speaking, the more complex the game scene, the larger the value of d_model. For example, for a large game with 100 tasks, d_model can be set to 100.
[0035] Optionally, step S3 includes:
[0036] S31. Use the Encoder part of the Transformer, BERT or GPT-3 deep learning model, take the position-encoded user-ability feature matrix D3 as input, learn the relationship between user-ability features through a multi-layer self-attention mechanism and a feedforward neural network, and obtain the user-ability feature matrix D4 processed by the Encoder;
[0037] S32, using the Decoder part of the deep learning model, taking D4 and the user's game feature matrix D2' as input, predicting the score of each ability of the user through a multi-layer self-attention mechanism, an encoder-decoder attention mechanism and a feedforward neural network, and obtaining a predicted user-ability score matrix D5;
[0038] The D5 scoring matrix includes:
[0039] Communication ability score: reflects the user's ability to communicate with other players in the game;
[0040] Teamwork Ability Rating: Shows the user's ability to cooperate with other players in a team game;
[0041] Innovation score: evaluates the user's ability to try new strategies and solve problems in the game;
[0042] Learning Ability Score: measures the user’s ability to learn new skills and solve problems in the game;
[0043] Decision-making ability score: reflects the speed and efficiency of users making decisions in the game;
[0044] S33. Use the training set to train the model, use the cross entropy loss function as the optimization target, and use the Adam optimizer for gradient descent. After the training is completed, calculate the accuracy, recall, F1 value, and AUC value of the model on the test set to evaluate the model performance.
[0045] S34. In order to compare the predicted user-ability score matrix D5 with the true ability feature matrix Dt, it is necessary to extract image features from D5 and limit its score value to the same range as Dt; use SIFT, SURF, HOG or CNN image feature extraction algorithm to extract image features of the user-ability score matrix D5, and limit the score value in the user-ability matrix D5 to the same range as Dt, such as [0,1] or [-1,1];
[0046] Calculate the correlation coefficient between D5 and Dt to evaluate the correlation between the two. Use PCC, SCC or KCC to evaluate the correlation between D5 and Dt; if the correlation coefficients PCC, SCC and KCC values are all greater than 0.5, it indicates that D5 and Dt have a strong correlation and can be aligned directly; if the PCC, SCC and KCC values are all less than 0.5, it indicates that there is a large difference between D5 and Dt, and D5 needs to be scaled, offset or normalized to make it consistent with the score range and distribution of Dt.
[0047] Optionally, step S4 includes:
[0048] The accuracy, recall, F1 value, and AUC value are used to evaluate the matching degree between D5 and Dt. The reference threshold is set as accuracy greater than 0.9, recall greater than 0.7, F1 value greater than 0.75, and AUC value greater than 0.8. If any indicator is lower than the preset threshold, the model parameters need to be adjusted, including adjusting the learning rate, batch size, and number of hidden layers, and the model needs to be retrained until all indicators reach or exceed the preset threshold.
[0049] Optionally, the step S5 includes:
[0050] S51, parameter setting: set the parameters ε and MinPts of DBSCAN or OPTICS clustering algorithm; ε is the density threshold, which is used to control the density of the cluster; MinPts is the minimum number of data points in the neighborhood, which is used to determine the coreness of the data point;
[0051] S52, clustering: cluster D5 using the selected clustering algorithm to divide users into different ability groups, where each cluster represents an ability group with similar ability characteristics;
[0052] S53. Evaluate clustering results: The evaluation indicators are Silhouette coefficient and Calinski-Harabasz index; use compute_similarity function to calculate the similarity between each user and the cluster to which they belong based on D1'; use cosine similarity or Pearson correlation coefficient as the metric; set the similarity threshold to 0.4-0.6; for each user, calculate the average similarity between it and all other clusters; use 1 minus the average similarity to get the dissimilarity between the user and other clusters; for each user, calculate the Silhouette coefficient:
[0053]
[0054] a is the similarity between the user and the cluster to which he belongs; b is the average similarity between the user and all other clusters; Calinski-Harabasz index is calculated:
[0055]
[0056] x is user data; μ_i is the average value of cluster i; k is the number of clusters; n is the total number of users; the closer the Silhouette coefficient is to 1, the larger the Calinski-Harabasz index is, indicating a better clustering effect; select the number of clusters that optimizes the Silhouette coefficient and Calinski-Harabasz index to group the users in D5.
[0057] In practical applications, if players are divided into the following groups:
[0058] Expert: Strong teamwork skills, able to work effectively with other players;
[0059] Medium level: average teamwork ability, able to cooperate with other players to a certain extent;
[0060] Novice: Poor teamwork skills and need help from other players.
[0061] For example, provide more challenging teamwork tasks for the expert group, provide teamwork skills training for the intermediate group, and provide basic teamwork knowledge education for the novice group.
[0062] Optionally, S6 focuses on the construction and analysis of the capability-capability network, with the goal of finding cluster capabilities. The step S6 includes:
[0063] S61. Use the compute_similarity function to calculate the similarity between all pairs of capabilities according to D2'; use cosine similarity, Jaccard similarity or Pearson correlation coefficient as the metric; set the similarity threshold to 0.5-0.8; connect the capability pairs whose similarity is greater than the threshold to form an undirected weighted graph, i.e., capability-capability network A;
[0064] S62. Evaluate the influence of capabilities: Use Katz centrality or HITS algorithm to evaluate the influence of each capability in the capability-capability network A. Katz centrality score = Σ(decay coefficient × adjacency matrix) k × capability node, k is the number of iterations, the decay coefficient determines the strength of the connection, and the adjacency matrix represents the relationship between capabilities; the HITS algorithm calculates the authority value and hub value of each capability, HIT influence score = authority value coefficient × authority value + hub value coefficient × hub value, the authority value measures the frequency of a capability being pointed to by other capabilities, and the hub value reflects the frequency of a capability pointing to other capabilities;
[0065] In practical applications, in the teamwork ability group, for example, the Katz centrality score and HITS influence score of learning ability in the network are both very high. Learning ability has an important global influence in the teamwork ability group and is a key ability that members of this group generally need to possess.
[0066] S63. Identify cluster capabilities: Sort by influence and find the core of each group, that is, the cluster capability.
[0067] S7 focuses on the recommendation of personalized capabilities, with the purpose of recommending the most suitable capabilities for the target user to develop based on similar users and predicted scores. Optionally, the step S7 includes:
[0068] S71. Calculate user similarity: use the compute_similarity function to calculate the similarity between the target user and other users based on the user-ability score matrix D5, and generate a similarity vector; select cosine similarity, Jaccard similarity, or Pearson correlation coefficient as the metric; set the similarity threshold to between 0.75 and 0.95;
[0069] S72, predicted score: select all users in the cluster to which the target user belongs as a similar user set; for the capabilities that the target user has been exposed to, calculate their improved scores B1 by weighted average; for the capabilities that the target user has not been exposed to, calculate their predicted scores B2 by weighted average based on the scores in the similar user set;
[0070] S73. B1 and B2 are integrated to obtain the target user's comprehensive score B for all capabilities, and the capabilities are sorted according to the comprehensive score B, and the capability with the highest score is recommended as the personalized capability.
[0071] Optionally, the step S8 includes:
[0072] Cluster capabilities are recommended first for new members of the group, users who want to improve capabilities related to the common characteristics of the group, and active members of the group; for users without specific preferences, the system recommends cluster capabilities by default to help them quickly find the development direction that suits them.
[0073] For users who prefer to develop personal skills or interests, personalized capabilities are recommended first.
[0074] In a second aspect, the present invention further provides a device, comprising:
[0075] Data preprocessing module, used to clean and format data;
[0076] Feature Engineering module, which is used to select and transform features to improve the predictive performance of the model;
[0077] A similarity calculation module, used for calculating similarity;
[0078] Collaborative filtering module, used to recommend capabilities based on similarities between users;
[0079] The evaluation module is used to calculate the accuracy, recall, F1 value and AUC value of the model and evaluate the performance of the model;
[0080] Recommendation module, used to recommend cluster capabilities and personalized capabilities to users;
[0081] A clustering module, used to cluster the user-ability rating matrix;
[0082] The network building module is used to build the association network between capabilities and evaluate the influence of capabilities;
[0083] Prediction module, used to predict the user's rating of the untouched capability;
[0084] The network analysis module searches for related capabilities in the capability-capability network.
[0085] For the beneficial effects of the second aspect, reference may be made to the description of the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 A flowchart of a user behavior analysis and model building method based on big data provided by an embodiment of the present invention;
[0087] Figure 2 A schematic diagram of the structure of a user behavior analysis and model building device based on big data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0088] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than 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. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with general skills in the field to which the present invention belongs. "Including" and similar words used in this article mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.
[0089] like Figure 1 As shown, the present invention provides a user behavior analysis and model building method based on big data, including:
[0090] S1, collect user description page data D1, including user avatar data D1-1, page data D1-2, and text data D1-3 of the user description page, and extract the user avatar feature vector D1'; collect the user's game data D2, communication data D2-1, team data D2-2, innovation data D2-3, learning data D2-4, and decision data D2-5, and extract the user's game feature vector D2'; merge D1' and D2' to construct a user-capability feature matrix D3; use random partitioning, stratified partitioning, or cross-validation to divide D3 into training set and test set; collect the real capability feature matrix Dt;
[0091] In some embodiments, step S1 includes:
[0092] S11, collecting user description page data D1 and user game data D2, wherein collecting user description page data D1 includes user avatar data D1-1, page data D1-2, and text data D1-3 of the user description page; collecting user game data D2, including communication data D2-1, team data D2-2, innovation data D2-3, learning data D2-4, and decision data D2-5;
[0093] S12, extracting user description page features D1' and user game features D2', integrating D1' and D2', and constructing a user-capability feature matrix D3;
[0094] S13. Collect work negotiation data, team project data, work performance data, learning data, and decision-making data to form a true capability characteristic matrix Dt. Dt contains five scoring items: communication ability score, which is extracted from work negotiation data, meeting minutes, and work email exchanges; team collaboration ability score, which is extracted from team project data, project management software, colleague evaluations, and team achievements; innovation ability score, which is extracted from work performance data, results of new strategy implementation, and innovation proposals; learning ability score, which is extracted from training records, new skills mastery, and professional development activities; decision-making ability score, which is extracted from decision-making data and project results; the scoring uses a standardized range, and the scoring range is [0,1] or [-1,1].
[0095] S2, position encoding the user-capability feature matrix D3, retaining the sequence information;
[0096] In some embodiments, step S2 includes: position encoding D3:
[0097]
[0098]
[0099] Among them, Pos is the user's position index in the game, counting from 0; d_model: the dimension of the position encoding, the same as the dimension of the feature matrix; PE(pos,2i) is the 2i-dimensional position encoding value of the pos position; PE(pos,2i+1) is the 2i+1-dimensional position encoding value of the pos position.
[0100] Assume that the user completes 10 tasks in the game and the dimension of the position encoding is 10, then the position encoding of the first task is:
[0101]
[0102]
[0103]
[0104]
[0105] Similarly, the position codes of all tasks are calculated. The user's position in the game can be represented by the task progress, and the user's position in the game can also be represented by the game time. The setting of d_model needs to be determined according to the complexity of the game scene. Generally speaking, the more complex the game scene, the larger the value of d_model. For example, for a large game with 100 tasks, d_model can be set to 100.
[0106] S3, build a Transformer, BERT or GPT-3 model for the position-encoded user-ability feature matrix D3, minimize the prediction error, and obtain the optimal parameters; use the trained model to predict the user-ability score matrix D5;
[0107] In some embodiments, the step S3 includes: S31, using the Encoder part of the Transformer, BERT or GPT-3 deep learning model, taking the position-encoded user-ability feature matrix D3 as input, learning the relationship between user-ability features through a multi-layer self-attention mechanism and a feedforward neural network, and obtaining the user-ability feature matrix D4 processed by the Encoder;
[0108] S32, using the Decoder part of the deep learning model, taking D4 and the user's game feature matrix D2' as input, predicting the score of each ability of the user through a multi-layer self-attention mechanism, an encoder-decoder attention mechanism and a feedforward neural network, and obtaining a predicted user-ability score matrix D5;
[0109] S33. Use the training set to train the model, use the cross entropy loss function as the optimization target, and use the Adam optimizer for gradient descent. After the training is completed, calculate the accuracy, recall, F1 value, and AUC value of the model on the test set to evaluate the model performance.
[0110] S34. In order to compare the predicted user-ability score matrix D5 with the true ability feature matrix Dt, it is necessary to extract image features from D5 and limit its score value to the same range as Dt; use SIFT, SURF, HOG or CNN image feature extraction algorithm to extract image features of the user-ability score matrix D5, and limit the score value in the user-ability matrix D5 to the same range as Dt, such as [0,1] or [-1,1];
[0111] Use PCC, SCC or KCC to calculate the correlation between D5 and Dt and evaluate the correlation between the two; if the correlation coefficients PCC, SCC and KCC values are all greater than 0.5, it indicates that D5 and Dt have a strong correlation and are directly aligned; if the PCC, SCC and KCC values are all less than 0.5, it indicates that there is a large difference between D5 and Dt, and D5 needs to be scaled, offset or normalized to make it consistent with the score range and distribution of Dt.
[0112] S4. Use the real capability feature matrix Dt to optimize the collaborative filtering model and improve the prediction performance of the user-ability rating matrix D5 to make it more in line with the actual situation;
[0113] In some embodiments, step S4 includes: using accuracy, recall, F1 value, and AUC value to evaluate the degree of matching between D5 and Dt; setting a reference threshold, accuracy greater than 0.9, recall greater than 0.7, F1 value greater than 0.75, and AUC value greater than 0.8. If any indicator is lower than the preset threshold, it is necessary to adjust the model parameters, including adjusting the learning rate, Batch size, and number of hidden layers, and retraining the model until all indicators reach or exceed the preset threshold.
[0114] S5, clustering the user-ability score matrix D5 using DBSCAN or OPTICS clustering algorithm, and dividing the users into different clusters;
[0115] In some embodiments, the step S5 includes: S51, parameter setting: setting the parameters ε and MinPts of the DBSCAN or OPTICS clustering algorithm; ε is a density threshold, used to control the density of the cluster; MinPts is the minimum number of data points in the neighborhood, used to determine the coreness of the data point; the data point refers to each element in D5, that is, the score of each ability of each user;
[0116] S52, clustering: cluster D5 using the selected clustering algorithm to divide users into different ability groups, where each cluster represents an ability group with similar ability characteristics;
[0117] S53. Evaluate clustering results: The evaluation indicators are Silhouette coefficient and Calinski-Harabasz index; use compute_similarity function to calculate the similarity between each user and the cluster to which they belong based on D1'; use cosine similarity or Pearson correlation coefficient as the metric; set the similarity threshold to 0.4-0.6; for each user, calculate the average similarity between it and all other clusters; use 1 minus the average similarity to get the dissimilarity between the user and other clusters; for each user, calculate the Silhouette coefficient:
[0118]
[0119] a is the similarity between the user and the cluster to which he belongs; b is the average similarity between the user and all other clusters; Calinski-Harabasz index is calculated:
[0120]
[0121] x is user data; μ_i is the average value of cluster i; k is the number of clusters; n is the total number of users; the closer the Silhouette coefficient is to 1, the larger the Calinski-Harabasz index is, indicating a better clustering effect; select the number of clusters that optimizes the Silhouette coefficient and Calinski-Harabasz index to group the users in D5.
[0122] S6. For each cluster, construct a capability-capability network A, connect the capabilities with similar scores in the user-capability rating matrix D5 to obtain the association network G; use Katz centrality or HITS algorithm to evaluate the influence of capabilities; sort the capabilities by influence and find the core capabilities of each group, that is, the cluster capabilities;
[0123] In some embodiments, step S6 includes: S61, using the compute_similarity function to calculate the similarity between all capability pairs according to D2'; using cosine similarity, Jaccard similarity or Pearson correlation coefficient as a metric; setting the similarity threshold to 0.5-0.8; connecting the capability pairs whose similarity is greater than the threshold to form an undirected weighted graph, i.e., capability-capability network A;
[0124] S62. Evaluate the influence of capabilities: Use Katz centrality or HITS algorithm to evaluate the influence of each capability in the capability-capability network A: Katz centrality score = Σ(decay coefficient × adjacency matrix) k × capability node, k is the number of iterations, the decay coefficient determines the strength of the connection, and the adjacency matrix represents the relationship between capabilities; the HITS algorithm calculates the authority value and hub value of each capability, HIT influence score = authority value coefficient × authority value + hub value coefficient × hub value, the authority value measures the frequency of a capability being pointed to by other capabilities, and the hub value reflects the frequency of a capability pointing to other capabilities;
[0125] S63. Identify cluster capabilities: Sort by influence and find the core of each group, that is, the cluster capability.
[0126] S7, using collaborative filtering algorithm based on similar users to recommend capabilities related to the target user's known capabilities, i.e. personalized capabilities;
[0127] In some embodiments, step S7 includes:
[0128] S71. Calculate user similarity: use the compute_similarity function to calculate the similarity between the target user and other users based on the user-ability score matrix D5, and generate a similarity vector; select cosine similarity, Jaccard similarity, or Pearson correlation coefficient as the metric; set the similarity threshold to between 0.75 and 0.95; B1 i is the target user’s improvement score for the ith capability, sim j is the similarity between the target user and similar user j, u j is the score of similar user j on the i-th ability;
[0129] S72, predicted score: select all users in the cluster to which the target user belongs as a similar user set; for the capabilities that the target user has been exposed to, calculate their improved scores B1 by weighted average; for the capabilities that the target user has not been exposed to, calculate their predicted scores B2 by weighted average based on the scores in the similar user set;
[0130] S73. B1 and B2 are integrated to obtain the target user's comprehensive score B for all capabilities, and the capabilities are sorted according to the comprehensive score B, and the capability with the highest score is recommended as the personalized capability.
[0131] In some embodiments, a, the similarity between the target user and each user in the similar user set is calculated; b, based on the scores of users in the similar user set, the target user's improved scores B1 for "communication skills" and "teamwork skills" are calculated; c, based on the scores of users in the similar user set, the target user's predicted scores B2 for "innovation ability", "learning ability" and "decision-making ability" are calculated; d, B1 and B2 are merged to obtain the target user's comprehensive score B for all abilities, and personalized ability recommendations are made to the target user based on B.
[0132] S8. Recommendation clustering capability and personalization capability.
[0133] In some embodiments, step S8 includes: giving priority to recommending cluster capabilities for new members of the group, users who wish to improve capabilities related to group commonalities, and active members of the group; for users who do not have specific preferences, the system recommends cluster capabilities by default to help them quickly find a development direction that suits them.
[0134] For users who prefer to develop personal skills or interests, personalized capabilities are recommended first.
[0135] Compared with the prior art, the advantages of the present invention are:
[0136] Integrate game behavior data and real work ability data to more comprehensively evaluate user capabilities;
[0137] Use deep learning and data mining techniques to improve the accuracy of analysis;
[0138] Provide cluster-based and personalized capability recommendations to help users better develop their own capabilities.
[0139] For ease of understanding, this embodiment further combines specific application scenarios, where users interact with other players, participate in team activities, learn new skills, and make decisions, and the system describes a specific implementation method of the above method, which specifically includes the following steps:
[0140] In step a, data collection and processing
[0141] Collect user game data D2, including communication, team, innovation, learning, decision-making and other aspects;
[0142] Collect user description page data D1, including age, gender, avatar, and self-description;
[0143] Extract user description page features D1' and game features D2';
[0144] Fusion D1' and D2' to construct the user-capability feature matrix D3;
[0145] Normalize D3 to remove outliers, missing values, and duplicate values.
[0146] In step b, the position code
[0147] The user-ability feature matrix D3 is positionally encoded using sine and cosine functions to better utilize position information.
[0148] In step c, model training and prediction
[0149] Use Encoder to process D3, learn the relationship between user-capability features, and obtain the user-capability feature matrix D4;
[0150] Using the Decoder part of the deep learning model, D4 and the user's game feature matrix D2' are taken as input to predict the score of each ability of the user and obtain the predicted user-ability score matrix D5.
[0151] In step d, model evaluation and optimization
[0152] The accuracy, recall, F1 value and AUC value are used to evaluate the matching degree between D5 and the true ability feature matrix Dt and optimize the model performance.
[0153] In step e, competency groups are identified
[0154] Use DBSCAN or OPTICS to cluster the user-ability rating matrix D5 and divide users into different ability groups.
[0155] In step f, capability impact analysis
[0156] Calculate the similarity between capabilities, construct the capability-capability network A, and evaluate the influence of each capability;
[0157] Find the core capabilities of each group, namely the cluster capabilities.
[0158] In step g, personalized capability recommendation
[0159] Based on the similarity vector of the target user and the exposed capabilities, the score of the unexposed capabilities is predicted;
[0160] Comprehensively score and recommend the highest-scoring competency as the personalized competency.
[0161] In step h, clustering capability and personalization capability are recommended
[0162] For new members of the group, users who want to improve abilities related to group commonality, active members of the group, and users without specific preferences, cluster abilities are recommended first;
[0163] For users who prefer to develop personal skills or interests, personalized capabilities are recommended first.
[0164] The above embodiments can further improve the efficiency and accuracy of recommendations and provide users with high-quality services and support.
[0165] like Figure 2 As shown, a user behavior analysis and model building device 200 based on big data includes: a data preprocessing module 201 for cleaning and formatting data;
[0166] A feature engineering module 202 for selecting and transforming features to improve the predictive performance of the model;
[0167] A similarity calculation module 203, used for calculating similarity;
[0168] A collaborative filtering module 204 for recommending capabilities based on similarities between users;
[0169] Evaluation module 205, used to calculate the accuracy, recall, F1 value and AUC value of the model and evaluate the performance of the model;
[0170] A recommendation module 206, for recommending cluster capabilities and personalized capabilities to users;
[0171] A clustering module 207, used to cluster the user-ability rating matrix;
[0172] A network construction module 208 is used to construct a correlation network between capabilities and evaluate the influence of capabilities;
[0173] Prediction module 209, used to predict the user's rating of the untouched capability;
[0174] The network analysis module 210 searches for related capabilities in the capability-capability network.
[0175] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways.
Claims
1. A user behavior analysis and model building method based on big data, characterized in that: include: S1, collect user description page data and game data, extract user description page features and user game features, and construct a user-capability feature matrix D3; And collect the real capability characteristic matrix Dt; S2, position encoding of the user-ability feature matrix D3 using sine and cosine functions; S3, use the Transformer / BERT / GPT-3 encoder to process the user-ability feature matrix D3, and use the decoder to predict the score of each user's ability to obtain the user-ability score matrix D5; S4, use accuracy, recall, F1 value, and AUC value to evaluate the matching degree between D5 and Dt and optimize the performance of the model; S5, cluster the user-ability score matrix D5 using DBSCAN or OPTICS to divide the users into different clusters; S6. Calculate the similarity between capability pairs, build capability-capability network A, evaluate the influence of each capability, and find the cluster capability of each group; S7, calculate user similarity and recommend personalized capabilities for target users; S8. Recommendation clustering capability and personalization capability.
2. The method according to claim 1, characterized in that The step S1 comprises: S11, collecting user description page data D1 and user game data D2, wherein collecting user description page data D1 includes user avatar data D1-1, page data D1-2, and text data D1-3 of the user description page; collecting user game data D2, including communication data D2-1, team data D2-2, innovation data D2-3, learning data D2-4, and decision data D2-5; S12, extracting user description page features D1' and user game features D2'; integrating D1' and D2' to construct a user-capability feature matrix D3; S13. Collect work negotiation data, team project data, work performance data, and decision-making data to form the real capability characteristic matrix Dt.
3. The method according to claim 2, characterized in that The step S2 comprises: After position encoding of the user-ability feature matrix D3, the sequence information is retained.
4. The method according to claim 2, characterized in that: The step S3 comprises: S31, using the Encoder part of the Transformer, BERT or GPT-3 deep learning model, input the position-encoded user-ability feature matrix D3, learn the relationship between user-ability features, and obtain the user-ability feature matrix D4; S32, using the Decoder part of the deep learning model, taking D4 and the user's game feature matrix D2' as input, predicting the score of each ability of the user, and obtaining a predicted user-ability score matrix D5; S33. Use the training set to train the model, using the cross entropy loss function and the Adam optimizer; calculate the accuracy, recall, F1 value and AUC value of the model on the test set to evaluate the model performance; S34, extract image features from D5 and limit its score value to the same range as Dt.
5. The method according to claim 1, characterized in that The step S4 comprises: The accuracy, recall, F1 value, and AUC value are used to evaluate the matching degree between D5 and Dt, so as to evaluate the consistency between the ability demonstrated by the user in the game and his performance in the real working environment. The reference thresholds are set, the accuracy is greater than 0.9, the recall rate is greater than 0.7, the F1 value is greater than 0.75, and the AUC value is greater than 0.
8. If the matching degree between D5 and Dt does not reach the above thresholds, the model parameters are adjusted, including the learning rate, batch size, and the number of hidden layers, to optimize the performance of the model.
6. The method according to claim 2, characterized in that The step S5 comprises: S51, parameter setting: set the parameters ε and MinPts of DBSCAN or OPTICS clustering algorithm; ε is the density threshold, which is used to control the density of the cluster; MinPts is the minimum number of data points in the neighborhood, which is used to determine the coreness of the data point; S52, clustering: cluster D5 using a clustering algorithm to divide users into different ability groups, where each cluster represents a group of users with similar ability characteristics; S53, use the Silhouette coefficient and Calinski-Harabasz index to evaluate the clustering effect, and interpret it in combination with the user description page features in D1'; the Silhouette coefficient measures the similarity between each user and the group to which he belongs; the Calinski-Harabasz index measures the overall quality of the clustering results: select the number of clusters that optimizes the Silhouette coefficient and Calinski-Harabasz index, and group the users in D5.
7. The method according to claim 2, characterized in that The step S6 comprises: S61. Calculate the similarity between all capability pairs according to D2'; use cosine similarity, Jaccard similarity or Pearson correlation coefficient as the metric; set the similarity threshold to 0.5-0.8; connect the capability pairs with similarity greater than the threshold to form capability-capability network A; S62. Use Katz centrality or HITS algorithm to evaluate the influence of each capability in the capability-capability network A; S63. Sort the capabilities according to Katz centrality or HITS influence score to find the core capability of each group, i.e., cluster capability.
8. The method according to claim 1, characterized in that The step S7 comprises: S71, calculate user similarity: use the compute_similarity function to calculate the similarity between the target user and other users according to the user-ability score matrix D5, and generate a similarity vector; S72, predicted score: select all users in the cluster to which the target user belongs as a similar user set; for the capabilities that the target user has been exposed to, calculate their improved scores B1 by weighted average; for the capabilities that the target user has not been exposed to, calculate their predicted scores B2 by weighted average based on the scores in the similar user set; S73. B1 and B2 are integrated to obtain the target user's comprehensive score B for all capabilities, and the capabilities are sorted according to the comprehensive score B, and the capability with the highest score is recommended as the personalized capability.
9. The method according to claim 1, characterized in that: The step S8 comprises: For new members of the group, users who want to improve abilities related to group commonality, active members of the group, and users without specific preferences, cluster abilities are recommended first; For users who prefer to develop personal skills or interests, personalized capabilities are recommended first.
10. A user behavior analysis and model building device based on big data, characterized in that: include: Data preprocessing module, used to clean and format data; Feature Engineering module, which is used to select and transform features to improve the predictive performance of the model; A similarity calculation module, used for calculating similarity; Collaborative filtering module, used to recommend capabilities based on similarities between users; The evaluation module is used to calculate the accuracy, recall, F1 value and AUC value of the model and evaluate the performance of the model; Recommendation module, used to recommend cluster capabilities and personalized capabilities to users; A clustering module, used to cluster the user-ability rating matrix; The network building module is used to build the association network between capabilities and evaluate the influence of capabilities; Prediction module, used to predict the user's rating of the untouched capability; The network analysis module searches for related capabilities in the capability-capability network.
Citation Information
Patent Citations
Systems and methods for recommending games using distributed storage
CA2821177A1
Information recommendation method and device, computer equipment and storage medium
CN113413607A
Method and system for customizing pet food based on personalized recommendation
CN115017419A
Game program, recording medium, game control method, and game device
JP2004033437A
