User portrait generation method, device, electronic device and storage medium

The cognitive model is trained through multi-task learning and progressive task learning to generate a user cognitive profile model, which solves the problem of low efficiency and accuracy of user profile generation and achieves more accurate and efficient user profile analysis and personalized services. .

CN117743848BActive Publication Date: 2024-09-06DARK MATTER ARTIFICIAL INTELLIGENT (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311665928.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2024-09-06
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

At this stage, the efficiency and accuracy of user portrait generation are low, making it difficult to meet the needs of enterprises for user understanding and personalized services.

Method used

Multi-task learning and progressive task learning are used to train the cognitive model, generate a user cognitive portrait model, and input behavioral data information into the model to analyze user behavior, interests and preferences to improve the accuracy and efficiency of user portrait generation.

Benefits of technology

Through multi-task learning and progressive task learning, the accuracy and efficiency of user portrait generation are improved, the understanding of user behavior and interests is enhanced, and the robustness of the model and the accuracy of content recommendation are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117743848B
    Figure CN117743848B
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and storage medium for generating a user portrait, wherein the user portrait generation includes: obtaining the behavior data information of the target user; inputting the behavior data information into a pre-trained user cognitive portrait model, performing user behavior analysis, user interest analysis and user preference analysis on the behavior data information, and outputting the user portrait of the target user; wherein the user cognitive portrait model is obtained by performing multi-task learning training and progressive task learning training on the cognitive model; and content is recommended to the target user based on the preference features in the user portrait. The cognitive model is trained using multi-task learning and progressive task learning to obtain a user cognitive portrait model, and the behavior data information is input into the user cognitive portrait model to generate a user portrait, thereby improving the accuracy and efficiency of user portrait generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for generating a user portrait. Background Art

[0002] User portrait recognition is a technology that builds a user's virtual image by analyzing and understanding the user's behavior, interests, preferences and other characteristics. This technology has a wide range of applications in many fields, including but not limited to advertising recommendations, personalized services, social network analysis, etc. Through accurate user portrait recognition, companies can better understand their users and provide more personalized services, thereby improving user satisfaction. However, the efficiency and accuracy of user portrait generation are low at this stage. Therefore, how to improve the efficiency and accuracy of user portrait generation has become a technical issue that cannot be underestimated. Summary of the invention

[0003] In view of this, the purpose of this application is to provide a user portrait generation method, device, electronic device and storage medium, use multi-task learning and progressive task learning to train the cognitive model to obtain a user cognitive portrait model, input behavioral data information into the user cognitive portrait model to generate a user portrait, thereby improving the accuracy and efficiency of user portrait generation.

[0004] The present application provides a method for generating a user portrait, wherein the user portrait generation includes:

[0005] Obtain behavioral data information of target users;

[0006] Input the behavior data information into a pre-trained user cognitive portrait model, perform user behavior analysis, user interest analysis and user preference analysis on the behavior data information, and output a user portrait of the target user; wherein the user cognitive portrait model is obtained by performing multi-task learning training and progressive task learning training on the cognitive model;

[0007] Content is recommended to the target user based on the preference characteristics in the user portrait.

[0008] In a possible implementation manner, the user cognitive portrait model is determined by the following steps:

[0009] Acquire a plurality of sample user portrait data, and perform data processing and data labeling on the plurality of sample user portrait data to determine a plurality of labeled sample user portrait data;

[0010] Performing multi-task learning training on the cognitive model using the plurality of labeled sample user portrait data, so that the cognitive model learns learning features for different tasks;

[0011] After the cognitive model has learned the learning features for different tasks, the cognitive model is trained in a progressive task learning manner according to the complexity of the task or the relevance of the target task to obtain an initialized user cognitive portrait model;

[0012] In a possible implementation manner, the acquiring a plurality of sample user portrait data, performing data processing and data labeling on the plurality of sample user portrait data, and determining a plurality of labeled sample user portrait data includes:

[0013] Dynamically obtain multiple initial sample user portrait data based on the historical shopping records, historical search records, and historical social network records of multiple sample users;

[0014] Performing data cleaning, data conversion, adding target sample user behavior data, and introducing noise on the plurality of initial sample user portrait data to determine the plurality of sample user portrait data;

[0015] Sample user behavior annotation, sample user interest annotation and sample user preference annotation are performed on each of the sample user portrait data to determine the sample user portrait data after multiple annotations.

[0016] In a possible implementation manner, the multi-task learning training of the cognitive model using the plurality of labeled sample user portrait data so that the cognitive model learns learning features for different tasks includes:

[0017] Aggregating the multiple labeled sample user portrait data to determine the multiple labeled sample user portrait data corresponding to each task; wherein the tasks include user behavior analysis, user interest analysis, and user preference analysis;

[0018] Inputting the multiple labeled sample user portrait data corresponding to the multiple tasks into multiple different network layers of the cognitive model at the same time to perform multi-task learning training, and determining the loss value of each task;

[0019] Based on the loss value of each task, data adjustment is performed on the corresponding multiple labeled sample user portrait data so that the cognitive model learns learning features for different tasks.

[0020] In a possible implementation, after the cognitive model learns the learning features for different tasks, the cognitive model is subjected to progressive task learning training according to the complexity of the task or the relevance of the target task to obtain an initialized user cognitive portrait model, including:

[0021] Sorting the plurality of tasks according to task levels to determine the plurality of tasks after sorting; wherein, the higher the task level, the higher the complexity of the corresponding task or the higher the relevance of the target task;

[0022] Based on the labeled sample user portrait data corresponding to the sorted multiple tasks, the cognitive model is trained in progressive task learning in an order from low to high task levels to determine the model parameters of the cognitive model at each task level;

[0023] Adjusting the model parameters of the previous task level based on the model parameters of the next task level until the model parameters of all task levels are adjusted, and determining the target model parameters of the cognitive model; wherein the next task level is higher than the previous task level;

[0024] Based on the target model parameters, the initialized user cognitive portrait model is determined.

[0025] In a possible implementation manner, the iterative optimization of the initialized user cognitive portrait model based on the evaluation result of the initialized user cognitive portrait model to determine the user cognitive portrait model includes:

[0026] Obtain multiple user test sets corresponding to user behavior analysis, user interest analysis, and user preference prediction;

[0027] Based on the multiple user test sets, the initialized user cognitive portrait model is evaluated in the three dimensions of the user behavior analysis, the user interest analysis and the user preference prediction, and the evaluation result of the initialized user cognitive portrait model in each dimension is determined;

[0028] Detecting whether the plurality of evaluation results meet the preset evaluation results;

[0029] If any of them is no, determine the dimension corresponding to the evaluation result, obtain new sample user portrait data of the dimension, iteratively train the initialized user cognitive portrait model based on the new sample user portrait data, and stop training until the evaluation result under the dimension meets the preset evaluation result, and determine the user cognitive portrait model.

[0030] In a possible implementation, for user behavior analysis, the initialization user cognitive portrait model is evaluated on the three dimensions of the user behavior analysis, the user interest analysis, and the user preference prediction based on the multiple user test sets, and the evaluation result of the initialization user cognitive portrait model under each dimension is determined, including:

[0031] Inputting the user test set of the user behavior analysis into the initialized user cognitive portrait model to determine a plurality of user behavior prediction results for the user behavior analysis;

[0032] Based on the multiple user behavior prediction results and the multiple user target behavior results corresponding to the user test set, determining the prediction accuracy and prediction recall of the initialized user cognitive portrait model for the user behavior;

[0033] Based on the prediction accuracy and the prediction recall, an evaluation result of the initialized user cognitive portrait model for the user behavior analysis is determined.

[0034] The embodiment of the present application also provides a user portrait generation device, the user portrait generation device comprising:

[0035] An acquisition module is used to obtain the behavior data information of the target user;

[0036] A generation module is used to input the behavior data information into a pre-trained user cognitive portrait model, perform user behavior analysis, user interest analysis and user preference analysis on the behavior data information, and output a user portrait of the target user; wherein the user cognitive portrait model is obtained by performing multi-task learning training and progressive task learning training on the cognitive model;

[0037] A recommendation module is used to recommend content to the target user based on the preference characteristics in the user portrait.

[0038] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the user portrait generation method as described above are performed.

[0039] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the user portrait generation method as described above are executed.

[0040] The embodiments of the present application provide a method, device, electronic device and storage medium for generating a user portrait, wherein the user portrait generation includes: obtaining the behavior data information of the target user; inputting the behavior data information into a pre-trained user cognitive portrait model, performing user behavior analysis, user interest analysis and user preference analysis on the behavior data information, and outputting a user portrait of the target user; wherein the user cognitive portrait model is obtained by performing multi-task learning training and progressive task learning training on the cognitive model; and content is recommended to the target user based on the preference features in the user portrait. The cognitive model is trained using multi-task learning and progressive task learning to obtain a user cognitive portrait model, and the behavior data information is input into the user cognitive portrait model to generate a user portrait, thereby improving the accuracy and efficiency of user portrait generation.

[0041] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 A flowchart of a method for generating a user portrait provided in an embodiment of the present application;

[0044] Figure 2 One of the structural schematic diagrams of a user portrait generating device provided in an embodiment of the present application;

[0045] Figure 3 A second structural diagram of a user portrait generating device provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0048] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0049] In order to enable those skilled in the art to use the contents of this application, the following implementation method is given in combination with the specific application scenario of "generating user portraits". For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application.

