A method, device, computer equipment and storage medium for building a click rate prediction model

By acquiring and processing users' historical behavior data and text data, generating vector representations and optimizing prediction models, it solves the problem of limited click-through rate prediction performance caused by limited device memory, and achieves efficient click-through rate prediction.

CN114661941BActive Publication Date: 2024-10-29GUANGZHOU LIZHI NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210299794.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-24
Publication Date
2024-10-29
Estimated Expiration
2042-03-24

AI Technical Summary

Technical Problem

Existing click-through rate prediction models have limited performance when device memory is limited, resulting in low applicability and inability to effectively predict click-through rates.

Method used

By obtaining the user's historical behavior data, text data and basic attribute data, we generate playback session data, perform label extraction and vector representation generation, optimize it based on the initial prediction model, build a click-through rate prediction model, and improve the generalization ability and reliability of cross-features. interpretive.

Benefits of technology

Significantly improves the cross-feature generalization ability and interpretability of the click-through rate prediction model without consuming a large amount of storage space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114661941B_ABST
    Figure CN114661941B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device, computer equipment and storage medium for constructing a click-through rate prediction model. The method comprises generating playback session data based on the user's behavior data of playing sound and the text data of the played sound; determining the user's vector representation based on the vector representation of the unique identifier of the sound of the playback session data, the first weight corresponding to the unique identifier of the sound, the vector representation of the unique identifier of the anchor of the playback session data, and the second weight corresponding to the unique identifier of the anchor; inputting the user's basic attribute data, the user's statistical information, the statistical information of the label, the user's vector representation, and the label's vector representation as training data into the initial prediction model, and optimizing the initial prediction model according to the loss function to obtain the click-through rate prediction model. The click-through rate prediction model does not require a large amount of storage space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for constructing a click rate prediction model. Background Art

[0002] Machine learning is a multidisciplinary subject that covers knowledge of probability theory, statistics, approximate theory and complex algorithms. It uses computers as tools and is committed to simulating human learning methods in real time, and divides existing content into knowledge structures to effectively improve learning efficiency.

[0003] Click-through rate prediction is an application branch of machine learning, in which the click-through rate of a sound refers to the ratio of the number of times the current sound is clicked by users to the number of times it is exposed to users. The click-through rate of a sound can reflect the user's preference for the sound and the rationality of the system's recommendation of the sound.

[0004] In the click-through rate prediction model solution provided by the related art, when the device where the model is deployed has limited memory, the model may be limited in performance or even unusable, and its applicability for click-through rate prediction is low. Summary of the invention

[0005] In view of the above problems, the present invention is proposed to provide a method, apparatus, computer device and storage medium for constructing a click rate prediction model that overcomes the above problems or at least partially solves the above problems.

[0006] In a first aspect, an embodiment of the present invention provides a method for constructing a click rate prediction model, the method comprising the following steps:

[0007] Obtain the user's behavior data on playing sounds within a set historical time period, the text data of the played sounds, the click-through rate of the exposed tags, as well as the user's basic attribute data and the tag's basic attribute data; the text data includes the unique sound identifier, the host's unique identifier, and the tag;

[0008] Generate playback session data based on behavioral data and text data;

[0009] Extract labels from text data to obtain labels;

[0010] Input the unique sound identifier, the unique host identifier, and the label into the word vector generation model to obtain the vector representation of the unique sound identifier, the vector representation of the unique host identifier, and the vector representation of the label; the word vector generation model is obtained by training a preset model, and the training data of the word vector generation model is constructed based on the playback session data;

[0011] Determine the vector representation of the user according to the vector representation of the unique sound identifier of the playback session data, the first weight corresponding to the unique sound identifier, the vector representation of the unique host identifier of the playback session data, and the second weight corresponding to the unique host identifier;

[0012] The user's basic attribute data, the user's statistical information, the label's statistical information, the user's vector representation, and the label's vector representation are input into the initial prediction model as training data, and the initial prediction model is optimized according to the loss function to obtain a click-through rate prediction model.

[0013] In one implementation, generating playback session data based on behavior data and text data includes:

[0014] Generate basic playback session data based on behavioral data and text data;

[0015] Generate a graph based on the basic play session data and obtain frequent subgraphs through frequent subgraph mining;

