Video pushing method and device and electronic equipment

Through the video recommendation method driven by user portraits, multiple video types are obtained and classified, which solves the problem of limited existing recommendation methods, realizes diversified video recommendations, and improves user experience and retention rate.

CN118779488APending Publication Date: 2024-10-15HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410813857.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The existing video recommendation method is based on the user's historical browsing, which may result in limited recommendations, cannot meet the diverse needs of users, and affects the user's viewing experience.

Method used

By obtaining user portrait information, video data of multiple video types are obtained in parallel, classified, sorted and reordered, and a video recommendation collection is generated and pushed to the user device.

Benefits of technology

The video recommendation content has been broadened to meet the diverse needs of users, improve users' video viewing experience, and improve user experience and retention rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779488A_ABST
    Figure CN118779488A_ABST
Patent Text Reader

Abstract

The invention discloses a video recommendation method and device and electronic equipment, and the method comprises the steps: obtaining user portrait information in response to a video browsing instruction for a target user; obtaining video data of a plurality of video types in a parallel mode according to the user portrait information; the video contents of the video data under different video types are different; according to the video types, classifying and sorting the video data corresponding to each video type to obtain a classifying and sorting result corresponding to each video type; according to a classification sorting result, obtaining a classification screening set corresponding to each video type, the classification screening set comprising at least one piece of video data; reordering the classification screening set corresponding to each video type to obtain a reordering result; according to the reordering result, a video recommendation set is obtained, and the video recommendation set comprises multiple pieces of video data; and pushing the video data in the video recommendation set to user equipment corresponding to the target user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a video push method, device and electronic device. Background Art

[0002] With the rapid development of the Internet, browsing videos has become an important way for people to obtain information, entertainment and leisure. At present, videos of the same type are usually recommended to users based on the videos that users have browsed in the past.

[0003] Therefore, this method may result in limited recommendations, causing users to keep browsing similar videos, ignoring the diverse needs of users and affecting their viewing experience. Summary of the invention

[0004] In view of the above problems, the present application provides a video recommendation method, device and electronic device to achieve the purpose of recommending videos to users in a diversified manner to improve the user's viewing experience. The specific scheme is as follows:

[0005] The first aspect of the present application provides a video recommendation method, comprising:

[0006] In response to a video browsing instruction for a target user, obtaining user portrait information;

[0007] According to the user portrait information, video data of multiple video types are obtained in parallel; the video content of the video data of different video types is different;

[0008] According to the video type, the video data corresponding to each video type is classified and sorted to obtain a classification and sorting result corresponding to each video type;

[0009] According to the classification and sorting results, a classification and screening set corresponding to each of the video types is obtained, wherein the classification and screening set includes at least one of the video data;

[0010] Reordering the classification and screening sets corresponding to each of the video types to obtain a reordering result;

[0011] According to the re-ranking result, a video recommendation set is obtained, wherein the video recommendation set includes a plurality of video data;

[0012] The video data in the video recommendation set is pushed to a user device corresponding to the target user.

[0013] In a possible implementation, obtaining user portrait information includes:

[0014] Obtain the historical browsing videos of the target user;

[0015] Obtaining a video tag corresponding to the historically browsed video; the video tag corresponds to the video type;

[0016] According to the video tag, user portrait information is obtained, the user portrait information includes at least one portrait tag, the portrait tag is related to the video tag, and the portrait tag corresponds to the video type.

[0017] In a possible implementation, before obtaining video data of multiple video types according to the user portrait information, the method further includes at least one of the following:

[0018] Setting a weight value for the portrait tag; at least two portrait tags among different portrait tags corresponding to the same video type have different weight values;

[0019] Expanding the image tags corresponding to each of the video types respectively, so that at least one image tag corresponding to at least one of the video types is increased by at least one;

[0020] Wherein, according to the user portrait information, video data of multiple video types are obtained in parallel, including:

[0021] According to the portrait tags corresponding to the different video types and the weight values ​​of the portrait tags, video data of the multiple video types are obtained in parallel.

[0022] In a possible implementation, setting a weight value for the portrait tag includes:

[0023] Obtaining historical browsing parameters corresponding to each of the portrait tags;

[0024] The weight value of the portrait tag is set according to the historical browsing parameters.

[0025] In a possible implementation, the portrait tag corresponding to each video type is expanded respectively, including:

[0026] For the first video type, obtaining at least one target tag different from the image tag corresponding to the first video type from the image tags corresponding to the second video type;

[0027] Setting the target tag to the first video type;

[0028] The first video type and the second video type are any video type among the multiple video types, and the first video type and the second video type are different.

[0029] In a possible implementation, obtaining video data of multiple video types in parallel according to the user portrait information includes at least one of the following:

[0030] Obtaining video data of multiple video types from a recommendation database according to the user portrait information;

[0031] Providing user information corresponding to the user portrait information to a recall model to receive video data of multiple video types fed back by the recall model according to the user information;

[0032] Wherein, the recall model is a machine learning model.

[0033] In a possible implementation, the video data is stored in the recommendation database according to the video type classification;

[0034] Furthermore, the recommendation database reads all video data in the storage database at first duration intervals, and reads incremental video data in the storage database relative to the recommendation database at second duration intervals; the first duration is greater than the second duration.

[0035] In a possible implementation, the video data corresponding to each video type is classified and sorted according to the video type to obtain a classification and sorting result corresponding to each video type, including:

[0036] For each of the video types, classify and sort the video data corresponding to each of the video types according to at least two sorting methods to obtain at least two initial sorting results corresponding to each of the video types;

[0037] For each of the video types, the initial sorting results are integrated to obtain a classification sorting result corresponding to each of the video types;

[0038] Among them, the sorting method at least includes: a method of sorting according to preset sorting rules and a method of sorting through a sorting model; the sorting model is a machine learning model.

[0039] A second aspect of the present application provides a video recommendation device, comprising:

[0040] A portrait obtaining unit, for obtaining user portrait information in response to a video browsing instruction for a target user;

[0041] A video obtaining unit, configured to obtain video data of multiple video types in parallel according to the user portrait information; the video content of the video data of different video types is different;

[0042] A classification and sorting unit, used for classifying and sorting the video data corresponding to each video type according to the video type, so as to obtain a classification and sorting result corresponding to each video type;

