Model generation method and device, computer equipment and computer readable storage medium

By aggregating and filtering user behavior data and combining the degree of correlation between user behavior categories and gender categories, a gender prediction model is generated, which solves the problem of difficulty in obtaining high-quality gender labels in the existing technology and achieves efficient and accurate gender prediction.

CN118733966APending Publication Date: 2024-10-01SHENZHEN TCL NEW-TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410845352.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

It is difficult to efficiently obtain and ensure users' gender tags with existing technology. Especially after the security protection level of user privacy data is improved, traditional methods are difficult to effectively obtain high-quality gender tags.

Method used

By obtaining the original user behavior data, aggregating and filtering, determining the gender label based on the correlation between the user behavior category and the gender category, and training the preset network model based on the gender label to generate a gender prediction model.

Benefits of technology

Efficient and accurate gender label prediction is achieved, and the generated gender prediction model can accurately predict the user's gender.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733966A_ABST
    Figure CN118733966A_ABST
Patent Text Reader

Abstract

The invention discloses a model generation method and device, computer equipment and a computer readable storage medium. The method comprises the steps of obtaining original user behavior data; aggregating and screening the original user behavior data to obtain target user behavior data; the target user behavior data comprises a plurality of user identifiers and a user behavior category corresponding to each user identifier; determining a gender label corresponding to each user identifier based on the association degree of the user behavior category and the gender category; and training a preset network model based on the gender label and the target user behavior data to obtain a gender prediction model. The gender prediction model obtained by the method can accurately and efficiently predict the gender label of the user.
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 model generation method, device, computer equipment and computer-readable storage medium. Background Art

[0002] User portraits are based on real data to analyze and count the demographic characteristics, behavioral habits, interest preferences, consumption characteristics and other dimensions of the target user, and abstract a labeled user model. Currently, most of the user portrait labels obtained are statistical labels and rule labels. However, with the improvement of the security protection level of user privacy data, it is very difficult to obtain user privacy data and the data quality is difficult to guarantee. Traditional methods are difficult to efficiently obtain user gender labels. Summary of the invention

[0003] The embodiments of the present application provide a model generation method, apparatus, computer device, and computer-readable storage medium, and the generated gender prediction model can efficiently and accurately predict the user's gender label.

[0004] The technical solution adopted by the present invention to solve the problem is as follows:

[0005] In one aspect, the present application provides a model generation method, comprising:

[0006] Obtain original user behavior data;

[0007] Aggregate and filter the original user behavior data to obtain target user behavior data; the target user behavior data includes multiple user identifiers and the user behavior category corresponding to each user identifier;

[0008] Determine the gender label corresponding to each user ID based on the degree of correlation between the user behavior category and the gender category;

[0009] The preset network model is trained based on gender labels and target user behavior data to obtain a gender prediction model.

[0010] In some implementation schemes of the present application, the original user behavior data is aggregated and screened to obtain the target user behavior data, including:

[0011] Clean and convert the original user behavior data to obtain candidate user behavior data;

[0012] Aggregating candidate user behavior data based on user identification and user behavior category to obtain aggregated user behavior data;

[0013] Determine data score information of user behavior data corresponding to each user identifier in the aggregated user behavior data;

[0014] The aggregated user behavior data is screened based on the data score information to obtain the target user behavior data.

[0015] In some embodiments of the present application, determining data score information of user behavior data corresponding to each user identifier in the aggregated user behavior data includes:

[0016] Determine a comparison matrix based on multiple data evaluation indicators corresponding to aggregated user behavior data;

[0017] Based on the comparison matrix, determine the judgment matrix of aggregated user behavior data under each data evaluation indicator;

[0018] Based on the judgment matrix, determine the weight information of the user behavior data corresponding to each user ID under multiple data evaluation indicators;

[0019] Based on the weight information, the scoring information of multiple data evaluation indicators is weighted to obtain data score information of the user behavior data corresponding to each user identifier in the aggregated user behavior data.

[0020] In some embodiments of the present application, the target user behavior data also includes the number of operations corresponding to the user behavior category, and based on the degree of association between the user behavior category and the gender category, the gender label corresponding to each user identifier is determined, including:

[0021] Based on the number of operations, determine a candidate behavior category from the user behavior category corresponding to each user identifier; the candidate behavior category is a behavior category in the user behavior category corresponding to each user identifier where the number of operations is greater than or equal to a preset number threshold;

[0022] For each user identifier among the multiple user identifiers, if there is a first type of behavior category or at least two second type of behavior categories in the candidate behavior categories corresponding to the user identifier, the first gender category is determined as the gender label corresponding to the user identifier; the first type of behavior category is a behavior category whose association degree with the first gender category is greater than a first threshold, and the second type of behavior category is a behavior category whose association degree with the first gender category is greater than a second threshold and is less than or equal to the first threshold;

[0023] If there is a third type of behavior category or at least two fourth type of behavior categories in the candidate behavior categories corresponding to the user identifier, the second gender category is determined as the gender label corresponding to the user identifier; the third type of behavior category is a behavior category whose degree of association with the second gender category is greater than a third threshold, and the fourth type of behavior category is a behavior category whose degree of association with the second gender category is greater than the fourth threshold and is less than or equal to the third threshold.

[0024] In some embodiments of the present application, the target user behavior data includes application operation data, and a preset network model is trained based on the gender label and the target user behavior data to obtain a gender prediction model, including:

[0025] Aggregate application operation data to obtain aggregated text information;

[0026] Perform feature extraction on the aggregated text information to obtain text feature information;

[0027] Based on the text feature information and the gender label, the preset first network model, the preset second network model and the preset third network model are trained respectively to obtain a first gender prediction model, a second gender prediction model and a third gender prediction model;

[0028] Based on the first gender prediction model, the second gender prediction model, the third gender prediction model, the text feature information and the gender label, the preset fourth network model is trained to obtain the first target gender prediction model.

[0029] In some embodiments of the present application, a preset fourth network model is trained based on the first gender prediction model, the second gender prediction model, the third gender prediction model, the text feature information and the gender label to obtain a first target gender prediction model, including:

[0030] Inputting the text feature information into the first gender prediction model, the second gender prediction model and the third gender prediction model to obtain the first predicted gender category, the second predicted gender category and the third predicted gender category corresponding to each user identifier;