[0016] Generate augmented play session data based on frequent subgraphs.

[0017] In one embodiment, determining the vector representation of the user according to the vector representation of the unique sound identifier of the playback session data, the first weight corresponding to the unique sound identifier, the vector representation of the unique host identifier of the playback session data, and the second weight corresponding to the unique host identifier includes:

[0018] The vector representation of the user is determined based on the average value of the vector representations of the unique sound identifiers of the user's most recent playback session data within the set historical time period, the first weight corresponding to the unique sound identifier, the average value of the vector representation of the host unique identifier of the user's most recent playback session data within the set historical time period, and the second weight corresponding to the host unique identifier; the sum of the first weight and the second weight is 1.

[0019] In one embodiment, the initial prediction model includes one or any combination of an xgboost model, a logistic regression model, a gradient boosting decision tree model, a convolutional neural network model, and a recursive neural network model.

[0020] In one embodiment, the loss function includes one of a mean square error function, a mean absolute percentage error function, a root mean square error function, and a norm.

[0021] In a second aspect, an embodiment of the present invention provides a click rate prediction model construction device, the device comprising:

[0022] The acquisition module is used to obtain the user's behavior data of playing sounds within a set historical time period, the text data of the played sounds, the click rate of the exposed tags, as well as the user's basic attribute data and the tag's basic attribute data; the text data includes the unique identifier of the sound, the unique identifier of the anchor, and the tag;

[0023] A session data generation module, used to generate playback session data based on behavior data and text data;

[0024] The label extraction module is used to extract labels from text data to obtain labels;

[0025] A first vector representation generation module is used to input the sound unique identifier, the anchor unique identifier, and the label into a word vector generation model to obtain a vector representation of the sound unique identifier, a vector representation of the anchor unique identifier, and a vector representation of the label; the word vector generation model is obtained by training a preset model, and the training data of the word vector generation model is constructed based on the playback session data;

[0026] A second vector representation generating module, configured to determine a vector representation of a user according to a vector representation of a unique sound identifier of the playback session data, a first weight corresponding to the unique sound identifier, a vector representation of a unique host identifier of the playback session data, and a second weight corresponding to the unique host identifier;

[0027] The model training module is used to input user basic attribute data, user statistical information, label statistical information, user vector representation, label vector representation as training data into the initial prediction model, and optimize the initial prediction model according to the loss function to obtain a click-through rate prediction model.

[0028] In one implementation, the session data generation module includes:

[0029] A basic play session data generation submodule, used to generate basic play session data based on behavior data and text data;

[0030] A frequent subgraph acquisition submodule is used to generate a graph based on basic play session data and obtain frequent subgraphs through frequent subgraph mining;

[0031] The play session data expansion submodule is used to generate expanded play session data based on the frequent subgraph.

[0032] In one embodiment, the second vector representation generation module is also used to determine the vector representation of the user based on the average value of the vector representations of the sound unique identifiers of the user's most recent playback session data within a set historical time period, the first weight corresponding to the sound unique identifier, the average value of the vector representation of the host unique identifier of the user's most recent playback session data within a set historical time period, and the second weight corresponding to the host unique identifier; the sum of the first weight and the second weight is 1.

[0033] In one embodiment, the initial prediction model includes one or any combination of an xgboost model, a logistic regression model, a gradient boosting decision tree model, a convolutional neural network model, and a recursive neural network model.

[0034] In one embodiment, the loss function includes one of a mean square error function, a mean absolute percentage error function, a root mean square error function, and a norm.

[0035] In a third aspect, an embodiment of the present invention provides a computer device, the computer device comprising:

[0036] one or more processors;

[0037] A memory for storing one or more programs;

[0038] When the one or more programs are executed by the one or more processors, the one or more processors implement the click-through rate prediction model construction method as described in any one of the first aspects.