[0043] A classification and screening unit, configured to obtain a classification and screening set corresponding to each of the video types according to the classification and sorting results, wherein the classification and screening set includes at least one of the video data;

[0044] A reordering unit, used for reordering the classification screening set corresponding to each video type to obtain a reordering result;

[0045] A sorting and recommendation unit, configured to obtain a video recommendation set according to the re-sorting result, wherein the video recommendation set includes a plurality of video data;

[0046] The video pushing unit is used to push the video data in the video recommendation set to the user equipment corresponding to the target user.

[0047] A third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the video recommendation method of the first aspect or any implementation of the first aspect.

[0048] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:

[0049] The memory is used to store computer programs;

[0050] The processor is used to execute the computer program so that the electronic device can implement the video recommendation method of the first aspect or any implementation manner of the first aspect.

[0051] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the video recommendation method of the first aspect or any implementation of the first aspect.

[0052] By means of the above technical solution, in a video recommendation method, device and electronic device provided by the present application, according to the user portrait information of the target user, video data of different video types are obtained according to the video content classification, and the video data of each video type screened out are re-sorted after classification and sorting, and then the final video recommendation set is obtained according to the re-sorting result, and the video data therein is pushed to the user device of the target user. It can be seen that the present application provides users with multiple types of video recommendations, broadens the video content recommended to users, can meet users' diverse video viewing needs, and improve users' video viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0054] Figure 1 A schematic diagram of a system architecture disclosed in this application;

[0055] Figure 2 This is a schematic diagram of an optional hardware structure of the terminal 100 in this application;

[0056] Figure 3 It is a schematic diagram of the structure of the server 200 in this application;

[0057] Figure 4 A flowchart of a video recommendation method provided in an embodiment of the present application;

[0058] Figure 5 A schematic diagram of a process for obtaining user portrait information in a video recommendation method provided in an embodiment of the present application;

[0059] Figure 6 A schematic diagram of the structure of a video recommendation device provided in an embodiment of the present application;

[0060] Figure 7 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application;

[0061] Figure 8 This is a flowchart of the video recommendation system implemented in this application recommending videos to users. DETAILED DESCRIPTION

[0062] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0063] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0064] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0065] This application can be applied in the field of video recommendation. The following will introduce multiple application scenarios of the product.

[0066] First, the application scenario of this application is introduced.

[0067] See also Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include a terminal 100 and a server 200. The server 200 may include one or more servers ( Figure 1 In the example, a server is included, and the server 200 can provide the video recommendation method provided in the embodiment of the present application for one or more terminals.

[0068] Among them, a video browsing application can be installed on the terminal 100, and the above application can provide an interface. The terminal 100 can receive user interactive operations on the application interaction interface, such as click operations to enter the video browsing interface, and send the video browsing instructions generated by the above operations to the server 200. The server 200 can respond to the received video browsing instructions, obtain processing results such as a video recommendation set, and return the processing results to the terminal 100.

[0069] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining the video recommendation set based on the received video browsing instruction by itself without the need for cooperation from the server, and the embodiments of the present application are not limited thereto.

[0070] Next describe Figure 1 The product form of the mid-terminal 100;

[0071] The terminal 100 in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the embodiment of the present application does not impose any limitation on this.

[0072] Figure 2 An optional hardware structure diagram of the terminal 100 is shown.

[0073] refer to Figure 2 As shown, the terminal 100 may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), an earphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190 and other components. Those skilled in the art will appreciate that Figure 2 These are merely examples of terminals or multi-function devices and do not constitute limitations on the terminals or multi-function devices, which may include more or fewer components than those shown in the figures, or combinations of certain components, or different components.

[0074] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the portable multifunctional device. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 132. The touch screen 131 can collect the user's touch operations on or near it (such as the user's operation on or near the touch screen using any suitable object such as fingers, joints, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive and execute the command sent by the processor 170; the touch signal at least includes the touch point coordinate information. The touch screen 131 can provide an input interface and an output interface between the terminal 100 and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch screen 131, the input unit 130 can also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0075] Among them, the input device 132 can receive input data and the like.

[0076] The display unit 140 may be used to display information input by the user or provided to the user, various menus of the terminal 100, interactive interfaces, file displays, and / or playback of any multimedia file. In an embodiment of the present application, the display unit 140 may be used to display a video browsing interface of an application, a video recommendation collection, and the like.

[0077] The memory 120 can be used to store instructions and data. The memory 120 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 170 with hardware, software and data resources including management of computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.

[0078] The processor 170 is the control center of the terminal 100. It uses various interfaces and lines to connect various parts of the entire terminal 100. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it executes various functions of the terminal 100 and processes data, thereby controlling the terminal device as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips. The processor 170 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.

[0079] The memory 120 may be used to store software codes related to the video recommendation method, the processor 170 may execute the steps of the video recommendation method, and may also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to implement corresponding functions.

[0080] The radio frequency unit 110 (optional) can be used for receiving and sending information or receiving and sending signals during a call, for example, after receiving the downlink information of the base station, it is sent to the processor 170 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.

[0081] In this embodiment of the present application, the RF unit 110 may send a video browsing instruction to the server 200 and receive a video recommendation set sent by the server 200.

[0082] It should be understood that the radio frequency unit 110 is optional and can be replaced by other communication interfaces, such as a network port.

[0083] The terminal 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.

[0084] The terminal 100 further includes an external interface 180 , which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the terminal 100 to communicate with other devices, or to connect a charger to charge the terminal 100 .

[0085] Although not shown, the terminal 100 may also include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which are not described in detail here. Some or all of the methods described below may be applied in the following embodiments. Figure 2 In the terminal 100 shown.

[0086] Next describe Figure 1 The product form of the server 200;

[0087] Figure 3 A structural diagram of a server 200 is provided, such as Figure 3 As shown, the server 200 includes a bus 201, a processor 202, a communication interface 203, and a memory 204. The processor 202, the memory 204, and the communication interface 203 communicate with each other via the bus 201.

[0088] The bus 201 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0089] The processor 202 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0090] The memory 204 may include a volatile memory, such as a random access memory (RAM). The memory 204 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard drive (HDD), or a solid state drive (SSD).

