Label-enhanced real-time recommendation method and device, electronic equipment and storage medium

By building a video content tag network and an association network, and using user behavior data to recommend videos, we solve the problem of poor recommendation effects of existing technologies in cold start scenarios, achieve real-time capture of user interests and preferences and generate dynamic recommendation results, improving to improve the effectiveness and accuracy of recommendations.

CN118779533AActive Publication Date: 2024-10-15LONGSHINE TECH

Patent Information

Application Number
CN202411261116.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-10-15
Estimated Expiration
2044-09-10

AI Technical Summary

Technical Problem

Existing recommendation methods are not effective in cold start scenarios, especially for long-tail content. Moreover, the recommendation algorithm for identification modeling requires a large amount of training data and cannot effectively utilize a small amount of user behavior data.

Method used

By extracting keywords from the description information of each video in the video library, a content tag network is constructed. Based on the similarity association between tag nodes, an association network is constructed. The target user's behavioral data is used to determine the target video related to it, and based on Connect with the network for video recommendations.

Benefits of technology

In the cold start scenario, by introducing external knowledge, the effect and accuracy of recommendations are improved. User interests and preferences can be extracted from a small amount of user behavior data, and recommendation results are dynamically generated, which improves the effect and accuracy of recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779533A_ABST
    Figure CN118779533A_ABST
Patent Text Reader

Abstract

The invention provides a label-enhanced real-time recommendation method and device, electronic equipment and a storage medium, and relates to the technical field of computers.The method comprises the steps that keyword extraction is conducted on each video in a video library, and multiple labels corresponding to each video are obtained; constructing a content label network based on the content nodes and the label nodes; associating similar label nodes in the content label network of each video to obtain an associated network; and determining a plurality of target videos related to the plurality of watched videos based on the association relationship between the nodes corresponding to the plurality of watched videos in the association network and other nodes, and performing video recommendation based on the plurality of target videos. The interest preference of the target user can be extracted from a small amount of behavior data of the target user, and then similar content is found and recommended to the user. The user behavior can be fed back in real time, the change of interest and preference of the user is captured, a new recommendation result is dynamically generated, and the recommendation effect and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a tag-enhanced real-time recommendation method, device, electronic device and storage medium. Background Art

[0002] At present, the research on recommendation systems and related algorithms is developing rapidly, aiming to help users filter out the most interesting items from a large number of candidate items, and improve the user experience through accurate and personalized content display services. Deep learning algorithms are the mainstream technology in the current recommendation system field. By collecting a large amount of user historical behavior, user attributes, item attributes and other data, and using complex neural network models to fit user interest preferences, a personalized recommendation list is then predicted.

[0003] Existing recommendation methods are generally implemented based on recommendation algorithms based on identity modeling. Recommendation algorithms based on identity modeling require training representation vector expressions and need to collect a large amount of training data. Therefore, they are not applicable in cold start scenarios, and the recommendation effect on long-tail content is usually not good. Summary of the invention

[0004] The present invention provides a tag-enhanced real-time recommendation method, device, electronic device and storage medium, which are used to improve the effect of video recommendation in order to address the technical defect that the recommendation effect is usually poor in the prior art.

[0005] The present invention provides a real-time recommendation method for label enhancement, comprising the following steps: Extract keywords from the description information of each video in the video library to obtain multiple tags corresponding to each video; Based on content nodes and label nodes, construct a content label network for each video, wherein the content nodes are determined based on the description information of the video, and the label nodes are determined based on the label of the video; Based on the similarity between label nodes, similar label nodes in the content label network of each video are associated to obtain an associated network; Acquire multiple viewed videos in the video library that the target user has watched recently in a preset time period, determine multiple target videos related to the multiple viewed videos based on the association relationship between the nodes corresponding to the multiple viewed videos and other nodes in the association network, and make video recommendations to the target user based on the multiple target videos.

