Interactive data prediction model training method, device, electronic device and storage medium

By obtaining and utilizing sample data in the first time period and the second time period, the interactive data prediction model is trained, which solves the problem of poor accuracy of the existing model and improves prediction accuracy and user stickiness.

CN116193209BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310114120.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-29
Publication Date
2024-09-20
Estimated Expiration
2043-01-29

AI Technical Summary

Technical Problem

Due to the single construction method of sample data during the training process of existing interactive data prediction models, the model accuracy is poor and cannot effectively predict the probability of users from clicking on the live broadcast to converting.

Method used

The sample data in the first time period and the second time period are obtained, respectively input into the interactive data prediction model for prediction processing, the loss value is calculated and the model parameters are updated until the preset training completion conditions are reached to build more accurate interactive data. Predictive model.

Benefits of technology

By taking into account the completeness and timeliness of sample account order data, the prediction accuracy of the interactive data prediction model is improved and user stickiness is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116193209B
    Figure CN116193209B
Patent Text Reader

Abstract

The present disclosure relates to a training method, device, electronic device and storage medium for an interaction data prediction model. The method includes: obtaining training data, the training data includes first sample data collected in a first time period and second sample data collected in a second time period, the first sample data and the second sample data both include account data of a sample account, sample media data, and sample interaction data of the sample account for the sample media data, the first time period is a time period when the conversion rate reaches a first conversion rate threshold; the second time period is a time period when the conversion rate reaches a second conversion rate threshold, and the first conversion rate threshold is less than the second conversion rate threshold; the first sample data and the second sample data are input into an interaction data prediction model to be trained for training, and the network parameters of the interaction data prediction model to be trained are updated until a preset training completion condition is met, thereby obtaining a trained interaction data prediction model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to an interactive data prediction model training method, device, electronic device and storage medium. Background Art

[0002] With the continuous development of Internet technology, the application scope of recommending objects through live broadcast is becoming more and more extensive, and more and more users are participating in live broadcast shopping.

[0003] In the related art, it is necessary to train a conversion rate (CVR) prediction model, and then use the trained interaction data prediction model to predict the probability of a user converting from clicking on a live broadcast. During the training of the interaction data prediction model, it is necessary to obtain the sample conversion rate of the sample user, generally the sample conversion rate of the sample user after waiting for two hours. Therefore, the data contained in the sample data corresponding to the interaction data prediction model is only the sample conversion rate of the sample user after waiting for two hours. The construction method of the sample data is relatively simple, resulting in poor accuracy of the trained interaction data prediction model. Summary of the invention

[0004] The present disclosure provides an interactive data prediction model training method, device, electronic device and storage medium to at least solve the problem of poor model accuracy in related technologies. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a method for training an interaction data prediction model is provided, comprising:

[0006] Acquire training data, the training data including first sample data collected in a first time period and second sample data collected in a second time period, the first sample data and the second sample data both including account data of a sample account, sample media data, and sample interaction data of the sample account for the sample media data, the first time period is a time period in which a conversion rate reaches a first conversion rate threshold; the second time period is a time period in which the conversion rate reaches a second conversion rate threshold, the first conversion rate threshold is less than the second conversion rate threshold, and the conversion rate is a conversion rate of the account for media data in a virtual space;

[0007] Inputting the first sample data and the second sample data into the interaction data prediction model to be trained for prediction processing, respectively, to determine first predicted interaction data corresponding to the first sample data and second predicted interaction data corresponding to the second sample data;

[0008] Calculate a first loss value according to first sample interaction data corresponding to the first sample data and the first predicted interaction data, calculate a second loss value according to second sample interaction data corresponding to the second sample data and the second predicted interaction data, and calculate a comprehensive loss value according to the first loss value and the second loss value;

[0009] The network parameters of the interaction data prediction model to be trained are updated based on the comprehensive loss value until a preset training completion condition is reached, thereby obtaining a trained interaction data prediction model.

[0010] In one of the embodiments, the interaction data prediction model to be trained includes a feature extraction layer, a first interaction prediction layer, and a second interaction prediction layer;

[0011] The step of inputting the first sample data and the second sample data into the interaction data prediction model to be trained for prediction processing, and determining first predicted interaction data corresponding to the first sample data and second predicted interaction data corresponding to the second sample data, includes:

[0012] Inputting the account data and sample media data of the sample account included in the first sample data, and the account data and sample media data of the sample account included in the second sample data into the feature extraction layer respectively, to obtain the first sample account feature corresponding to the first sample account, the first sample media feature corresponding to the first sample media data, the second sample account feature corresponding to the second sample account, and the second sample media feature corresponding to the second sample media data;

[0013] Inputting the first sample account feature and the first sample medium feature into the first interaction prediction layer for prediction processing to obtain first predicted interaction data corresponding to the first time period;

[0014] The second sample account characteristics and the second sample medium characteristics are input into the second interaction prediction layer for prediction processing to obtain second predicted interaction data corresponding to the second time period.

[0015] In one embodiment, there are at least two first sample accounts, and the calculating of the first loss value according to the first sample interaction data corresponding to the first sample data and the first predicted interaction data includes:

[0016] For each first sample account included in the first sample data, based on a preset weight calculation strategy and the first sample interaction data corresponding to the first sample account, calculate a first weight of the first sample account;

[0017] A first loss value is calculated based on a first loss function, a first weight corresponding to each of the first sample accounts, the first sample interaction data, and the first predicted interaction data.

[0018] In one embodiment, the calculating the first weight of the first sample account based on a preset weight determination strategy and the first sample interaction data corresponding to the first sample account includes:

[0019] Based on the first sample interaction data corresponding to each of the first sample accounts, determining a first number of sample accounts that meet a preset resource interaction condition, and obtaining a total number of first sample accounts included in the first sample data;

[0020] Calculate the difference between the first number and the total number of the first sample accounts, and calculate the ratio of the difference to the total number of the first sample accounts;

[0021] The product of the first sample interaction data corresponding to the first sample account and the ratio is used as the first weight of the first sample account.

[0022] In one embodiment, the calculating the first weight of the first sample account based on a preset weight determination strategy and the first sample interaction data corresponding to the first sample account includes:

[0023] When the first sample interaction data of the first sample account does not meet the preset resource interaction condition, the preset target value is determined to be the first weight corresponding to the first sample account.

[0024] In one embodiment, after obtaining the trained interaction data prediction model, the method further includes:

[0025] Inputting the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended;

[0026] When the predicted interaction data is greater than or equal to a preset order threshold, the media data to be recommended is pushed to the account to be recommended.

[0027] In one embodiment, the step of inputting the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended includes:

[0028] Inputting the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended within the first time period and the predicted interaction data within the second time period;

[0029] Based on the predicted interaction data in the first time period and the predicted interaction data in the second time period, the predicted interaction data of the account to be recommended for the media data to be recommended is determined.

[0030] In one embodiment, the number of the media data to be recommended is at least two, and after obtaining the predicted interaction data of the account to be recommended for the media data to be recommended, the method further includes:

[0031] Determine a sequence of the media data to be recommended according to the order of magnitude of the predicted interaction data of the accounts to be recommended for each of the media data to be recommended;

[0032] Target media data to be recommended is determined in the sequence of media data to be recommended, and the target media data to be recommended is pushed to the account to be recommended.

[0033] According to a second aspect of an embodiment of the present disclosure, there is provided an interactive data prediction model training device, comprising:

[0034] an acquisition unit, configured to execute acquisition of training data, the training data comprising first sample data collected in a first time period and second sample data collected in a second time period, the first sample data and the second sample data both comprising account data of a sample account, sample media data, and sample interaction data of the sample account for the sample media data, the first time period being a time period in which a conversion rate reaches a first conversion rate threshold; the second time period being a time period in which the conversion rate reaches a second conversion rate threshold, the first conversion rate threshold being less than the second conversion rate threshold, and the conversion rate being a conversion rate of an account for media data in a virtual space;

[0035] A first determining unit is configured to input the first sample data and the second sample data into the interaction data prediction model to be trained for prediction processing, and determine first predicted interaction data corresponding to the first sample data and second predicted interaction data corresponding to the second sample data;

[0036] A first calculation unit is configured to calculate a first loss value according to first sample interaction data corresponding to the first sample data and the first predicted interaction data, calculate a second loss value according to second sample interaction data corresponding to the second sample data and the second predicted interaction data, and calculate a comprehensive loss value according to the first loss value and the second loss value;

[0037] The updating unit is configured to update the network parameters of the interaction data prediction model to be trained based on the comprehensive loss value until a preset training completion condition is reached to obtain a trained interaction data prediction model.

[0038] In one of the embodiments, the interaction data prediction model to be trained includes a feature extraction layer, a first interaction prediction layer, and a second interaction prediction layer;

[0039] The first determining unit is specifically configured to:

[0040] Inputting the account data and sample media data of the sample account included in the first sample data, and the account data and sample media data of the sample account included in the second sample data into the feature extraction layer respectively, to obtain the first sample account feature corresponding to the first sample account, the first sample media feature corresponding to the first sample media data, the second sample account feature corresponding to the second sample account, and the second sample media feature corresponding to the second sample media data;

[0041] Inputting the first sample account feature and the first sample medium feature into the first interaction prediction layer for prediction processing to obtain first predicted interaction data corresponding to the first time period;

[0042] The second sample account characteristics and the second sample medium characteristics are input into the second interaction prediction layer for prediction processing to obtain second predicted interaction data corresponding to the second time period.

[0043] In one embodiment, the number of the first sample accounts is at least two, and the first calculation unit is specifically configured to:

[0044] For each first sample account included in the first sample data, based on a preset weight calculation strategy and the first sample interaction data corresponding to the first sample account, calculate a first weight of the first sample account;

[0045] A first loss value is calculated based on a first loss function, a first weight corresponding to each of the first sample accounts, the first sample interaction data, and the first predicted interaction data.

[0046] In one embodiment, the first computing unit is specifically configured to:

[0047] Based on the first sample interaction data corresponding to each of the first sample accounts, determining a first number of sample accounts that meet a preset resource interaction condition, and obtaining a total number of first sample accounts included in the first sample data;

[0048] Calculate the difference between the first number and the total number of the first sample accounts, and calculate the ratio of the difference to the total number of the first sample accounts;

[0049] The product of the first sample interaction data corresponding to the first sample account and the ratio is used as the first weight of the first sample account.

[0050] In one embodiment, the first computing unit is specifically configured to:

[0051] When the first sample interaction data of the first sample account does not meet the preset resource interaction condition, the preset target value is determined to be the first weight corresponding to the first sample account.

[0052] In one embodiment, the device further comprises:

[0053] A first recommendation unit is configured to input the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended;

[0054] The second recommendation unit is configured to push the to-be-recommended media data to the to-be-recommended account when the predicted interaction data is greater than or equal to a preset order threshold.

[0055] In one embodiment, the first recommendation unit is specifically configured to:

[0056] Inputting the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended within the first time period and the predicted interaction data within the second time period;

[0057] Based on the predicted interaction data in the first time period and the predicted interaction data in the second time period, the predicted interaction data of the account to be recommended for the media data to be recommended is determined.

[0058] In one embodiment, the device further comprises:

[0059] An arranging unit is configured to determine a sequence of the media data to be recommended according to the order of the predicted interaction data of the accounts to be recommended for each of the media data to be recommended;

[0060] The third recommendation unit is configured to determine target media data to be recommended in the sequence of media data to be recommended, and push the target media data to be recommended to the account to be recommended.

[0061] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0062] processor;

[0063] a memory for storing instructions executable by the processor;

[0064] Wherein, the processor is configured to execute the instructions to implement the interactive data prediction model training method as described in any one of the first aspects above.

[0065] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the interactive data prediction model training method as described in any one of the first aspects above.

[0066] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided. When the instructions are executed by a processor of an electronic device, the electronic device is enabled to execute the interactive data prediction model training method described in any one of the first aspects above.

[0067] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0068] By adopting the present disclosure, training data for training an interactive data prediction model can be constructed using order data corresponding to sample data in a first time period corresponding to a first conversion rate threshold value when the conversion rate reaches the first conversion rate threshold value, and order data corresponding to sample data in a second time period corresponding to a second conversion rate threshold value when the conversion rate reaches the second conversion rate threshold value. In this way, the integrity and timeliness of the order data of the acquired sample accounts can be taken into account, thereby improving the prediction accuracy of the interactive data prediction model and further improving user stickiness.

[0069] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0071] Figure 1 The present invention is a flowchart of a method for training an interactive data prediction model according to an exemplary embodiment.

[0072] Figure 2 It is a structural diagram of an interactive data prediction model according to an exemplary embodiment.

[0073] Figure 3The present invention is a flowchart of a method for training an interactive data prediction model according to an exemplary embodiment.

[0074] Figure 4 The present invention is a flowchart of a method for training an interactive data prediction model according to an exemplary embodiment.

[0075] Figure 5 The present invention is a flowchart of a method for training an interactive data prediction model according to an exemplary embodiment.

[0076] Figure 6 The present invention is a flowchart of a method for training an interactive data prediction model according to an exemplary embodiment.

[0077] Figure 7 The present invention is a flowchart of a method for training an interactive data prediction model according to an exemplary embodiment.

[0078] Figure 8 The present invention is a flowchart of a method for training an interactive data prediction model according to an exemplary embodiment.

[0079] Fig. 9 The figure is a schematic diagram of a process of constructing training data for an interactive data prediction model according to an exemplary embodiment.

[0080] Fig.10 It is a block diagram of an interactive data prediction model training device according to an exemplary embodiment.

[0081] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0082] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0083] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0084] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0085] Figure 1 is a flowchart of a method for training an interactive data prediction model according to an exemplary embodiment. Figure 1 As shown, the interaction data prediction model training method is used in an electronic device and includes the following steps.

[0086] In step S110 , training data is obtained.