[0031] Determining target feature information from the text feature information based on the first predicted gender category, the second predicted gender category, and the third predicted gender category; the target feature information is feature information in which the first predicted gender category, the second predicted gender category, and the third predicted gender category in the text feature information all match the gender label;

[0032] The preset fourth network model is trained based on the target feature information and the gender label to obtain the first target gender prediction model.

[0033] In some embodiments of the present application, the target user behavior data includes album operation data, and a preset network model is trained based on the gender label and the target user behavior data to obtain a gender prediction model, including:

[0034] Obtaining weight information of the album operation event corresponding to the album operation data; the weight information represents the importance of the album operation event;

[0035] Performing data screening on the album operation data based on the weight information to obtain screened album operation data;

[0036] Encoding the filtered album operation data to obtain encoding feature information;

[0037] The preset fifth network model is trained based on the encoded feature information and the gender label to obtain the second target gender prediction model.

[0038] In some embodiments of the present application, the gender prediction model includes a first target gender prediction model and a second target gender prediction model. After the preset network model is trained based on the gender label and the target user behavior data to obtain the gender prediction model, the following steps are included:

[0039] Obtaining the user behavior data to be predicted; the user behavior data to be predicted includes the application operation data and album operation data of the target user;

[0040] Preprocessing and feature extraction of application operation data of target users to obtain first feature information;

[0041] Preprocessing and feature extraction are performed on the album operation data of the target user to obtain second feature information;

[0042] Inputting the first feature information into a first target gender prediction model to obtain first predicted gender information of the target user;

[0043] Inputting the second feature information into a second target gender prediction model to obtain second predicted gender information of the target user;

[0044] Based on the first predicted gender information and the second predicted gender information, a target gender category of the target user is determined.

[0045] In a second aspect, an embodiment of the present invention further provides a model generation device, including:

[0046] Data acquisition module, used to obtain original user behavior data;

[0047] A data processing module is used to aggregate and filter the original user behavior data to obtain target user behavior data; the target user behavior data includes multiple user identifiers and the user behavior category corresponding to each user identifier;

[0048] A label determination module, used to determine the gender label corresponding to each user identification based on the degree of association between the user behavior category and the gender category;

[0049] The model generation module is used to train the preset network model based on gender labels and target user behavior data to obtain a gender prediction model.

[0050] In a third aspect, the present application further provides a terminal device, the terminal device comprising:

[0051] one or more processors;

[0052] Memory; and

[0053] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement any one of the model generation methods in the first aspect.

[0054] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program is loaded by a processor to execute the steps in the model generation method of any one of the first aspects.

[0055] The beneficial effects of the present invention are as follows: by aggregating and screening the original user behavior data to obtain the target user behavior data, the gender label corresponding to each user identification is determined based on the degree of correlation between the user behavior category and the gender category, and the preset network model is trained based on the gender label and the target user behavior data to obtain a gender prediction model. The generated gender prediction model can accurately and efficiently predict the user's gender label. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0057] Figure 1 is a schematic diagram of a scenario of a model generation system provided by an embodiment of the present invention;

[0058] Figure 2 is a flow chart of a model generation method provided by an embodiment of the present invention;

[0059] Figure 3 It is a schematic diagram of a specific process of aggregating and filtering original user behavior data provided by an embodiment of the present invention;

[0060] Figure 4 This is a schematic diagram of a specific process for determining a gender label corresponding to each user identifier provided by an embodiment of the present invention;

[0061] Figure 5 It is a schematic diagram of a specific process of training a preset network model based on gender labels and application operation data provided by an embodiment of the present invention;

[0062] Figure 6 It is a schematic diagram of a specific process of training a preset network model based on album operation data provided by an embodiment of the present invention;

[0063] Figure 7 is a principle block diagram of a model generation device provided by an embodiment of the present invention;

[0064] Figure 8 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0065] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0066] In the description of this application, the terms "first", "second", "third", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first", "second", "third", etc. may explicitly or implicitly include one or more features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0067] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.

[0068] The embodiments of the present application provide a model generation method, apparatus, computer device, and computer-readable storage medium, which are described in detail below.

[0069] See also Figure 1 , Figure 1 Schematic diagram of a scenario of a model generation system provided in an embodiment of the present application. The model generation system may include a computer device 100, in which a model generation device is integrated, such as Figure 1 Computer equipment in.

[0070] In the embodiment of the present application, the computer device 100 is mainly used to obtain original user behavior data; aggregate and filter the original user behavior data to obtain target user behavior data; the target user behavior data includes multiple user identifiers and the user behavior category corresponding to each user identifier; the target user behavior data includes multiple user identifiers and the user behavior category corresponding to each user identifier; based on the degree of correlation between the user behavior category and the gender category, the gender label corresponding to each user identifier is determined; based on the gender label and the target user behavior data, a preset network model is trained to obtain a gender prediction model, and the generated gender prediction model can accurately and efficiently predict the user's gender label.

[0071] In the embodiment of the present application, the computer device 100 may be an independent server, or a server network or server cluster composed of servers. For example, the computer device 100 described in the embodiment of the present application includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of a plurality of servers. The cloud server is composed of a large number of computers or network servers based on cloud computing.

[0072] It is understandable that the computer device 100 used in the embodiments of the present application may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such a device may include: a cellular or other communication device having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The specific computer device 100 may be a desktop terminal or a mobile terminal, and the computer device 100 may also be one of a smart TV, a mobile phone, a tablet computer, a laptop computer, etc.

[0073] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or less computer equipment as shown in Figure 1 Only one computer device is shown in the figure. It can be understood that the model generation system can also include one or more other services, which are not specifically limited here.

[0074] In addition, if Figure 1 As shown, the model generation system may also include a memory 200 for storing data, such as user behavior data, such as original user behavior data, target user behavior data, candidate user behavior data, etc., such as feature information, such as text feature information, encoded feature information, first feature information, etc.

[0075] It should be noted that Figure 1 The scenario diagram of the model generation system shown is merely an example. The model generation system and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the model generation system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is equally applicable to similar technical problems.

[0076] like Figure 2 FIG. 2 is a flow chart of an embodiment of a model generation method in an embodiment of the present application. The model generation method may include the following steps S201 to S204, which are as follows:

[0077] Step S201: Obtain original user behavior data.