[0006] According to a tag-enhanced real-time recommendation method provided by the present invention, based on the association relationship between the nodes corresponding to the multiple viewed videos and other nodes in the association network, multiple target videos related to the multiple viewed videos are determined, including: Based on the distance between the multiple videos watched and the current time and the viewing time of each video watched, different initial scores are assigned to each video watched; Determine the scores of content nodes related to the multiple videos watched based on the initial scores and the association relationships between the nodes corresponding to the multiple videos watched and other nodes in the association network; Based on the ranking of the scores, a plurality of target videos related to the plurality of viewed videos are determined.

[0007] According to a tag-enhanced real-time recommendation method provided by the present invention, based on the initial scores and the association relationships between the nodes corresponding to the multiple videos watched and other nodes in the association network, the scores of the content nodes related to the multiple videos watched are determined, including: Taking the nodes corresponding to the plurality of watched videos in the association network as departure nodes, and determining directly associated nodes directly connected to the plurality of departure nodes; In the case where the directly associated node is a label node, the score of the directly associated node is determined as: ; In the case where the directly associated node is a content node, the score of the directly associated node is determined as: ; In the case where the directly associated node meets the preset condition, the directly associated node is used as the starting node for the next round of score calculation, until no node meets the preset condition for the next round of calculation or the number of repetitions reaches a preset number threshold, so as to obtain the scores of the content nodes related to the multiple watched videos; The preset conditions are: The current directly associated node is a label node; The score of the current directly associated node is greater than the preset score threshold; The current directly associated node has not participated in the calculation as a starting node; in, is the score of the directly associated node j, is the score of directly associated node j before updating, is the initial score of watching video i, K is the total number of all label nodes connected to the starting node, , is a parameter for adjusting the decay rate.

[0008] According to a tag-enhanced real-time recommendation method provided by the present invention, the initial score assigned to the video watched is: ; in, is the initial score for watching video i, The viewing time of i who watched the video, is the current time, The time when the target user last watched video i. Indicates how far the video is from the current time. Adjust the parameters for the value range.

[0009] According to a tag-enhanced real-time recommendation method provided by the present invention, the keyword extraction is performed on the description information of each video in the video library to obtain multiple tags corresponding to each video, including: Based on the large language model and pre-built prompt templates, keywords are extracted from the description information of each video in the video library to obtain multiple tags corresponding to each video.

[0010] According to a tag-enhanced real-time recommendation method provided by the present invention, after obtaining the associated network, the method further includes: The association quantity of each label node in the association network is determined, and the label nodes whose association quantity is less than a preset association quantity threshold are deleted.

[0011] According to a tag-enhanced real-time recommendation method provided by the present invention, based on the similarity between tag nodes, similar tag nodes in the content tag network of each video are associated to obtain an associated network, including: Call the underlying interface of the large language model to convert the label words of each label node into a representation vector, and determine the vector distance between each representation vector; The label nodes whose vector distance is less than a preset distance threshold are associated to obtain an associated network.

[0012] The present invention also provides a label-enhanced real-time recommendation device, comprising the following modules: The tag extraction module is used to extract keywords from the description information of each video in the video library to obtain multiple tags corresponding to each video; A content tag network determination module, used to construct a content tag network for each video based on content nodes and tag nodes, wherein the content nodes are determined based on the description information of the video, and the tag nodes are determined based on the tag of the video; An association network determination module is used to associate similar label nodes in the content label network of each video based on the similarity between the label nodes to obtain an association network; The recommendation module is used to obtain multiple videos watched by the target user in the video library in a recent preset time period, determine multiple target videos related to the multiple videos based on the association relationship between the nodes corresponding to the multiple videos and other nodes in the association network, and recommend videos to the target user based on the multiple target videos.

[0013] The present invention also provides an electronic device, comprising 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 real-time recommendation method for label enhancement as described above is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the real-time recommendation method for label enhancement as described in any one of the above is implemented.