[0050] The following methods, devices, electronic devices or computer-readable storage media in the embodiments of the present application can be applied to any scenario where a user portrait needs to be generated. The embodiments of the present application are not limited to specific application scenarios. Any scheme using a user portrait generation method, device, electronic device and storage medium provided in the embodiments of the present application is within the protection scope of the present application.

[0051] Research has found that user portrait recognition is a technology that builds a user's virtual image by analyzing and understanding the user's behavior, interests, preferences and other characteristics. This technology has a wide range of applications in many fields, including but not limited to advertising recommendations, personalized services, social network analysis, etc. Through accurate user portrait recognition, companies can better understand their users and provide more personalized services, thereby improving user satisfaction. However, the efficiency and accuracy of user portrait generation are low at this stage. Therefore, how to improve the efficiency and accuracy of user portrait generation has become a technical issue that cannot be underestimated.

[0052] Based on this, an embodiment of the present application provides a user portrait generation method, which uses multi-task learning and progressive task learning to train the cognitive model to obtain a user cognitive portrait model, and inputs behavioral data information into the user cognitive portrait model to generate a user portrait, thereby improving the accuracy and efficiency of user portrait generation.

[0053] See also Figure 1 , Figure 1 This is a flow chart of a method for generating a user portrait provided in an embodiment of the present application. Figure 1 As shown in , the user portrait generation method provided in the embodiment of the present application includes:

[0054] S101: Obtaining behavior data information of target users.

[0055] In this step, the behavior data information of the target user is obtained.