[0091] The memory 204 may be used to store software codes related to the video recommendation method, and the processor 202 may execute the steps of the video recommendation method of the chip, and may also schedule other units to implement corresponding functions.

[0092] It should be understood that the above-mentioned terminal 100 and server 200 can be centralized or distributed devices, and the processors in the above-mentioned terminal 100 and server 200 (such as processor 170 and processor 202) can be hardware circuits (such as application specific integrated circuit (ASIC), field-programmable gate array (FPGA), general-purpose processor, digital signal processor (DSP), microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.

[0093] At present, when users browse videos using mobile phones and other terminals, they often want to be exposed to different types of video content to meet their different interests and needs. In addition, existing recommendation systems also have stereotyped problems in information display. They often use fixed templates and formats to display video information, and cannot personalize the characteristics and highlights of the video. This makes it difficult for users to be attracted when browsing videos, and it is difficult for them to be interested in the video content. Therefore, users' video selection and viewing experience are greatly affected.

[0094] In view of this, the video recommendation method proposed in this application breaks the limitations of single video type and stereotyped information display in traditional recommendation by recommending multiple types of videos. Through this innovation, the platform features are integrated, which not only significantly optimizes the user experience, but also drives the conversion of users to downstream pages, and ultimately achieves the growth of video playback volume, the improvement of user retention rate, and the improvement of revenue value.

[0095] In order to achieve the above objectives, the embodiment of the present application provides a video recommendation method. The video recommendation method of the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0096] Reference Figure 4 , Figure 4 A schematic diagram of a video recommendation method provided in an embodiment of the present application is provided. The method can be applied to electronic devices, such as Figure 1 The server 200 shown is used to provide a user device such as Figure 1 The terminal 100 in the embodiment provides multiple types of video recommendation services. Specifically, the method in this embodiment may include the following steps:

[0097] Step 401: In response to a video browsing instruction for a target user, obtain user portrait information.