[0015] The tag-enhanced real-time recommendation method, device, electronic device and storage medium provided by the present invention construct an association network between content and tags through the correlation between video tags, determine multiple target videos related to multiple watched videos based on the association relationship between nodes corresponding to multiple watched videos of the target user and other nodes in the association network, and recommend videos to the target user based on the multiple target videos, thereby realizing that the interest preferences of the target user can be extracted from a small amount of behavioral data, and then similar content can be found and recommended to the user. In the cold start scenario, external knowledge is introduced, and the recommendation effect is more advantageous. At the same time, the method can provide real-time feedback on user behavior, capture changes in user interest preferences, dynamically generate new recommendation results, and improve the effect and accuracy of recommendations. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 It is a flowchart of the label-enhanced real-time recommendation method provided by the present invention.

[0018] Figure 2 It is a schematic diagram of a recommended process provided by the present invention.

[0019] Figure 3 It is a structural schematic diagram of the label-enhanced real-time recommendation device provided by the present invention.

[0020] Figure 4It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] Figure 1 is a flow chart of the label-enhanced real-time recommendation method provided by the present invention, such as Figure 1 As shown, the method includes the following: Step 110, extracting keywords from the description information of each video in the video library to obtain multiple tags corresponding to each video; Step 120, constructing a content tag network for each video based on content nodes and tag nodes, wherein the content nodes are determined based on the description information of the video, and the tag nodes are determined based on the tags of the video; Step 130, based on the similarity between the label nodes, the similar label nodes in the content label network of each video are associated to obtain an associated network; Step 140, obtaining multiple videos in the video library that the target user has watched recently in a preset time period, determining multiple target videos related to the multiple videos based on the association relationship between the nodes corresponding to the multiple videos and other nodes in the association network, and making video recommendations to the target user based on the multiple target videos.

[0023] The execution subject of the tag-enhanced real-time recommendation method provided by the present invention can be an electronic device, a component in an electronic device, an integrated circuit, or a chip. The electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), or a personal computer (PC), etc., which is not specifically limited by the present invention.

[0024] The following takes the real-time recommendation method for label enhancement provided by the present invention executed by a computer as an example to describe the technical solution of the present invention in detail.

[0025] In step 110, keywords are extracted from the description information of each video in the video library to obtain multiple tags corresponding to each video.

[0026] Collect descriptive information of each video from the video library, which may include title, introduction, user comments, subtitles, etc.

[0027] Keywords in the description information are extracted to obtain multiple labels of the video. For example, for the description information of the video "A colorful parrot stands on the treetop. It suddenly flaps its wings and flies high, passing through the lush forest, and finally lands on a meadow full of flowers. The camera slowly moves forward, showing the colorful flowers on the meadow and the sheep grazing leisurely in the distance", the labels that can be extracted are "parrot", "treetop", "flying high", "forest", "flower meadow", "colorful", and "sheep".

[0028] Among them, the extracted video tags can represent the key information of the video.

[0029] Optionally, the process of extracting labels for videos can be realized based on the large language model. Based on the massive general knowledge and powerful semantic understanding ability in the large language model, the recommendation system is assisted to understand the content and automatically, efficiently and accurately extract video labels. For all videos in the video library, labels are generated for all videos in the video library by batch calling the large language model interface.

[0030] It is understandable that a label is a concise expression of the content of a video. By summarizing the video's subject matter, age, story background, emotional tone and other information through a few words, it can effectively help the recommendation system identify user preferences and improve the recommendation effect.

[0031] In step 120, a content tag network of each video is constructed based on content nodes and tag nodes, wherein the content nodes are determined based on the description information of the video, and the tag nodes are determined based on the tags of the video.

[0032] A content tag network is constructed for each video in the video library, wherein the content tag network is determined based on the content node of the video and multiple tag nodes of the video.

[0033] Specifically, the content node of a video may be connected to a plurality of tag nodes of the video to construct a content tag network of the video.

[0034] The content node may be determined based on the description information, and the multiple tag nodes of the video correspond to each tag determined in step 110 .

[0035] In step 130, based on the similarity between the label nodes, similar label nodes in the content label network of each video are associated to obtain an associated network.

[0036] The label nodes of all videos can be obtained, and based on the similarity between the label contents corresponding to the label nodes, similar label nodes are associated to build an association network.

[0037] It can be understood that the association network includes content nodes and label nodes of all videos in the video library. All similar label nodes in the association network can be associated in a connected manner to construct an association network.