[0056] Here, the target user's behavior data information may be in the form of text, and the target user's behavior data information may be obtained through the target user's shopping records, search records, social network dynamics and other behaviors. For example, the behavior data information is "the target user often searches for information about healthy diet and buys organic food."

[0057] S102: Input the behavior data information into a pre-trained user cognitive portrait model, perform user behavior analysis, user interest analysis and user preference analysis on the behavior data information, and output a user portrait of the target user; wherein the user cognitive portrait model is obtained by performing multi-task learning training and progressive task learning training on the cognitive model.

[0058] In this step, the behavior data information is input into a pre-trained user cognitive portrait model, and user behavior analysis, user interest analysis, and user preference analysis are performed on the behavior data information to output a user portrait of the target user.

[0059] Among them, user behavior analysis can provide a high-level overview of raw data to better understand how users interact with platforms or products. User behavior analysis focuses on search history, purchase power, page browsing time, click-through rate and other information. User interest analysis is usually a further study based on user behavior analysis. It involves in-depth research on the motivations and needs behind user behavior, so as to provide more personalized and targeted content or products. User interest analysis focuses on tags and classifications, social media activities, content preferences and other information. User preference analysis is to understand the probability and pattern of future user behavior, which helps companies prepare in advance, such as inventory management, marketing campaign planning, etc. User preference analysis focuses on consumption patterns and habits, time, seasonal factors, attitudes in response to different marketing strategies and other information.

[0060] The user cognitive portrait model is obtained by multi-task learning and progressive task learning training of the cognitive model. The "multi-task learning, progressive learning" training method is adopted to improve the efficiency and performance of model training.

[0061] Among them, multi-task learning is to learn multiple tasks simultaneously in a unified model, such as learning users' shopping preferences and search preferences at the same time. This allows the knowledge learned from one task to help other tasks and improve the generalization ability of the model. Progressive task learning is to pre-train the model with simple tasks or data sets, and then gradually increase the complexity of the tasks or use more complex data sets for fine-tuning, so that the model has better recognition ability when facing complex tasks.

[0062] In a possible implementation manner, the user cognitive portrait model is determined by the following steps:

[0063] A: Acquire multiple sample user portrait data, and perform data processing and data labeling on the multiple sample user portrait data to determine multiple labeled sample user portrait data.

[0064] Here, a plurality of sample user portrait data are obtained, and data processing and data labeling are performed on the plurality of sample user portrait data to obtain a plurality of labeled sample user portrait data.

[0065] Here, the labeled sample portrait data carries sample user behavior annotation labels, sample user interest annotations, and sample user preference annotations.

[0066] Among them, user portrait is a high-level summary and abstraction of user characteristics. User usage history, shopping records, search records, social network dynamics, etc. are all raw data for building user portrait. These data reflect user behavior, interests and preferences. Through the analysis and mining of these data, sample user portrait data reflecting user characteristics can be constructed.

[0067] In a possible implementation manner, the acquiring a plurality of sample user portrait data, performing data processing and data labeling on the plurality of sample user portrait data, and determining a plurality of labeled sample user portrait data includes:

[0068] (1): Based on the historical shopping records, historical search records, and historical social network records of multiple sample users, multiple initial sample user portrait data are dynamically obtained.

[0069] Here, multiple initial sample user portrait data are dynamically acquired based on the historical shopping records, historical search records, and historical social network records of multiple sample users.

[0070] Among them, by collecting and preprocessing various types of sample user behavior data, these data include but are not limited to users' browsing history, shopping records, search records, social network dynamics, etc. These data can be obtained from various sources, such as website logs, databases, APIs, open source interfaces, etc., and the cognitive model is trained through these data, so that the successfully trained user cognitive portrait model can learn the user's behavior pattern and interest preferences, so as to more accurately identify the user's portrait.

[0071] (2): Data cleaning, data conversion, adding target sample user behavior data and introducing noise are performed on the multiple initial sample user portrait data to determine the multiple sample user portrait data.

[0072] Here, multiple initial sample user portrait data are cleaned, converted, target sample user behavior data is added, and noise is introduced to determine multiple sample user portrait data.

[0073] The target sample user behavior data is unrecognizable sample user behavior data, which enables the model to more accurately identify the user's real behavior and interests. These samples can help the model understand which user behaviors are unrecognizable, thereby avoiding making wrong predictions on these behaviors.

[0074] The introduction of noise into the initial sample user portrait data is to introduce some typos, grammatical errors, etc. into the data to improve the robustness of the model. These noises can simulate various situations in the real environment, so that the model can maintain good performance in various situations and improve the robustness of the model.

[0075] Among them, data cleaning is to remove duplicate data, erroneous data or incomplete data, and data conversion is to convert unstructured data into structured data, such as converting text data into numerical or categorical data.

[0076] (3): Perform sample user behavior annotation, sample user interest annotation and sample user preference annotation on each of the sample user portrait data to determine the sample user portrait data after multiple annotations.

[0077] Here, sample user behavior annotation, sample user interest annotation and sample user preference annotation are performed on each sample user portrait data to determine a plurality of annotated sample user portrait data.

[0078] Among them, the data is labeled according to the task of supervised learning, and manual labeling or semi-automatic labeling can be used to ensure the accuracy of the labeling.