[0087] The training data includes first sample data collected in a first time period and second sample data collected in a second time period. Both the first sample data and the second sample data include account data of a sample account, sample media data, and sample interaction data of a sample account for sample media data. The first time period is a time period when the conversion rate reaches a first conversion rate threshold. The second time period is a time period when the conversion rate reaches a second conversion rate threshold. The first conversion rate threshold is less than the second conversion rate threshold. The conversion rate is the conversion rate of the account for media data in the virtual space.

[0088] Specifically, the training data can be trained in an online incremental training method, that is, construct training samples in real time, and then the model to be trained is continuously trained incrementally based on the sample data constructed in real time. In this way, at the current moment, the electronic device can obtain the account data and sample media data of the sample account released before the first time period, as well as the interaction data of the sample account for the sample media data in the first time period; similarly, the electronic device can obtain the account data and sample media data of the sample account released before the second time period, as well as the interaction data of the sample account for the sample media data in the second time period. The conversion rate is calculated based on the total number of sample accounts released and the interaction data for the sample media data, and is the conversion rate of the account for media data in the virtual space.

[0089] The first conversion rate threshold and the second conversion rate threshold may be determined according to actual application scenarios, or may be determined according to a preset conversion rate determination strategy. For example, the first conversion rate threshold may be 70%, the second conversion rate threshold may be 95%, etc. The present disclosure does not specifically limit the specific values ​​of the first conversion rate threshold and the second conversion rate threshold. The first time period corresponding to the first conversion rate threshold may be 15 minutes, the second time period corresponding to the second conversion rate threshold may be two hours, etc.

[0090] The sample account may be an account corresponding to the target program, and the electronic device may push the sample media data to the sample account on the target program, and the sample account may place an order for the sample media data on the target program; the account data of the sample account is data used to characterize the characteristics of the sample account, and may include account identification information, gender information, regional information to which the account belongs, network IP address information, historical media data corresponding to the historical interactive operations of the account, and the preference characteristics of the sample account. Among them, the historical interactive operation may be an interactive operation on media data performed by the account within a preset time period, and the interactive operation may be a click operation, an activation operation, a like operation, and a browsing operation, etc.; the historical media data may be a virtual space of a recommended object or a target sales type within a preset time period, etc. The preference characteristics of the sample account may be a browsing preference characteristic, and the browsing preference characteristic may be obtained based on the short videos browsed by the sample account within a preset time period. The sample media data may be used to characterize the characteristic data of the recommended object, and may specifically include the identification information of the recommended object, the name information of the recommended object, the industry information to which the recommended object belongs, the size information of the recommended object, and the image feature information of the recommended object, etc. The sample interaction data of the sample account for the sample media data is the number of orders placed by the sample account for the recommended object corresponding to the sample media data after the sample account triggers the sample media data. The sample media data may include one or more recommended objects, and the sample interaction data of the sample account for the sample media data may be the number of orders placed by the sample account for the recommended object.

[0091] In an example, the sample media data may correspond to an A1 recommended object and an A2 recommended object. The sample account generates B1 orders for the A1 recommended object corresponding to the sample media data, and the sample account generates B2 orders for the A2 recommended object corresponding to the sample media data. The interaction data of the sample account for the sample media data may be the sum of B1 and B2.

[0092] In implementation, before the electronic device trains the interactive data prediction model, it needs to obtain the training data for training the interactive data prediction model. And the electronic device can continuously construct a sample stream, which contains multiple sample accounts and multiple sample media data. The electronic device can deliver the sample stream, that is, recommend each sample media data to the multiple sample accounts, and obtain the interactive data of each sample account for each sample media data. The specific acquisition process can be: at the current moment, the electronic device can obtain the first sample stream delivered before the first time period at the current moment, and the first sample interaction data of each sample account in the first sample stream in the first time period for each sample media data, and use the first sample stream and the first sample interaction data as the first sample data collected in the first time period; similarly, the electronic device can obtain the second sample stream delivered before the second time period at the current moment, and the second sample interaction data of each sample account in the second sample stream in the second time period for each sample media data, and use the first sample stream and the second sample interaction data as the second sample data collected in the second time period.

[0093] In step S120, the first sample data and the second sample data are respectively input into the interaction data prediction model to be trained for prediction processing to determine the first predicted interaction data corresponding to the first sample data and the second predicted interaction data corresponding to the second sample data.

[0094] The interaction data prediction model to be trained may be a neural network model, which may include multiple computing layers.

[0095] In implementation, the electronic device can input the training data including the first sample data and the second sample data into the interaction data prediction model to be trained. The interaction data prediction model to be trained can extract features from the account data of the sample account and the sample media data included in the first sample data to obtain the sample account features corresponding to the account data of the sample account and the sample media features corresponding to the sample media data. In this way, the interaction data prediction model to be trained can distinguish whether it is the first sample data or the second sample data by the identification information of each sample data. In this way, the interaction data prediction model to be trained can make predictions based on the corresponding sample account features and sample media features in the first sample data to obtain the first predicted interaction data within the first time period; and can make predictions based on the corresponding sample account features and sample media features in the second sample data to obtain the second predicted interaction data within the second time period.

[0096] In step S130, a first loss value is calculated based on the first sample interaction data corresponding to the first sample data and the first predicted interaction data, a second loss value is calculated based on the second sample interaction data corresponding to the second sample data and the second predicted interaction data, and a comprehensive loss value is calculated based on the first loss value and the second loss value.

[0097] In implementation, the electronic device may calculate the comprehensive loss value of the training data by using a preset loss function, and first sample interaction data corresponding to the first sample data, first predicted interaction data, second sample interaction data corresponding to the second sample data, and second predicted interaction data. The preset loss function may be a cross entropy loss function.

[0098] Specifically, in implementation, the electronic device can calculate the first loss value and the second loss value respectively through a preset loss function, and the specific calculation process can be: the electronic device calculates the first loss value according to the first sample interaction data included in the first sample data and the first predicted interaction data within the first time period predicted according to the first sample data, and the preset loss function; similarly, the electronic device calculates the second loss value according to the second sample interaction data included in the second sample data and the second predicted interaction data within the second time period predicted according to the second sample data, and the preset loss function. The electronic device can use the sum of the first loss value and the second loss value as the comprehensive loss value of the training data.

[0099] In step S140, the network parameters of the interaction data prediction model to be trained are updated based on the comprehensive loss value until the preset training completion condition is met, thereby obtaining a trained interaction data prediction model.

[0100] In implementation, the network parameters of the interactive data prediction model to be trained are updated based on the comprehensive loss value, and the step of obtaining training data is returned to be executed until the comprehensive loss value meets the preset training completion condition, thereby obtaining the trained interactive data prediction model. In one example, the electronic device can update the network parameters of multiple layers in the interactive data prediction model to be trained based on the calculated comprehensive loss value, and return to re-execute the above step 110 "obtaining training data" until the calculated comprehensive loss value meets the preset training completion condition. In this way, the electronic device can obtain the trained interactive data prediction model.