[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium.

[0040] The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for constructing a click rate prediction model as described in any one of the first aspects is implemented.

[0041] In an embodiment of the present invention, the behavior data of the user playing the sound within a set historical time period, the text data of the played sound, the click rate of the exposed label, and the user basic attribute data and the label basic attribute data are obtained; the text data includes a sound unique identifier, a host unique identifier, and a label; based on the behavior data and the text data, the playback session data is generated; the label is extracted from the text data to obtain the label; the sound unique identifier, the host unique identifier, and the label are input into the word vector generation model to obtain the vector representation of the sound unique identifier, the vector representation of the host unique identifier, and the vector representation of the label; the word vector generation model is obtained by training a preset model, and the training data of the word vector generation model is constructed based on the playback session data; according to the vector representation of the sound unique identifier of the playback session data, the first weight corresponding to the sound unique identifier, the vector representation of the host unique identifier of the playback session data, and the second weight corresponding to the host unique identifier, the vector representation of the user is determined; the user basic attribute data, the user's statistical information, the label's statistical information, the user's vector representation, and the label's vector representation are input into the initial prediction model as training data, and the initial prediction model is optimized according to the loss function to obtain the click rate prediction model. The resulting click-through rate prediction model significantly improves the generalization ability and interpretability of cross-features and does not require a large amount of storage space. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0043] Figure 1 A flowchart of a method for constructing a click rate prediction model provided in the first embodiment of the present invention;

[0044] Figure 1A A schematic diagram of a session combination of playback session data provided in the first embodiment of the present invention;

[0045] Figure 2 A schematic diagram of the structure of a click rate prediction model building device provided in the second embodiment of the present invention;

[0046] Figure 3 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0047] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0048] Machine learning is a multidisciplinary subject that covers knowledge of probability theory, statistics, approximate theory and complex algorithms. It uses computers as tools and is committed to simulating human learning methods in real time, and divides existing content into knowledge structures to effectively improve learning efficiency.

[0049] Click-through rate prediction is an application branch of machine learning, in which the click-through rate of a sound refers to the ratio of the number of times the current sound is clicked by users to the number of times it is exposed to users. The click-through rate of a sound can reflect the user's preference for the sound and the rationality of the system's recommendation of the sound.

[0050] In the click-through rate prediction model solution provided by the related art, when the device where the model is deployed has limited memory, the model may be limited in performance or even unusable, and its applicability for click-through rate prediction is low.

[0051] In order to overcome the above problems or at least partially solve the above problems, the embodiments of the present application provide a method for constructing a click rate prediction model, and the click rate prediction model obtained by the method significantly improves the generalization ability and interpretability of cross-features, and does not require a large amount of storage space. The following is a detailed description through embodiments.

[0052] Embodiment 1

[0053] Figure 1 This is a flowchart of a method for constructing a click rate prediction model provided in the first embodiment of the present invention. The method can be executed by a click rate prediction model construction device. The click rate prediction model construction device can be implemented by software and / or hardware and can be configured in a computer device, such as a server, a personal computer, etc. The click rate prediction model construction method specifically includes the following steps:

[0054] Step 101: Obtain the user's behavior data of playing sounds within a set historical time period, the text data of the played sounds, the click rate of the exposed tags, and the user's basic attribute data and the tag's basic attribute data.

[0055] When users listen to sounds on online audio platforms, various behavioral data will be generated, including sound playback behavior data, like behavior data, collection behavior data, sound query behavior data, etc.

[0056] The click rate of the user on the exposed label is used as the cross-feature value of the training data on <user, label>. The cross-feature value can explicitly reflect the interactive relationship between the features, that is, the larger the cross-feature value, the higher the correlation between the user and the label. Therefore, in this embodiment, the training data of the click-through rate prediction model includes or comes from the user's behavior data of playing sounds in a set historical time period, the text data of the played sounds, the click rate of the exposed labels, and the user's basic attribute data and the label's basic attribute data.

[0057] The set historical time period can be adjusted according to actual conditions. The set historical time period can be the most recent month, the most recent two months, the most recent year, or other time periods, which is not limited in this embodiment.

[0058] For example, obtain the user's behavior data on playing sounds in the recent period, such as the last 180 days, the text data of the played sounds, and the click rate of the exposed tags.

[0059] The behavior data of playing sounds may include the order of playing sounds, the time of playing sounds, whether the sounds are played completely, the duration of playing sounds, etc.

[0060] The text data of the played sound may include a unique sound identifier (i.e., sound ID), a host unique identifier (i.e., host ID), tags (primary tags, secondary tags, etc.), title, description, total duration of the sound, etc.

[0061] The basic attributes of the user may include age, preference, gender, region, etc.