[0038] Optionally, based on the underlying interface of the large language model, the label content in each label node can be converted into a representation vector, and based on calculating the vector distance between each pair of labels, an association relationship can be established between labels whose distance is less than a certain threshold.

[0039] In step 140, a plurality of videos in the video library watched by the target user in a recent preset time period are obtained, and based on the association relationship between the nodes corresponding to the plurality of videos and other nodes in the association network, a plurality of target videos related to the plurality of videos are determined, and video recommendations are made to the target user based on the plurality of target videos.

[0040] The target user is any user who watches the videos in the video library. When the target user is viewing the video in the video library, he will receive push notifications of other related videos in the video library.

[0041] A plurality of videos watched by the target user in a recent preset time period are obtained. Optionally, a plurality of videos watched by the user in the recent day can be obtained.

[0042] Multiple nodes corresponding to video viewing may be determined in the association network, including content nodes and tag nodes.

[0043] It can be understood that there is an association relationship between different nodes in the association network. For multiple label nodes determined in the association network, label nodes of other videos associated with the label node of the watched video can be determined.

[0044] It can be understood that by determining the label nodes of other videos associated with the label node of the watched video, it can be determined that the content node corresponding to the label node or the video corresponding to the label node has a certain correlation with the watched video.

[0045] Based on the association relationship between the nodes corresponding to the plurality of viewed videos and other nodes in the association network, a plurality of target videos related to the plurality of viewed videos are determined. The determined plurality of target videos can be used as a recommendation list, and a viewing push process can be performed for target users.

[0046] The recommended process diagram can be constructed as follows Figure 2 The recommended process diagram provided by the present invention is shown in FIG.

[0047] Based on the large language model, the video tags are extracted, and the content tag network of each video is constructed based on the content nodes and tag nodes. The obtained content tag network can be Figure 2 Further, based on the large language model, the similarity between the label nodes is determined, and the similar label nodes in the content label network of each video are associated, as shown in FIG. Figure 2 The dotted lines in the network are connected to obtain the associated network.

[0048] Based on the association network, according to the content 1 watched by the user, a search is performed in the association network, and the returned content 2 associated with the watched content 1 determined in the association network is returned to the recommendation engine to recommend the content 2 to the user.

[0049] The tag-enhanced real-time recommendation method provided by the present invention constructs an association network between content and tags through the correlation between video tags, determines multiple target videos related to multiple watched videos based on the association relationship between nodes corresponding to multiple watched videos of the target user and other nodes in the association network, and recommends videos to the target user based on the multiple target videos, thereby realizing the ability to extract the interest preferences of the target user from a small amount of behavioral data, and then find similar content to recommend to the user. In the cold start scenario, external knowledge is introduced, and the recommendation effect is more advantageous. At the same time, the method can provide real-time feedback on user behavior, capture changes in user interest preferences, dynamically generate new recommendation results, and improve the effect and accuracy of recommendations.

[0050] In one embodiment, based on the association relationship between the nodes corresponding to the multiple viewed videos and other nodes in the association network, multiple target videos related to the multiple viewed videos are determined, including: assigning different initial scores to each viewed video based on the distance between the multiple viewed videos and the current time and the viewing duration of each viewed video; determining the scores of content nodes related to the multiple viewed videos based on the initial scores and the association relationship between the nodes corresponding to the multiple viewed videos and other nodes in the association network; and determining multiple target videos related to the multiple viewed videos based on the ranking of the scores.

[0051] Scoring the obtained multiple watched videos can be performed, and specifically, different initial scores can be assigned to each watched video based on the distance between the multiple watched videos and the current time and the viewing time of each watched video. The closer the watched video is to the current time and the longer the video is watched, the higher the initial score assigned. The farther the watched video is from the current time and the shorter the video is watched, the lower the initial score assigned.

[0052] Based on the determined initial scores of the plurality of viewed videos and the association relationships between the nodes corresponding to the plurality of viewed videos and other nodes in the associated network, the videos related to the plurality of viewed videos in the associated network are scored.