[0101] Among them, the preset training completion condition can be that the calculated first loss value, the second loss value and the comprehensive loss value have all converged, or it can also be that the training time reaches a preset time threshold, or it can also be that the number of training iterations has reached a preset target number. The present disclosure does not limit the specific value of the preset time threshold and the specific value of the preset target number, and the technical personnel of the present disclosure can make specific determinations based on the actual application scenario.

[0102] In the above-mentioned interaction data prediction model training method, by obtaining training data including first sample data collected in a first time period and second sample data collected in a second time period, and inputting the first sample data and the second sample data into the interaction data prediction model to be trained respectively, the first predicted interaction data corresponding to the first sample data and the second predicted interaction data corresponding to the second sample data are determined, and then the interaction data prediction model is trained to obtain a trained interaction data prediction model. By adopting the present disclosure, it is possible to construct training data for training the interaction data prediction model through order data corresponding to sample data in a first time period corresponding to a first conversion rate threshold value when the conversion rate reaches the first conversion rate threshold value, and order data corresponding to sample data in a second time period corresponding to a second conversion rate when the conversion rate reaches the second conversion rate. In this way, the integrity and timeliness of the order data of the sample account obtained can be taken into account, thereby improving the prediction accuracy of the interaction data prediction model, further improving user conversion and increasing user stickiness.

[0103] In an exemplary embodiment, if Figure 2 As shown, the interaction data prediction model to be trained includes a feature extraction layer, a first interaction prediction layer and a second interaction prediction layer. The interaction data prediction model to be trained may also include a module for calculating a first loss value, a module for calculating a second loss value and an output module.

[0104] Specifically, the feature extraction layer (embedding layer) may be a feature extraction network, the first interactive prediction layer may be a first prediction neural network (NN), and the second interactive prediction layer may be a second prediction neural network (NN).

[0105] In one example, the terminal can perform feature extraction on the first sample data and the second sample data respectively to obtain a first feature corresponding to the first sample data and a second feature corresponding to the second sample data, and perform prediction based on the first feature to obtain first predicted interaction data within a first time period, and perform prediction based on the second feature to obtain second predicted interaction data within a second time period.

[0106] Accordingly, if Figure 3As shown, in step S120, the first sample data and the second sample data are respectively input into the interaction data prediction model to be trained for prediction processing, and the first predicted interaction data corresponding to the first sample data and the second predicted interaction data corresponding to the second sample data are determined, which can be specifically achieved by the following steps:

[0107] In step S1210, the account data and sample media data of the sample account included in the first sample data, and the account data and sample media data of the sample account included in the second sample data are respectively input into the feature extraction layer to obtain the first sample account feature corresponding to the first sample account, the first sample media feature corresponding to the first sample media data, the second sample account feature corresponding to the second sample account, and the second sample media feature corresponding to the second sample media data.

[0108] In implementation, the feature extraction layer is used to extract feature vectors in the sample data through a feature extraction algorithm. The electronic device can input the account data and sample media data of the sample account contained in the first sample data, and the account data and sample media data of the sample account contained in the second sample data into the feature extraction layer, and the feature extraction layer can extract the sample features in the first sample data and the sample features in the second sample data through a preset feature extraction algorithm to obtain the first sample account features corresponding to the first sample data, the first sample media features corresponding to the first sample media data, and the second sample account features corresponding to the second sample data, and the second sample media features corresponding to the second sample media data.

[0109] Among them, the preset feature extraction algorithm may include an image feature extraction algorithm, a text feature extraction algorithm, an audio feature extraction algorithm, etc. The image feature extraction algorithm may include a resnet50 algorithm and a swin-transformer algorithm, and the text feature extraction algorithm may include a bert encoding algorithm, a gpt encoding algorithm, etc.

[0110] Specifically, the first sample data further includes first identification information, for example, the first identification information of a preset field, which may be matchType=no strict; the second sample data further includes second identification information, for example, the second identification information of a preset field, which may be matchType=strict. In this way, when distinguishing the first sample data from the second sample data, the electronic device may distinguish them by determining the specific content of the identification information.

[0111] In step S1220, the first sample account features and the first sample medium features are input into the first interaction prediction layer for prediction processing to obtain first predicted interaction data corresponding to the first time period.

[0112] During implementation, the electronic device can input the first sample account characteristics and the first sample media characteristics into the first interaction prediction layer together, so that the electronic device can predict the first sample account characteristics and the first sample media characteristics through the first interaction prediction layer to obtain the first predicted interaction data corresponding to the first time period.

[0113] In step S1230, the second sample account features and the second sample medium features are input into the second interaction prediction layer for prediction processing to obtain second predicted interaction data corresponding to the second time period.

[0114] During implementation, the electronic device can input the second sample account characteristics and the second sample media characteristics into the second interaction prediction layer together, so that the electronic device can predict the second sample account characteristics and the second sample media characteristics through the second interaction prediction layer to obtain the second predicted interaction data corresponding to the second time period.

[0115] Based on the above scheme, by predicting the first sample data and the second sample data respectively, accurate interaction data in different time periods can be obtained while ensuring the prediction speed.

[0116] In an exemplary embodiment, the electronic device may calculate the first loss value and the second loss value respectively by using a preset loss function. The specific calculation process may be: the electronic device calculates the first loss value according to the first sample interaction data included in the first sample data, the first predicted interaction data within the first time period predicted according to the first sample data, and the preset loss function; similarly, the electronic device calculates the second loss value according to the second sample interaction data included in the second sample data, the second predicted interaction data within the second time period predicted according to the second sample data, and the preset loss function. The electronic device may use the sum of the first loss value and the second loss value as the comprehensive loss value of the training data.

[0117] Based on the above scheme, the prediction accuracy of the model can be improved by calculating the loss function corresponding to the sample data that meets different conditions respectively.

[0118] In an exemplary embodiment, if Figure 4 As shown, step S130 "calculates the first loss value according to the first sample interaction data and the first predicted interaction data corresponding to the first sample data" can be specifically implemented by the following steps:

[0119] In step S1310, for each first sample account included in the first sample data, a first weight of the first sample account is calculated based on a preset weight calculation strategy and the first sample interaction data corresponding to the first sample account.

[0120] There are at least two first sample accounts, and the preset weight calculation strategy may include a predetermined method for determining loss calculation weights corresponding to different order quantities.

[0121] In implementation, the first sample data may include multiple first sample accounts and interaction data of each first sample account with respect to sample media data. The electronic device may determine the first weight of each first sample account included in the first sample data based on a preset weight calculation strategy and the specific value of the first sample interaction data corresponding to the first sample account.

[0122] In step S1320, a first loss value is calculated based on the first loss function, the first weights corresponding to each first sample account, the first sample interaction data, and the first predicted interaction data.

[0123] The first loss function may be a standard cross entropy loss function. The first loss value is a loss value corresponding to the first sample data.

[0124] In implementation, the electronic device can perform calculations based on a standard cross-entropy loss function and the first weights corresponding to each first sample interaction data, each first sample interaction data, and the first predicted interaction data corresponding to each first sample interaction data to obtain a first loss value corresponding to the first sample data.