[0078] Specifically, the original user behavior data is the unprocessed user behavior data directly obtained from the terminal device (such as the user's mobile phone), and the original user behavior data includes but is not limited to the user's application (APP) operation data, album operation data, etc. From the APPs that users often use, we can learn a variety of user behavior patterns and gender attributes, and users of different genders follow different patterns for album operations. Therefore, collecting and learning the APPs that users often use and the different operation behavior data of users on the album can predict the user's gender attribute.

[0079] In a specific embodiment, a tracking point can be set in a terminal device (such as a user's mobile phone), and the tracking point data can be collected and transmitted in real time through a data stream to obtain the original user behavior data. For example, a tracking point is set in the user's mobile phone, and the tracking point data is collected and transmitted in real time through an Amazon Kinesis data stream. As shown in Tables 1 and 2, Tables 1 and 2 are respectively the original application operation data and the original album operation data obtained by real-time collection and transmission of tracking point data through data streams. It can be seen from Tables 1 and 2 that the original user behavior data includes multiple user identifiers (user identifiers: 1, 2, 3) and the user behavior category corresponding to each user identifier. For example, user identifier 1 corresponds to app1, app2 and app3, and user identifier 1 corresponds to event1 and event2.

[0080] Table 1 Original application operation data

[0081] User ID app 1 1 app1 2 1 app2 3 1 app3 4 2 app1 5 3 app3

[0082] Table 2 Original album operation data

[0083] User ID Photo Album 1 1 event1 2 1 event1 3 1 event2 4 2 event3 5 3 event3

[0084] Step S202: Aggregate and filter the original user behavior data to obtain target user behavior data; the target user behavior data includes multiple user identifiers and a user behavior category corresponding to each user identifier.

[0085] Specifically, the target user behavior data is the user behavior data obtained by aggregating and filtering the original user behavior data. The target user behavior data includes multiple user identifiers and the user behavior category corresponding to each user identifier. By aggregating and filtering the original user behavior data, the data volume of the original user behavior data can be reduced and high-quality user behavior data can be filtered out from the original user behavior data, thereby reducing the amount of calculation during model training and improving the prediction accuracy of the generated gender prediction model.

[0086] In a specific implementation, referring to Figure 3 As shown, the above step S202 aggregates and filters the original user behavior data to obtain the target user behavior data, which may include steps S301 to S304, which are specifically as follows:

[0087] Step S301: clean and convert the original user behavior data to obtain candidate user behavior data.

[0088] Specifically, data cleaning of the original user behavior data refers to cleaning the missing data, duplicate data and abnormal data in the original user behavior data. Considering that terminal devices (such as user mobile phones) are exported to multiple countries with different system languages, the collected original user behavior data will also exist in different languages. After data cleaning of the original user behavior data, this embodiment further translates and converts the cleaned original user behavior data. By translating and converting the cleaned original user behavior data, the cleaned original user behavior data can be normalized. For example, the over-refined Photos operation names photo_opt_1 and photo_opt_2 are both classified as photo_opt.

[0089] Step S302: Aggregate the candidate user behavior data based on the user identification and the user behavior category to obtain aggregated user behavior data.

[0090] Specifically, as shown in Tables 3 and 4, Tables 3 and 4 are the aggregated application operation data and the aggregated album operation data, respectively. It can be seen from Tables 3 and 4 that the aggregated user behavior data includes multiple user IDs (user IDs: 1, 2, 3), the user behavior category corresponding to each user ID, and the number of operations corresponding to the user behavior category. For example, user ID 1 corresponds to app1, app2 and app3, and the number of operations corresponding to app1, app2 and app3 by user ID 1 are 137, 62 and 5, respectively.

[0091] Table 3 Aggregated application operation data

[0092]

[0093]

[0094] Table 4 Aggregated album operation data

[0095] User ID Photo Album quantity 1 1 event1 352 2 1 event1 7 3 1 event2 54 4 2 event3 360 5 3 event3 69

[0096] Step S303: Determine data score information of the user behavior data corresponding to each user identifier in the aggregated user behavior data.

[0097] Specifically, the step of determining data score information of user behavior data corresponding to each user identifier in the aggregated user behavior data specifically includes: determining a comparison matrix based on multiple data evaluation indicators corresponding to the aggregated user behavior data; determining a judgment matrix for the aggregated user behavior data under each data evaluation indicator based on the comparison matrix; determining weight information of the user behavior data corresponding to each user identifier under multiple data evaluation indicators based on the judgment matrix; and performing weighted processing on the scoring information of multiple data evaluation indicators based on the weight information to obtain data score information of the user behavior data corresponding to each user identifier in the aggregated user behavior data.

[0098] Among them, the multiple data evaluation indicators can be multiple or all indicators in data quality management, and data quality can be evaluated from eight dimensions such as accuracy, authenticity, completeness, comprehensiveness, timeliness, immediacy, precision and relevance in data quality management. The comparison matrix is ​​determined based on the importance between multiple data evaluation indicators. The judgment matrix for aggregated user behavior data under each data evaluation indicator based on the comparison matrix can refer to the existing hierarchical analysis method, which will not be repeated in this application.

[0099] Furthermore, the judgment matrix can be expressed as: The weight information of user behavior data corresponding to a certain user ID under multiple data evaluation indicators can be expressed as: W i Represents the weight information of the user behavior data corresponding to a certain user ID under the i-th data evaluation index, i = 1, 2, ..., n.

[0100] The process of determining the data score information of the user behavior data corresponding to each user identifier in the aggregated user behavior data can be expressed as: S = W1S1+W2S2+…+W n S n , S1 represents the score information of the i-th data evaluation index, W irepresents the weight information of the user behavior data corresponding to a certain user ID under the i-th data evaluation index, and S represents the data score information of the user behavior data corresponding to a certain user ID in the aggregated user behavior data. Among them, the scoring information of multiple data evaluation indicators is pre-set based on the importance between the multiple data evaluation indicators, and the sum of the scoring information of multiple data evaluation indicators is 1.

[0101] Step S304: Screen the aggregated user behavior data based on the data score information to obtain target user behavior data.

[0102] In a specific embodiment, the step of filtering the aggregated user behavior data based on the data score information to obtain the target user behavior data specifically includes: sorting the aggregated user behavior data in descending order according to the data score information, and determining the aggregated user behavior data with the highest sorting as the target user behavior data.

[0103] In another specific embodiment, the step of performing data screening on aggregated user behavior data based on data score information to obtain target user behavior data specifically includes: comparing the data score information with a preset score threshold, and determining user behavior data in the aggregated user behavior data whose data score information is greater than or equal to the preset score threshold as target user behavior data.

[0104] Step S203: Determine the gender label corresponding to each user identifier based on the degree of association between the user behavior category and the gender category.

[0105] Specifically, there are some behavior categories with obvious gender characteristics in the user behavior categories. Therefore, based on the degree of association between the user behavior categories and the gender categories, the gender label corresponding to each user ID can be determined. For example, if the APPs frequently used by user ID 1 include the Mayu APP, the gender label corresponding to user ID 1 is determined to be female, and the APPs frequently used by user ID 2 include a men's dressing APP or a men's clothing shopping APP, the gender label corresponding to user ID 2 is determined to be male.

[0106] In a specific implementation, the target user behavior data also includes the number of operations corresponding to the user behavior category, referring to Figure 4 As shown, the above step S203 determines the gender label corresponding to each user identifier based on the correlation between the user behavior category and the gender category, which may include steps S401 to S403, which are specifically as follows:

[0107] Step S401: Based on the number of operations, determine a candidate behavior category from the user behavior categories corresponding to each user identifier.

[0108] The target user behavior data also includes the number of operations corresponding to the user behavior category, and the candidate behavior category is a behavior category in which the number of operations in the user behavior category corresponding to each user ID is greater than or equal to the preset number threshold. Taking into account that some user behaviors may be user errors, for example, users mistakenly download an APP, this embodiment is based on the degree of association between the user behavior category and the gender category. When determining the gender label corresponding to each user ID, the number of operations is first compared with the preset number threshold, and based on the comparison result, the behavior category with the number of operations greater than or equal to the preset number threshold is screened out from the user behavior category corresponding to each user ID to be determined as a candidate behavior category. Among them, the preset number threshold can be set according to actual needs. For example, if the preset number threshold is set to 2, the behavior category with the number of operations greater than or equal to 2 is screened out from the user behavior category corresponding to each user ID to be determined as a candidate behavior category.

[0109] Step S402: for each user identifier among the multiple user identifiers, if there is a first type of behavior category or at least two second type of behavior categories in the candidate behavior categories corresponding to the user identifier, determine the first gender category as the gender label corresponding to the user identifier.

[0110] Specifically, the first type of behavior category is a behavior category whose correlation with the first gender category is greater than the first threshold, and the second type of behavior category is a behavior category whose correlation with the first gender category is greater than the second threshold and less than or equal to the first threshold. For example, if the first gender category is male, the first type of behavior category is a behavior category whose correlation with male is greater than the first threshold, and the second type of behavior category is a behavior category whose correlation with male is greater than the second threshold and less than or equal to the first threshold. In other words, the first type of behavior category is a behavior category that is highly correlated with males, and the second type of behavior category is a behavior category that is more significantly correlated with males.

[0111] For each user identifier among the multiple user identifiers, if there is a first type of behavior category or at least two second type of behavior categories in the candidate behavior categories corresponding to the user identifier, male is determined as the gender label corresponding to the user identifier.

[0112] Step S403: If there is a third type of behavior category or at least two fourth type of behavior categories in the candidate behavior categories corresponding to the user identifier, determine the second gender category as the gender label corresponding to the user identifier.

[0113] Specifically, the third type of behavior category is a behavior category whose degree of association with the second gender category is greater than the third threshold, and the fourth type of behavior category is a behavior category whose degree of association with the second gender category is greater than the fourth threshold and less than or equal to the third threshold. For example, the second gender category is female, the third type of behavior category is a behavior category whose degree of association with female is greater than the first threshold, and the fourth type of behavior category is a behavior category whose degree of association with female is greater than the fourth threshold and less than or equal to the third threshold. In other words, the third type of behavior category is a behavior category that is highly correlated with females, and the fourth type of behavior category is a behavior category that is more significantly correlated with females.

[0114] For each user identifier among the multiple user identifiers, if there is a third type of behavior category or at least two fourth type of behavior categories in the candidate behavior categories corresponding to the user identifier, female is determined as the gender label corresponding to the user identifier.

[0115] Step S204: training a preset network model based on the gender label and the target user behavior data to obtain a gender prediction model.

[0116] Specifically, the gender prediction model is a network model for gender prediction obtained by training based on gender labels and target user behavior data. This embodiment aggregates and filters the original user behavior data to obtain target user behavior data, determines the gender label corresponding to each user identifier based on the degree of correlation between the user behavior category and the gender category, and trains the preset network model based on the gender label and the target user behavior data to obtain the gender prediction model. The generated gender prediction model can accurately and efficiently predict the user's gender label.

[0117] In a specific implementation, the target user behavior data includes application operation data, referring to Figure 5 As shown, in the above step S204, the preset network model is trained based on the gender label and the target user behavior data to obtain the gender prediction model, which may include steps S501 to S504, which are specifically as follows:

[0118] Step S501: Aggregate application operation data to obtain aggregated text information.

[0119] Considering that there are many application operation categories in the application operation data and the data dimension is large, this embodiment aggregates the application operation data based on the user identification to obtain aggregated text information. As shown in Table 5, after the application operation data is aggregated based on the user identification, the application operation data of the same user is aggregated together into text data.

[0120] Table 5 Aggregate text information

[0121]

[0122]

[0123] Step S502: extract features from the aggregated text information to obtain text feature information.

[0124] Specifically, in order to convert the aggregated text information into a data format that can be learned by the network model, after obtaining the aggregated text information, this embodiment performs feature extraction on the aggregated text information to obtain text feature information. For example, the Doc2vec algorithm is used to extract feature of the text feature information to obtain text feature information. The Doc2vec algorithm is an unsupervised algorithm that can learn a fixed-length feature vector representation from a text sequence of indefinite length.

[0125] Step S503: Based on the text feature information and the gender label, the preset first network model, the preset second network model and the preset third network model are trained respectively to obtain a first gender prediction model, a second gender prediction model and a third gender prediction model.

[0126] Specifically, the preset first network model, the preset second network model and the preset third network model can be selected according to actual needs. For example, the preset first network model can adopt support vector machine (SVM), the preset second network model can adopt logistic regression (LR), and the preset third network model can adopt gradient boosting tree (GBDT).

[0127] In a specific embodiment, the preset first network model is trained based on the text feature information and the gender label, and the step of obtaining the first gender prediction model specifically includes: inputting the text feature information into the preset first network model, and outputting the fourth predicted gender category through the preset first network model; determining the first loss value based on the fourth predicted gender category, the gender label and the loss function of the preset first network model; if the first loss value does not meet the preset first condition, updating the model parameters of the preset first network model based on the preset first parameter learning rate, and continuing to input the text feature information into the preset first network model, and outputting the fourth predicted gender category through the preset first network model, until the first loss value meets the preset first condition.

[0128] The first loss value satisfies the preset first condition that the first loss value is less than the preset fifth threshold or the difference between the first loss values ​​obtained twice is less than the preset sixth threshold. The loss function of the preset first network model can adopt the following loss function: y true Indicates gender label, ypred represents the confidence of the fourth predicted gender category, and N represents the number of samples.

[0129] In a specific embodiment, the step of training the preset second network model based on the text feature information and the gender label to obtain the second gender prediction model specifically includes: inputting the text feature information into the preset second network model, and outputting the fifth predicted gender category through the preset second network model; determining the second loss value based on the fifth predicted gender category, the gender label and the loss function of the preset second network model; if the second loss value does not meet the preset second condition, updating the model parameters of the preset second network model based on the preset second parameter learning rate, and continuing to perform the step of inputting the text feature information into the preset second network model and outputting the fifth predicted gender category through the preset second network model until the second loss value meets the preset second condition. Among them, the second loss value meeting the preset second condition can be that the second loss value is less than the preset seventh threshold or the difference between the second loss values ​​obtained twice before and after is less than the preset eighth threshold.

[0130] In a specific embodiment, the step of training the preset third network model based on the text feature information and the gender label to obtain the third gender prediction model specifically includes: inputting the text feature information into the preset third network model, and outputting the sixth predicted gender category through the preset third network model; determining the third loss value based on the sixth predicted gender category, the gender label and the loss function of the preset third network model; if the third loss value does not meet the preset third condition, updating the model parameters of the preset third network model based on the preset third parameter learning rate, and continuing to perform the step of inputting the text feature information into the preset third network model and outputting the sixth predicted gender category through the preset third network model until the third loss value meets the preset third condition. Among them, the third loss value meeting the preset third condition can be that the third loss value is less than the preset ninth threshold or the difference between the third loss values ​​obtained twice before and after is less than the preset tenth threshold.

[0131] As shown in Table 6, the gender prediction results of SVM, LR and GBDT after training based on text feature information and gender labels, where Label represents the label of the test sample, 0 represents female samples, with a total of 5942, 1 represents male samples, with a total of 3944, Precision represents the accuracy of the prediction, Recall represents the recall rate of the prediction, F1-score represents the prediction score of the combined Precision and Recall, and Acc represents the prediction accuracy. As can be seen from Table 6, the accuracy of SVM, LR and GBDT trained based on text feature information and gender labels for user gender prediction has reached about 0.936. Compared with the accuracy of 0.7-0.8 achieved by the existing gender prediction model, the gender prediction model generated by the embodiment of the present application can more accurately predict the user's gender label.

[0132] Table 6 Gender prediction results of SVM, LR and GBDT after training

[0133]

[0134]

[0135] Step S504: training a preset fourth network model based on the first gender prediction model, the second gender prediction model, the third gender prediction model, the text feature information and the gender label to obtain a first target gender prediction model.

[0136] Specifically, in order to further improve the prediction accuracy of the model, this embodiment trains the preset fourth network model based on the first gender prediction model, the second gender prediction model, the third gender prediction model, the text feature information and the gender label to obtain the first target gender prediction model. The preset fourth network model can be selected based on actual needs. For example, the preset fourth network model can use a random forest classifier (RFC).

[0137] In a specific embodiment, the preset fourth network model is trained based on the first gender prediction model, the second gender prediction model, the third gender prediction model, the text feature information and the gender label to obtain the first target gender prediction model. The steps specifically include: inputting the text feature information into the first gender prediction model, the second gender prediction model and the third gender prediction model to obtain the first predicted gender category, the second predicted gender category and the third predicted gender category corresponding to each user identifier; determining the target feature information from the text characteristic information based on the first predicted gender category, the second predicted gender category and the third predicted gender category; training the preset fourth network model based on the target feature information and the gender label to obtain the first target gender prediction model.

[0138] Among them, the target feature information is the feature information in which the first predicted gender category, the second predicted gender category and the third predicted gender category in the text feature information all match the gender label. That is to say, the target feature information is the feature information in the text feature information that is accurately predicted on the first gender prediction model, the second gender prediction model and the third gender prediction model. For example, the gender label of text feature information A is female, and the first predicted gender category, the second predicted gender category and the third predicted gender category determined based on text feature information A are all female, then text feature information A is the target feature information.

[0139] As shown in Table 7, this is the gender prediction result of the RFC model trained by the model generation method provided in the embodiment of the present application. It can be seen from Table 7 that the prediction accuracy of the first target gender prediction model finally obtained is improved from 0.9361 to 0.9387 compared with the first gender prediction model, the second gender prediction model and the third gender prediction model obtained previously. That is, the prediction accuracy of the obtained gender prediction model can be further improved by training the preset fourth network model based on the first gender prediction model, the second gender prediction model, the third gender prediction model, the text feature information and the gender label.

[0140] Table 7 Gender prediction results of the trained RFC model

[0141]

[0142] In a specific implementation, the target user behavior data includes album operation data, referring to Figure 6 As shown, in the above step S204, the preset network model is trained based on the gender label and the target user behavior data to obtain the gender prediction model, which may include steps S601 to S604, which are specifically as follows:

[0143] Step S601: Obtain weight information of the album operation event corresponding to the album operation data; the weight information represents the importance of the album operation event.

[0144] Specifically, as shown in Table 4 above, the album operation data includes album operation events, and different album operation events have corresponding weight information. The higher the weight information, the higher the importance of the album operation event, and the lower the weight information, the lower the importance of the album operation event. In order to improve the training efficiency of the model, this embodiment first obtains the weight information of the album operation event corresponding to the album operation data, so that the album operation data can be screened based on the weight information of the album operation event corresponding to the album operation data in subsequent steps.

[0145] Step S602: filter the album operation data based on the weight information to obtain filtered album operation data.

[0146] Specifically, the filtered album operation data is the album operation data with higher weight information filtered out from the album operation data based on the weight information, for example, the top 100 most important album operation events are filtered out from the album operation data based on the weight information.

[0147] Step S603: Encode the filtered album operation data to obtain encoding feature information.

[0148] Specifically, the filtered album operation data is encoded and converted into tensor data composed of 0 and 1. For example, the filtered album operation data is encoded using a One-hot encoding algorithm.

[0149] Step S604: training the preset fifth network model based on the coding feature information and the gender label to obtain a second target gender prediction model.

[0150] Specifically, the preset fifth network model can be selected according to actual needs. For example, the preset fifth network model can use a support vector machine (SVM) or a multilayer perceptron (MLP). As shown in Table 8, the gender prediction results of the SVM and MLP trained based on the coding feature information and gender labels are shown. It can be seen from Table 8 that although the prediction accuracy of the SVM and MLP trained based on the coding feature information and gender labels is not as high as the prediction accuracy of the gender prediction model trained based on the text feature information and gender labels, the gender prediction results of the first target gender prediction model and the second target gender prediction model can be combined with each other and used as a comparison to ensure a more accurate gender prediction result.

[0151] Table 8 Gender prediction results of trained SVM and MLP

[0152] Model Label Precision Recall F1-score Acc SVM weighted_avg 0.71 0.72 0.69 0.718 MLP weighted_avg 0.74 0.75 0.74 0.747

[0153] In a specific embodiment, the gender prediction model includes a first target gender prediction model and a second target gender prediction model. After the preset network model is trained based on the gender label and the target user behavior data to obtain the gender prediction model in the above step S204, it can also include: obtaining the user behavior data to be predicted; the user behavior data to be predicted includes the application operation data and album operation data of the target user; preprocessing and feature extraction of the application operation data of the target user to obtain first feature information; preprocessing and feature extraction of the album operation data of the target user to obtain second feature information; inputting the first feature information into the first target gender prediction model to obtain the first predicted gender information of the target user; inputting the second feature information into the second target gender prediction model to obtain the second predicted gender information of the target user; and determining the target gender category of the target user based on the first predicted gender information and the second predicted gender information.

[0154] Among them, preprocessing the target user's application operation data includes data cleaning, conversion and aggregation of the target user's application operation data. Specifically, you can refer to the aforementioned steps of data cleaning, conversion and aggregation of the original user behavior data. The step of feature extraction of the target user's application operation data can refer to the aforementioned steps of feature extraction of application operation data. To avoid repetition, this application will not go into details here.

[0155] Preprocessing the target user's album operation data includes data cleaning, conversion and aggregation of the target user's album operation data. Specifically, you can refer to the aforementioned steps of data cleaning, conversion and aggregation of the original user behavior data. The step of feature extraction of the target user's album operation data can refer to the aforementioned steps of feature extraction of the album operation data. To avoid repetition, this application will not go into details here.

[0156] In a specific embodiment, the first predicted gender information includes first confidence information that the target user belongs to the first gender category and second confidence information that the target user belongs to the second gender category, and the second predicted gender information includes third confidence information that the target user belongs to the first gender category and fourth confidence information that the target user belongs to the second gender category. Accordingly, based on the first predicted gender information and the second predicted gender information, the step of determining the target gender category of the target user specifically includes: weighting the first confidence information and the third confidence information to obtain first target confidence information that the target user belongs to the first gender category; weighting the second confidence information and the fourth confidence information to obtain second target confidence information that the target user belongs to the second gender category; if the first target confidence information is greater than the second target confidence information, determining the first gender category as the target gender category; if the second target confidence information is greater than the first target confidence information, determining the second gender category as the target gender category.

[0157] It should be noted that the gender prediction model of this embodiment may only include the first target gender prediction model or the second target gender prediction model. If the gender prediction model only includes the first target gender prediction model, the target gender category of the target user is determined based on the first predicted gender information of the target user; if the gender prediction model only includes the second target gender prediction model, the target gender category of the target user is determined based on the second predicted gender information of the target user.

[0158] In order to better implement the model generation method in the embodiment of the present application, based on the model generation method, a model generation device is also provided in the embodiment of the present application, such as Figure 7 As shown, the model generation device 700 includes:

[0159] Data acquisition module 710, used to acquire original user behavior data;

[0160] The data processing module 720 is used to aggregate and filter the original user behavior data to obtain target user behavior data; the target user behavior data includes multiple user identifiers and the user behavior category corresponding to each user identifier;

[0161] The label determination module 730 is used to determine the gender label corresponding to each user identification based on the correlation degree between the user behavior category and the gender category;

[0162] The model generation module 740 is used to train the preset network model based on the gender label and the target user behavior data to obtain a gender prediction model.

[0163] In an embodiment of the present application, target user behavior data is obtained by aggregating and filtering the original user behavior data, the gender label corresponding to each user identification is determined based on the degree of correlation between the user behavior category and the gender category, and the preset network model is trained based on the gender label and the target user behavior data to obtain a gender prediction model. The generated gender prediction model can accurately and efficiently predict the user's gender label.

[0164] In some embodiments of the present application, the data processing module 720 is specifically used to:

[0165] Clean and convert the original user behavior data to obtain candidate user behavior data;

[0166] Aggregating candidate user behavior data based on user identification and user behavior category to obtain aggregated user behavior data;

[0167] Determine data score information of user behavior data corresponding to each user identifier in the aggregated user behavior data;

[0168] The aggregated user behavior data is screened based on the data score information to obtain the target user behavior data.

[0169] In some embodiments of the present application, the data processing module 720 is further used to:

[0170] Determine a comparison matrix based on multiple data evaluation indicators corresponding to aggregated user behavior data;

[0171] Based on the comparison matrix, determine the judgment matrix of aggregated user behavior data under each data evaluation indicator;

[0172] Based on the judgment matrix, determine the weight information of the user behavior data corresponding to each user ID under multiple data evaluation indicators;

[0173] Based on the weight information, the scoring information of multiple data evaluation indicators is weighted to obtain data score information of the user behavior data corresponding to each user identifier in the aggregated user behavior data.

[0174] In some embodiments of the present application, the target user behavior data also includes the number of operations corresponding to the user behavior category, and the label determination module 730 is specifically used to:

[0175] Based on the number of operations, determine a candidate behavior category from the user behavior category corresponding to each user identifier; the candidate behavior category is a behavior category in the user behavior category corresponding to each user identifier where the number of operations is greater than or equal to a preset number threshold;

[0176] For each user identifier among the multiple user identifiers, if there is a first type of behavior category or at least two second type of behavior categories in the candidate behavior categories corresponding to the user identifier, the first gender category is determined as the gender label corresponding to the user identifier; the first type of behavior category is a behavior category whose association degree with the first gender category is greater than a first threshold, and the second type of behavior category is a behavior category whose association degree with the first gender category is greater than a second threshold and is less than or equal to the first threshold;

[0177] If there is a third type of behavior category or at least two fourth type of behavior categories in the candidate behavior categories corresponding to the user identifier, the second gender category is determined as the gender label corresponding to the user identifier; the third type of behavior category is a behavior category whose degree of association with the second gender category is greater than a third threshold, and the fourth type of behavior category is a behavior category whose degree of association with the second gender category is greater than the fourth threshold and is less than or equal to the third threshold.

[0178] In some embodiments of the present application, the target user behavior data includes application operation data, and the model generation module 740 is specifically used to:

[0179] Aggregate application operation data to obtain aggregated text information;

[0180] Perform feature extraction on the aggregated text information to obtain text feature information;

[0181] Based on the text feature information and the gender label, the preset first network model, the preset second network model and the preset third network model are trained respectively to obtain a first gender prediction model, a second gender prediction model and a third gender prediction model;

[0182] Based on the first gender prediction model, the second gender prediction model, the third gender prediction model, the text feature information and the gender label, the preset fourth network model is trained to obtain the first target gender prediction model.

[0183] In some embodiments of the present application, the model generation module 740 is further used to:

[0184] Inputting the text feature information into the first gender prediction model, the second gender prediction model and the third gender prediction model to obtain the first predicted gender category, the second predicted gender category and the third predicted gender category corresponding to each user identifier;

[0185] Determining target feature information from the text feature information based on the first predicted gender category, the second predicted gender category, and the third predicted gender category; the target feature information is feature information in which the first predicted gender category, the second predicted gender category, and the third predicted gender category in the text feature information all match the gender label;

[0186] The preset fourth network model is trained based on the target feature information and the gender label to obtain the first target gender prediction model.

[0187] In some embodiments of the present application, the target user behavior data includes album operation data, and the model generation module 740 is specifically used to:

[0188] Obtaining weight information of the album operation event corresponding to the album operation data; the weight information represents the importance of the album operation event;

[0189] Performing data screening on the album operation data based on the weight information to obtain screened album operation data;

[0190] Encoding the filtered album operation data to obtain encoding feature information;

[0191] The preset fifth network model is trained based on the encoded feature information and the gender label to obtain the second target gender prediction model.

[0192] In some embodiments of the present application, the gender prediction model includes a first target gender prediction model and a second target gender prediction model. The model generation module 740 trains a preset network model based on the gender label and the target user behavior data. After obtaining the gender prediction model, the model generation module 740 is further used to:

[0193] Obtaining the user behavior data to be predicted; the user behavior data to be predicted includes the application operation data and album operation data of the target user;

[0194] Preprocessing and feature extraction of application operation data of target users to obtain first feature information;

[0195] Preprocessing and feature extraction are performed on the album operation data of the target user to obtain second feature information;

[0196] Inputting the first feature information into a first target gender prediction model to obtain first predicted gender information of the target user;

[0197] Inputting the second feature information into a second target gender prediction model to obtain second predicted gender information of the target user;

[0198] Based on the first predicted gender information and the second predicted gender information, a target gender category of the target user is determined.

[0199] The embodiment of the present application further provides a computer device, which integrates any one of the model generation devices provided in the embodiment of the present application, and the computer device includes:

[0200] one or more processors;

[0201] Memory; and

[0202] One or more applications, wherein the one or more applications are stored in a memory and are configured to execute, by a processor, the steps of the model generation method in any of the above-mentioned model generation method embodiments.

[0203] The present application also provides a computer device that integrates any model generation device provided in the present application. Figure 8 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:

[0204] The computer device may include one or more processing core processors 801, one or more computer-readable storage media memories 802, a power supply 803, an input unit 804 and other components. Those skilled in the art will appreciate that Figure 8 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0205] The processor 801 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 802 and calling data stored in the memory 802, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 801.

[0206] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.

[0207] The computer device also includes a power supply 803 for supplying power to each component. Preferably, the power supply 803 can be logically connected to the processor 801 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions. The power supply 803 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0208] The computer device may further include an input unit 804, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0209] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 801 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 802 according to the following instructions, and the processor 801 will run the application programs stored in the memory 802, thereby realizing various functions, as follows:

[0210] Obtain original user behavior data;

[0211] Aggregate and filter the original user behavior data to obtain target user behavior data; the target user behavior data includes multiple user identifiers and the user behavior category corresponding to each user identifier;

[0212] Determine the gender label corresponding to each user ID based on the degree of correlation between the user behavior category and the gender category;

[0213] The preset network model is trained based on gender labels and target user behavior data to obtain a gender prediction model.

[0214] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0215] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any model generation method provided in the embodiment of the present application. For example, the computer program can be loaded by a processor to execute the following steps:

[0216] Obtain original user behavior data;

[0217] Aggregate and filter the original user behavior data to obtain target user behavior data; the target user behavior data includes multiple user identifiers and the user behavior category corresponding to each user identifier;

[0218] Determine the gender label corresponding to each user ID based on the degree of correlation between the user behavior category and the gender category;

[0219] The preset network model is trained based on gender labels and target user behavior data to obtain a gender prediction model.

[0220] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0221] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.

[0222] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0223] The above is a detailed introduction to a model generation method, device, computer equipment and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A model generation method, characterized in that: include: Obtain original user behavior data; Aggregating and filtering the original user behavior data to obtain target user behavior data; The target user behavior data includes multiple user identifiers and a user behavior category corresponding to each of the user identifiers; Determining a gender label corresponding to each of the user identifiers based on the degree of association between the user behavior category and the gender category; The preset network model is trained based on the gender label and the target user behavior data to obtain a gender prediction model.

