Calibration parameter generation method for gift set recommendation and gift set recommendation method

By performing two classification processes and calibration parameter calculations on the original dataset for gift pack recommendations, the problem of inaccurate gift pack recommendation results was solved, and the recommendation accuracy was improved even when user distribution was uneven and gift packs varied greatly.

CN116664223BActive Publication Date: 2026-11-27NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310450046.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2026-11-27
Estimated Expiration
2043-04-18

AI Technical Summary

Technical Problem

Existing gift pack recommendation methods lack a calibration process, resulting in inaccurate recommendations, especially when user distribution is uneven, sample distribution is uneven, and there are large differences between gift packs. This leads to significant discrepancies between predicted and actual purchase data.

Method used

By performing two classification processes on the original dataset to form multiple sub-datasets, and calculating the gift pack calibration parameters based on the actual purchase data and predicted purchase data, numerical calibration is performed on each gift pack to reduce the difference between user feature data and predicted purchase data.

Benefits of technology

This improves the accuracy of gift pack recommendations, ensuring that the calibrated predicted purchase data is closer to actual purchase data, thus enhancing the accuracy of gift pack recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116664223B_ABST
    Figure CN116664223B_ABST
Patent Text Reader

Abstract

The application discloses a calibration parameter generation method for gift package recommendation, a gift package recommendation method and device, a gift package recommendation system, an electronic device, and a computer readable storage medium. The calibration parameter generation method for gift package recommendation comprises: obtaining an original data set at a current calculation time; performing first classification processing on multiple pieces of original data according to user feature data to form multiple first sub-data sets; determining a first target gift package according to the number of records of each gift package in the first sub-data sets, and performing second classification processing on the original data in the first sub-data sets that record the first target gift package according to predicted purchase data to form multiple second sub-data sets; and calculating a gift package calibration parameter corresponding to each second sub-data set at the current calculation time according to real purchase data and predicted purchase data. The gift package calibration parameter obtained by the method can calibrate the predicted purchase data and improve the accuracy of gift package recommendation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to a method and apparatus for generating calibration parameters for gift package recommendations, a method and apparatus for recommending gift packages, a gift package recommendation system, as well as electronic devices and computer-readable storage media. Background Technology

[0002] With the development of information technology and the internet, information overload has become a challenge faced by both consumers and producers. Based on this, personalized recommendations have emerged. In the gaming world, operators typically recommend products or bundles of multiple products to players at specific times and in specific scenarios to enhance the player's personalized gaming experience and increase the operator's revenue.

[0003] Personalized recommendations in the gaming industry primarily rely on pre-defined recommendation models. These models calculate the probability of a player purchasing each recommended item or bundle based on their individual characteristics, then push the item or bundle with the highest probability of purchase to the player. However, due to factors such as uneven player distribution and significant product differences during the recommendation process, the purchase probability value output by the recommendation model often differs greatly from the actual purchase value. Therefore, a better solution is to add a calibration step to the purchase probability value output by the recommendation model during the recommendation process, making the calibrated purchase probability value closer to the actual purchase value.

[0004] Currently, there are calibration methods for recommending individual products, but no calibration method for recommending gift sets. Furthermore, calibration methods for individual products cannot be applied to gift set recommendations due to data incompatibility. Therefore, existing gift set recommendation methods lack a calibration step, resulting in inaccurate recommendations. Summary of the Invention

[0005] This application provides a method and apparatus for generating calibration parameters for gift package recommendations, a method and apparatus for recommending gift packages, a gift package recommendation system, as well as an electronic device and a computer-readable storage medium, to solve the technical problem that existing gift package recommendation methods suffer from inaccurate recommendation results due to the lack of a calibration step.

[0006] This application provides a method for generating calibration parameters for gift package recommendations, the method comprising:

[0007] Obtain the raw dataset at the current calculation time. The raw dataset includes multiple raw data. Each raw data record records at least one user characteristic data corresponding to a user, a gift package characteristic data corresponding to a gift package for the user, and the user's behavioral characteristic data for the gift package. The behavioral characteristic data includes actual purchase data and predicted purchase data.

[0008] Based on the user feature data, the multiple original data are subjected to a first classification process to form multiple first subset datasets;

[0009] The first target gift package is determined based on the number of records for each gift package in the first subset of data.

[0010] Based on the predicted purchase data recorded in the original data of each record containing the first target gift pack in the first subset of the dataset, the original data of each record containing the first target gift pack in the first subset of the dataset is subjected to a second classification process to form multiple second subsets of the dataset.

[0011] Based on the actual purchase data and the predicted purchase data recorded in each of the second subsets, calculate the gift pack calibration parameters for the first target gift pack corresponding to each of the second subsets at the current calculation time.

[0012] This application embodiment also provides a gift package recommendation method, the method including:

[0013] In response to receiving a user's gift package recommendation request, the system obtains the user's user feature data and inputs the user feature data into a preset gift package recommendation model to obtain the user's predicted purchase data for each candidate recommended gift package.

[0014] The predicted purchase data for each candidate recommended gift pack is numerically calibrated by calling the gift pack calibration parameters corresponding to each candidate recommended gift pack, thereby obtaining the second predicted purchase data for each candidate recommended gift pack, wherein the gift pack calibration parameters are generated by the above method;

[0015] Based on the second predicted purchase data for each of the candidate recommended gift packs, a recommended gift pack is obtained to be pushed to the user, and the recommended gift pack is pushed to the user.

[0016] This application embodiment also provides a gift package recommendation system, the system including: data nodes, computing nodes, and service nodes;

[0017] The data node includes: a first storage module, a second storage module, a third storage module, and a fourth storage module;

[0018] The first storage module is used to store the gift pack calibration parameters obtained through the computing node;

[0019] The second storage module is used to store the product calibration parameters obtained through the computing node;

[0020] The third storage module is used to store first target data and second target data. The first target data is target data generated within a first preset time period, and the second target data is target data generated within a second preset time period. The first preset time period is the period between the i-th calculation time and the (i-1)-th calculation time, and the second preset time period is the period between the (i-1)-th calculation time and the first preset time point. The target data includes at least user characteristic data corresponding to the user, gift package characteristic data corresponding to the gift package for the user, and the user's actual purchase data of the gift package. The i-th calculation time is the current calculation time, and i is a positive integer greater than or equal to 1.

[0021] The fourth storage module is used to store third target data, which is target data generated within a third preset time period, and the third preset time period is the period between the first preset time point and the second preset time point.

[0022] The computing node includes: an acquisition module, a first processing module, a determination module, a second processing module, and a computing module;

[0023] The acquisition module is used to acquire the original dataset at the current calculation time. The original dataset includes multiple original data. Each original data record at least one user characteristic data corresponding to a user, a gift package characteristic data corresponding to a gift package for the user, and the user's behavioral characteristic data for the gift package. The behavioral characteristic data includes actual purchase data and predicted purchase data.

[0024] The first processing module is used to perform a first classification process on the multiple original data based on the user feature data to form multiple first subset datasets;

[0025] The determining module is used to determine the first target gift package based on the number of records for each gift package in the first subset of data.

[0026] The second processing module is used to perform a second classification process on each piece of original data in the first subset of the dataset that records the predicted purchase data of the first target gift package, based on the original data of each piece of original data that records the first target gift package in the first subset of the dataset, to form multiple second subsets of the dataset.

[0027] The calculation module is used to calculate the gift pack calibration parameters for the first target gift pack corresponding to each of the second subsets of data at the current calculation time, based on the actual purchase data and the predicted purchase data recorded in each of the second subsets of data.

[0028] The service nodes include: a gift pack recommendation module, a gift pack calibration module, and a business planning module;

[0029] The gift package recommendation module is used to respond to a user's gift package recommendation request, obtain the user's user feature data, and input the user feature data into a preset gift package recommendation model to obtain the user's predicted purchase data for each candidate recommended gift package;

[0030] The gift pack calibration module is used to call the gift pack calibration parameters corresponding to each of the candidate recommended gift packs to perform numerical calibration on the predicted purchase data of each candidate recommended gift pack, so as to obtain the second predicted purchase data for each candidate recommended gift pack, wherein the gift pack calibration parameters are generated by the above method;

[0031] The business planning module is used to obtain the recommended gift package to be pushed to the user based on the second predicted purchase data of each candidate recommended gift package, and push the recommended gift package to the user.

[0032] This application embodiment also provides a calibration parameter generation device for gift package recommendation, the device comprising: a raw dataset acquisition unit, a first classification processing unit, a target gift package determination unit, a second classification processing unit, and a calibration parameter calculation unit;

[0033] The original dataset acquisition unit is used to acquire the original dataset at the current calculation time. The original dataset includes multiple original data. Each original data record at least one user characteristic data corresponding to a user, a gift package characteristic data corresponding to a gift package for the user, and the user's behavioral characteristic data for the gift package. The behavioral characteristic data includes actual purchase data and predicted purchase data.

[0034] The first classification processing unit is used to perform a first classification process on the multiple original data based on the user feature data to form multiple first subset datasets;

[0035] The target gift package determination unit is used to determine the first target gift package based on the number of records for each gift package in the first subset of data.

[0036] The second classification processing unit is used to perform a second classification process on each piece of original data in the first subset of the dataset that records the predicted purchase data of each piece of original data that records the first target gift package, thereby forming multiple second subsets of the dataset.

[0037] The calibration parameter calculation unit is used to calculate the gift package calibration parameters for the first target gift package corresponding to each of the second subsets at the current calculation time, based on the actual purchase data and the predicted purchase data recorded in each of the second subsets.

[0038] This application embodiment also provides a gift package recommendation device, the device comprising: a predictive purchase data generation unit, a predictive purchase data calibration unit, and a recommended gift package acquisition unit;

[0039] The predictive purchase data generation unit is used to respond to receiving a user's gift package recommendation request, obtain the user's user feature data, and input the user feature data into a preset gift package recommendation model to obtain the user's predictive purchase data for each candidate recommended gift package;

[0040] The predicted purchase data calibration unit is used to call the gift pack calibration parameters corresponding to each of the candidate recommended gift packs to perform numerical calibration on the predicted purchase data of each candidate recommended gift pack, so as to obtain the second predicted purchase data for each candidate recommended gift pack, wherein the gift pack calibration parameters are generated by the above method;

[0041] The recommended gift pack acquisition unit is used to obtain a recommended gift pack to be pushed to the user based on the second predicted purchase data of each candidate recommended gift pack, and push the recommended gift pack to the user.

[0042] This application also provides an electronic device, including: a memory and a processor;

[0043] The memory is used to store one or more computer instructions;

[0044] The processor is configured to execute one or more computer instructions to implement the above method.

[0045] This application also provides a computer-readable storage medium storing one or more computer instructions that, when executed by a processor, perform the above-described method.

[0046] Compared with existing technologies, the calibration parameter generation method for gift package recommendation provided in this application firstly performs a first classification process on the original dataset based on user feature data, forming multiple first subsets. Secondly, for each first subset, a second classification process is performed on the original data in the first subset based on the user's predicted purchase data for a gift package, forming multiple second subsets. Thirdly, based on the user's actual purchase data and predicted purchase data for the gift package, the gift package calibration parameters corresponding to each second subset are calculated. This method, through two classification processes on the original data, reduces the differences between the user feature data of all users included in each second subset, and also reduces the differences between the predicted purchase data for a single gift package. The gift package calibration data calculated within a smaller range of differences can calibrate the predicted purchase data output by the recommendation model under conditions such as uneven user distribution, uneven sample distribution, and large differences between gift packages, thereby improving the accuracy of the gift package recommendation results. Attached Figure Description

[0047] Figure 1 This is a schematic diagram of the structure of a gift package recommendation system provided in an embodiment of this application;

[0048] Figure 2 This is a flowchart of the calibration parameter generation method provided in the first embodiment of this application;

[0049] Figure 3 This is a schematic diagram of the target data partitioning provided in the first embodiment of this application;

[0050] Figure 4 This is a schematic diagram illustrating the classification of users provided in the first embodiment of this application;

[0051] Figure 5 This is a schematic diagram of the order preservation processing method provided in the first embodiment of this application;

[0052] Figure 6 This is a flowchart of the gift package recommendation method provided in the second embodiment of this application;

[0053] Figure 7 This is a schematic diagram of the structure of the gift package recommendation system provided in the third embodiment of this application;

[0054] Figure 8 This is a schematic diagram of the calibration parameter generation device provided in the fourth embodiment of this application;

[0055] Figure 9 This is a schematic diagram of the gift package recommendation device provided in the fifth embodiment of this application;

[0056] Figure 10This is a schematic diagram of the structure of the electronic device provided in the sixth embodiment of this application. Detailed Implementation

[0057] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.

[0058] The following describes the terms used in the embodiments of this application:

[0059] Recommendation refers to the process of responding to a user's recommendation request and recommending content (such as products, information, or mechanisms) that the user may be interested in based on user characteristic data (such as user interests, purchasing behavior, and historical reading history). Both recommendation and search are methods to help users quickly discover useful information, but recommendation is the process of providing recommended content to users by analyzing user characteristic data when the user has not provided a specific request; while search is the process of providing search content to users when they actively provide accurate keywords.

[0060] A recommendation system is a personalized information system that recommends products, information, and mechanisms that users may be interested in. It acts as a bridge connecting users and resources, proactively recommending resources that users may be interested in or find useful based on user characteristic data. For example, in the gaming industry, a recommendation system can recommend suitable game items to players based on player characteristic data (such as player level and spending data). Similarly, in e-commerce, a recommendation system can recommend products that users are more likely to purchase based on user characteristic data.

[0061] Recommendation algorithms are a type of algorithm used in computer science. Based on user feature data, they use mathematical algorithms to predict content that a user may be interested in. Among them, recommendation models are neural network models that implement recommendation algorithms.

[0062] The gift pack recommendation model is a module in a recommendation system used to recommend gift packs. It takes user feature data and gift pack feature data / product feature data as input data and inputs them into the gift pack recommendation model to obtain a score. This score can be used to measure the probability that a user will purchase a gift pack / product.

[0063] With the development of information and internet technologies, information overload has become a challenge faced by both consumers and producers. Personalized recommendations have emerged in response, and the economic benefits they bring are increasingly significant. The core of personalized recommendations is to suggest content that each user might be interested in, thereby increasing user purchasing power and improving user experience.

[0064] In the game world, operators often recommend products or gift packs consisting of multiple products to players at specific times and in specific scenarios in order to enhance the personalized gaming experience for players and increase the revenue for operators.

