Multimedia file recommendation method, device and server
By obtaining the user's historical operation records and the playback duration parameters of multimedia files, combined with user behavior data and recommendation models, the problem of inaccurate recommendation of user interests and hobbies in the existing technology is solved, and the accuracy of multimedia file recommendation is improved.
Patent Information
- Application Number
- CN202010354372.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-29
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-04-29
AI Technical Summary
The existing technology uses segmentation functions to map the playback duration of short videos into binary user behavior data, resulting in inaccurate recommendations for users' interests and hobbies, and low recommendation accuracy.
By obtaining the user's historical operation records, the playback duration parameters are determined based on the playback duration and file duration of multimedia files, and combined with user behavior data and multimedia recommendation models, multimedia files suitable for users are recommended to improve the accuracy of recommendations.
By more accurately reflecting the user's interest in multimedia files, the accuracy of multimedia file recommendations is improved and the user experience is enhanced.
Smart Images

Figure CN113569126B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a multimedia file recommendation method, device and server. Background Art
[0002] At present, the server corresponding to the short video application obtains the historical playback record of the user to be recommended, which includes the playback time of the short video that has been played. The server maps the playback time to user behavior data with a binary data type through a segmentation function. For example, in response to the playback time exceeding the target time, it is determined that the user likes the short video, that is, the user behavior data of the user for the short video is 1; in response to the playback time not exceeding the target time, it is determined that the user does not like the short video, that is, the user behavior data of the user for the short video is 0. The server recommends short videos to the user based on the user behavior data.
[0003] However, by mapping the playback duration to user behavior data with a binary data type through a segmentation function, the user's liking for the short video can be directly determined based on the playback duration of the short video. However, different short videos have different durations, resulting in the mapped user behavior data not being able to completely match the playback duration. As a result, the short videos recommended to the user based on the user behavior data cannot accurately reflect the user's interests and hobbies, resulting in low accuracy of the recommended short videos. Summary of the invention
[0004] The embodiments of the present disclosure provide a multimedia file recommendation method, device and server, which can improve the accuracy of recommending multimedia files. The technical solution is as follows:
[0005] According to one aspect of an embodiment of the present disclosure, a method for recommending multimedia files is provided, the method comprising:
[0006] Acquire a first historical operation record of the first terminal to be recommended, where the first historical operation record is at least used to record a first multimedia file historically played by the first terminal and a playing time of the first multimedia file;
[0007] Determining a first playback duration parameter of the first multimedia file according to the first playback duration and the first file duration of the first multimedia file, wherein if the first file duration is fixed, the first playback duration parameter is positively correlated with the playback completion degree; if the playback completion degree is fixed, the first playback duration parameter is positively correlated with the first file duration, and the playback completion degree is determined based on the first playback duration and the first file duration of the first multimedia file;
[0008] Recommend a second multimedia file to the first terminal according to the first playback duration parameter and the first multimedia file.
[0009] In a possible implementation, the first historical operation record is further used to record first behavior data, where the first behavior data is behavior data of the first terminal on the first multimedia file;
[0010] The recommending a second multimedia file to the first terminal according to the first playback duration parameter and the first multimedia file includes:
[0011] determining an interest feature of the first terminal according to the first behavior data, the first multimedia file, and the first playback duration parameter;
[0012] A second multimedia file is recommended to the first terminal according to the interest feature.
[0013] In another possible implementation, the recommending a second multimedia file to the first terminal according to the first playback duration parameter and the first multimedia file includes:
[0014] determining the second multimedia file through a first multimedia recommendation model according to the first playback duration parameter and the first multimedia file, wherein the first multimedia recommendation model is used to determine the second multimedia file from a first multimedia file library according to the first playback duration and the first multimedia file;
[0015] The second multimedia file is sent to the first terminal according to the multimedia play mode of the first terminal.
[0016] In another possible implementation, the number of the second multimedia files is at least two; and sending the second multimedia files to the first terminal according to the multimedia playback mode of the first terminal includes:
[0017] If the multimedia play mode is a click-to-play mode, at least two second multimedia files are sent to the first terminal, and the first terminal is further configured to display the at least two second multimedia files in a recommendation interface in the click-to-play mode.
[0018] In another possible implementation, the number of the second multimedia files is at least two; and sending the second multimedia files to the first terminal according to the multimedia playback mode of the first terminal includes:
[0019] If the multimedia playback mode is a sliding playback mode, a target multimedia file is determined from the at least two second multimedia files, and the target multimedia file is sent to the first terminal. The first terminal is also used to play the target multimedia file when the previous multimedia file is played in the sliding playback mode.
[0020] According to another aspect of an embodiment of the present disclosure, a method for recommending multimedia files is provided, the method comprising:
[0021] Acquire sample data, the sample data including a sample multimedia file and second behavior data of the second terminal for the sample multimedia file;
[0022] Obtaining a second playback duration of the sample multimedia file played by the second terminal and a second file duration of the sample multimedia file, and determining a second playback duration parameter of the sample multimedia data according to the second playback duration and the second file duration, wherein if the second file duration is fixed, the second playback duration parameter is positively correlated with the playback completion degree, and if the playback completion degree is fixed, the second playback duration parameter is positively correlated with the second file duration, and the playback completion degree is determined based on the second playback duration and the second file duration of the sample multimedia file;
[0023] Determining a weight of the sample multimedia file according to the second playback duration parameter;
[0024] Performing model training according to the weight of the sample multimedia file, the sample multimedia file and the second behavior data to obtain a second multimedia recommendation model;
[0025] In response to receiving a multimedia file acquisition request from a third terminal to be recommended, a third multimedia file is sent to the third terminal according to the multimedia file acquisition request and the second multimedia recommendation model.
[0026] In a possible implementation manner, the sending the third multimedia file to the third terminal according to the multimedia file acquisition request and the second multimedia recommendation model includes:
[0027] Acquire, according to the multimedia file acquisition request, a second historical operation record of the third terminal, wherein the second historical operation record includes third behavior data of the third terminal on a fourth multimedia file;
[0028] Determining, according to the third behavior data, a target behavior type corresponding to the third behavior data;
[0029] According to the target behavior type, selecting a second multimedia recommendation model corresponding to the target behavior type;
[0030] Predicting, based on the fourth multimedia file, the third behavior data and the second multimedia recommendation model, the probability that the third terminal generates the target behavior type for each multimedia file in the second multimedia file library;
[0031] selecting the third multimedia file from the second multimedia file library according to the probability that the third terminal generates a target behavior type for each multimedia file;
[0032] Sending the third multimedia file to the third terminal.
[0033] According to another aspect of an embodiment of the present disclosure, a multimedia file recommendation device is provided, the device comprising:
[0034] A first acquisition module is configured to acquire a first historical operation record of a first terminal to be recommended, wherein the first historical operation record is at least used to record a first multimedia file historically played by the first terminal and a playback duration of the first multimedia file;
[0035] A first determination module is configured to determine a first playback duration parameter of the first multimedia file according to the first playback duration and a first file duration of the first multimedia file, wherein if the first file duration is fixed, the first playback duration parameter is positively correlated with the playback completion degree; if the playback completion degree is fixed, the first playback duration parameter is positively correlated with the first file duration, and the playback completion degree is determined based on the first playback duration and the first file duration of the first multimedia file;
[0036] The recommendation module is configured to recommend a second multimedia file to the first terminal according to the first playback duration parameter and the first multimedia file.
[0037] In a possible implementation, the first historical operation record is further used to record first behavior data, where the first behavior data is behavior data of the first terminal on the first multimedia file;
[0038] The recommendation module is further configured to determine the interest characteristics of the first terminal according to the first behavior data, the first multimedia file and the first playback time parameter; and recommend a second multimedia file to the first terminal according to the interest characteristics.
[0039] In another possible implementation, the recommendation module is further configured to determine the second multimedia file based on the first playback time parameter and the first multimedia file through a first multimedia recommendation model, wherein the first multimedia recommendation model is used to select the second multimedia file from a first multimedia file library based on the first playback time and the first multimedia file; and send the second multimedia file to the first terminal according to the multimedia playback mode of the first terminal.
[0040] In another possible implementation, the recommendation module is further configured to send at least two second multimedia files to the first terminal if the multimedia playback mode is a click-to-play mode, and the first terminal is further configured to display the at least two second multimedia files in the recommendation interface in the click-to-play mode.
[0041] In another possible implementation, the recommendation module is further configured to select a target multimedia file from the at least two second multimedia files and send the target multimedia file to the first terminal if the multimedia playback mode is a sliding playback mode. The first terminal is also used to play the target multimedia file in the sliding playback mode after the previous multimedia file is played.
[0042] According to another aspect of an embodiment of the present disclosure, a multimedia file recommendation device is provided, the device comprising:
[0043] A second acquisition module is configured to acquire sample data, wherein the sample data includes a sample multimedia file and second behavior data of a second terminal for the sample multimedia file;
[0044] A third acquisition module is configured to acquire a second playback duration of the sample multimedia file played by the second terminal and a second file duration of the sample multimedia file, and determine a second playback duration parameter of the sample multimedia data according to the second playback duration and the second file duration, wherein if the second file duration is fixed, the second playback duration parameter is positively correlated with the playback completion degree, and if the playback completion degree is fixed, the second playback duration parameter is positively correlated with the second file duration, and the playback completion degree is determined based on the second playback duration and the second file duration of the sample multimedia file;
[0045] A second determination module is configured to determine the weight of the sample multimedia file according to the second playback duration parameter;
[0046] A model training module is configured to perform model training according to the weight of the sample multimedia file, the sample multimedia file and the second behavior data to obtain a second multimedia recommendation model;
[0047] The sending module is configured to, in response to receiving a multimedia file acquisition request from a third terminal to be recommended, send a third multimedia file to the third terminal according to the multimedia file acquisition request and the second multimedia recommendation model.
[0048] In a possible implementation, the sending module is further configured to obtain a second historical operation record of the third terminal according to the multimedia file acquisition request, the second historical operation record including third behavior data of the third terminal on a fourth multimedia file; determine a target behavior type corresponding to the third behavior data according to the third behavior data; select a second multimedia recommendation model corresponding to the target behavior type according to the target behavior type; predict a probability of the third terminal generating the target behavior type for each multimedia file in a second multimedia file library according to the fourth multimedia file, the third behavior data and the second multimedia recommendation model; select the third multimedia file from the second multimedia file library according to the probability of the third terminal generating the target behavior type for each multimedia file; and send the third multimedia file to the third terminal.
[0049] According to another aspect of an embodiment of the present disclosure, a server is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the multimedia file recommendation method described in any possible implementation manner described above.
[0050] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is loaded and executed by a processor to implement the multimedia file recommendation method described in any possible implementation manner described above.
[0051] According to another aspect of an embodiment of the present disclosure, a computer program product is provided. When instructions in the computer program product are executed by a processor of a terminal or a server, the terminal or the server can execute the multimedia file recommendation method described in any possible implementation manner described above.
[0052] In an embodiment of the present disclosure, a first historical operation record of a first terminal to be recommended is obtained; a first playback time score of the first multimedia file is determined according to a first playback time and a first file time of the first multimedia file; and a second multimedia file is recommended to the first terminal according to the first playback time score and the first multimedia file, wherein if the first file time is fixed, the first playback time parameter is positively correlated with the playback completion degree, if the playback completion degree is fixed, the first playback time parameter is positively correlated with the first file time, the playback completion degree is determined based on the first playback time and the first file time of the first multimedia file, the playback time parameters of multimedia files with the same playback completion degree are positively correlated with the file time, the playback completion degree is determined based on the playback time and the file time of the multimedia file, so that the playback time parameters of multimedia files with the same playback completion degree are positively correlated with the file time, so that the first playback time parameter can more accurately reflect the user's interest in the multimedia file, so that the multimedia file recommended to the user according to the first playback time parameter is more accurate, thereby improving the accuracy of recommending multimedia files.
[0053] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, 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 disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0055] Figure 1 is a schematic diagram of an implementation environment according to an exemplary embodiment;
[0056] Figure 2 is a flow chart of a multimedia file recommendation method according to an exemplary embodiment;
[0057] Figure 3 is a flow chart of a multimedia file recommendation method according to an exemplary embodiment;
[0058] Figure 4 is a flow chart of a multimedia file recommendation method according to an exemplary embodiment;
[0059] Figure 5 is a schematic diagram showing a mapping relationship between file duration and playback duration parameters according to an embodiment of the present disclosure;
[0060] Figure 6is a schematic diagram showing a mapping relationship between playback completion and playback duration parameters according to an embodiment of the present disclosure;
[0061] Figure 7 is a schematic diagram showing a mapping relationship among file duration, playback completion and playback duration parameters according to an embodiment of the present disclosure;
[0062] Figure 8 is a schematic diagram showing a mapping relationship among file duration, playback completion and playback duration parameters according to an embodiment of the present disclosure;
[0063] Fig. 9 is a flow chart of a multimedia file recommendation method according to an exemplary embodiment;
[0064] Fig.10 is a flow chart of a multimedia file recommendation method according to an exemplary embodiment;
[0065] Fig.11 is a block diagram of a multimedia file recommendation device according to an exemplary embodiment;
[0066] Fig.12 is a block diagram of a multimedia file recommendation device according to an exemplary embodiment;
[0067] Fig.13 It is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION
[0068] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0069] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0070] Figure 1 is a schematic diagram of an implementation environment according to an exemplary embodiment. Figure 1, the implementation environment includes a first terminal 101 and a server 102. The first terminal 101 can be a mobile phone, a tablet computer, a wearable device, a computer or other electronic device. The server 102 can be a server 102, or a server 102 cluster composed of several servers 102, or a cloud computing service center.
[0071] The first terminal 101 and the server 102 may be connected via a wireless network. In addition, the first terminal 101 may be installed with a target application provided by the server 102. For example, the target application may be a social application, a video application, or an information browsing application, etc. The social application may be a user-generated content publishing application, etc. The video application may be a short video application, a live broadcast application, or other video playback applications, etc. The information browsing application may be a news application, etc.
[0072] The first terminal 101 can send the first historical operation record of the first terminal 101 to the server 102 through the target application. The server 102 recommends a second multimedia file to the first terminal 101 according to the first historical operation record of the first terminal 101. The first multimedia file and the second multimedia file can be multimedia files of the same type or different types. In the embodiment of the present disclosure, there is no specific limitation on this. For example, the first multimedia file and the second multimedia file can be video files or audio files. The first historical operation record at least includes the first multimedia file historically played by the first terminal 101 and the first play duration of the first multimedia file being played.
[0073] Figure 2 FIG. 1 is a flowchart of a multimedia file recommendation method according to an exemplary embodiment. Figure 2 , the multimedia file recommendation method comprises the following steps:
[0074] In step S201, a first historical operation record of a first terminal to be recommended is obtained, where the first historical operation record is at least used to record a first multimedia file historically played by the first terminal and a playing time of the first multimedia file.
[0075] In step S202, a first playback time parameter of the first multimedia file is determined according to the first playback time and the first file time of the first multimedia file, wherein if the first file time is fixed, the first playback time parameter is positively correlated with the playback completion degree; if the playback completion degree is fixed, the first playback time parameter is positively correlated with the first file time, and the playback completion degree is determined based on the first playback time and the first file time of the first multimedia file.
[0076] In step S203, a second multimedia file is recommended to the first terminal according to the first play duration parameter and the first multimedia file.
[0077] In a possible implementation, the first historical operation record is further used to record first behavior data, where the first behavior data is behavior data of the first terminal on the first multimedia file;
[0078] The method of recommending a second multimedia file to the first terminal according to the first playback duration parameter and the first multimedia file includes:
[0079] Determining an interest feature of the first terminal according to the first behavior data, the first multimedia file, and the first playback duration parameter;
[0080] A second multimedia file is recommended to the first terminal according to the interest feature.
[0081] In another possible implementation, the recommending the second multimedia file to the first terminal according to the first playback duration parameter and the first multimedia file includes:
[0082] Determine the second multimedia file through a first multimedia recommendation model according to the first playback time parameter and the first multimedia file, wherein the first multimedia recommendation model is used to determine the second multimedia file from a first multimedia file library according to the first playback time parameter and the first multimedia file;
[0083] The second multimedia file is sent to the first terminal according to the multimedia play mode of the first terminal.
[0084] In another possible implementation, the number of the second multimedia files is at least two; and sending the second multimedia files to the first terminal according to the multimedia play mode of the first terminal includes:
[0085] If the multimedia play mode is a click-to-play mode, at least two second multimedia files are sent to the first terminal, and the first terminal is further configured to display the at least two second multimedia files in a recommendation interface in the click-to-play mode.
[0086] In another possible implementation, the number of the second multimedia files is at least two; and sending the second multimedia files to the first terminal according to the multimedia play mode of the first terminal includes:
[0087] If the multimedia playback mode is a sliding playback mode, a target multimedia file is determined from the at least two second multimedia files, and the target multimedia file is sent to the first terminal. The first terminal is also used to play the target multimedia file when the previous multimedia file is played in the sliding playback mode.
[0088] In an embodiment of the present disclosure, a first historical operation record of a first terminal to be recommended is obtained; a first playback time parameter of the first multimedia file is determined according to a first playback time and a first file time of the first multimedia file; and a second multimedia file is recommended to the first terminal according to the first playback time parameter and the first multimedia file, wherein if the first file time is fixed, the first playback time parameter is positively correlated with the playback completion degree, and if the playback completion degree is fixed, the first playback time parameter is positively correlated with the first file time, the playback completion degree is determined based on the first playback time and the first file time of the first multimedia file, and the playback time parameters of multimedia files with the same playback completion degree are positively correlated with the file time, so that the first playback time parameter can more accurately reflect the user's interest in the multimedia file, so that the multimedia file recommended to the user according to the first playback time parameter is more accurate, thereby improving the accuracy of recommending multimedia files.
[0089] Figure 3 FIG. 1 is a flowchart of a multimedia file recommendation method according to an exemplary embodiment. Figure 3 , the multimedia file recommendation method comprises the following steps:
[0090] In step S301, sample data is obtained, where the sample data includes a sample multimedia file and second behavior data of the second terminal with respect to the sample multimedia file.
[0091] In step S302, the second playback duration of the sample multimedia file played by the second terminal and the second file duration of the sample multimedia file are obtained, and the second playback duration parameter of the sample multimedia data is determined according to the second playback duration and the second file duration, wherein if the second file duration is fixed, the second playback duration parameter is positively correlated with the playback completion degree; if the playback completion degree is fixed, the second playback duration parameter is positively correlated with the second file duration; and the playback completion degree is determined based on the second playback duration and the second file duration of the sample multimedia file.
[0092] In step S303, the weight of the sample multimedia file is determined according to the second playback duration parameter.
[0093] In step S304, model training is performed according to the weight of the sample multimedia file, the sample multimedia file and the second behavior data to obtain a second multimedia recommendation model.
[0094] In step S305, in response to receiving a multimedia file acquisition request from a third terminal to be recommended, a third multimedia file is sent to the third terminal according to the multimedia file acquisition request and the second multimedia recommendation model.
[0095] In a possible implementation, the sending the third multimedia file to the third terminal according to the multimedia file acquisition request and the second multimedia recommendation model includes:
[0096] Acquire, according to the multimedia file acquisition request, a second historical operation record of the third terminal, where the second historical operation record includes third behavior data of the third terminal on a fourth multimedia file;
[0097] Determining, according to the third behavior data, a target behavior type corresponding to the third behavior data;
[0098] According to the target behavior type, selecting a second multimedia recommendation model corresponding to the target behavior type;
[0099] Predicting, based on the fourth multimedia file, the third behavior data and the second multimedia recommendation model, a probability that the third terminal generates the target behavior type for each multimedia file in the second multimedia file library;
[0100] selecting the third multimedia file from the second multimedia file library according to the probability that the third terminal generates the target behavior type for each multimedia file;
[0101] The third multimedia file is sent to the third terminal.
[0102] In an embodiment of the present disclosure, a second historical operation record of a third terminal to be recommended is obtained, the second historical operation record including third behavior data of the third terminal on a fourth multimedia file; based on the fourth multimedia file and the third behavior data, a third multimedia file to be recommended is determined through a second multimedia recommendation model, and the third multimedia file is sent to the third terminal. By predicting the probability of the multimedia file generating a target behavior type, the third multimedia file that will generate the target behavior type is recommended to the third terminal, thereby improving the accuracy of recommending multimedia files to the third terminal.
[0103] Figure 4 is a flowchart of a multimedia file recommendation method according to an exemplary embodiment. This embodiment is described by taking the example of a server recommending a second multimedia file to a first terminal according to a first historical operation record of the first terminal. Figure 4 , the multimedia file recommendation method comprises the following steps:
[0104] In step S401, a first historical operation record of a first terminal to be recommended is obtained.
[0105] The first historical operation record is at least used to record the first multimedia file played by the first terminal and the first playback duration of the first multimedia file. The first historical operation record is a first historical operation record generated according to the user's operation received by the first terminal. For example, when any short video file is played in the first terminal, the first terminal can count the time point, the number of times the short video is played, and the playback duration of the short video file played by the first terminal, and record the counted information locally.
[0106] The server can obtain the first historical operation record of the first terminal through a network connection with the first terminal. The server can actively obtain the first historical operation record from the first terminal. Accordingly, the server can send a record acquisition request to the first terminal, and the first terminal sends the first historical operation record recorded to the server according to the record acquisition request. The record acquisition request can carry a target time period, and accordingly, the first terminal obtains the first historical operation record within the target time period, and sends the first historical operation record within the target time period to the server. The server can periodically send a record acquisition request to the first terminal, and the server can also send the record acquisition request to the first terminal only when receiving a multimedia recommendation indication. In the embodiments of the present disclosure, no specific limitation is made to this.
[0107] The first terminal may also actively send the first historical operation record to the server. Accordingly, the server receives the first historical operation record sent by the first terminal. The first terminal may periodically send the first historical operation record to the server, and the first terminal may also send the first historical operation record to the server when the first historical operation record is completed. In the embodiments of the present disclosure, this is not specifically limited.
[0108] In step S402, a first playback duration parameter of the first multimedia file is determined according to the first playback duration and the first file duration of the first multimedia file.
[0109] Among them, if the first file duration is fixed, the first playback duration parameter is positively correlated with the playback completion, if the playback completion is fixed, the first playback duration parameter is positively correlated with the first file duration, and the playback completion is determined based on the first playback duration and the first file duration of the first multimedia file. That is, the playback duration parameters of multimedia files with the same file duration are positively correlated with the playback completion, the playback duration parameters of multimedia files with the same playback completion are positively correlated with the file duration, and the playback completion is determined based on the playback duration and the file duration of the multimedia files. The first file duration is the total duration of the first multimedia file. In this step, the server can obtain the attribute information of the first multimedia file and obtain the first file duration of the first multimedia file from the attribute information. Correspondingly, the server can store the correspondence between the file identifiers and attribute information of multiple multimedia files. When the server obtains the first historical operation record, the file identifier of the first multimedia file is determined according to the first historical operation record, and the attribute information of the first multimedia file is obtained from the correspondence between the file identifiers and attribute information of multiple multimedia files according to the file identifier of the first multimedia file, and then the first file length of the first multimedia file is determined from the attribute information.
[0110] Wherein, the server can determine the first playback duration parameter through a playback duration determination function, and accordingly, this step can be: according to the first playback duration and the first file duration of the first multimedia file, the first playback duration parameter of the first multimedia file is determined through a playback duration parameter determination function, and the playback duration parameter determination function is a nonlinear function, which is used to make the playback duration parameters of multimedia files with the same file duration positively correlated with the playback completion degree, and the playback duration parameters of multimedia files with the same playback completion degree are positively correlated with the file duration. In the embodiment of the present disclosure, the playback duration of the first multimedia file is scored through a nonlinear, continuously derivable playback duration parameter determination function, so that the server can obtain continuous scores for each playback duration of the first multimedia file.
[0111] The first playback duration parameter rule of the first multimedia file may be: when the first file duration is certain, the longer the first playback duration is, the higher the score is. Figure 5 , Figure 5 FIG. 1 is a schematic diagram showing a mapping relationship between a first file duration and a first playback duration parameter when the first playback duration is constant according to an embodiment of the present disclosure; when the video playback duration is constant, the higher the playback completion degree of the first multimedia file, the higher the playback completion degree of the first multimedia file. Figure 6 , Figure 6FIG. 1 is a schematic diagram showing a mapping relationship between a playback completion degree and a first playback duration parameter when the first playback duration is constant according to an embodiment of the present disclosure; when the playback completion degree is constant, the longer the first file duration of the first multimedia file is, the higher the first playback duration parameter is. Figure 7 , Figure 7 It is a schematic diagram showing a mapping relationship among a first file duration, a playback completion degree, and a first playback duration parameter according to an embodiment of the present disclosure.
[0112] The play time parameter determination function may be determined by the play time parameter function. In a possible implementation, the play time parameter determination function may be directly determined by the play time parameter function. For example, the play time parameter function may be represented by the following formula 1.
[0113] Formula 1:
[0114] Wherein, F is the first playback duration parameter, x represents the playback duration, y represents the file duration, and a represents a logical parameter, where a is a number greater than 0 and less than 1. For example, the value of a may be 0.85. Represents a playback duration parameter function affected by playback completion and file length.
[0115] In another possible implementation, after the server obtains the first playback duration parameter according to Formula 1, the first playback duration parameter may be normalized by a normalization function. Accordingly, when the first playback duration parameter is a normalized first playback duration parameter, the server determines the first playback duration parameter of the first multimedia file by using a playback duration parameter determination function according to the first playback duration and the first file duration, and the process may be: the server normalizes the first playback duration parameter by using a normalization function to obtain the normalized first playback duration parameter.
[0116] The normalization function may be any function having a normalization function, for example, the normalization function may be a hyperbolic tangent function. Figure 8 , through the normalization function, the first playback time parameter is mapped to [0, 1]. Correspondingly, the normalized first playback time parameter can be expressed by formula 2.
[0117] Formula 2:
[0118] Wherein, F′ is the normalized first playback duration parameter, x represents the playback duration, y represents the file duration, and a represents a logical parameter, where a is a number greater than 0 and less than 1. For example, the value of a may be 0.85. represents a playback duration parameter function affected by playback completion and file duration, and tanh() represents a hyperbolic tangent function, which is used to normalize the first playback duration parameter to obtain a normalized first playback duration parameter.
[0119] In this step, the first playback time parameter obtained is normalized by a normalization function, so that the first playback time parameter obtained by the playback time parameter determination function can be mapped to the range [0, 1], which facilitates the server to recommend the second multimedia file to the terminal based on the first playback time parameter and the first multimedia file.
[0120] In step S403, a second multimedia file is recommended to the first terminal according to the first play duration parameter and the first multimedia file.
[0121] In this step, the server summarizes the interest characteristics of the user corresponding to the first terminal according to the first playback duration parameter and the first multimedia file, and recommends the second multimedia file to the first terminal according to the interest characteristics of the user.
[0122] One point that needs to be explained is that the server can recommend the second multimedia file to the first terminal only based on the first playback duration parameter of the first multimedia file. The server can also recommend the second multimedia file to the first target terminal in combination with the first playback duration parameter of the first multimedia file and the first behavior data corresponding to the first multimedia file. Accordingly, the first historical operation record also includes the first behavior data of the first terminal for the first multimedia file; the server can also recommend the second multimedia file to the first terminal based on the first behavior data, the first playback duration parameter and the first multimedia file. This process can be implemented through the following steps (A1)-(A2), including:
[0123] (A1) Determining an interest feature of the first terminal according to the first behavior data, the first multimedia file, and the first playback duration parameter.
[0124] The first behavior data may include operations such as likes, forwarding, commenting, following and rewarding of the first multimedia file by the user, and may also include information such as the time point when the user generates these operations. In this step, the server can summarize the characteristics of the first multimedia file that generates the user behavior based on the first behavior data generated by the first terminal for the first multimedia file, the first multimedia file and the first playback time parameter, and obtain the interest characteristics of the first terminal. The server can summarize the first interest characteristics based on the first behavior data and the first multimedia file, summarize the second interest characteristics based on the first multimedia file and the first playback time parameter, and summarize the user characteristics of the first terminal based on the first interest characteristics and the second interest characteristics.
[0125] (A2) Recommending a second multimedia file to the first terminal according to the interest feature.
[0126] The server selects a second multimedia file matching the interest feature according to the acquired interest feature.
[0127] One point that needs to be explained is that the server can obtain the first playback duration and first behavior data of the first terminal for the first multimedia file from the same first multimedia file, and the server can also obtain the first playback duration and first behavior data of the first terminal for different multimedia files from different first multimedia files. In the present disclosed embodiment, there is no specific limitation on this.
[0128] In addition, the server may store the first multimedia recommendation model, and accordingly, the server may recommend the second multimedia file to the first terminal through the first multimedia recommendation model. The process may be implemented through the following steps (B1)-(B2), including:
[0129] (B1) determining the second multimedia file through a first multimedia recommendation model according to the first playback duration parameter and the first multimedia file, wherein the first multimedia recommendation model is used to select the second multimedia file from a first multimedia file library according to the first playback duration and the first multimedia file.
[0130] In this step, the server selects a second multimedia file that matches the first playback duration parameter and the interest feature corresponding to the first multimedia file from the first multimedia file library through the first multimedia file recommendation model.
[0131] It should be noted that before this step, the server needs to perform model training on the first multimedia recommendation model to obtain a stable and accurate first multimedia recommendation model. During the model training process, the server obtains a third multimedia recommendation model, trains the third multimedia recommendation model according to the sample data, and obtains the first multimedia recommendation model.
[0132] The process of training the third multimedia recommendation model can be: obtaining a sample multimedia file, and obtaining a third playback time parameter of the sample multimedia file, the third playback time parameter being the actual playback completion score corresponding to the first sample multimedia file; adding the playback completion index to the fourth multimedia recommendation model to obtain a fifth multimedia recommendation model; determining a fourth playback time parameter of the first sample multimedia file according to the fifth multimedia recommendation model, the fourth playback time parameter being the predicted value of the playback time parameter of the first sample multimedia file by the fifth multimedia recommendation model; determining a loss value of the fifth multimedia recommendation model according to the third playback time parameter and the fourth playback time parameter; adjusting the model parameters of the fifth multimedia recommendation model according to the loss value to obtain a sixth multimedia recommendation model; determining a fifth playback time parameter of the first sample multimedia file according to the sixth multimedia recommendation model until the loss value of the sixth multimedia recommendation model is less than a preset threshold to obtain the first multimedia recommendation model.
[0133] One point that needs to be explained is that the first multimedia recommendation model can be determined only by the playback time parameter prediction model, that is, the first multimedia recommendation model can recommend the second multimedia file to the first terminal only based on the first playback time parameter. In another possible implementation, the first multimedia recommendation model can recommend the second multimedia file to the first terminal based on multiple recommendation indicators. Accordingly, the first multimedia recommendation model can combine multiple recommendation indicators, and the server can train the prediction model corresponding to each recommendation indicator to obtain a prediction model for each recommendation indicator, and input the output values of the prediction models of different recommendation indicators into the first multimedia recommendation model. The first multimedia recommendation model combines the prediction models of multiple recommendation indicators to recommend the second multimedia file to the first terminal.
[0134] In response to the first multimedia file recommendation model being a model for recommending the second multimedia file to the first terminal according to multiple recommendation indicators, the server may add relevant parameters of the corresponding recommendation indicators to the third multimedia file recommendation model according to the recommendation indicators of the third multimedia file recommendation model. Alternatively, the new recommendation indicators may be replaced with the original recommendation indicators, thereby saving resources for model training.
[0135] (B2) sending the second multimedia file to the first terminal according to the multimedia play mode of the first terminal.
[0136] The multimedia playback mode of the first terminal may be a click-to-play mode or a slide-to-play mode. The click-to-play mode means that the file identifiers of at least two multimedia files can be displayed in the display interface of the first terminal. If the first terminal receives a click operation on any file identifier, the multimedia file to be played selected by the user is determined according to the click operation, and the multimedia file is jumped to the playback interface of the multimedia file to play the multimedia file in the playback interface of the multimedia file. The slide-to-play mode means that the current multimedia file is played in the display interface of the first terminal. If the current multimedia file is played, the next multimedia file is played directly; or, if the first terminal receives a slide operation from the user during the playback of the current multimedia file, the next multimedia file or the previous multimedia file is determined to be played according to the slide operation.
[0137] In addition, the multimedia playback mode of the first terminal may be the default multimedia playback mode of the target application installed in the first terminal, or the multimedia playback mode of the first terminal may be a multimedia playback mode determined according to the user's playback habits. In the embodiments of the present disclosure, this is not specifically limited.
[0138] The number of the second multimedia files may be at least two. The server may display the at least two second multimedia files according to the multimedia playback mode of the first terminal. Accordingly, in a possible implementation, according to the multimedia playback mode of the first terminal, the step of sending the second multimedia files to the first terminal may be: if the multimedia playback mode is a click-to-play mode, the server sends at least two second multimedia files to the first terminal, and the first terminal is also used to display the at least two second multimedia files in the recommendation interface in the click-to-play mode.
[0139] In this implementation, the server can recommend at least two second multimedia files to the first terminal based on the first file acquisition request after receiving the first file acquisition request from the first terminal. The first file acquisition request can be a request generated when the first target terminal opens the target application, or it can be a request generated when the first terminal refreshes the display interface. The server can determine the number of second multimedia files based on the default settings, and the server can also send the number of second multimedia files to the first terminal based on the number of multimedia files displayed in the display interface of the first terminal. Accordingly, the server receives the first file acquisition request from the first terminal, and the first file acquisition request includes the number of multimedia files displayed each time in the display interface of the first terminal. The server sends the second multimedia files to the first terminal based on the first file acquisition request.
[0140] Furthermore, the server may sort the multimedia in the multimedia file library according to the interest characteristics of the user corresponding to the first terminal according to the first multimedia recommendation model, and distribute the second multimedia file to the first terminal in a step-by-step manner according to the sorting. For example, the server sorts the video files in the multimedia file library according to the interest characteristics corresponding to the first terminal to obtain multimedia files 1-10, sends the multimedia files 1-3 to the first terminal according to the first file acquisition request of the first terminal, and sends multimedia files 4-6 to the first terminal in response to receiving the multimedia acquisition request of the first terminal again, and so on.
[0141] In another possible implementation, according to the multimedia playback mode of the first terminal, the step of sending the second multimedia file to the first terminal may be: if the multimedia playback mode is a sliding playback mode, the server determines the target multimedia file from the at least two second multimedia files, and sends the target multimedia file to the first terminal. The first terminal is also used to play the target multimedia file in the sliding playback mode when the previous multimedia file is played.
[0142] In this implementation, upon receiving the second file acquisition request from the first terminal, the server can recommend at least two second multimedia files to the first terminal according to the second file acquisition request, and the first terminal plays the at least two second multimedia files according to the order of the recommended at least two second multimedia files. The second file acquisition request can be a request generated when the first target terminal opens the target application, or can be a request generated when the first terminal refreshes the display interface.
[0143] Furthermore, the server may sort the multimedia in the multimedia file library according to the interest characteristics of the user corresponding to the first terminal according to the first multimedia recommendation model, and recommend at least two second multimedia files to the first terminal according to the sorting. For example, the server sorts the video files in the multimedia file library according to the interest characteristics corresponding to the first terminal to obtain multimedia files 1-10, and the first terminal plays the second multimedia files in sequence in the display interface according to the sorting of the multimedia files before sending the next second file acquisition request.
[0144] In an embodiment of the present disclosure, a first historical operation record of a first terminal to be recommended is obtained; a first playback time parameter of the first multimedia file is determined according to a first playback time and a first file time of the first multimedia file; and a second multimedia file is recommended to the first terminal according to the first playback time parameter and the first multimedia file, wherein, if the first file time is fixed, the first playback time parameter is positively correlated with the playback completion degree, and if the playback completion degree is fixed, the first playback time parameter is positively correlated with the first file time, and the playback completion degree is determined based on the first playback time and the first file time of the first multimedia file, so that the playback time parameters of multimedia files with the same playback completion degree are positively correlated with the file time, so that the first playback time parameter can more accurately reflect the user's interest in the multimedia file, so that the multimedia file recommended to the user according to the first playback time parameter is more accurate, thereby improving the accuracy of recommending multimedia files.
[0145] In addition, the server can also recommend multimedia files that may generate user behaviors to the user by predicting user behaviors of multimedia files in the multimedia file library. Prior to this, model training is required to obtain a second multimedia recommendation model. In the process of model training, the sample data can be weighted in combination with the playback time parameter of each sample data. Fig. 9 is a flowchart of a multimedia file recommendation method according to an exemplary embodiment. This embodiment is described by taking the example of a server weighting sample data, training a model with the weighted sample data, and obtaining a second multimedia recommendation model. Fig. 9 , the multimedia file recommendation method comprises the following steps:
[0146] In step S901, sample data is obtained, where the sample data includes a sample multimedia file and second behavior data of the second terminal with respect to the sample multimedia file.
[0147] Among them, the second terminal is the terminal that generates sample data. The second terminal can be the same terminal as the first terminal, or it can be a terminal different from the first terminal. In the embodiments disclosed in the present disclosure, there is no specific limitation on this. The second behavior data is the same as the data corresponding to the behavior type contained in the first behavior data, and can include: the playback time of the sample multimedia file, and at least one of likes, comments, forwarding, attention and rewards. The server can store the user behavior generated on other second terminals locally as the second behavior data, and when model training is required, the second behavior data can be directly called.
[0148] In step S902, the second playback duration of the sample multimedia file played by the second terminal and the second file duration of the sample multimedia file are obtained, and the second playback duration parameter of the sample multimedia data is determined according to the second playback duration and the second file duration.
[0149] This step is similar to step S403 and will not be described again here.
[0150] In step S903, the weight of the sample multimedia file is determined according to the second play duration parameter.
[0151] In this step, the sample multimedia files are weighted according to the second playback time parameter, and the learning weight of the sample multimedia files with higher second playback time parameters is increased. Thus, by adding time information to the sample multimedia files, when training other binary classification indicators, the second multimedia recommendation model can learn more information about samples with better time, thereby integrating the time information into the second multimedia recommendation model, allowing the second multimedia recommendation model to make more accurate predictions.
[0152] In step S904, model training is performed according to the weight of the sample multimedia file, the sample multimedia file and the second behavior data to obtain the second multimedia recommendation model.
[0153] The process of training the model is similar to the process of training the first multimedia recommendation model in step S402, and will not be repeated here.
[0154] In the disclosed embodiment, by weighting the sample multimedia files, the learning weight of the sample multimedia files with a higher second playback duration parameter is increased, and thus by adding duration information to the sample multimedia files, when training other binary classification indicators, the second multimedia recommendation model can learn more information about samples with better duration, thereby integrating the duration information into the second multimedia recommendation model, allowing the second multimedia recommendation model to make more accurate predictions, thereby improving the accuracy of predictions made by the second media recommendation model.
[0155] The second multimedia recommendation model may be a model for predicting user behavior. The server may predict the user behavior through the second multimedia recommendation model and recommend the third multimedia file to the third terminal according to the predicted user behavior. Fig.10 is a flowchart of a multimedia file recommendation method according to an exemplary embodiment. This embodiment is described by taking the server recommending a third multimedia file to a third terminal according to the predicted user behavior based on the second multimedia recommendation model as an example. Fig.10 , the multimedia file recommendation method comprises the following steps:
[0156] In step S1001, in response to receiving a multimedia file acquisition request from a third terminal to be recommended, a second historical operation record of the third terminal to be recommended is acquired according to the multimedia file acquisition request, and the second historical operation record includes third behavior data of the third terminal on a fourth multimedia file.
[0157] This step is similar to step S401 and will not be described again here.
[0158] Before this step, model training is required to obtain the second multimedia recommendation model. The training process can be obtained through steps S901-S904, which will not be described in detail here.
[0159] The third behavior data at least includes at least one of the likes, comments, forwarding, attention and rewards given by the third terminal to the fourth multimedia file. The server can select a second multimedia recommendation model corresponding to the target behavior type according to the target behavior type included in the third behavior data, predict the target behavior type through the second multimedia recommendation model, and determine the probability that the third terminal will generate the target behavior type.
[0160] In step S1002, a target behavior type corresponding to the third behavior data is determined according to the third behavior data.
[0161] In this step, the server obtains the third behavior data, analyzes the third behavior data, and determines the target behavior type corresponding to the third behavior data.
[0162] In step S1003, according to the target behavior type, a second multimedia recommendation model corresponding to the target behavior type is selected.
[0163] The server may store second multimedia recommendation models corresponding to different target behavior types, and store the correspondence between the target behavior type and the second multimedia recommendation model. In this step, the server may obtain the second multimedia recommendation model corresponding to the target behavior type from the correspondence between the target behavior type and the second multimedia recommendation model according to the target behavior type.
[0164] In step S1004, the probability of the third terminal generating the target behavior type for each multimedia file in the second multimedia file library is predicted based on the fourth multimedia file, the third behavior data and the second multimedia recommendation model.
[0165] In this step, the server inputs the fourth multimedia file and the third behavior data into the second multimedia recommendation model. The second multimedia recommendation model predicts the multimedia files in the second multimedia file library based on the fourth multimedia file and the third behavior data, and determines the probability that the third terminal will generate the target behavior type for each multimedia file.
[0166] In step S1005, the third multimedia file is selected from the second multimedia file library according to the probability that the third terminal generates the target behavior type for each multimedia file.
[0167] In this step, the server may sort the multimedia files in the second multimedia file library according to the probability of the target behavior type corresponding to each multimedia file, and select the third multimedia file according to the sorting result.
[0168] In step S1006, the third multimedia file is sent to the third terminal.
[0169] This step is similar to step S403 and will not be described again here.
[0170] In an embodiment of the present disclosure, a second historical operation record of a third terminal to be recommended is obtained, the second historical operation record including third behavior data of the third terminal on a fourth multimedia file; based on the fourth multimedia file and the third behavior data, a third multimedia file to be recommended is determined through a second multimedia recommendation model, and the third multimedia file is sent to the third terminal. By predicting the probability of the multimedia file generating a target behavior type, the third multimedia file that will generate the target behavior type is recommended to the third terminal, thereby improving the accuracy of recommending multimedia files to the third terminal.
[0171] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0172] Fig.11 is a block diagram of a multimedia file recommendation device according to an exemplary embodiment. Fig.11 , the device comprises:
[0173] The first acquisition module 1101 is configured to acquire a first historical operation record of a first terminal to be recommended, where the first historical operation record is at least used to record a first multimedia file historically played by the first terminal and a playback duration of the first multimedia file;
[0174] A first determination module 1102 is configured to determine a first playback duration parameter of the first multimedia file according to the first playback duration and the first file duration of the first multimedia file, wherein if the first file duration is fixed, the first playback duration parameter is positively correlated with the playback completion degree; if the playback completion degree is fixed, the first playback duration parameter is positively correlated with the first file duration, and the playback completion degree is determined based on the first playback duration and the first file duration of the first multimedia file;
[0175] The recommendation module 1103 is configured to recommend a second multimedia file to the first terminal according to the first playback duration parameter and the first multimedia file.
[0176] In a possible implementation, the first historical operation record is further used to record first behavior data, where the first behavior data is behavior data of the first terminal on the first multimedia file;
[0177] The recommendation module 1103 is further configured to determine the interest feature of the first terminal according to the first behavior data, the first multimedia file and the first playback duration parameter; and recommend a second multimedia file to the first terminal according to the interest feature.
[0178] In another possible implementation, the recommendation module 1103 is also configured to determine the second multimedia file based on the first playback time parameter and the first multimedia file through a first multimedia recommendation model, and the first multimedia recommendation model is used to select the second multimedia file from the first multimedia file library based on the first playback time and the first multimedia file; and send the second multimedia file to the first terminal according to the multimedia playback mode of the first terminal.
[0179] In another possible implementation, the recommendation module 1103 is further configured to send at least two second multimedia files to the first terminal if the multimedia playback mode is a click-to-play mode, and the first terminal is further configured to display the at least two second multimedia files in the recommendation interface in the click-to-play mode.
[0180] In another possible implementation, the recommendation module 1103 is further configured to select a target multimedia file from the at least two second multimedia files and send the target multimedia file to the first terminal if the multimedia playback mode is a sliding playback mode. The first terminal is also used to play the target multimedia file when the previous multimedia file is played in the sliding playback mode.
[0181] In an embodiment of the present disclosure, a first historical operation record of a first terminal to be recommended is obtained; a first playback time parameter of the first multimedia file is determined according to a first playback time and a first file time of the first multimedia file; and a second multimedia file is recommended to the first terminal according to the first playback time parameter and the first multimedia file, wherein if the first file time is fixed, the first playback time parameter is positively correlated with the playback completion degree, and if the playback completion degree is fixed, the first playback time parameter is positively correlated with the first file time, the playback completion degree is determined based on the first playback time and the first file time of the first multimedia file, and the playback time parameters of multimedia files with the same playback completion degree are positively correlated with the file time, so that the first playback time parameter can more accurately reflect the user's interest in the multimedia file, so that the multimedia file recommended to the user according to the first playback time parameter is more accurate, thereby improving the accuracy of recommending multimedia files.
[0182] Fig.12 is a block diagram of a multimedia file recommendation device according to an exemplary embodiment. Fig.12 , the device comprises:
[0183] The second acquisition module 1201 is configured to acquire sample data, where the sample data includes a sample multimedia file and second behavior data of the second terminal on the sample multimedia file;
[0184] The third acquisition module 1202 is configured to obtain a second playback duration of the sample multimedia file played by the second terminal and a second file duration of the sample multimedia file, and determine a second playback duration parameter of the sample multimedia data according to the second playback duration and the second file duration, wherein if the second file duration is fixed, the second playback duration parameter is positively correlated with the playback completion degree, and if the playback completion degree is fixed, the second playback duration parameter is positively correlated with the second file duration, and the playback completion degree is determined based on the second playback duration and the second file duration of the sample multimedia file;
[0185] The second determination module 1203 is configured to determine the weight of the sample multimedia file according to the second playback duration parameter;
[0186] The model training module 1204 is configured to perform model training according to the weight of the sample multimedia file, the sample multimedia file and the second behavior data to obtain a second multimedia recommendation model;
[0187] The sending module 1205 is configured to, in response to receiving a multimedia file acquisition request from a third terminal to be recommended, send a third multimedia file to the third terminal according to the multimedia file acquisition request and the second multimedia recommendation model.
[0188] In a possible implementation, the sending module 1205 is also configured to obtain a second historical operation record of the third terminal according to the multimedia file acquisition request, the second historical operation record including third behavior data of the third terminal on a fourth multimedia file; determine a target behavior type corresponding to the third behavior data according to the third behavior data; select a second multimedia recommendation model corresponding to the target behavior type according to the target behavior type; predict a probability that the third terminal will generate the target behavior type for each multimedia file in a second multimedia file library according to the fourth multimedia file, the third behavior data and the second multimedia recommendation model; select the third multimedia file from the second multimedia file library according to the probability that the third terminal will generate the target behavior type for each multimedia file; and send the third multimedia file to the third terminal.
[0189] In an embodiment of the present disclosure, a second historical operation record of a third terminal to be recommended is obtained, the second historical operation record including third behavior data of the third terminal on a fourth multimedia file; based on the fourth multimedia file and the third behavior data, a third multimedia file to be recommended is determined through a second multimedia recommendation model, and the third multimedia file is sent to the third terminal. By predicting the probability of the multimedia file generating a target behavior type, the third multimedia file that will generate the target behavior type is recommended to the third terminal, thereby improving the accuracy of recommending multimedia files to the third terminal.
[0190] It should be noted that: the multimedia file recommendation device provided in the above embodiment only uses the division of the above functional modules as an example when performing multimedia recommendation. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the multimedia file recommendation device provided in the above embodiment and the multimedia file recommendation method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0191] Fig.13It is a block diagram of a server according to an exemplary embodiment. The server 1300 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1301 and one or more memories 1302, wherein the memory 1302 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 1301 to implement the multimedia file recommendation method provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server may also include other components for implementing device functions, which will not be described in detail here.
[0192] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction is stored, and the at least one instruction can be executed by a processor in a server to complete the multimedia file recommendation method in the above embodiment. For example, the computer-readable storage medium can be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0193] The present disclosure also provides a computer program product. When instructions in the computer program product are executed by a processor of a terminal or a server, the terminal or the server can execute the multimedia file recommendation method provided by each of the above method embodiments.
[0194] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0195] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A multimedia file recommendation method, characterized in that: The method comprises: Acquire a first historical operation record of a first terminal to be recommended, where the first historical operation record is at least used to record a first multimedia file historically played by the first terminal and a first playing time of the first multimedia file; Determine a first playback time parameter of the first multimedia file by a nonlinear and continuously differentiable playback time parameter determination function according to the first playback time and the first file time of the first multimedia file, wherein if the first file time is fixed, the first playback time parameter is positively correlated with the playback completion degree, and if the playback completion degree is fixed, the first playback time parameter is positively correlated with the first file time, and the playback completion degree is determined based on the first playback time and the first file time of the first multimedia file; If the multimedia playback mode of the first terminal is a click-to-play mode, the multimedia files in the first multimedia file library are sorted by a first multimedia recommendation model according to the first playback duration parameter and the first multimedia file; and the second multimedia file is distributed to the first terminal in a step-by-step manner according to the sorting result; the first multimedia recommendation model is trained based on sample multimedia files and at least one recommendation indicator; the at least one recommendation indicator includes a playback completion indicator; The step distribution means that the multimedia files sent twice are adjacent in order, and the sequence number of the multimedia file sent once is earlier than the sequence number of the multimedia file sent later.
2. The method according to claim 1, characterized in that The first historical operation record is further used to record first behavior data, where the first behavior data is behavior data of the first terminal on the first multimedia file; the method further includes: determining an interest feature of the first terminal according to the first behavior data, the first multimedia file, and the first playback duration parameter; A second multimedia file is recommended to the first terminal according to the interest feature.
3. The method according to claim 1, characterized in that The number of the second multimedia files is at least two; If the multimedia play mode is a click-to-play mode, the first terminal is further configured to display the at least two second multimedia files in a recommendation interface in the click-to-play mode.
4. The method according to claim 1, characterized in that: The number of the second multimedia files is at least two; and the method further comprises: If the multimedia playback mode is a sliding playback mode, a target multimedia file is determined from the at least two second multimedia files, and the target multimedia file is sent to the first terminal. The first terminal is also used to play the target multimedia file when the previous multimedia file is played in the sliding playback mode.
5. A multimedia file recommendation method, characterized in that: The method comprises: Acquire sample data, the sample data including a sample multimedia file and second behavior data of the second terminal for the sample multimedia file; Obtaining a second playback duration of the sample multimedia file played by the second terminal and a second file duration of the sample multimedia file, and determining a second playback duration parameter of the sample multimedia file according to the second playback duration and the second file duration, wherein if the second file duration is fixed, the second playback duration parameter is positively correlated with the playback completion degree, and if the playback completion degree is fixed, the second playback duration parameter is positively correlated with the second file duration, and the playback completion degree is determined based on the second playback duration and the second file duration of the sample multimedia file; Determining the weight of the sample multimedia file according to the second playback duration parameter; wherein the sample multimedia file with a higher second playback duration parameter has a greater corresponding weight; According to the weight of the sample multimedia file, the sample multimedia file and the second behavior data, model training is performed to obtain a second multimedia recommendation model; wherein the server stores second multimedia recommendation models corresponding to different behavior types; In response to receiving a multimedia file acquisition request from a third terminal to be recommended, acquiring a second historical operation record of the third terminal according to the multimedia file acquisition request, wherein the second historical operation record includes third behavior data of the third terminal on a fourth multimedia file; Determining, according to the third behavior data, a target behavior type corresponding to the third behavior data; and selecting, according to the target behavior type, a second multimedia recommendation model corresponding to the target behavior type; Predicting, based on the fourth multimedia file, the third behavior data and the second multimedia recommendation model, the probability that the third terminal generates the target behavior type for each multimedia file in the second multimedia file library; According to the probability that the third terminal generates a target behavior type for each multimedia file, a third multimedia file is selected from the second multimedia file library; and the third multimedia file is sent to the third terminal.
6. A multimedia file recommendation device, characterized in that: The device comprises: A first acquisition module is configured to acquire a first historical operation record of a first terminal to be recommended, wherein the first historical operation record is at least used to record a first multimedia file historically played by the first terminal and a first playing time of the first multimedia file; a first determination module, configured to determine a first playback duration parameter of the first multimedia file according to the first playback duration and the first file duration of the first multimedia file by a nonlinear and continuously differentiable playback duration parameter determination function, wherein if the first file duration is fixed, the first playback duration parameter is positively correlated with the playback completion degree; if the playback completion degree is fixed, the first playback duration parameter is positively correlated with the first file duration, and the playback completion degree is determined based on the first playback duration and the first file duration of the first multimedia file; The recommendation module is configured to, if the multimedia playback mode of the first terminal is the click-to-play mode, sort the multimedia files in the first multimedia file library according to the first playback duration parameter and the first multimedia file by using a first multimedia recommendation model; and distribute the second multimedia file to the first terminal in a step-by-step manner according to the sorting result; the first multimedia recommendation model is trained based on sample multimedia files and at least one recommendation indicator; the at least one recommendation indicator includes a playback completion indicator; The step distribution means that the multimedia files sent twice are adjacent in order, and the sequence number of the multimedia file sent once is earlier than the sequence number of the multimedia file sent later.
7. The device according to claim 6, characterized in that The first historical operation record is further used to record first behavior data, where the first behavior data is behavior data of the first terminal on the first multimedia file; The recommendation module is further configured to determine the interest characteristics of the first terminal according to the first behavior data, the first multimedia file and the first playback time parameter; and recommend a second multimedia file to the first terminal according to the interest characteristics.
8. The device according to claim 6, characterized in that The number of the second multimedia files is at least two, and the recommendation module is further configured such that if the multimedia playback mode is a click-to-play mode, the first terminal is also used to display the at least two second multimedia files in the recommendation interface in the click-to-play mode.
9. The device according to claim 6, characterized in that The number of the second multimedia files is at least two, and the recommendation module is further configured to select a target multimedia file from the at least two second multimedia files if the multimedia playback mode is a sliding playback mode, and send the target multimedia file to the first terminal. The first terminal is also used to play the target multimedia file when the previous multimedia file is played after playing in the sliding playback mode.
10. A multimedia file recommendation device, characterized in that: The device comprises: A second acquisition module is configured to acquire sample data, wherein the sample data includes a sample multimedia file and second behavior data of a second terminal for the sample multimedia file; A third acquisition module is configured to acquire a second playback duration of the sample multimedia file played by the second terminal and a second file duration of the sample multimedia file, and determine a second playback duration parameter of the sample multimedia file according to the second playback duration and the second file duration, wherein if the second file duration is fixed, the second playback duration parameter is positively correlated with the playback completion degree, and if the playback completion degree is fixed, the second playback duration parameter is positively correlated with the second file duration, and the playback completion degree is determined based on the second playback duration and the second file duration of the sample multimedia file; A second determination module is configured to determine the weight of the sample multimedia file according to the second playback duration parameter; wherein the sample multimedia file with a higher second playback duration parameter has a greater corresponding weight; A model training module is configured to perform model training according to the weight of the sample multimedia file, the sample multimedia file and the second behavior data to obtain a second multimedia recommendation model; wherein the server stores second multimedia recommendation models corresponding to different behavior types; A sending module is configured to, in response to receiving a multimedia file acquisition request from a third terminal to be recommended, acquire a second historical operation record of the third terminal according to the multimedia file acquisition request, wherein the second historical operation record includes third behavior data of the third terminal on a fourth multimedia file; determine a target behavior type corresponding to the third behavior data according to the third behavior data; select a second multimedia recommendation model corresponding to the target behavior type according to the target behavior type; predict the probability of the third terminal generating the target behavior type for each multimedia file in a second multimedia file library according to the fourth multimedia file, the third behavior data and the second multimedia recommendation model; select a third multimedia file from the second multimedia file library according to the probability of the third terminal generating the target behavior type for each multimedia file; and send the third multimedia file to the third terminal.
11. A server, characterized in that: The server includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the multimedia file recommendation method according to any one of claims 1 to 4 or claim 5.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the multimedia file recommendation method according to any one of claims 1 to 4 or claim 5.
13. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of a terminal or a server, the terminal or the server is enabled to execute the multimedia file recommendation method according to any one of claims 1 to 4 or claim 5.