[0079] Among them, the data annotation example is: the data entry of the user search record: {"User ID":123,"Search content":"How to grow organic vegetables","Timestamp":"2023-06-15T08:45:30Z"} The annotated data is as follows: {"User ID":123,"Search content":"How to grow organic vegetables","Timestamp":"2023-06-15T08:45:30Z","Labels":["Organic","Gardening","Vegetables","Tutorials"]}. When annotating data, it is necessary to pay attention to quality control to ensure the accuracy and consistency of the annotations in order to improve the performance of the model. Quality control mainly includes the formulation of annotation guidelines, the training of annotation personnel, and the inspection of annotation results.

[0080] B: Perform multi-task learning training on the cognitive model using the multiple labeled sample user portrait data, so that the cognitive model can learn learning features for different tasks.

[0081] Here, a plurality of labeled sample user portrait data are used to perform multi-task learning training on the cognitive model, so that the cognitive model can learn learning features for different tasks.

[0082] Among them, in the tasks of user portrait recognition and graph construction, cognitive models are selected for processing. Cognitive models have powerful representation learning capabilities and can learn rich semantic information from a large amount of unstructured text data. This is of great value for understanding user behavior, interests and preferences and building accurate user portraits. When choosing a cognitive model, you can consider the following aspects: the latest cognitive model with a large model size, because with the continuous updating and iteration of cognitive models, the newer the model, the better the effect. At the same time, the larger the scale, the model tends to have a stronger learning ability, rich linguistic knowledge and semantic understanding ability, and can be fine-tuned and learned on specific tasks; consider the availability and ease of use of the model: some cognitive models may have special adaptability and advantages in specific languages ​​or fields. It is necessary to select a suitable model based on the needs of the task and the characteristics of the data to ensure that it is easy to use and integrate; based on the requirements of the model for the task of user portrait recognition and graph construction.

[0083] In this solution, the cognitive model has a powerful representation learning capability and can learn rich semantic information from a large amount of unstructured text data. It is of great value in understanding user behavior, interests, and preferences and building accurate user portraits. In addition, it can also improve the efficiency of user portrait recognition. The cognitive model architecture greatly improves the efficiency of training and prediction by processing sequence data in parallel.

[0084] In a possible implementation manner, the multi-task learning training of the cognitive model using the plurality of labeled sample user portrait data so that the cognitive model learns learning features for different tasks includes:

[0085] a: Aggregate the multiple labeled sample user portrait data to determine the multiple labeled sample user portrait data corresponding to each task; wherein the tasks include user behavior analysis, user interest analysis, and user preference analysis.

[0086] Here, a plurality of labeled sample user portrait data are summarized to determine a plurality of labeled sample user portrait data corresponding to each task.

[0087] Among them, the tasks include user behavior analysis, user interest analysis and user preference analysis. There are also small categories of tasks under user behavior analysis, user interest analysis and user preference analysis. For example, user preference analysis also includes shopping preferences and search preferences.

[0088] b: Input the multiple labeled sample user portrait data corresponding to the multiple tasks into multiple different network layers of the cognitive model at the same time to perform multi-task learning training, and determine the loss value of each task.

[0089] Here, multiple labeled sample user portrait data corresponding to multiple tasks are simultaneously input into multiple different network layers of the cognitive model for multi-task learning training to determine the loss value of each task.

[0090] Here, multiple labeled sample user portrait data corresponding to different tasks correspond to different network layers of the authentication model.

[0091] c: Based on the loss value of each task, data adjustment is performed on the corresponding multiple labeled sample user portrait data so that the cognitive model can learn learning features for different tasks.

[0092] Here, data adjustment is performed on the corresponding multiple labeled sample user portrait data according to the loss value of each task, so that the cognitive model can learn learning features for different tasks.

[0093] C: After the cognitive model has learned the learning features for different tasks, the cognitive model is trained in progressive task learning according to the complexity of the task or the relevance of the target task to obtain an initialized user cognitive portrait model.

[0094] Here, after the cognitive model learns the learning features for different tasks, progressive task learning training is performed on the cognitive model according to the complexity of the task or the relevance of the target task to obtain an initialized user cognitive portrait model.

[0095] Here, the target task is a preset task.

[0096] In a possible implementation, after the cognitive model learns the learning features for different tasks, the cognitive model is subjected to progressive task learning training according to the complexity of the task or the relevance of the target task to obtain an initialized user cognitive portrait model, including:

[0097] I: sorting the plurality of tasks according to task levels to determine the sorted plurality of tasks; wherein, a higher task level corresponds to a higher complexity of the corresponding task or a higher relevance of the target task.

[0098] Here, the plurality of tasks are sorted according to the task levels, and the sorted plurality of tasks are determined.

[0099] Among them, the task level is predetermined, and the higher the task level, the higher the complexity of the corresponding task or the higher the relevance of the target task.

[0100] II: Based on the labeled sample user portrait data corresponding to the sorted multiple tasks, the cognitive model is subjected to progressive task learning training in an order from low to high task levels to determine the model parameters of the cognitive model at each task level.

[0101] Here, based on the labeled sample user portrait data corresponding to the sorted multiple tasks, the cognitive model is trained through progressive task learning in the order of task levels from low to high, and the model parameters of the cognitive model at each task level are determined.

[0102] III: adjusting the model parameters of the previous task level based on the model parameters of the next task level until the model parameters of all task levels are adjusted, and then determining the target model parameters of the cognitive model; wherein the next task level is higher than the previous task level.

[0103] Here, the model parameters of the previous task level are adjusted according to the model parameters of the next task level, until the model parameters of all task levels are adjusted, and then the target model parameters of the cognitive model are determined.