2. The method according to claim 1, characterized in that: The aggregating and filtering the original user behavior data to obtain target user behavior data includes: Cleaning and converting the original user behavior data to obtain candidate user behavior data; Aggregating the candidate user behavior data based on the user identifier and the user behavior category to obtain aggregated user behavior data; Determine data score information of user behavior data corresponding to each user identifier in the aggregated user behavior data; The aggregated user behavior data is screened based on the data score information to obtain target user behavior data.

3. The method according to claim 2, characterized in that The determining of data score information of the user behavior data corresponding to each user identifier in the aggregated user behavior data includes: Determining a comparison matrix based on a plurality of data evaluation indicators corresponding to the aggregated user behavior data; Based on the comparison matrix, determining a judgment matrix for the aggregated user behavior data under each of the data evaluation indicators; Based on the judgment matrix, determining weight information of the user behavior data corresponding to each of the user identifiers under the plurality of data evaluation indicators; Based on the weight information, the score information of the plurality of data evaluation indicators is weighted to obtain data score information of the user behavior data corresponding to each user identifier in the aggregated user behavior data.

4. The method according to claim 1, characterized in that: The target user behavior data also includes the number of operations corresponding to the user behavior category. The determining of the gender label corresponding to each user identifier based on the degree of association between the user behavior category and the gender category includes: Based on the number of operations, determine a candidate behavior category from the user behavior category corresponding to each of the user identifiers; the candidate behavior category is a behavior category in the user behavior category corresponding to each of the user identifiers where the number of operations is greater than or equal to a preset number threshold; For each of the multiple user identifiers, if there is a first type of behavior category or at least two second type of behavior categories in the candidate behavior categories corresponding to the user identifier, the first gender category is determined as the gender label corresponding to the user identifier; the first type of behavior category is a behavior category whose association degree with the first gender category is greater than a first threshold, and the second type of behavior category is a behavior category whose association degree with the first gender category is greater than a second threshold and is less than or equal to the first threshold; If there is a third type of behavior category or at least two fourth types of behavior categories in the candidate behavior categories corresponding to the user identifier, the second gender category is determined as the gender label corresponding to the user identifier; the third type of behavior category is a behavior category whose degree of association with the second gender category is greater than a third threshold, and the fourth type of behavior category is a behavior category whose degree of association with the second gender category is greater than a fourth threshold and is less than or equal to the third threshold.