[0098] The video browsing instruction is a video browsing instruction provided by a target user through a user device (such as Figure 1 The terminal 100 in the example performs a browsing operation. For example, the target user starts a video application installed on a user device such as a mobile phone and opens a video browsing interface of the video application. In response to the operation of opening the video browsing interface, the user device generates a video browsing instruction and sends it to the electronic device; for another example, the target user performs a page pull-down operation on the video browsing interface to refresh the video in the video browsing interface. In response to the pull-down operation, the user device generates a video browsing instruction and sends it to the electronic device; for another example, the target user performs a page swipe operation on the video browsing interface to view a new video. In response to the swipe-up operation, the user device generates a video browsing instruction and sends it to the electronic device.

[0099] In one implementation, in this embodiment, the user portrait information can be obtained based on the user configuration information of the target user. For example, the user portrait information can be obtained from the configuration information such as the gender, age, and preferences of the target user when logging into the video application.

[0100] In another implementation, in this embodiment, user portrait information can be obtained based on the historical interaction behavior of the target user. The historical interaction behavior refers to the behavior of the target user browsing historical videos. For example, the user portrait information is obtained based on the videos that the target user has browsed using a video application.

[0101] Step 402: Obtain video data of multiple video types in parallel based on the user portrait information.

[0102] The video content of the video data under different video types is different. Specifically, the video type may include but is not limited to: short film, feature film, collection, playlist, hot discussion, etc. For example, according to the user portrait information, the video data of the video types such as short film, feature film, collection, etc. are obtained.

[0103] It should be noted that the task of acquiring video data for each video type can be executed in parallel, thereby improving the efficiency of acquiring video data and also improving the resource utilization of the electronic device.

[0104] Step 403: Classify and sort the video data corresponding to each video type according to the video type to obtain the classification and sorting results corresponding to each video type.

[0105] Specifically, in step 403, the video data corresponding to each video type can be classified and sorted in parallel according to the video type to obtain the classification and sorting results corresponding to each video type. Thus, the sorting tasks for the video data of each video type are executed in parallel, thereby improving the sorting efficiency of the video data and the resource utilization of the electronic device.

[0106] In one implementation, the following processing may be performed for each video type in step 403:

[0107] The scoring values ​​of the video data corresponding to the video type are obtained; then, the video data corresponding to the video type are sorted in descending order of the scoring values ​​to obtain the classification sorting result corresponding to the video type.

[0108] In another implementation, in step 403, the following processing may be performed for each video type:

[0109] First, the video data corresponding to the video type is classified and sorted according to at least two sorting methods to obtain at least two initial sorting results corresponding to the video type; then, the at least two initial sorting results are integrated to obtain a classified sorting result corresponding to the video type.

[0110] For example, according to different sorting methods, the score values ​​corresponding to the video data of the video type in each sorting method are obtained respectively, and then the video data corresponding to the video type are sorted according to the score values ​​corresponding to the video data in each sorting method to obtain the initial sorting results corresponding to each sorting method; then, the initial sorting results corresponding to all sorting methods are integrated to obtain the classification sorting results corresponding to the video type.

[0111] The sorting method includes at least: sorting according to a preset sorting rule and sorting by a sorting model. The sorting model here is a machine learning model. Moreover, the sorting model can be run remotely to avoid occupying the processing resources of the local electronic device.

[0112] For example, in this embodiment, the video data of each video type can be sorted locally according to the preset sorting rules. At the same time, the video data of each video type can be sorted separately through the remote sorting model, so that two initial sorting results can be obtained. Then, according to the video type, the two initial sorting results corresponding to each video type are integrated to obtain the classification sorting result corresponding to each video type.

[0113] In a specific implementation, in this embodiment, at least two initial sorting results may be integrated in the following manner:

[0114] First, the score value of each video data in each initial sorting result is normalized;

[0115] Then, a weight value is set for the normalized score value according to the video type of the sorting method to which it belongs, and the score value is updated according to the weight value, that is, the score value of the video data is weighted; different sorting methods correspond to different weight values ​​of the score value of the video data in the initial sorting result;

[0116] Finally, according to the weighted score value, each video data in all the initial sorting results is uniformly sorted to obtain the component sorting result corresponding to each video type.

[0117] Step 404: According to the classification sorting results, a classification screening set corresponding to each video type is obtained.

[0118] The classification and screening set includes at least one video data. For example, in this embodiment, the video data ranked in the top M in the classification and sorting result are added to the classification and screening set. M is a positive integer greater than or equal to 1. The values ​​of M corresponding to different video types can be the same or different.

[0119] Step 405: reorder the classification screening set corresponding to each video type to obtain a reordering result.

[0120] The reordering in step 405 can be understood as integrating and reordering the video data in the classification and screening sets corresponding to all video types.

[0121] In one implementation, step 405 may be evenly rearranged according to video type, specifically: evenly sorting according to the sorting position in the classification sorting result corresponding to each video type. For example, the first video data of video type 1 is sorted in the first place, and the first video data of video type 2 is sorted in the second place; the second video data of video type 1 is sorted in the third place, and the second video data of video type 2 is sorted in the fourth place; and so on, the video data in the classification screening set corresponding to all video types are evenly rearranged according to the sorting position in the classification sorting result where they are located.

[0122] In another implementation, in step 405, weighted sorting may be performed according to the weights corresponding to the video types, specifically including at least one of the following weighted sorting methods:

[0123] The video data of the video type with a high weight value is sorted first, and the video data of the video type with a low weight value is sorted last;

[0124] A first number of consecutive video data of video types with high weight values ​​are sorted first, and a second number of consecutive video data of video types with low weight values ​​are sorted last, and the first number is greater than the second number;

[0125] In a specific ranking range in the re-ranking result, a proportion of video data of a video type with a high weight value is greater than a proportion of video data of a video type with a low weight value.

[0126] For example, the first two video data of video type 1 with a high weight value are sorted as the first two, and the first video data of video type 2 with a low weight value is sorted as the third; the last two video data of video type 1 with a high weight value are sorted as the fourth and fifth, and the second video data of video type 2 with a low weight value is sorted as the sixth; and so on, the video data in the classification filtering set corresponding to all video types are sorted according to their respective sorting positions in the classification sorting results, and weighted.

[0127] Step 406: Obtain a video recommendation set according to the re-ranking results.

[0128] The video recommendation set includes a plurality of video data. For example, in this embodiment, the video data ranked in the top P in the re-ranking result can be added to the video recommendation set. P is a positive integer greater than or equal to 1.

[0129] Step 407: Push the video data in the video recommendation set to the user device corresponding to the target user.

[0130] Specifically, in this embodiment, the video data in the video recommendation set can be pushed to the user device through a data connection between the electronic device and the user device, such as a WiFi connection or a mobile network connection.

[0131] By means of the above technical solution, in a video recommendation method provided in an embodiment of the present application, according to the user portrait information of the target user, video data of different video types are obtained according to the video content classification, and the video data of each video type screened out are re-sorted after classification and sorting, and then the final video recommendation set is obtained according to the re-sorting result, and the video data therein is pushed to the user device of the target user. It can be seen that this embodiment provides users with multiple types of video recommendations, broadens the video content recommended to users, can meet users' diverse video viewing needs, and improve users' video viewing experience.

[0132] In one implementation, the user portrait information can be obtained in step 401 by: Figure 5 As shown in:

[0133] Step 501: Obtain the target user's historical browsing videos.

[0134] The historical browsing videos may include historical videos browsed by the target user through the user device currently used, and may also include historical videos browsed by the target user through other devices.

[0135] For example, user X logs in to a video application on mobile phone S1, and the historically browsed videos include the historical videos browsed by user X on mobile phone S1; for another example, user X logs in to the video application on mobile phone S1 and also logs in to the video application on tablet S2. At this time, the historically browsed videos include the historical videos browsed by user X on mobile phone S1 and the historical videos browsed by user X on tablet S2.

[0136] Step 502: Obtain the video tag corresponding to the historically browsed video.

[0137] Among them, the video tag corresponds to the video type. That is to say, the video type to which the historically browsed video belongs is assigned to the video tag corresponding to the historically browsed video. For example, video A is a short film type, with three video tags a, b, and c; video B is a feature film, with three video tags a, b, and d; video C is a short film type, with two video tags a and f. Among them, video tag a corresponds to short film type and feature film type, video tag b corresponds to short film type and feature film type, video tag c corresponds to short film type, video tag d corresponds to feature film type, and video tag f corresponds to short film type.

[0138] Step 503: Obtain user portrait information based on the video tag.

[0139] Among them, the user portrait information includes at least one portrait tag, which is related to the video tag, and the portrait tag corresponds to the video type. For example, user X watches videos A, B, and C, which have video tags a, b, c, d, and f. Based on this, these video tags are added to the user portrait information as portrait tags. The user portrait information contains portrait tags a, b, c, d, and f, and the portrait tag a corresponds to the short film type and the feature film type, the portrait tag b corresponds to the short film type and the feature film type, the portrait tag c corresponds to the short film type, the portrait tag d corresponds to the feature film type, and the portrait tag f corresponds to the short film type.

[0140] Based on the above implementation scheme, before obtaining video data of multiple video types according to the user portrait information in step 402, the user portrait information can also be enhanced and / or expanded in this embodiment. Specifically, before step 402, at least one of the following processing methods can be included:

[0141] In one processing method, a weight value is set for the portrait tag in the user portrait information, wherein at least two portrait tags corresponding to the same video type have different weight values.

[0142] Specifically, in this embodiment, the historical browsing parameters corresponding to each portrait tag can be obtained; then, the weight value of the portrait tag is set according to the historical browsing parameters. For example, the historical browsing parameters may include at least one of the following: the total number of historical browsing videos to which the portrait tag belongs, the number of views, the average viewing time, and the total viewing time; based on this, the higher the parameter value of the historical browsing parameter, the higher the weight value of the portrait tag is set; the lower the parameter value of the historical browsing parameter, the lower the weight value of the portrait tag is set.

[0143] Therefore, the portrait tag is enhanced to emphasize the target user's preference for the video corresponding to a certain portrait tag.

[0144] In another processing method, the portrait tag corresponding to each video type is expanded respectively, so that at least one portrait tag corresponding to at least one video type is increased.

[0145] Specifically, in this embodiment, for the first video type, at least one target tag different from the portrait tag corresponding to the first video type can be obtained from the portrait tag corresponding to the second video type; and then the target tag can be set to the first video type.

[0146] The first video type and the second video type are any video type among the above multiple video types, and the first video type and the second video type are different.

[0147] For example, among the image tags a, b, and d corresponding to the feature film type, select the image tag d that is different from the image tags a, b, c, and f corresponding to the short film type, and add the image tag d to the short film type. At this time, the image tags corresponding to the short film type are a, b, c, d, and f;

[0148] For another example, among the portrait tags a, b, c, and f corresponding to the short film type, filter out the portrait tags c and f that are different from the portrait tags a, b, and d corresponding to the main film type, and add the portrait tags c and f to the short film type. At this time, the portrait tags corresponding to the main film type are a, b, c, d, and f.

[0149] Therefore, the portrait tags corresponding to each video type are expanded to expand the videos preferred by the target users in each video type.

[0150] It can be seen that in this embodiment, the videos that the user is interested in can be recalled as comprehensively as possible, thereby reducing the recommendation island problem caused by the sparsity of user behavior data.

[0151] In one implementation, step 402 may be implemented by at least one of the following processing methods:

[0152] In one processing method, in step 402, video data of multiple video types are obtained from a recommendation database based on user portrait information.

[0153] Among them, the recommendation database is a recommendation database connected to a local electronic device, and a plurality of video data of a plurality of video types are stored in the recommendation database. Specifically, the recommendation database stores video data according to video type classification. For example, video data of different video types are stored in different areas. Moreover, the recommendation database reads all the video data in the database at a first time interval. For example, the storage database may be cloud data, which stores a massive amount of video data. The recommendation database reads the incremental video data in the storage database relative to the recommendation database at a second time interval. The first time interval is greater than the second time interval. In other words, in this embodiment, the video data is read from the storage database to the recommendation database in a combination of full read and incremental read methods to facilitate the electronic device to make video recommendations.

[0154] For example, the recommendation database reads all video data from the storage database in the cloud every week and replaces all video data in the recommendation database to ensure the integrity of the video data. For another example, the recommendation database reads incremental video data relative to the recommendation database from the storage database in the cloud every two days to avoid the waste of transmission resources caused by frequent reading of all video data.

[0155] In another processing method, in step 402, the user information corresponding to the user portrait information is provided to the recall model to receive video data of multiple video types fed back by the recall model according to the user information. Among them, the recall model is a machine learning model. Moreover, the recall model can be run at the remote end to avoid occupying the processing resources of the local electronic device. That is to say, in addition to screening the video data matched by the user portrait information on the local electronic device, the remote recall model can also be used to screen the video data matched by the user information from the massive video resources in this embodiment, thereby enriching the video data recommended for the user.

[0156] Among them, the user information corresponding to the user portrait information can be the device information of the user's device, such as the device identification, so that the recall model aggregates the matching historical browsing behaviors according to the device identification, and the historical browsing behaviors include the behaviors of the user's device browsing videos and other historical behaviors; based on this, the recall model extracts features of the historical browsing behaviors and filters the video data according to the extracted special data.

[0157] A video recommendation method provided by an embodiment of the present application is introduced above, and a device for executing the above video recommendation method will be introduced below.

[0158] See also Figure 6 , Figure 6The structure diagram of a video recommendation device provided in an embodiment of the present application is shown in FIG. The device can be configured in an electronic device, such as Figure 1 The server 200 shown is used to provide a user device such as Figure 1 The terminal 100 in the embodiment provides multiple types of video recommendation services. Specifically, the device in this embodiment may include the following units:

[0159] A portrait obtaining unit 601 is used to obtain user portrait information in response to a video browsing instruction for a target user;

[0160] The video obtaining unit 602 is used to obtain video data of multiple video types according to the user portrait information; the video content of the video data of different video types is different;

[0161] A classification and sorting unit 603 is used to classify and sort the video data corresponding to each video type according to the video type, so as to obtain a classification and sorting result corresponding to each video type;

[0162] A classification and screening unit 604 is used to obtain a classification and screening set corresponding to each of the video types according to the classification and sorting results, wherein the classification and screening set includes at least one of the video data;

[0163] A reordering unit 605, configured to reorder the classification and screening set corresponding to each of the video types to obtain a reordering result;

[0164] A sorting and recommending unit 606, configured to obtain a video recommendation set according to the re-sorting result, wherein the video recommendation set includes a plurality of video data;

[0165] The video pushing unit 607 is used to push the video data in the video recommendation set to the user equipment corresponding to the target user.

[0166] By means of the above technical solution, in a video recommendation device provided in an embodiment of the present application, according to the user portrait information of the target user, video data of different video types are obtained according to the video content classification, and the video data of each video type screened out are re-sorted after classification and sorting, and then the final video recommendation set is obtained according to the re-sorting result, and the video data therein is pushed to the user device of the target user. It can be seen that this embodiment provides users with multiple types of video recommendations, broadens the video content recommended to users, can meet users' diverse video viewing needs, and improve users' video viewing experience.

[0167] In one implementation, the portrait acquisition unit 601 is specifically used to: obtain the historical browsing videos of the target user; obtain the video tags corresponding to the historical browsing videos; the video tags correspond to the video types; and obtain user portrait information based on the video tags, the user portrait information includes at least one portrait tag, the portrait tag is related to the video tag, and the portrait tag corresponds to the video type.

[0168] In one implementation, before obtaining video data of multiple video types according to the user portrait information, the video obtaining unit 602 is further configured to perform at least one of the following:

[0169] Setting a weight value for the portrait tag; at least two portrait tags among different portrait tags corresponding to the same video type have different weight values;

[0170] Expanding the image tags corresponding to each of the video types respectively, so that at least one image tag corresponding to at least one of the video types is increased by at least one;

[0171] Among them, when the video acquisition unit 602 obtains video data of multiple video types according to the user portrait information, it is specifically used to: obtain video data of multiple video types according to the portrait tags corresponding to different video types and the weight values ​​of the portrait tags.

[0172] In one implementation, when setting the weight value for the portrait tag, the video obtaining unit 602 is specifically used to: obtain the historical browsing parameters corresponding to each of the portrait tags, and set the weight value of the portrait tag according to the historical browsing parameters.

[0173] In one implementation, when the video acquisition unit 602 expands the portrait tag corresponding to each video type respectively, it is specifically used to: for a first video type, obtain at least one target tag that is different from the portrait tag corresponding to the first video type from the portrait tag corresponding to the second video type; set the target tag to the first video type; wherein the first video type and the second video type are any video type among the multiple video types, and the first video type and the second video type are different.

[0174] In one implementation, when the video acquisition unit 602 obtains video data of multiple video types based on the user portrait information, it performs at least one of the following: obtaining video data of multiple video types from a recommendation database based on the user portrait information; providing user information corresponding to the user portrait information to a recall model to receive video data of multiple video types fed back by the recall model according to the user information; wherein the recall model is a machine learning model.

[0175] In one implementation, the recommendation database stores the video data according to the video type classification; and the recommendation database reads all the video data in the storage database every first duration, and reads the incremental video data in the storage database relative to the recommendation database every second duration; the first duration is greater than the second duration.

[0176] In one implementation, the classification and sorting unit 603 is specifically used to: for each of the video types, classify and sort the video data corresponding to each of the video types according to at least two sorting methods to obtain at least two initial sorting results corresponding to each of the video types; for each of the video types, integrate the initial sorting results to obtain a classification and sorting result corresponding to each of the video types; wherein the sorting methods at least include: a method of sorting according to preset sorting rules and a method of sorting through a sorting model; the sorting model is a machine learning model.

[0177] It should be noted that the specific implementation of each unit in this embodiment can refer to the corresponding content in the previous text and will not be described in detail here.

[0178] The present application also provides an electronic device in an embodiment. Figure 7 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include but is not limited to fixed terminals such as mobile phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0179] like Figure 7 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0180] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a memory card, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0181] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the video recommendation methods provided in the embodiments of the present application.