[0104] Among them, the cognitive model is first trained on primary tasks using labeled sample user portrait data corresponding to tasks with low complexity or low relevance to the target task, and the model parameters of the cognitive model corresponding to the primary tasks are obtained and saved. Then, the cognitive model is gradually trained on advanced tasks using labeled sample user portrait data corresponding to tasks with higher complexity or higher relevance, and the model parameters of the cognitive model corresponding to advanced tasks are obtained. The parameters of the cognitive model are fine-tuned using the model parameters corresponding to more complex task data, and the performance of the model is evaluated after each fine-tuning until all tasks are trained and the target model parameters are determined.

[0105] IV: Based on the target model parameters, determine the initialized user cognitive portrait model.

[0106] Here, the initialization user cognitive portrait model is determined according to the target model parameters.

[0107] D: Iteratively optimize the initialized user cognitive portrait model based on the evaluation result of the initialized user cognitive portrait model to determine the user cognitive portrait model.

[0108] Here, the initialized user cognitive portrait model is iteratively optimized according to the evaluation results of the initialized user cognitive portrait model to determine the user cognitive portrait model.

[0109] In a possible implementation manner, the iterative optimization of the initialized user cognitive portrait model based on the evaluation result of the initialized user cognitive portrait model to determine the user cognitive portrait model includes:

[0110] i: Obtain multiple user test sets corresponding to user behavior analysis, user interest analysis, and user preference prediction.

[0111] ii: Based on the multiple user test sets, the initialized user cognitive portrait model is evaluated in the three dimensions of the user behavior analysis, the user interest analysis and the user preference prediction, and the evaluation results of the initialized user cognitive portrait model in each dimension are determined.

[0112] Here, the initialized user cognitive portrait model is evaluated in three dimensions of user behavior analysis, user interest analysis, and user preference prediction based on multiple user test sets, and the evaluation results of the initialized user cognitive portrait model in each dimension are determined.

[0113] Among them, use an independent test data set to evaluate the model, obtain the evaluation results of each dimension, compare the performance of the model in each dimension, find out the advantages and disadvantages of the model, and optimize the model according to the evaluation results. For example, if the model performs poorly in user interest mining, you can add data related to user interests for training.

[0114] In a possible implementation, for user behavior analysis, the initialization user cognitive portrait model is evaluated on the three dimensions of the user behavior analysis, the user interest analysis, and the user preference prediction based on the multiple user test sets, and the evaluation result of the initialization user cognitive portrait model under each dimension is determined, including:

[0115] (i) Inputting the user test set of the user behavior analysis into the initialized user cognitive portrait model to determine a plurality of user behavior prediction results for the user behavior analysis.

[0116] Here, the user test set corresponding to the user behavior analysis is input into the initialized user cognitive portrait model to determine multiple user behavior prediction results for the user behavior analysis.

[0117] (ii) Based on the plurality of user behavior prediction results and the corresponding plurality of user target behavior results in the user test set, the prediction accuracy and prediction recall of the initialized user cognitive portrait model for the user behavior are determined.

[0118] Here, based on multiple user behavior prediction results and multiple user target behavior results corresponding to the user test set, the prediction accuracy and prediction recall rate of the initialized user cognitive portrait model for user behavior are determined.

[0119] (III): Based on the prediction accuracy and the prediction recall, determine the evaluation result of the initialized user cognitive portrait model for the user behavior analysis.

[0120] Here, based on the prediction accuracy and the prediction recall, the evaluation result of the initialized user cognitive portrait model for user behavior analysis is determined.

[0121] Here, the evaluation result is the F1 value, which is determined based on the prediction accuracy and the prediction recall.

[0122] Among them, the process of determining the evaluation results corresponding to the user interest analysis and user preference prediction is consistent with the process of determining the evaluation results of the above-mentioned user behavior analysis, and will not be repeated in this part.

[0123] iii: Detect whether the multiple evaluation results meet the preset evaluation results; if any one of them does not, determine the dimension corresponding to the evaluation result, obtain new sample user portrait data of the dimension, and iteratively train the initialized user cognitive portrait model based on the new sample user portrait data until the evaluation result under the dimension meets the preset evaluation result, then stop the training and determine the user cognitive portrait model.

[0124] Here, it is detected whether multiple evaluation results meet the preset evaluation results; if any one of them is not, the dimension corresponding to the evaluation result is determined, and new sample user portrait data of the dimension is obtained. The initialized user cognitive portrait model is iteratively trained according to the new sample user portrait data until the evaluation result under the dimension meets the preset evaluation result, then the training is stopped and the user cognitive portrait model is determined.

[0125] The initialization user cognitive model can be iteratively trained in the following ways: (1) Collect more and more diverse user behavior data and annotate them to provide accurate user portraits. This can be done manually or automatically using a basic general model. (2) Use the new data collected to retrain the model and optimize it. At the same time, different training strategies, model parameter adjustments, model architecture changes, and other methods can be used to improve the performance of the model. (3) The weaknesses or types of errors in the model performance can be analyzed, and new challenging tasks or data sets can be introduced to address these problems. This will enable the model to be better trained and generalized in these aspects. Based on the results of the evaluation analysis, the structure or parameters of the model can be adjusted and retrained. In addition, incremental training methods can be used, using only new data, or batch training methods can be used to make adjustments based on the original model. (4) User feedback and optimization: During the training process, user feedback and evaluations are collected and the model is optimized. The model is adjusted based on the problems or confusions reported by the user to provide better user portrait recognition and graph construction capabilities. Through the above iterative optimization, while continuously optimizing the model, problems in the model can also be discovered and solved, thereby continuously improving the user portrait recognition and graph construction capabilities of the cognitive model.