[0062] The tag basic attributes may be used to indicate the type of field to which the sound belongs, such as parent-child, emotion, comedy, literature, music, history, etc.

[0063] In actual applications, the above-mentioned behavior data of playing sound, text data of played sound, and basic user attributes may also include other information, be replaced by other information, or delete some information, etc. The specific information or data included varies for different usage scenarios, and the embodiments of the present invention do not impose specific restrictions on this.

[0064] Step 102: Generate playback session data based on the behavior data and text data.

[0065] In the process of users listening to audio on an online audio platform, each behavior cannot be isolated, and one behavior has more or less relationship with the behaviors before and after it. In this embodiment, training data of a word vector generation model is constructed based on playback session data.

[0066] In one embodiment, step 102 includes:

[0067] Generate basic playback session data based on behavioral data and text data;

[0068] Generate a graph based on the basic play session data and obtain frequent subgraphs through frequent subgraph mining;

[0069] Generate augmented play session data based on frequent subgraphs.

[0070] A play sequence table is generated based on the user's sound playing behavior. If the time interval between the user clicks of two adjacent sounds in the play sequence table does not exceed the preset time interval, and the playing time of each sound is not less than the preset playing time, then they belong to the same basic play session data session.

[0071] For example, Figure 1A , user U1 plays sounds I1, I3, I8, I2, I6, and I5 in sequence, and the playing time of sounds I1, I3, I8, I2, I6, and I5 all exceeds 20 seconds (the preset playing time is 20 seconds), and the playing time interval of the three sounds I1, I3, and I8 does not exceed 20 minutes (the preset time interval is 20 minutes), the playing time interval of the three sounds I2, I6, and I5 does not exceed 20 minutes, and the playing time interval of sounds I8 and I2 exceeds 20 minutes, then user U1 plays sounds I1, I3, and I8 and belongs to the basic playing session data session1, and user U1 plays sounds I2, I6, and I5 and belongs to the basic playing session data session2.

[0072] User U2 plays sounds I1, I3, I8, I2, I7, and I6 in sequence. The playing duration of sounds I1, I3, I8, I2, I7, and I6 exceeds 20 seconds, and the playing time interval of each sound does not exceed 20 minutes. Therefore, the sounds I1, I3, I8, I2, I7, and I6 played by user U2 belong to the basic playing session data session3.

[0073] For basic play session data constructed based on behavior data and text data, a graph can be generated for each basic play session data, and a frequent subgraph can be obtained through frequent subgraph mining.

[0074] For example, taking the minimum support threshold as 2, three graphs can be generated through the three basic play session data session1, session2, and session3 obtained above. According to the three graphs, it can be found that I1, I3, and I8 are a frequent subgraph, and then the order of I1, I3, and I8 is randomly shuffled to generate two new subgraphs, such as I1, I8, I3 and I8, I3, I1. Then, the extended play session data can be generated based on the frequent subgraphs.

[0075] Step 103: extract labels from the text data to obtain labels.

[0076] The text data of the played sound contains tags, such as primary tags, secondary tags, etc., so the tags can be extracted from the text data.

[0077] Step 104: Input the sound unique identifier, the host unique identifier, and the label into the word vector generation model to obtain the vector representation of the sound unique identifier, the vector representation of the host unique identifier, and the vector representation of the label.

[0078] The word vector generation model is obtained by training a preset model, and the training data of the word vector generation model is constructed based on the playback session data.

[0079] For example, the training samples constructed based on the query session session1 data can be as follows:

[0080] I1 label I1ID I1 anchor ID I3 label I3ID I3 anchor ID I8 label I8ID I8 anchor ID.

[0081] The training samples constructed based on the query session session2 data can be as follows:

[0082] I2 tag I2ID I2 anchor ID I6 tag I6ID I6 anchor ID I5 tag I5ID I5 anchor ID.

[0083] The training samples constructed based on the query session session3 data can be as follows:

[0084] I1 label I1ID I1 anchor ID I3 label I3ID I3 anchor ID I8 label I8ID I8 anchor ID I2 label I2ID I2 anchor ID I7 label I7ID I7 anchor ID I6 label I6ID I6 anchor ID.