[0065] Currently, personalized recommendations in the gaming industry primarily focus on recommending individual items. This involves using a recommendation model to calculate the predicted purchase probability of each item based on the player's unique characteristics, and then pushing the item with the highest predicted purchase probability to the player. For gift packs consisting of multiple items, there are two main methods: First, the recommendation model calculates the predicted purchase probability of each item in the gift pack, and then performs a weighted sum of these probabilities to obtain the gift pack's predicted purchase data, which is then used for recommendations. Second, the gift pack is treated as a special item, and the recommendation model calculates the predicted purchase data for the entire gift pack, which is then used for recommendations.

[0066] The aforementioned gift package recommendation method achieves good results on the global AUC (area under the curve) metric, but its performance on the absolute error metric is not ideal. That is, there is a significant discrepancy between the predicted purchase data and the actual purchase data obtained through the recommendation model. This discrepancy is not caused by a single factor. It is often due to factors such as uneven distribution of positive and negative samples, uneven user distribution, and large differences in products. These factors cause the recommendation model to overestimate some users and underestimate others at the user level, overestimate some products and underestimate others at the product level, and ultimately, different users have different errors when choosing different products.

[0067] Therefore, a better solution is to add a calibration step to the predicted purchase data output by the recommendation model during the recommendation process, so that the calibrated predicted purchase data is closer to the actual purchase data.

[0068] Currently, there are calibration methods for recommending individual products, but no calibration methods for recommending gift sets. Furthermore, calibration methods for individual products cannot be applied to gift set recommendations due to data incompatibility. Therefore, existing gift set recommendation methods lack a calibration step, leading to significant discrepancies between predicted and actual purchase data obtained through the recommendation model, resulting in inaccurate gift set recommendations.

[0069] In view of this, this application provides a method for generating calibration parameters for gift package recommendations. First, for the original dataset, the raw data in the original dataset undergoes a first classification process based on user feature data, forming multiple first subsets. Second, for each first subset, the raw data in the first subset undergoes a second classification process based on the user's predicted purchase data for a gift package, forming multiple second subsets. Third, based on the user's actual purchase data and predicted purchase data for that gift package, the gift package calibration parameters corresponding to each second subset are calculated. This method, through two classification processes on the raw data, reduces the differences between the user feature data of all users included in each second subset, and also reduces the differences between the predicted purchase data for a single gift package. The gift package calibration data calculated within a smaller range of differences can calibrate the predicted purchase data output by the recommendation model under conditions such as uneven user distribution, uneven sample distribution, and large differences between gift packages, thereby improving the accuracy of the gift package recommendation results.

[0070] The calibration parameter generation method and apparatus for gift package recommendation, the gift package recommendation method and apparatus, the gift package recommendation system, as well as the electronic equipment and computer-readable storage medium described in this application, will be further described in detail below with reference to specific embodiments and accompanying drawings.

[0071] Figure 1 This is a schematic diagram of the structure of a gift package recommendation system provided in an embodiment of this application, such as... Figure 1 As shown, the gift package recommendation system provided in this embodiment includes a data node 101, a computing node 102, and a service node 103. The service node 103 is equipped with the gift package recommendation method provided in this application, responding to user recommendation requests and providing accurate recommendation services; it can be an online server, a cloud server, etc. The computing node 102 is equipped with the calibration parameter generation method for gift package recommendation provided in this application, calculating calibration parameters based on historical data; it can be an offline computer device, etc. Communication connections exist between the data node 101 and the computing node 102, as well as between the data node 101 and the service node 103, providing data support for the computing node 102 and the service node 103; it can be an offline data warehouse, etc.

[0072] The first embodiment of this application provides a method for generating calibration parameters for gift package recommendations. The execution subject of this method is a computing node in the gift package recommendation system, and the data node provides data support to the computing node in this method.

[0073] In this embodiment, the calibration parameter refers to data that can numerically calibrate the predicted purchase data of the gift pack. The predicted purchase data is the probability that a user may purchase the gift pack, output by the gift pack recommendation model. By calibrating the predicted purchase data with the calibration parameter, the calibrated predicted purchase data can be made closer to the actual purchase data.

[0074] Figure 2 This is a flowchart of the calibration parameter generation method provided in this embodiment. The following is in conjunction with... Figure 2 This embodiment provides a detailed description of the calibration parameter generation method for gift package recommendations. The embodiments described below are used to explain the technical solutions of this application and are not intended to limit actual use.

[0075] like Figure 2 As shown, the calibration parameter generation method provided in this embodiment includes the following steps S210 to S250.

[0076] Step S210: Obtain the original dataset at the current calculation time. The original dataset includes multiple original data. Each original data record at least one user characteristic data corresponding to a user, a gift package characteristic data corresponding to a gift package for the user, and the user's behavioral characteristic data for the gift package. The behavioral characteristic data includes actual purchase data and predicted purchase data.

[0077] In the method provided in this embodiment, the calibration parameters are not static after being generated once, but are continuously updated according to the operation of the game. Continuously updated calibration parameters ensure that the calibrated predicted purchase data is closer to the actual purchase data during the current runtime. Therefore, during the operation of the game, there will be multiple calculation moments for the calibration parameters. At each calculation moment, the calibration parameters are recalculated, replacing the calibration parameters from the previous calculation moment. For example, if the calibration parameters are preset to be calculated every 10 minutes, then there will be a calculation moment every 10 minutes during the operation of the game. The current calculation moment mentioned in this embodiment refers to any one of the multiple calculation moments. It should be noted that if the current calculation moment is the moment when the calibration parameters are first calculated, then the obtained calibration parameters do not need to be replaced.

[0078] The original dataset refers to a collection of multiple original data entries. Each original data entry records multiple data entries corresponding to a user and a gift package, including: user feature data, gift package feature data, and user behavior feature data related to the gift package. Among them, user feature data mainly includes user code, user profile information, etc.; gift package feature data mainly includes gift package code, product code of each item in the gift package, etc.; and behavior feature data mainly includes predicted purchase data of the user for the gift package and actual purchase data of the user for the gift package.

[0079] In one specific implementation, the original dataset can be represented as {<id,pack,feature,his_score,buy> The dataset is defined as |his}, where id represents the user code, pack represents the gift pack code, feature represents user profile information (e.g., user level data, user spending data), his_score represents the user's predicted purchase data for the gift pack, and buy represents the user's actual purchase data for the gift pack. The user code data, gift pack code data, user profile information, and actual purchase data are all generated during the game's operation and can be recorded in the game logs through data collection methods. However, the predicted purchase data requires computation; therefore, before obtaining the raw dataset, the computing node needs to perform steps such as acquiring the target data and constructing the raw dataset.

[0080] In an optional implementation, the current calculation time is the i-th calculation time, where i is a positive integer greater than or equal to 1. Before obtaining the original dataset at the current calculation time, the following steps S211 to S214 need to be performed, specifically:

[0081] Step S211: Obtain the target data.

[0082] The target data includes at least user feature data corresponding to multiple users, gift package feature data corresponding to multiple gift packages for each user, and actual purchase data of each user for each gift package.

[0083] In one specific implementation, the acquired target data can be represented as {<id,pack,buy> |his}, where id represents the user code, pack represents the gift pack code, and buy represents the user's actual purchase data for the gift pack.

[0084] It should be noted that the above-mentioned gift packs refer to those exposed to users. For example, in a game project, the gift packs to be recommended include gift pack a, gift pack b, and gift pack c. Assuming that gift pack a and gift pack b were recommended to user A before the i-th calculation time, then gift pack a and b are the gift packs exposed to user A. The target data obtained will not include the data generated by user A for gift pack c.

[0085] For gift packs exposed to users, if the user actually purchased the gift pack, the buy value is 1; otherwise, the buy value is 0. In the example above, if user A purchased gift pack a but not gift pack b, then the target data obtained for user A could include: {<user A, gift pack a, 1>|his} and {<user A, gift pack b, 0>|his}. Of course, in real-world applications, user A and gift pack a would be represented by coded IDs.

[0086] The target data can be obtained continuously, directly from the game server, or intermittently, from the game logs periodically output by the game server. If using the intermittent method, the game server must output the game logs slightly earlier than the corresponding calculation time; the specific method of acquisition is not restricted here.

[0087] Step S212: Divide the target data into first target data, second target data, and third target data according to the data generation time. The first target data is the target data generated within a first preset time period, the second target data is the target data generated within a second preset time period, and the third target data is the target data generated within a third preset time period. The first preset time period is the period between the i-th calculation time and the (i-1)-th calculation time, the second preset time period is the period between the (i-1)-th calculation time and the first preset time point, and the third preset time period is the period between the first preset time point and the second preset time point.

[0088] During the game's operation, users continuously generate target data whenever they participate. To increase the sample size of the original dataset, the target data acquired at the i-th computation time should not only include real-time data generated by the user from computation time (i-1) to the i-th computation time, but also historical data generated before the i-1-th computation time. Since target data acquisition and original dataset construction occur at each computation time, there will be some overlap between target data and original data in adjacent computation times. To avoid duplicate acquisition of target data and duplicate construction of the original dataset, the target data can be divided according to its generation time. This way, when acquiring target data at the (i+1)-th computation time, it's unnecessary to repeatedly acquire target data from before the i-th computation time; similarly, when constructing the original dataset for the (i+1)-th computation time, it's unnecessary to repeatedly construct the original dataset for the i-th computation time.

[0089] In this embodiment, the acquired target data is divided into first target data, second target data, and third target data according to the generation time. Figure 3 This is a schematic diagram of the target data partitioning provided in this embodiment.

[0090] like Figure 3 As shown, the first target data is the target data generated within a first preset time period, which is the period between the i-th calculation time and the (i-1)-th calculation time. The second target data is the target data generated within a second preset time period, which is the period between the (i-1)-th calculation time and the first preset time point. The third target data is the target data generated within a third preset time period, which is the period between the first preset time point and the second preset time point. Both the first and second preset time points are adjustable values, or values ​​that can change according to set rules. In a specific example, the first preset time point can be 0:00 AM of the current day, and the second preset time point can be 0:00 AM seven days ago. That is, the first and second target data are real-time data generated on the current day, while the third target data is historical data generated over the past seven days. When the time crosses 24:00, the first preset time point becomes 0:00 AM of the current day, and the second preset time point becomes 0:00 AM seven days ago. That is, the first and second target data generated yesterday will be transformed into the third target data, while the target data from eight days ago will be removed from the third target data.

[0091] Step S213: Store the first target data and the second target data in the third storage module, and store the third target data in the fourth storage module.

[0092] Multiple storage modules can be deployed in a data node to store different types of data. In this embodiment, the first target data and the second target data can be stored in a third storage module, and the third target data can be stored in a fourth storage module. Since the first and second target data are real-time data, they are more likely to be used in the later construction of the original dataset (the first target data will inevitably be used), but their total data volume is relatively small. The third target data, on the other hand, is historical data, less likely to be used in the later construction of the original dataset, but its total data volume is larger. Therefore, the third storage module storing the first and second target data can be a storage system with a small storage space but a fast operating speed, while the fourth storage module storing the third target data can be a storage system with a slower operating speed but a larger storage space.

[0093] In a specific real-time approach, the third storage module can be MySQL (a relational database management system), and the fourth storage module can be HDFS (Hadoop Distributed File System). MySQL is a relational database management system that stores data in different tables rather than putting all data in one large repository, offering advantages such as speed and flexibility. HDFS is a distributed file system that stores files through a directory tree, offering advantages such as large storage capacity and high compatibility. Using MySQL as the third storage module and HDFS as the fourth storage module meets the storage requirements of various target data.

[0094] Step S214: Based on the update status of the preset gift package recommendation model within the first preset time period, construct the original dataset for the i-th calculation time.

[0095] The preset gift pack recommendation model is a mature model that has been trained in the early stage. It can output the purchase probability of each candidate recommended gift pack based on user feature information. It can also be understood that the gift pack recommendation model can score each candidate recommended gift pack for the user.

[0096] Generally, gift pack recommendation models are updated after a period of use. That is, the model is optimized and trained using new target data to ensure that the purchase probability output by the model is consistent with the current situation.

[0097] In this embodiment, since the second target data corresponding to the i-th calculation time is composed of the first target data and the second target data corresponding to the (i-1)-th calculation time, and the third target data corresponding to the i-th calculation time is the same as the third target data corresponding to the (i-1)-th calculation time, if the gift package recommendation model is not updated within the first preset time period (from the (i-1)-th calculation time to the i-th calculation time), it is not necessary to repeatedly calculate the second and third target data corresponding to the i-th calculation time. If the gift package recommendation model is updated within the first preset time period, it is necessary to recalculate each target data. The following details the two cases of constructing the original dataset:

[0098] Firstly, if the gift package recommendation model is not updated within the first preset time period, the calculation results of the first target data, second target data, and third target data corresponding to the (i-1)th calculation time can be directly used at the i-th calculation time without recalculation; only the first target data corresponding to the i-th calculation time needs to be calculated. Therefore, if the gift package recommendation model is not updated within the first preset time period, the original dataset is constructed using the first target data.

[0099] Secondly, if the gift package recommendation model is updated within the first preset time period, the calculation results of the first target data, second target data, and third target data corresponding to the (i-1)th calculation time are output by the gift package recommendation model before the update, and will inevitably be different from the results output by the updated gift package recommendation model. Therefore, they cannot be directly used at the i-th calculation time and need to be recalculated. Thus, if the gift package recommendation model is updated within the first preset time period, the original dataset is constructed using the first target data, the second target data, and the third target data.

[0100] The following details the specific implementation methods for constructing the original dataset in the two scenarios described above.

[0101] Implementation Method 1: If the gift package recommendation model is not updated within the first preset time period, the original dataset is constructed using the first target data, specifically as follows:

[0102] Step S214-11: Retrieve the first target data from the third storage module, and use the user feature data and the gift package feature data in the first target data as input data to input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data;

[0103] Step S214-12: Merge the predicted purchase data with the first target data to form the first original dataset;

[0104] Step S214-13: Obtain the original dataset at the (i-1)th calculation time.

[0105] Step S214-14: Merge the first original dataset with the original dataset at the (i-1)th calculation time to form the original dataset at the ith calculation time.

[0106] In one specific implementation, {<id,pack,feature> |his_t} represents the first target data, {his_score|his_t} represents the output result data corresponding to the first target data, and {his_score|his_i} represents the calculation result data at the (i-1)th calculation time. Therefore, the construction process of the original dataset can be shown in Table 1:

[0107] Table 1. Process of constructing the original dataset.

[0108]

[0109] Implementation method two: If the gift package recommendation model is updated within the first preset time period, the original dataset is constructed using the first target data, the second target data, and the third target data, specifically as follows:

[0110] Steps S214-21: Retrieve the first target data from the third storage module, and use the user feature data and the gift package feature data in the first target data as input data to input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. Merge the predicted purchase data with the first target data to form the first original dataset.

[0111] Steps S214-22: Retrieve the second target data from the third storage module, and use the user feature data and the gift package feature data in the second target data as input data to input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. Merge the predicted purchase data with the second target data to form the second original dataset.

[0112] Steps S214-23: Retrieve the third target data from the fourth storage module, and use the user feature data and the gift package feature data in the third target data as input data to input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. Merge the predicted purchase data with the third target data to form the third original dataset.

[0113] Steps S214-24: The first original dataset, the second original dataset, and the third original dataset are merged to form the original dataset at the i-th calculation time.

[0114] In a specific real-time mode, using {<id,pack,feature> |his_t} represents the first target data, {<id,pack,feature> |his_last} represents the second target data, {<id,pack,feature> |his_7} represents the third target data, and {his_score|his_t} represents the output data corresponding to the first target data, {his_score|his_last} represents the output data corresponding to the second target data, and {his_score|his_7} represents the output data corresponding to the third target data. The construction process of the original dataset can then be shown in Table 2.

[0115] Table 2 shows the process of constructing the original dataset.

[0116]

[0117] The construction of the original dataset is mainly completed in the data nodes. After the construction is completed, the computing nodes can obtain the original dataset from the data nodes.

[0118] Step S220: Based on the user feature data, perform a first classification process on the multiple original data to form multiple first subset datasets.

[0119] The original dataset contains a large amount of data and involves a large number of users. The distribution of user feature data in the original dataset is uneven. Therefore, in the method provided in this embodiment, the original dataset is classified based on the user feature data of all users involved, forming multiple first subsets. This reduces the differences in user feature data among all users in each first subset, making the user distribution in the first subset more balanced.

[0120] As mentioned above, user feature data mainly includes user coding data, user profile information, etc., and user profile information may include user level data, user consumption data, etc. Based on this, this embodiment provides an optional method for performing a first classification process on multiple pieces of raw data in the original dataset, including the following steps S221 to S222:

[0121] Step S221: Based on the user level data and the user consumption data, divide the users recorded in the original dataset into multiple user categories, that is, classify users according to user level data and user consumption data. Specifically, this may include the following steps:

[0122] Step S221-1: Based on the user level data, sort the users recorded in the original dataset according to the level data corresponding to the user from smallest to largest, and divide the users into a first preset number of first user categories in equal proportion.

[0123] Step S221-2: Based on the user consumption data, sort the users included in each of the first user categories according to their corresponding consumption data from smallest to largest, and divide the users included in each of the first user categories into a second preset number of second user categories proportionally. The product of the first preset number and the second preset number is the number of user categories.

[0124] Both the first preset quantity and the second preset quantity are adjustable values, or values ​​that can change according to set rules, such as adjusting the first preset quantity and the second preset quantity according to the number of users.

[0125] Figure 4 This is a schematic diagram illustrating the classification of users provided in this embodiment.

[0126] like Figure 4As shown, assume the original dataset contains N users, a first preset number of users (M1), and a second preset number of users (M2). The user classification process is as follows: First, sort the N users from smallest to largest based on their user level data. Second, divide the sorted N users into M1 equal parts, each part forming a first user category. Each first user category contains N / M1 users. Third, sort the N / M1 users in each first user category from smallest to largest based on their consumption data. Fourth, for each first user category, divide the sorted N / M1 users into M2 equal parts, each part forming a second user category. Each second user category contains N / M1 / M2 users. M1 × M2 represents the total number of user categories into which the N users are divided. Users within each category not only have similar user levels but also similar consumption data. Therefore, for users within a category, the difference between users is reduced, and for all users in the original dataset, the distribution of users is balanced.

[0127] Of course, users can also be categorized based on other user characteristic data, such as user online time data, user item preference data, etc., without any restrictions.

[0128] Step S222: Based on the user code data corresponding to the users included in each user category, classify each piece of original data included in the original dataset accordingly to form multiple first sub-datasets, that is, classify the original data according to the user classification.

[0129] After classifying users, each piece of raw data in the original dataset can be classified according to the user's corresponding user code data and the code information recorded in the original data. Each category is called a first subset.

[0130] Step S230: Determine the first target gift package based on the number of records for each gift package in the first subset of data.

[0131] In the first subset of data, the user distribution was balanced. In order for the obtained calibration parameters to be able to calibrate the errors caused by the differences between different gift packs, each first subset of data needs to be used as a separate computing unit to calculate the calibration parameters corresponding to each gift pack included in each subset of data.

[0132] To avoid over-calibration of the gift packs, calibration parameters are calculated only for gift packs that have reached a certain exposure count. Therefore, in this step, the exposure count of each gift pack included in each first subset of the dataset is counted; that is, the number of records for each gift pack in the first subset of the dataset is counted.

[0133] After determining the number of times the gift pack is recorded, the first target gift pack can be determined based on the number of times the gift pack is recorded. In the method provided in this embodiment, a first preset threshold is used as a reference standard for determining the first target gift pack. The first preset threshold is an adjustable value or a value that can change according to the set rules.

[0134] The specific method for determining the first target gift package is as follows: Calculate the number of records for each gift package included in the first subset of data, and determine each gift package whose number of records is not less than the first preset threshold as the first target gift package. That is, the first target gift package is a gift package whose number of records is not less than the first preset threshold. For example, if the first preset threshold is set to 50%, then gift packages with a record count greater than 50% in the first subset of data will be determined as the first target gift package.

[0135] Step S240: Based on the predicted purchase data recorded in the original data of each record containing the first target gift package in the first subset of the dataset, perform a second classification process on each record containing the first target gift package in the first subset of the dataset to form multiple second subsets of the dataset.

[0136] The original dataset is divided into a first subset based on user characteristic data, achieving a more balanced user distribution and reducing the differences in user characteristic data among all users included in the first subset. However, the distribution of predicted purchase data recorded in all the original data within the first subset remains unbalanced. Therefore, in the method provided in this embodiment, for each first target gift package, all the original data recording that first target gift package in the first subset is further classified to form multiple second subsets. This reduces the differences in predicted purchase data among the original data in the second subsets, resulting in a more balanced sample distribution.

[0137] Before performing the second classification processing on each record of the first target gift pack in the first subset of data, it is also necessary to determine the number of classifications in the second subset of data. Specifically, based on the number of records of the first target gift pack in the first subset of data, a third preset number of the second subset of data is determined, as well as the upper limit and lower limit of the calibration parameters of the gift pack.

[0138] The third preset quantity is an adjustable value, which indicates how many categories the original data in the first subset containing the first target gift package is divided into. Generally, the more times the first target gift package is recorded in the first subset, the larger the third preset quantity will be, so that the distribution of the sample data can be better balanced.

[0139] While determining the third preset quantity based on the number of records, it is also necessary to determine the upper and lower limits of the calibration of the first target gift pack in order to prevent over-calibration of the gift pack.

[0140] In a specific real-time mode, pv represents the number of times the first target gift pack is recorded, bin_num represents the third preset quantity, ratio_high represents the upper limit of the calibration parameters, and ratio_low represents the lower limit of the calibration parameters. The third preset quantity, the upper limit of the calibration parameters, and the lower limit of the calibration parameters, determined based on the number of times the first target gift pack is recorded, are shown in Table 3.

[0141] Table 3. Determination of Third Preset Quantity, Upper Limit and Lower Limit of Calibration Parameters

[0142]

[0143] The number of records for each first target gift pack in a first subset of the dataset may differ. Therefore, for a given first subset of the dataset, there may be different third preset quantities for different first target gift packs.

[0144] After determining the third preset quantity, for each first target gift package, a second classification process can be performed on each record of the original data containing the first target gift package in each first subset of the dataset. An optional implementation method includes the following steps S241 to S242:

[0145] Step S241: Based on the predicted purchase data, sort each record of the original data containing the first target gift package in the first subset of data from smallest to largest according to the predicted purchase data.

[0146] Step S242: According to the third preset quantity, each record of the original data containing the first target gift package in the first subset is divided proportionally to form the second subset of the third preset quantity.

[0147] In one specific implementation, his_score represents the predicted purchase data, bin_num represents the third preset quantity, and p represents the first target gift package. The second classification process is: to classify {<id,pack,feature,his_score,buy> |his&pack=p} is sorted in ascending order according to his_score and then divided into bin_num second subsets.

[0148] After performing two classification processes on the original data in the original dataset, all the original data in a second subset are original data with small differences in user feature data and small differences in predicted purchase data for the same gift package. That is, in a second subset, the effect of balanced distribution of users and balanced distribution of samples for a gift package is achieved.

[0149] Step S250: Based on the actual purchase data and the predicted purchase data recorded in each of the second subsets, calculate the gift package calibration parameters for the first target gift package corresponding to each of the second subsets at the current calculation time.

[0150] Specifically, the merchant obtained by dividing the actual purchase data by the predicted purchase data can be used as the gift package calibration parameter. When calibrating the predicted purchase data using the gift package calibration parameter, the product of the gift package calibration parameter and the predicted purchase data is used as the calibrated predicted purchase data, which will be closer to the actual purchase data.

[0151] In one alternative implementation, the method for calculating the gift pack calibration parameters may include the following steps S251 to S254:

[0152] Step S251: Sum the predicted purchase data recorded in each of the second subsets to obtain the total predicted purchase data corresponding to each of the second subsets, and form a predicted purchase sequence.

[0153] For a first target gift package, there will be multiple original data in each second subset of a first subset. By summing the predicted purchase data recorded in each original data, the total predicted purchase data corresponding to each second subset can be obtained. These data can form a predicted purchase sequence arranged according to the order of the second subsets.

[0154] In one specific implementation, let sum(his_score)|bin represent the total predicted purchase data corresponding to the second subset, let s_his_score represent the predicted purchase sequence, and let bin_num represent the third preset quantity. This step is to calculate sum(his_score)|bin for each of the bin_num second subsets, and then combine the bin_num sum(his_score)|bins to form a sequence s_his_score.

[0155] Step S252: Sum the real purchase data recorded in each of the second subsets to obtain the total real purchase data corresponding to each of the second subsets, and form a real purchase sequence.

[0156] As described in step S251, for a first target gift package, there will be multiple original data in each second subset of a first subset. The actual purchase data recorded in each original data is summed to obtain the total actual purchase data corresponding to each second subset. These data can form an actual purchase sequence arranged according to the order of the second subsets.

[0157] In one specific implementation, sum(buy)|bin represents the total actual purchase data corresponding to the second subset, s_buy represents the predicted purchase sequence, and bin_num represents the third preset quantity. This step is to calculate sum(buy)|bin for each second subset in bin_num second subsets, and then combine bin_num sum(buy)|bin into a sequence s_buy.

[0158] Step S253: Perform order preservation processing on the real purchase sequence to form a second real purchase sequence.

[0159] The order-preserving processing refers to processing a sequence that is not sorted in ascending order into a sequence sorted in ascending order while keeping the order of data elements in the sequence unchanged. Figure 5 This is a schematic diagram of the order-preserving processing method provided in this embodiment.

[0160] like Figure 5As shown, the sequence 501 is a data sequence requiring isotonic processing. First, traverse each element b(i) in the sequence 501 in the forward direction, where i is the position of the element in the sequence. If b(i)>=b1(i-1), then b1(i)=b(i); if b(i)<b1(i-1), then b1(i)=b1(i-1), thereby obtaining a new sequence 502. Next, traverse each element b(i) in the sequence 501 in the reverse direction, where i is the position of the element in the sequence. If b(i)<=b2(i+1), then b2(i)=b(i); if b(i)<b1(i-1), then b1(i)=b1(i-1), thereby obtaining a new sequence 503. Finally, traverse each element in the sequence 502 and the sequence 503 simultaneously, and obtain a new sequence 504 through the calculation of b'(i)=(b1(i)+b2(i)) / 2. The sequence 504 is the sequence after the isotonic processing of the sequence 501. The data elements in the sequence 501 are not sorted from small to large, while the data elements in the sequence 504 are sorted from small to large.

[0161] Since the predicted purchase data has been sorted from small to large during the second classification processing, the formed predicted purchase sequence is a sequence with data elements sorted from small to large. Therefore, in this step, only the real purchase sequence needs to be subjected to isotonic processing. The real purchase sequence is subjected to isotonic processing by the above method to obtain a second real purchase sequence. In a specific implementation, s_buy represents the real purchase sequence, and s_buy' represents the second real purchase sequence. This step is: performing isotonic processing on s_buy to obtain s_buy'.

[0162] Step S254: determine the gift package calibration parameter corresponding to each of the second sub-data sets according to the second real purchase sequence and the predicted purchase sequence.

[0163] The gift package calibration parameter corresponding to the second sub-data set is determined according to the predicted purchase data corresponding to the second sub-data set and the real purchase data after the isotonic processing.

[0164] In an optional implementation, the method for determining the gift package calibration parameter may include the following steps S254-1 to S254-3:

[0165] Step S254-1: calculate a quotient of the second real purchase sequence and the predicted purchase sequence, and use the quotient of the second real purchase sequence and the predicted purchase sequence as an initial gift package calibration parameter corresponding to each of the second sub-data sets.

[0166] Step S254-2: determine whether the initial gift package calibration parameter corresponding to each of the second sub-data sets is within a range of the calibration parameter upper limit and the calibration parameter lower limit.

[0167] Step S254-3: Determine the gift pack calibration parameters corresponding to each of the second subset datasets based on the judgment results, specifically as follows:

[0168] If the initial gift pack calibration parameter corresponding to the second subset of data is within the range of the upper limit and the lower limit of the calibration parameter, then the initial gift pack calibration parameter is used as the gift pack calibration parameter corresponding to the second subset of data.

[0169] If the initial gift pack calibration parameter corresponding to the second subset exceeds the upper limit or the lower limit of the calibration parameter, then the upper limit or the lower limit of the calibration parameter shall be used as the gift pack calibration parameter corresponding to the second subset.