[0053] The scores of all content nodes are sorted, and based on the scores, they can be screened to determine multiple target videos that are highly relevant to multiple watched videos. After multiple target videos are determined, they can be recommended to target users according to the scores, with the highest-scoring videos being recommended first.

[0054] In one embodiment, the initial score assigned for watching a video is: ; in, is the initial score for watching video i, Represents the viewing time of i who watched the video, is the current time, Represents the time when the target user last watched video i. To view the video, Adjust the parameters for the value range.

[0055] Specifically: You can retrieve the N videos that the user has watched recently. , find the content nodes representing these videos from the association network , forming the initial starting node set , and assign different initial scores to nodes according to the viewing time and viewing duration: ; in, is the initial score for watching video i, Represents the viewing time of i who watched the video, is the current time, Represents the time when the target user last watched video i. To view the video, Adjust the parameters for the value range.

[0056] The initial scores of all remaining nodes are set to 0.

[0057] For the scores of the content nodes related to the plurality of watched videos, the specific determination process may be: Step 1: Target All the departure nodes in the association network are found to be directly associated with these nodes. ( ), and update according to the following rules Score: if For label nodes: ; if For content nodes: ; in, is the score of the directly associated node j, is the score of the directly associated node j before the update (the score will be updated during repeated calculations), is the initial score of watching video i, K is the total number of all label nodes connected to the starting node, , These are parameters for adjusting the decay rate.

[0058] Step 2: Target all directly connected nodes , if the preset conditions are met: (a) is a label node; (b) Greater than ( The default scoring threshold is set to 0.1); (c) Has not participated in any calculation as a starting node; Then the condition will be met The starting node set for the next round . And Directly connected nodes are scored.

[0059] Repeat steps 1 and 2 until there is no node that meets the preset conditions for the next round of calculation or the number of repetitions reaches the preset threshold, then the algorithm terminates. Obtain all content nodes with scores greater than 0 in the current association network, use the obtained content nodes as content nodes related to multiple watched videos, sort the obtained content nodes according to their scores, generate a recommendation list, and return it to the user by the recommendation engine.

[0060] It is understandable that the calculation step 2 and The larger the value, the slower the decay of the score, and the more tags / content nodes are associated with the search, which means that the divergence of tag associations is greater, the diversity of recommended results is greater, and the more long-tail content may be included. In actual applications, this parameter can be adjusted according to the needs of business scenarios.

[0061] In one embodiment, keyword extraction is performed on the description information of each video in the video library to obtain multiple tags corresponding to each video, including: based on a large language model and a pre-built prompt template, keyword extraction is performed on the description information of each video in the video library to obtain multiple tags corresponding to each video.

[0062] Specifically, a prompt word template can be pre-built to guide the large language model to refine the input information and limit the format and number of output labels.

[0063] For example, the label extraction process based on the constructed prompt template can be: Suppose you are a film critic, extract keywords from [Description Information], and return the results in the following requirements: the number should not exceed 5, each word should not exceed 3 characters, and they should be sorted by importance. Description Information: "A colorful parrot stood on the treetop. It suddenly flapped its wings and flew high, passing through the lush forest, and finally landed on a meadow full of flowers. The camera slowly moved forward, showing the colorful flowers on the meadow and the sheep grazing leisurely in the distance." The tags that can be extracted are "parrot", "treetop", "forest", "colorful", and "flock of sheep".

[0064] Based on the large language model, the process of extracting labels for videos can be realized. Based on the massive general knowledge and powerful semantic understanding ability in the large language model, the recommendation system is assisted to understand the content and automatically, efficiently and accurately extract video labels. For all videos in the video library, labels are generated for all videos in the video library by batch calling the large language model interface.

[0065] In one embodiment, after obtaining the association network, the method further includes: determining the association quantity of each label node in the association network, and deleting the label nodes whose association quantity is less than a preset association quantity threshold.

[0066] The label nodes in the association network are associated with the label nodes that are similar to them. The number of associations for each label node can be determined, where the number of associations is the number of label nodes connected to the label node.