[0085] Input the constructed training data into a preset model, such as the word2vec model, to obtain a word vector generation model. Then input the sound unique identifier, the anchor unique identifier, and the label into the word vector generation model to obtain the vector representation of the sound unique identifier, the vector representation of the anchor unique identifier, and the vector representation of the label.

[0086] Step 105: Determine the vector representation of the user according to the vector representation of the sound unique identifier of the playback session data, the first weight corresponding to the sound unique identifier, the vector representation of the host unique identifier of the playback session data, and the second weight corresponding to the host unique identifier.

[0087] In one embodiment, the vector representation of the user is determined based on the average value of the vector representations of the unique sound identifiers of the user's most recent playback session data within a set historical time period, the first weight corresponding to the sound unique identifier, the average value of the vector representation of the host unique identifier of the user's most recent playback session data within a set historical time period, and the second weight corresponding to the host unique identifier.

[0088] For example, the average value of the vector representation of the unique identifiers of each sound in the user's most recent playback session data session is Vec session声音ID , the first weight corresponding to the unique sound identifier is 0.65, and the average value of the vector representation of the unique identifiers of each anchor in the user's most recent playback session data session is Vec session主播ID , the second weight corresponding to the anchor's unique identifier is 0.35, then the vector representation of the user can be

[0089] Vec user =0.65*Vec session声音ID +0.35*Vec session主播ID .

[0090] Step 106: input the user basic attribute data, the user's statistical information, the label's statistical information, the user's vector representation, and the label's vector representation into the initial prediction model as training data, and optimize the initial prediction model according to the loss function to obtain a click-through rate prediction model.

[0091] The user basic attribute data, the user's statistical information, the tag's statistical information, the user's vector representation, and the tag's vector representation are used as training data to input into the initial prediction model to train the initial prediction model, and the initial prediction model is optimized using a loss function to obtain a click-through rate prediction model. The click-through rate prediction model can predict the user's click-through rate on the exposed tag.

[0092] The user's statistical information includes the user's click rate, completion rate, etc., and the tag's statistical information includes the tag's click rate, completion rate, etc.

[0093] The initial prediction model may include one or any combination of an xgboost model, a logistic regression model (LR), a gradient boosted decision tree model (GBDT), a convolutional neural network model (CNN), and a recursive neural network model (RNN). In one embodiment, the initial prediction model is a gradient boosted decision tree model.

[0094] The loss function includes one of a mean square error function (MSE), a mean absolute percentage error function (MAPE), a root mean square error function (RMSE), and a norm. In one embodiment, minimizing the loss function is an iterative process until the value of the loss function is less than a preset threshold, or until the value of the loss function reaches a minimum value.

[0095] In an embodiment, the behavior data of the user playing the sound within a set historical time period, the text data of the played sound, the click rate of the exposed label, and the user basic attribute data and the label basic attribute data are obtained; the text data includes a sound unique identifier, a host unique identifier, and a label; based on the behavior data and the text data, the playback session data is generated; the label is extracted from the text data to obtain the label; the sound unique identifier, the host unique identifier, and the label are input into the word vector generation model to obtain the vector representation of the sound unique identifier, the vector representation of the host unique identifier, and the vector representation of the label; the word vector generation model is obtained by training a preset model, and the training data of the word vector generation model is constructed based on the playback session data; the vector representation of the user is determined according to the vector representation of the sound unique identifier of the playback session data, the first weight corresponding to the sound unique identifier, the vector representation of the host unique identifier of the playback session data, and the second weight corresponding to the host unique identifier; the user basic attribute data, the user's statistical information, the label's statistical information, the user's vector representation, and the label's vector representation are input into the initial prediction model as training data, and the initial prediction model is optimized according to the loss function to obtain the click-through rate prediction model. The resulting click-through rate prediction model significantly improves the generalization ability and interpretability of cross-features and does not require a large amount of storage space.

[0096] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0097] Embodiment 2

[0098] Figure 2 This is a schematic diagram of the structure of a click rate prediction model construction device provided in the second embodiment of the present invention. The click rate prediction model construction device may specifically include the following modules:

[0099] The acquisition module 201 is used to obtain the user's behavior data of playing sounds within a set historical time period, the text data of the played sounds, the click rate of the exposed tags, and the user's basic attribute data and the tag's basic attribute data; the text data includes the sound unique identifier, the anchor unique identifier, and the tag;