[0182] A computer storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any video recommendation method provided in the embodiment of the present application.

[0183] The following uses the scenario where a user browses videos using a video application on a mobile phone as an example to illustrate the video recommendation system implemented based on this application:

[0184] First, the following is an explanation of the problems solved by the video recommendation system:

[0185] 1) Data sparsity:

[0186] In the video recommendation scenario, data sparsity is a common problem, especially when dealing with multiple types of videos. First, the distribution of stock data of different video types may also vary greatly. Some types of video data are very rich, while other types of videos may be extremely scarce. Secondly, the sparsity of user behavior data is the most common phenomenon in recommendation systems. Since users usually only interact with a small number of videos, most elements in the user-video matrix are empty. The sparsity of data will directly affect the effect of the recommendation algorithm. In the absence of sufficient data, it is difficult for the algorithm to accurately capture the interests and preferences of users, resulting in a decrease in the accuracy of the recommendation. For example, if the stock data of variety shows is small, the corresponding recommended variety shows will also be relatively small. In order to solve this problem, the video recommendation system implemented in this application designs a recommendation algorithm that is more suitable for such scenarios, which can make full use of limited data for accurate recommendations.

[0187] 2) Response time limit:

[0188] In real-time recommendation scenarios, recommendation response time is a crucial indicator. Users hope to get recommended results in a short time so that they can get the content they are interested in in time. However, when processing various types of videos, the computational complexity of the recommendation algorithm may increase significantly due to the need to consider multiple factors (such as video content, user interests, contextual information, etc.), resulting in a longer recommendation response time. In order to solve this problem, the computational efficiency of the recommendation algorithm is optimized in this application, and it is implemented by adopting efficient algorithm design, utilizing parallel computing technology, optimizing data storage and access, etc. At the same time, it is also necessary to carry out reasonable architecture design and resource allocation of the recommendation system to ensure fast recommendation response with limited computing resources.