5. The method according to claim 1, characterized in that The target user behavior data includes application operation data, and the training of a preset network model based on the gender label and the target user behavior data to obtain a gender prediction model includes: Aggregating the application operation data to obtain aggregated text information; Performing feature extraction on the aggregated text information to obtain text feature information; Based on the text feature information and the gender label, a preset first network model, a preset second network model, and a preset third network model are trained respectively to obtain a first gender prediction model, a second gender prediction model, and a third gender prediction model; Based on the first gender prediction model, the second gender prediction model, the third gender prediction model, the text feature information and the gender label, a preset fourth network model is trained to obtain a first target gender prediction model.

6. The method according to claim 5, characterized in that The method of training a preset fourth network model based on the first gender prediction model, the second gender prediction model, the third gender prediction model, the text feature information and the gender label to obtain a first target gender prediction model includes: Inputting the text feature information into the first gender prediction model, the second gender prediction model and the third gender prediction model to obtain a first predicted gender category, a second predicted gender category and a third predicted gender category corresponding to each user identifier; Determining target feature information from the text characteristic information based on the first predicted gender category, the second predicted gender category, and the third predicted gender category; the target feature information is feature information in the text feature information in which the first predicted gender category, the second predicted gender category, and the third predicted gender category all match the gender label; The preset fourth network model is trained based on the target feature information and the gender label to obtain a first target gender prediction model.