[0170] Through the above steps S210 to S250, the gift pack calibration parameters of each first target gift pack in each second subset of data are calculated. In an optional implementation, the gift pack calibration parameters can be stored in the first storage module, replacing the gift pack calibration parameters calculated at the previous calculation time.

[0171] The first storage module can be understood as a storage module in the data node used to store the gift pack calibration parameters. The gift pack calibration parameters stored in this storage module are the latest obtained gift pack calibration parameters. Old gift pack calibration parameters will be overwritten by the new gift pack calibration parameters generated at each calculation moment.

[0172] In one specific implementation, the gift pack calibration parameters can be...<user_type,pack,bin,w> The data is stored in the first storage module in the form of user_type, pack, bin, and w, where user_type represents the player type, pack represents the gift pack, bin represents the second subset, and w represents the gift pack calibration parameters. In other words, different player types, different gift packs, and different second subsets correspond to different gift pack calibration parameters.

[0173] The above steps detail the calculation method for the calibration parameters of each first target gift package for which the number of records is not less than the first preset threshold. The following describes the calculation method for the calibration parameters of each gift package for which the number of records is less than the first preset threshold.

[0174] For each gift package in each of the first subsets of data where the number of records included is less than the first preset threshold, the following steps S301 to S305 are performed:

[0175] Step S301: Determine the gift packages other than the first target gift package in the gift packages recorded in the first subset of data as the second target gift package.

[0176] In step S230, the first target gift package in the gift packages recorded in the first subset of data was determined. In this step, the other gift packages in the gift packages recorded in the first subset of data, excluding the first target gift package, were determined as the second target gift packages. Since the first target gift package is a gift package whose recording count is not less than a first preset threshold, the second target gift package is a gift package whose recording count is less than the first preset threshold.

[0177] In the method provided in this embodiment, the specific method for determining the second target gift package can be as follows: calculate the number of records of each gift package included in the first subset of data in the first subset of data, and determine each gift package whose number of records is less than the first preset threshold as the second target gift package. For example, if the first preset threshold is set to 50%, then gift packages whose number of records in the first subset of data is less than 50% will be determined as the second target gift package.

[0178] Step S302: Based on the gift package feature data corresponding to the second target gift package, split each original data record containing the second target gift package in the first subset of data to form multiple sub-original data. Each sub-original data record at least the user feature data, the product feature data corresponding to one of the products in the second target gift package, and the behavioral feature data.

[0179] If the number of records of a gift pack in a certain first subset of data is less than a first preset threshold, in order to prevent overcalibration of the gift pack, the gift pack calibration parameters of the gift pack will not be calculated directly. Instead, all the original data of the gift pack recorded in the first subset of data will be split. Specifically, the data will be split according to the products included in the gift pack, and the original data corresponding to the gift pack will be split into the sub-original data corresponding to the products.

[0180] For example, if a gift pack contains three items (item1, item2, and item3), and the number of records associated with this gift pack in a first subset of the dataset is less than 50%, then this gift pack will be identified as the second target gift pack, and the original data corresponding to this gift pack will be...<id,pack,feature,his_score,buy> |his} is split into sub-original data corresponding to product item1.<id,item1,feature,his_score,buy,item_ratio1> Sub-original data corresponding to item2<id,item2,feature,his_score,buy,item_ratio2> Sub-raw data corresponding to product item3<id,item3,feature,his_score,buy,item_ratio3> Where item_ratio1, item_ratio2, and item_ratio3 represent the price ratios of items item1, item2, and item3 in the gift pack, respectively.

[0181] The number of items included in a gift pack, along with the item code and price data for each item, are all included in the gift pack feature data.

[0182] Step S303: Determine the target product based on the number of records for each product in the first subset of data.

[0183] To avoid over-calibration of the gift packs, calibration parameters are calculated only for products that have reached a certain exposure threshold. Therefore, in this step, the exposure count of each product within each first subset of the dataset is counted; that is, the number of records for each product in the first subset of the dataset is counted.

[0184] After determining the number of times a product is recorded, the target product can be identified based on the number of times the product is recorded. In the method provided in this embodiment, a second preset threshold is used as a reference standard for determining the target product. The second preset threshold is an adjustable value or a value that can change according to the set rules.

[0185] The specific method for determining the target product is as follows: Calculate the number of records for each product included in the first subset of data, and determine the product whose number of records is not less than a second preset threshold as the target product. That is, the target product is the product whose number of records is not less than the second preset threshold. For example, if the second preset threshold is set to 50%, then products with a record count greater than 50% in the first subset of data will be determined as target products.

[0186] Step S304: Based on the predicted purchase data recorded in each of the sub-original data records containing the target product in the first subset of the dataset, perform a third classification process on each of the sub-original data records containing the target product in the first subset of the dataset to form multiple third subsets of the dataset.

[0187] The third classification process targets each sub-original data in the first subset of data that records a certain target product. The specific method is similar to the second classification process described in step S240 of this embodiment. Please refer to the description in step S240, and it will not be repeated here.

[0188] Step S305: Based on the actual purchase data, the predicted purchase data, and the product feature data recorded in each of the third subsets, calculate the product calibration parameters for the target product corresponding to each of the third subsets at the current calculation time.

[0189] Step S250 of this embodiment describes in detail the calculation method of the gift pack calibration parameters. The calculation method of the product calibration parameters described in this step is similar to that of the gift pack calibration parameters. The same parts can be referred to in the description of step S250, and will not be repeated here. The following only describes the different parts:

[0190] The gift pack calibration parameters are calculated based on the actual purchase data and predicted purchase data of the first target gift pack. However, since the product is an element in the gift pack, the actual purchase data and predicted purchase data used when calculating the product calibration parameters of the target product are actually data for the second target gift pack to which the target product belongs. Therefore, when calculating the product calibration parameters, the product characteristic data needs to be taken as a reference factor. Specifically, the price ratio of the target product in the second target gift pack is taken as a reference factor for calculating the product calibration parameters.

[0191] In one specific implementation, the weighted sum of total real purchase data sum(buy×item_ratio)|bin and the weighted sum of total predicted purchase data sum(his_score×item_ratio)|bin corresponding to each third subset can be calculated to obtain the real purchase sequence s_buy and the predicted purchase sequence s_his_scor, thereby calculating the product calibration parameters corresponding to the target product.

[0192] Step S306: Store the product calibration parameters in the second storage module, replacing the product calibration parameters calculated at the previous calculation time.

[0193] The second storage module can be understood as a storage module in the data node used to store product calibration parameters. The product calibration parameters stored in this storage module are the latest product calibration parameters. Old product calibration parameters will be overwritten by the new product calibration parameters calculated at each calculation moment.

[0194] In one specific implementation, the product calibration parameters can be...<user_type,item,bin,w> The data is stored in the second storage module in the form of user_type, item, bin, and w, where user_type represents the player type, item represents the product, bin represents the third subset, and w represents the product calibration parameters. In other words, different player types, different products, and different third subsets correspond to different product calibration parameters.

[0195] Through the above steps, the computing nodes of the gift pack recommendation system calculate the gift pack calibration parameters for different player types and different second subsets corresponding to different gift packs with exposure counts greater than the first preset threshold, and the product calibration parameters for different product types and different third subsets corresponding to different product types where the gift pack exposure count is less than the first preset threshold, but the exposure count of the products within the gift pack is greater than the second preset threshold. The gift pack calibration parameters and product calibration parameters are stored in the first and second storage modules of the data nodes, respectively, for use in the calibration steps of the gift pack recommendation process.

[0196] The first embodiment described above provides an optional method for generating calibration parameters for gift package recommendations. It should be noted that the examples in the first embodiment are only for explaining the methods described in this application and are not intended to limit actual use. The method for generating calibration parameters for gift package recommendations provided in this application includes, but is not limited to, the method described in the first embodiment.

[0197] The second embodiment of this application provides a gift package recommendation method. The execution subject of this method is a service node in the gift package recommendation system, and the data node provides calibration data support for the service node in this method.

[0198] Figure 6 This is a flowchart of the gift package recommendation method provided in this embodiment. The following is in conjunction with... Figure 6 The gift package recommendation method provided in this embodiment will be described in detail. The embodiments described below are used to explain the technical solutions of this application and are not intended to limit actual use.

[0199] like Figure 6 As shown, the gift package recommendation method provided in this embodiment includes the following steps S610 to S630.

[0200] Step S610: In response to receiving a user's gift package recommendation request, obtain the user's user feature data and input the user feature data into a preset gift package recommendation model to obtain the user's predicted purchase data for each candidate recommended gift package.

[0201] The gift pack recommendation request can be generated by a user performing a request operation, such as logging into a game account through a client, or controlling a virtual character to enter a virtual store through a client. This request can be sent directly from the client to the service node, or it can be forwarded to the service node through an intermediate node. For example, when a user logs into a game account through a client, the client's processing module detects this operation, generates a gift pack recommendation request, and sends it to the service node. Similarly, when a user logs into a game account through a client, the client's processing module detects this operation, generates action information, sends the action information to the game server, and the game server responds to the action information, generates a gift pack recommendation request, and sends it to the service node. The specific implementation depends on the specific business application and is not limited here.

[0202] In the method provided in this embodiment, upon receiving a user's gift package recommendation request, the service node retrieves the user's user feature data from the data node. This user feature data is then used as input data into a preset gift package recommendation model to obtain the probability output by the model that the user will purchase each candidate recommended gift package; that is, the user's predicted purchase data for each candidate recommended gift package. For example, the user's predicted purchase data for gift package 1 is 0.3, for gift package 2 it is 0.12, and for gift package 3 it is 0.85.

[0203] In existing recommendation methods, the recommendation model will push the candidate recommended gift package with the largest predicted purchase data to the user. For example, it will push gift package 3 with a predicted purchase data of 0.85 to the user.

[0204] As described in the first embodiment of this application, factors such as uneven distribution of positive and negative samples, uneven distribution of users, and large differences in gift packages may lead to significant discrepancies between the predicted purchase data output by the gift package recommendation model and the actual purchase data, resulting in inaccurate gift package recommendation results. Therefore, the gift package recommendation method provided in this embodiment also includes a calibration step for the predicted purchase data output by the gift package recommendation model, as detailed in step S620.

[0205] Step S620: Call the gift pack calibration parameters corresponding to each of the candidate recommended gift packs to perform numerical calibration on the predicted purchase data of each candidate recommended gift pack, and obtain the second predicted purchase data for each candidate recommended gift pack.

[0206] The calibration parameters for the gift package are generated using the calibration parameter generation method provided in the first embodiment of this application.

[0207] In one optional implementation provided in this embodiment, the method for numerically calibrating the predicted purchase data of candidate recommended gift packages using gift package calibration parameters includes the following steps S621 to S624:

[0208] Step S621: Based on the user feature data and the gift package feature data of each candidate recommended gift package, query the first storage module to see if the gift package calibration parameters corresponding to each candidate recommended gift package are stored, wherein the first storage module is a storage module that pre-stores the gift package calibration parameters.

[0209] In the first embodiment of this application, the calculated gift package calibration parameters are stored in the first storage module of the data node, specifically...<user_type,pack,bin,w> The data is stored in the first storage module in the form of user_type, pack, bin, and w, where user_type represents the player type, pack represents the gift pack, bin represents the second subset, and w represents the gift pack calibration parameters.

[0210] Once the service node obtains the user's predicted purchase data for each candidate recommended gift package, it will query the corresponding gift package calibration parameters in the first storage module based on the user's characteristic data and the gift package characteristic data of each candidate recommended gift package.

[0211] In one specific implementation, the method for querying the calibration parameters of the gift pack includes the following steps S621-1 to S621-5:

[0212] Step S621-1: Sort the predicted purchase data ctr(id, pack) of each candidate recommended gift pack.

[0213] Step S621-2: Obtain the user type (user_type) based on the user code (id) in the user feature data.

[0214] Step S621-3: For each candidate recommended gift pack, combine the user type (user_type) and the gift pack code (pack) in the gift pack feature data to form the query data "user_type,pack".

[0215] Step S621-4: Query the corresponding data in the first storage module by querying the data "user_type,pack".<user_type,pack,bin,w> Obtain all the gift pack calibration parameters from the second dataset.<bin,w> .

[0216] Step S621-5: Obtain the corresponding gift pack calibration parameter w from the second dataset based on the predicted purchase data ctr(id, pack).

[0217] Step S622: For the candidate recommended gift package for which the gift package calibration parameters are found in the first storage module, retrieve the gift package calibration parameters corresponding to the candidate recommended gift package from the first storage module, and use the gift package calibration parameters to numerically calibrate the predicted purchase data of the candidate recommended gift package to obtain the second predicted purchase data for the candidate recommended gift package.

[0218] If the calibration parameters corresponding to the candidate recommended gift pack can be found through step S621, the calibration parameters are retrieved from the first storage module, and the predicted purchase data of the candidate recommended gift pack is numerically calibrated using the calibration parameters to obtain the second predicted purchase data.

[0219] In one specific implementation, the second predicted purchase data is the product of the predicted purchase data and the gift pack calibration parameters. Let ctr1(id,pack) represent the second predicted purchase data, ctr(id,pack) represent the predicted purchase data, and w represent the gift pack calibration parameters. The formula for calculating the second predicted purchase data is as follows:

[0220] ctr1(id,pack)=ctr(id,pack)×w

[0221] Step S623: For the candidate recommended gift packs for which the gift pack calibration parameters are not found in the first storage module, the candidate recommended gift packs are split into multiple products according to the gift pack feature data of the candidate recommended gift packs. Then, according to the user feature data and the product feature data of each product, the second storage module is used to query whether the product calibration parameters corresponding to each product are stored. The second storage module is a storage module that pre-stores the product calibration parameters.

[0222] If the calibration parameters for the candidate recommended gift pack cannot be found through step S621, the candidate recommended gift pack is split into multiple products based on the gift pack feature data, and the corresponding product calibration parameters are queried in the second storage module based on the user feature data and the product feature data of each product.

[0223] In the first embodiment of this application, the calculated product calibration parameters are stored in the second storage module of the data node, specifically...<user_type,item,bin,w> The data is stored in the second storage module in the form of user_type, item, bin, and w.