[0189] 3) Recommended complexity is high:

[0190] The complexity of recommendation between different types of videos is also an important difficulty. Since different types of videos may differ greatly in content, style, audience, etc., multiple factors need to be considered when making recommendations to ensure the accuracy of recommendations and user satisfaction. Complex recommendation data means that the recommendation system needs to process a larger amount of information and a more diverse type of information. This includes but is not limited to user behavior data, video attribute data, contextual data, etc. In order to effectively process this data, the video recommendation system needs to have powerful data storage and computing capabilities. For example, the system needs to be able to efficiently store and retrieve large-scale data sets, and also needs to have the ability to process and analyze data in real time in order to capture changes in user interests and dynamic changes in videos in a timely manner. Therefore, the video recommendation system needs to have a high-performance computing architecture to ensure the rapid execution of the algorithm and the real-time generation of recommendation results.

[0191] In response to the above three problems, the video recommendation system of this application is introduced as follows:

[0192] (1) Data sparsity:

[0193] The sparsity of data is not only reflected in the type of video, but also in the user's behavior data, such as the user's viewing history data. In order to solve the sparsity problem of video types, the video recommendation system of this application stores videos by type during data preprocessing to reduce the recall imbalance caused by video sparsity. Although users usually only interact with a small number of videos, when processing user portraits, the similarities and differences of different types of videos can be used to enhance and expand user portraits, so as to recall videos of interest to users as comprehensively as possible and reduce the recommendation island problem caused by the sparsity of user behavior data.

[0194] (2) Response time limit:

[0195] When dealing with diverse video content, it is necessary to comprehensively weigh multi-dimensional factors such as the video content itself, user personal preferences, and context, and the computational complexity of the recommendation algorithm often increases significantly. In the case of limited machine configuration, this increase in complexity may cause the response time of the recommendation system to be prolonged, thereby affecting the user experience. To solve this problem, the video recommendation system of the present application provides a more reasonable and efficient framework specifically for processing various types of video content. In the recall stage, a concurrent processing method is adopted, that is, multiple recall tasks are performed simultaneously according to the different types of videos. The advantage of this is that system resources can be fully utilized, the recall efficiency can be improved, and all types of videos can be quickly recalled. In the sorting stage, the differences in video types are also taken into account. For different types of videos, different sorting strategies are implemented concurrently to ensure that the recommendation results are more in line with the user's expectations and interests while responding quickly.

[0196] (3) Recommended complexity is high:

[0197] The video recommendation system of the present application focuses on the refined management and efficient processing of data, and has been deeply optimized for the recommendation process of user portraits and multi-type video content. First, in terms of reading data (reading video data from the cloud database to the recommendation database), a combination of full and incremental reading is adopted to reduce CPU and memory consumption while ensuring the integrity of the data. Secondly, in terms of data storage, the video recommendation system of the present application adopts a strategy of storing different videos by type. This means that data of different categories are stored in their own dedicated storage areas. This classified storage method not only facilitates the search and call of data, but also improves the processing speed of data, providing strong data support for subsequent recommendation algorithms. In addition, a modular approach is adopted to process user portraits, and the recall, sorting, and reordering processes of multi-type videos are processed in a layered and concurrent manner, so that the data at each level do not affect each other. This recommendation framework not only takes into account the diversity of video types, but also improves the processing efficiency of the overall data.

[0198] It can be seen that in the video recommendation system of the present application, the proportion of short videos has been reduced in terms of content composition, while increasing the recommendation of various video styles such as feature films, collections, and playlists. This video recommendation system not only broadens the user's viewing content, but also meets the viewing needs of different users. In addition, the video recommendation system of the present application also specially introduces special content forms such as "hot discussions" and "communities" within the site. These forms not only increase the interaction between users, but also enhance the user's sense of participation and stickiness, and guide the user's conversion to downstream pages, thereby achieving a significant increase in video playback volume. At the same time, the user retention rate has also been improved, and their dependence and loyalty to the platform have been further enhanced.

[0199] The following combination Figure 8The flowchart shown in the figure describes the video recommendation system of this application in detail:

[0200] 1. Content pool preprocessing stage:

[0201] The different types of data (data types 1-N) in the database (recommendation database), such as short films, feature films, collections, playlists, hot topics, etc., are selected using established content screening rules to select the recommended content, and then sort and store them by video type (i.e., pre-sort and classified storage). When a user requests a video to browse, pull the user behavior, including the user's viewing, exposure, clicks, and drama chasing behaviors, classify the different data types under these behaviors, and use the similarities and differences of video data of different video types to enhance and expand the user portrait. The same tags that exist in different types of data are used to enhance the user portrait. The existence of the same tags in different types of data indicates that the user is very interested in the content of the tag.

[0202] For example, a user watched the following video:

[0203] Video A is a short video with three labels: a, b, and c.

[0204] Video B is a feature film and has three labels: a, b, and d.

[0205] Video C is a short video with two labels: a and f.

[0206] Regarding enhancement: label a exists in two short videos and one feature film, exists in short video type videos (A, C), and exists in feature film type B. When calculating label scores, labels of different types of videos can be weighted, and the score of label a will be higher, indicating that users prefer this type of label.

[0207] About extension: c, f tags are only found in the user's short videos, so c, f tags are only used for tag recall in short videos? Expanding tag recall means that it can be used to recall from other types of videos, such as using c, f tags to recall from hot discussions and collections, expanding the recall of content. At the same time, the d tag in video B does not necessarily have to be recalled only from the main video, but can also be recalled from other types of videos.

[0208] It can be seen that the expansion of user portraits is very necessary when user behavior is scarce or when the user is trapped in a recommendation island (users like it, the same type of things are always recommended, and there is a lack of new content).

[0209] 2. Recall Processing Stage:

[0210] The recalled video data is divided into three categories:

[0211] (1) Popular data, which is also read from the offline database and stored in reverse order by type;

[0212] (2) is to use user tags to recall data with relevant tags from inverted data;

[0213] (iii) Recall different types of data from the remote recall model. The remote recall model is a model used to preliminarily screen video collections related to user interests. Specifically, the main function of the video recall model is to quickly and effectively recall a portion of videos that may be related to user interests from a large amount of video resources based on user characteristics, historical behavior and other data. The recall model can screen out a large number of samples with low relevance in the recall stage, and then use a more complex model in the sorting stage to obtain accurate recommendation results. In this way, accurate personalized recall and recommendations can be performed on a large number of users while meeting real-time requirements.

[0214] The filtering rules in the recall phase are designed to filter out some behavioral data that users have seen or been exposed to, to avoid duplicate recommendations and affect user perception.

[0215] 3. Sorting Processing Stage:

[0216] In the sorting stage, different types of data are sorted using a linear weighted method of rule sorting and model sorting.

[0217] 4. Rearrangement stage:

[0218] The re-ranking stage implements some established rules according to product requirements, such as breaking up, recommending frequencies of different types of videos, etc. The following will give specific implementation methods for the above-mentioned problems.

[0219] It should be noted that in terms of data reading (reading data from the cloud database to the recommendation database), a combination of full reading and incremental reading is used to achieve more efficient and comprehensive data processing. Full reading means that we will read all data comprehensively, which can ensure the integrity of the data and avoid information loss caused by missing some data. However, full reading may bring high CPU and memory consumption in the case of large amounts of data, affecting system performance. In order to solve this problem, the video recommendation system of this application introduces an incremental reading method. Incremental reading focuses on the newly added part of the data, that is, only the newly generated data since the last reading is read. This method greatly reduces the amount of data to be processed, thereby reducing the consumption of CPU and memory. Therefore, a full reading is performed within a certain period to obtain a complete data snapshot. In the time period between full readings, an incremental reading method is used to process only the newly added data. In this way, while ensuring data integrity, efficient use of resources is achieved. In addition, the video recommendation system of this application also uses a series of optimization measures to further improve the efficiency of data use. For example, according to product rules, the read data is filtered by rules and stored by type. Data of the same type is stored in reverse order by label. This can reduce the overhead of repeated data reading, improve the speed and effectiveness of data recall, reduce the invalid recall rate, and reduce the recall imbalance caused by the sparsity of data types.

[0220] In daily browsing and interaction, users often only interact with a small number of videos. However, when processing user portraits, the similarities and differences between different types of videos can be used to enhance and expand user portraits. Specifically, by deeply analyzing the properties and characteristics of different types of videos, such as short videos may pay more attention to the subject matter, style and content of the video, while long videos will pay more attention to information such as subject matter, actors and directors, the similarities and differences in the focus of different types of videos can be used to enhance and expand user portraits. For example, if a user watches a short film of a certain subject and also watches a long film of the same subject, the label of the subject will be enhanced; if the user only watches a certain style of content in the short film, the label can be expanded to achieve comprehensive expansion and recall of the label in different types of videos, thereby effectively reducing the recommendation island problem caused by the sparsity of user behavior data.