[0125] Based on the above scheme, the loss value of the first predicted interaction data in the first time period can be accurately calculated.

[0126] In an exemplary embodiment, similarly, Figure 5 As shown, step S130 "calculates the second loss value according to the second sample interaction data and the second predicted interaction data corresponding to the second sample data" can be specifically implemented by the following steps:

[0127] In step S1311, for each second sample account included in the second sample data, a second weight of the second sample account is calculated based on a preset weight calculation strategy and the second sample interaction data corresponding to the second sample account.

[0128] There are at least two second sample accounts, and the preset weight determination strategy may include a predetermined method for determining loss calculation weights corresponding to different order quantities.

[0129] In implementation, the second sample data may include multiple second sample accounts and interaction data of each second sample data with the sample media data. The electronic device may determine the second weight corresponding to each second sample account included in the second sample data based on the specific value of the second sample interaction data.

[0130] Optionally, the sample account included in the second sample data may be an account that has already performed a trigger operation on the sample media data. The electronic device may obtain the account data, sample media data, and interaction data of the initial sample account data with respect to the sample media data that were placed before the second time period at the current moment. In this way, the electronic device may screen the initial sample accounts and eliminate the initial sample accounts that do not meet the preset trigger operation conditions. In the case where the sample media data is the media data corresponding to the virtual space, the preset trigger operation condition may be entering the virtual space through an access portal of the virtual space. In this way, the electronic device may eliminate the initial sample accounts that have not triggered the sample media data, and obtain the sample accounts after the elimination operation, i.e., the sample accounts included in the second sample data.

[0131] In step S1321, a second loss value is calculated based on the second loss function, the second weights corresponding to each second sample account, the second sample interaction data, and the second predicted interaction data.

[0132] The second loss function may be a standard cross entropy loss function. The second loss value is a loss value corresponding to the second sample data.

[0133] In implementation, the electronic device can perform calculations based on a standard cross-entropy loss function and the second weights corresponding to each second sample interaction data, each second sample interaction data, and the second predicted interaction data corresponding to each second sample interaction data to obtain a second loss value corresponding to the second sample data.

[0134] Based on the above scheme, the loss value of the second predicted interaction data within the second time period can be accurately calculated, and the efficiency of electronic equipment in processing data can be improved, and the scope of accurate sample data processing can be controlled.

[0135] In an exemplary embodiment, if Figure 6 As shown, step 1310 "calculating the first weight of the first sample account based on the preset weight determination strategy and the first sample interaction data corresponding to the first sample account" can be specifically implemented by the following steps:

[0136] In step S610, based on the first sample interaction data corresponding to each first sample account, the first number of sample accounts that meet the preset resource interaction condition is determined, and the total number of first sample accounts included in the first sample data is obtained.

[0137] The first sample data may include multiple first sample accounts and first sample interaction data of each first sample account for sample media data. The preset resource interaction condition may be that the account has placed an order for the media data, or that the account has placed an order for the media data and has not canceled the order, etc. The order operation of the account for the media data may be an order operation for any recommended object corresponding to the media data.

[0138] In implementation, the electronic device can obtain each first sample account included in the first sample data, and the first sample interaction data of each first sample account for the sample media data, so that the electronic device can judge whether the first sample account meets the preset resource interaction condition based on the first sample interaction data of the first sample account. The specific judgment process can be: the electronic device traverses each first sample account included in the first sample data, and when it is determined that the first sample interaction data corresponding to the first sample account is not the target value, it is determined that the first sample account is a sample account that meets the preset resource interaction condition, that is, the first sample account is a positive sample account. In this way, the electronic device can obtain the total number of sample accounts of the sample accounts included in the first sample data, and the number of sample accounts that meet the preset resource interaction condition.

[0139] In step S620, the difference between the number of sample accounts that meet the preset resource interaction conditions and the total number of sample accounts is calculated, and the ratio of the difference to the total number of sample accounts is calculated.

[0140] In implementation, for each first sample account that meets the preset resource interaction condition, the electronic device may calculate the ratio of the number of sample accounts that meet the preset resource interaction condition to the total number of sample accounts.

[0141] In step S630, the product of the first sample interaction data corresponding to the first sample account and the ratio is used as the first weight of the first sample account.

[0142] In implementation, for each first sample account, the electronic device can calculate the product of the first sample interaction data of the first sample account and the ratio of the difference calculated by the above method embodiment to the total number of sample accounts, and use the product as the first weight of the first sample account.

[0143] Based on the above scheme, the loss function calculation weights of the first sample accounts of different interaction data are dynamically adjusted to ensure the accuracy of the calculated first loss value.

[0144] In an exemplary embodiment, step 1310 “calculating the first weight of the first sample account based on a preset weight determination strategy and the first sample interaction data corresponding to the first sample account” can be specifically implemented by the following steps:

[0145] When the first sample interaction data of the first sample account does not meet the preset resource interaction condition, the preset target value is determined to be the first weight corresponding to the first sample account.

[0146] Among them, the preset target value can be one, and the present disclosure does not specifically limit the specific value of the preset target value.

[0147] In implementation, if the first sample interaction data of the first sample account does not meet the preset order conditions, the first sample account is determined to be a negative sample account, and the first weight of the first sample account that does not meet the preset resource interaction conditions can be determined to be the preset target value.

[0148] Based on the above scheme, the weight of the first sample account that is a negative sample in calculating the first loss value can be reduced to ensure the accuracy of the calculated first weight.

[0149] In an exemplary embodiment, if Figure 7 As shown, step 1311 "calculating the second weights corresponding to each second sample interaction data based on the preset weight determination strategy" can be specifically implemented by the following steps:

[0150] In step S710, based on the second sample interaction data corresponding to each second sample account, the second number of sample accounts that meet the preset resource interaction condition is determined, and the total number of second sample accounts included in the second sample data is obtained.

[0151] The second sample data may include multiple second sample accounts and second sample interaction data of each second sample account for the sample media data. The preset resource interaction condition may be that the account has placed an order for the media data, or that the account has placed an order for the media data and has not canceled the order, etc. The order operation of the account for the media data may be an order operation for any recommended object corresponding to the media data.

[0152] In implementation, the electronic device can obtain each second sample account included in the second sample data, and the second sample interaction data of each second sample account for the sample media data, so that the electronic device can judge whether the second sample account meets the preset resource interaction condition based on the second sample interaction data of the second sample account. The specific judgment process can be: the electronic device traverses each second sample account included in the second sample data, and when it is determined that the second sample interaction data corresponding to the second sample account is not the target value, it is determined that the second sample account is a sample account that meets the preset resource interaction condition, that is, the second sample account is a positive sample account. In this way, the electronic device can obtain the total number of sample accounts of the sample accounts included in the second sample data, and the number of sample accounts that meet the preset resource interaction condition.

[0153] In step S720, the difference between the number of sample accounts that meet the preset resource interaction conditions and the total number of sample accounts is calculated, and the ratio of the difference to the total number of sample accounts is calculated.