[0224] In one specific implementation, suppose a candidate recommended gift contains three items: item1, item2, and item3. If the corresponding query data "user_type,pack" for the candidate recommended gift cannot be found in the first storage module...<user_type,pack,bin,w> The query data corresponding to the candidate recommended gift pack is then split into query data for item 1 ("user_type, item 1(pack)"), item 2 ("user_type, item 2(pack)"), and item 3 ("user_type, item 3(pack)"). Based on these query data, the corresponding query data is then retrieved from the second storage module.<user_type,item,bin,w> .

[0225] Step S624: For the product whose product calibration parameters are found in the second storage module, retrieve the product calibration parameters corresponding to the product from the second storage module, and use the product calibration parameters to numerically calibrate the predicted purchase data of the candidate recommended gift pack to obtain the second predicted purchase data for the candidate recommended gift pack.

[0226] Step S625: For a product for which the product calibration parameter is not found in the second storage module, then 1 is used as the product calibration parameter corresponding to the product.

[0227] In one specific implementation, assuming a candidate recommended gift contains three items, item1, item2, and item3, the method for querying the product calibration parameters includes the following steps S625-1 to S625-3:

[0228] Step S625-1: Based on the query data "user_type, item1(pack)" corresponding to item1, query the product calibration parameters corresponding to item1 in the second storage module.<user_type,item,bin,w> If the item is found, the product calibration parameter w1 corresponding to item1 is extracted from the second storage module. If the item is not found, the product calibration parameter corresponding to item1 is recorded as 1.

[0229] Step S625-2: Based on the query data "user_type, item2(pack)" corresponding to item2, query the product calibration parameters corresponding to item2 in the second storage module.<user_type,item,bin,w> If the item is found, the product calibration parameter w2 corresponding to item2 is extracted from the second storage module. If the item is not found, the product calibration parameter corresponding to item2 is recorded as 1.

[0230] Step S625-3: Based on the query data "user_type, item3(pack)" corresponding to item3, query the product calibration parameters corresponding to item3 in the second storage module.<user_type,item,bin,w> If the item is found, the product calibration parameter w3 corresponding to item3 is extracted from the second storage module. If the item is not found, the product calibration parameter corresponding to item3 is recorded as 1.

[0231] After obtaining the product calibration parameters for each item in the candidate recommended gift pack, the predicted purchase data of the candidate recommended gift pack can be numerically calibrated using the product calibration parameters for each item to obtain the second predicted purchase data.

[0232] In one specific implementation, the second predicted purchase data is the product of the predicted purchase data and the price percentage of each product's calibration parameter raised to the power of the predicted purchase data. Assuming a candidate recommended gift pack contains three products: item1, item2, and item3, let ctr1(id,pack) represent the second predicted purchase data, ctr(id,pack) represent the predicted purchase data, w1 represent the product calibration parameter corresponding to item1, w2 represent the product calibration parameter corresponding to item2, w3 represent the product calibration parameter corresponding to item3, ratio(item1(pack)) represent the price percentage of item1 in the candidate recommended gift pack, ratio(item2(pack)) represent the price percentage of item2 in the candidate recommended gift pack, and ratio(item3(pack)) represent the price percentage of item3 in the candidate recommended gift pack. The formula for calculating the second predicted purchase data is as follows:

[0233] ctr1(id,pack)=ctr(id,pack)×w1 ratio(item1(pack)) ×w2 ratio(item2(pack)) ×w3 ratio (item3(pack))

[0234] The price percentage of each item in the candidate recommended gift pack is calculated by dividing the price of each item by the price of the candidate recommended gift pack. Let price(pack) represent the price of the candidate recommended gift pack, price(item1(pack)) represent the price of item1, price(item2(pack)) represent the price of item2, and price(item3(pack)) represent the price of item3. The formula for calculating the price percentage of each item in the candidate recommended gift pack is as follows:

[0235]

[0236]

[0237]

[0238] Step S630: Based on the second predicted purchase data of each candidate recommended gift package, obtain the recommended gift package to be pushed to the user, and push the recommended gift package to the user.

[0239] After calibrating the predicted purchase data of each candidate recommended gift package output by the gift package recommendation model, one or more candidate recommended gift packages can be selected from all candidate recommended gift packages as recommended gift packages to be pushed to users based on the calibrated second predicted purchase data.

[0240] Selecting recommended gift packs from all candidate gift packs requires using certain reference standards. These standards could be the second predicted purchase data for each candidate gift pack, or the expected value data for each candidate gift pack. The expected value data serves as a reference value to measure the potential revenue of each candidate gift pack, and it is more effective in increasing the revenue of the gift pack recommendation campaign than simply using predicted purchase data as the reference standard. In this embodiment, the expected value data of the candidate recommended gift packs is calculated as follows:

[0241] Expected value data = Second predicted purchase data × Gift package price

[0242] In the gaming industry, recommending gift packs to users requires considering not only the likelihood of a user purchasing the pack, but also the revenue that such a purchase would generate for the promotional campaign. Therefore, expected value data is a superior benchmark.

[0243] In one optional implementation provided in this embodiment, the method for obtaining the recommended gift pack pushed to the user may include the following steps S631 to S632:

[0244] Step S631: Perform order-preserving processing on the second predicted purchase data of each candidate recommended gift package to obtain the third predicted purchase data of each candidate recommended gift package.

[0245] In one specific implementation, ctr1(id,pack) represents the second predicted purchase data corresponding to each candidate recommended gift pack, and ctr'(id,pack) represents the third predicted purchase data corresponding to each candidate recommended gift pack. This step is to perform order-preserving processing on the second predicted purchase data ctr1(id,pack) of all candidate recommended gift packs corresponding to the user to obtain the third predicted purchase data ctr'(id,pack) of all candidate recommended gift packs corresponding to the user.

[0246] Step S632: Sort each candidate recommended gift package according to the product of the third predicted purchase data and the price data of each candidate recommended gift package, and select the candidate recommended gift package with the largest product of the third predicted purchase data and the price data as the recommended gift package to be pushed to the user.

[0247] As mentioned earlier, the product of the third predicted purchase data and the price data for each candidate recommended gift package is the expected value data corresponding to each candidate recommended gift package. By sorting the expected value data of all candidate recommended gift packages for a user from highest to lowest, any number of candidate recommended gift packages can be selected as the recommended gift packages to be pushed to the user based on the sorting order. In one specific implementation, the candidate recommended gift package with the highest expected value data can be selected as the recommended gift package to be pushed to the user.

[0248] After selecting the recommended gift packs to push to users, the relevant information of the recommended gift packs can be sent to the user's client through information interaction, and the user's client can display the recommended gift pack to the user through the display screen.

[0249] The second embodiment described above provides an optional gift package recommendation method. It should be noted that the examples in the second embodiment are only for explaining the method described in this application and are not intended to limit actual use. The gift package recommendation method provided in this application includes, but is not limited to, the method described in the second embodiment.

[0250] The third embodiment of this application provides a gift package recommendation system. The gift package recommendation system provided in this embodiment is for... Figure 1 The gift package recommendation system shown is more detailed. Figure 7 This is a schematic diagram of the gift package recommendation system provided in this embodiment.

[0251] like Figure 7 As shown, the gift package recommendation system provided in this embodiment includes: data node 710, computing node 720, and service node 730.

[0252] The data node 710 includes: a first storage module 711, a second storage module 712, a third storage module 713, and a fourth storage module 714.

[0253] The first storage module 711 is used to store the gift pack calibration parameters obtained through the computing node 720.

[0254] The second storage module 712 is used to store the product calibration parameters obtained through the computing node 720.

[0255] The third storage module 713 is used to store first target data and second target data. The first target data is target data generated within a first preset time period, and the second target data is target data generated within a second preset time period. The first preset time period is the period between the i-th calculation time and the (i-1)-th calculation time, and the second preset time period is the period between the (i-1)-th calculation time and the first preset time point. The target data includes at least user characteristic data corresponding to the user, gift package characteristic data corresponding to the gift package for the user, and the user's actual purchase data of the gift package. The i-th calculation time is the current calculation time, and i is a positive integer greater than or equal to 1.

[0256] In one alternative implementation, the first target data and the second target data are derived from game logs output by the game server.

[0257] The fourth storage module 714 is used to store third target data, which is target data generated within a third preset time period, and the third preset time period is the time period between the first preset time point and the second preset time point.

[0258] In one alternative implementation, the third target data originates from the game logs output by the game server.

[0259] The computing node 720 includes: an acquisition module 721, a first processing module 722, a determination module 723, a second processing module 724, and a computing module 725.

[0260] The acquisition module 721 is used to acquire the original dataset at the current calculation time. The original dataset includes multiple original data. Each original data record at least one user characteristic data corresponding to a user, a gift package characteristic data corresponding to a gift package for the user, and the user's behavioral characteristic data for the gift package. The behavioral characteristic data includes actual purchase data and predicted purchase data.

[0261] In one optional implementation, the original dataset is calculated by data node 710 based on the first target data and the second target data in the third storage module 713, and the third target data in the fourth storage module 714. Data node 710 outputs the calculated original dataset to computing node 720. Acquisition module 721 in computing node 720 receives the original dataset.

[0262] The first processing module 722 is used to perform a first classification process on the multiple original data based on the user feature data to form multiple first subset datasets.

[0263] The determining module 723 is used to determine the first target gift package based on the number of records for each gift package in the first subset of data.

[0264] The second processing module 724 is used to perform a second classification process on each piece of original data in the first subset of the dataset that records the first target gift package, based on the predicted purchase data recorded in each piece of original data that records the first target gift package, to form multiple second subsets of the dataset.

[0265] The calculation module 725 is used to calculate the gift pack calibration parameters for the first target gift pack corresponding to each of the second subsets at the current calculation time, based on the actual purchase data and the predicted purchase data recorded in each of the second subsets.

[0266] The service node 730 includes: a gift pack recommendation module 731, a gift pack calibration module 732, and a business planning module 733.

[0267] The gift package recommendation module 731 is used to respond to a user's gift package recommendation request, obtain the user's user feature data, and input the user feature data into a preset gift package recommendation model to obtain the user's predicted purchase data for each candidate recommended gift package.

[0268] In one alternative implementation, the game server outputs a gift pack candidate library that includes all candidate recommended gift packs. The gift pack recommendation module 731 retrieves each candidate recommended gift pack from the gift pack candidate library and inputs it into the gift pack recommendation model in the gift pack recommendation module 731.

[0269] In one alternative implementation, the gift package recommendation module 731, upon receiving a gift package recommendation request sent by the user through the user terminal, performs the operation of retrieving candidate recommended gift packages from the gift package candidate library.

[0270] The gift pack calibration module 732 is used to call the gift pack calibration parameters corresponding to each of the candidate recommended gift packs to perform numerical calibration on the predicted purchase data of each candidate recommended gift pack, so as to obtain the second predicted purchase data for each candidate recommended gift pack. The gift pack calibration parameters are generated by the calibration parameter generation method described in the first embodiment of this application.

[0271] In one optional implementation, the gift package calibration module 732 retrieves gift package calibration parameters from the first storage module 711 in the data node 710 and retrieves product calibration parameters from the second storage module 712 to perform numerical calibration on the predicted purchase data of each candidate recommended gift package.

[0272] The business planning module 733 is used to obtain a recommended gift package to be pushed to the user based on the second predicted purchase data of each candidate recommended gift package, and push the recommended gift package to the user.

[0273] In one alternative implementation, the business planning module 733 returns the recommended gift package to the user terminal, and the user terminal displays the recommended gift package to the user through a display screen.

[0274] In one alternative implementation, the user terminal sends the result of whether the user has purchased the recommended gift pack to the game server. The game server records this result as the user's actual purchase data for the recommended gift pack in the game log and outputs it to the data node 710 at the next calculation time.

[0275] The fourth embodiment of this application provides a calibration parameter generation device for gift package recommendations. Figure 8 This is a schematic diagram of the calibration parameter generation device provided in this embodiment.

[0276] like Figure 8 As shown, the calibration parameter generation device for gift package recommendation provided in this embodiment includes: a raw dataset acquisition unit 810, a first classification processing unit 820, a target gift package determination unit 830, a second classification processing unit 840, and a calibration parameter calculation unit 850.

[0277] The original dataset acquisition unit 810 is used to acquire the original dataset at the current calculation time. The original dataset includes multiple original data, and each original data records at least one user characteristic data corresponding to a user, a gift package characteristic data corresponding to a gift package for the user, and the user's behavioral characteristic data for the gift package. The behavioral characteristic data includes actual purchase data and predicted purchase data.

[0278] Optionally, the current calculation time is the i-th calculation time, where i is a positive integer greater than or equal to 1; before the step of obtaining the original dataset at the current calculation time, the method further includes:

[0279] Acquire target data, which includes at least user feature data corresponding to multiple users, gift package feature data corresponding to multiple gift packages for each user, and actual purchase data of each user for each gift package;

[0280] The target data is divided into first target data, second target data, and third target data according to the data generation time. The first target data is the target data generated within a first preset time period, the second target data is the target data generated within a second preset time period, and the third target data is the target data generated within a third preset time period. The first preset time period is the period between the i-th calculation time and the (i-1)-th calculation time, the second preset time period is the period between the (i-1)-th calculation time and the first preset time point, and the third preset time period is the period between the first preset time point and the second preset time point.

[0281] The first target data and the second target data are stored in the third storage module, and the third target data is stored in the fourth storage module.

[0282] Optionally, after the steps of storing the first target data and the second target data in the third storage module and storing the third target data in the fourth storage module, the method is further configured to:

[0283] Based on the update status of the preset gift package recommendation model within the first preset time period, the original dataset for the i-th calculation time is constructed, specifically as follows:

[0284] If the gift package recommendation model is not updated within the first preset time period, the original dataset is constructed using the first target data;

[0285] If the gift package recommendation model is updated within the first preset time period, the original dataset is constructed using the first target data, the second target data, and the third target data.

[0286] Optionally, if the gift package recommendation model is not updated within the first preset time period, the original dataset is constructed using the first target data, including:

[0287] The first target data is retrieved from the third storage module, and the user feature data and the gift package feature data in the first target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data.

[0288] The predicted purchase data is merged with the first target data to form the first original dataset;

[0289] Obtain the original dataset at the (i-1)th calculation time.

[0290] The first original dataset is merged with the original dataset at the (i-1)th calculation time to form the original dataset at the ith calculation time.

[0291] Optionally, if the gift package recommendation model is updated within the first preset time period, the original dataset is constructed using the first target data, the second target data, and the third target data, including:

[0292] The first target data is retrieved from the third storage module. The user feature data and the gift package feature data in the first target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. The predicted purchase data is then merged with the first target data to form the first original dataset.

