Information recommendation method and device, electronic equipment, storage medium and program product
By obtaining the operation duration and sparse operation data of multimedia materials, calculating interaction duration characteristics and conducting preference mining, and training multi-objective models combined with sparse behavioral characteristics, the problem of low accuracy of information recommendation in the existing technology is solved, and more efficient and accurate are achieved. information recommendation effect.
Patent Information
- Application Number
- CN202310406308.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-10-15
AI Technical Summary
In existing information recommendation technology, the accuracy of recommendation results based on user click behavior is low, making it difficult to effectively identify users' multimedia material preferences.
By obtaining the operation duration and sparse operation data of multimedia materials, we calculate the interaction duration characteristics, conduct shallow preference mining and sparse behavioral feature extraction, and train the multi-objective model by combining the interaction duration, shallow preference and sparse behavioral features to generate a multi-objective model. Make information recommendations.
It improves the accuracy and efficiency of information recommendation, increases the evaluation dimension of information flow recommendation materials, solves the problem of inconsistent shallow interest standards caused by different media media, and finds the optimal parameters through the exponential weighted addition fusion formula, which improves the accuracy of the recommendation results. stability.
Smart Images

Figure CN118779475A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information recommendation method, device, electronic device, storage medium and program product. Background Art
[0002] The emergence and popularization of the Internet has brought a large amount of information to users, satisfying their needs for information in the information age. However, with the rapid development of the Internet, the amount of online information has increased significantly, making it increasingly difficult for users to obtain the information that is truly useful to them when faced with a large amount of information. This is the main challenge in modern Internet services. In order to cope with these problems, some effective solutions have been proposed. The information recommendation system is a tool that can help users quickly find useful information. Information recommendation is a technology that uses computer technology and algorithms to recommend personalized information, content or products to users based on their historical behavior and preferences. Although information recommendation technology has made great progress, there are still some shortcomings. In the existing technology, users' interests are usually expressed based on their click behavior, resulting in a low accuracy rate of recommendation results. Summary of the invention
[0003] The embodiments of the present application provide an information recommendation method, device, electronic device, storage medium and program product, which can effectively improve the accuracy of information recommendation.
[0004] The present application provides an information recommendation method, including:
[0005] Acquire sample data of a preset multi-objective model, wherein the sample data includes operation duration and sparse operation data of the sample object on the multimedia material;
[0006] Determining, according to the operation duration, an interaction duration of the sample object with respect to the multimedia material, and an interaction duration feature corresponding to the interaction duration;
[0007] Performing preference mining on the sample object based on the interaction duration to obtain shallow preference features of the sample object;
[0008] Performing feature extraction on the sparse operation data of the sample object to obtain sparse behavior features of the sample object with respect to the multimedia material;
[0009] The preset multi-objective model is trained using the interaction duration feature, shallow preference feature and sparse behavior feature to obtain a multi-objective model, so as to use the multi-objective model for information recommendation.
[0010] Accordingly, the embodiment of the present application further provides an information recommendation device, including:
[0011] An acquisition unit, used to acquire sample data of a preset multi-objective model, wherein the sample data includes operation duration and sparse operation data of the sample object on the multimedia material;
[0012] An interaction duration unit, used to determine the interaction duration of the sample object to the multimedia material and an interaction duration feature corresponding to the interaction duration according to the operation duration;
[0013] A shallow preference unit, used to perform preference mining on the sample object based on the interaction duration to obtain shallow preference features of the sample object;
[0014] A sparse behavior unit, used for performing feature extraction on the sparse operation data of the sample object to obtain the sparse behavior features of the sample object for the multimedia material;
[0015] A training unit is used to train the preset multi-objective model using the interaction duration feature, shallow preference feature and sparse behavior feature to obtain a multi-objective model, so as to use the multi-objective model for information recommendation.
[0016] Optionally, in some embodiments, the operation duration includes a play duration and a stay duration, and the interaction duration unit includes a calculation subunit and a processing subunit, as follows:
[0017] A calculation subunit, which may be specifically used to calculate the interaction time of the sample object with the multimedia material according to the playback time and the stay time;
[0018] The processing subunit may be specifically configured to perform equal-frequency bucketing processing on the interaction duration to obtain the interaction duration feature of the sample object.
[0019] Optionally, in some embodiments, the multimedia material includes static material and dynamic material, and the calculation subunit can be specifically used to, when the multimedia material is static material, sum the playback time and the dwell time to obtain the interaction time of the sample object with the multimedia material; when the multimedia material is dynamic material and the dwell time is less than or equal to a preset threshold, use the playback time to determine the interaction time of the sample object with the multimedia material; when the multimedia material is dynamic material and the dwell time is greater than the preset threshold, sum the playback time and the dwell time to obtain the interaction time of the sample object with the multimedia material.
[0020] Optionally, in some embodiments, the processing subunit can be specifically used to arrange the interaction durations in positive order to obtain an arranged sequence; divide the arranged sequence into a preset number of categories, and generate interaction duration features of the sample object based on the division result.
[0021] Optionally, in some embodiments, the shallow preference unit can be specifically used to extract features from the multimedia material to obtain material features; determine positive samples of shallow preference based on the interaction duration of the sample object with the multimedia material to generate positive sample features; and concatenate the material features and the positive sample features to obtain shallow preference features of the sample object.
[0022] Optionally, in some embodiments, the multimedia material includes graphic materials, plain text materials and video materials, and the shallow preference unit can be specifically used to, when the multimedia material is graphic materials, determine the graphic materials whose interaction duration is greater than a preset graphic threshold as positive samples of shallow preference; when the multimedia material is plain text materials, determine the plain text materials for clicking the sample objects as positive samples of shallow preference; when the multimedia material is video materials, calculate the completion rate of the video materials based on the interaction duration, and determine the video materials whose completion rate is greater than the preset video threshold as positive samples of shallow preference.
[0023] Optionally, in some embodiments, the sparse operation data includes multiple sparse behaviors, and the sparse behavior unit can be specifically used to determine the weight of each sparse behavior in the sparse operation data of the sample object; based on the weight of the sparse behavior and the sparse behavior, generate the sparse behavior characteristics of the sample object for the multimedia material.
[0024] Optionally, in some embodiments, the training unit may include a training subunit and a recommendation subunit, as follows:
[0025] The training subunit can be specifically used to construct the output result of the preset multi-objective model using the interaction duration features, shallow preference features and sparse behavior features; converge the preset multi-objective model according to the sample data and the output results to obtain a multi-objective model.
[0026] The recommendation subunit can be specifically used to perform information recommendation using the multi-objective model.
[0027] Optionally, in some embodiments, the training subunit can be specifically used to extract features from the sample data, generate sample object features, sample material features and cross features, and the cross features characterize the degree of association between the sample object and the multimedia material; use the sample object features, the sample material features and the cross features to construct input features of the preset multi-objective model; and converge the preset multi-objective model according to the input features and the output results to obtain a multi-objective model.
[0028] Optionally, in some embodiments, the recommendation sub-unit can be specifically used to use the multi-objective model to predict the target object and the object to be recommended, and obtain the duration prediction value, preference prediction value and sparse prediction value corresponding to the multi-objective model; determine the target recommended object among the objects to be recommended according to the duration prediction value, preference prediction value and sparse prediction value, and recommend the target recommended object to the target object.
[0029] Optionally, in some embodiments, the training subunit can be specifically used to determine the weight parameters and index parameters of the duration prediction value, preference prediction value and sparse prediction value; based on the weight parameters and index parameters, the duration prediction value, preference prediction value and sparse prediction value are exponentially linearly weighted to obtain a fusion score of the object to be recommended; and based on the fusion score, a target recommended object is determined from the objects to be recommended.
[0030] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in any one of the information recommendation methods provided in the embodiments of the present application.
[0031] In addition, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in any one of the information recommendation methods provided in the embodiments of the present application are implemented.
[0032] According to one aspect of the present application, a computer program product or a computer program is provided, which includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the above-mentioned information recommendation aspects.
[0033] This embodiment can obtain sample data of a preset multi-objective model, the sample data including the operation time and sparse operation data of the sample object on the multimedia material; then, determine the interaction time of the sample object on the multimedia material and the interaction time feature corresponding to the interaction time according to the operation time; then, perform preference mining on the sample object based on the interaction time to obtain the shallow preference feature of the sample object; then, perform feature extraction on the sparse operation data of the sample object to obtain the sparse behavior feature of the sample object for the multimedia material; then, train the preset multi-objective model using the interaction time feature, shallow preference feature and sparse behavior feature to obtain a multi-objective model, so as to use the multi-objective model for information recommendation. This scheme improves the information flow recommendation effect and increases the evaluation dimension of the information flow recommendation material by designing a calculation formula for the interaction time of different media media, bucketing the interaction time with equal frequency, and weighted fusion of sparse targets (likes, comments, favorites, etc.). In the shallow preference mining module, the commonly used click target modeling is upgraded to shallow preference modeling. According to different media media, combined with data distribution statistics, positive and negative samples are re-divided, taking into account the problem of inconsistent shallow interest standards generated by different types of media media. In the multi-target fusion scoring parameter optimization module, the exponential weighted addition fusion formula is used, and the optimal parameters are found through offline grid search, which solves the problem of target estimation being prone to loss and gain, greatly improving the efficiency and accuracy of information recommendation. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0035] Figure 1a is a scenario diagram of the information recommendation method provided in an embodiment of the present application;
[0036] Figure 1b is a first flow chart of the information recommendation method provided by an embodiment of the present application;
[0037] Figure 1c It is a schematic diagram of the multi-objective model structure provided in the embodiment of the present application;
[0038] Figure 2a is a second flow chart of the information recommendation method provided in an embodiment of the present application;
[0039] Figure 2b is a third flow chart of the information recommendation method provided in an embodiment of the present application;
[0040] Figure 3 is a schematic diagram of the structure of an information recommendation device provided in an embodiment of the present application;
[0041] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0043] The principles of the present application are illustrated by implementation in an appropriate computing environment. In the following description, the specific embodiments of the present application will be described with reference to the steps and symbols executed by one or more computers, unless otherwise stated. Therefore, these steps and operations will be mentioned several times as being executed by a computer, and the computer execution referred to herein includes the operation of a computer processing unit by an electronic signal representing data in a structured form. This operation converts the data or maintains it at a location in the memory system of the computer, which can be reconfigured or otherwise change the operation of the computer in a manner familiar to testers in the field. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the above text, which does not represent a limitation, and testers in the field will understand that the following various steps and operations can also be implemented in hardware.
[0044] The term "unit" used in this article can be regarded as a software object executed on the computing system. The different components, units, engines and services described in this article can be regarded as implementation objects on the computing system. The devices and methods described in this article can be implemented in software, and of course can also be implemented in hardware, all within the scope of protection of this application.
[0045] The terms "first", "second", and "third" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but some embodiments also include steps or units that are not listed, or some embodiments also include other steps or units inherent to these processes, methods, products, or devices.
[0046] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0047] The embodiments of the present application provide an information recommendation method, device, electronic device, storage medium and program product. The information recommendation device can be integrated in an electronic device, which can be a server or a terminal.
[0048] The information recommendation method provided in the embodiment of the present application involves machine learning technology in the field of artificial intelligence. Machine learning technology can be used to learn the characteristics of sample objects and multimedia materials, thereby pushing information to target objects.
[0049] Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science. It attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level technology and software-level technology. Among them, artificial intelligence software technology mainly includes computer vision technology, machine learning / deep learning and other directions.
[0050] Among them, machine learning (ML) is a multi-disciplinary interdisciplinary subject, involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.
[0051] For example, Figure 1aAs shown, first, the electronic device integrated with the information recommendation device can obtain sample data of a preset multi-objective model, wherein the sample data includes the operation time and sparse operation data of the sample object on the multimedia material; then, the interaction time of the sample object on the multimedia material and the interaction time feature corresponding to the interaction time are determined according to the operation time; then, preference mining is performed on the sample object based on the interaction time to obtain the shallow preference feature of the sample object; then, feature extraction is performed on the sparse operation data of the sample object to obtain the sparse behavior feature of the sample object for the multimedia material; then, the preset multi-objective model is trained using the interaction time feature, shallow preference feature and sparse behavior feature to obtain a multi-objective model. The multi-objective model is then used to generate recommendation results and recommend them to the terminal. This solution improves the information flow recommendation effect and increases the evaluation dimension of the information flow recommendation material by designing a calculation formula for the interaction time of different media media, performing equal frequency bucketing on the interaction time, and weighted fusion on sparse targets (likes, comments, favorites, etc.). In the shallow preference mining module, the commonly used click target modeling is upgraded to shallow preference modeling. According to different media media, combined with data distribution statistics, positive and negative samples are re-divided, taking into account the problem of inconsistent shallow interest standards generated by different types of media media. In the multi-target fusion scoring parameter optimization module, the exponential weighted addition fusion formula is used, and the optimal parameters are found through offline grid search, which solves the problem of target estimation being prone to loss and gain, greatly improving the efficiency and accuracy of information recommendation.
[0052] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0053] This embodiment will be described from the perspective of an information recommendation device, which can be integrated into an electronic device, which can be a server or a terminal. The terminal can include a mobile phone, a tablet computer, a laptop computer, a personal computer (PC), and other devices.
[0054] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0055] A method for information recommendation comprises: obtaining sample data of a preset multi-objective model, the sample data comprising operation duration and sparse operation data of a sample object on a multimedia material; then, determining the interaction duration of the sample object on the multimedia material and the interaction duration feature corresponding to the interaction duration according to the operation duration; then, performing preference mining on the sample object based on the interaction duration to obtain the shallow preference feature of the sample object; then, performing feature extraction on the sparse operation data of the sample object to obtain the sparse behavior feature of the sample object for the multimedia material; then, training the preset multi-objective model using the interaction duration feature, shallow preference feature and sparse behavior feature to obtain the multi-objective model, so as to use the multi-objective model for information recommendation.
[0056] like Figure 1b As shown, the specific process of the information recommendation method can be as follows:
[0057] 101. Obtain sample data of a preset multi-objective model, where the sample data includes operation duration and sparse operation data of a sample object on a multimedia material.
[0058] The sparse operation data represents the interactive information of the sample object with respect to the multimedia material.
[0059] The sample data may include object information, object behavior information, multimedia material information, etc. Object information may include object identification, age, gender, region, interest tags, etc. Object behavior information may include object clicks, dwell time, comments, play time, and other behavior information. Multimedia material information may include material identification, author, source, timeliness, classification, etc.
[0060] Among them, the object can refer to the end user, specifically the person who uses the mobile phone, computer or network service. For example, the object can be a user, usually with an object account, which can be identified by the object name. Multimedia material can refer to the comprehensive material of various media, which can include text, images, animation, video, audio and other media forms.
[0061] Operation duration can refer to the total time that an object performs a series of actions on multimedia materials, for example, it can refer to the total time that an object stays when browsing a page of a website. Operation duration can include playback duration and dwell duration. Sparse operation data can refer to some data generated sporadically during the object operation process, for example, it can refer to the operation data such as comments, collections, and likes of multimedia materials by the object.
[0062] For example, object behavior information, including clicks, dwell time, comments, play time, and other data, as well as object IDs and material IDs, can be obtained from online logs. Object information and recommended object information (i.e., multimedia material information to be recommended) are obtained through the data center service and material forwarding library service, and the information is associated to generate an initial sample.
[0063] It should be noted that in this application, the acquisition of object information is authorized by the object.
[0064] 102. Determine, according to the operation duration, an interaction duration of the sample object with respect to the multimedia material, and an interaction duration feature corresponding to the interaction duration.
[0065] For example, the operation duration includes the play duration and the stay duration. Specifically, the interaction duration of the sample object with the multimedia material can be calculated based on the play duration and the stay duration; the interaction duration is subjected to equal-frequency bucketing processing to obtain the interaction duration characteristics of the sample object.
[0066] Optionally, there may be many ways to calculate the interaction duration of the sample object with the multimedia material. For example, the multimedia material may include static material and dynamic material. Specifically, when the multimedia material is static material, the playback duration and the dwell duration are summed to obtain the interaction duration of the sample object with the multimedia material; when the multimedia material is dynamic material and the dwell duration is less than or equal to a preset threshold, the playback duration is used to determine the interaction duration of the sample object with the multimedia material; when the multimedia material is dynamic material and the dwell duration is greater than a preset threshold, the playback duration and the dwell duration are summed to obtain the interaction duration of the sample object with the multimedia material.
[0067] Among them, static materials can be graphic materials, pure text materials, etc., and dynamic materials can be short video materials, long video materials, etc.
[0068] For example, the play time of the sample object can be set as play_time, and the dwell time can be set as dwell_time. Then the calculation method of the interaction time (also called consumption time) consume_time can be as follows:
[0069] Graphics, text only materials:
[0070] consume_time=play_time+dwell_time
[0071] Short video and long video materials:
[0072]
[0073] Here, m is a preset threshold value, which can be obtained based on the statistical distribution of the object's residence time.
[0074] There are many ways to set the preset threshold, for example, it can be flexibly set according to the needs of the actual application, or it can be pre-set and stored in the electronic device. In addition, the preset threshold can be built into the electronic device, or it can be stored in a memory and sent to the electronic device, etc. For example, m is usually taken as the 70th percentile value of the object's stay time.
[0075] Optionally, the “perform equal-frequency bucketing processing on the interaction duration to obtain the interaction duration characteristics of the sample object” may specifically arrange the interaction duration in positive order to obtain an arranged sequence; divide the arranged sequence into a preset number of categories, and generate the interaction duration characteristics of the sample object based on the division result. For example, the interaction duration may be specifically arranged in positive order to obtain an arranged sequence; divide the arranged sequence into a preset number of categories, and map the interaction duration to discrete category values according to the division result to obtain the interaction duration characteristics of the sample object.
[0076] There are many ways to set the preset number. For example, it can be flexibly set according to the needs of actual applications, or it can be pre-set and stored in the electronic device. In addition, the preset number can be built into the electronic device, or it can be stored in a memory and sent to the electronic device, etc. For example, the preset number can be 15.
[0077] Since the interaction duration target is a continuous value, the equal-frequency bucketing method will be used in advance to convert the duration target continuous value into discrete categories. The equal-frequency bucketing processing method can be: accumulate n days of initial samples, calculate the consumption duration, sort the consumption duration in positive order, and divide it into k categories, for example, k can be 15. The number of samples in each category is the same, and k value ranges are divided, and the continuous value target is mapped to obtain the discrete category value of the consumption duration. For example, there are 300 samples and 300 interaction durations. First, sort these 300 interaction durations, and then divide them into 15 categories, with 20 samples in each category, that is, the first 20 categories are 0, 20-40 categories are 1, and so on.
[0078] Specifically, consumption time equal frequency bucketing is the process of dividing a set of data into several equal parts according to the frequency of occurrence. For example, the data can be sorted in ascending order, and then divided into k equal parts, each containing the same amount of data. This bucketing method can make the data in each bucket have similar characteristics, and can also eliminate the influence of outliers in the data.
[0079] For example, there is consumption time data: 10, 5, 7, 9, 8, 6, 4, 3, 2, 1. This set of data needs to be divided into 3 equal parts, each containing the same amount of data. First, this set of data can be sorted from small to large, and the result is: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
[0080] Next, this set of data can be divided into 3 equal parts, each containing the same amount of data, that is, each containing 4 data. Since there are 10 data in total, the range of data contained in each equal part is:
[0081] 1st portion: 1-4
[0082] Second portion: 5-8
[0083] The third portion: 9-10
[0084] This results in three equal-frequency buckets, each containing the same amount of data.
[0085] 103. Perform preference mining on the sample object based on the interaction duration to obtain shallow preference features of the sample object.
[0086] For example, features may be extracted from the multimedia material to obtain material features; positive samples of shallow preference may be determined based on the interaction duration of the sample object with the multimedia material to generate positive sample features; and the material features and the positive sample features may be concatenated to obtain shallow preference features of the sample object.
[0087] Optionally, the multimedia material includes graphic material, plain text material and video material, and the "determining the positive sample of shallow preference based on the interaction duration of the sample object with the multimedia material" can be specifically, when the multimedia material is graphic material, the graphic material with the interaction duration greater than a preset graphic threshold is determined as the positive sample of shallow preference; when the multimedia material is plain text material, the plain text material on which the sample object is clicked is determined as the positive sample of shallow preference; when the multimedia material is video material, the completion rate of the video material is calculated based on the interaction duration, and the video material with the completion rate greater than the preset video threshold is determined as the positive sample of shallow preference.
[0088] There are many ways to set the preset text and image threshold. For example, it can be flexibly set according to the needs of actual applications, or it can be pre-set and stored in the electronic device. In addition, the preset text and image threshold can be built into the electronic device, or it can be stored in a memory and sent to the electronic device, etc. For example, the preset text and image threshold can be 5 seconds, etc.
[0089] There are many ways to set the preset video threshold, for example, it can be flexibly set according to the needs of actual applications, or it can be pre-set and stored in the electronic device. In addition, the preset video threshold can be built into the electronic device, or it can be stored in a memory and sent to the electronic device, etc. For example, the preset video threshold can be 80%, etc.
[0090] There are four common multimedia materials in information flow recommendations: pictures and texts, plain text, long videos, and short videos. The shallow preference definitions for different materials can be as follows:
[0091] Graphics and text materials: The duration of the object’s stay can be considered, and the calculation method of the interaction duration of short videos and long videos can be referred to. Samples with a graphic and text interaction duration greater than the preset graphic and text threshold are defined as shallow preference positive samples.
[0092] Plain text material: Shallow preference positive samples have the same definition as click samples.
[0093] Long and short video materials: The video completion rate can be calculated. The completion rate is calculated as follows: consumption time / total video time. Samples with a completion rate >= preset video threshold can be defined as shallow preference positive samples.
[0094] 104. Perform feature extraction on the sparse operation data of the sample object to obtain sparse behavior features of the sample object for the multimedia material.
[0095] For example, the sparse operation data may include multiple sparse behaviors, and specifically, the weight of each sparse behavior in the sparse operation data of the sample object may be determined; based on the weight of the sparse behavior and the sparse behavior, the sparse behavior feature of the sample object for the multimedia material is generated.
[0096] Since the comment target of an object is very sparse, and the comment has a certain correlation with other sparse targets of the object (such as collections and likes), other sparse behaviors can be converted into comment behavior features through certain weight parameters. These converted features are collectively referred to as sparse behavior features.
[0097] 105. The preset multi-objective model is trained using the interaction duration feature, the shallow preference feature, and the sparse behavior feature to obtain a multi-objective model, so as to use the multi-objective model for information recommendation.
[0098] For example, the output result of the preset multi-objective model can be constructed by utilizing the interaction duration features, shallow preference features, and sparse behavior features; the preset multi-objective model is converged according to the sample data and the output results to obtain a multi-objective model, so as to utilize the multi-objective model for information recommendation.
[0099] Optionally, the “converging the preset multi-objective model according to the sample data and the output results to obtain the multi-objective model” may specifically perform feature extraction on the sample data to generate sample object features, sample material features and cross features, wherein the cross features characterize the degree of association between the sample object and the multimedia material; constructing input features of the preset multi-objective model using the sample object features, the sample material features and the cross features; and converging the preset multi-objective model according to the input features and the output results to obtain the multi-objective model.
[0100] For example, feature extraction may be performed on the sample data to generate sample object features, sample material features and cross features, wherein the cross features represent the degree of association between the sample object and the multimedia material. For example, a hash method may be used to perform hash processing on the sample data to generate sample object features, sample material features and cross features, wherein the cross features represent the degree of association between the sample object and the multimedia material.
[0101] Among them, the object characteristics may include the object's personal information, historical behavior data, and interest preferences, etc., which are used to describe the object's attributes and behavior habits. Specifically, it may include information such as the object's age, gender, region, and the object's browsing history, click records, purchase records, rating records and other behavior data. In addition, the object's interest preferences can be extracted by analyzing the object's behavior data, such as the object's favorite movie types, music types, art styles, etc.
[0102] Material features include semantic information, visual information, and sound information of multimedia materials, which are used to describe the characteristics of multimedia materials. Specifically, they can include semantic information such as the title, description, and tags of multimedia materials, as well as visual and sound information such as pictures, videos, and audio of multimedia materials.
[0103] The cross-features of object features and material features refer to the cross-combination of object features and multimedia content features to obtain a new feature vector representation. Specifically, for each object feature and each material feature, a cross-feature can be constructed to represent the degree of association between the two. For example, for an object and a movie, the following cross-features can be constructed:
[0104] The cross-features of the subject's age and the type of movie represent the subject's preference for movies of that type in that age group; the cross-features of the subject's region and the language of the movie represent the subject's acceptance of movies of that language in that region; the cross-features of the subject's historical rating records and the movie rating represent the subject's predicted rating value for the movie, and so on.
[0105] By cross-combining object features and multimedia content features, the correlation information between the two can be effectively captured, improving the accuracy and efficiency of information recommendation.
[0106] For example, a multi-gate mixture of experts (MMOE) model can be used for multi-objective modeling, which includes three towers (corresponding to the three objectives of shallow preference, interaction duration, and sparse behavior), three gates, and n expert networks (n>3). The network structure of the multi-objective model can be as follows: Figure 1c As shown in Figure 1, the underlying input of the network structure is the sample material feature doc feature, sample object feature user feature, and cross feature cross_feature after sample preprocessing. First, initialize the feature vector (embedding) vocabulary, map the original features to embeddings, such as sample material vector, sample object vector, and sample cross vector, and concatenate them to obtain the connection layer vector. Then input the four expert networks (i.e. Figure 1c Expert network 0, expert network 1, expert network 2 and expert network 3), the output of the expert network passes through three gate networks (i.e. Figure 1c The parameters of gates 1, 2, and 3 in the training data are weighted and input into the three target towers (i.e., shallow preference tower, interaction duration tower, and sparse behavior tower). Finally, the preference prediction value ctr_new predict, the duration prediction value consume_predict, and the sparse prediction value comment_predict are obtained. Next, the loss of each target tower is calculated and back-propagated to the expert network to update the network parameters and feature embedding vocabulary. When the loss of each tower is less than the corresponding threshold, the training stops.
[0107] Optionally, the "using the multi-objective model to recommend information" can specifically use the multi-objective model to predict the target object and the object to be recommended, and obtain the duration prediction value, preference prediction value and sparse prediction value corresponding to the multi-objective model; determine the target recommended object among the objects to be recommended according to the duration prediction value, preference prediction value and sparse prediction value, and recommend the target recommended object to the target object.
[0108] Specifically, "determine the target recommended object among the objects to be recommended based on the duration prediction value, the preference prediction value and the sparse prediction value", the weight parameters and the index parameters of the duration prediction value, the preference prediction value and the sparse prediction value can be determined; based on the weight parameters and the index parameters, the duration prediction value, the preference prediction value and the sparse prediction value are exponentially linearly weighted to obtain a fusion score of the object to be recommended; and based on the fusion score, the target recommended object is determined from the objects to be recommended.
[0109] For example, get the estimated score of the model target tower output, where the estimated score of the shallow preference (ctr_new) tower is represented by predict_ctr, the estimated score of the interaction time (consume_time) tower is represented by predict_time, and the estimated score of the sparse behavior (comment) tower is represented by predict_comment. The final fusion score is represented by predict, and the scoring formula can be an exponential linear weighted formula as follows:
[0110]
[0111] Wherein, a, b, c, o, p, q are optimization parameters. There are many ways to optimize the parameters, for example, a grid search method can be used to determine the parameters.
[0112] As can be seen from the above, this embodiment can obtain sample data of a preset multi-objective model, wherein the sample data includes the operation time and sparse operation data of the sample object on the multimedia material; then, the interaction time of the sample object on the multimedia material and the interaction time feature corresponding to the interaction time are determined according to the operation time; then, preference mining is performed on the sample object based on the interaction time to obtain the shallow preference feature of the sample object; then, feature extraction is performed on the sparse operation data of the sample object to obtain the sparse behavior feature of the sample object for the multimedia material; then, the preset multi-objective model is trained using the interaction time feature, shallow preference feature and sparse behavior feature to obtain a multi-objective model, so as to use the multi-objective model for information recommendation. This scheme improves the information flow recommendation effect and increases the evaluation dimension of the information flow recommendation material by designing a calculation formula for the interaction time of different media media, bucketing the interaction time with equal frequency, and weighted fusion of sparse targets (likes, comments, favorites, etc.). In the shallow preference mining module, the commonly used click target modeling is upgraded to shallow preference modeling. According to different media media, combined with data distribution statistics, positive and negative samples are re-divided, taking into account the problem of inconsistent shallow interest standards generated by different types of media media. In the multi-target fusion scoring parameter optimization module, the exponential weighted addition fusion formula is used, and the optimal parameters are found through offline grid search, which solves the problem of target estimation being prone to loss and gain, greatly improving the efficiency and accuracy of information recommendation.
[0113] According to the method described in the previous embodiment, an example is given below to further illustrate it in detail.
[0114] In this embodiment, an example is taken in which the information recommendation device is specifically integrated into an electronic device, and the information recommendation can specifically be performed for a target object.
[0115] Information flow recommendation is a business scenario closely related to people's lives and work, and plays an important role in many fields. In information flow recommendation, there are usually many types of media resources, such as pictures and texts, plain text, short videos, long videos, etc. In addition, there are also multiple core business goals in information flow recommendation, such as click-through rate, consumption time, comment rate, like rate, collection rate, etc. Therefore, multi-objective and multimedia resource modeling technology is crucial to improving the effect of information flow recommendation.
[0116] Therefore, this application proposes a solution to the problem that the multi-objective modeling technology of multimedia resources in the information flow recommendation scenario has differences in the shallow interest expressions of users of multiple media resources and the target values increase and decrease when multiple targets are fused, which cannot be balanced. This application may include a sample generation module, a sample preprocessing module, a sample shallow interest extraction module, a model training module, a model multi-objective fusion formula search module, and an online estimation and sorting module.
[0117] Users of information flow products mainly interact with information in two scenarios. The main scenario is the list page, where users click, stay on the list page, and other behaviors; if users are interested in a certain material in the main scenario, they will enter the detail page of the material, where they will browse, play, comment, and other behaviors. Therefore, the feedback link of users in the information flow scenario is:
[0118] Exposure -> Shallow interest feedback (clicks, dwell time) -> Deep interest feedback (comments, playback time)
[0119] The list page may refer to the first interface displayed after a user clicks into an application related to information flow recommendation, which includes multiple recommended materials. The details page may refer to the material details interface entered after a user clicks on a material displayed on the list page, such as a short video playback, graphic details, and other pages.
[0120] like Figure 2a As shown in the figure, the solution can first generate samples, then preprocess the samples, perform shallow object preference mining on the preprocessed samples, then train the preset multi-objective model, optimize the target fusion scoring parameters, use the multi-objective model to estimate and perform scoring fusion, and finally sort according to the fusion score, and obtain the recommendation results based on the sorting results. The following is a detailed introduction to the solution:
[0121] like Figure 2b As shown, an information recommendation method, the specific process can be as follows:
[0122] 201. The electronic device obtains sample data of a preset multi-objective model.
[0123] The sample data may include object information, object behavior information, and multimedia material information. The object behavior information may include operation duration and sparse operation data of the sample object on the multimedia material. The operation duration may include play duration and stay duration. The sparse operation data represents the interactive information of the sample object on the multimedia material.
[0124] For example, object behavior information can be obtained from online logs, including data such as clicks, dwell time, comments, playback time, and user IDs and material IDs. Object information and recommended object information (i.e., multimedia material information to be recommended) are obtained through the data center service and material forwarding library service, and the information is associated to generate an initial sample.
[0125] It should be noted that the acquisition of user information in this application is authorized by the user.
[0126] For example, the electronic device can specifically perform feature extraction on the sample data to generate sample object features, sample material features and cross features, and the cross features represent the degree of association between the sample object and the multimedia material. For example, the sample data can be hashed in a hashing manner to generate sample object features, sample material features and cross features, and the cross features represent the degree of association between the sample object and the multimedia material.
[0127] The multi-objective modeling of this application learns shallow preferences, interaction duration and sparse behavior objectives. Sample preprocessing mainly includes multimedia interaction duration calculation, interaction duration equal frequency bucket processing, sparse target processing, and feature processing.
[0128] 202. The electronic device determines, according to the operation duration, an interaction duration of the sample object with respect to the multimedia material, and an interaction duration feature corresponding to the interaction duration.
[0129] For example, the electronic device may specifically calculate the interaction duration of the sample object with the multimedia material according to the playback duration and the dwell time; and perform equal-frequency bucketing processing on the interaction duration to obtain the interaction duration feature of the sample object.
[0130] Among them, the multimedia material may include static material and dynamic material, and "calculate the interaction time of the sample object with the multimedia material". Specifically, the electronic device can, when the multimedia material is static material, sum the playback time and the stay time to obtain the interaction time of the sample object with the multimedia material; when the multimedia material is dynamic material, and the stay time is less than or equal to a preset threshold, use the playback time to determine the interaction time of the sample object with the multimedia material; when the multimedia material is dynamic material, and the stay time is greater than the preset threshold, sum the playback time and the stay time to obtain the interaction time of the sample object with the multimedia material.
[0131] Among them, static materials can be graphic materials, pure text materials, etc., and dynamic materials can be short video materials, long video materials, etc.
[0132] For example, the play time of the sample object can be set as play_time, and the dwell time can be set as dwell_time. Then the calculation method of the interaction time (also called consumption time) consume_time can be as follows:
[0133] Graphics, text only materials:
[0134] consume_time=play_time+dwell_time
[0135] Short video and long video materials:
[0136]
[0137] Here, m is a preset threshold value, which can be obtained based on the statistical distribution of the object's residence time.
[0138] There are many ways to set the preset threshold, for example, it can be flexibly set according to the needs of the actual application, or it can be pre-set and stored in the electronic device. In addition, the preset threshold can be built into the electronic device, or it can be stored in a memory and sent to the electronic device, etc. For example, m is usually taken as the 70th percentile value of the object's stay time.
[0139] The interaction duration is subjected to equal-frequency bucketing processing. Specifically, the electronic device may arrange the interaction duration in positive order to obtain an arranged sequence; the arranged sequence is divided into a preset number of categories, and the interaction duration features of the sample object are generated based on the division result.
[0140] Since the interaction duration target is a continuous value, equal frequency bucketing will be used in advance to convert the duration target continuous value into discrete categories. The equal frequency bucketing processing method can be: accumulate n days of initial samples, calculate the consumption duration, sort the consumption duration in positive order, and divide it into k categories, for example, k can be 15. The number of samples in each category is the same, and k value ranges are divided, and the continuous value target is mapped to obtain the discrete category value of the consumption duration.
[0141] 203. The electronic device performs preference mining on the sample object based on the interaction duration to obtain shallow preference features of the sample object.
[0142] For example, the electronic device can specifically extract features from the multimedia material to obtain material features; determine a positive sample of shallow preference based on the interaction duration of the sample object with the multimedia material to generate positive sample features; and concatenate the material features and the positive sample features to obtain shallow preference features of the sample object.
[0143] For example, when the multimedia material is a graphic material, the electronic device can specifically determine the graphic material with an interaction duration greater than a preset graphic threshold as a positive sample of shallow preference; when the multimedia material is a plain text material, the electronic device can determine the plain text material on which the sample object is clicked as a positive sample of shallow preference; when the multimedia material is a video material, the electronic device can calculate the completion rate of the video material based on the interaction duration, and determine the video material with a completion rate greater than a preset video threshold as a positive sample of shallow preference.
[0144] There are four common multimedia materials in information flow recommendations: pictures and texts, plain text, long videos, and short videos. The shallow preference definitions for different materials can be as follows:
[0145] Graphics and text materials: The length of time users stay can be considered, and the calculation method of the interaction time of short videos and long videos can be referred to. Samples with a graphic and text interaction time greater than the preset graphic and text threshold are defined as shallow preference positive samples.
[0146] Plain text material: Shallow preference positive samples have the same definition as click samples.
[0147] Long and short video materials: The video completion rate can be calculated. The completion rate is calculated as follows: consumption time / total video time. Samples with a completion rate >= preset video threshold can be defined as shallow preference positive samples.
[0148] 204. The electronic device performs feature extraction on the sparse operation data of the sample object to obtain sparse behavior features of the sample object for the multimedia material.
[0149] For example, the sparse operation data may include multiple sparse behaviors, and the electronic device may specifically determine the weight of each sparse behavior in the sparse operation data of the sample object; based on the weight of the sparse behavior and the sparse behavior, generate the sparse behavior characteristics of the sample object for the multimedia material.
[0150] Since the comment target of an object is very sparse, and the comment has a certain correlation with other sparse targets of the object (such as collections and likes), other sparse behaviors can be converted into comment behavior features through certain weight parameters. These converted features are collectively referred to as sparse behavior features.
[0151] 205. The electronic device trains the preset multi-objective model using the interaction duration feature, the shallow preference feature, and the sparse behavior feature to obtain a multi-objective model.
[0152] For example, the electronic device can specifically utilize the interaction duration features, shallow preference features, and sparse behavior features to construct the output results of the preset multi-objective model; converge the preset multi-objective model according to the sample data and the output results to obtain a multi-objective model, so as to utilize the multi-objective model for information recommendation.
[0153] Among them, the "converging the preset multi-objective model according to the sample data and the output results to obtain the multi-objective model" means that the electronic device can specifically perform feature extraction on the sample data to generate sample object features, sample material features and cross features, wherein the cross features characterize the degree of association between the sample object and the multimedia material; construct the input features of the preset multi-objective model using the sample object features, the sample material features and the cross features; and converge the preset multi-objective model according to the input features and the output results to obtain the multi-objective model.
[0154] For example, the MMOE model can be used for multi-objective modeling, which includes three towers (corresponding to the three objectives of shallow preference, interaction duration, and sparse behavior), three gates, and n expert networks (n>3). The network structure of the multi-objective model can be as follows: Figure 1c As shown in the figure, the underlying input of the network structure is the sample material feature doc feature, sample object feature user feature, and cross feature cross_feature after sample preprocessing. First, initialize the feature embedding vocabulary, map the original features to embedding, and concat. Then input four expert networks, and the output of the expert network is weighted by the parameters of the three gate networks and input into the three target towers. Finally, the preference prediction value ctr_new predict, the duration prediction value consume_predict, and the sparse prediction value comment_predict are obtained. Next, calculate the loss of each target tower, and back-propagate to the expert network to update the network parameters and feature embedding vocabulary. When the loss of each tower is less than the corresponding threshold, stop training.
[0155] 206. The electronic device predicts the target object and the object to be recommended using the multi-objective model to obtain a duration prediction value, a preference prediction value, and a sparse prediction value corresponding to the multi-objective model.
[0156] For example, the electronic device can specifically perform feature extraction on the target object to obtain target object features; perform feature extraction on the object to be recommended to obtain features of the object to be recommended; and perform prediction using the multi-objective model based on the target object features and the features of the object to be recommended to obtain a duration prediction value, a preference prediction value and a sparse prediction value corresponding to the multi-objective model.
[0157] 207. The electronic device determines a target recommended object among the objects to be recommended according to the duration prediction value, the preference prediction value and the sparse prediction value, and recommends the target recommended object to the target object.
[0158] For example, the electronic device can obtain the estimated scores of the model target tower outputs, where the estimated score of the shallow preference (ctr_new) tower is represented by predict_ctr, the estimated score of the interaction time (consume_time) tower is represented by predict_time, and the estimated score of the sparse behavior (comment) tower is represented by predict_comment. The final fusion score is represented by predict, and the scoring formula can be an exponential linear weighted formula as follows:
[0159]
[0160] Among them, a, b, c, o, p, q are optimization parameters. In order to save optimization cost and reduce optimization variables, according to the physical meaning of the parameters, a=1 and o=1 can usually be set. Therefore, only four parameters b, c, p and q need to be optimized. The optimization can adopt the grid-search method, that is, first set the parameter value range, then take n values at equal intervals within the interval, calculate the fusion score after the parameters are combined, calculate auc and uauc (model evaluation index) and time gain value according to the fusion score, and take the best set of parameters.
[0161] For example, the electronic device can specifically obtain weight parameters of the duration prediction value, preference prediction value and sparse prediction value, as well as exponential parameters of the duration prediction value, preference prediction value and sparse prediction value, respectively; based on the weight parameters and the exponential parameters, perform exponential linear weighting on the duration prediction value, preference prediction value and sparse prediction value to obtain a fusion score of the object to be recommended; and determine a target recommended object from the objects to be recommended based on the fusion score.
[0162] For example, the recommendation result can be generated by calculating the fusion scores of the recommended objects for the current user and taking the recommended objects with the top n scores as the target recommended objects.
[0163] Optionally, the target fusion scoring parameter optimization module can be independent of the model training and estimation process. Scoring parameter optimization needs to be performed again only when the model structure, sample distribution, and learning objectives change.
[0164] In the sample preprocessing module, this application performs weighted fusion on sparse targets (likes, comments, favorites, etc.), designs a calculation formula for interaction time of different media media, and divides the interaction time into equal-frequency buckets. In the shallow preference mining module, the click target modeling commonly used in the industry is upgraded to shallow preference modeling. Among them, shallow preferences are formulated according to different media media and combined with data distribution statistics to re-divide positive and negative samples. In the multi-target fusion scoring parameter optimization module, the exponential weighted addition fusion formula is adopted, and the optimal parameters are found through offline grid search.
[0165] This application provides a multi-objective modeling scheme that includes sparse targets in addition to the two targets of clicks and duration, which specifically improves the information flow recommendation effect, adds the evaluation dimension of information flow recommendation materials, and solves the problem that the existing technology does not include sparse target modeling. It also provides a user shallow interest mining solution to solve the problem that the existing technology uses click behavior to express user shallow interests, but does not take into account the inconsistent shallow interest standards generated by different types of media. It also provides an exponential weighted fusion formula and uses grid search to search for the optimal weight parameters and index parameters, solving the problem that the existing technology is prone to one increase and the other decrease in target estimation.
[0166] This application adds an evaluation dimension for information flow recommendation materials, solves the problem that the existing technology does not include sparse target modeling, and provides a shallow interest definition solution. After this solution is launched in the information flow scenario, the average time per person is increased by 3.8% and the comment rate is increased by 15%.
[0167] As can be seen from the above, this embodiment can obtain sample data of a preset multi-objective model, wherein the sample data includes the operation time and sparse operation data of the sample object on the multimedia material; then, the interaction time of the sample object on the multimedia material and the interaction time feature corresponding to the interaction time are determined according to the operation time; then, preference mining is performed on the sample object based on the interaction time to obtain the shallow preference feature of the sample object; then, feature extraction is performed on the sparse operation data of the sample object to obtain the sparse behavior feature of the sample object for the multimedia material; then, the preset multi-objective model is trained using the interaction time feature, shallow preference feature and sparse behavior feature to obtain a multi-objective model, so as to use the multi-objective model for information recommendation. This scheme improves the information flow recommendation effect and increases the evaluation dimension of the information flow recommendation material by designing a calculation formula for the interaction time of different media media, bucketing the interaction time with equal frequency, and weighted fusion of sparse targets (likes, comments, favorites, etc.). In the shallow preference mining module, the commonly used click target modeling is upgraded to shallow preference modeling. According to different media media and combined with data distribution statistics, the positive and negative samples are re-divided, taking into account the problem of inconsistent shallow interest standards generated by different types of media media. In the multi-target fusion scoring parameter optimization module, the exponential weighted addition fusion formula is adopted, and the optimal parameters are found through offline grid search, which solves the problem that target estimation is prone to loss. Compared with relying solely on clicks for information recommendation, the efficiency of information recommendation is greatly improved, and the accuracy of information recommendation is improved.
[0168] In order to better implement the above method, accordingly, the embodiment of the present application further provides an information recommendation device, which can be integrated into an electronic device, and the electronic device can be a server, a terminal or other devices.
[0169] For example, Figure 3 As shown, the information recommendation device may include an acquisition unit 301, an interaction duration unit 302, a shallow preference unit 303, a sparse behavior unit 304 and a training unit 305, as follows:
[0170] An acquisition unit 301 is used to acquire sample data of a preset multi-objective model, wherein the sample data includes operation duration and sparse operation data of a sample object on a multimedia material;
[0171] An interaction duration unit 302, configured to determine the interaction duration of the sample object with respect to the multimedia material and an interaction duration feature corresponding to the interaction duration according to the operation duration;
[0172] A shallow preference unit 303, configured to perform preference mining on the sample object based on the interaction duration to obtain shallow preference features of the sample object;
[0173] A sparse behavior unit 304, configured to extract features from the sparse operation data of the sample object to obtain sparse behavior features of the sample object for the multimedia material;
[0174] The training unit 305 is used to train the preset multi-objective model using the interaction duration feature, shallow preference feature and sparse behavior feature to obtain a multi-objective model, so as to use the multi-objective model for information recommendation.
[0175] Optionally, in some embodiments, the operation duration includes a play duration and a stay duration, and the interaction duration unit 302 includes a calculation subunit and a processing subunit, as follows:
[0176] A calculation subunit, which may be specifically used to calculate the interaction time of the sample object with the multimedia material according to the playback time and the stay time;
[0177] The processing subunit may be specifically configured to perform equal-frequency bucketing processing on the interaction duration to obtain the interaction duration feature of the sample object.
[0178] Optionally, in some embodiments, the multimedia material includes static material and dynamic material, and the calculation subunit can be specifically used to, when the multimedia material is static material, sum the playback time and the dwell time to obtain the interaction time of the sample object with the multimedia material; when the multimedia material is dynamic material and the dwell time is less than or equal to a preset threshold, use the playback time to determine the interaction time of the sample object with the multimedia material; when the multimedia material is dynamic material and the dwell time is greater than the preset threshold, sum the playback time and the dwell time to obtain the interaction time of the sample object with the multimedia material.
[0179] Optionally, in some embodiments, the processing subunit can be specifically used to arrange the interaction durations in positive order to obtain an arranged sequence; divide the arranged sequence into a preset number of categories, and generate interaction duration features of the sample object based on the division result.
[0180] Optionally, in some embodiments, the shallow preference unit 303 can be specifically used to extract features from the multimedia material to obtain material features; determine a positive sample of shallow preference based on the interaction duration of the sample object with the multimedia material to generate positive sample features; and concatenate the material features and the positive sample features to obtain shallow preference features of the sample object.
[0181] Optionally, in some embodiments, the multimedia material includes graphic material, plain text material and video material, and the shallow preference unit 303 can be specifically used to, when the multimedia material is graphic material, determine the graphic material with the interaction duration greater than a preset graphic threshold as a positive sample of shallow preference; when the multimedia material is plain text material, determine the plain text material for clicking the sample object as a positive sample of shallow preference; when the multimedia material is video material, calculate the completion rate of the video material based on the interaction duration, and determine the video material with the completion rate greater than the preset video threshold as a positive sample of shallow preference.
[0182] Optionally, in some embodiments, the sparse operation data includes multiple sparse behaviors, and the sparse behavior unit 304 can be specifically used to determine the weight of each sparse behavior in the sparse operation data of the sample object; based on the weight of the sparse behavior and the sparse behavior, generate the sparse behavior characteristics of the sample object for the multimedia material.
[0183] Optionally, in some embodiments, the training unit 305 may include a training subunit and a recommendation subunit, as follows:
[0184] The training subunit can be specifically used to construct the output result of the preset multi-objective model using the interaction duration features, shallow preference features and sparse behavior features; converge the preset multi-objective model according to the sample data and the output results to obtain a multi-objective model.
[0185] The recommendation subunit can be specifically used to perform information recommendation using the multi-objective model.
[0186] Optionally, in some embodiments, the training subunit can be specifically used to extract features from the sample data, generate sample object features, sample material features and cross features, and the cross features characterize the degree of association between the sample object and the multimedia material; use the sample object features, the sample material features and the cross features to construct input features of the preset multi-objective model; and converge the preset multi-objective model according to the input features and the output results to obtain a multi-objective model.
[0187] Optionally, in some embodiments, the recommendation sub-unit can be specifically used to use the multi-objective model to predict the target object and the object to be recommended, and obtain the duration prediction value, preference prediction value and sparse prediction value corresponding to the multi-objective model; determine the target recommended object among the objects to be recommended according to the duration prediction value, preference prediction value and sparse prediction value, and recommend the target recommended object to the target object.
[0188] Optionally, in some embodiments, the training subunit can be specifically used to determine the weight parameters and index parameters of the duration prediction value, preference prediction value and sparse prediction value; based on the weight parameters and index parameters, the duration prediction value, preference prediction value and sparse prediction value are exponentially linearly weighted to obtain a fusion score of the object to be recommended; and based on the fusion score, a target recommended object is determined from the objects to be recommended.
[0189] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0190] As can be seen from the above, in this embodiment, the acquisition unit 301 can acquire sample data of the preset multi-objective model, and the sample data includes the operation duration and sparse operation data of the sample object on the multimedia material; then, the interaction duration unit 302 determines the interaction duration of the sample object on the multimedia material and the interaction duration feature corresponding to the interaction duration according to the operation duration; then, the shallow preference unit 303 performs preference mining on the sample object based on the interaction duration to obtain the shallow preference feature of the sample object; then, the sparse behavior unit 304 performs feature extraction on the sparse operation data of the sample object to obtain the sparse behavior feature of the sample object for the multimedia material; then, the training unit 305 uses the interaction duration feature, shallow preference feature and sparse behavior feature to train the preset multi-objective model to obtain the multi-objective model, so as to use the multi-objective model for information recommendation. This solution improves the information flow recommendation effect and increases the evaluation dimension of information flow recommendation materials by designing a calculation formula for the interaction time of different media media, dividing the interaction time into equal-frequency buckets, and weighted fusion of sparse targets (likes, comments, favorites, etc.). In the shallow preference mining module, the commonly used click target modeling is upgraded to shallow preference modeling. According to different media media and combined with data distribution statistics, positive and negative samples are re-divided, taking into account the problem of inconsistent shallow interest standards generated by different types of media media. In the multi-target fusion scoring parameter optimization module, the exponential weighted addition fusion formula is adopted, and the optimal parameters are found through offline grid search, which solves the problem that target estimation is prone to increase or decrease, greatly improving the efficiency and accuracy of information recommendation.
[0191] In addition, the present application also provides an electronic device, such as Figure 4 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:
[0192] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0193] The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the electronic device and processes data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0194] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0195] The electronic device also includes a power supply 403 for supplying power to each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 403 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0196] The electronic device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0197] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, as follows:
[0198] Acquire sample data of a preset multi-objective model, the sample data including operation duration and sparse operation data of a sample object on a multimedia material; then, determine the interaction duration of the sample object on the multimedia material and the interaction duration feature corresponding to the interaction duration according to the operation duration; then, perform preference mining on the sample object based on the interaction duration to obtain shallow preference features of the sample object; then, perform feature extraction on the sparse operation data of the sample object to obtain sparse behavior features of the sample object for the multimedia material; then, train the preset multi-objective model using the interaction duration features, shallow preference features and sparse behavior features to obtain a multi-objective model, so as to use the multi-objective model for information recommendation.
[0199] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0200] As can be seen from the above, this embodiment can obtain sample data of a preset multi-objective model, wherein the sample data includes the operation time and sparse operation data of the sample object on the multimedia material; then, the interaction time of the sample object on the multimedia material and the interaction time feature corresponding to the interaction time are determined according to the operation time; then, preference mining is performed on the sample object based on the interaction time to obtain the shallow preference feature of the sample object; then, feature extraction is performed on the sparse operation data of the sample object to obtain the sparse behavior feature of the sample object for the multimedia material; then, the preset multi-objective model is trained using the interaction time feature, shallow preference feature and sparse behavior feature to obtain a multi-objective model, so as to use the multi-objective model for information recommendation. This scheme improves the information flow recommendation effect and increases the evaluation dimension of the information flow recommendation material by designing a calculation formula for the interaction time of different media media, bucketing the interaction time with equal frequency, and weighted fusion of sparse targets (likes, comments, favorites, etc.). In the shallow preference mining module, the commonly used click target modeling is upgraded to shallow preference modeling. According to different media media, combined with data distribution statistics, positive and negative samples are re-divided, taking into account the problem of inconsistent shallow interest standards generated by different types of media media. In the multi-target fusion scoring parameter optimization module, the exponential weighted addition fusion formula is used, and the optimal parameters are found through offline grid search, which solves the problem of target estimation being prone to loss and gain, greatly improving the efficiency and accuracy of information recommendation.
[0201] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0202] To this end, an embodiment of the present application further provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the information recommendation methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:
[0203] Acquire sample data of a preset multi-objective model, the sample data including operation duration and sparse operation data of a sample object on a multimedia material; then, determine the interaction duration of the sample object on the multimedia material and the interaction duration feature corresponding to the interaction duration according to the operation duration; then, perform preference mining on the sample object based on the interaction duration to obtain shallow preference features of the sample object; then, perform feature extraction on the sparse operation data of the sample object to obtain sparse behavior features of the sample object for the multimedia material; then, train the preset multi-objective model using the interaction duration features, shallow preference features and sparse behavior features to obtain a multi-objective model, so as to use the multi-objective model for information recommendation.
[0204] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0205] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0206] Since the instructions stored in the storage medium can execute the steps in any information recommendation method provided in the embodiments of the present application, the beneficial effects that can be achieved by any information recommendation method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0207] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the above-mentioned information recommendation aspects.
[0208] The above is a detailed introduction to an information recommendation method, device, electronic device, storage medium and program product provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An information recommendation method, characterized in that: include: Acquire sample data of a preset multi-objective model, wherein the sample data includes operation duration and sparse operation data of the sample object on the multimedia material; Determining, according to the operation duration, an interaction duration of the sample object with respect to the multimedia material, and an interaction duration feature corresponding to the interaction duration; Performing preference mining on the sample object based on the interaction duration to obtain shallow preference features of the sample object; Performing feature extraction on the sparse operation data of the sample object to obtain sparse behavior features of the sample object with respect to the multimedia material; The preset multi-objective model is trained using the interaction duration feature, shallow preference feature and sparse behavior feature to obtain a multi-objective model, so as to use the multi-objective model for information recommendation.
2. The method according to claim 1, characterized in that The operation duration includes the play duration and the stay duration, and the determining of the interaction duration of the sample object to the multimedia material according to the operation duration, and the interaction duration feature corresponding to the interaction duration, includes: Calculate the interaction time of the sample object with the multimedia material according to the playback time and the stay time; The interaction duration is divided into equal-frequency buckets to obtain the interaction duration features of the sample object.
3. The method according to claim 2, characterized in that The multimedia material includes static material and dynamic material, and the step of calculating the interaction duration of the sample object with the multimedia material according to the playback duration and the stay duration includes: When the multimedia material is a static material, the playing time and the staying time are summed to obtain the interaction time of the sample object with the multimedia material; When the multimedia material is a dynamic material and the dwelling time is less than or equal to a preset threshold, the interaction time of the sample object with the multimedia material is determined by using the playback time; When the multimedia material is a dynamic material and the dwelling time is greater than a preset threshold, the play time and the dwelling time are summed to obtain the interaction time of the sample object with the multimedia material.
4. The method according to claim 2, characterized in that: The performing equal-frequency bucketing processing on the interaction duration to obtain the interaction duration feature of the sample object includes: Arrange the interaction durations in positive order to obtain an arranged sequence; The arranged sequence is divided into a preset number of categories, and the interaction duration features of the sample objects are generated based on the division results.
5. The method according to claim 1, characterized in that The performing preference mining on the sample object based on the interaction duration to obtain shallow preference features of the sample object includes: Extracting features from the multimedia material to obtain material features; Determine a positive sample of shallow preference based on the interaction duration of the sample object with the multimedia material, and generate a positive sample feature; The material features and the positive sample features are concatenated to obtain shallow preference features of the sample object.
6. The method according to claim 5, characterized in that The multimedia material includes graphic material, plain text material and video material, and the positive sample of shallow preference determined based on the interaction duration of the sample object with the multimedia material includes: When the multimedia material is a graphic material, the graphic material with an interaction time greater than a preset graphic threshold is determined as a positive sample of shallow preference; When the multimedia material is a plain text material, the plain text material on which the sample object is clicked is determined as a positive sample of shallow preference; When the multimedia material is a video material, the completion rate of the video material is calculated based on the interaction duration, and the video material with the completion rate greater than a preset video threshold is determined as a positive sample of shallow preference.
7. The method according to claim 1, characterized in that The sparse operation data includes a plurality of sparse behaviors, and the feature extraction of the sparse operation data of the sample object to obtain the sparse behavior features of the sample object for the multimedia material includes: Determining the weight of each sparse behavior in the sparse operation data of the sample object; Based on the weight of the sparse behavior and the sparse behavior, a sparse behavior feature of the sample object for the multimedia material is generated.
8. The method according to claim 1, characterized in that The method of training the preset multi-objective model by using the interaction duration feature, the shallow preference feature and the sparse behavior feature to obtain the multi-objective model includes: The output result of the preset multi-objective model is constructed by using the interaction duration feature, shallow preference feature and sparse behavior feature; The preset multi-objective model is converged according to the sample data and the output result to obtain a multi-objective model.
9. The method according to claim 8, characterized in that The step of converging the preset multi-objective model according to the sample data and the output result to obtain the multi-objective model comprises: Extracting features from the sample data to generate sample object features, sample material features, and cross features, wherein the cross features represent the degree of association between the sample object and the multimedia material; Constructing input features of the preset multi-objective model using the sample object features, the sample material features and the cross features; The preset multi-objective model is converged according to the input features and the output results to obtain a multi-objective model.
10. The method according to claim 1, characterized in that The using the multi-objective model to perform information recommendation includes: Using the multi-objective model to predict the target object and the object to be recommended, and obtaining a duration prediction value, a preference prediction value, and a sparse prediction value corresponding to the multi-objective model; A target recommended object among the objects to be recommended is determined according to the duration prediction value, the preference prediction value and the sparse prediction value, and the target recommended object is recommended to the target object.
11. The method according to claim 10, characterized in that The determining the target recommended object among the objects to be recommended according to the duration prediction value, the preference prediction value and the sparseness prediction value includes: Determining weight parameters and index parameters of the duration prediction value, preference prediction value, and sparse prediction value; Based on the weight parameter and the index parameter, the duration prediction value, the preference prediction value and the sparse prediction value are subjected to exponential linear weighting to obtain a fusion score of the object to be recommended; A target recommended object is determined from the objects to be recommended based on the fusion score.
12. An information recommendation device, characterized in that: include: An acquisition unit, used to acquire sample data of a preset multi-objective model, wherein the sample data includes operation duration and sparse operation data of the sample object on the multimedia material; An interaction duration unit, used to determine the interaction duration of the sample object to the multimedia material and an interaction duration feature corresponding to the interaction duration according to the operation duration; A shallow preference unit, used to perform preference mining on the sample object based on the interaction duration to obtain shallow preference features of the sample object; A sparse behavior unit, used for performing feature extraction on the sparse operation data of the sample object to obtain the sparse behavior features of the sample object for the multimedia material; A training unit is used to train the preset multi-objective model using the interaction duration feature, shallow preference feature and sparse behavior feature to obtain a multi-objective model, so as to use the multi-objective model for information recommendation.
13. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the information recommendation method according to any one of claims 1 to 11 are implemented.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the information recommendation method according to any one of claims 1 to 11.
15. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the information recommendation method according to any one of claims 1 to 11 are implemented.