[0100] A session data generating module 202, for generating playback session data based on the behavior data and the text data;

[0101] The label extraction module 203 is used to extract labels from text data to obtain labels;

[0102] The first vector representation generation module 204 is used to input the sound unique identifier, the anchor unique identifier, and the label into the word vector generation model to obtain the vector representation of the sound unique identifier, the vector representation of the anchor unique identifier, and the vector representation of the label; the word vector generation model is obtained by training a preset model, and the training data of the word vector generation model is constructed based on the playback session data;

[0103] A second vector representation generating module 205 is used to determine the vector representation of the user according to the vector representation of the unique sound identifier of the playback session data, the first weight corresponding to the unique sound identifier, the vector representation of the unique host identifier of the playback session data, and the second weight corresponding to the unique host identifier;

[0104] The model training module 206 is used to input user basic attribute data, user statistical information, label statistical information, user vector representation, label vector representation as training data into the initial prediction model, and optimize the initial prediction model according to the loss function to obtain a click rate prediction model.

[0105] In one implementation, the session data generation module 202 includes:

[0106] A basic play session data generation submodule, used to generate basic play session data based on behavior data and text data;

[0107] A frequent subgraph acquisition submodule is used to generate a graph based on basic play session data and obtain frequent subgraphs through frequent subgraph mining;

[0108] The play session data expansion submodule is used to generate expanded play session data based on the frequent subgraph.

[0109] In one embodiment, the second vector representation generation module 205 is also used to determine the vector representation of the user based on the average value of the vector representations of the sound unique identifiers of the user's most recent playback session data within a set historical time period, the first weight corresponding to the sound unique identifier, the average value of the vector representation of the host unique identifier of the user's most recent playback session data within a set historical time period, and the second weight corresponding to the host unique identifier; the sum of the first weight and the second weight is 1.

[0110] In one embodiment, the initial prediction model includes one or any combination of an xgboost model, a logistic regression model, a gradient boosting decision tree model, a convolutional neural network model, and a recursive neural network model.

[0111] In one embodiment, the loss function includes one of a mean square error function, a mean absolute percentage error function, a root mean square error function, and a norm.

[0112] The click rate prediction model construction device provided in the embodiment of the present invention can execute the click rate prediction model construction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0113] Embodiment 3

[0114] Figure 3 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention. Figure 3 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 3 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0115] like Figure 3 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0116] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0117] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0118] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 3 not shown, usually called a "hard drive"). Although Figure 3 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0119] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0120] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the computer device 12, and / or may communicate with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0121] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the click rate prediction model construction method provided in the embodiment of the present invention.

[0122] Embodiment 4

[0123] Embodiment 4 of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned click-through rate prediction model construction method are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0124] Among them, computer-readable storage media may include, for example, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: 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 can be used by or in conjunction with an instruction execution system, device or device.

[0125] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for constructing a click rate prediction model, characterized in that: include: Obtain the user's behavior data on playing sounds within a set historical time period, the text data of the played sounds, the click-through rate of the exposed tags, as well as the user's basic attribute data and the tag's basic attribute data; the text data includes the unique sound identifier, the host's unique identifier, and the tag; Generate playback session data based on behavioral data and text data; Extract labels from text data to obtain labels; Input the unique sound identifier, the unique host identifier, and the label into the word vector generation model to obtain the vector representation of the unique sound identifier, the vector representation of the unique host identifier, and the vector representation of the label; the word vector generation model is obtained by training a preset model, and the training data of the word vector generation model is constructed based on the playback session data; Determine the vector representation of the user according to the vector representation of the unique sound identifier of the playback session data, the first weight corresponding to the unique sound identifier, the vector representation of the unique host identifier of the playback session data, and the second weight corresponding to the unique host identifier; Input the user basic attribute data, the user's statistical information, the label's statistical information, the user's vector representation, and the label's vector representation as training data into the initial prediction model, and optimize the initial prediction model according to the loss function to obtain a click-through rate prediction model; The generating of the playback session data based on the behavior data and the text data includes: Generate basic playback session data based on behavioral data and text data; Generate a graph based on the basic play session data and obtain frequent subgraphs through frequent subgraph mining; Generate augmented play session data based on frequent subgraphs; The determining the vector representation of the user according to the vector representation of the unique sound identifier of the playing session data, the first weight corresponding to the unique sound identifier, the vector representation of the unique host identifier of the playing session data, and the second weight corresponding to the unique host identifier includes: Determine the vector representation of the user according to the average value of the vector representation of each unique sound identifier of the user's most recent playback session data within the set historical time period, the first weight corresponding to the unique sound identifier, the average value of the vector representation of the host unique identifier of the user's most recent playback session data within the set historical time period, and the second weight corresponding to the host unique identifier; the sum of the first weight and the second weight is 1; The vector representation of a user is determined according to the following formula: Thing user =a*Thing session声音ID +b*Thing session主播ID Among them, Vec user is the vector representation of the user, Vec session声音ID is the average value of the vector representation of each unique sound identifier of the user's most recent playback session data within the set historical time period, a is the first weight corresponding to the unique sound identifier, Vec session主播ID is the average value of the vector representation of the anchor's unique identifier of the user's most recent playback session data within the set historical time period, and b is the second weight corresponding to the anchor's unique identifier.