[0293] The second target data is retrieved from the third storage module. The user feature data and the gift package feature data in the second target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. The predicted purchase data is then merged with the second target data to form the second original dataset.

[0294] The third target data is retrieved from the fourth storage module. The user feature data and the gift package feature data in the third target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. The predicted purchase data is then merged with the third target data to form the third original dataset.

[0295] The first original dataset, the second original dataset, and the third original dataset are merged to form the original dataset at the i-th calculation time.

[0296] The first classification processing unit 820 is used to perform a first classification process on the multiple original data based on the user feature data to form multiple first subset datasets.

[0297] Optionally, the user characteristic data includes at least user coding data, user level data, and user consumption data;

[0298] The first classification process is performed on the multiple original data based on the user feature data to form multiple first subset datasets, including:

[0299] Based on the user level data and the user consumption data, the users recorded in the original dataset are divided into multiple user categories;

[0300] Based on the user code data corresponding to the users included in each user category, each piece of original data included in the original dataset is classified accordingly to form multiple first sub-datasets.

[0301] Optionally, based on the user level data and the user consumption data, the users recorded in the original dataset are divided into multiple user categories, including:

[0302] Based on the user level data, the users recorded in the original dataset are sorted from smallest to largest according to the level data corresponding to the user, and the users are divided into a first preset number of first user categories in equal proportion;

[0303] Based on the user consumption data, the users included in each first user category are sorted from smallest to largest according to the consumption data corresponding to the user, and the users included in each first user category are divided into a second preset number of second user categories in equal proportion;

[0304] Wherein, the product of the first preset quantity and the second preset quantity is the number of user categories.

[0305] The target gift package determination unit 830 is used to determine the first target gift package based on the number of records for each gift package in the first subset of data.

[0306] Optionally, the first target gift pack is a gift pack with a record count not less than a first preset threshold; determining the first target gift pack based on the record count for each gift pack in the first subset includes:

[0307] The number of records for each gift package included in the first subset of data is calculated, and each gift package with a record count not less than the first preset threshold is determined as the first target gift package.

[0308] The second classification processing unit 840 is used to perform a second classification process on each piece of original data in the first subset of the dataset that records the predicted purchase data of the first target gift package, based on the predicted purchase data recorded in each piece of original data that records the first target gift package, to form multiple second subsets of the dataset.

[0309] Optionally, before the step of performing a second classification process on each record of the first target gift package in the first subset of the dataset based on the predicted purchase data recorded in each record of the first target gift package in the first subset of the dataset to form multiple second subsets, the method is further used to:

[0310] Based on the number of times the first target gift pack is recorded in the first subset, a third preset quantity for the second subset is determined, along with the upper limit and lower limit of the calibration parameters for the gift pack.

[0311] Optionally, based on the predicted purchase data recorded in the original data of each record containing the first target gift package in the first subset of the dataset, a second classification process is performed on each record of the original data containing the first target gift package in the first subset of the dataset to form multiple second subsets, including:

[0312] Based on the predicted purchase data, each original data record containing the first target gift package in the first subset of data is sorted from smallest to largest according to the predicted purchase data;

[0313] According to the third preset quantity, each record of the original data containing the first target gift pack in the first subset is divided proportionally to form the second subset of the third preset quantity.

[0314] The calibration parameter calculation unit 850 is used to calculate the gift package calibration parameters for the first target gift package corresponding to each of the second subsets of data at the current calculation time, based on the actual purchase data and the predicted purchase data recorded in each of the second subsets of data.

[0315] Optionally, the step of calculating the gift package calibration parameters for the first target gift package corresponding to each of the second subsets of data at the current calculation time, based on the actual purchase data and the predicted purchase data recorded in each of the second subsets of data, includes:

[0316] The predicted purchase data recorded in each of the second subsets are summed to obtain the total predicted purchase data corresponding to each of the second subsets, and a predicted purchase sequence is formed.

[0317] The actual purchase data recorded in each of the second subsets are summed to obtain the total actual purchase data corresponding to each of the second subsets, and an actual purchase sequence is formed.

[0318] The actual purchase sequence is processed to preserve its order, forming a second actual purchase sequence;

[0319] Based on the second actual purchase sequence and the predicted purchase sequence, determine the gift pack calibration parameters corresponding to each of the second subsets.

[0320] Optionally, determining the gift package calibration parameters corresponding to each of the second subsets of data based on the second actual purchase sequence and the predicted purchase sequence includes:

[0321] Calculate the quotient between the second actual purchase sequence and the predicted purchase sequence, and use the quotient between the second actual purchase sequence and the predicted purchase sequence as the initial gift pack calibration parameter for each second subset of data.

[0322] Determine whether the initial gift pack calibration parameter corresponding to each second subset of data is within the range of the upper limit and the lower limit of the calibration parameter;

[0323] Based on the judgment result, the calibration parameters of the gift package corresponding to each of the second subset datasets are determined as follows:

[0324] If the initial gift pack calibration parameter corresponding to the second subset of data is within the range of the upper limit and the lower limit of the calibration parameter, then the initial gift pack calibration parameter is used as the gift pack calibration parameter corresponding to the second subset of data.

[0325] If the initial gift pack calibration parameter corresponding to the second subset exceeds the upper limit or the lower limit of the calibration parameter, then the upper limit or the lower limit of the calibration parameter shall be used as the gift pack calibration parameter corresponding to the second subset.

[0326] Optionally, the device further includes: a first storage unit;

[0327] The first storage unit is used to store the gift package calibration parameters in the first storage module, replacing the gift package calibration parameters calculated at the previous calculation time.

[0328] Optionally, the device further includes a third classification processing unit;

[0329] The third classification processing unit is used for:

[0330] The gift packages recorded in the first subset of data, excluding the first target gift package, are identified as the second target gift packages;

[0331] Based on the gift package feature data corresponding to the second target gift package, each original data record containing the second target gift package in the first subset is split into multiple sub-original data. Each sub-original data record at least the user feature data, the product feature data corresponding to one of the products in the second target gift package, and the behavioral feature data.

[0332] The target product is determined based on the number of records for each product in the first subset of data.

[0333] Based on the predicted purchase data recorded in each of the sub-original data records containing the target product in the first subset, the sub-original data records containing the target product in the first subset are subjected to third classification processing to form multiple third subsets.

[0334] Based on the actual purchase data, the predicted purchase data, and the product feature data recorded in each of the third subsets, calculate the product calibration parameters for the target product corresponding to each of the third subsets at the current calculation time.

[0335] Optionally, the second target gift pack is a gift pack with a record count less than a first preset threshold, and the target product is a product with a record count not less than a second preset threshold;

[0336] The step of determining the target product based on the number of records for each product in the first subset of data includes:

[0337] The number of records for each product included in the first subset of data is calculated, and each product whose number of records is not less than the second preset threshold is determined as the target product.

[0338] Optionally, the device further includes a second storage unit;

[0339] The second storage unit is used to store the product calibration parameters in the second storage module, replacing the product calibration parameters calculated at the previous calculation time.

[0340] The fifth embodiment of this application provides a gift package recommendation device. Figure 9 This is a schematic diagram of the gift package recommendation device provided in this embodiment.

[0341] like Figure 9As shown, the gift package recommendation device provided in this embodiment includes: a prediction purchase data generation unit 910, a prediction purchase data calibration unit 920, and a recommended gift package acquisition unit 930.

[0342] The predictive purchase data generation unit 910 is used to respond to receiving a user's gift package recommendation request, obtain the user's user feature data, and input the user feature data into a preset gift package recommendation model to obtain the user's predictive purchase data for each candidate recommended gift package.

[0343] The predicted purchase data calibration unit 920 is used to call the gift pack calibration parameters corresponding to each of the candidate recommended gift packs to perform numerical calibration on the predicted purchase data of each candidate recommended gift pack, so as to obtain the second predicted purchase data for each candidate recommended gift pack. The gift pack calibration parameters are generated by the calibration parameter generation method described in the first embodiment of this application.

[0344] Optionally, the step of calling the calibration parameters corresponding to each candidate recommended gift pack to numerically calibrate the predicted purchase data of each candidate recommended gift pack to obtain second predicted purchase data for each candidate recommended gift pack includes:

[0345] Based on the user feature data and the gift package feature data of each candidate recommended gift package, query the first storage module to see if the gift package calibration parameters corresponding to each candidate recommended gift package are stored, wherein the first storage module is a storage module that pre-stores the gift package calibration parameters;

[0346] For the candidate recommended gift package for which the gift package calibration parameters are found in the first storage module, the gift package calibration parameters corresponding to the candidate recommended gift package are retrieved from the first storage module, and the predicted purchase data of the candidate recommended gift package is numerically calibrated using the gift package calibration parameters to obtain the second predicted purchase data for the candidate recommended gift package.

[0347] For the candidate recommended gift pack for which the gift pack calibration parameters are not found in the first storage module, the candidate recommended gift pack is split into multiple products according to the gift pack feature data of the candidate recommended gift pack. Then, according to the user feature data and the product feature data of each product, the second storage module is used to query whether the product calibration parameters corresponding to each product are stored. The second storage module is a storage module that pre-stores the product calibration parameters.

[0348] For a product whose product calibration parameters are found in the second storage module, the product calibration parameters corresponding to the product are retrieved from the second storage module, and the product calibration parameters are used to numerically calibrate the predicted purchase data of the candidate recommended gift pack to obtain the second predicted purchase data for the candidate recommended gift pack.

[0349] Optionally, for a product whose product calibration parameter is not found in the second storage module, 1 is used as the product calibration parameter corresponding to the product.

[0350] The recommended gift pack acquisition unit 930 is used to obtain a recommended gift pack to be pushed to the user based on the second predicted purchase data of each candidate recommended gift pack, and push the recommended gift pack to the user.

[0351] Optionally, obtaining the recommended gift package to be pushed to the user based on the second predicted purchase data of each of the candidate recommended gift packages includes:

[0352] The second predicted purchase data for each candidate recommended gift package is processed in order-preserving manner to obtain the third predicted purchase data for each candidate recommended gift package;

[0353] Each candidate recommended gift package is sorted according to the product of the third predicted purchase data and the price data, and the candidate recommended gift package with the largest product of the third predicted purchase data and the price data is selected as the recommended gift package to be pushed to the user.

[0354] The sixth embodiment of this application provides an electronic device. Figure 10 This is a schematic diagram of the structure of the electronic device provided in this embodiment.

[0355] like Figure 10 As shown, the electronic device provided in this embodiment includes a memory 1010 and a processor 1020.

[0356] The memory 1010 is used to store computer instructions for executing a calibration parameter generation method for gift package recommendation, and / or a gift package recommendation method.

[0357] The processor 1020 is used to execute computer instructions stored in the memory 1010, and performs the following operations:

[0358] Obtain the raw dataset at the current calculation time. The raw dataset includes multiple raw data. Each raw data record records at least one user characteristic data corresponding to a user, a gift package characteristic data corresponding to a gift package for the user, and the user's behavioral characteristic data for the gift package. The behavioral characteristic data includes actual purchase data and predicted purchase data.

[0359] Based on the user feature data, the multiple original data are subjected to a first classification process to form multiple first subset datasets;

[0360] The first target gift package is determined based on the number of records for each gift package in the first subset of data.

[0361] Based on the predicted purchase data recorded in the original data of each record containing the first target gift pack in the first subset of the dataset, the original data of each record containing the first target gift pack in the first subset of the dataset is subjected to a second classification process to form multiple second subsets of the dataset.

[0362] Based on the actual purchase data and the predicted purchase data recorded in each of the second subsets, calculate the gift pack calibration parameters for the first target gift pack corresponding to each of the second subsets at the current calculation time.

[0363] Optionally, the following operations may also be performed:

[0364] The gift package calibration parameters are stored in the first storage module, replacing the gift package calibration parameters calculated at the previous calculation time.

[0365] Optionally, the following operations may also be performed:

[0366] The gift packages recorded in the first subset of data, excluding the first target gift package, are identified as the second target gift packages;

[0367] Based on the gift package feature data corresponding to the second target gift package, each original data record containing the second target gift package in the first subset is split into multiple sub-original data. Each sub-original data record at least the user feature data, the product feature data corresponding to one of the products in the second target gift package, and the behavioral feature data.

[0368] The target product is determined based on the number of records for each product in the first subset of data.

[0369] Based on the predicted purchase data recorded in each of the sub-original data records containing the target product in the first subset, the sub-original data records containing the target product in the first subset are subjected to third classification processing to form multiple third subsets.

[0370] Based on the actual purchase data, the predicted purchase data, and the product feature data recorded in each of the third subsets, calculate the product calibration parameters for the target product corresponding to each of the third subsets at the current calculation time.

[0371] Optionally, the following operations may also be performed:

[0372] The product calibration parameters are stored in the second storage module, replacing the product calibration parameters calculated at the previous calculation time.

[0373] Optionally, the current calculation time is the i-th calculation time, where i is a positive integer greater than or equal to 1; before the step of obtaining the original dataset at the current calculation time, the following operation is also performed:

[0374] Acquire target data, which includes at least user feature data corresponding to multiple users, gift package feature data corresponding to multiple gift packages for each user, and actual purchase data of each user for each gift package;

[0375] The target data is divided into first target data, second target data, and third target data according to the data generation time. The first target data is the target data generated within a first preset time period, the second target data is the target data generated within a second preset time period, and the third target data is the target data generated within a third preset time period. The first preset time period is the period between the i-th calculation time and the (i-1)-th calculation time, the second preset time period is the period between the (i-1)-th calculation time and the first preset time point, and the third preset time period is the period between the first preset time point and the second preset time point.

[0376] The first target data and the second target data are stored in the third storage module, and the third target data is stored in the fourth storage module.

[0377] Optionally, after the steps of storing the first target data and the second target data in the third storage module and storing the third target data in the fourth storage module, the method further includes:

[0378] Based on the update status of the preset gift package recommendation model within the first preset time period, the original dataset for the i-th calculation time is constructed, specifically as follows:

[0379] If the gift package recommendation model is not updated within the first preset time period, the original dataset is constructed using the first target data;

[0380] If the gift package recommendation model is updated within the first preset time period, the original dataset is constructed using the first target data, the second target data, and the third target data.

[0381] Optionally, if the gift package recommendation model is not updated within the first preset time period, the original dataset is constructed using the first target data, including:

[0382] The first target data is retrieved from the third storage module, and the user feature data and the gift package feature data in the first target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data.

[0383] The predicted purchase data is merged with the first target data to form the first original dataset;

[0384] Obtain the original dataset at the (i-1)th calculation time.

[0385] The first original dataset is merged with the original dataset at the (i-1)th calculation time to form the original dataset at the ith calculation time.

[0386] Optionally, if the gift package recommendation model is updated within the first preset time period, the original dataset is constructed using the first target data, the second target data, and the third target data, including:

[0387] The first target data is retrieved from the third storage module. The user feature data and the gift package feature data in the first target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. The predicted purchase data is then merged with the first target data to form the first original dataset.

[0388] The second target data is retrieved from the third storage module. The user feature data and the gift package feature data in the second target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. The predicted purchase data is then merged with the second target data to form the second original dataset.

[0389] The third target data is retrieved from the fourth storage module. The user feature data and the gift package feature data in the third target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. The predicted purchase data is then merged with the third target data to form the third original dataset.

[0390] The first original dataset, the second original dataset, and the third original dataset are merged to form the original dataset at the i-th calculation time.

[0391] Optionally, the user characteristic data includes at least user coding data, user level data, and user consumption data;

[0392] The first classification process is performed on the multiple original data based on the user feature data to form multiple first subset datasets, including:

[0393] Based on the user level data and the user consumption data, the users recorded in the original dataset are divided into multiple user categories;

[0394] Based on the user code data corresponding to the users included in each user category, each piece of original data included in the original dataset is classified accordingly to form multiple first sub-datasets.

[0395] Optionally, based on the user level data and the user consumption data, the users recorded in the original dataset are divided into multiple user categories, including:

[0396] Based on the user level data, the users recorded in the original dataset are sorted from smallest to largest according to the level data corresponding to the user, and the users are divided into a first preset number of first user categories in equal proportion;

[0397] Based on the user consumption data, the users included in each first user category are sorted from smallest to largest according to the consumption data corresponding to the user, and the users included in each first user category are divided into a second preset number of second user categories in equal proportion;

[0398] Wherein, the product of the first preset quantity and the second preset quantity is the number of user categories.

[0399] Optionally, the first target gift pack is a gift pack with a record count not less than a first preset threshold; determining the first target gift pack based on the record count for each gift pack in the first subset includes:

[0400] The number of records for each gift package included in the first subset of data is calculated, and each gift package with a record count not less than the first preset threshold is determined as the first target gift package.

[0401] Optionally, the second target gift pack is a gift pack with a record count less than a first preset threshold, and the target product is a product with a record count not less than a second preset threshold;

[0402] The step of determining the target product based on the number of records for each product in the first subset of data includes:

[0403] The number of records for each product included in the first subset of data is calculated, and each product whose number of records is not less than the second preset threshold is determined as the target product.

[0404] Optionally, before the step of performing a second classification process on each record of the first target gift package in the first subset of the dataset based on the predicted purchase data recorded in each record of the first target gift package in the first subset of the dataset to form multiple second subsets, the method further includes:

[0405] Based on the number of times the first target gift pack is recorded in the first subset, a third preset quantity for the second subset is determined, along with the upper limit and lower limit of the calibration parameters for the gift pack.

[0406] Optionally, based on the predicted purchase data recorded in the original data of each record containing the first target gift package in the first subset of the dataset, a second classification process is performed on each record of the original data containing the first target gift package in the first subset of the dataset to form multiple second subsets, including:

[0407] Based on the predicted purchase data, each original data record containing the first target gift package in the first subset of data is sorted from smallest to largest according to the predicted purchase data;

[0408] According to the third preset quantity, each record of the original data containing the first target gift pack in the first subset is divided proportionally to form the second subset of the third preset quantity.

[0409] Optionally, the step of calculating the gift package calibration parameters for the first target gift package corresponding to each of the second subsets of data at the current calculation time, based on the actual purchase data and the predicted purchase data recorded in each of the second subsets of data, includes:

[0410] The predicted purchase data recorded in each of the second subsets are summed to obtain the total predicted purchase data corresponding to each of the second subsets, and a predicted purchase sequence is formed.

[0411] The actual purchase data recorded in each of the second subsets are summed to obtain the total actual purchase data corresponding to each of the second subsets, and an actual purchase sequence is formed.

[0412] The actual purchase sequence is processed to preserve its order, forming a second actual purchase sequence;

[0413] Based on the second actual purchase sequence and the predicted purchase sequence, determine the gift pack calibration parameters corresponding to each of the second subsets.

[0414] Optionally, determining the gift package calibration parameters corresponding to each of the second subsets of data based on the second actual purchase sequence and the predicted purchase sequence includes:

[0415] Calculate the quotient between the second actual purchase sequence and the predicted purchase sequence, and use the quotient between the second actual purchase sequence and the predicted purchase sequence as the initial gift pack calibration parameter for each second subset of data.

[0416] Determine whether the initial gift pack calibration parameter corresponding to each second subset of data is within the range of the upper limit and the lower limit of the calibration parameter;

[0417] Based on the judgment result, the calibration parameters of the gift package corresponding to each of the second subset datasets are determined as follows:

[0418] If the initial gift pack calibration parameter corresponding to the second subset of data is within the range of the upper limit and the lower limit of the calibration parameter, then the initial gift pack calibration parameter is used as the gift pack calibration parameter corresponding to the second subset of data.

[0419] If the initial gift pack calibration parameter corresponding to the second subset exceeds the upper limit or the lower limit of the calibration parameter, then the upper limit or the lower limit of the calibration parameter shall be used as the gift pack calibration parameter corresponding to the second subset.

[0420] Alternatively, perform the following operation:

[0421] In response to receiving a user's gift package recommendation request, the system obtains the user's user feature data and inputs the user feature data into a preset gift package recommendation model to obtain the user's predicted purchase data for each candidate recommended gift package.

[0422] The predicted purchase data of each candidate recommended gift package is numerically calibrated by calling the gift package calibration parameters corresponding to each candidate recommended gift package to obtain the second predicted purchase data for each candidate recommended gift package. The gift package calibration parameters are generated by the calibration parameter generation method described in the first embodiment of this application.

[0423] Based on the second predicted purchase data for each of the candidate recommended gift packs, a recommended gift pack is obtained to be pushed to the user, and the recommended gift pack is pushed to the user.

[0424] Optionally, the step of calling the calibration parameters corresponding to each candidate recommended gift pack to numerically calibrate the predicted purchase data of each candidate recommended gift pack to obtain second predicted purchase data for each candidate recommended gift pack includes:

[0425] Based on the user feature data and the gift package feature data of each candidate recommended gift package, query the first storage module to see if the gift package calibration parameters corresponding to each candidate recommended gift package are stored, wherein the first storage module is a storage module that pre-stores the gift package calibration parameters;

[0426] For the candidate recommended gift package for which the gift package calibration parameters are found in the first storage module, the gift package calibration parameters corresponding to the candidate recommended gift package are retrieved from the first storage module, and the predicted purchase data of the candidate recommended gift package is numerically calibrated using the gift package calibration parameters to obtain the second predicted purchase data for the candidate recommended gift package.

[0427] For the candidate recommended gift pack for which the gift pack calibration parameters are not found in the first storage module, the candidate recommended gift pack is split into multiple products according to the gift pack feature data of the candidate recommended gift pack. Then, according to the user feature data and the product feature data of each product, the second storage module is used to query whether the product calibration parameters corresponding to each product are stored. The second storage module is a storage module that pre-stores the product calibration parameters.

[0428] For a product whose product calibration parameters are found in the second storage module, the product calibration parameters corresponding to the product are retrieved from the second storage module, and the product calibration parameters are used to numerically calibrate the predicted purchase data of the candidate recommended gift pack to obtain the second predicted purchase data for the candidate recommended gift pack.

[0429] Optionally, the following operations may also be performed:

[0430] For a product for which the product calibration parameter is not found in the second storage module, then 1 is used as the product calibration parameter corresponding to the product.

[0431] Optionally, obtaining the recommended gift package to be pushed to the user based on the second predicted purchase data of each of the candidate recommended gift packages includes:

[0432] The second predicted purchase data for each candidate recommended gift package is processed in order-preserving manner to obtain the third predicted purchase data for each candidate recommended gift package;

[0433] Each candidate recommended gift package is sorted according to the product of the third predicted purchase data and the price data, and the candidate recommended gift package with the largest product of the third predicted purchase data and the price data is selected as the recommended gift package to be pushed to the user.

[0434] The seventh embodiment of this application provides a computer-readable storage medium, which includes computer instructions that, when executed by a processor, are used to implement the methods described in the embodiments of this application.

[0435] It should be noted that the relational terms such as "first" and "second" used in this document are only used to distinguish one entity or operation from another, and do not require or imply any actual relationship or order between these entities or operations. Furthermore, "including," "having," "containing," and other similar terms are synonymous, and the conclusion of any one or more items following any of the foregoing words is open-ended; none of the foregoing terms indicates that the one or more items have been exhaustively listed, or are limited to only one or more of the listed items.

[0436] When used herein, unless otherwise expressly stated, the term "or" includes all possible combinations except those that are impractical. For example, if expressed as a database may include A or B, then unless otherwise specified or impractical, it may include database A, or B, or A and B. As a second example, if expressed as a database may include A, B, or C, then unless otherwise specified or impractical, the database may include database A, or B, or C, or A and B, or A and C, or B and C, or A and B and C.

[0437] It is worth noting that the above embodiments can be implemented by hardware or software (program code), or a combination of hardware and software. If implemented by software, it can be stored in the above-described computer-readable medium. When executed by a processor, the software can perform the methods disclosed above. The computing units and other functional units described in this disclosure can be implemented by hardware or software, or a combination of hardware and software. Those skilled in the art will also understand that the above-described multiple modules / units can be combined into one module / unit, and each of the above-described modules / units can be further divided into multiple sub-modules / sub-units.

[0438] In the foregoing detailed description, embodiments have been described with reference to numerous specific details, which may vary depending on the implementation. Certain adaptations and modifications can be made to the embodiments. Other implementations will be readily apparent to those skilled in the art from the specific embodiments disclosed herein. This specification and examples are for illustrative purposes only, and the true scope and essence of this application are defined by the claims. The sequence of steps shown in the figures is also for illustrative purposes only and is not intended to limit to any particular step or order. Therefore, those skilled in the art will recognize that these steps can be performed in different orders when implementing the same method.

[0439] Exemplary embodiments are disclosed in the figures and detailed description of this application. However, many variations and modifications can be made to these embodiments. Accordingly, although specific terms are used, they are only general and descriptive and not for limiting purposes.

Claims

1. A method for generating calibration parameters for gift pack recommendations, characterized in that, The method includes: Obtain the raw dataset at the current calculation time. The raw dataset includes multiple raw data. Each raw data record records at least one user characteristic data corresponding to a user, a gift package characteristic data corresponding to a gift package for the user, and the user's behavioral characteristic data for the gift package. The behavioral characteristic data includes actual purchase data and predicted purchase data. Based on the user feature data, the multiple original data are subjected to a first classification process to form multiple first subset datasets, so as to reduce the differences between the user feature data corresponding to each user in each first subset dataset; The first target gift package is determined based on the number of records for each gift package in the first subset of data. Based on the predicted purchase data recorded in the original data of each record containing the first target gift package in the first subset of the dataset, the original data of each record containing the first target gift package in the first subset of the dataset is subjected to a second classification process to form multiple second subsets of the dataset, so as to reduce the difference between the predicted purchase data recorded in the original data of each record containing the first target gift package in each second subset of the dataset. Based on the actual purchase data and the predicted purchase data recorded in each of the second subsets, calculate the gift package calibration parameters for the first target gift package corresponding to each of the second subsets at the current calculation time. The gift package calibration parameters are used to numerically calibrate the predicted purchase data.

2. The method according to claim 1, characterized in that, The method further includes: The gift package calibration parameters are stored in the first storage module, replacing the gift package calibration parameters calculated at the previous calculation time.

3. The method according to claim 1, characterized in that, The method further includes: The gift packages recorded in the first subset of data, excluding the first target gift package, are identified as the second target gift packages; Based on the gift package feature data corresponding to the second target gift package, each original data record containing the second target gift package in the first subset is split into multiple sub-original data. Each sub-original data record at least the user feature data, the product feature data corresponding to one of the products in the second target gift package, and the behavioral feature data. The target product is determined based on the number of records for each product in the first subset of data. Based on the predicted purchase data recorded in each of the sub-original data records containing the target product in the first subset, the sub-original data records containing the target product in the first subset are subjected to third classification processing to form multiple third subsets. Based on the actual purchase data, the predicted purchase data, and the product feature data recorded in each of the third subsets, calculate the product calibration parameters for the target product corresponding to each of the third subsets at the current calculation time.

4. The method according to claim 3, characterized in that, The method further includes: The product calibration parameters are stored in the second storage module, replacing the product calibration parameters calculated at the previous calculation time.

5. The method according to claim 1, characterized in that, The current calculation time is the i-th calculation time, where i is a positive integer greater than or equal to 1; Prior to the step of obtaining the original dataset at the current computation time, the method further includes: Acquire target data, which includes at least user feature data corresponding to multiple users, gift package feature data corresponding to multiple gift packages for each user, and actual purchase data of each user for each gift package; The target data is divided into first target data, second target data, and third target data according to the data generation time. The first target data is the target data generated within a first preset time period, the second target data is the target data generated within a second preset time period, and the third target data is the target data generated within a third preset time period. The first preset time period is the period between the i-th calculation time and the (i-1)-th calculation time, the second preset time period is the period between the (i-1)-th calculation time and the first preset time point, and the third preset time period is the period between the first preset time point and the second preset time point. The first target data and the second target data are stored in the third storage module, and the third target data is stored in the fourth storage module.

6. The method according to claim 5, characterized in that, After the steps of storing the first target data and the second target data in the third storage module, and storing the third target data in the fourth storage module, the method further includes: Based on the update status of the preset gift package recommendation model within the first preset time period, the original dataset for the i-th calculation time is constructed, specifically as follows: If the gift package recommendation model is not updated within the first preset time period, the original dataset is constructed using the first target data; If the gift package recommendation model is updated within the first preset time period, the original dataset is constructed using the first target data, the second target data, and the third target data.