[0067] By deleting label nodes whose association quantity is less than a preset association quantity threshold, label nodes with too few associations can be removed, and isolated label nodes can be deleted, thereby reducing the amount of calculation for subsequent target video determination.

[0068] In one embodiment, based on the similarity between label nodes, similar label nodes in the content label network of each video are associated to obtain an associated network, including: calling the underlying interface of the large language model, converting the label words of each label node into a representation vector, and determining the vector distance between each representation vector; associating the label nodes whose vector distance is less than a preset distance threshold to obtain an associated network.

[0069] Based on the underlying interface of the large language model, the label content in each label node can be converted into a representation vector, and based on the calculation of the vector distance between each label, an association relationship can be established between labels whose distance is less than a preset distance threshold.

[0070] The tag-enhanced real-time recommendation device provided by the present invention is described below. The tag-enhanced real-time recommendation device described below and the tag-enhanced real-time recommendation method described above can be referred to each other.

[0071] like Figure 3 Said device comprises: The tag extraction module 310 is used to extract keywords from the description information of each video in the video library to obtain multiple tags corresponding to each video; A content tag network determination module 320, configured to construct a content tag network for each video based on content nodes and tag nodes, wherein the content nodes are determined based on the description information of the video, and the tag nodes are determined based on the tags of the video; The associated network determination module 330 is used to associate similar label nodes in the content label network of each video based on the similarity between the label nodes to obtain an associated network; The recommendation module 340 is used to obtain multiple videos watched by the target user in the video library in a recent preset time period, determine multiple target videos related to the multiple videos based on the association relationship between the nodes corresponding to the multiple videos and other nodes in the association network, and recommend videos to the target user based on the multiple target videos.

[0072] In one embodiment, the recommendation module 340 is specifically used to: Determining a plurality of target videos related to the plurality of viewed videos based on the association relationship between the nodes corresponding to the plurality of viewed videos and other nodes in the association network includes: Based on the distance between the multiple videos watched and the current time and the viewing time of each video watched, different initial scores are assigned to each video watched; Determine the scores of content nodes related to the multiple videos watched based on the initial scores and the association relationships between the nodes corresponding to the multiple videos watched and other nodes in the association network; Based on the ranking of the scores, a plurality of target videos related to the plurality of viewed videos are determined.

[0073] In one embodiment, the recommendation module 340 is further specifically configured to: Determining scores of content nodes related to the multiple videos watched based on the initial scores and association relationships between nodes corresponding to the multiple videos watched and other nodes in the association network includes: Taking the nodes corresponding to the plurality of watched videos in the association network as departure nodes, and determining directly associated nodes directly connected to the plurality of departure nodes; In the case where the directly associated node is a label node, the score of the directly associated node is determined as: ; In the case where the directly associated node is a content node, the score of the directly associated node is determined as: ; In the case where the directly associated node meets the preset condition, the directly associated node is used as the starting node for the next round of score calculation, until no node meets the preset condition for the next round of calculation or the number of repetitions reaches a preset number threshold, so as to obtain the scores of the content nodes related to the multiple watched videos; The preset conditions are: The current directly associated node is a label node; The score of the current directly associated node is greater than the preset score threshold; The current directly associated node has not participated in the calculation as a starting node; in, is the score of the directly associated node j, is the score of directly associated node j before updating, is the initial score of watching video i, K is the total number of all label nodes connected to the starting node, , is a parameter for adjusting the decay rate.

[0074] In one embodiment, the recommendation module 340 is further specifically configured to: The initial score for watching the video is: ; in, is the initial score for watching video i, The viewing time of i who watched the video, is the current time, The time when the target user last watched video i. Indicates how far the video is from the current time. Adjust the parameters for the value range.

[0075] In one embodiment, the tag extraction module 310 is specifically used to: Extract keywords from the description information of each video in the video library to obtain multiple tags corresponding to each video, including: Based on the large language model and pre-built prompt templates, keywords are extracted from the description information of each video in the video library to obtain multiple tags corresponding to each video.