2. The method according to claim 1, characterized in that: The initial prediction model includes one or any combination of an xgboost model, a logistic regression model, a gradient boosting decision tree model, a convolutional neural network model, and a recursive neural network model.

3. The method according to any one of claims 1 to 2, characterized in that: The loss function includes one of a mean square error function, a mean absolute percentage error function, a root mean square error function, and a norm.

4. A click rate prediction model construction device, characterized in that: include: The acquisition module is used to obtain the user's behavior data of playing sounds within a set historical time period, the text data of the played sounds, the click rate of the exposed tags, as well as the user's basic attribute data and the tag's basic attribute data; the text data includes the unique identifier of the sound, the unique identifier of the anchor, and the tag; A session data generation module, used to generate playback session data based on behavior data and text data; The label extraction module is used to extract labels from text data to obtain labels; A first vector representation generation module is used to input the sound unique identifier, the anchor unique identifier, and the label into a word vector generation model to obtain a vector representation of the sound unique identifier, a vector representation of the anchor unique identifier, and a vector representation of the label; the word vector generation model is obtained by training a preset model, and the training data of the word vector generation model is constructed based on the playback session data; A second vector representation generating module, configured to determine a vector representation of a user according to a vector representation of a unique sound identifier of the playback session data, a first weight corresponding to the unique sound identifier, a vector representation of a unique host identifier of the playback session data, and a second weight corresponding to the unique host identifier; The model training module is used to input the user basic attribute data, the user's statistical information, the label's statistical information, the user's vector representation, and the label's vector representation as training data into the initial prediction model, and optimize the initial prediction model according to the loss function to obtain a click-through rate prediction model; The session data generation module comprises: A basic play session data generation submodule, used to generate basic play session data based on behavior data and text data; A frequent subgraph acquisition submodule is used to generate a graph based on basic play session data and obtain frequent subgraphs through frequent subgraph mining; A playback session data expansion submodule, used to generate expanded playback session data based on the frequent subgraph; The second vector representation generating module is further used to determine the vector representation of the user according to the average value of the vector representation of each sound unique identifier of the user's most recent playback session data within the set historical time period, the first weight corresponding to the sound unique identifier, the average value of the vector representation of the host unique identifier of the user's most recent playback session data within the set historical time period, and the second weight corresponding to the host unique identifier; the sum of the first weight and the second weight is 1; The vector representation of a user is determined according to the following formula: Thing user =a*Thing session声音ID +b*Thing session主播ID Among them, Vec user is the vector representation of the user, Vec session声音ID is the average value of the vector representation of each unique sound identifier of the user's most recent playback session data within the set historical time period, a is the first weight corresponding to the unique sound identifier, Vec session主播ID is the average value of the vector representation of the anchor's unique identifier of the user's most recent playback session data within the set historical time period, and b is the second weight corresponding to the anchor's unique identifier.

5. A computer device, characterized in that: The computer device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the click rate prediction model construction method as described in any one of claims 1-3.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for constructing a click rate prediction model according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Sorting method and device, computer equipment and storage medium

    CN113688280A

  • Entity alias mining method and device, computer equipment and storage medium

    CN113988076A