7. The method according to claim 1, characterized in that The target user behavior data includes album operation data, and the preset network model is trained based on the gender label and the target user behavior data to obtain a gender prediction model, including: Obtaining weight information of the album operation event corresponding to the album operation data; the weight information represents the importance of the album operation event; Performing data screening on the album operation data based on the weight information to obtain screened album operation data; Encoding the filtered album operation data to obtain encoding feature information; The preset fifth network model is trained based on the encoding feature information and the gender label to obtain a second target gender prediction model.

8. The method according to any one of claims 1 to 7, characterized in that: The gender prediction model includes a first target gender prediction model and a second target gender prediction model. After the preset network model is trained based on the gender label and the target user behavior data to obtain the gender prediction model, the method includes: Acquire the user behavior data to be predicted; the user behavior data to be predicted includes the application operation data and album operation data of the target user; Preprocessing and feature extraction of the target user's application operation data to obtain first feature information; Preprocessing and feature extraction are performed on the album operation data of the target user to obtain second feature information; Inputting the first feature information into the first target gender prediction model to obtain first predicted gender information of the target user; Inputting the second feature information into the second target gender prediction model to obtain second predicted gender information of the target user; A target gender category of the target user is determined based on the first predicted gender information and the second predicted gender information.

9. A model generation device, characterized in that: include: Data acquisition module, used to obtain original user behavior data; A data processing module, used to aggregate and filter the original user behavior data to obtain target user behavior data; The target user behavior data includes multiple user identifiers and a user behavior category corresponding to each of the user identifiers; A label determination module, used to determine the gender label corresponding to each of the user identifiers based on the degree of association between the user behavior category and the gender category; The model generation module is used to train a preset network model based on the gender label and the target user behavior data to obtain a gender prediction model.

10. A computer device, characterized in that: The computer device comprises: one or more processors; Memory; and One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the model generation method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the model generation method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • User gender prediction method and device, storage medium and electronic equipment

    CN109948633A

  • User classification model training method and device, user classification method and device

    CN111078742A

  • Semi-supervised learning method based on pseudo label weighting

    CN112232416A

  • Gender classification method and device, electronic equipment and computer storage medium

    CN112434136A

  • Information recommendation method and device, electronic equipment and readable storage medium

    CN112765479A