[0126] When the user cognitive portrait model is trained, it can be deployed to the online system. When new user data comes in, the model can profile the user in real time and provide user feature data to other systems (such as recommendation systems, advertising systems, etc.), helping these systems to provide services to users more accurately.

[0127] This solution has the following advantages: (1) Improve the ability to understand user behavior: By building diverse user behavior data, the model can understand and predict various user behaviors. (2) Improve the ability to mine user interests: By adding samples of various user interests to the training data, the model can accurately mine user interests. (3) Improve the robustness of the model: By introducing various noises (such as typos, grammatical errors, etc.), the model can maintain good performance in various situations. (4) Reduce the model's misjudgment: By adding unrecognizable user behavior samples, the model can more accurately identify the user's true behavior and interests.

[0128] S103: Recommending content to the target user based on the preference characteristics in the user portrait.

[0129] In this step, content is recommended to target users based on the preference characteristics in the user portrait.

[0130] Among them, user portraits can be understood as labels for massive data. According to the differences in users' target behaviors and opinions, they are divided into different types. Then, typical features are extracted from each type, and they are given descriptions such as names, photos, some demographic elements, and scenes to form a character prototype.

[0131] In a specific embodiment, when the behavior data information of a new user enters the user cognitive portrait model, the user cognitive portrait model will analyze the behavior data information and generate a user portrait for the user. For example, a user often searches for information about "healthy diet" and buys organic food. The model may generate the following user portrait: {"User ID": 123,"Interest": ["Healthy diet", "Organic food"],"Behavior": ["Search for healthy recipes", "Buy organic products"],"Preference": ["Prefer online shopping", "Often read food labels"]}.

[0132] The embodiment of the present application provides a method for generating a user portrait, wherein the user portrait generation includes: obtaining the behavior data information of the target user; inputting the behavior data information into a pre-trained user cognitive portrait model, performing user behavior analysis, user interest analysis, and user preference analysis on the behavior data information, and outputting a user portrait of the target user; wherein the user cognitive portrait model is obtained by performing multi-task learning training and progressive task learning training on the cognitive model; and content is recommended to the target user based on the preference features in the user portrait. The cognitive model is trained using multi-task learning and progressive task learning to obtain a user cognitive portrait model, and the behavior data information is input into the user cognitive portrait model to generate a user portrait, thereby improving the accuracy and efficiency of user portrait generation.

[0133] See also Figure 2 , Figure 3 , Figure 2 One of the structural schematic diagrams of a user portrait generating device provided in an embodiment of the present application; Figure 3 This is a second structural diagram of a user portrait generation device provided in an embodiment of the present application. Figure 2 As shown in , the user portrait generating device 200 includes:

[0134] An acquisition module 210 is used to acquire behavior data information of a target user;

[0135] The generating module 220 is used to input the behavior data information into a pre-trained user cognitive portrait model, perform user behavior analysis, user interest analysis and user preference analysis on the behavior data information, and output a user portrait of the target user; wherein the user cognitive portrait model is obtained by performing multi-task learning training and progressive task learning training on the cognitive model;

[0136] The recommendation module 230 is used to recommend content to the target user based on the preference characteristics in the user portrait.

[0137] Further, such as Figure 3 As shown, the user portrait generation device 200 also includes a model training module 240, and the model training module 240 determines the user cognitive portrait model through the following steps:

[0138] Acquire a plurality of sample user portrait data, and perform data processing and data labeling on the plurality of sample user portrait data to determine a plurality of labeled sample user portrait data;

[0139] Performing multi-task learning training on the cognitive model using the plurality of labeled sample user portrait data, so that the cognitive model learns learning features for different tasks;

[0140] After the cognitive model has learned the learning features for different tasks, the cognitive model is trained in a progressive task learning manner according to the complexity of the task or the relevance of the target task to obtain an initialized user cognitive portrait model;

[0141] The initialized user cognitive portrait model is iteratively optimized based on the evaluation result of the initialized user cognitive portrait model to determine the user cognitive portrait model.

[0142] Furthermore, when the model training module 240 is used to obtain a plurality of sample user portrait data, perform data processing and data labeling on the plurality of sample user portrait data, and determine a plurality of labeled sample user portrait data, the model training module 240 is specifically used to:

[0143] Dynamically obtain multiple initial sample user portrait data based on the historical shopping records, historical search records, and historical social network records of multiple sample users;

[0144] Performing data cleaning, data conversion, adding target sample user behavior data, and introducing noise on the plurality of initial sample user portrait data to determine the plurality of sample user portrait data;

[0145] Sample user behavior annotation, sample user interest annotation and sample user preference annotation are performed on each of the sample user portrait data to determine the sample user portrait data after multiple annotations.

[0146] Furthermore, when the model training module 240 is used to perform multi-task learning training on the cognitive model using the multiple labeled sample user portrait data so that the cognitive model learns learning features for different tasks, the model training module 240 is specifically used to:

[0147] Aggregating the multiple labeled sample user portrait data to determine the multiple labeled sample user portrait data corresponding to each task; wherein the tasks include user behavior analysis, user interest analysis, and user preference analysis;

[0148] Inputting the multiple labeled sample user portrait data corresponding to the multiple tasks into multiple different network layers of the cognitive model at the same time to perform multi-task learning training, and determining the loss value of each task;

[0149] Based on the loss value of each task, data adjustment is performed on the corresponding multiple labeled sample user portrait data so that the cognitive model learns learning features for different tasks.