7. The method according to claim 6, characterized in that, If the gift package recommendation model is not updated within the first preset time period, the original dataset is constructed using the first target data, including: The first target data is retrieved from the third storage module, and the user feature data and the gift package feature data in the first target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. The predicted purchase data is merged with the first target data to form the first original dataset; Obtain the original dataset at the (i-1)th calculation time. The first original dataset is merged with the original dataset at the (i-1)th calculation time to form the original dataset at the ith calculation time.

8. The method according to claim 6, characterized in that, If the gift package recommendation model is updated within the first preset time period, the original dataset is constructed using the first target data, the second target data, and the third target data, including: The first target data is retrieved from the third storage module. The user feature data and the gift package feature data in the first target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. The predicted purchase data is then merged with the first target data to form the first original dataset. The second target data is retrieved from the third storage module. The user feature data and the gift package feature data in the second target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. The predicted purchase data is then merged with the second target data to form the second original dataset. The third target data is retrieved from the fourth storage module. The user feature data and the gift package feature data in the third target data are used as input data and input into the gift package recommendation model to obtain the predicted purchase data corresponding to the user feature data and the gift package feature data. The predicted purchase data is then merged with the third target data to form the third original dataset. The first original dataset, the second original dataset, and the third original dataset are merged to form the original dataset at the i-th calculation time.

9. The method according to claim 1, characterized in that, The user characteristic data includes at least user coding data, user level data, and user consumption data; The first classification process is performed on the multiple original data based on the user feature data to form multiple first subset datasets, including: Based on the user level data and the user consumption data, the users recorded in the original dataset are divided into multiple user categories; Based on the user code data corresponding to the users included in each user category, each piece of original data included in the original dataset is classified accordingly to form multiple first sub-datasets.

10. The method according to claim 9, characterized in that, The user categories recorded in the original dataset are divided into multiple user categories based on the user level data and the user consumption data, including: Based on the user level data, the users recorded in the original dataset are sorted from smallest to largest according to the level data corresponding to the user, and the users are divided into a first preset number of first user categories in equal proportion; Based on the user consumption data, the users included in each of the first user categories are sorted from smallest to largest according to the consumption data corresponding to the user, and the users included in each of the first user categories are divided into a second preset number of second user categories in equal proportion; Wherein, the product of the first preset quantity and the second preset quantity is the number of user categories.

11. The method according to claim 1, characterized in that, The first target gift pack is a gift pack whose number of records is not less than a first preset threshold; determining the first target gift pack based on the number of records for each gift pack in the first subset of data includes: The number of records for each gift package included in the first subset of data is calculated, and each gift package with a record count not less than the first preset threshold is determined as the first target gift package.

12. The method according to claim 3, characterized in that, The second target gift pack is a gift pack whose number of records is less than the first preset threshold, and the target product is a product whose number of records is not less than the second preset threshold; The step of determining the target product based on the number of records for each product in the first subset of data includes: The number of records for each product included in the first subset of data is calculated, and each product whose number of records is not less than the second preset threshold is determined as the target product.

13. The method according to claim 1, characterized in that, Before the step of performing a second classification process on each record of the first target gift package in the first subset of the original data, based on the predicted purchase data recorded in each record of the first target gift package in the first subset of the original data, to form multiple second subsets, the method further includes: Based on the number of times the first target gift pack is recorded in the first subset, a third preset quantity for the second subset is determined, along with the upper limit and lower limit of the calibration parameters for the gift pack.

14. The method according to claim 13, characterized in that, The method involves performing a second classification process on each record of the original data containing the first target gift package in the first subset of the dataset, based on the predicted purchase data recorded in each record of the original data containing the first target gift package, to form multiple second subsets, including: Based on the predicted purchase data, each original data record containing the first target gift package in the first subset of data is sorted from smallest to largest according to the predicted purchase data; According to the third preset quantity, each record of the original data containing the first target gift pack in the first subset is divided proportionally to form the second subset of the third preset quantity.

15. The method according to claim 14, characterized in that, The step of calculating the gift package calibration parameters for the first target gift package corresponding to each of the second subsets of data at the current calculation time, based on the actual purchase data and the predicted purchase data recorded in each of the second subsets of data, includes: The predicted purchase data recorded in each of the second subsets are summed to obtain the total predicted purchase data corresponding to each of the second subsets, and a predicted purchase sequence is formed. The actual purchase data recorded in each of the second subsets are summed to obtain the total actual purchase data corresponding to each of the second subsets, and an actual purchase sequence is formed. The actual purchase sequence is processed to preserve its order, forming a second actual purchase sequence; Based on the second actual purchase sequence and the predicted purchase sequence, determine the gift pack calibration parameters corresponding to each of the second subsets.

16. The method according to claim 15, characterized in that, The step of determining the gift package calibration parameters corresponding to each of the second subsets of data based on the second actual purchase sequence and the predicted purchase sequence includes: Calculate the quotient between the second actual purchase sequence and the predicted purchase sequence, and use the quotient between the second actual purchase sequence and the predicted purchase sequence as the initial gift pack calibration parameter for each second subset of data. Determine whether the initial gift pack calibration parameter corresponding to each second subset of data is within the range of the upper limit and the lower limit of the calibration parameter; Based on the judgment result, the calibration parameters of the gift package corresponding to each of the second subset datasets are determined as follows: If the initial gift pack calibration parameter corresponding to the second subset of data is within the range of the upper limit and the lower limit of the calibration parameter, then the initial gift pack calibration parameter is used as the gift pack calibration parameter corresponding to the second subset of data. If the initial gift pack calibration parameter corresponding to the second subset exceeds the upper limit or the lower limit of the calibration parameter, then the upper limit or the lower limit of the calibration parameter shall be used as the gift pack calibration parameter corresponding to the second subset.

17. A method for recommending gift packs, characterized in that, The method includes: In response to receiving a user's gift package recommendation request, the system obtains the user's user feature data and inputs the user feature data into a preset gift package recommendation model to obtain the user's predicted purchase data for each candidate recommended gift package. The predicted purchase data of each candidate recommended gift pack is numerically calibrated by calling the gift pack calibration parameters corresponding to each candidate recommended gift pack, thereby obtaining the second predicted purchase data for each candidate recommended gift pack. The gift pack calibration parameters are generated by the calibration parameter generation method according to any one of claims 1 to 16. Based on the second predicted purchase data for each of the candidate recommended gift packs, a recommended gift pack is obtained to be pushed to the user, and the recommended gift pack is pushed to the user.

18. The method according to claim 17, characterized in that, The step of calling the calibration parameters corresponding to each candidate recommended gift package to numerically calibrate the predicted purchase data of each candidate recommended gift package, and obtaining the second predicted purchase data for each candidate recommended gift package, includes: Based on the user feature data and the gift package feature data of each candidate recommended gift package, query the first storage module to see if the gift package calibration parameters corresponding to each candidate recommended gift package are stored, wherein the first storage module is a storage module that pre-stores the gift package calibration parameters; For the candidate recommended gift package for which the gift package calibration parameters are found in the first storage module, the gift package calibration parameters corresponding to the candidate recommended gift package are retrieved from the first storage module, and the predicted purchase data of the candidate recommended gift package is numerically calibrated using the gift package calibration parameters to obtain the second predicted purchase data for the candidate recommended gift package. For the candidate recommended gift pack for which the gift pack calibration parameters are not found in the first storage module, the candidate recommended gift pack is split into multiple products according to the gift pack feature data of the candidate recommended gift pack. Then, according to the user feature data and the product feature data of each product, the second storage module is used to query whether the product calibration parameters corresponding to each product are stored. The second storage module is a storage module that pre-stores the product calibration parameters. For a product whose product calibration parameters are found in the second storage module, the product calibration parameters corresponding to the product are retrieved from the second storage module, and the product calibration parameters are used to numerically calibrate the predicted purchase data of the candidate recommended gift package to obtain the second predicted purchase data for the candidate recommended gift package.

19. The method according to claim 18, characterized in that, The method further includes: For a product for which the product calibration parameter is not found in the second storage module, then 1 is used as the product calibration parameter corresponding to the product.

20. The method according to claim 17, characterized in that, The step of obtaining the recommended gift package to be pushed to the user based on the second predicted purchase data of each of the candidate recommended gift packages includes: The second predicted purchase data for each candidate recommended gift package is processed in order-preserving manner to obtain the third predicted purchase data for each candidate recommended gift package; Each candidate recommended gift package is sorted according to the product of the third predicted purchase data and the price data, and the candidate recommended gift package with the largest product of the third predicted purchase data and the price data is selected as the recommended gift package to be pushed to the user.

21. A gift package recommendation system, characterized in that, The system includes: data nodes, computing nodes, and service nodes; The data node includes: a first storage module, a second storage module, a third storage module, and a fourth storage module; The first storage module is used to store the gift pack calibration parameters obtained through the computing node; The second storage module is used to store the product calibration parameters obtained through the computing node; The third storage module is used to store first target data and second target data. The first target data is target data generated within a first preset time period, and the second target data is target data generated within a second preset time period. The first preset time period is the period between the i-th calculation time and the (i-1)-th calculation time, and the second preset time period is the period between the (i-1)-th calculation time and the first preset time point. The target data includes at least user characteristic data corresponding to the user, gift package characteristic data corresponding to the gift package for the user, and the user's actual purchase data of the gift package. The i-th calculation time is the current calculation time, and i is a positive integer greater than or equal to 1. The fourth storage module is used to store third target data, which is target data generated within a third preset time period, and the third preset time period is the period between the first preset time point and the second preset time point. The computing node includes: an acquisition module, a first processing module, a determination module, a second processing module, and a computing module; The acquisition module is used to acquire the raw dataset at the current calculation time. The raw dataset includes multiple raw data. Each raw data record at least one user characteristic data corresponding to a user, a gift package characteristic data corresponding to a gift package for the user, and the user's behavioral characteristic data for the gift package. The behavioral characteristic data includes actual purchase data and predicted purchase data. The first processing module is used to perform a first classification process on the multiple original data according to the user feature data to form multiple first subset datasets, so as to reduce the difference between the user feature data corresponding to the user in each first subset dataset; The determining module is used to determine the first target gift package based on the number of records for each gift package in the first subset of data. The second processing module is used to perform a second classification process on each piece of original data in the first subset of the dataset that records the first target gift package, based on the predicted purchase data recorded in each piece of original data that records the first target gift package in the first subset of the dataset, to form multiple second subsets of the dataset, so as to reduce the difference between each piece of predicted purchase data recorded in the original data that records the first target gift package in each second subset of the dataset. The calculation module is used to calculate, at the current calculation time, a gift package calibration parameter for the first target gift package corresponding to each second subset of data based on the actual purchase data and the predicted purchase data recorded in each second subset of data. The gift package calibration parameter is used to perform numerical calibration on the predicted purchase data. The service nodes include: a gift pack recommendation module, a gift pack calibration module, and a business planning module; The gift package recommendation module is used to respond to a user's gift package recommendation request, obtain the user's user feature data, and input the user feature data into a preset gift package recommendation model to obtain the user's predicted purchase data for each candidate recommended gift package; The gift pack calibration module is used to call the gift pack calibration parameters corresponding to each of the candidate recommended gift packs to perform numerical calibration on the predicted purchase data of each candidate recommended gift pack, so as to obtain the second predicted purchase data for each candidate recommended gift pack. The gift pack calibration parameters are generated by the calibration parameter generation method according to any one of claims 1 to 16. The business planning module is used to obtain the recommended gift package to be pushed to the user based on the second predicted purchase data of each candidate recommended gift package, and push the recommended gift package to the user.

22. A calibration parameter generation device for gift package recommendations, characterized in that, The device includes: a raw dataset acquisition unit, a first classification processing unit, a target gift package determination unit, a second classification processing unit, and a calibration parameter calculation unit; The original dataset acquisition unit is used to acquire the original dataset at the current calculation time. The original dataset includes multiple original data. Each original data record at least one user characteristic data corresponding to a user, a gift package characteristic data corresponding to a gift package for the user, and the user's behavioral characteristic data for the gift package. The behavioral characteristic data includes actual purchase data and predicted purchase data. The first classification processing unit is used to perform a first classification processing on the multiple original data according to the user feature data to form multiple first subset datasets, so as to reduce the difference between the user feature data corresponding to the user in each first subset dataset; The target gift package determination unit is used to determine the first target gift package based on the number of records for each gift package in the first subset of data. The second classification processing unit is used to perform a second classification process on each piece of original data in the first subset of the dataset that records the first target gift package, based on the predicted purchase data recorded in each piece of original data that records the first target gift package in the first subset of the dataset, to form multiple second subsets of the dataset, so as to reduce the difference between each piece of predicted purchase data recorded in the original data that records the first target gift package in each second subset of the dataset. The calibration parameter calculation unit is used to calculate, at the current calculation time, the gift package calibration parameter corresponding to the first target gift package for each of the second subsets of data, based on the actual purchase data and the predicted purchase data recorded in each of the second subsets of data. The gift package calibration parameter is used to perform numerical calibration on the predicted purchase data.

23. A gift package recommendation device, characterized in that, The device includes: a predictive purchase data generation unit, a predictive purchase data calibration unit, and a recommended gift pack acquisition unit; The predictive purchase data generation unit is used to respond to receiving a user's gift package recommendation request, obtain the user's user feature data, and input the user feature data into a preset gift package recommendation model to obtain the user's predictive purchase data for each candidate recommended gift package; The predicted purchase data calibration unit is used to call the gift pack calibration parameters corresponding to each of the candidate recommended gift packs to perform numerical calibration on the predicted purchase data of each candidate recommended gift pack, so as to obtain the second predicted purchase data for each candidate recommended gift pack, wherein the gift pack calibration parameters are generated by the calibration parameter generation method according to any one of claims 1 to 16; The recommended gift pack acquisition unit is used to obtain a recommended gift pack to be pushed to the user based on the second predicted purchase data of each candidate recommended gift pack, and push the recommended gift pack to the user.

24. An electronic device, characterized in that, include: Memory, processor; The memory is used to store one or more computer instructions; The processor is configured to execute one or more computer instructions to implement the method as described in any one of claims 1-16 or 17-20.

25. A computer-readable storage medium storing one or more computer instructions thereon, characterized in that, When this instruction is executed by the processor, it performs the method as described in any one of claims 1-16 or 17-20.

Citation Information

Patent Citations

  • Cold start recommendation method and device based on user interest migration and storage equipment

    CN112667899A

  • Article recommendation model training method, storage medium and related equipment

    CN115796984A