[0154] In implementation, for each second sample account that meets the preset resource interaction condition, the electronic device may calculate the ratio of the number of sample accounts that meet the preset resource interaction condition to the total number of sample accounts.

[0155] In step S730, the product of the second sample interaction data corresponding to the second sample account and the ratio is used as the second weight of the second sample account.

[0156] In implementation, for each second sample account, the electronic device can calculate the product of the second sample interaction data of the second sample account and the ratio of the difference calculated by the above method embodiment to the total number of sample accounts, and use the product as the second weight of the second sample account.

[0157] Based on the above scheme, the loss function calculation weights of the second sample accounts with different interaction data are dynamically adjusted to ensure the accuracy of the calculated second loss value.

[0158] In an exemplary embodiment, step 1311 of “calculating the second weights corresponding to each second sample interaction data based on a preset weight determination strategy” can be implemented by the following steps:

[0159] When the second sample interaction data of the second sample account does not meet the preset resource interaction condition, the preset target value is determined to be the second weight corresponding to the second sample account.

[0160] Among them, the preset target value can be one, and the present disclosure does not specifically limit the specific value of the preset target value.

[0161] In implementation, if the second sample interaction data of the second sample account does not meet the preset order conditions, the second sample account is determined to be a negative sample account, and the second weight of the second sample account that does not meet the preset resource interaction conditions can be determined to be the preset target value.

[0162] Based on the above scheme, the weight of the second sample account that is a negative sample in calculating the second loss value can be reduced to ensure the accuracy of the calculated second weight.

[0163] In an exemplary embodiment, if Figure 8 As shown, after the trained interaction data prediction model is obtained in step 140, the interaction data prediction model training method further includes:

[0164] In step S810, the account data of the account to be recommended and the media data to be recommended are input into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended.

[0165] The account to be recommended may be an account that performs browsing operations on the target program, or may be an account that has logged into the target program on the client.

[0166] In implementation, the electronic device may obtain the account data of the account to be recommended and the predetermined media data to be recommended, and input the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the output result of the interaction data prediction model. The output result may be the predicted interaction data of the sample account for the media data to be recommended.

[0167] In step S820, when the predicted interaction data is greater than or equal to the preset order threshold, the media data to be recommended is pushed to the account to be recommended.

[0168] Among them, the preset order threshold can be a threshold determined according to the actual application scenario.

[0169] During implementation, the electronic device may compare the predicted interaction data with a preset order threshold. If the predicted interaction data is greater than or equal to the preset order threshold, the electronic device may push the media data to be recommended to the account to be recommended through the target program.

[0170] Based on the above solution, the account's conversion rate for media data can be improved and user stickiness can be enhanced.

[0171] In an exemplary embodiment, step S810, inputting the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model, and obtaining the predicted interaction data of the account to be recommended for the media data to be recommended can be specifically implemented by the following process:

[0172] The account data of the account to be recommended and the media data to be recommended are input into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended within a first time period and the predicted interaction data within a second time period; based on the predicted interaction data within the first time period and the predicted interaction data within the second time period, the predicted interaction data of the account to be recommended for the media data to be recommended is determined.

[0173] In implementation, the predicted interaction data is determined based on the sum of the predicted interaction data within the first time period and the predicted interaction data within the second time period. The electronic device inputs the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model, and the output result of the interaction data prediction model can be the output of the predicted interaction data within the first time period and the predicted interaction data within the second time period, respectively. In this way, the electronic device can calculate the sum of the predicted interaction data within the first time period and the predicted interaction data within the second time period, and determine the sum as the predicted interaction data of the account to be recommended for the media data to be recommended.

[0174] In one example, the predicted interaction data of the to-be-recommended account for the to-be-recommended media data may be calculated by the following formula:

[0175] p(pay|x)=(pay|t≤15,x)+(pay|t>15,x)

[0176] Among them, p(pay|x) represents the predicted interaction data of the account to be recommended for the media data to be recommended, x represents the triggering operation of the account to be recommended on the virtual space corresponding to the media data to be recommended, that is, the account to be recommended accesses the virtual space corresponding to the media data to be recommended; t represents the time difference of the account to be recommended placing an order after accessing the virtual space corresponding to the media data to be recommended, p(pay|t≤15,x) represents the predicted interaction data within the first time period, and the first time period can be 15 minutes; p(pay|t>15,x) represents the predicted interaction data within the second time period, and the second time period can be a time period greater than 15 minutes, for example, it can be 2 hours.

[0177] Based on the above scheme, the accuracy of model prediction can be improved.

[0178] In an exemplary embodiment, after obtaining the predicted interaction data of the to-be-recommended account for the to-be-recommended media data in step 810, the interaction data prediction model training method further includes:

[0179] Determine a sequence of media data to be recommended according to the order of the predicted interaction data of the account to be recommended for each media data to be recommended; determine target media data to be recommended in the sequence of media data to be recommended, and push the target media data to be recommended to the account to be recommended.

[0180] In implementation, the electronic device can obtain multiple groups of media data to be recommended, and input the multiple groups of media data to be recommended and the account data of the account to be recommended into the trained interaction data prediction model to obtain the predicted interaction data corresponding to each group of media data to be recommended. In this way, the electronic device can arrange the media data to be recommended corresponding to each predicted interaction data sequence in the order of predicted interaction data from large to small, and obtain the media data to be recommended sequence. In this way, the electronic device can determine the target media data to be recommended in the media data sequence to be recommended, and push the target media data to be recommended to the account to be recommended.

[0181] The process of determining the target media data to be recommended may be: pushing the first n media data to be recommended in the media data sequence to the recommended accounts respectively, where n may be 1 or a specific value determined according to the actual application scenario.

[0182] Based on the above solution, we can accurately portray the account's preference for various media data when placing orders, thereby improving the account's conversion rate.

[0183] The following describes the construction process of training data in conjunction with a specific embodiment. The specific construction process can be as follows: Fig. 9 As shown:

[0184] The electronic device can obtain the spliced ​​exposure sample stream, and after waiting for 15 minutes, perform shallow sample label matching to obtain the front link sample stream (matchType=no_strict). Based on the front link sample stream, the electronic device can wait for 2 hours, perform deep sample label matching, and obtain the back link sample stream (matchType=strict). The electronic device can mix the front link sample stream with the back link sample stream to obtain a mixed sample stream, and perform model training based on the mixed sample stream.

[0185] Optionally, the waiting time for shallow sample label matching can be 15 minutes, which can be determined according to the actual application scenario, and the specific determination process can be determined based on the difference between the exposure time of the exposed sample stream and the time of the account's trigger operation on the virtual space corresponding to the sample media data. After performing shallow sample label matching, the obtained label can include a label indicating whether the sample account triggers the virtual space corresponding to the sample media data, and a label indicating the order quantity of the sample account for the sample media data. After performing deep sample label matching, the obtained label includes a label indicating the order quantity of the target sample account for the sample media data, and the target sample account is a sample account that has triggered the virtual space corresponding to the sample media data. The waiting time for deep sample label matching can be 2 hours, which can also be determined according to the actual application scenario, and the specific determination process can be determined based on the difference between the time of the account's trigger operation on the virtual space corresponding to the sample media data and the time when the account places an order for the sample media data.