[0150] Further, after the cognitive model learns the learning features for different tasks, the model training module 240 performs progressive task learning training on the cognitive model according to the complexity of the task or the relevance of the target task to obtain the initialized user cognitive portrait model. The model training module 240 is specifically used to:

[0151] Sorting the plurality of tasks according to task levels to determine the plurality of tasks after sorting; wherein, the higher the task level, the higher the complexity of the corresponding task or the higher the relevance of the target task;

[0152] Based on the labeled sample user portrait data corresponding to the sorted multiple tasks, the cognitive model is trained in progressive task learning in an order from low to high task levels to determine the model parameters of the cognitive model at each task level;

[0153] Adjusting the model parameters of the previous task level based on the model parameters of the next task level until the model parameters of all task levels are adjusted, and determining the target model parameters of the cognitive model; wherein the next task level is higher than the previous task level;

[0154] Based on the target model parameters, the initialized user cognitive portrait model is determined.

[0155] Furthermore, when the model training module 240 is used to iteratively optimize the initialized user cognitive portrait model based on the evaluation result of the initialized user cognitive portrait model to determine the user cognitive portrait model, the model training module 240 is specifically used to:

[0156] Obtain multiple user test sets corresponding to user behavior analysis, user interest analysis, and user preference prediction;

[0157] Based on the multiple user test sets, the initialized user cognitive portrait model is evaluated in the three dimensions of the user behavior analysis, the user interest analysis and the user preference prediction, and the evaluation result of the initialized user cognitive portrait model in each dimension is determined;

[0158] Detecting whether the plurality of evaluation results meet the preset evaluation results;

[0159] If any of them is no, determine the dimension corresponding to the evaluation result, obtain new sample user portrait data of the dimension, iteratively train the initialized user cognitive portrait model based on the new sample user portrait data, and stop training until the evaluation result under the dimension meets the preset evaluation result, and determine the user cognitive portrait model.

[0160] Further, when the model training module 240 is used for user behavior analysis, the initialization user cognitive portrait model is evaluated on the three dimensions of the user behavior analysis, the user interest analysis and the user preference prediction based on the multiple user test sets, and the evaluation result of the initialization user cognitive portrait model under each dimension is determined, the model training module 240 is specifically used to:

[0161] Inputting the user test set of the user behavior analysis into the initialized user cognitive portrait model to determine a plurality of user behavior prediction results for the user behavior analysis;

[0162] Based on the multiple user behavior prediction results and the multiple user target behavior results corresponding to the user test set, determining the prediction accuracy and prediction recall of the initialized user cognitive portrait model for the user behavior;

[0163] Based on the prediction accuracy and the prediction recall, an evaluation result of the initialized user cognitive portrait model for the user behavior analysis is determined.

[0164] An embodiment of the present application provides a user portrait generation device, which includes: an acquisition module for acquiring behavioral data information of a target user; a generation module for inputting the behavioral data information into a pre-trained user cognitive portrait model, performing user behavior analysis, user interest analysis, and user preference analysis on the behavioral data information, and outputting a user portrait of the target user; wherein the user cognitive portrait model is obtained by performing multi-task learning training and progressive task learning training on the cognitive model; a recommendation module for recommending content to the target user based on the preference features in the user portrait. The cognitive model is trained using multi-task learning and progressive task learning to obtain a user cognitive portrait model, and the behavioral data information is input into the user cognitive portrait model to generate a user portrait, thereby improving the accuracy and efficiency of user portrait generation.

[0165] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .

[0166] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The specific implementation of the steps of the user portrait generation method in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0167] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The specific implementation of the steps of the user portrait generation method in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0168] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0169] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0171] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0172] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0173] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for generating a user portrait, characterized in that: The user portrait generation includes: Obtain behavioral data information of target users; Input the behavior data information into a pre-trained user cognitive portrait model, perform user behavior analysis, user interest analysis and user preference analysis on the behavior data information, and output a user portrait of the target user; wherein the user cognitive portrait model is obtained by performing multi-task learning training and progressive task learning training on the cognitive model; Recommending content to the target user based on the preference characteristics in the user portrait; The user cognitive portrait model is determined by the following steps: Acquire a plurality of sample user portrait data, and perform data processing and data labeling on the plurality of sample user portrait data to determine a plurality of labeled sample user portrait data; Performing multi-task learning training on the cognitive model using the multiple labeled sample user portrait data, so that the cognitive model can learn learning features for different tasks; wherein the tasks include user behavior analysis, user interest analysis, and user preference analysis; After the cognitive model has learned the learning features for different tasks, the cognitive model is trained in a progressive task learning manner according to the complexity of the task or the relevance of the target task to obtain an initialized user cognitive portrait model; Iteratively optimizing the initialized user cognitive portrait model based on the evaluation result of the initialized user cognitive portrait model to determine the user cognitive portrait model; After the cognitive model has learned the learning features for different tasks, the cognitive model is subjected to progressive task learning training according to the complexity of the task or the relevance of the target task to obtain an initialized user cognitive portrait model, including: Sorting the plurality of tasks according to task levels to determine the plurality of tasks after sorting; wherein, the higher the task level, the higher the complexity of the corresponding task or the higher the relevance of the target task; Based on the labeled sample user portrait data corresponding to the sorted multiple tasks, the cognitive model is trained in progressive task learning in an order from low to high task levels to determine the model parameters of the cognitive model at each task level; Adjusting the model parameters of the previous task level based on the model parameters of the next task level until the model parameters of all task levels are adjusted, and determining the target model parameters of the cognitive model; wherein the next task level is higher than the previous task level; Based on the target model parameters, the initialized user cognitive portrait model is determined.

