Game gift bag recommendation method and device, electronic equipment and storage medium
By combining real-time behavioral data and offline models, the recommendation model is dynamically updated, which solves the problem of untimely updates of the game gift package recommendation system in the existing technology, achieves more accurate and timely gift package recommendations, and improves the player's gaming experience.
Patent Information
- Application Number
- CN202310217191.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-03
AI Technical Summary
The existing game gift package recommendation system cannot utilize real-time game behavior data of players, resulting in the recommendation model not being updated in a timely manner and failing to reflect the latest behavioral changes and preferences of players, resulting in lag in recommendations.
By obtaining the real-time behavior data of target users in the game, combined with the pre-built offline recommendation model, the online recommendation model is dynamically updated, and candidate gift packages are determined based on the user's real-time behavior and portrait characteristics, and the optimal recommended gift package is selected.
It achieves more time-sensitive game gift package recommendations and can select the optimal gift package based on players’ real-time behavior and consumption habits, improving players’ gaming experience and satisfaction.
Smart Images

Figure CN118585698A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for recommending game gift packages. Background Art
[0002] With the development of game development technology, game manufacturers usually push various game packages to players at specific times and in specific scenarios. Game packages can be understood as a combination of several game props. Reasonable game package design and recommendation can not only increase the profits of game manufacturers, but also improve the game experience of players. However, most of the recommendation systems for game packages in the prior art are based on offline machine learning, and the update of their models is not real-time enough, and the static model cannot reflect the overall changes. And because the game behaviors of players are very diverse, it is impossible to obtain the game behaviors of players in a timely manner, and the static player characteristics will lead to the lag of recommendation. Summary of the invention
[0003] In view of this, the purpose of the present application is to propose a game gift package recommendation method, device, electronic device and storage medium to solve the problem that it is impossible to use the player's real-time game behavior data to recommend game gift packages.
[0004] Based on the above purpose, the present application provides a game gift package recommendation method, the method comprising:
[0005] Acquire the real-time behavior data of the target user in the game, and determine the online recommendation model according to the real-time behavior data and a pre-built offline recommendation model; wherein the real-time behavior data represents the behavior data of the target user in a first time interval; the offline recommendation model is trained according to the behavior data of the target user in a second time interval; the second time interval is earlier than the first time interval;
[0006] In response to the target user's in-game portrait feature reaching a preset feature threshold, determining a number of candidate recommendation gift packages;
[0007] Determining a target recommended gift package from the plurality of candidate recommended gift packages according to the online recommendation model and the real-time behavior data;
[0008] Recommend the target recommendation package to the target user.
[0009] Based on the same invention purpose, the present application also provides a game gift package recommendation device, the device comprising:
[0010] An acquisition module is configured to acquire real-time behavior data of a target user in a game, and determine an online recommendation model according to the real-time behavior data and a pre-built offline recommendation model; wherein the real-time behavior data represents the behavior data of the target user in a first time interval; the offline recommendation model is trained according to the behavior data of the target user in a second time interval; and the second time interval is earlier than the first time interval;
[0011] A response module, configured to determine a number of candidate recommendation gift packages in response to the target user's in-game portrait feature reaching a preset feature threshold;
[0012] A candidate determination module, configured to determine a target recommended gift package from the plurality of candidate recommended gift packages according to the online recommendation model and the real-time behavior data;
[0013] The recommendation module is configured to recommend the target recommendation package to the target user.
[0014] Based on the above purpose, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a game gift package recommendation method as described in any one of the above items is implemented.
[0015] Based on the above purpose, the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute any one of the game gift package recommendation methods described above.
[0016] From the above, it can be seen that the game gift package recommendation method, device, electronic device and storage medium provided by the present application obtain the real-time behavior data of the target user in the game, and determine the online recommendation model according to the real-time behavior data and the pre-built offline recommendation model; wherein the real-time behavior data represents the behavior data of the target user in the first time interval; the offline recommendation model is trained according to the behavior data of the target user in the second time interval; the second time interval is earlier than the first time interval, and further, in response to the portrait feature of the target user in the game reaching the preset feature threshold, several candidate recommended gift packages are determined, and the target recommended gift package is determined from the several candidate recommended gift packages according to the online recommendation model and the real-time behavior data, and finally, the target recommended gift package is recommended to the target user. While recommending gift packages to the target user, the present application combines the real-time behavior data of the target user in the game to construct a more timely online recommendation model for game gift packages, which can dig out the real-time association between the target user and the game props / gift package, and can select the best game gift package according to the player's behavior habits and consumption habits to recommend to the player, which meets the user's game needs and greatly improves the player's game experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only for the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 A schematic diagram of an application scenario of the game gift package recommendation method provided in an embodiment of the present application;
[0019] Figure 2 A flowchart of a method for recommending game gift packages provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of the structure of a game gift package recommendation device provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0023] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in this application should be understood by people with ordinary skills in the field to which this disclosure belongs. "First", "second" and similar words used in this application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0024] As described in the background technology section, in most games, the triggering of recommended gift packages is closely related to the game events experienced by the players, such as equipment synthesis and enhancement, skill level improvement, and clearing specific dungeon tasks. Therefore, how to model rich real-time data in the recommendation framework and obtain player game behavior and purchase behavior through real-time data to perceive changes in player status is very important for improving the accuracy of gift package recommendations and player satisfaction. In terms of real-time performance, the faster the feature update speed of the recommendation model, the more it can reflect the player's recent consumption habits and behavior changes, the more the recommendation model can recommend more timely game gift packages to the player, and the faster the recommendation model updates, the easier it is for the model to discover changes in the overall player consumption pattern from a global perspective, and the more it can allow the model to tap into the latest trends.
[0025] In the process of implementing the present invention, the applicant discovered that the behavior of game players is very diverse. For the same gift package, players may have different interests due to the differences in the use of props or the purchase of props on the same day. In addition, there may be a certain type of players whose historical behaviors in the game are similar, but whose recent behaviors have changed. With the frequent changes in players, props, and gift packages, and under the influence of external environments such as game events or activity updates, the offline static gift package recommendation model is difficult to reflect global changes, and the preference trend of historical gift packages may be invalid on the same day or in the recent time period. Therefore, using the data of players' real-time game behavior to recommend game gift packages is an urgent problem to be solved.
[0026] The principles and spirit of the present application are explained in detail below with reference to several representative implementations of the present application.
[0027] refer to Figure 1 , which is a schematic diagram of an application scenario of the game gift package recommendation method provided in an embodiment of the present application.
[0028] The application scenario includes a terminal device 101, a server 102 and a data storage system 103. The terminal device 101, the server 102 and the data storage system 103 may be connected via a wired or wireless communication network.
[0029] The terminal device 101 includes but is not limited to a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a smart wearable device, a personal digital assistant (PDA) or other electronic devices capable of realizing the above functions.
[0030] The server 102 is used to provide data computing services for terminal devices.
[0031] The data storage system 103 is used to provide data storage services for terminal devices.
[0032] Among them, the data storage system and server can be independent physical servers, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms.
[0033] Among them, the terminal device is connected to the terminal device through a wired or wireless communication network. The terminal device can control the viewing direction in the viewing angle picture. The terminal device can be, but is not limited to, a flat mouse, a touch pad, a floating mouse, a handle, a trackball, and other devices that can generate three-dimensional space signals. The terminal device has omnidirectional three-dimensional control capabilities. It has six moving directions: front, back, left, right, up, and down, and can combine the moving directions of front right, left down, etc.
[0034] Combine the following Figure 1 The game gift package recommendation method according to the exemplary embodiment of the present application is described by using the application scenario. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in this respect. On the contrary, the implementation of the present application can be applied to any applicable scenario.
[0035] refer to Figure 2 , which is a flow chart of a game gift package recommendation method provided in an embodiment of the present application.
[0036] Step S201, obtaining the real-time behavior data of the target user in the game, and determining the online recommendation model according to the real-time behavior data and a pre-built offline recommendation model; wherein the real-time behavior data represents the behavior data of the target user in a first time interval; the offline recommendation model is trained according to the behavior data of the target user in a second time interval; and the second time interval is earlier than the first time interval.
[0037] In the embodiment of the present application, the game package can be understood as a combination of one or more game props, and the display and purchase channels are generally the game activity interface, game lobby or game mall, etc. The game props can be understood as paid, free or limited (only sold during a specific time period) game props on the shelves of the game mall. In the actual application process, the game props can be game props that appear alone in the game mall, or they can be game props in a game package. This application does not limit this.
[0038] Most existing in-game recommendation systems are based on offline machine learning, and the model data is updated on a daily basis (T+1). For example, the system uses the data from the previous T days to train the recommendation model and deploy the model inference service. In addition, it stores the user features from the previous T days. At this time, the model and features are static. However, if the player has a contrasting game behavior on the Tth day, or the game behavior or user features on the Tth day are significantly different from those on the previous T days, the recommendation model cannot give the corresponding recommendation results based on the player's real-time behavior data, and cannot respond to online changes in a timely manner.
[0039] As an optional embodiment, real-time behavior data can be understood as the behavior data of all players in the target game or a randomly selected part of players in the first time interval, where the first time interval can be set according to actual needs. For the goal of real-time features, the system needs to collect the input features required by the model in real time so that the recommendation system can use the latest features for prediction and recommendation. The user's latest behavior needs to be fed back to the model in real time in a shorter time to provide the next recommendation request.
[0040] In the embodiment of the present application, the last 24 hours starting from the time point when the player last logged into the game is the first time interval (i.e., the same day), and the real-time behavior data of the player in the first time interval is obtained. Similarly, the behavior data generated by the player's past game behavior in the game is also crucial, and an offline recommendation model needs to be constructed based on the player's historical behavior data. The time interval before the first time interval on the timeline can be the second time interval, and the duration of the second time interval can be determined according to actual needs. In the embodiment of the present application, the duration of the second time interval can be up to 60 days.
[0041] Behavioral data includes a variety of feature data, such as player portrait features, player sequence features, player statistical features, contextual feature data, and current time nodes.
[0042] Among them, the player portrait features may include, but are not limited to, the player's game character level, the player's game character occupation, the player's game character ability value, etc. The player sequence features may include, but are not limited to, the player's purchase of props, use of props, purchase of gift packs, etc. in the past N days. The player statistical features may include, but are not limited to, the number of times the player purchased props in the past few days, the number of times the player used props, the number of gift packs purchased by the player, etc. The context feature data may include, but are not limited to, the trigger event ID, props / gift pack discounts, etc.
[0043] Furthermore, the above features can be expanded, for example: for the purchase item sequence {p i1 ,p i2 ,...p i50 ,},p i They represent the item IDs that the user has purchased. The item sequence purchased within 60 days is sorted in descending order by timestamp, and the sequence length is 50. If the length exceeds the limit, it is truncated, otherwise it is filled with 0. Among them, the t-60th to t-1th days are historical behavior data, and the tth day is real-time behavior data.
[0044] For example, user statistical features can include the number of props purchased, props used, and gift packs purchased on the 30th day, 14th day, 7th day, and the last 24 hours. For the number of props purchased in the last 24 hours, real-time data is obtained by querying Hbase, and the number of times the user used the prop within the 24 hours before the recommendation request is counted. Among them, the 30th day, 14th day, and 7th day are historical behavior data, and the last 24 hours are real-time behavior data. They are obtained from two ways and reconstructed into features. Historical behavior data can be calculated and stored using hive, and real-time behavior data can be calculated online by querying hbase.
[0045] Hive is a data warehouse tool based on Hadoop, which is used for data extraction, transformation and loading. It is a mechanism for storing, querying and analyzing large-scale data stored in Hadoop. The hive data warehouse tool can map structured data files into a database table, and provides SQL query functions, which can convert SQL statements into MapReduce tasks for execution. The advantage of Hive is that it has a low learning cost and can achieve fast MapReduce statistics through similar SQL statements, making MapReduce simpler without having to develop special MapReduce applications. Hive is very suitable for statistical analysis of data warehouses.
[0046] HBase is a distributed, scalable NOSQL database that supports massive data storage. It is mainly suitable for real-time data processing (random read and write) of massive data. HBase is a physical table, not a logical table. It provides a large in-memory hash table, which is used by search engines to store indexes and facilitate query operations.
[0047] In the embodiment of the present application, the overall optimization of the offline recommendation model is to use the DIN model as the baseline model, which is trained with the behavior data (i.e., historical behavior data) of the target user in the second time interval. The DIN model is an attention mechanism model added to the baseline model, and the baseline model is composed of Embedding Layer, Pooling Layer, Concatlayer, MLP layer, and Loss.
[0048] As an optional embodiment, an offline recommendation model may be constructed in the following manner:
[0049] First, historical behavior data of the target user in the game is obtained; wherein the historical behavior data represents the behavior data of the target user in the second time interval. In the embodiment of the present application, the second time interval is preferably 40 days, and the historical behavior data of the target user in the game within these 40 days is obtained.
[0050] Furthermore, a first training data set and a first verification data set are determined according to the historical behavior data, an initial offline recommendation model is trained according to the first training data set, and the initial offline recommendation model is verified according to the first verification data set to obtain an offline recommendation model.
[0051] In the specific implementation, the construction process of the offline recommendation model can be understood as the process of offline learning. In the offline learning part, real-time user logs are collected through the KafKa message queue. Kafka is a high-throughput distributed publish-subscribe message system that can process all action stream data of consumers on the website. The real-time behavior data of users in the message queue will be imported into hive for offline storage as historical behavior data, and then static features will be calculated continuously. At the same time, the system will also process and splice offline samples. The spliced samples are used for offline learning recommendation model training, and an initial offline recommendation model can be obtained. The offline learning recommendation model training will generate a new model file every day as a verification set to verify the effect of the initial offline recommendation model. The initial offline recommendation model is a T+1 update.
[0052] Furthermore, compared with the real-time nature of features, the real-time nature of recommendation models often considers issues from a more global perspective. Real-time features can more accurately describe the player's recent behavioral interests and preferences, allowing the recommendation system to give more suitable recommendation results for this person, while real-time models hope to capture new data patterns at the global level more quickly and discover new trends and correlations.
[0053] As an optional embodiment, an online recommendation model may be constructed in the following manner:
[0054] Firstly, a second training data set and a second verification data set are determined according to the real-time behavior data of the user. Furthermore, a pre-built offline recommendation model is updated according to the second training data set to obtain an initial online recommendation model. The initial online recommendation model is verified according to the second verification data set to obtain an online recommendation model.
[0055] In specific implementation, the construction process of the online recommendation model can be understood as a real-time incremental learning process. In the real-time incremental learning part, the system will also read out two copies of the real-time behavior data in the Kafka message queue. One copy is used for real-time feature calculation and saved in the Hbase database, and the other copy is stored in the MySQL database. In order to construct a real-time sample, the record is joined with the offline user features, so that a real-time sample can be obtained.
[0056] In the gift package recommendation scenario of this application, the conversion link of players for gift package recommendation activities is to display gift packages, click gift packages, and purchase gift packages. The record of players purchasing gift packages can be used as positive samples, and the record of users displaying gift packages but not purchasing them can be used as negative samples for online recommendation model training. However, in real-time incremental learning, there will be a problem of positive sample delay, because when the real-time samples are obtained, the positive samples may not have arrived yet, which will cause the real-time data distribution to be not the real distribution, and sample attribution is required.
[0057] Specifically, for real-time incremental real-time behavior data, we set the records of purchasing gift packages as positive samples, and the records of users not purchasing the gift packages from the time they clicked on the gift packages to the time when the real-time behavior data was obtained for more than 60 seconds as negative samples, so as to ensure that the accuracy of the sample labels is relatively high.
[0058] Before training the online recommendation model, a hot start of the offline recommendation model can be used, including:
[0059] The offline recommendation model uses samples from the past 40 days as training data and trains for 3 epochs (one epoch means that every sample in the training set has participated in the training once). A model file is generated every day. The training process of the online recommendation model obtains the user's real-time behavior data for the past 24 hours as the training data set. After loading the offline recommendation model, it trains for 1 epoch to update the offline recommendation model according to the real-time training set. Real-time incremental learning generates a model file every hour. There are two main reasons for using model hot start: first, the data volume of real-time behavior data is small, and training only on this part of the data is prone to fall into local optimality, which can be corrected by hot start based on the offline recommendation model; second, the data range of real-time behavior data is only in a short period of time, which is easily biased by specific behaviors of the day, so incremental training uses a smaller number of training rounds.
[0060] Step S202, in response to the target user's in-game portrait feature reaching a preset feature threshold, determining a number of candidate recommended gift packages.
[0061] As an optional embodiment, the target user's in-game portrait features may include, but are not limited to: the target user's game level, the target user's game occupation, or the target user's game ability value, etc. When the target user's in-game portrait features reach a preset feature threshold, it can be understood that a specific event in the game has been triggered, and each specific event in the game is marked with a triggering event ID after being triggered.
[0062] In the game gift package recommendation scenario of this application, game-specific events such as upgrading character skills, improving equipment levels, and passing a certain game copy are set. After the player completes the event, the gift package recommendation service will be triggered. We use the triggered event ID as a feature to make the final recommended result and the game event relevant, so that the player's game behavior and game time are "sticky", thereby improving the player's game immersion and experience.
[0063] When the game server responds to the target user's game level reaching a preset level threshold, or responds to the target user's game occupation reaching a preset occupation type, or responds to the target user's game ability value reaching a preset ability threshold, at least one candidate recommendation package is determined. The candidate recommendation package can be pre-designed by the game developer, or randomly generated by the game server according to specific instructions. The candidate recommendation package can include at least one game prop, or a combination of several game props. In certain cases, the candidate recommendation package can be a combination of best-selling game props and slow-selling game props. The candidate recommendation packages are stored in the redis database.
[0064] Step S203: determining a target recommended gift package from the plurality of candidate recommended gift packages according to the online recommendation model and the real-time behavior data.
[0065] As an optional embodiment, several candidate recommended gift packages and real-time portrait features of the target user are obtained, and combined features are determined based on the several candidate recommended gift packages, the real-time portrait features and the real-time behavior data; the combined features are input into the online recommendation model, and the target recommended gift package is determined from the several candidate recommended gift packages.
[0066] Specifically, when a player triggers the gift package recommendation service, the game server first reads the candidate recommended gift packages from the redis database, and further reads the player portrait features updated in the first time interval from redis, and reads the player's real-time behavior features obtained in the first time interval from hbase. After combining the features, the online recommendation model is requested to perform inference services. Finally, after the intervention of business rules, the candidate recommended gift packages are scored, and the gift package with the highest score is selected to be displayed to the user.
[0067] As an optional embodiment, several candidate recommended gift packages may be scored according to preset business rules, and the candidate recommended gift packages may be sorted from high to low according to the scores, and the candidate recommended gift package with the highest score may be determined as the target recommended gift package.
[0068] Step S204: recommend the target recommendation package to the target user.
[0069] After determining the target recommended gift package, the game server can render a pop-up welfare activity interface / link through the game front-end, and the player can click the control on the game activity interface or click the link to jump to the web page to purchase the gift package.
[0070] Regarding the data information obtained in this application, it can be understood that before using the technical solutions disclosed in the embodiments of this application, the type, scope of use, usage scenarios, etc. of the personal information involved in this application should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0071] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0072] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0073] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0074] From the above, it can be seen that the game gift package recommendation method, device, electronic device and storage medium provided by the present application obtain the real-time behavior data of the target user in the game, and determine the online recommendation model according to the real-time behavior data and the pre-built offline recommendation model; wherein the real-time behavior data represents the behavior data of the target user in the first time interval; the offline recommendation model is trained according to the behavior data of the target user in the second time interval; the second time interval is earlier than the first time interval, and further, in response to the portrait feature of the target user in the game reaching the preset feature threshold, several candidate recommended gift packages are determined, and the target recommended gift package is determined from the several candidate recommended gift packages according to the online recommendation model and the real-time behavior data, and finally, the target recommended gift package is recommended to the target user. While recommending gift packages to the target user, the present application combines the real-time behavior data of the target user in the game to construct a more timely online recommendation model for game gift packages, which can dig out the real-time association between the target user and the game props / gift package, and can select the best game gift package according to the player's behavior habits and consumption habits to recommend to the player, which meets the user's game needs and greatly improves the player's game experience.
[0075] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0076] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0077] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a game gift package recommendation device.
[0078] refer to Figure 3 , which is a structural diagram of the game gift package recommendation provided in an embodiment of the present application.
[0079] The device comprises:
[0080] The acquisition module 301 is configured to acquire the real-time behavior data of the target user in the game, and determine the online recommendation model according to the real-time behavior data and the pre-built offline recommendation model; wherein the real-time behavior data represents the behavior data of the target user in the first time interval; the offline recommendation model is trained according to the behavior data of the target user in the second time interval; the second time interval is earlier than the first time interval;
[0081] A response module 302 is configured to determine a number of candidate recommended gift packages in response to the target user's in-game portrait feature reaching a preset feature threshold;
[0082] A candidate determination module 303 is configured to determine a target recommended gift package from the plurality of candidate recommended gift packages according to the online recommendation model and the real-time behavior data;
[0083] The recommendation module 304 is configured to recommend the target recommendation package to the target user. For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing this application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0084] The device of the above embodiment is used to implement the corresponding game gift package recommendation method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0085] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the game gift package recommendation method described in any of the above embodiments is implemented.
[0086] Figure 4 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0087] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0088] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0089] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0090] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0091] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0092] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0093] The electronic device of the above-mentioned embodiment is used to implement the corresponding game gift package recommendation method in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0094] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the game gift package recommendation method described in any of the above embodiments.
[0095] The above-mentioned non-transitory computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.
[0096] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the game gift package recommendation method described in any embodiment in the above exemplary method part, and have the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0097] Those skilled in the art know that the embodiments of the present application can be implemented as a system, method or computer program product. Therefore, the present application can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to as "circuit", "module" or "system" herein. In addition, in some embodiments, the present application can also be implemented in the form of a computer program product in one or more computer-readable media, which contains computer-readable program code.
[0098] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive examples) of computer-readable storage media may include, for example: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.
[0099] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0100] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0101] Computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0102] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified in the boxes in the flowchart and / or block diagram.
[0103] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce a product that includes an instruction device that implements the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0104] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable device to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0105] In addition, although the operations of the present method are described in a specific order in the accompanying drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.
[0106] The use of the verbs "comprise", "include" and their conjugations mentioned in the application documents does not exclude the presence of elements or steps other than those recorded in the application documents. The article "a" or "an" before an element does not exclude the presence of a plurality of such elements.
[0107] Although the spirit and principle of the present application have been described with reference to several specific embodiments, it should be understood that the present application is not limited to the specific embodiments applied for, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and this division is only for the convenience of expression. The present application is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims. The scope of the attached claims conforms to the broadest interpretation, thereby including all such modifications and equivalent structures and functions.
Claims
1. A method for recommending game gift packages, characterized in that: The method comprises: Acquire the real-time behavior data of the target user in the game, and determine the online recommendation model according to the real-time behavior data and a pre-built offline recommendation model; wherein the real-time behavior data represents the behavior data of the target user in a first time interval; the offline recommendation model is trained according to the behavior data of the target user in a second time interval; the second time interval is earlier than the first time interval; In response to the target user's in-game portrait feature reaching a preset feature threshold, determining a number of candidate recommendation gift packages; Determining a target recommended gift package from the plurality of candidate recommended gift packages according to the online recommendation model and the real-time behavior data; Recommend the target recommendation package to the target user.
2. The method according to claim 1, characterized in that: The method further includes: constructing an offline recommendation model by: Acquire historical behavior data of the target user in the game; wherein the historical behavior data represents behavior data of the target user in a second time interval; Determine a first training data set and a first verification data set according to the historical behavior data; An initial offline recommendation model is trained according to the first training data set, and the initial offline recommendation model is verified according to the first verification data set to obtain the offline recommendation model.
3. The method according to claim 2, characterized in that The acquiring real-time behavior data of the target user in the game, and determining the online recommendation model according to the real-time behavior data and a pre-built offline recommendation model, includes: Determine a second training data set and a second verification data set according to the real-time behavior data; The pre-built offline recommendation model is updated according to the second training data set to obtain an initial online recommendation model, and the initial online recommendation model is verified according to the second verification data set to obtain the online recommendation model.
4. The method according to claim 3, characterized in that: The target recommendation gift package includes at least one target prop; the real-time behavior data of the target user in the game includes: the number of times the target user purchases the target prop in the first time interval, the number of times the target user uses the target prop in the first time interval, or the number of times the target user purchases a game gift package including the target prop in the first time interval.
5. The method according to claim 1, characterized in that The target user's in-game portrait features include: the target user's game level, the target user's game occupation, or the target user's game ability value; In response to the target user's in-game portrait feature reaching a preset feature threshold, determining at least one candidate recommendation gift package includes: In response to the target user's game level reaching a preset level threshold, Or, in response to the target user's gaming occupation reaching a preset occupation category, Alternatively, in response to the target user's gaming ability value reaching a preset ability threshold, at least one candidate recommended gift package is determined.
6. The method according to claim 2, characterized in that The target recommendation gift package includes at least one target prop; the historical behavior data of the target user in the game includes: the number of times the target user purchases the target prop in the second time interval, the number of times the target user uses the target prop in the second time interval, or the number of times the target user purchases a game gift package including the target prop in the second time interval.
7. The method according to claim 1, characterized in that Determining a target recommended gift package from the plurality of candidate recommended gift packages according to the online recommendation model and the real-time behavior data includes: Acquire a number of candidate recommended gift packages and real-time portrait features of the target user, and determine a combination feature according to the number of candidate recommended gift packages, the real-time portrait features, and the real-time behavior data; The combined features are input into the online recommendation model, and a target recommended gift package is determined from the plurality of candidate recommended gift packages.
8. The method according to claim 7, characterized in that The step of inputting the combined features into the online recommendation model and determining a target recommended gift package from the plurality of candidate recommended gift packages comprises: Scoring the plurality of candidate recommended gift packages, and sorting the plurality of candidate recommended gift packages from high to low according to the scores; Determine the candidate recommended gift package with the highest score as the target recommended gift package.
9. A game gift package recommendation device, characterized in that: The device comprises: An acquisition module is configured to acquire real-time behavior data of a target user in a game, and determine an online recommendation model according to the real-time behavior data and a pre-built offline recommendation model; wherein the real-time behavior data represents the behavior data of the target user in a first time interval; the offline recommendation model is trained according to the behavior data of the target user in a second time interval; and the second time interval is earlier than the first time interval; A response module, configured to determine a number of candidate recommendation gift packages in response to the target user's in-game portrait feature reaching a preset feature threshold; A candidate determination module, configured to determine a target recommended gift package from the plurality of candidate recommended gift packages according to the online recommendation model and the real-time behavior data; The recommendation module is configured to recommend the target recommendation package to the target user.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
11. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute any one of claims 1 to 8.
Citation Information
Patent Citations
User game real-time recommendation method and system based on big data log analysis
CN110489453A
Online prediction model training method and device, equipment and storage medium
CN112070226A
Multimedia content recommendation method and device and storage medium
CN115062215A
Game gift bag pushing method and device, electronic equipment and storage medium
CN115120983A
