Life cycle stage prediction and model training method, device, medium and equipment
By obtaining the feature data sets and user weights of media objects and target users, combining multi-dimensional features and sample weights, and optimizing model training, the problem of low accuracy in predicting the life cycle stages of media objects in the existing technology is solved, and a more efficient life cycle is achieved. Cycle phase forecasts.
Patent Information
- Application Number
- CN202210376202.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-11
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-04-11
AI Technical Summary
Existing media object life cycle stage prediction technology has low accuracy and cannot accurately predict the current life cycle stage of a media object. It also relies on a single reference condition or a large amount of manpower, making it difficult to accurately predict the playback popularity of media objects in the early stages of their launch.
By obtaining the feature data set associated with the media object to be predicted and the target user, inputting the pre-trained stage prediction model, combined with user weights, determine the life cycle stage of the media object, and using multi-feature data sets and sample weights to optimize model training to improve prediction accuracy Spend.
It achieves more accurate prediction of life cycle stages of media objects, reduces manpower investment, can effectively predict life cycle stages of media objects in the early stages of their launch, and improves the accuracy of prediction results.
Smart Images

Figure CN114580790B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and more specifically, relate to methods, devices, media, and equipment for predicting media object lifecycle stages and model training. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the disclosure that are recited in the claims, and no description herein is admitted to be prior art by inclusion in this section.
[0003] With the development of Internet technology, media services based on Internet technology are experiencing a rapid development stage. Media services can transmit data of media objects based on Internet technology. Media objects can be songs, audio or video, etc.
[0004] Typically, a media object platform can provide users with a wealth of resources for playing media objects. Like other user-oriented products, media objects will also go through different life cycle stages after they are launched. For example, the life cycle stages of media objects can include a silent period, a growth period, and a decline period. Summary of the invention
[0005] However, the existing media object lifecycle stage prediction technology has low accuracy in predicting the lifecycle stage of a media object.
[0006] Therefore, there is a great need for a media object life cycle stage prediction method that can more accurately predict the life cycle stage of a media object.
[0007] In this context, embodiments of the present disclosure are intended to provide a method, apparatus, computer-readable storage medium, and electronic device for predicting the lifecycle phase of a media object and training a phase prediction model.
[0008] According to a first aspect of an embodiment of the present disclosure, a method for predicting a media object life cycle stage is provided, comprising:
[0009] Obtain a feature data set associated with the media object to be predicted and the target user;
[0010] Inputting the feature data set into a pre-trained stage prediction model to obtain a first prediction value of the media object to be predicted;
[0011] Determining a user weight of the target user;
[0012] Determining a second prediction value of the to-be-predicted media object according to the first prediction value and the user weight;
[0013] The current life cycle stage of the to-be-predicted media object is determined according to the second prediction value.
[0014] According to a second aspect of the embodiments of the present disclosure, a stage prediction model training method is provided, comprising:
[0015] Collecting a sample feature data set associated with a sample media object and a target user;
[0016] Determining a life cycle phase label value of the sample media object according to the life cycle information of the sample media object and the sample feature data set;
[0017] Inputting the sample feature data set into the stage prediction model to be trained to obtain a sample first prediction value of the sample media object;
[0018] Determining a loss function value according to the life cycle stage label value and the first predicted value of the sample;
[0019] The model parameters of the stage prediction model are updated according to the loss function value.
[0020] According to a third aspect of the embodiments of the present disclosure, a device for predicting a media object lifecycle stage is provided, the device comprising:
[0021] A first acquisition module is configured to acquire a feature data set associated with a media object to be predicted and a target user;
[0022] A first prediction module is configured to input the feature data set into a pre-trained stage prediction model to obtain a first prediction value of the media object to be predicted;
[0023] A first determining module is configured to determine a user weight of the target user;
[0024] A second determination module is configured to determine a second prediction value of the to-be-predicted media object according to the first prediction value and the user weight;
[0025] The third determination module is configured to determine the current life cycle stage of the to-be-predicted media object according to the second prediction value.
[0026] According to a fourth aspect of the embodiments of the present disclosure, a stage prediction model training device is provided, comprising:
[0027] A collection module, configured to collect a sample feature data set associated with a sample media object and a target user;
[0028] a fifth determining module, configured to determine a life cycle stage label value of the sample media object according to the life cycle information of the sample media object and the sample feature data set;
[0029] A model training module is configured to input the sample feature data set into a stage prediction model to be trained to obtain a sample first prediction value of the sample media object;
[0030] a sixth determination module, configured to determine a loss function value according to the life cycle stage label value and the first prediction value of the sample;
[0031] The model updating module is configured to update the model parameters of the stage prediction model according to the loss function value.
[0032] According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method of the first aspect or the second aspect is implemented.
[0033] According to the sixth aspect of the embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method of the first aspect or the second aspect mentioned above by executing the executable instructions. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0035] Figure 1 A schematic diagram of a media object life cycle stage prediction system architecture according to an embodiment of the present disclosure is shown;
[0036] Figure 2 A flow chart of a method for predicting a media object life cycle stage according to an embodiment of the present disclosure is shown;
[0037] Figure 3 A flow chart of a method for training a stage prediction model according to an embodiment of the present disclosure is shown;
[0038] Figure 4 A time information diagram showing different life cycle stages of a sample media object according to an embodiment of the present disclosure;
[0039] Figure 5 A schematic diagram showing the relationship between the number of played media objects and sample weights of a target user according to an embodiment of the present disclosure;
[0040] Figure 6 A schematic diagram of a media object life cycle stage prediction device according to an embodiment of the present disclosure is shown;
[0041] Figure 7 A schematic diagram of a stage prediction model training device according to an embodiment of the present disclosure is shown;
[0042] Figure 8 A structural diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0043] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0044] The principles and spirit of the present disclosure will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0045] Those skilled in the art will appreciate that the embodiments of the present disclosure may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may 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.
[0046] According to an embodiment of the present disclosure, a method, device, computer-readable storage medium and electronic device for predicting the phases of a media object life cycle and training a phase prediction model are provided.
[0047] In this document, any number of elements in the drawings is used for illustration rather than limitation, and any naming is used only for distinction and does not have any limiting meaning.
[0048] The principle and spirit of the present disclosure are explained in detail below with reference to several representative embodiments of the present disclosure. SUMMARY OF THE INVENTION
[0050] The inventors have found that, for media objects, the media object life cycle stage prediction technology provided by the prior art cannot accurately predict the current life cycle stage of the media object. For example, a prediction technology provided by the prior art can obtain the online time of the media object, and determine the current online days of the media object according to the online time, and distinguish the life cycle stage of the music according to the online days. This media object life cycle stage prediction technology only uses the online time of the media object as a reference condition to determine the life cycle stage of the media object. The reference condition is single, and the accuracy of the determined life cycle stage of the media object is low; another prediction technology provided by the prior art can monitor and obtain the playback popularity of the media object, and determine whether the media object has reached a certain life cycle stage according to the playback popularity and experience value. This process usually relies on a large number of operators to mark the playback popularity of the media object, which consumes manpower; at the same time, because the playback popularity of the media object will produce random fluctuations over time, this random fluctuation will only gradually stabilize after a long enough time. In the early stage of the media object's online, it is impossible to use the playback popularity to make an accurate prediction of the life cycle stage of the media object.
[0051] In view of the above, the basic idea of the present disclosure is to provide a method, device, computer-readable storage medium and electronic device for predicting the life cycle stage of a media object and training a stage prediction model, which can pre-train a stage prediction model for predicting the life cycle stage of a media object. For the media object to be predicted, a feature data set associated with the media object to be predicted and the target user can be obtained; the feature data set is input into the pre-trained stage prediction model to obtain a first prediction value of the media object to be predicted; the user weight of the target user is determined; based on the first prediction value and the user weight, a second prediction value of the media object to be predicted is determined; based on the second prediction value, the current life cycle stage of the media object to be predicted is determined. The feature data set associated with the user and the media object, as well as the user weight of the user in the prediction of the life cycle stage of the media object can be combined to more accurately estimate the current life cycle stage of the media object.
[0052] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties; and the implementation methods / examples provided in this disclosure can be combined with each other.
[0053] After introducing the basic principles of the present disclosure, various non-limiting embodiments of the present disclosure are described in detail below.
[0054] Application Scenario Overview
[0055] It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principle of the present disclosure, and the embodiments of the present disclosure are not limited in this respect. On the contrary, the embodiments of the present disclosure can be applied to any applicable scenario.
[0056] The present disclosure provides an architecture diagram of a media object life cycle stage prediction system. Figure 1 As shown, the system architecture 100 may include: a user terminal 110 and a server 120. The user terminal 110 may be a terminal device of a media object platform operator, and the terminal device 110 may be a smart phone, a tablet computer, a personal computer, or a smart wearable device. The server 120 may be a server of the media object platform. The user terminal 110 may establish a network connection with the server 120 to perform a media object life cycle stage prediction.
[0057] Among them, the user terminal 110 can send a life cycle prediction request to the server 120, and the server 120 can receive the life cycle prediction request, and obtain the identifier of the media object to be predicted in the life cycle prediction request, and obtain a feature data set associated with the media object to be predicted and the target user; input the feature data set into a pre-trained stage prediction model to obtain a first prediction value of the media object to be predicted; determine the user weight of the target user; determine the second prediction value of the media object to be predicted based on the first prediction value and the user weight; determine the current life cycle stage of the media object to be predicted based on the second prediction value.
[0058] Exemplary Methods
[0059] The exemplary embodiment of the present disclosure provides a method for predicting the life cycle stage of a media object, which can be applied to a server, such as Figure 2 As shown, the media object life cycle stage prediction method may include the following steps S201 to S205:
[0060] Step S201, obtaining a feature data set associated with the media object to be predicted and the target user;
[0061] Step S202, inputting the feature data set into a pre-trained stage prediction model to obtain a first prediction value of the media object to be predicted;
[0062] In the embodiment of the present disclosure, the first prediction value is used to represent the initial prediction value of the current life cycle stage of the media object to be predicted.
[0063] Step S203, determining the user weight of the target user;
[0064] In the embodiment of the present disclosure, the user weight is used to indicate the importance of the user to the prediction of the life cycle stage of the media object to be predicted.
[0065] Step S204, determining a second prediction value of the media object to be predicted according to the first prediction value and the user weight;
[0066] In the embodiment of the present disclosure, the second prediction value is used to represent the final prediction value of the current life cycle stage of the media object to be predicted.
[0067] Step S205: determining the current life cycle stage of the to-be-predicted media object according to the second prediction value.
[0068] In summary, the media object life cycle stage prediction method provided in the embodiments of the present disclosure provides a method for predicting the media object life cycle stage in a user dimension, which can determine the initial prediction value of the current life cycle stage of the media object to be predicted based on the feature data set associated with the media object to be predicted and the target user. Furthermore, by combining the initial prediction value and the user's weight in the media object life cycle stage prediction process, the final prediction value of the current life cycle stage of the media object to be predicted is determined, which can improve the accuracy of the media object life cycle stage prediction results.
[0069] In an optional embodiment, in the above step S201, the server may obtain a feature data set that associates the media object to be predicted with the target user.
[0070] In the disclosed embodiment, the media object to be predicted is a media object that needs to be predicted for the current life cycle stage, and the media object may be audio or video, etc. The target user is a user selected from all playback users associated with the media object to be predicted for predicting the current life cycle stage of the media object; the feature data set associated with the media object to be predicted and the target user may include a media object feature data set of the media object to be predicted, a user feature data set of the target user, and a user behavior feature data set of the target user with respect to the media object to be predicted.
[0071] In an optional implementation, the process of determining the target user may include: determining the playback information of all playback users associated with the media object to be predicted as of the current moment, and for each playback user, determining whether the playback user is the target user based on the playback information. The current moment may be the moment when the server obtains the life cycle prediction request, and the playback information may include playback duration, playback times, and / or first playback time, etc.
[0072] The process of determining whether a playback user is a target user according to the playback information of each playback user may include: if the playback duration is greater than a first preset duration, determining the playback user is a target user; or, if the time difference between the first playback moment and the online moment of the media object to be predicted is less than a time threshold, and the number of playbacks is greater than a preset number of playbacks, determining the playback user is a target user. The first preset duration and the preset number of playbacks may be determined based on actual needs, and the embodiments of the present disclosure do not limit this.
[0073] In an optional implementation, the first prediction value of the media object to be predicted needs to be determined based on the stage prediction model. During the training process of the stage prediction model, for the sample media object, the target user of the sample media object can be determined, and the stage prediction model can be trained using the sample feature data set associated with the target user. In the actual application of the stage prediction model, in order to improve the accuracy of the predicted value of the life cycle stage of the determined media object to be predicted, the target user of the sample media object can be determined as the target user of the media object to be predicted. The process of determining the target user can include: obtaining all the playback users associated with the determined sample media object during the training process of the stage prediction model; obtaining the playback information of the sample media object by each playback user as of the time when the sample feature data set is collected; and determining whether the playback user is the target user based on the playback information, wherein the playback information can include the playback duration, the number of playbacks and / or the first playback time, etc. For the media object to be predicted, the feature data set associated with the same target user as the training stage prediction model can be used to predict the life cycle stage of the sample media object to be predicted, thereby further improving the accuracy of the determined life cycle stage of the media object to be predicted.
[0074] Among them, the process of determining whether the playing user is the target user based on the playing information may include: if the playing time is greater than a first preset time, determining that the playing user is the target user; or, if the time difference between the first playing time and the online time of the sample media object is less than a time threshold, and the number of playing times is greater than a preset number of playing times, then the playing user can be determined to be the target user.
[0075] In an optional implementation, the process of obtaining a feature data set associated with the media object to be predicted and the target user may include: obtaining a media object feature data set of the media object to be predicted, a user feature data set of the target user, and a user behavior feature data set of the target user with respect to the media object to be predicted; determining the media object feature data set of the media object to be predicted, the user feature data set of the target user, and the user behavior feature data set of the target user with respect to the media object to be predicted as a feature data set associated with the media object to be predicted and the target user. For the media object to be predicted, the feature information of the media object to be predicted itself, the user feature information of the target user, and the behavior feature information of the target user with respect to the predicted object may be combined into a multivariate feature data set to further improve the accuracy of determining the life cycle stage of the media object to be predicted.
[0076] Among them, the media object feature data set of the media object to be predicted may include: the online time of the media object to be predicted, the media object label, the average effective playback number of the month-on-month, the interaction rate, the playback path distribution, etc. Among them, for audio, the media object label may include the style, age, language and / or artist information of the media object, and for video, the media object label may include the video type, video duration and / or video publisher information, etc.; the average effective playback number of the week-on-week comparison may include the average effective playback number of the week-on-week comparison, the average effective playback number of the month-on-month comparison and / or the average effective playback number of the month-on-week comparison, the effective playback number refers to the playback behavior with a playback duration greater than the second preset duration, wherein the second preset duration can be determined based on actual needs, and the embodiment of the present disclosure does not limit this. For example, for audio, the second preset duration can be 30 seconds; the interaction rate may include the collection rate, the like rate and the forwarding rate, wherein the collection rate may be the ratio of the number of playbacks with the collection behavior to the total number of playbacks, and the like rate and the forwarding rate are similar to the collection rate in determining the method, and the embodiment of the present disclosure does not elaborate on this. The playback path refers to the channel through which the media object to be predicted is played by the target user, for example, by searching for the media object to be predicted, or by clicking on a link shared by others to play the media object to be predicted, or by clicking on the recommended information of the media object platform to play the media object to be predicted.
[0077] The user feature data set of the target user may include the target user's demographic attributes, content asset attributes, portrait tags and / or media object preferences, etc., wherein the demographic attributes may include the target user's account ID, gender, age, occupation, education level and / or zodiac sign, etc., and the content asset attributes may include the number of content assets of the target user on the media object platform, and the number of content assets may be the number of media object lists created, the number of comments published on the media object, the number of media object uploads and / or the number of dynamic releases, etc. The portrait tag is determined based on the target user's playback information of the media object. For example, for a target user who creates a lot of playlists, the target user's portrait tag may be determined as a playlist expert; for a target user who frequently uploads popular science videos, the target user's portrait tag may be determined as a popular science expert, etc.; the media object preference is the target user's preference for different types or styles of media objects.
[0078] The user behavior feature data set of the target user for the media object to be predicted may include the target user's first playback date of the predicted media object, the target user's first playback path of the predicted media object, the target user's last playback date of the predicted media object, the target user's last playback path of the predicted media object, the target user's first interaction time with the predicted media object, for example, the target user's first collection time, first sharing time, etc., the target user's playback days, playback times and / or playback duration, etc.
[0079] In an optional implementation, the process of the server acquiring the feature data set associated with the media object to be predicted and the target user may include: determining the feature data set acquisition period, determining the feature data set acquisition time in the feature data set acquisition period, and acquiring the feature data set associated with the media object to be predicted and the target user at the feature data set acquisition time. The feature data set acquisition period is the time between the start time of the feature data set acquisition period and the end time of the feature data set acquisition period. The end time of the feature data set acquisition period may be the current time, or any time before the current time. The start time of the feature data set acquisition period is a time that is earlier than the third preset time of the end time of the feature data set acquisition period. The feature data set acquisition time may be any time in the feature data set acquisition period. For example, the end time of the feature data set acquisition period is 10:0:00 on March 15, 2022; the third preset time is 10 days, and the start time of the feature data set acquisition period is 10:0:00 on March 6, 2022. It should be noted that the start time of the feature data set acquisition period cannot be earlier than the online time of the song to be predicted, and the third preset time can be determined based on actual needs, which is not limited in the embodiment of the present disclosure.
[0080] In an optional embodiment, in the above step S202, the server may input the feature data set into a pre-trained stage prediction model to obtain a first prediction value of the media object to be predicted.
[0081] In the disclosed embodiment, the stage prediction model can predict the first prediction value of the current life cycle stage of the media object to be predicted based on the feature data set of the target user and the pre-trained stage prediction model. Since the process of determining the initial prediction value takes into account the feature information of the target user, the accuracy of the determined first prediction value can be improved.
[0082] In an optional embodiment, if Figure 3 As shown, the stage prediction model training method may include steps S301 to S305:
[0083] Step S301, collecting a sample feature data set associated with a sample media object and a target user;
[0084] In the disclosed embodiment, the sample media object is a media object used for the prediction model in the training phase. The sample media object is a media object with a complete life cycle phase. The life cycle generally includes multiple life cycle phases. For example, the life cycle may include a silent phase, a growth phase, and a decline phase. The sample feature data set associated with the sample media object and the target user may include a media object feature data set of the sample media object, a user feature data set of the target user, and a user behavior feature data set of the target user for the sample media object.
[0085] In an optional embodiment, the process of collecting a sample feature data set associated with a sample media object and a target user may include: determining a sample feature data set collection time within a sample feature data set collection period, and obtaining a feature data set associated with the sample media object and the target user at the sample feature data set collection time.
[0086] Among them, the sample feature data set collection period can be the time between the start time of the sample feature data set collection period and the end time of the sample feature data set collection period, and the sample feature data set collection time can be any time in the sample feature data set collection period. In order to obtain a richer sample feature data set, the start time of the sample feature data set collection period can be the start time of the life cycle of the sample media object, and the end time of the sample feature data set collection period can be the end time of the life cycle of the sample media object. For example, if the life cycle of the sample media object includes a silent stage, a growth stage, and a decline stage, the sample feature data set collection period can include the time from the start time of the silent stage of the sample media object to the end time of the decline stage of the sample media object. The sample feature data set collection time can be any time in different life cycle stages of the life cycle of the sample media object.
[0087] For example, Figure 4 As shown, Figure 4 The time information diagram of different life cycle stages of a sample media object is shown, wherein the horizontal axis is time and the vertical axis is the 7-day average effective playback times of the sample media object. The life cycle of the sample media object includes a silent stage 401, a growth stage 402 and a decline stage 403, wherein the start time of the silent stage 401 is October 1 and the end time of the silent stage 401 is November 19; the start time of the growth stage 402 is November 20 and the end time of the growth stage 402 is December 8; the start time of the decline stage 403 is December 9 and the end time of the decline stage 403 is January 7 of the following year. In order to obtain a richer sample feature data set, the 7-day average effective playback times in the sample feature data set can be collected from October 1 to November 19 in the silent stage, from November 20 to December 8 in the growth stage, and from December 9 to January 7 of the following year in the decline stage.
[0088] Step S302, determining a life cycle stage label value of the sample media object according to the life cycle information of the sample media object and the sample feature data set;
[0089] In the disclosed embodiments, the target user's playback behavior of the sample media object may generally involve multiple life cycle stages of the sample media object. For the sample media object associated with the target user, its label value cannot be determined as one of the multiple life cycle stages. It is necessary to determine the life cycle stage label value of the sample media object in combination with the life cycle information of the sample media object and the time information of the target user playing the sample media object at different life cycle stages in the sample feature data set.
[0090] In an optional implementation, the process of determining the life cycle stage label value of the sample media object by the server according to the life cycle information of the sample media object and the sample feature data set may include: obtaining the playback time information of the sample media object by the target user in the sample feature data set; determining the playback time of the sample media object by the target user in at least one target life cycle stage according to the playback time information and the start time of each life cycle stage of the sample media object; determining the proportion of the playback time of the sample media object by the target user in the target life cycle stage according to the playback time of the target user in each target life cycle stage and the duration of the target life cycle stage; determining the life cycle stage label value of the sample media object according to the encoding value of each target life cycle stage and the proportion of the playback time of the sample media object by the target user in the target life cycle stage. Among them, the target life cycle stage is the life cycle stage in which the target user has the sample media object playback behavior among the multiple life cycle stages of the sample media object. The encoding value of the life cycle stage is the identification value set for different life cycle stages in the life cycle of the media object. The encoding value of the life cycle stage can be determined based on actual needs, and the embodiments of the present disclosure are not limited to this. In the process of determining the life cycle stage label value of the sample media object, the user's playback behavior of the sample media object is taken into consideration, so that a life cycle stage label value that is more consistent with the actual playback situation of the sample media object can be determined.
[0091] It should be noted that, since the multiple life cycle stages in the life cycle of a media object is a continuously changing process, for example, if the life cycle includes a silent stage, a growth stage, and a decay stage, the life cycle of the media object generally enters the growth stage from the silent stage, and then enters the decay stage from the growth stage. Therefore, in the process of determining the coding value of the life cycle stage, the coding value needs to be determined for multiple life cycle stages in ascending order according to the sequence of the life cycle stages that the media object can go through. For example, if the life cycle includes a silent stage, a growth stage, and a decay stage, the coding value of the silent stage can be 0, the coding value of the growth stage can be 1, and the coding value of the decay stage can be 2; or, the coding value of the silent stage can be 1, the coding value of the growth stage can be 2, and the coding value of the decay stage can be 3.
[0092] In an optional embodiment, the process of determining the life cycle stage label value of a sample media object based on the coding value of each target life cycle stage and the proportion of the target user's playback time of the sample media object in the target life cycle stage may include: for each target life cycle stage, determining the product of the coding value of the target life cycle stage and the proportion of the target user's playback time of the sample media object in the target life cycle stage, taking the third sum of the products corresponding to each target life cycle stage, determining the fourth sum of the proportion of the playback time of each target life cycle stage, determining the ratio of the third sum to the fourth sum, and obtaining the life cycle stage label value of the sample media object.
[0093] For example, assuming that the life cycle of the sample media object includes a silent stage, a growth stage, and a decay stage, the coding value of the silent stage is 1, the coding value of the growth stage is 2, and the coding value of the decay stage is 3. The silent stage of the sample media object includes October 1 to November 19, the growth stage includes November 20 to December 8, and the decay stage includes December 9 to January 7 of the following year. Among them, the user starts playing the sample media object on December 4, and no longer plays the sample media object after December 9 and 27. It can be determined that the target user played the sample media object in the growth stage and the decline stage of the sample media object, and the target life cycle stages associated with the target user are the growth stage and the decline stage of the sample media object. For the sample media object, the target user's playback time in the growth stage accounts for approximately 1 / 4, and the target user's playback time in the decline stage accounts for 1 / 2. It can be determined that the product of the coding value 2 of the growth stage and the target user's playback time of approximately 1 / 4 in the growth stage is 1 / 2, and the product of the coding value 3 of the decline stage and the target user's playback time of 1 / 2 in the decline stage is 3 / 2. The third sum 2 of the product 1 / 2 corresponding to the growth stage and the product 3 / 2 corresponding to the decline stage is determined; the fourth sum 3 / 4 of the target user's playback time of approximately 1 / 4 in the growth stage and 1 / 2 in the decline stage is determined, and the ratio of the third sum 2 to the fourth sum 3 / 4 is determined, and the life cycle stage label value of the sample media object is approximately 2.67.
[0094] Step S303, inputting the sample feature data set into the stage prediction model to be trained to obtain a sample first prediction value of the sample media object;
[0095] In the disclosed embodiment, the multiple life cycle stages in the life cycle of a media object are a continuously changing process. Therefore, determining the life cycle stage of a media object is not simply distinguishing which life cycle stage the media object is in, but also determining the specific sub-stage of the media object in its life cycle stage, for example, the media object is in the initial stage, middle stage or late stage of its life cycle stage. Therefore, the stage prediction model can be a linear regression model, for example, the stage prediction model can be a lightGBM (Light GradientBoosting Machine) model, a logistic regression (Logistic Regression, LR) model or a generalized linear model (generalized linear model, GLM).
[0096] In an optional implementation, the sample feature data set is input into a stage prediction model to be trained to obtain a sample first prediction value of the sample media object.
[0097] It should be noted that before the sample feature data set is input into the stage prediction model to be trained, the sample feature data set can be preprocessed. The process of preprocessing the sample feature data set may include: normalizing the numerical data in the sample feature data set, and performing one-hot encoding (Onehot-Encoding) on the text data in the sample feature data set, so as to facilitate the stage prediction model to process the sample feature data set and improve the efficiency of obtaining the sample first prediction value of the sample media object.
[0098] Step S304, determining a loss function value according to the life cycle stage label value and the first prediction value of the sample;
[0099] In the disclosed embodiment, the loss function value is a function of the loss function value for the life cycle stage label value of the sample media object and the sample first prediction value output by the stage prediction model. The loss function value is used to evaluate the difference between the life cycle stage label value of the sample media object and the sample first prediction value output by the stage prediction model. The loss function value can be used to evaluate whether the model has been trained. It should be noted that in the disclosed embodiment, the type of loss function can be determined according to actual needs. For example, the loss function can be a mean square error loss function (MSE). Among them, the mean square error loss function is:
[0100]
[0101] Among them, n represents the number of sample feature data sets, y i Represents the life cycle stage label value of the i-th sample data set among n sample feature data sets. Represents the first predicted value of the sum of the i-th sample data set among n sample feature data sets.
[0102] In an optional embodiment, the process of determining the loss function value based on the life cycle stage label value and the first prediction value of the sample may include: based on the loss function, processing the life cycle stage label value and the first prediction value of the sample to obtain the loss function value.
[0103] Step S305, updating the model parameters of the stage prediction model according to the loss function value.
[0104] In the disclosed embodiment, the sample feature data set used to train the stage prediction model usually includes multiple sample feature data sets, which are related to the media object playback behavior of the target user. The media object playback behavior of different target users is different, and the importance of sample feature data generated by different media object playback behaviors in the media object life cycle prediction process is different; in the stage model training process, if the sample feature data sets generated by different media object playback behaviors are treated indiscriminately, then in the stage model training process, the adjustment degree of the model parameters based on each sample feature data set is consistent, which will cause the first prediction value obtained by the trained stage prediction model in the actual application process to be low in accuracy. Therefore, a sample weight can be set for each sample feature data set, so that in the stage model training process, the model parameters can be adjusted according to the importance of each sample feature data set, thereby improving the accuracy of the first prediction value obtained by the stage prediction model in the actual application process.
[0105] Among them, since the media object playback behavior of the target user determines the importance of the sample feature data associated with the target user in the media object life cycle prediction process, the sample weight of the sample feature data set associated with the target user can be determined based on the media object playback behavior information of the target user, wherein the media object playback behavior information may include the number of media objects played by the target user during the sample feature data set collection period; or the length of time the target user has played the media object during the sample feature data set collection period, etc.
[0106] In an optional embodiment, the media object playback behavior information includes the number of media objects that the target user has played during the sample feature data set collection period. Based on the target user's media object playback behavior information, the process of determining the sample weight of the sample feature data set associated with the target user may include: obtaining the number of media objects that the target user has played during the sample feature data set collection period; and determining the sample weight of the sample feature data set associated with the target user based on the number of played media objects. It should be noted that the media objects that the target user has played during the sample feature data set collection period include all media objects that the target user has played during the sample feature data set collection period. The sample weight can be determined based on the number of media objects that the user has played. By taking the user behavior into consideration in the process of determining the sample weight, a more reliable sample weight can be determined to train a stage prediction model that can more accurately determine the first prediction value of the media object to be predicted.
[0107] It should be noted that if the media object playback behavior information includes the number of media objects that the target user has played during the sample feature data set collection period, in actual applications, when the number of media objects that the target user has played during the sample feature data set collection period is more or less, the importance of the sample feature data associated with the target user in the media object life cycle prediction process is not much different. Therefore, the sample weight of the sample feature data set associated with the target user can be determined based on the sigmoid function. The process of determining the sample weight of the sample feature data set associated with the target user based on the number of played media objects can include obtaining the sample weight of the sample feature data set associated with the target user based on the number of played media objects and the first formula. Among them, the first formula is:
[0108] weight = 1 / (1+e -(songs-250) / 50 );
[0109] Among them, weight is the sample weight, and songs is the number of played media objects.
[0110] like Figure 5 As shown, Figure 5 A schematic diagram showing the relationship between the number of played media objects and sample weights of a target user is shown, wherein the sample weights are determined based on the sigmoid function and the number of played media objects. Figure 5It can be seen that when the number of played media objects is small, the corresponding sample weight difference is small. When the number of played media objects increases, the corresponding sample weight difference also increases. When the number of played media objects is large, the corresponding sample weight difference is also small. It can be seen that the sample weight corresponding to the number of played media objects determined based on the sigmoid function is consistent with the changing trend of the importance of sample feature data associated with target users in the process of media object life cycle prediction in actual applications.
[0111] It should also be noted that in the disclosed embodiment, the model parameters include a first model parameter and a second model parameter, the first model parameter is a parameter that needs to be learned during the stage prediction model training process, such as the coefficient in the linear regression model, or the weight and bias in the neural network, etc., and the second model parameter is a parameter used to determine the stage prediction model, for example, the learning rate of the stage prediction model, the number of iterations, the number of network layers, the number of neurons in each layer, etc., wherein the sample weight belongs to the second model parameter. It can be understood that after the stage prediction model training starts, in the process of inputting the sample feature data set into the stage prediction model to be trained, the sample weight of the sample feature data set can be used to update the sample weight in the second model parameter.
[0112] In an optional implementation, since the training process of the stage model needs to consider the sample weights of the sample feature data set, in each training process, the loss function needs to be multiplied by the sample weights of the sample feature data set used in this iterative training process. The process of updating the model parameters of the stage prediction model according to the loss function value may include: if the loss function value is greater than or equal to the preset loss function threshold, then determine the loss function and the sample weight to obtain an updated loss function, then determine the gradient value of the updated loss function with respect to the stage learning model, then determine the product of the gradient value and the model learning rate, and finally determine the difference between the model parameters of the stage prediction model and the product to obtain the updated model parameters of the stage prediction model. Repeat the above steps S303 to S305 until the loss function value is less than the preset loss function threshold, and it is determined that the training of the stage prediction model is completed.
[0113] It should be noted that in the embodiments of the present disclosure, during the training of the stage prediction model, for the sample feature data set, in the process of determining its life cycle stage label value, the user's playback behavior of the sample media object is taken into account, so that a life cycle stage label value that is more in line with the actual playback situation of the sample media object can be determined, which can further improve the accuracy of the first prediction value of the media object to be predicted determined by the trained stage prediction model in actual applications.
[0114] In an optional implementation, the server may input the feature data set into a pre-trained stage prediction model to obtain a first prediction value of the media object to be predicted.
[0115] In an optional embodiment, in the above step S203, the server may determine the user weight of the target user.
[0116] In the disclosed embodiment, the user weight is related to the loss function value determined based on the sample feature data set associated with the target user during the model training process.
[0117] In an optional implementation, the process of the server determining the user weight of the target user may include: obtaining a loss function value determined based on a sample feature data set associated with the target user during the training process of the stage prediction model; obtaining the number of sample media objects associated with the target user collected during the sample feature data set collection period; and determining the user weight of the target user based on the loss function value and the number of sample media objects. The user weight may be determined by the loss function value associated with the target user, thereby obtaining a user weight that is more consistent with the actual influence of the target user.
[0118] Wherein, if there are multiple sample feature data sets associated with the target user, the process of determining the user weight of the target user according to the loss function value and the number of sample media objects may include: determining the total loss function value based on the sum of the loss function values corresponding to the target user; then determining the ratio of the total loss function value to the number of sample media objects; and finally determining the inverse of the ratio to obtain the user weight of the target user. The user weight may be determined by using multiple loss function values associated with the target user to obtain a user weight that is more consistent with the actual influence of the target user.
[0119] For example, the process of determining the user weight of the target user according to the loss function value and the number of sample media objects may include: obtaining the user weight of the target user according to the loss function value, the number of sample media objects and a second formula. The second formula is:
[0120]
[0121] Among them, W is the user weight of the target user, Li is the loss function value corresponding to the i-th sample feature data set among the m sample feature data sets associated with the target user, and S is the number of sample media objects associated with the target user collected during the sample feature data set collection period.
[0122] In an optional embodiment, after the stage prediction model is trained, the user weight of each target user can be pre-determined based on the above method and a user weight information table can be generated. The server can then determine the user weight of the target user in a process that may include: querying and obtaining the user weight of the target user in the user weight information table.
[0123] In an optional embodiment, in the above step S204, the server may determine the second prediction value of the to-be-predicted media object according to the first prediction value and the user weight.
[0124] In the disclosed embodiment, for the media object to be predicted, it is necessary to consider the actual influence of the target user on determining the current life cycle stage of the media object to be predicted, so as to improve the accuracy of the second prediction value of the media object to be predicted.
[0125] In an optional implementation, the number of target users is at least two, and the second predicted value of the media object to be predicted is determined according to the predicted value of the life cycle stage to be processed and the user weight, including: determining a first sum of the product of the first predicted value associated with each target user and the user weight; determining a second sum of the user weights of multiple target users; determining a ratio of the first sum to the second sum, and obtaining the second predicted value of the media object to be predicted. The second predicted value of the media object to be predicted can be determined using the feature data sets and user weights of multiple target users, further improving the accuracy of the final predicted value of the life cycle stage currently in which the media object to be predicted is determined.
[0126] For example, the process of determining the second predicted value of the media object to be predicted according to the predicted value of the life cycle stage to be processed and the user weight may include: determining the second predicted value of the media object to be predicted according to the predicted value of the life cycle stage to be processed, the user weight and a third formula, wherein the third formula is:
[0127]
[0128] in, is the second predicted value of the media object to be predicted, P i is the first prediction value of the i-th target user among multiple target users t, W i is the user weight of the i-th target user among multiple target users t.
[0129] In an optional implementation, in the above step S205, the server may determine the current life cycle stage of the to-be-predicted media object according to the second prediction value.
[0130] In the disclosed embodiment, the life cycle of a media object may include multiple life cycle stages, and the current life cycle stage of the media object to be predicted may be determined based on the second prediction value of the media object to be predicted and the encoding values corresponding to the multiple life cycle stages of the media object.
[0131] In an optional embodiment, the process by which the server determines the current life cycle stage of the media object to be predicted based on the second prediction value may include: obtaining the coding value of each life cycle stage of the media object, determining at least one coding value among the coding values of each life cycle stage of the media object that is less than or equal to the second prediction value, obtaining at least one first alternative coding value, determining the maximum coding value among the at least one first alternative coding value, obtaining a first target coding value, and determining the life cycle stage corresponding to the first target coding value as the current initial life cycle stage of the media object to be predicted.
[0132] Further, the encoding value of at least one life cycle sub-stage of the target life cycle stage is obtained, at least one encoding value of the encoding value of at least one life cycle sub-stage is determined to be less than or equal to the second prediction value, at least one second candidate encoding value is obtained, the maximum encoding value of at least one second candidate encoding value is determined, and the second target encoding value is obtained, and the life cycle sub-stage corresponding to the second target encoding value is determined as the current life cycle stage of the media object to be predicted. Among them, the target life cycle stage is the life cycle stage corresponding to the first target encoding value.
[0133] For example, if the life cycle stages of a media object include a silent stage, a growth stage, and a decay stage, the coding value of the silent stage is 1, the coding value of the growth stage is 2, the coding value of the decay stage is 3, and the second prediction value is 2.89, then it can be determined that the coding value 1 of the silent stage and the coding value 2 of the growth stage are less than or equal to the second prediction value 2.89, and the coding value 1 of the silent stage and the coding value 2 of the growth stage are determined as two first alternative coding values. Since the coding value 2 of the growth stage is the maximum coding value of the two first alternative coding values, it can be determined that the song to be predicted is currently in the growth stage.
[0134] Further, it can be determined that the target life cycle stage is the growth stage, wherein the code values of the three life cycle sub-stages of the growth stage are respectively 2.00 for the initial stage of the growth stage, 2.33 for the middle stage of the growth stage, and 2.66 for the late stage of the growth stage. Since the code value 2.00 for the initial stage of the growth stage, the code value 2.33 for the middle stage of the growth stage, and the code value 2.66 for the late stage of the growth stage are all less than or equal to the second prediction value 2.89, the code value 2.00 for the initial stage of the growth stage, the code value 2.33 for the middle stage of the growth stage, and the code value 2.66 for the late stage of the growth stage are determined as three second candidate code values, and since the code value 2.66 for the late stage of the growth stage is the maximum code value among the three second candidate code values, it can be determined that the song to be predicted is currently in the late stage of the growth stage.
[0135] Exemplary Devices
[0136] After introducing the method of the exemplary embodiment of the present disclosure, next, refer to Figure 6 and Figure 7 A device according to an exemplary embodiment of the present disclosure is described.
[0137] The present disclosure provides a device for predicting the life cycle stage of a media object. Figure 6 As shown, the life cycle stage prediction device 600 includes:
[0138] The first acquisition module 601 is configured to acquire a feature data set associated with a media object to be predicted and a target user;
[0139] The first prediction module 602 is configured to input the feature data set into a pre-trained stage prediction model to obtain a first prediction value of the media object to be predicted;
[0140] A first determination module 603 is configured to determine a user weight of a target user;
[0141] A second determination module 604 is configured to determine a second prediction value of the to-be-predicted media object according to the first prediction value and the user weight;
[0142] The third determination module 605 is configured to determine the current life cycle stage of the to-be-predicted media object according to the second prediction value.
[0143] Optionally, the number of target users is at least two, and the second determining module 604 is configured to:
[0144] Determining a first sum of the products of a first prediction value and a user weight associated with each target user;
[0145] Determine a second sum value of user weights of multiple target users;
[0146] The ratio of the first sum value to the second sum value is determined to obtain a second predicted value of the media object to be predicted.
[0147] Optionally, the first determining module 603 is configured to:
[0148] Obtaining a loss function value determined based on a sample feature data set associated with a target user during the training process of the stage prediction model;
[0149] Obtaining the number of sample media objects associated with the target user collected during the sample feature data set collection period;
[0150] The user weight of the target user is determined based on the loss function value and the number of sample media objects.
[0151] Optionally, the number of sample feature data sets associated with the target user includes multiple ones, and the first determining module 602 is configured to:
[0152] Determine the total loss function value based on the sum of the loss function values corresponding to the target users;
[0153] Determining a ratio of a total loss function value to a number of sample media objects;
[0154] The reciprocal of the ratio is determined to obtain the user weight of the target user.
[0155] Optionally, the first acquisition module 601 is configured to:
[0156] Acquire a media object feature dataset of the media object to be predicted, a user feature dataset of the target user, and a user behavior feature dataset of the target user with respect to the media object to be predicted;
[0157] The media object feature data set, the user feature data set and the user behavior feature data set are determined as feature data sets associated with the media object to be predicted and the target user.
[0158] Optional, such as Figure 6 As shown, the life cycle stage prediction device 600 also includes: A fourth determination module 606, configured to:
[0159] Obtaining all playback users associated with the determined sample media object during the training process of the stage prediction model;
[0160] Obtaining playback information of each playback user for the sample media object;
[0161] Determine whether the playing user is the target user based on the playing information.
[0162] The present disclosure provides a stage prediction model training device, such as Figure 7 As shown, the stage prediction model training device 700 includes:
[0163] The collection module 701 is configured to collect sample feature data sets associated with sample media objects and target users;
[0164] A fifth determination module 702 is configured to determine a life cycle stage label value of the sample media object according to the life cycle information of the sample media object and the sample feature data set;
[0165] The model training module 703 is configured to input the sample feature data set into the stage prediction model to be trained to obtain a sample first prediction value of the sample media object;
[0166] The sixth determination module 704 is configured to determine a loss function value according to the life cycle stage label value and the first prediction value of the sample;
[0167] The model updating module 705 is configured to update the model parameters of the stage prediction model according to the loss function value.
[0168] Optionally, the life cycle includes multiple life cycle stages, and the life cycle information includes the start time and duration of each life cycle stage. The fifth determining module 702 is configured to:
[0169] Obtaining the playback time information of the sample media object by the target user in the sample feature data set;
[0170] Determine the playing time of the sample media object by the target user in at least one target life cycle stage according to the playing time information and the starting time of each life cycle stage of the sample media object;
[0171] Determine the proportion of the target user's playback time of the sample media object in the target life cycle stage according to the target user's playback time in each target life cycle stage and the duration of the target life cycle stage;
[0172] The life cycle stage label value of the sample media object is determined according to the encoding value of each target life cycle stage and the proportion of the target user's playback time of the sample media object in the target life cycle stage.
[0173] Optionally, model parameters include sample weights, such as Figure 7 As shown, the stage model training device also includes a seventh determination module 706, which is configured to:
[0174] Obtain the number of media objects played by the target user during the sample feature data set collection period;
[0175] The sample weights are determined based on the number of media objects played.
[0176] In addition, other specific details of the embodiments of the present disclosure have been described in detail in the inventive implementation of the above method and will not be repeated here.
[0177] Exemplary Storage Media
[0178] The storage medium according to the exemplary embodiment of the present disclosure is described below.
[0179] In this exemplary embodiment, the above method can be implemented by a program product, such as a portable compact disk read-only memory (CD-ROM) and including program code, and can be run on a device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus, or a device.
[0180] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The 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 of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable 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.
[0181] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. 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. Readable signal media may also be any readable medium other than a 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.
[0182] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RE, etc., or any suitable combination of the foregoing.
[0183] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user computing device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (FAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0184] Exemplary Electronic Devices
[0185] refer to Figure 8 An electronic device according to an exemplary embodiment of the present disclosure is described.
[0186] Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0187] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include, but are not limited to: at least one processing unit 810, at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), and a display unit 840.
[0188] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 810 can perform the following steps: Figure 2 The method steps shown, etc.
[0189] The storage unit 820 may include a volatile storage unit, such as a random access storage unit (RAM) 821 and / or a cache storage unit 822 , and may further include a read-only storage unit (ROM) 823 .
[0190] The storage unit 820 may also include a program / utility 824 having a set (at least one) of program modules 825, such program modules 825 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.
[0191] The bus 830 may include a data bus, an address bus, and a control bus.
[0192] The electronic device 800 can also communicate with one or more external devices 900 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), and this communication can be performed through an input / output (I / O) interface 850. The electronic device 800 also includes a display unit 840, which is connected to the input / output (I / O) interface 850 for display. In addition, the electronic device 800 can 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) through a network adapter 860. As shown in the figure, the network adapter 860 communicates with other modules of the electronic device 800 through a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0193] It should be noted that, although several modules or submodules of the device are mentioned in the above detailed description, such division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0194] In addition, although the operations of the disclosed method are described in a specific order in the 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. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0195] Although the spirit and principle of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.
Claims
1. A method for predicting the life cycle stage of a media object, characterized in that: include: Obtain a feature data set associated with the media object to be predicted and the target user; Inputting the feature data set into a pre-trained stage prediction model to obtain a first prediction value of the media object to be predicted; Obtaining a loss function value and the number of sample media objects, and determining a user weight of the target user according to the loss function value and the number of sample media objects; the loss function value is determined based on a sample feature data set associated with the target user during the training process of the stage prediction model, and the number of sample media objects is the number of sample media objects associated with the target user collected during the sample feature data set collection period; Determining a second prediction value of the to-be-predicted media object according to the first prediction value and the user weight; The current life cycle stage of the to-be-predicted media object is determined according to the second prediction value.
2. The method according to claim 1, characterized in that The number of the target users is at least two, and determining the second prediction value of the to-be-predicted media object according to the first prediction value and the user weight includes: Determining a first sum of the products of a first prediction value and a user weight associated with each of the target users; Determine a second sum value of user weights of a plurality of the target users; The ratio of the first sum value to the second sum value is determined to obtain a second predicted value of the to-be-predicted media object.
3. The method according to claim 1, characterized in that The number of sample feature data sets associated with the target user includes a plurality, and determining the user weight of the target user according to the loss function value and the number of the sample media objects includes: Determine a total loss function value based on the sum of the loss function values corresponding to the target user; Determining a ratio of the total value of the loss function value to the number of the sample media objects; The reciprocal of the ratio is determined to obtain the user weight of the target user.
4. The method according to claim 1, characterized in that The step of obtaining a feature data set associated with the media object to be predicted and the target user includes: Acquire a media object feature data set of the media object to be predicted, a user feature data set of the target user, and a user behavior feature data set of the target user with respect to the media object to be predicted; The media object feature data set, the user feature data set and the user behavior feature data set are determined as feature data sets associated with the media object to be predicted and the target user.
5. The method according to claim 1, characterized in that: The target user is determined by the following methods, including: Acquire all playback users associated with the determined sample media object during the training process of the prediction model at the stage; Acquire playback information of the sample media object by each playback user; Determine whether the playing user is a target user according to the playing information.
6. A stage prediction model training method, characterized in that: include: Collecting a sample feature data set associated with a sample media object and a target user; Determining a life cycle phase label value of the sample media object according to the life cycle information of the sample media object and the sample feature data set; Inputting the sample feature data set into the stage prediction model to be trained to obtain a sample first prediction value of the sample media object; Determining a loss function value according to the life cycle stage label value and the first predicted value of the sample; Updating the model parameters of the stage prediction model according to the loss function value; The model parameters include a first model parameter and a second model parameter, the first model parameter is a learning parameter in the training process of the stage prediction model, and the second model parameter is a parameter used to determine the stage prediction model.
7. The method according to claim 6, characterized in that The life cycle includes multiple life cycle stages, the life cycle information includes the start time and duration of each life cycle stage, and determining the life cycle stage label value of the sample media object according to the life cycle information of the sample media object and the sample feature data set includes: Acquire the playback time information of the sample media object by the target user in the sample feature data set; Determining, according to the play time information and the start time of each life cycle stage of the sample media object, the play duration of the sample media object by the target user in at least one target life cycle stage; Determine the proportion of the target user's playback time of the sample media object in the target life cycle stage according to the target user's playback time in each target life cycle stage and the duration of the target life cycle stage; The life cycle stage label value of the sample media object is determined according to the encoding value of each target life cycle stage and the proportion of the target user's playback time of the sample media object in the target life cycle stage.
8. The method according to claim 6, characterized in that The second model parameter includes a sample weight, and the method further includes: Obtaining the number of media objects played by the target user during the sample feature data set collection period; The sample weight is determined according to the number of the played media objects.
9. The method according to claim 6, characterized in that Updating the model parameters of the stage prediction model according to the loss function value includes: If the loss function value is greater than or equal to a preset loss function threshold, determining an updated loss function value; Determine the gradient value of the stage learning model based on the updated loss function value; Determine the product of the gradient value and the model learning rate, and obtain the updated model parameters of the stage prediction model based on the difference between the model parameters of the stage prediction model and the product, until the loss function value corresponding to the updated model parameters is less than the preset loss function threshold.
10. A life cycle stage prediction device, characterized in that: The device comprises: A first acquisition module is configured to acquire a feature data set associated with a media object to be predicted and a target user; A first prediction module is configured to input the feature data set into a pre-trained stage prediction model to obtain a first prediction value of the media object to be predicted; A first determination module is configured to obtain a loss function value and a number of sample media objects, and determine a user weight of the target user according to the loss function value and the number of sample media objects; the loss function value is determined based on a sample feature data set associated with the target user during the training process of the stage prediction model, and the number of sample media objects is the number of sample media objects associated with the target user collected during the sample feature data set collection period; A second determination module is configured to determine a second prediction value of the to-be-predicted media object according to the first prediction value and the user weight; The third determination module is configured to determine the current life cycle stage of the to-be-predicted media object according to the second prediction value.
11. The device according to claim 10, characterized in that The number of the target users is at least two, and the second determining module is configured to: Determining a first sum of the products of a first prediction value and a user weight associated with each of the target users; Determine a second sum value of user weights of a plurality of the target users; The ratio of the first sum value to the second sum value is determined to obtain a second predicted value of the to-be-predicted media object.
12. The device according to claim 10, characterized in that The number of sample feature data sets associated with the target user includes multiple ones, and the first determining module is configured to: Determine a total loss function value based on the sum of the loss function values corresponding to the target user; Determining a ratio of the total value of the loss function value to the number of the sample media objects; The reciprocal of the ratio is determined to obtain the user weight of the target user.
13. The device according to claim 10, characterized in that The first acquisition module is configured to: Acquire a media object feature data set of the media object to be predicted, a user feature data set of the target user, and a user behavior feature data set of the target user with respect to the media object to be predicted; The media object feature data set, the user feature data set and the user behavior feature data set are determined as feature data sets associated with the media object to be predicted and the target user.
14. The device according to claim 10, characterized in that The apparatus further includes a fourth determining module configured to: Acquire all playback users associated with the determined sample media object during the training process of the prediction model at the stage; Acquire playback information of the sample media object by each playback user; Determine whether the playing user is a target user according to the playing information.
15. A stage prediction model training device, characterized in that: include: A collection module, configured to collect a sample feature data set associated with a sample media object and a target user; a fifth determining module, configured to determine a life cycle stage label value of the sample media object according to the life cycle information of the sample media object and the sample feature data set; A model training module is configured to input the sample feature data set into a stage prediction model to be trained to obtain a sample first prediction value of the sample media object; a sixth determination module, configured to determine a loss function value according to the life cycle stage label value and the first prediction value of the sample; A model updating module is configured to update the model parameters of the stage prediction model according to the loss function value; wherein the model parameters include a first model parameter and a second model parameter, the first model parameter is a learning parameter in the training process of the stage prediction model, and the second model parameter is a parameter used to determine the stage prediction model.
16. The device according to claim 15, characterized in that The life cycle includes multiple life cycle stages, the life cycle information includes the start time and duration of each life cycle stage, and the fifth determining module is configured to: Acquire the playback time information of the sample media object by the target user in the sample feature data set; Determining, according to the play time information and the start time of each life cycle stage of the sample media object, the play duration of the sample media object by the target user in at least one target life cycle stage; Determine the proportion of the target user's playback time of the sample media object in the target life cycle stage according to the target user's playback time in each target life cycle stage and the duration of the target life cycle stage; The life cycle stage label value of the sample media object is determined according to the encoding value of each target life cycle stage and the proportion of the target user's playback time of the sample media object in the target life cycle stage.
17. The device according to claim 15, characterized in that The model parameters include sample weights, and the apparatus further includes a seventh determination module configured to: Obtaining the number of media objects played by the target user during the sample feature data set collection period; The sample weight is determined according to the number of the played media objects.
18. The device according to claim 15, characterized in that The model update module is configured as follows: If the loss function value is greater than or equal to a preset loss function threshold, determining an updated loss function value; Determine the gradient value of the stage learning model based on the updated loss function value; Determine the product of the gradient value and the model learning rate, and obtain the updated model parameters of the stage prediction model based on the difference between the model parameters of the stage prediction model and the product, until the loss function value corresponding to the updated model parameters is less than the preset loss function threshold.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 or claims 7 to 9 is implemented.
20. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 5 or claims 6 to 9 by executing the executable instructions.