2. The user portrait generation method according to claim 1, characterized in that: The obtaining of a plurality of sample user portrait data, and performing data processing and data labeling on the plurality of sample user portrait data to determine a plurality of labeled sample user portrait data includes: Dynamically obtain multiple initial sample user portrait data based on the historical shopping records, historical search records, and historical social network records of multiple sample users; Performing data cleaning, data conversion, adding target sample user behavior data, and introducing noise on the plurality of initial sample user portrait data to determine the plurality of sample user portrait data; Sample user behavior annotation, sample user interest annotation and sample user preference annotation are performed on each of the sample user portrait data to determine the sample user portrait data after multiple annotations.

3. The user portrait generation method according to claim 1, characterized in that: The method of performing multi-task learning training on the cognitive model using the plurality of labeled sample user portrait data so that the cognitive model learns learning features for different tasks includes: Aggregating the plurality of labeled sample user portrait data to determine the plurality of labeled sample user portrait data corresponding to each task; Inputting the multiple labeled sample user portrait data corresponding to the multiple tasks into multiple different network layers of the cognitive model at the same time to perform multi-task learning training, and determining the loss value of each task; Based on the loss value of each task, data adjustment is performed on the corresponding multiple labeled sample user portrait data so that the cognitive model learns learning features for different tasks.

4. The user portrait generation method according to claim 1, characterized in that: The iterative optimization of the initialized user cognitive portrait model based on the evaluation result of the initialized user cognitive portrait model to determine the user cognitive portrait model includes: Obtain multiple user test sets corresponding to user behavior analysis, user interest analysis, and user preference prediction; Based on the multiple user test sets, the initialized user cognitive portrait model is evaluated in the three dimensions of the user behavior analysis, the user interest analysis and the user preference prediction, and the evaluation result of the initialized user cognitive portrait model in each dimension is determined; Detecting whether the plurality of evaluation results meet the preset evaluation results; If any of them is no, determine the dimension corresponding to the evaluation result, obtain new sample user portrait data of the dimension, iteratively train the initialized user cognitive portrait model based on the new sample user portrait data, and stop training until the evaluation result under the dimension meets the preset evaluation result, and determine the user cognitive portrait model.

5. The user portrait generation method according to claim 4, characterized in that: For user behavior analysis, the initialization user cognitive portrait model is evaluated on the three dimensions of the user behavior analysis, the user interest analysis, and the user preference prediction based on the multiple user test sets, and the evaluation result of the initialization user cognitive portrait model under each dimension is determined, including: Inputting the user test set of the user behavior analysis into the initialized user cognitive portrait model to determine a plurality of user behavior prediction results for the user behavior analysis; Based on the multiple user behavior prediction results and the multiple user target behavior results corresponding to the user test set, determining the prediction accuracy and prediction recall of the initialized user cognitive portrait model for the user behavior; Based on the prediction accuracy and the prediction recall, an evaluation result of the initialized user cognitive portrait model for the user behavior analysis is determined.

6. A user portrait generation device, characterized in that: The user portrait generating device comprises: An acquisition module is used to obtain the behavior data information of the target user; A generation module is used to input the behavior data information into a pre-trained user cognitive portrait model, perform user behavior analysis, user interest analysis and user preference analysis on the behavior data information, and output a user portrait of the target user; wherein the user cognitive portrait model is obtained by performing multi-task learning training and progressive task learning training on the cognitive model; A recommendation module, used to recommend content to the target user based on the preference characteristics in the user portrait; The user portrait generation device further includes a model training module, which determines the user cognitive portrait model through the following steps: Acquire a plurality of sample user portrait data, and perform data processing and data labeling on the plurality of sample user portrait data to determine a plurality of labeled sample user portrait data; Performing multi-task learning training on the cognitive model using the multiple labeled sample user portrait data, so that the cognitive model can learn learning features for different tasks; wherein the tasks include user behavior analysis, user interest analysis, and user preference analysis; After the cognitive model has learned the learning features for different tasks, the cognitive model is subjected to progressive task learning training according to the complexity of the task or the relevance of the target task to obtain an initialized user cognitive portrait model; wherein the progressive task learning training is to perform task learning training on the cognitive model in order from low to high task levels; Iteratively optimizing the initialized user cognitive portrait model based on the evaluation result of the initialized user cognitive portrait model to determine the user cognitive portrait model; The model training module is used to perform progressive task learning training on the cognitive model according to the complexity of the task or the relevance of the target task after the cognitive model has learned the learning features for different tasks, and when the user cognitive portrait model is initialized, the model training module is specifically used to: Sorting the plurality of tasks according to task levels to determine the plurality of tasks after sorting; wherein, the higher the task level, the higher the complexity of the corresponding task or the higher the relevance of the target task; Based on the labeled sample user portrait data corresponding to the sorted multiple tasks, the cognitive model is trained in progressive task learning in an order from low to high task levels to determine the model parameters of the cognitive model at each task level; Adjusting the model parameters of the previous task level based on the model parameters of the next task level until the model parameters of all task levels are adjusted, and determining the target model parameters of the cognitive model; wherein the next task level is higher than the previous task level; Based on the target model parameters, the initialized user cognitive portrait model is determined.

7. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate through the bus. When the machine-readable instructions are run by the processor, the steps of the user portrait generation method as described in any one of claims 1 to 5 are executed.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the user portrait generation method according to any one of claims 1 to 5 are executed.