[0076] In one embodiment, the associated network determination module 330 is specifically configured to: After obtaining the associated network, it also includes: The association quantity of each label node in the association network is determined, and the label nodes whose association quantity is less than a preset association quantity threshold are deleted.

[0077] In one embodiment, the associated network determination module 330 is further specifically configured to: Based on the similarity between the label nodes, similar label nodes in the content label network of each video are associated to obtain an associated network, including: Call the underlying interface of the large language model to convert the label words of each label node into a representation vector, and determine the vector distance between each representation vector; The label nodes whose vector distance is less than a preset distance threshold are associated to obtain an associated network.

[0078] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communications interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communications interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the real-time recommendation method for tag enhancement, the method comprising: extracting keywords from the description information of each video in the video library to obtain multiple tags corresponding to each video; Based on content nodes and label nodes, construct a content label network for each video, wherein the content nodes are determined based on the description information of the video, and the label nodes are determined based on the label of the video; Based on the similarity between label nodes, similar label nodes in the content label network of each video are associated to obtain an associated network; Acquire multiple viewed videos in the video library that the target user has watched recently in a preset time period, determine multiple target videos related to the multiple viewed videos based on the association relationship between the nodes corresponding to the multiple viewed videos and other nodes in the association network, and make video recommendations to the target user based on the multiple target videos.

[0079] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0080] On the other hand, the present invention also provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the tag-enhanced real-time recommendation method provided by the above methods, the method comprising: extracting keywords from the description information of each video in the video library to obtain multiple tags corresponding to each video; Based on content nodes and label nodes, construct a content label network for each video, wherein the content nodes are determined based on the description information of the video, and the label nodes are determined based on the label of the video; Based on the similarity between label nodes, similar label nodes in the content label network of each video are associated to obtain an associated network; Acquire multiple viewed videos in the video library that the target user has watched recently in a preset time period, determine multiple target videos related to the multiple viewed videos based on the association relationship between the nodes corresponding to the multiple viewed videos and other nodes in the association network, and make video recommendations to the target user based on the multiple target videos.

[0081] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the tag-enhanced real-time recommendation method provided by the above methods, the method comprising: extracting keywords from the description information of each video in the video library to obtain multiple tags corresponding to each video; Based on content nodes and label nodes, construct a content label network for each video, wherein the content nodes are determined based on the description information of the video, and the label nodes are determined based on the label of the video; Based on the similarity between label nodes, similar label nodes in the content label network of each video are associated to obtain an associated network; Acquire multiple viewed videos in the video library that the target user has watched recently in a preset time period, determine multiple target videos related to the multiple viewed videos based on the association relationship between the nodes corresponding to the multiple viewed videos and other nodes in the association network, and make video recommendations to the target user based on the multiple target videos.

[0082] The device embodiments described above are merely illustrative, 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 on 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. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A label-enhanced real-time recommendation method, characterized in that: The method comprises: Extract keywords from the description information of each video in the video library to obtain multiple tags corresponding to each video; Based on content nodes and label nodes, construct a content label network for each video, wherein the content nodes are determined based on the description information of the video, and the label nodes are determined based on the label of the video; Based on the similarity between label nodes, similar label nodes in the content label network of each video are associated to obtain an associated network; Acquire multiple videos in the video library that the target user has watched in a recent preset time period, determine multiple target videos related to the multiple videos based on the association relationship between the nodes corresponding to the multiple videos and other nodes in the association network, and recommend videos to the target user based on the multiple target videos; The determining of a plurality of target videos related to the plurality of viewed videos based on the association relationship between the nodes corresponding to the plurality of viewed videos and other nodes in the association network includes: Based on the distance between the multiple videos watched and the current time and the watching time of each video watched, different initial scores are assigned to each video watched; Determine the scores of content nodes related to the multiple videos watched based on the initial scores and the association relationships between the nodes corresponding to the multiple videos watched and other nodes in the association network; Based on the ranking of the scores, a plurality of target videos related to the plurality of viewed videos are determined.