[0186] In this way, the electronic device can add the front-link sample stream after shallow matching and the back-link sample stream after deep matching to the mixed sample stream, and distinguish it as the front-link sample stream or the back-link sample stream through the identification field "matchType", so that the model can be trained based on the mixed sample stream.

[0187] The method provided by the present disclosure takes into account both the integrity and timeliness of positive samples, that is, it can ensure that all positive samples can be attributed, and at the same time, most of the positive samples can be obtained as much as possible through the front link.

[0188] Specifically, the first loss value loss1 can be calculated by the following formula:

[0189]

[0190] Wherein, N is the total number of sample accounts included in the first sample data, and i is the i-th sample account in the first sample data. i Represents the first sample account t i The first weight, p i Represents the first predicted interaction data corresponding to the first sample account.

[0191] It should be understood that although Figure 1-Figure 8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 8At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0192] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.

[0193] Fig.10 is a block diagram of an interactive data prediction model training device 1000 according to an exemplary embodiment. Fig.10 The interactive data prediction model training device 1000 includes an acquisition unit 1002, a first determination unit 1004, a first calculation unit 1006, and an update unit 1008, wherein:

[0194] The acquisition unit 1002 is configured to execute acquisition of training data, the training data including first sample data collected in a first time period and second sample data collected in a second time period, the first sample data and the second sample data both including account data of a sample account, sample media data, and sample interaction data of the sample account for the sample media data, the first time period is a time period in which the conversion rate reaches a first conversion rate threshold; the second time period is a time period in which the conversion rate reaches a second conversion rate threshold, the first conversion rate threshold is less than the second conversion rate threshold, and the conversion rate is a conversion rate of the account for the media data in the virtual space;

[0195] The first determining unit 1004 is configured to input the first sample data and the second sample data into the interaction data prediction model to be trained for prediction processing, and determine the first predicted interaction data corresponding to the first sample data and the second predicted interaction data corresponding to the second sample data;

[0196] A first calculation unit 1006 is configured to calculate a first loss value according to first sample interaction data corresponding to the first sample data and the first predicted interaction data, calculate a second loss value according to second sample interaction data corresponding to the second sample data and the second predicted interaction data, and calculate a comprehensive loss value according to the first loss value and the second loss value;

[0197] The updating unit 1008 is configured to execute the updating of the network parameters of the interaction data prediction model to be trained based on the comprehensive loss value until the preset training completion condition is met, thereby obtaining a trained interaction data prediction model.

[0198] In one of the embodiments, the interaction data prediction model to be trained includes a feature extraction layer, a first interaction prediction layer, and a second interaction prediction layer;

[0199] The first determining unit is specifically used for:

[0200] The account data and sample media data of the sample account included in the first sample data, and the account data and sample media data of the sample account included in the second sample data are respectively input into the feature extraction layer to obtain the first sample account feature corresponding to the first sample account, the first sample media feature corresponding to the first sample media data, the second sample account feature corresponding to the second sample account, and the second sample media feature corresponding to the second sample media data;

[0201] Inputting the first sample account feature and the first sample medium feature into the first interaction prediction layer for prediction processing to obtain first predicted interaction data corresponding to the first time period;

[0202] The second sample account features and the second sample medium features are input into the second interaction prediction layer for prediction processing to obtain second predicted interaction data corresponding to the second time period.

[0203] In one embodiment, there are at least two first sample accounts, and the first calculation unit is specifically used for:

[0204] For each first sample account included in the first sample data, based on a preset weight calculation strategy and the first sample interaction data corresponding to the first sample account, calculate a first weight of the first sample account;

[0205] A first loss value is calculated based on the first loss function, the first weights corresponding to each first sample account, the first sample interaction data, and the first predicted interaction data.

[0206] In one embodiment, the first computing unit is specifically configured to:

[0207] Based on the first sample interaction data corresponding to each first sample account, determine the first number of sample accounts that meet the preset resource interaction condition, and obtain the total number of first sample accounts included in the first sample data;

[0208] Calculate the difference between the first number and the total number of the first sample accounts, and calculate the ratio of the difference to the total number of the first sample accounts;

[0209] The product of the first sample interaction data corresponding to the first sample account and the ratio is used as the first weight of the first sample account.

[0210] In one embodiment, the first computing unit is specifically configured to:

[0211] When the first sample interaction data of the first sample account does not meet the preset resource interaction condition, the preset target value is determined to be the first weight corresponding to the first sample account.

[0212] In one embodiment, the device further comprises:

[0213] A first recommendation unit is configured to input the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended;

[0214] The second recommendation unit is configured to push the media data to be recommended to the account to be recommended when the predicted interaction data is greater than or equal to a preset order threshold.

[0215] In one embodiment, the first recommendation unit is specifically configured to:

[0216] Inputting the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended within the first time period and the predicted interaction data within the second time period;

[0217] Based on the predicted interaction data in the first time period and the predicted interaction data in the second time period, the predicted interaction data of the account to be recommended for the media data to be recommended is determined.

[0218] In one embodiment, the device further comprises:

[0219] An arrangement unit is configured to determine a sequence of the media data to be recommended according to the order of the predicted interaction data of the accounts to be recommended for each media data to be recommended;

[0220] The third recommendation unit is configured to determine target media data to be recommended in the sequence of media data to be recommended, and push the target media data to be recommended to the account to be recommended.

[0221] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0222] Fig.11 1 is a block diagram of an electronic device 1100 for an interactive data prediction model training method according to an exemplary embodiment. For example, the electronic device 1100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0223] Reference Fig.11, the electronic device 1100 may include one or more of the following components: a processing component 1102 , a memory 1104 , a power component 1106 , a multimedia component 1108 , an audio component 1110 , an input / output (I / O) interface 1112 , a sensor component 1114 , and a communication component 1116 .

[0224] The processing component 1102 generally controls the overall operation of the electronic device 1100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1102 may include one or more modules to facilitate the interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.

[0225] The memory 1104 is configured to store various types of data to support operations on the electronic device 1100. Examples of such data include instructions for any application or method operating on the electronic device 1100, contact data, phone book data, messages, pictures, videos, etc. The memory 1104 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, an optical disk, or a graphene memory.

[0226] The power supply component 1106 provides power to various components of the electronic device 1100. The power supply component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1100.

[0227] The multimedia component 1108 includes a screen that provides an output interface between the electronic device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the electronic device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0228] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC), and when the electronic device 1100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1104 or sent via the communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting an audio signal.

