Recommendation method, recommendation device and storage medium
Through the combination of feature vectors and interest models, the interaction-enhanced twin tower model is used to recommend large-screen TVs for families, which solves the problem of difficulty in modeling long-term and short-term interests of users and low recommendation accuracy, and improves the accuracy and efficiency of recommendations. Improved user experience.
Patent Information
- Application Number
- CN202410046747.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-10-18
AI Technical Summary
Existing home large-screen TV recommendation methods have problems such as high engineering difficulty, serious resource consumption and low recommendation accuracy when modeling users' long-term and short-term interests, especially the long-term interest preference category deviation and duality caused by sparse user behavior. The tower model lacks interactive features.
By determining the score of the category of the media resource based on the first eigenvector and the second eigenvector, combined with the improved long-term interest recall model and short-term preference sequence model, the interaction-enhanced twin-tower model is used to determine the recommended resources for the user to be recommended. Refine the calculation of user preference categories and reduce the difficulty of long-term interest sequence modeling.
It improves the accuracy and efficiency of recommendations, enhances user experience, and improves the accuracy of recommendation results through refined user preference category calculation and interactive feature fusion.
Smart Images

Figure CN118797142A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a recommendation method, a recommendation device and a storage medium. Background Art
[0002] Recommendation for large-screen TVs at home refers to recommending TV, movies and other media resources (referred to as media resources) that users may be interested in based on their browsing behavior on TV. Current recommendation methods include both rule-based and simple and efficient methods based on traditional machine learning, as well as methods with complex network structures such as deep learning and graph neural networks. On large-screen TVs, due to sparse user behavior, users may not watch TV for a long time after watching TV for a period of time, which will result in the existing recommended content failing to meet users' long-term and short-term interests, resulting in poor user experience. Therefore, a lot of research has been conducted on obtaining users' long-term and short-term interest characteristics.
[0003] However, the current recommendation methods have the problem of high difficulty in modeling users' long-term and short-term interests and serious resource consumption. At the same time, there is a problem of deviation in users' long-term preference categories in home large-screen TV recommendations, and the existing dual-tower model recommendation architecture lacks interactive features, resulting in inaccurate recommendation results. In summary, the current large-screen TV recommendation method has the problem of high difficulty in modeling engineering, which leads to reduced recommendation efficiency, and also has the problem of reduced recommendation accuracy. Summary of the invention
[0004] The embodiments of the present application provide a recommendation method, a recommendation device, and a storage medium, which can improve the recommendation accuracy while improving the recommendation efficiency.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a recommendation method, the method comprising:
[0007] Determine a score of the category to which the first media resource belongs based on the first feature vector and the second feature vector;
[0008] Determine a first sequence based on the score, and determine a second sequence based on the number of views corresponding to the second media resource;
[0009] determining a third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model, and the short-term preference sequence model;
[0010] The recommended resources for the user to be recommended are determined by using the third eigenvector, the fourth eigenvector and the interactively enhanced double-tower model.
[0011] In a second aspect, an embodiment of the present application provides a recommendation device, the recommendation device comprising: a determination unit;
[0012] The determining unit is used to determine the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector;
[0013] The determination unit is further configured to determine a first sequence based on the score, and determine a second sequence based on the number of views corresponding to the second media resource; wherein the first sequence is used to represent resource information preferred by the user in the long term, and the second sequence is used to represent resource information preferred by the user in the short term;
[0014] The determining unit is further used to determine a third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model, and the short-term preference sequence model;
[0015] The determining unit is further used to determine the recommended resources for the user to be recommended through the third feature vector, the fourth feature vector and the interactively enhanced double-tower model.
[0016] In a third aspect, an embodiment of the present application provides a recommendation device, the recommendation device comprising: a processor and a memory; wherein:
[0017] The memory is used to store a computer program that can be run on the processor;
[0018] The processor is used to execute the recommendation method as described above when running the computer program.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that a computer program code is stored on the storage medium, and when the computer program code is executed by a computer, the recommendation method as described above is implemented.
[0020] The embodiment of the present application provides a recommendation method, a recommendation device and a storage medium, the method comprising: the recommendation device determines the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector; determines the first sequence based on the score, and determines the second sequence based on the number of views corresponding to the second media resource; determines the third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model and the short-term preference sequence model; determines the recommended resources of the user to be recommended through the third feature vector, the fourth feature vector and the interactively enhanced twin tower model. That is to say, the recommendation device can determine the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector, so that the user's preference for the category to which the first media resource belongs can be determined more finely, thereby improving the accuracy of the recommendation, and the present application can determine the third feature vector based on the improved long-term interest recall model, reducing the difficulty of modeling engineering of the long-term interest sequence, thereby improving the recommendation efficiency, and then the recommended resources of the user to be recommended can be determined through the third feature vector, the fourth feature vector and the interactively enhanced twin tower model, that is, the present application can determine the final recommended resources of the user to be recommended based on the interactively enhanced twin tower model, further improving the accuracy of the recommendation. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a schematic diagram of the DSSM twin tower structure;
[0022] Figure 2 The recommended method proposed in this application embodiment is shown in FIG. Figure 1 ;
[0023] Figure 3 A schematic diagram of a Pinner Former network structure with enhanced preference categories proposed in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of a user's long-term and short-term interest fusion network structure proposed in an embodiment of the present application;
[0025] Figure 5 The recommended method proposed in this application embodiment is shown in FIG. Figure 2 ;
[0026] Figure 6 A schematic diagram of a double-tower model with enhanced fusion interaction features proposed in an embodiment of the present application;
[0027] Figure 7 The third recommended method proposed for the embodiment of the present application;
[0028] Figure 8 The structure diagram of the recommended device proposed in the embodiment of the present application is as follows: Figure 1 ;
[0029] Fig. 9The structure diagram of the recommended device proposed in the embodiment of the present application is as follows: Figure 2 . DETAILED DESCRIPTION
[0030] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the accompanying drawings.
[0031] Home large-screen TV recommendation refers to recommending TV, movies and other media resources (referred to as media resources) that users may be interested in based on their browsing behavior on TV. Current recommendation methods include both rule-based and simple and efficient methods based on traditional machine learning, as well as methods with complex network structures such as deep learning and graph neural networks. On large-screen TVs, due to sparse user behavior, users may not watch TV for a long time after watching TV for a period of time. This will cause the existing recommended content to fail to meet the user's long-term and short-term interests, resulting in poor user experience. Therefore, a lot of research has been done on obtaining users' long-term and short-term interest characteristics.
[0032] In terms of obtaining users' long-term and short-term interests, for example, the Sequential DeepMatching Model (SDM) studies how to learn users' rich interests through their historical behavior sequences. The model takes into account users' short-term behaviors and long-term interests, divides them into sessions, and models the two aspects separately. It uses the long-term interest recall model (PinnerFormer) to model users' long-term behavior sequences, and uses the short-term preference sequence model (Transact) to model users' short-term behavior sequences. The two are then fused through the Deep Cross Network (DCN) and MultiLayer Perceptron (MLP) to obtain users' long-term and short-term interest features. After obtaining the user's long-term and short-term interests, the user's user embedding will be obtained. At present, the most classic recommendation architecture based on deep learning uses a dual-tower model, which includes two classic network structures, the user tower and the item tower. By calculating the similarity of the user embedding and the item embedding, the most similar topN items are recommended to the user; "A KGCN model movie recommendation method integrating user information and interest changes" This patent discloses the following content: obtain the user's long-term and short-term movie rating table and user personal information table; integrate the user's personal information into the user's initial embedding vector through natural language processing technology; construct a knowledge graph of the user's long-term and short-term viewing and rating movies, integrate the user's initial embedding vector, and generate the user's long-term and short-term interest representation through the KGCN model and attention mechanism respectively; perform weighted summation of the user's long-term and short-term interest representation to generate the user's interest representation, predict the movie to be predicted, and recommend to the user based on the prediction results.
[0033] However, the current large-screen TV recommendation methods have the following disadvantages: (1) The long-term interest sequence modeling project for large-screen home TV recommendation is difficult, resource-intensive, and the model training time is long; on large-screen TVs, due to sparse user behavior, users may watch TV for a period of time and then stop watching TV for a long time. This will result in the inability of existing recommended content to fit the user's long-term and short-term interests, resulting in poor user experience. Therefore, it is necessary to model the user's long-term and short-term interests, but the existing methods are difficult to model the user's long-term interests and resource-intensive; (2) There is a bias in the user's long-term preference categories in the large-screen home TV recommendation. The traditional method of calculating the user's long-term preference categories is to first count the media previously watched by the user, then add up the categories corresponding to all the media, and sort them from high to low according to the number of categories to which the watched media belong, thus obtaining the user's preference categories; for example, a user If a user has watched "The Ship" (horror, action, adventure), "Saw" (horror, thriller, adventure), and "Inception" (suspense, adventure), then the user's preference category ranking is: adventure 3 times, horror 2 times, action 1 time, suspense 1 time, thriller 1 time, but the actual user prefers to watch media corresponding to horror themes. This leads to the problem that the weight of each category of each media asset is the same, but in the actual viewing scenario, the weight of each category of each media asset is different. For example, the movie "The Ship" belongs to three categories: horror, action, and adventure, but it is obvious that the horror theme of the movie has a higher weight. (3) The existing dual-tower model recommendation architecture lacks interactive features, resulting in inaccurate recommendation results and affecting user experience. After obtaining the embedding of users' long-term and short-term interests, the existing deep learning recommendation framework generally uses the deep network semantic model (Deep Structured Semantic Model, DSSM). Figure 1 It is a schematic diagram of the DSSM double tower structure. Figure 1 As shown in the figure, the user-side features are converted into feature vectors (feature embedding), which are then input into the deep neural network (DNN) to obtain the corresponding (user vector) user embedding, and the item-side features are converted into feature vectors (feature embedding), which are then input into the deep neural network to obtain the corresponding (media vector) item embedding, and then the similarity between the two can be calculated; this framework has the advantages of simple and fast calculation, but the framework lacks the interactive features between user and item, and there will be a problem of insufficient learning, resulting in inaccurate recommendation results and affecting user experience.
[0034] In order to solve the problem that the current large-screen TV recommendation method has a large difficulty in modeling engineering, resulting in a decrease in recommendation efficiency, and at the same time there is a decrease in recommendation accuracy, the embodiment of the present application provides a recommendation method, a recommendation device and a storage medium, the method comprising: the recommendation device determines the score of the category to which the first media resource belongs based on the first eigenvector and the second eigenvector; determines a first sequence based on the score, and determines a second sequence based on the number of views corresponding to the second media resource; determines a third eigenvector based on the first sequence, the second sequence, an improved long-term interest recall model and a short-term preference sequence model; determines the recommended resources for the user to be recommended through the third eigenvector, the fourth eigenvector and the interactively enhanced dual-tower model. That is to say, the recommendation device can determine the score of the category to which the first media resource belongs based on the first eigenvector and the second eigenvector, so as to more finely determine the category to which the user prefers the first media resource, thereby improving the accuracy of the recommendation, and the present application can determine the third eigenvector based on the improved long-term interest recall model, reducing the difficulty of modeling engineering of long-term interest sequences, thereby improving the recommendation efficiency, and then the recommended resources for the user to be recommended can be determined through the third eigenvector, the fourth eigenvector and the interactively enhanced dual-tower model, that is, the present application can determine the final recommended resources for the user to be recommended based on the interactively enhanced dual-tower model, further improving the accuracy of the recommendation.
[0035] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0036] Embodiment 1
[0037] The present application embodiment provides a recommendation method. Figure 2 The recommended method proposed in this application embodiment is shown in FIG. Figure 1 ,like Figure 2 As shown, the recommended method may include the following steps:
[0038] Step 101: Determine a score of a category to which a first media resource belongs based on a first feature vector and a second feature vector.
[0039] In an embodiment of the present application, the recommendation device may determine the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector.
[0040] It should be noted that, in the embodiments of the present application, the first media resource may include N sub-media resources, where N is a positive integer, and the present application does not specifically limit the number of sub-media resources included in the first media resource.
[0041] It should be noted that, in the embodiment of the present application, the first feature vector may be an image vector corresponding to N sub-media resources.
[0042] It should be noted that, in the embodiment of the present application, the second feature vector may be a text vector corresponding to N sub-media resources.
[0043] It should be noted that, in an embodiment of the present application, the recommendation device can determine the image vectors and text vectors corresponding to N sub-media resources based on the multimodal pre-trained model (R2D2); and then the image vectors and text vectors can be input into the trained first neural network model, so as to obtain the scores of the categories to which the N sub-media resources belong.
[0044] It should be noted that, in the embodiments of the present application, the first neural network model may be a deep neural network (DNN), and the present application does not specifically limit the type of the first neural network.
[0045] Exemplarily, in an embodiment of the present application, assuming that one of the sub-media resources included in the first media resource is a horror cruise movie, the recommendation device can determine 100 frames of images and media posters of the sub-media resource, and then determine the image vector and text vector corresponding to the sub-media resource through a multimodal pre-training model (R2D2), and then the image vector and text vector corresponding to the sub-media resource can be trained into a deep neural network, so as to obtain the score of the category to which the sub-media resource (horror cruise) belongs, for example, horror 0.6, action 0.2, and adventure 0.2.
[0046] That is to say, in an embodiment of the present application, the recommendation device can input the image vectors and text vectors corresponding to the N sub-media resources into the trained first neural network model, so as to obtain the scores of the categories to which the N sub-media resources belong. That is, the present application proposes a supervised preference category calculation method based on a deep neural network, which makes the calculation of user preference categories more accurate, thereby improving the accuracy of recommendations.
[0047] Step 102: determine a first sequence based on the score, and determine a second sequence based on the number of views corresponding to the second media resource.
[0048] In an embodiment of the present application, after determining the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector, the recommendation device may determine a first sequence based on the score and determine a second sequence based on the number of views corresponding to the second media resource.
[0049] It should be noted that, in an embodiment of the present application, the first sequence includes at least a resource category sequence of the user's long-term preferences, and the second sequence includes at least a channel sequence of the user's short-term preferences and a floor sequence of the user's short-term preferences. The present application does not specifically limit the sequence types included in the first sequence and the second sequence.
[0050] It should be noted that, in the embodiment of the present application, the second media resources include at least M channel resources and N floor resources, where M and N are both positive integers, and the present application does not specifically limit the content included in the second media resources.
[0051] Further, in an embodiment of the present application, the recommendation device can determine a first number of views corresponding to N sub-media resources; wherein the first number of views is the number of views corresponding to a first preset time period; and then a first sequence can be determined based on the first number of views and the scores of the categories corresponding to the N sub-media resources.
[0052] It should be noted that, in the embodiments of the present application, the first preset time period may be one year or more, and the present application does not specifically limit the size of the first preset time period.
[0053] It should be noted that in the embodiment of the present application, the calculation formula for determining the first sequence by the recommendation device is as follows, which can be obtained by multiplying the first browsing number of the media asset by the accumulation of the weight (score) of the category to which the corresponding media asset belongs, and then k Sorting from high to low can get the first sequence. For example, the first sequence can be prefer_category={C a1 ,C a2 ,……C ak}.
[0054]
[0055] Among them, score k Indicates the user's preference score for the kth category, num i Indicates the number of times the user watches the i-th media asset, weights k represents the weight value of the kth category, and j represents the number of media resources watched by the user after all duplicates are removed.
[0056] Further, in an embodiment of the present application, when determining the second sequence based on the number of views corresponding to the second media resource, the recommendation device may determine the second number of views corresponding to M channel resources and the third number of views corresponding to N floor resources; wherein the second number of views and the third number of views are the number of views corresponding to the second preset time period; then the third sequence may be determined based on the second number of views, and the fourth sequence may be determined based on the third number of views; wherein the third sequence is used to characterize the channel sequence of the user's short-term preferences, and the fourth sequence is used to characterize the floor sequence of the user's short-term preferences; and then the second sequence may be determined based on the third sequence and the fourth sequence.
[0057] It should be noted that, in the embodiment of the present application, the second preset time period may be one week, and the present application does not specifically limit the size of the second preset time period.
[0058] Exemplarily, in an embodiment of the present application, when the recommendation device determines the third sequence based on the second browsing count and determines the fourth sequence based on the third browsing count, the third sequence may be obtained by sorting the M channel resources according to the second browsing count. For example, the third sequence may be prefer_channel={C h1 ,C h2 ,……C hn}, the N floor resources may also be sorted according to the third browsing times to obtain a fourth sequence. For example, the fourth sequence may be prefer_floor={Cf l1 ,f l2 ,……f lm}, where n means that there are n channels preferred by the user, and m means that there are m floors preferred by the user.
[0059] Step 103: determine a third eigenvector based on the first sequence, the second sequence, the improved long-term interest recall model, and the short-term preference sequence model.
[0060] In an embodiment of the present application, after determining the first sequence based on the score and determining the second sequence based on the number of views corresponding to the second media resource, the recommendation device can determine the third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model and the short-term preference sequence model.
[0061] It should be noted that, in the embodiments of the present application, the long-term interest recall model may be a Pinner Former model.
[0062] It should be noted that, in the embodiments of the present application, the short-term preference sequence model may be a Trans Act model.
[0063] Furthermore, in an embodiment of the present application, the recommendation device may optimize the long-term interest recall model based on the first sequence and the first behavior resources to obtain an improved long-term interest recall model.
[0064] It should be noted that, in the embodiments of the present application, the first behavior resource may include short-term click behavior, and the present application does not specifically limit the type of behavior included in the first behavior resource.
[0065] It should be noted that, in the embodiments of the present application, Figure 3 This is a schematic diagram of the Pinner Former network structure with enhanced preference categories proposed in the embodiment of the present application, such as Figure 3As shown, the input of the Pinner Former model includes the first sequence, i.e., the sequence of resource categories that the user prefers for a long time (prefer_category) and the first line of resources. The sequence of resource categories that the user prefers for a long time is dotted with the short-term click behavior (for example, which media assets have been viewed in seven days), and then concatenated. The Transformer model is used to calculate the output user embedding, i.e., the present application can train the long-term interest recall model based on the first sequence and the first line of resources to obtain an improved long-term interest recall model, wherein context features represent the various features of user access, album features represent the features of the actors, directors, etc. of the media assets, user features represent the features of the user, action type represents the user's click, view, favorite, etc., album embedding represents the embedding of the media assets, time stamp represents the timestamp of the user action, and Embedding Layer represents the embedding layer.
[0066] It should be noted that in the embodiment of the present application, the calculation formula of the user embedding is as follows. The recommendation device can calculate the output user embedding by multiplying the sequence of resource categories that the user prefers for a long time by the short-term click behavior, and then splicing them together, and use the Transformer model to calculate the output user embedding.
[0067]
[0068] Among them, prefer_category represents the first sequence, Indicates short-term click behavior.
[0069] That is to say, in the embodiments of the present application, since it is currently necessary to input all the user's viewing history vectors into PinnerFormer for training and learning, and when the viewing sequence of a large-screen TV is too long, it will lead to problems such as greater difficulty in model development engineering, longer training time, and difficulty in convergence. In this application, based on the truncated sequence length, the Transformer model can be used to fuse the user's viewing behavior (short-term click behavior) and the user's long-term preference categories (first sequence), thereby enhancing the user's long-term interest, reducing the difficulty of model development, and further improving the subsequent recommendation efficiency.
[0070] It should be noted that, in an embodiment of the present application, when the recommendation device determines the third eigenvector based on the first sequence, the second sequence, the improved long-term interest recall model and the short-term preference sequence model, the first sequence can be input into the improved long-term interest recall model to obtain a first prediction vector; the second sequence can be input into the short-term preference sequence model to obtain a second prediction vector; and the first prediction vector and the second prediction vector can be merged to obtain a merged vector, and the merged vector can be input into the deformable convolutional network model and the second neural network model to determine the third eigenvector.
[0071] It should be noted that, in the embodiments of the present application, the second neural network model may be a multi-layer perceptron (MLP), and the present application does not specifically limit the type of the second neural network model.
[0072] For example, in the embodiments of the present application, Figure 4 This is a schematic diagram of the user long-term and short-term interest fusion network structure proposed in the embodiment of the present application, such as Figure 4 As shown, the recommendation device can input the first sequence into the improved long-term interest recall model (Pinner Former*) to obtain a first prediction vector, and can input the second sequence into the short-term preference sequence model (TransAct) to obtain a second prediction vector, and then can merge (Concatenate) the first prediction vector and the second prediction vector to obtain a merged vector, and the merged vector is passed through the deformable convolutional network model (DCN V2) and the second neural network model (MLP) network structure to obtain the final user embedding (third feature vector); wherein, context features represent the various features of user access, album features represent the features of the actors, directors, etc. of the media, user features represent the features of the user, action type represents the user's click, watch, favorite, etc., album embedding represents the embedding of the media, and time stamp represents the timestamp of the user's action.
[0073] Step 104: Determine the recommended resources for the user to be recommended by using the third eigenvector, the fourth eigenvector and the interactively enhanced dual-tower model.
[0074] In an embodiment of the present application, after determining the third eigenvector based on the first sequence, the second sequence, the improved long-term interest recall model and the short-term preference sequence model, the recommendation device can determine the recommended resources for the user to be recommended through the third eigenvector, the fourth eigenvector and the interactively enhanced dual-tower model.
[0075] It should be noted that, in an embodiment of the present application, the recommendation device may fuse the first feature vector and the second feature vector to obtain a fourth feature vector. For example, the first feature vector and the second feature vector may be input into the ItemSage model to obtain the fourth feature vector.
[0076] It should be noted that, in the embodiments of the present application, Figure 5 The recommended method proposed in this application embodiment is shown in FIG. Figure 2 ,like Figure 5 As shown, before the recommendation device determines the recommended resources for the user to be recommended by using the third feature vector, the fourth feature vector and the interactively enhanced double-tower model, that is, before step 104, it can also include the following steps:
[0077] Step 105: fuse the third sequence and the fourth sequence into the initial twin-tower model as joint features to obtain an interactively enhanced twin-tower model.
[0078] It should be noted that in the embodiments of the present application, since the current dual-tower model lacks the interactive characteristics of users and media assets, the present application can add fused interactive features on the basis of the dual-tower model, that is, the third sequence and the fourth sequence can be fused into the dual-tower model as joint features, which can make the user embedding and item embedding better fit the characteristics of the user and the media itself, thereby improving the accuracy of the recommendation results.
[0079] Furthermore, in an embodiment of the present application, when the recommendation device determines the recommended resources for the user to be recommended through the third eigenvector, the fourth eigenvector and the interactively enhanced two-tower model, it can obtain the fifth eigenvector based on the interactively enhanced two-tower model, the third sequence, the fourth sequence and the third eigenvector; it can also obtain the sixth eigenvector based on the interactively enhanced two-tower model, the third sequence, the fourth sequence and the fourth eigenvector; and then determine the similarity between the fifth eigenvector and the sixth eigenvector; and determine the recommended resources for the user to be recommended based on the similarity.
[0080] It should be noted that, in the embodiment of the present application, when determining the fifth eigenvector, the recommendation device may obtain the fifth eigenvector based on the third sequence, the fourth sequence and the third eigenvector, and the fifth eigenvector may be calculated using the following formula.
[0081]
[0082]
[0083]
[0084] Among them, e urepresents the fifth eigenvector, prefer_channel represents the third sequence, prefer_floor represents the fourth sequence, represents the third eigenvector.
[0085] It should be noted that, in the embodiment of the present application, when determining the sixth eigenvector, the recommendation device may obtain the sixth eigenvector based on the third sequence, the fourth sequence and the fourth eigenvector, and the sixth eigenvector may be calculated using the following formula.
[0086]
[0087]
[0088]
[0089] Among them, e item represents the sixth eigenvector, prefer_channel represents the third sequence, prefer_floor represents the fourth sequence, represents the fourth eigenvector.
[0090] Further, in an embodiment of the present application, after determining the fifth feature vector and the sixth feature vector, the recommendation device may determine the similarity between the fifth feature vector and the sixth feature vector; and further determine the recommended resources for the user to be recommended based on the similarity.
[0091] For example, in the embodiments of the present application, Figure 6 This is a schematic diagram of a double-tower model with enhanced fusion interaction features proposed in an embodiment of the present application, such as Figure 6 As shown, the recommendation device can obtain user embedding (third feature vector) based on the improved long-term interest recall model (pinnerFormer*) and the short-term preference sequence model (TransAct), and can obtain item embedding (fourth feature vector) based on the ItemSage model, and then can obtain the fifth feature vector based on the third sequence (prefer_channel), the fourth sequence (prefer_floor) and the third feature vector; can also obtain the sixth feature vector based on the third sequence, the fourth sequence and the fourth feature vector; and then determine the similarity between the fifth feature vector and the sixth feature vector; and determine the recommended resources for the user to be recommended based on the similarity.
[0092] It should be noted that in the embodiments of the present application, the present application proposes a recommendation dual-tower model structure with fusion interaction enhancement, which can make user embedding and item embedding better fit the characteristics of users and media themselves, thereby making the recommendation results more accurate.
[0093] In summary, the recommendation device can input the image vectors and text vectors corresponding to the N sub-media resources into the trained first neural network model, so as to obtain the scores of the categories to which the N sub-media resources belong. That is, the present application proposes a supervised preference category calculation method based on a deep neural network, which makes the calculation of user preference categories more accurate, thereby improving the accuracy of recommendations. It can also use the Transformer model to fuse the user's viewing behavior (short-term click behavior) and the user's long-term preference category (first sequence) on the basis of the truncated sequence length, thereby enhancing the user's long-term interest and reducing the difficulty of model development, thereby improving the subsequent recommendation efficiency. In addition, the present application can make the user embedding and item embedding better fit the characteristics of the user and the media itself by integrating the interactively enhanced recommendation dual-tower model structure, thereby making the recommendation results more accurate.
[0094] The embodiment of the present application provides a recommendation method, which includes: the recommendation device determines the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector; determines the first sequence based on the score, and determines the second sequence based on the number of views corresponding to the second media resource; determines the third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model and the short-term preference sequence model; determines the recommended resources of the user to be recommended through the third feature vector, the fourth feature vector and the interactively enhanced twin tower model. That is to say, the recommendation device can determine the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector, so that the user's preference for the category to which the first media resource belongs can be determined more finely, thereby improving the accuracy of the recommendation, and the present application can determine the third feature vector based on the improved long-term interest recall model, reducing the difficulty of modeling engineering of the long-term interest sequence, thereby improving the recommendation efficiency, and then the recommended resources of the user to be recommended can be determined through the third feature vector, the fourth feature vector and the interactively enhanced twin tower model, that is, the present application can determine the final recommended resources of the user to be recommended based on the interactively enhanced twin tower model, further improving the accuracy of the recommendation.
[0095] Embodiment 2
[0096] Based on the above embodiments, another embodiment of the present application provides a recommendation method, which integrates the interactive enhanced dual-tower model recommendation algorithm of the user's long-term and short-term interests, and can improve the accuracy of personalized recommendations in this field; first, in view of the huge engineering challenges of long sequence modeling, a PinnerFormer long-term interest capture model with enhanced preference categories (improved long-term interest recall model) is proposed; second, in view of the deviation problem of user long-term preference categories, a refined user preference category solution is proposed; third, in view of the lack of user and media interaction characteristics in the existing dual-tower model, a fusion interaction feature is added on the basis of the dual-tower model. Finally, the final recommendation result is obtained based on the user embedding (third eigenvector) obtained by the long-term and short-term interest capture user tower, the item embedding (fourth eigenvector) obtained by the itemsage, and the interactively enhanced user-item dual-tower model (interactively enhanced dual-tower model), thereby improving the accuracy of recommendations while improving the user experience.
[0097] It should be noted that, in the embodiments of the present application, Figure 7 The third recommended method proposed in the embodiment of the present application is as follows: Figure 7 As shown, the recommendation method may include the following steps: step 1: using a deep neural network (DNN) to improve the categories to which existing media assets belong; step 2: according to the improved categories to which media assets belong and all historical viewing records of the user (including media asset name, viewing channel, and viewing floor), calculate the user's long-term preference categories (first sequence), short-term preference channels, and preference floors (second sequence); step 3: using the PinnerFormer model (improved long-term interest recall model) enhanced by the preference categories to model the user's long-term viewing sequence; step 4: using Transact to model the short-term user behavior sequence, and fusing the user's long-term and short-term interests to obtain the user embedding (the third feature vector); step 5: using the ItemSage model to obtain the item embedding (the fourth feature vector); step 6: using a dual-tower structure to connect the user embedding and the item embedding, and using the fusion interaction features to enhance the interactivity of the dual-tower structure; step 7: using the similarity calculation formula to calculate the TopN media assets most similar to the user for recommendation.
[0098] It should be noted that, in an embodiment of the present application, step 1: using a deep learning algorithm to improve the categories to which existing media assets belong, step 1 may include the following steps: step 101: manually performing supervised scoring on the categories to which existing media assets belong, and the total weighted score of each category of a media asset is 1 point. For example, the movie Horror Cruise contains three categories: horror, action, and adventure. According to the content of the film and related introductions, it can be scored as horror-0.6 points, action-0.2 points, and adventure-0.2 points; Step 102: Randomly extract 100 frames of images and media posters of media videos (sub-media resources), and use the R2D2 multimodal pre-trained model to obtain the image embedding (image vector) of the media; Step 103: Use the R2D2 multimodal pre-trained model to obtain the embedding (text vector) of the description, director, actor and other text information of the media; Step 104: Use the media image embedding (image vector) of step 102 and the text information embedding (text vector) of step 103 as input, and the manual score of the media category as output, use the DNN neural network (first neural network) to train the model, and convert it into a deep regression problem; Step 105: Use the model trained in step 104 to predict the scores of each category of all unlabeled media, as shown in Table 1 below.
[0099] Table 1
[0100]
[0101] It should be noted that, in the embodiments of the present application, the first neural network model may be a deep neural network (DNN), and the present application does not specifically limit the type of the first neural network.
[0102] Exemplarily, in an embodiment of the present application, assuming that one of the sub-media resources included in the first media resource is a horror cruise movie, the recommendation device can determine 100 frames of images and media posters of the sub-media resource, and then determine the image vector and text vector corresponding to the sub-media resource through a multimodal pre-training model (R2D2), and then the image vector and text vector corresponding to the sub-media resource can be trained into a deep neural network, so as to obtain the score of the category to which the sub-media resource (horror cruise) belongs, for example, horror 0.6, action 0.2, and adventure 0.2.
[0103] That is to say, in an embodiment of the present application, the recommendation device can input the image vectors and text vectors corresponding to the N sub-media resources into the trained first neural network model, so as to obtain the scores of the categories to which the N sub-media resources belong. That is, the present application proposes a supervised preference category calculation method based on a deep neural network, which makes the calculation of user preference categories more accurate, thereby improving the accuracy of recommendations.
[0104] It should be noted that, in the embodiment of the present application, step 2: according to the improved media asset category and all the historical viewing records of the user (including the media asset name, viewing channel, and viewing floor) (second media resource), calculate the user's long-term preferred category, recent preferred channel, and preferred floor, wherein step 2 may include the following steps: step 201: according to the improved media asset category obtained in step 1 (the score of the category corresponding to the sub-media resource) and all the viewing records of the user (first browsing times), calculate the user's preferred category (first sequence) prefer_category={C a1 ,C a2 ,……C ak}, where k represents that there are k categories preferred by the user, and the calculation formula is shown in the above formula (1); Step 202: According to the number of times the user has watched different channels (M channel resources) in the past 7 days (the second browsing number) and the number of times the user has watched different floors (N floor resources) (the third browsing number), calculate the user's short-term preferred channels (the third sequence) and the ranking of the short-term preferred floors (the fourth sequence), which are respectively recorded as prefer_channel={C h1 ,C h2 ,……C hn},prefer_floor={Cf l1 ,f l2 ,……f lm}, where n means that the user has n preferred channels, and m means that the user has m preferred floors.
[0105] That is to say, in an embodiment of the present application, when the recommendation device determines the second sequence based on the number of views corresponding to the second media resource, it can determine the second number of views corresponding to M channel resources and the third number of views corresponding to N floor resources; wherein the second number of views and the third number of views are the number of views corresponding to the second preset time period; then the third sequence can be determined based on the second number of views, and the fourth sequence can be determined based on the third number of views; wherein the third sequence is used to represent the channel sequence of the user's short-term preference, and the fourth sequence is used to represent the floor sequence of the user's short-term preference.
[0106] It should be noted that, in an embodiment of the present application, step 3: use the PinnerFormer model enhanced with preference categories to model the user's long-term viewing sequence, step 3 may include the following steps: step 301: improve the PinnerFormer model (improved long-term interest recall model), PinnerFormer is a model used to model long sequences, and the calculation method for modeling the user's long-term viewing behavior is shown in the following formula. However, when the user's viewing sequence on a large-screen TV is too long, it will lead to problems such as greater difficulty in model development engineering, longer training time, and difficulty in convergence. Truncating the sequence will lose the effect of long-term sequence modeling. Therefore, based on the truncated sequence length, this application uses the Transformer model to fuse the user's viewing behavior (first behavior resource) and the user's long-term preference category (first sequence) to enhance the user's long-term interest. The improved PinnerFormer model is as above. Figure 3 As shown; the calculation formula of the user embedding of the PinnerFormer model with enhanced preference categories is shown in the above formula (2).
[0107]
[0108] Among them, e u Indicates user embedding, Indicates the user's nth behavior.
[0109] That is to say, in the embodiments of the present application, since it is currently necessary to input all the user's viewing history vectors into PinnerFormer for training and learning, and when the viewing sequence of a large-screen TV is too long, it will lead to problems such as greater difficulty in model development engineering, longer training time, and difficulty in convergence. In this application, based on the truncated sequence length, the Transformer model can be used to fuse the user's viewing behavior (short-term click behavior) and the user's long-term preference categories (first sequence), thereby enhancing the user's long-term interest, reducing the difficulty of model development, and further improving the subsequent recommendation efficiency.
[0110] It should be noted that in the embodiment of the present application, step 4: using Transact modeling (short-term preference sequence model) to model short-term user behavior sequences, integrating user long-term and short-term interests to obtain user embedding (third feature vector), as above Figure 4As shown, the user's long-term viewing sequence (first sequence) is input into the PinnerFormer* model (improved long-term interest recall model) with enhanced user preference categories, and the user's short-term viewing sequence (second sequence) in the past 7 days is input into the TransAct model (short-term preference sequence model). After passing through the DCN V2 (deformable convolutional network model) and the MLP network structure (second neural network model), the final user embedding (third feature vector) is obtained.
[0111] It should be noted that, in the embodiments of the present application, the second neural network model may be a multi-layer perceptron (MLP), and the present application does not specifically limit the type of the second neural network model.
[0112] It should be noted that, in the embodiment of the present application, step 5: when the recommendation device uses the ItemSage model to obtain the media embedding (fourth feature vector), the ItemSage model can be used to obtain the item embedding vector (fourth feature vector) of the fused media image and text information according to the embedding vector (first feature vector) of the media image obtained in step 102 and step 103, and the embedding vector (second feature vector) of the media text information; step 6: use the dual-tower structure to connect the user embedding and the item embedding, and use the fusion interaction feature to enhance the interactivity of the dual-tower structure, and use the similarity calculation formula to calculate the TopN media assets most similar to the user for recommendation, that is, the user embedding (third feature vector) can be obtained according to steps 1 to 4, and the item embedding (fourth feature vector) can be obtained according to step 5, and the user prefer_channel (third sequence) and user prefer_floor (fourth sequence) obtained in step 202 are used as joint features and fused into the dual-tower model structure. The calculation formula of the user embedding (fifth feature vector) after fusion is shown in the above formula (3), item The calculation formula of embedding (the sixth feature vector) is shown in the above formula (4); wherein the initialization vectors of prefer_channel (the third sequence) and prefer_floor (the fourth sequence) are concat spliced; Step 7: Use the similarity calculation formula to calculate the TopN media assets most similar to the user for recommendation.
[0113] That is to say, in the embodiments of the present application, Figure 6As shown, the recommendation device can obtain user embedding (third feature vector) based on the improved long-term interest recall model (pinnerFormer*) and the short-term preference sequence model (TransAct), and can obtain item embedding (fourth feature vector) based on the ItemSage model, and then can obtain the fifth feature vector based on the third sequence, the fourth sequence and the third feature vector; can also obtain the sixth feature vector based on the third sequence, the fourth sequence and the fourth feature vector; and then can determine the similarity between the fifth feature vector and the sixth feature vector; and determine the recommended resources for the user to be recommended based on the similarity.
[0114] It should be noted that in the embodiments of the present application, the present application proposes a recommendation dual-tower model structure with fusion interaction enhancement, which can make user embedding and item embedding better fit the characteristics of users and media themselves, thereby making the recommendation results more accurate.
[0115] In summary, the recommendation device can input the image vectors and text vectors corresponding to the N sub-media resources into the trained first neural network model, so as to obtain the scores of the categories to which the N sub-media resources belong. That is, the present application proposes a supervised preference category calculation method based on a deep neural network, which makes the calculation of user preference categories more accurate, thereby improving the accuracy of recommendations. It can also use the Transformer model to fuse the user's viewing behavior (short-term click behavior) and the user's long-term preference category (first sequence) on the basis of the truncated sequence length, thereby enhancing the user's long-term interest and reducing the difficulty of model development, thereby improving the subsequent recommendation efficiency. In addition, the present application can make the user embedding and item embedding better fit the characteristics of the user and the media itself by integrating the interactively enhanced recommendation dual-tower model structure, thereby making the recommendation results more accurate.
[0116] The embodiment of the present application provides a recommendation method, which includes: the recommendation device determines the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector; determines the first sequence based on the score, and determines the second sequence based on the number of views corresponding to the second media resource; determines the third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model and the short-term preference sequence model; determines the recommended resources of the user to be recommended through the third feature vector, the fourth feature vector and the interactively enhanced twin tower model. That is to say, the recommendation device can determine the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector, so that the user's preference for the category to which the first media resource belongs can be determined more finely, thereby improving the accuracy of the recommendation, and the present application can determine the third feature vector based on the improved long-term interest recall model, reducing the difficulty of modeling engineering of the long-term interest sequence, thereby improving the recommendation efficiency, and then the recommended resources of the user to be recommended can be determined through the third feature vector, the fourth feature vector and the interactively enhanced twin tower model, that is, the present application can determine the final recommended resources of the user to be recommended based on the interactively enhanced twin tower model, further improving the accuracy of the recommendation.
[0117] Embodiment 3
[0118] Based on the above embodiments, the present application provides a recommendation device. Figure 8 The structure of the recommended device is shown in Figure 1. Figure 1 ,like Figure 8 As shown, the recommendation device 10 includes: a determination unit 11;
[0119] The determining unit 11 is used to determine the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector;
[0120] The determining unit 11 is further configured to determine a first sequence based on the score, and determine a second sequence based on the number of views corresponding to the second media resource; wherein the first sequence is used to represent resource information preferred by the user in the long term, and the second sequence is used to represent resource information preferred by the user in the short term;
[0121] The determining unit 11 is further used to determine a third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model and the short-term preference sequence model;
[0122] The determining unit 11 is further configured to determine the recommended resources for the user to be recommended by using the third feature vector, the fourth feature vector and the interactively enhanced double-tower model.
[0123] In the embodiments of the present application, further, Fig. 9 The structure of the recommended device is shown in Figure 1. Figure 2 ,like Fig. 9As shown, the recommendation device 10 proposed in the embodiment of the present application may also include a processor 12, a memory 13 storing executable instructions of the processor 12, and further, the recommendation device 10 may also include a communication interface 14, and a bus 15 for connecting the processor 12, the memory 13 and the communication interface 14.
[0124] In the embodiment of the present application, the processor 12 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the function of the processor may also be other, and the embodiment of the present application does not specifically limit it. The recommendation device 10 may also include a memory 13, which may be connected to the processor 12, wherein the memory 13 is used to store executable program code, the program code includes computer operation instructions, and the memory 13 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.
[0125] In the embodiment of the present application, the bus 15 is used to connect the communication interface 14, the processor 12 and the memory 13, and the mutual communication between these devices.
[0126] In the embodiment of the present application, the memory 13 is used to store instructions and data.
[0127] Furthermore, in an embodiment of the present application, the above-mentioned processor 12 is used to determine the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector; determine the first sequence based on the score, and determine the second sequence based on the number of views corresponding to the second media resource; determine the third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model and the short-term preference sequence model; determine the recommended resources for the user to be recommended through the third feature vector, the fourth feature vector and the interactively enhanced dual-tower model.
[0128] In practical applications, the memory 13 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 12.
[0129] The embodiment of the present application provides a recommendation device, which determines the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector; determines the first sequence based on the score, and determines the second sequence based on the number of views corresponding to the second media resource; determines the third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model and the short-term preference sequence model; and determines the recommended resources of the user to be recommended through the third feature vector, the fourth feature vector and the interactively enhanced twin tower model. In other words, the recommendation device can determine the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector, so that the user's preference for the category to which the first media resource belongs can be determined more finely, thereby improving the accuracy of the recommendation, and the present application can determine the third feature vector based on the improved long-term interest recall model, reducing the engineering difficulty of modeling the long-term interest sequence, thereby improving the recommendation efficiency, and then the recommended resources of the user to be recommended can be determined through the third feature vector, the fourth feature vector and the interactively enhanced twin tower model, that is, the present application can determine the final recommended resources of the user to be recommended based on the interactively enhanced twin tower model, further improving the accuracy of the recommendation.
[0130] An embodiment of the present application provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the recommendation method as described above is implemented.
[0131] Specifically, the program instructions corresponding to a recommendation method in this embodiment may be stored on a storage medium such as a CD, a hard disk, or a USB flash drive. When the program instructions corresponding to a recommendation method in the storage medium are read or executed by an electronic device, the following steps are included:
[0132] Determine a score of the category to which the first media resource belongs based on the first feature vector and the second feature vector;
[0133] Determine a first sequence based on the score, and determine a second sequence based on the number of views corresponding to the second media resource;
[0134] determining a third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model, and the short-term preference sequence model;
[0135] The recommended resources for the user to be recommended are determined by using the third eigenvector, the fourth eigenvector and the interactively enhanced double-tower model.
[0136] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0137] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0138] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0140] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A recommendation method, characterized in that: The method comprises: Determine a score of the category to which the first media resource belongs based on the first feature vector and the second feature vector; Determine a first sequence based on the score, and determine a second sequence based on the number of views corresponding to the second media resource; determining a third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model, and the short-term preference sequence model; The recommended resources for the user to be recommended are determined by using the third eigenvector, the fourth eigenvector and the interactively enhanced double-tower model.
2. The method according to claim 1, characterized in that The first sequence includes at least a sequence of resource categories preferred by the user in the long term, and the second sequence includes at least a sequence of channels preferred by the user in the short term and a sequence of floors preferred by the user in the short term.
3. The method according to claim 1, characterized in that The first media resource includes N sub-media resources, where N is a positive integer, the first feature vector is an image vector corresponding to the N sub-media resources, and the second feature vector is a text vector corresponding to the N sub-media resources. The method further includes: Determining the image vector and the text vector corresponding to the N sub-media resources based on a multimodal pre-training model; The image vector and the text vector are input into a trained first neural network model to obtain scores of the categories to which the N sub-media resources belong.
4. The method according to claim 3, characterized in that The method further comprises: Determine a first number of views corresponding to the N sub-media resources; wherein the first number of views is a number of views corresponding to a first preset time period; The first sequence is determined based on the first browsing count and the scores of the categories to which the N sub-media resources belong.
5. The method according to claim 1, characterized in that The second media resource includes at least M channel resources and N floor resources, where M and N are both positive integers, and the determining of the second sequence based on the number of views corresponding to the second media resource includes: Determine a second browsing number corresponding to the M channel resources and a third browsing number corresponding to the N floor resources; wherein the second browsing number and the third browsing number are browsing numbers corresponding to a second preset time period; Determine a third sequence based on the second browsing number, and determine a fourth sequence based on the third browsing number; wherein the third sequence is used to represent a channel sequence preferred by the user in the short term, and the fourth sequence is used to represent a floor sequence preferred by the user in the short term; The second sequence is determined based on the third sequence and the fourth sequence.
6. The method according to claim 1, characterized in that The method further comprises: The long-term interest recall model is optimized based on the first sequence and the first behavior resource to obtain the improved long-term interest recall model.
7. The method according to claim 6, characterized in that The determining of the third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model and the short-term preference sequence model includes: Inputting the first sequence into the improved long-term interest recall model to obtain a first prediction vector; Inputting the second sequence into the short-term preference sequence model to obtain a second prediction vector; The first prediction vector and the second prediction vector are merged to obtain a merged vector, and the merged vector is input into the deformable convolutional network model and the second neural network model to determine the third feature vector.
8. The method according to claim 1, characterized in that The method further comprises: The first eigenvector and the second eigenvector are fused to obtain the fourth eigenvector.
9. The method according to claim 5, characterized in that Before determining the recommended resources for the user to be recommended by using the third feature vector, the fourth feature vector and the interactively enhanced double-tower model, the method further includes: The third sequence and the fourth sequence are fused into the initial double-tower model as joint features to obtain the interactively enhanced double-tower model.
10. The method according to claim 9, characterized in that The determining the recommended resources for the user to be recommended by using the third eigenvector, the fourth eigenvector and the interactively enhanced double-tower model includes: Obtaining a fifth eigenvector based on the interactively enhanced twin-tower model, the third sequence, the fourth sequence, and the third eigenvector; Obtaining a sixth eigenvector based on the interactively enhanced twin-tower model, the third sequence, the fourth sequence, and the fourth eigenvector; determining a similarity between the fifth eigenvector and the sixth eigenvector; Determine the recommended resources for the to-be-recommended user based on the similarity.
11. A recommendation device, characterized in that: The recommendation device comprises: a determination unit; The determining unit is used to determine the score of the category to which the first media resource belongs based on the first feature vector and the second feature vector; The determination unit is further configured to determine a first sequence based on the score, and determine a second sequence based on the number of views corresponding to the second media resource; wherein the first sequence is used to represent resource information preferred by the user in the long term, and the second sequence is used to represent resource information preferred by the user in the short term; The determining unit is further used to determine a third feature vector based on the first sequence, the second sequence, the improved long-term interest recall model, and the short-term preference sequence model; The determining unit is further used to determine the recommended resources for the user to be recommended through the third feature vector, the fourth feature vector and the interactively enhanced double-tower model.
12. A recommendation device, characterized in that: The recommendation device comprises: a processor and a memory; wherein, The memory is used to store a computer program that can be run on the processor; The processor is configured to execute the method according to any one of claims 1 to 10 when running the computer program.
13. A computer-readable storage medium, characterized in that: The storage medium stores computer program codes, and when the computer program codes are executed by a computer, the method according to any one of claims 1 to 10 is executed.