2. The tag-enhanced real-time recommendation method according to claim 1, characterized in that: The step of determining the scores of the content nodes related to the multiple videos watched based on the initial scores and the association relationships between the nodes corresponding to the multiple videos watched and other nodes in the association network includes: Taking the nodes corresponding to the plurality of watched videos in the association network as departure nodes, and determining directly associated nodes directly connected to the plurality of departure nodes; In the case where the directly associated node is a label node, the score of the directly associated node is determined as: ; In the case where the directly associated node is a content node, the score of the directly associated node is determined as: ; In the case where the directly associated node meets the preset condition, the directly associated node is used as the starting node for the next round of score calculation, until no node meets the preset condition for the next round of calculation or the number of repetitions reaches a preset number threshold, so as to obtain the scores of the content nodes related to the multiple watched videos; The preset conditions are: The current directly associated node is a label node; The score of the current directly associated node is greater than the preset score threshold; The current directly associated node has not participated in the calculation as a starting node; in, is the score of the directly associated node j, is the score of directly associated node j before updating, is the initial score of watching video i, K is the total number of all label nodes connected to the starting node, , is a parameter for adjusting the decay rate.

3. The tag-enhanced real-time recommendation method according to claim 1, characterized in that: The initial score assigned for watching the video is: ; in, is the initial score for watching video i, The viewing time of i who watched the video, is the current time, The time when the target user last watched video i. Indicates how far the video is from the current time. Adjust the parameters for the value range.

4. The tag-enhanced real-time recommendation method according to claim 1, characterized in that: The keyword extraction is performed on the description information of each video in the video library to obtain multiple tags corresponding to each video, including: Based on the large language model and pre-built prompt templates, keywords are extracted from the description information of each video in the video library to obtain multiple tags corresponding to each video.

5. The tag-enhanced real-time recommendation method according to claim 1, characterized in that: After obtaining the associated network, the method further includes: The association quantity of each label node in the association network is determined, and the label nodes whose association quantity is less than a preset association quantity threshold are deleted.

6. The tag-enhanced real-time recommendation method according to claim 1, characterized in that: Based on the similarity between the label nodes, similar label nodes in the content label network of each video are associated to obtain an associated network, including: Call the underlying interface of the large language model to convert the label words of each label node into a representation vector, and determine the vector distance between each representation vector; The label nodes whose vector distance is less than a preset distance threshold are associated to obtain an associated network.

7. A real-time recommendation device with enhanced tags, used to implement the real-time recommendation method with enhanced tags as claimed in any one of claims 1 to 6, characterized in that: include: The tag extraction module is used to extract keywords from the description information of each video in the video library to obtain multiple tags corresponding to each video; A content tag network determination module, used to construct a content tag network for each video based on content nodes and tag nodes, wherein the content nodes are determined based on the description information of the video, and the tag nodes are determined based on the tag of the video; An association network determination module is used to associate similar label nodes in the content label network of each video based on the similarity between the label nodes to obtain an association network; A recommendation module, configured to obtain a plurality of videos in the video library that the target user has watched in a recent preset time period, determine a plurality of target videos related to the plurality of videos based on association relationships between nodes corresponding to the plurality of videos and other nodes in the association network, and recommend videos to the target user based on the plurality of target videos; The determining of a plurality of target videos related to the plurality of viewed videos based on the association relationship between the nodes corresponding to the plurality of viewed videos and other nodes in the association network includes: Based on the distance between the multiple videos watched and the current time and the viewing time of each video watched, different initial scores are assigned to each video watched; Determine the scores of content nodes related to the multiple videos watched based on the initial scores and the association relationships between the nodes corresponding to the multiple videos watched and other nodes in the association network; Based on the ranking of the scores, a plurality of target videos related to the plurality of viewed videos are determined.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the real-time recommendation method for label enhancement according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the real-time recommendation method for label enhancement according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Video recommendation method and device

    CN111353068A

  • Content recommendation method and device and storage medium

    CN112989209A

  • Video recommendation method and device

    CN115618054A

  • Real-time screening method and device for recommended videos, electronic equipment and storage medium

    CN116010630A

Cited By

  • Video detection system for science popularization recommendation

    CN119807777A