[0221] In the recall stage, the video recommendation system of the present application makes full use of the advantages of concurrent processing, and carries out multiple recall tasks at the same time according to the different types of videos, among which different types of video recalls can achieve local recall and remote recall in parallel. In the sorting stage, due to the differences in video types, different sorting strategies are designed for this and implemented through concurrent processing. Different types of videos generate an independent complete link in the recall and sorting stages, and multiple independent links are carried out concurrently. This processing method not only improves the processing speed of the system, but also enables all types of video content to be recalled quickly and accurately, and avoids waste and idleness of resources, thereby improving the overall recall efficiency.

[0222] After completing the recall sorting of each independent link in parallel, an ordered list of different types of data is obtained. However, these data may differ in numerical range, unit or importance, and directly merging them for recommendation may cause certain types of data to be overemphasized or ignored. Therefore, in order to ensure that all types of data can be presented fairly and reasonably in the final recommendation results, normalization is adopted to eliminate the dimensional differences between different data. In addition, it is necessary to formulate a re-ranking strategy based on the specific rules of the product and the recommendation preferences of the user. These rules may involve the actual needs of the business, such as certain types of videos may need to be displayed first, or in some scenarios, the personalized needs of users should be met more. At the same time, other factors that may affect the recommendation effect, such as the user's historical behavior, also need to be considered.

[0223] In summary, the video recommendation system of the present application can quickly and effectively recommend multiple types of videos, and has strong scalability. The modular and layered framework makes it possible for data to not affect each other, and can effectively implement concurrent data processing, while improving the overall data processing efficiency.

[0224] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0225] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0226] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0227] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A video recommendation method, characterized in that: The method comprises: In response to a video browsing instruction for a target user, obtaining user portrait information; According to the user portrait information, video data of multiple video types are obtained in parallel; the video content of the video data of different video types is different; According to the video type, the video data corresponding to each video type is classified and sorted to obtain a classification and sorting result corresponding to each video type; According to the classification and sorting results, a classification and screening set corresponding to each of the video types is obtained, wherein the classification and screening set includes at least one of the video data; Reordering the classification and screening sets corresponding to each of the video types to obtain a reordering result; According to the re-ranking result, a video recommendation set is obtained, wherein the video recommendation set includes a plurality of video data; The video data in the video recommendation set is pushed to a user device corresponding to the target user.

2. The method according to claim 1, characterized in that: Obtain user portrait information, including: Obtain the historical browsing videos of the target user; Obtaining a video tag corresponding to the historically browsed video; the video tag corresponds to the video type; According to the video tag, user portrait information is obtained, the user portrait information includes at least one portrait tag, the portrait tag is related to the video tag, and the portrait tag corresponds to the video type.

3. The method according to claim 2, characterized in that Before obtaining video data of multiple video types according to the user portrait information, the method further includes at least one of the following: Setting a weight value for the portrait tag; at least two portrait tags among different portrait tags corresponding to the same video type have different weight values; Expanding the image tags corresponding to each of the video types respectively, so that at least one image tag corresponding to at least one of the video types is increased by at least one; Wherein, according to the user portrait information, video data of multiple video types are obtained in parallel, including: According to the portrait tags corresponding to the different video types and the weight values ​​of the portrait tags, video data of the multiple video types are obtained in parallel.

4. The method according to claim 3, characterized in that Setting a weight value for the portrait tag includes: Obtaining historical browsing parameters corresponding to each of the portrait tags; The weight value of the portrait tag is set according to the historical browsing parameters.

5. The method according to claim 3, characterized in that: The portrait tags corresponding to each video type are expanded respectively, including: For the first video type, obtaining at least one target tag different from the image tag corresponding to the first video type from the image tags corresponding to the second video type; Setting the target tag to the first video type; The first video type and the second video type are any video type among the multiple video types, and the first video type and the second video type are different.

6. The method according to claim 1 or 2, characterized in that: According to the user portrait information, video data of multiple video types are obtained in parallel, including at least one of the following: Obtaining video data of multiple video types from a recommendation database according to the user portrait information; Providing user information corresponding to the user portrait information to a recall model to receive video data of multiple video types fed back by the recall model according to the user information; Wherein, the recall model is a machine learning model.

7. The method according to claim 6, characterized in that The recommendation database stores the video data according to the video type classification; Furthermore, the recommendation database reads all video data in the storage database at a first time interval, and the recommendation database reads incremental video data in the storage database relative to the recommendation database at a second time interval; The first duration is greater than the second duration.

8. The method according to claim 1 or 2, characterized in that: According to the video type, the video data corresponding to each video type is classified and sorted to obtain a classification and sorting result corresponding to each video type, including: For each of the video types, classify and sort the video data corresponding to each of the video types according to at least two sorting methods to obtain at least two initial sorting results corresponding to each of the video types; For each of the video types, the initial sorting results are integrated to obtain a classification sorting result corresponding to each of the video types; Among them, the sorting method at least includes: a method of sorting according to preset sorting rules and a method of sorting through a sorting model; the sorting model is a machine learning model.

9. A video recommendation device, characterized in that: include: A portrait obtaining unit, for obtaining user portrait information in response to a video browsing instruction for a target user; A video obtaining unit, configured to obtain video data of multiple video types in parallel according to the user portrait information; the video content of the video data of different video types is different; A classification and sorting unit, used for classifying and sorting the video data corresponding to each video type according to the video type, so as to obtain a classification and sorting result corresponding to each video type; A classification and screening unit, configured to obtain a classification and screening set corresponding to each of the video types according to the classification and sorting results, wherein the classification and screening set includes at least one of the video data; A reordering unit, used for reordering the classification screening set corresponding to each video type to obtain a reordering result; A sorting and recommendation unit, configured to obtain a video recommendation set according to the re-sorting result, wherein the video recommendation set includes a plurality of video data; The video pushing unit is used to push the video data in the video recommendation set to the user equipment corresponding to the target user.

10. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the video recommendation method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Social platform information spreading intelligent management system based on man-machine symbiosis

    CN119202443A

  • Video recommendation method and system based on large language model, electronic equipment and storage medium

    CN119537701A