[0229] I / O interface 1112 provides an interface between processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0230] The sensor assembly 1114 includes one or more sensors for providing various aspects of status assessment for the electronic device 1100. For example, the sensor assembly 1114 can detect the open / closed state of the electronic device 1100, the relative positioning of components, such as the display and keypad of the electronic device 1100, and the sensor assembly 1114 can also detect the position change of the electronic device 1100 or the components of the electronic device 1100, the presence or absence of user contact with the electronic device 1100, the orientation or acceleration / deceleration of the device 1100, and the temperature change of the electronic device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1114 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0231] The communication component 1116 is configured to facilitate wired or wireless communication between the electronic device 1100 and other devices. The electronic device 1100 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0232] In an exemplary embodiment, the electronic device 1100 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0233] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1104 including instructions, and the instructions can be executed by a processor 1120 of the electronic device 1100 to perform the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0234] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions. The instructions can be executed by the processor 1120 of the electronic device 1100 to complete the above method.

[0235] It should be noted that the above-mentioned devices, electronic devices, computer-readable storage media, computer program products, etc. may also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments, which will not be described one by one here.

[0236] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0237] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for training an interactive data prediction model, characterized in that: include: Acquire training data, the training data including first sample data collected in a first time period and second sample data collected in a second time period, the first sample data and the second sample data both including account data of a sample account, sample media data, and sample interaction data of the sample account for the sample media data, the first time period is a time period in which a conversion rate reaches a first conversion rate threshold; the second time period is a time period in which the conversion rate reaches a second conversion rate threshold, the first conversion rate threshold is less than the second conversion rate threshold, and the conversion rate is a conversion rate of the account for media data in a virtual space; Inputting the first sample data and the second sample data into the interaction data prediction model to be trained respectively to perform interaction data prediction processing, and determining first predicted interaction data corresponding to the first sample data and second predicted interaction data corresponding to the second sample data; Calculate a first loss value according to first sample interaction data corresponding to the first sample data and the first predicted interaction data, calculate a second loss value according to second sample interaction data corresponding to the second sample data and the second predicted interaction data, and calculate a comprehensive loss value according to the first loss value and the second loss value; The network parameters of the interaction data prediction model to be trained are updated based on the comprehensive loss value until a preset training completion condition is reached, thereby obtaining a trained interaction data prediction model.

2. The interactive data prediction model training method according to claim 1, characterized in that: The interaction data prediction model to be trained includes a feature extraction layer, a first interaction prediction layer and a second interaction prediction layer; The step of inputting the first sample data and the second sample data into the interaction data prediction model to be trained to perform interaction data prediction processing, and determining first predicted interaction data corresponding to the first sample data and second predicted interaction data corresponding to the second sample data, comprises: Inputting the account data and sample media data of the sample account included in the first sample data, and the account data and sample media data of the sample account included in the second sample data into the feature extraction layer respectively, to obtain the first sample account feature corresponding to the first sample account, the first sample media feature corresponding to the first sample media data, the second sample account feature corresponding to the second sample account, and the second sample media feature corresponding to the second sample media data; Inputting the first sample account feature and the first sample medium feature into the first interaction prediction layer for interaction data prediction processing to obtain first predicted interaction data corresponding to the first time period; The second sample account characteristics and the second sample medium characteristics are input into the second interaction prediction layer for interaction data prediction processing to obtain second predicted interaction data corresponding to the second time period.

3. The interactive data prediction model training method according to claim 2, characterized in that: There are at least two first sample accounts, and calculating the first loss value according to the first sample interaction data corresponding to the first sample data and the first predicted interaction data includes: For each first sample account included in the first sample data, based on a preset weight calculation strategy and the first sample interaction data corresponding to the first sample account, calculate a first weight of the first sample account; A first loss value is calculated based on a first loss function, a first weight corresponding to each of the first sample accounts, the first sample interaction data, and the first predicted interaction data.

4. The interactive data prediction model training method according to claim 3, characterized in that: The calculating the first weight of the first sample account based on a preset weight determination strategy and the first sample interaction data corresponding to the first sample account includes: Based on the first sample interaction data corresponding to each of the first sample accounts, determining a first number of sample accounts that meet a preset resource interaction condition, and obtaining a total number of first sample accounts included in the first sample data; Calculate the difference between the first number and the total number of the first sample accounts, and calculate the ratio of the difference to the total number of the first sample accounts; The product of the first sample interaction data corresponding to the first sample account and the ratio is used as the first weight of the first sample account.

5. The interactive data prediction model training method according to claim 3, characterized in that: The calculating the first weight of the first sample account based on a preset weight determination strategy and the first sample interaction data corresponding to the first sample account includes: When the first sample interaction data of the first sample account does not meet the preset resource interaction condition, the preset target value is determined to be the first weight corresponding to the first sample account.

6. The interactive data prediction model training method according to any one of claims 1 to 5, characterized in that: After obtaining the trained interactive data prediction model, the method further includes: Inputting the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended; When the predicted interaction data is greater than or equal to a preset order threshold, the media data to be recommended is pushed to the account to be recommended.

7. The interactive data prediction model training method according to claim 6, characterized in that: The step of inputting the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended, comprises: Inputting the account data of the account to be recommended and the media data to be recommended into the trained interaction data prediction model to obtain the predicted interaction data of the account to be recommended for the media data to be recommended within the first time period and the predicted interaction data within the second time period; Based on the predicted interaction data in the first time period and the predicted interaction data in the second time period, the predicted interaction data of the account to be recommended for the media data to be recommended is determined.

8. The interactive data prediction model training method according to claim 6, characterized in that: The media data to be recommended are at least two, and after obtaining the predicted interaction data of the account to be recommended for the media data to be recommended, the method further includes: Determine a sequence of the media data to be recommended according to the order of magnitude of the predicted interaction data of the accounts to be recommended for each of the media data to be recommended; Target media data to be recommended is determined in the sequence of media data to be recommended, and the target media data to be recommended is pushed to the account to be recommended.

9. An interactive data prediction model training device, characterized in that: include: an acquisition unit, configured to execute acquisition of training data, the training data comprising first sample data collected in a first time period and second sample data collected in a second time period, the first sample data and the second sample data both comprising account data of a sample account, sample media data, and sample interaction data of the sample account for the sample media data, the first time period being a time period in which a conversion rate reaches a first conversion rate threshold; the second time period being a time period in which the conversion rate reaches a second conversion rate threshold, the first conversion rate threshold being less than the second conversion rate threshold, and the conversion rate being a conversion rate of an account for media data in a virtual space; A first determining unit is configured to input the first sample data and the second sample data into the interaction data prediction model to be trained for prediction processing, and determine first predicted interaction data corresponding to the first sample data and second predicted interaction data corresponding to the second sample data; A first calculation unit is configured to calculate a first loss value according to first sample interaction data corresponding to the first sample data and the first predicted interaction data, calculate a second loss value according to second sample interaction data corresponding to the second sample data and the second predicted interaction data, and calculate a comprehensive loss value according to the first loss value and the second loss value; The updating unit is configured to update the network parameters of the interaction data prediction model to be trained based on the comprehensive loss value until a preset training completion condition is reached to obtain a trained interaction data prediction model.

10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions to implement the interaction data prediction model training method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the interactive data prediction model training method as described in any one of claims 1 to 8.