Recommended content determination method, device and electronic device

By obtaining the distance between the source target content of the scene to be recommended and the retrieval cluster in the content retrieval library, the content to be recommended that meets the recommendation conditions is determined, which solves the problem of insufficient accuracy and diversity of recommended content in the existing technology, and achieves Recommended content recommendations based on relevance and differentiation.

CN114840762BActive Publication Date: 2024-08-23MASHANG CONSUMER FINANCE CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202210546185.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2024-08-23
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

Existing content recommendation methods cannot meet the needs for correlation and diversity between recommended content in certain scenarios, resulting in problems with the accuracy of recommended content.

Method used

By obtaining the distance between the source target content of the scene to be recommended and the retrieval cluster in the content retrieval library, the content to be recommended that meets the recommendation conditions is determined based on these distances, ensuring that the recommended content is relevant or different, and improving the quality of the recommended content. accuracy.

Benefits of technology

It realizes the need for correlation between recommended content in certain scenarios, improves the accuracy and diversity of recommended content, and meets the actual demand for correlation and differentiation of recommended content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114840762B
    Figure CN114840762B
Patent Text Reader

Abstract

The present application discloses a method and device for determining recommended content, and the scheme includes: obtaining target information, the target information includes the source target content of the to-be-recommended scene, the number of to-be-recommended contents n, and the recommendation condition; determining the distance between the source target content and W search clusters in the content search library to obtain multiple distances; wherein each search cluster includes one or more search contents, the degree of association between the search contents included in the same search cluster is greater than or equal to a first threshold, the degree of association between the search contents included in different search clusters is less than a second threshold, and the second threshold is less than the first threshold; based on the multiple distances, determining N to-be-recommended contents that meet the recommendation condition. The embodiment of the present application realizes the actual demand for the association between the recommended contents in the to-be-recommended scene, and improves the accuracy of the recommended contents.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device and electronic device for determining recommended content. Background Art

[0002] In the information age, information production and consumption have promoted the rapid development of information industry and information technology. At present, the Internet has become an important source of information. However, the huge scale of the Internet and the rapid growth of information resources have brought about the problem of information overload, that is, although the current information resources are abundant, it is difficult for people to effectively obtain useful information.

[0003] Currently, content recommendations are often based on user behavior habits and user profiles, and recommended content that matches the user's behavior habits and user profiles is selected for the user. However, this recommendation method is relatively simple and cannot meet the needs of some scenarios. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method and device for determining recommended content, which are used to meet the scenario where there is a requirement for correlation between recommended content.

[0005] In a first aspect, a method for determining recommended content is provided, comprising:

[0006] Acquire target information, where the target information includes source target content of the to-be-recommended scene, the number n of the to-be-recommended content, and a recommendation condition, where n is an integer greater than 1;

[0007] Determine the distance between the source target content and W search clusters in the content search library to obtain multiple distances, where W is an integer greater than 1; wherein each search cluster includes one or more search contents, the degree of association between the search contents included in the same search cluster is greater than or equal to a first threshold, the degree of association between the search contents included in different search clusters is less than a second threshold, and the second threshold is less than the first threshold;

[0008] Determine N contents to be recommended that meet the recommendation condition based on the multiple distances, where N is less than or equal to n;

[0009] Among them, the degree of association between M of the N contents to be recommended is greater than or equal to the first threshold; or, the degree of association between K of the N contents to be recommended is less than the second threshold, and both M and K are integers greater than N / 2, and both M and K are less than or equal to N.

[0010] In a second aspect, a recommended content determination device is provided, comprising:

[0011] An acquisition module, used to acquire target information, wherein the target information includes source target content of a to-be-recommended scene, the number n of to-be-recommended content, and a recommendation condition, wherein n is an integer greater than 1;

[0012] a distance determination module, used to determine the distance between the source target content and W search clusters in the content search library, and obtain multiple distances, wherein W is an integer greater than 1; wherein each search cluster includes one or more search contents, the degree of association between the search contents included in the same search cluster is greater than or equal to a first threshold, the degree of association between the search contents included in different search clusters is less than a second threshold, and the second threshold is less than the first threshold;

[0013] a content determination module, configured to determine N recommended contents satisfying the recommendation condition based on the multiple distances, wherein N is less than or equal to n;

[0014] Among them, the degree of association between M of the N contents to be recommended is greater than or equal to the first threshold; or, the degree of association between K of the N contents to be recommended is less than the second threshold, and both M and K are integers greater than N / 2, and both M and K are less than or equal to N.

[0015] In a third aspect, an electronic device is provided, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the method for determining recommended content in the first aspect are implemented.

[0016] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for determining recommended content according to the first aspect are implemented.

[0017] In an embodiment of the present application, the search contents in the content search library are grouped in advance, the search contents included in the same cluster are correlated, and the search contents included in different clusters are not different. When determining the recommended content, the distance between the source target content of the to-be-recommended scene and each cluster in the content search library is first determined, and then the recommended content that meets the recommendation condition is determined based on the determined distance. Since most of the determined recommended contents are mainly correlated with each other, or most of the determined recommended contents are mainly different from each other, the actual demand for the correlation between the recommended contents in the to-be-recommended scene is met. In addition, the recommended content is determined based on the distance between the source target content of the to-be-recommended scene and each cluster, thereby improving the accuracy of the recommended content. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 It is a flowchart of a method for determining recommended content provided by an embodiment of the present application.

[0020] Figure 2 This is an example diagram of a first practical scenario of the application of the recommended content determination method provided by an embodiment of the present application.

[0021] Figure 3 This is an example diagram of a second actual scenario of the application of the recommended content determination method provided by an embodiment of the present application.

[0022] Figure 4 It is a structural diagram of a recommended content determination device provided by an embodiment of the present application.

[0023] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. The numbering of the drawings in this application is only used to distinguish the various steps in the scheme, and is not used to limit the execution order of the various steps. The specific execution order is subject to the description in the specification.

[0025] As described in the background technology, existing content recommendation often selects recommended content that matches the user's behavior and operation habits and the user's portrait based on information such as the user's behavior and operation habits. More specifically, content recommendation often focuses on the source target content that matches the user's behavior and operation habits and the user's portrait, and retrieves the search content with high content similarity with the source target content in the content search library as the content to be recommended. This leads to the fact that when determining the content to be recommended with strong relevance, some search content that has high content similarity with the source target content but has large differences between each other may be recommended to the user as the content to be recommended, which leads to the problem of large differences between the content recommended to the user. In the scenario where diversity recommendation is required, some multiple search contents of the same category may be recommended to the user as the content to be recommended. Obviously, in the scenario to be recommended where there are additional requirements for the similarity between the recommended contents, the accuracy of the content to be recommended determined for the user by the existing content recommendation method has certain problems.

[0026] In order to solve the above problems existing in the prior art, the present application embodiment provides a method for determining recommended content. The method is applied to a device for determining recommended content. Figure 1 As shown, the method for determining recommended content provided in the embodiment of the present application includes:

[0027] S110, obtaining target information, where the target information includes source target content of a to-be-recommended scene, the number n of to-be-recommended content, and a recommendation condition, where n is an integer greater than 1.

[0028] As an example, the scenario to be recommended can be a scenario in which intelligent customer service is used to conduct intelligent question and answering of questions raised by users in the customer service business. In this scenario to be recommended, the questions raised by users can be obtained as source target content, and the number of contents to be recommended n can be pre-set based on the scenario to be recommended. For example, after obtaining the questions raised by users, 5 questions related to the questions raised by users and their answers can be set to be replied as n contents to be recommended to users, so that users can choose the questions that best meet their needs, thereby increasing the probability that intelligent customer service can correctly answer the questions raised by users. For example, when a user enters the question "What should I do if I want to increase my credit limit?" in the input box of the intelligent customer service of a financial APP, the content of the question can be obtained as the source target content.

[0029] S120, determining the distances between the source target content and W search clusters in the content search library, and obtaining a plurality of distances, where W is an integer greater than 1.

[0030] Each search cluster includes one or more search contents, the correlation degree between the search contents included in the same search cluster is greater than or equal to a first threshold, the correlation degree between the search contents included in different search clusters is less than a second threshold, and the second threshold is less than the first threshold.

[0031] As an example, the distance between the source target content and the W search clusters in the content search library can be specifically the content similarity between the source target content and the W search clusters in the content search library. More specifically, the content similarity between the source target content and the W search clusters in the content search library can be obtained by distance calculation methods such as Euclidean distance, Hamming distance, edit distance, Jaccard distance, cosine distance, Manhattan distance, etc.

[0032] Optionally, in order to improve the accuracy and efficiency of determining the distance between the source target content and the W search clusters in the content search library, the embodiment of the present application can determine the distance between the source target content and the W search clusters in the content search library through a pre-trained search model. Specifically, determining the distance between the source target content and the W search clusters in the content search library includes:

[0033] Determine the distance between the source target content and W retrieval clusters in the content retrieval library through the retrieval model;

[0034] The retrieval model is trained based on multiple source target contents and retrieval contents similar to each source target content, and the distance between each source target content and its corresponding retrieval contents similar to each source target content.

[0035] As an example, the retrieval model can be used to detect the similarity between the source target content and the retrieval content, or it can be said that the source target content and the retrieval content are matched to determine the content similarity between the source target content and the retrieval content. The training process of the retrieval model may include: first, according to the scenario to be recommended, two or more content data such as question dialogues with similar content are selected as a group of positive samples, and two or more content data such as question dialogues with dissimilar content are selected as a group of negative samples; then the positive samples and negative samples are sequentially put into the neural network model, and the content similarity scores of the input positive samples or negative samples are obtained by feature extraction and matching; finally, the neural network model is optimized according to the pre-set content similarity label, so as to obtain a content similarity calculation model suitable for the scenario to be recommended, that is, the retrieval model.

[0036] Optionally, in order to improve the efficiency of determining similar content to the source target content, the embodiment of the present application may cluster multiple search contents in the content search library in advance to obtain multiple search clusters, and the search contents included in each search cluster meet the set content similarity, that is, the content similarity in certain set features is within the preset content similarity range, that is, the degree of association between the search contents included in each search cluster is greater than or equal to the first threshold. Specifically, the W search clusters are obtained by clustering the search contents in the content search library with W search target contents as the center, wherein one search cluster includes at least one search content. The W search clusters can be obtained in advance by clustering the search contents in the content search library, and each search cluster is obtained by clustering with a selected search target content as the center, and there is a certain content difference between the search target contents, that is, the degree of association between the search target contents is less than the second threshold.

[0037] Optionally, the distance between the search content with the greatest content similarity between each search cluster and the source target content among the multiple search clusters and the source target content can be used as the distance between each search cluster and the source target content. Specifically, the specific implementation method for determining the distance between the source target content and the search cluster is:

[0038] determining a distance between the source target content and each retrieval content in the retrieval cluster;

[0039] The determined minimum distance is determined as the distance between the source target content and the retrieval cluster.

[0040] After the retrieval model is trained, the distance between the source target content and multiple retrieval clusters in the content retrieval library, that is, the content similarity between the source target content and the multiple retrieval clusters in the content retrieval library, can be determined through the retrieval model, that is, the distance between the source target content and each retrieval content in each of the multiple retrieval clusters is output respectively, and the target retrieval content with the smallest distance between the source target content and the retrieval content in each of the multiple retrieval clusters is determined, and the distance between the source target content and the target retrieval content in each of the multiple retrieval clusters is used as the distance between the source target content and the multiple retrieval clusters.

[0041] S130, determining N contents to be recommended that meet the recommendation condition based on the multiple distances, where N is less than or equal to n.

[0042] The N contents to be recommended are contents in the content retrieval library.

[0043] Among them, the degree of association between M of the N contents to be recommended is greater than or equal to the first threshold; or, the degree of association between K of the N contents to be recommended is less than the second threshold, and M and K are both integers greater than N / 2, and M and K are both less than or equal to N.

[0044] The degree of association between the contents to be recommended can be represented by the content similarity between the contents to be recommended. The greater the content similarity between the contents to be recommended, the greater the degree of association between the contents to be recommended, and the smaller the content similarity between the contents to be recommended, the smaller the degree of association between the contents to be recommended.

[0045] In an embodiment of the present application, the recommendation scenarios may include two types: one is to mainly recommend to users contents that are related to each other, that is, the determined contents to be recommended meet the recommendation condition that the degree of correlation between most (more than half) of the contents to be recommended is greater than or equal to a first threshold; the other is to mainly recommend to users contents that are different from each other, that is, the determined contents to be recommended meet the recommendation condition that the degree of correlation between most (more than half) of the contents to be recommended is less than a second threshold.

[0046] When the scenario to be recommended is mainly to recommend to users contents that are related to each other, the recommendation condition can be summarized as the degree of association between the recommended contents is greater than or equal to the first threshold. In this case, the first search cluster that is closest to the source target content can be determined from the multiple search clusters in the content search library, and it can be determined whether the number of searched contents in the first search cluster is greater than or equal to the number n of contents to be recommended. If the number of searched contents in the first search cluster is greater than the number n of contents to be recommended, the first n searched contents in the first search cluster that are closest to the source target content can be determined as N contents to be recommended, and N=n at this time. It should be understood that if the number of searched contents in the first search cluster is equal to the number n of contents to be recommended, all searched contents in the first search cluster can be determined as N contents to be recommended, and N=n at this time.

[0047] Specifically, if the recommendation condition is that the degree of association between the recommended contents is greater than or equal to a first threshold; determining N contents to be recommended that meet the recommendation condition based on multiple distances includes:

[0048] If the number of search contents included in the first search cluster is greater than N, the contents in the first search cluster are selected based on the first selection strategy to obtain N contents to be recommended;

[0049] The first search cluster is a search cluster corresponding to the minimum distance among the multiple distances;

[0050] The first selection strategy is: select the first N search contents in the first search cluster that are closest to the source target contents.

[0051] It should be understood that if the number of all search contents included in the first search cluster is equal to N, then all search contents included in the first search cluster can be determined as N contents to be recommended.

[0052] When the scenario to be recommended is mainly to recommend mutually related contents to users, if the number of search contents in the first search cluster is less than the number n of the contents to be recommended, then all the search contents in the first search cluster can be added to the set of N contents to be recommended, and then the second search cluster closest to the source target content is determined from the search clusters other than the first search cluster in the multiple search clusters in the content search library. If the sum M of the number of search contents included in the first search cluster and the number of search contents included in the second search cluster is greater than or equal to n, then when M>n, the first L search contents in the second search cluster closest to the source target content can be added to the set of N contents to be recommended, and the sum of L and the number of search contents included in the first search cluster is equal to n, and n=N at this time. It should be understood that when M=n, all the search contents in the second search cluster are added to the set of N contents to be recommended, and n=N at this time.

[0053] Specifically, if the recommendation condition is that the degree of association between the recommended contents is greater than or equal to a first threshold; determining N contents to be recommended that meet the recommendation condition based on multiple distances may further include:

[0054] If the number of search contents included in the first search cluster is less than N, and the total number of search contents included in the first search cluster and the second search cluster is greater than N, then the contents in the first search cluster and the second search cluster are selected based on the second selection strategy to obtain N contents to be recommended;

[0055] The second search cluster is a search cluster corresponding to the minimum distance of the plurality of distances except the minimum distance;

[0056] The second selection strategy is: select all search contents in the first search cluster, and select the first L search contents in the second search cluster that are closest to the source target content, where the sum of L and the number of search contents included in the first search cluster is equal to N.

[0057] It should be understood that if the number of search contents included in the first search cluster is less than N, and the total number of search contents included in the first search cluster and the second search cluster is equal to N, then all search contents included in the first search cluster and the second search cluster can be determined as N content to be recommended.

[0058] If the sum of the number of search contents included in the first search cluster and the number of search contents included in the second search cluster is still less than N, a third search cluster closest to the source target content can be determined from the search clusters other than the first search cluster and the second search cluster among the multiple search clusters, and the first M search contents closest to the source target content are selected from the third search cluster as the contents to be recommended. This process is repeated until the number of contents to be recommended reaches N.

[0059] When the recommendation condition is that the degree of association between the recommended contents is greater than or equal to a first threshold, and the total number of search contents included in the first search cluster and the total number of search contents included in the second search cluster is less than the N, in order to avoid the situation where some of the determined contents to be recommended have a small degree of association, that is, the differences between them are large, resulting in the determined contents to be recommended not meeting the recommendation condition of the scenario to be recommended, the embodiment of the present application may only determine all the search contents included in the first search cluster and the second search cluster as N contents to be recommended, and no longer select search contents from the remaining search clusters as contents to be recommended. At this time, N<n. It should be understood that in order to meet the recommendation condition in the scenario to be recommended, N at this time should be a positive integer greater than n / 2.

[0060] Specifically, if the recommendation condition is that the degree of association between the recommended contents is greater than or equal to a first threshold; determining N contents to be recommended that meet the recommendation condition based on multiple distances may further include:

[0061] If the number of search contents included in the first search cluster is less than N, and the total number of search contents included in the first search cluster and the second search cluster is less than N, all search contents included in the first search cluster and the second search cluster are determined as N contents to be recommended.

[0062] Figure 2 1 is an example diagram of a first practical scenario of the application of the method for determining recommended content provided by an embodiment of the present application. The scenario to be recommended is mainly to recommend content that is related to each other to the user, and the number n of content to be recommended is set to 3. Figure 2 In the example, the source target content S is the question asked by the user to the intelligent customer service: "I want to increase my credit limit, what should I do?" The content retrieval library contains retrieval content A "Will Cloud QuickPass increase my credit limit?", retrieval content B "How much is the credit limit after activating Cloud QuickPass?", retrieval content C "Why didn't Cloud QuickPass increase my credit limit?", retrieval content D "How can I check Cloud QuickPass credit limit increase?" and retrieval content E "How can I increase my credit limit on Anyihua?". The content similarity between the retrieval contents A to E in the content retrieval library can be determined in advance through the retrieval model, and the retrieval contents A to E in the content retrieval library can be clustered according to the content similarity between the retrieval contents A to E. Assume that the clustering result is as follows: Figure 2 As shown. Among them, the search contents A to D are a search cluster, and the search content E is a separate search cluster. Then, determining N to-be-recommended contents that meet the recommendation condition based on the multiple distances may include:

[0063] From multiple search clusters, determine the first search cluster closest to the source target content S, that is, Figure 2 A first search cluster including search contents A to D;

[0064] Since the number of search contents 4 included in the first search cluster is greater than the set number of contents to be recommended 3, the first three search contents closest to the source target content S can be determined from the first search cluster containing search contents A~D, assuming they are search contents D, C and A.

[0065] By adopting the method of the embodiment of the present application, the first three search contents closest to the source target content S are selected in cluster units, that is, search contents D, C and A are preferentially selected, thereby avoiding the first three search contents (i.e. Figure 2 Among the search contents D, C and E), there is a situation where the correlation between them is low, that is, the content difference is large. For example, the content difference between the search content E and the search contents D and C is large.

[0066] Optionally, if the scenario to be recommended is mainly to recommend different contents to users, in order to ensure the diversity of the determined recommended contents, clusters can be used as units, and only one retrieved content can be selected in each cluster as the content to be recommended to the user. Specifically, the recommendation condition is that the correlation between the recommended contents is less than a second threshold; and N contents to be recommended that meet the recommendation condition are determined based on multiple distances, including:

[0067] Selecting the contents in H third search clusters based on the third selection strategy to obtain N contents to be recommended, where H is greater than 1, H is less than W, and H is less than or equal to n;

[0068] The H third search clusters are the H search clusters with the smallest distances among the multiple distances, or the distance between the third search cluster and the source target content is less than a third threshold;

[0069] The N contents to be recommended include at least one retrieval content in each third retrieval cluster.

[0070] When the scenario to be recommended is mainly to recommend different contents to users, the number of W search clusters in the content search library has the following two situations: in the first situation, the number of search clusters W included in the content search library is greater than or equal to n; in the second situation, the number of search clusters W included in the content search library is less than n. Under the premise of the first situation, the third selection strategy can be: select one search content in each third search cluster, and the distance between the selected search content and the source target content is the smallest. Under the premise of the second situation, the third selection strategy can be: select nH-1 search contents in the fourth search cluster, and select one search content in other third search clusters except the fourth search cluster, and the fourth search cluster is the third search cluster with the smallest distance from the source target content.

[0071] Specifically, the third selection strategy is: select a search content in each of the third search clusters, and the distance between the selected search content and the source target content is the smallest;

[0072] Alternatively, the third selection strategy is: if H is less than n, then select nH-1 search contents in the fourth search cluster, and select one search content in other third search clusters except the fourth search cluster, and the fourth search cluster is the third search cluster with the smallest distance from the source target content.

[0073] Figure 3 : is an example diagram of a second actual scenario of the application of the recommended content determination method provided by an embodiment of the present application. The scenario to be recommended is assumed to mainly recommend different contents to users, and the number n of contents to be recommended is set to 3. Figure 3 In the example, the source target content S is the question asked by the user to the intelligent customer service: "I want to increase my credit limit, what should I do?" The content retrieval library contains the retrieval content F "Will Cloud QuickPass increase my credit limit?", the retrieval content G "How much is the credit limit after activating Cloud QuickPass?", the retrieval content H "Why didn't Cloud QuickPass increase my credit limit?", the retrieval content I "How to check Cloud QuickPass credit limit increase?" and the retrieval content J "How to increase Anyihua credit limit?". The content similarity between the retrieval contents F~J in the content retrieval library can be determined in advance through the retrieval model, and the retrieval contents F~J in the content retrieval library can be clustered according to the content similarity between the retrieval contents F~J in the content retrieval library. Assume that the clustering result is as follows: Figure 3 As shown. Among them, the search contents F, H and G are a search cluster, the search content I is a separate search cluster, and the search content J is a separate search cluster. Then, the N recommended contents that meet the recommendation conditions are determined based on multiple distances, which may include:

[0074] From multiple retrieval clusters, determine the top three retrieval clusters closest to the source target content S, that is, Figure 3 A search cluster including search contents F, H and G, a search cluster including search content I, and a search cluster including search content J;

[0075] Then, the search content closest to the source target content S is determined from the search clusters containing search content F, H and G, the search cluster containing search content I and the search cluster containing search content J, that is, a search content closest to the source target content S is determined in each search cluster, that is, Figure 3 The search contents H, I and J are shown.

[0076] By adopting the method of the embodiment of the present application, the search contents in the first three search clusters closest to the source target content S are selected in cluster units, that is, the search contents H, I and J are preferentially selected, thereby avoiding the first three search contents (i.e. Figure 3 The search contents F, H and G in the above examples are highly correlated with each other but have relatively small differences, thereby ensuring the diversity of the contents to be recommended determined for the user in the recommendation scenario.

[0077] In an embodiment of the present application, the search contents in the content search library are grouped in advance, the search contents included in the same cluster are correlated, and the search contents included in different clusters are not different. When determining the recommended content, the distance between the source target content of the to-be-recommended scene and each cluster in the content search library is first determined, and then the recommended content that meets the recommendation condition is determined based on the determined distance. Since most of the determined recommended contents are mainly correlated with each other, or most of the determined recommended contents are mainly different from each other, the actual demand for correlation between the recommended contents in certain scenarios is met. In addition, the recommended content is determined based on the distance between the source target content of the to-be-recommended scene and each cluster, thereby improving the accuracy of the recommended content.

[0078] In order to solve the problems existing in the prior art, such as Figure 4 As shown, the embodiment of the present application further provides a recommended content determination device 400, including:

[0079] The acquisition module 401 is used to acquire target information, wherein the target information includes source target content of the to-be-recommended scene, the number n of the to-be-recommended content, and a recommendation condition, wherein n is an integer greater than 1;

[0080] The distance determination module 402 is used to determine the distance between the source target content and W search clusters in the content search library to obtain multiple distances, where W is an integer greater than 1; each search cluster includes one or more search contents, the degree of association between the search contents included in the same search cluster is greater than or equal to a first threshold, and the degree of association between the search contents included in different search clusters is less than a second threshold, and the second threshold is less than the first threshold;

[0081] A content determination module 403, configured to determine N recommended contents satisfying the recommendation condition based on the multiple distances, wherein N is less than or equal to n;

[0082] Among them, the degree of association between M of the N contents to be recommended is greater than or equal to the first threshold; or, the degree of association between K of the N contents to be recommended is less than the second threshold, and both M and K are integers greater than N / 2, and both M and K are less than or equal to N.

[0083] By means of the recommended content determination device provided in the embodiment of the present application, the search contents in the content search library are grouped in advance, the search contents included in the same cluster are correlated with each other, and the search contents included in different clusters are not different from each other. When determining the recommended content, the distance between the source target content of the to-be-recommended scene and each cluster in the content search library is first determined, and then the recommended content satisfying the recommendation condition is determined based on the determined distance. Since most of the determined recommended contents are mainly correlated with each other, or most of the determined recommended contents are mainly different from each other, the actual demand for the correlation between the recommended contents in certain scenarios is met. In addition, the recommended content is determined based on the distance between the source target content of the to-be-recommended scene and each cluster, thereby improving the accuracy of the recommended content.

[0084] Optionally, in an implementation manner, the recommendation condition is that the degree of association between the recommended contents is greater than or equal to the first threshold; when the content determination module 403 determines N contents to be recommended that meet the recommendation condition based on the multiple distances, specifically performs:

[0085] If the number of search contents included in the first search cluster is greater than the N, selecting the contents in the first search cluster based on the first selection strategy to obtain the N contents to be recommended;

[0086] Wherein, the first search cluster is the search cluster corresponding to the minimum distance among the multiple distances;

[0087] The first selection strategy is: selecting the first N search contents in the first search cluster that are closest to the source target content.

[0088] Optionally, in an implementation manner, when determining N to-be-recommended content satisfying the recommendation condition based on the multiple distances, the content determination module 403 further specifically performs:

[0089] If the number of search contents included in the first search cluster is less than the N, and the total number of search contents included in the first search cluster and the second search cluster is greater than the N, then selecting the contents in the first search cluster and the second search cluster based on the second selection strategy to obtain the N contents to be recommended;

[0090] Wherein, the second search cluster is a search cluster corresponding to the minimum distance of the multiple distances except the minimum distance;

[0091] The second selection strategy is: select all search contents in the first search cluster, and select the first L search contents in the second search cluster that are closest to the source target content, and the sum of L and the number of search contents included in the first search cluster is equal to N.

[0092] Optionally, in an implementation manner, when determining N to-be-recommended content satisfying the recommendation condition based on the multiple distances, the content determination module 403 further specifically performs:

[0093] If the number of search contents included in the first search cluster is less than N, and the total number of search contents included in the first search cluster and the second search cluster is less than N, all search contents included in the first search cluster and the second search cluster are determined as the N contents to be recommended.

[0094] Optionally, in an implementation manner, the recommendation condition is that the degree of association between the recommended contents is less than the second threshold; when the content determination module 403 determines N contents to be recommended that meet the recommendation condition based on the multiple distances, it further specifically performs:

[0095] Selecting the search contents in the H third search clusters based on the third selection strategy to obtain the N to-be-recommended contents, wherein H is greater than 1, H is less than W, and H is less than or equal to n;

[0096] The H third search clusters are the H search clusters with the smallest distances among the multiple distances, or the distance between the third search cluster and the source target content is less than a third threshold;

[0097] The N contents to be recommended include at least one retrieval content in each of the third retrieval clusters.

[0098] Optionally, in one implementation, the third selection strategy is: selecting a search content in each of the third search clusters, the selected search content having the smallest distance from the source target content;

[0099] Alternatively, the third selection strategy is: if H is less than n, then select nH-1 search contents in the fourth search cluster, and select one search content in other third search clusters except the fourth search cluster, and the fourth search cluster is the third search cluster with the smallest distance from the source target content.

[0100] Optionally, in one implementation, when determining the distance between the source target content and the W search clusters in the content search library, the distance determination module 402 specifically performs:

[0101] Determining the distance between the source target content and each search content in the search cluster;

[0102] The determined minimum distance is determined as the distance between the source target content and the retrieval cluster.

[0103] Among them, the above modules in the device provided by the embodiment of the present application can also implement the method steps provided by the above method embodiment. Alternatively, the device provided by the embodiment of the present application can also include other modules in addition to the above modules to implement the method steps provided by the above method embodiment. And the device provided by the embodiment of the present application can achieve the technical effects that can be achieved by the above method embodiment.

[0104] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of this specification. Figure 5 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0105] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0106] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0107] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a recommended content determination device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0108] Acquire target information, where the target information includes source target content of the to-be-recommended scene, the number n of the to-be-recommended content, and a recommendation condition, where n is an integer greater than 1;

[0109] Determine the distance between the source target content and W search clusters in the content search library to obtain multiple distances, where W is an integer greater than 1; wherein each search cluster includes one or more search contents, the degree of association between the search contents included in the same search cluster is greater than or equal to a first threshold, the degree of association between the search contents included in different search clusters is less than a second threshold, and the second threshold is less than the first threshold;

[0110] Determine N contents to be recommended that meet the recommendation condition based on the multiple distances, where N is less than or equal to n;

[0111] Among them, the degree of association between M of the N contents to be recommended is greater than or equal to the first threshold; or, the degree of association between K of the N contents to be recommended is less than the second threshold, and both M and K are integers greater than N / 2, and both M and K are less than or equal to N.

[0112] The electronic device provided by the embodiment of the present application, in the embodiment of the present application, the search contents in the content search library are grouped in advance, the search contents included in the same cluster are correlated, and the search contents included in different clusters are not different. When determining the recommended content, the distance between the source target content of the to-be-recommended scene and each cluster in the content search library is first determined, and then the recommended content that meets the recommendation conditions is determined based on the determined distance. Since most of the determined recommended contents are mainly correlated with each other, or most of the determined recommended contents are mainly different from each other, the actual demand for the correlation between the recommended contents in certain scenarios is realized. In addition, the recommended content is determined based on the distance between the source target content of the to-be-recommended scene and each cluster, thereby improving the accuracy of the recommended content.

[0113] The above is as in this manual Figure 1 to Figure 3The method performed by the recommended content determination device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of this specification can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of this specification can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0114] The electronic device may also perform Figure 1 to Figure 3 The method and the recommended content determination device are implemented in Figure 1 to Figure 3 The functions of the illustrated embodiments will not be described in detail in the embodiments of this specification.

[0115] The embodiment of the present specification also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 1 to Figure 3 The method of the embodiment shown is specifically used to perform the following operations:

[0116] Acquire target information, where the target information includes source target content of the to-be-recommended scene, the number n of the to-be-recommended content, and a recommendation condition, where n is an integer greater than 1;

[0117] Determine the distance between the source target content and W search clusters in the content search library to obtain multiple distances, where W is an integer greater than 1; wherein each search cluster includes one or more search contents, the degree of association between the search contents included in the same search cluster is greater than or equal to a first threshold, the degree of association between the search contents included in different search clusters is less than a second threshold, and the second threshold is less than the first threshold;

[0118] Determine N contents to be recommended that meet the recommendation condition based on the multiple distances, where N is less than or equal to n;

[0119] Among them, the degree of association between M of the N contents to be recommended is greater than or equal to the first threshold; or, the degree of association between K of the N contents to be recommended is less than the second threshold, and both M and K are integers greater than N / 2, and both M and K are less than or equal to N.

[0120] The computer-readable storage medium provided in the embodiment of the present application, in the embodiment of the present application, the search contents in the content search library are grouped in advance, the search contents included in the same cluster are correlated, and the search contents included in different clusters are not different. When determining the recommended content, the distance between the source target content of the to-be-recommended scene and each cluster in the content search library is first determined, and then the recommended content that meets the recommendation condition is determined based on the determined distance. Since most of the determined recommended contents are mainly correlated with each other, or most of the determined recommended contents are mainly different from each other, the actual demand for correlation between the recommended contents in certain scenarios is realized. In addition, the recommended content is determined based on the distance between the source target content of the to-be-recommended scene and each cluster, thereby improving the accuracy of the recommended content.

[0121] Of course, in addition to software implementation, the electronic device of this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0122] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0123] In short, the above description is only a preferred embodiment of this specification and is not intended to limit the protection scope of this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the protection scope of this specification.

[0124] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0125] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0126] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0127] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A method for determining recommended content, characterized in that: include: Acquire target information, where the target information includes source target content of the to-be-recommended scene, the number n of the to-be-recommended content, and a recommendation condition, where n is an integer greater than 1; Determine the distance between the source target content and W search clusters in the content search library to obtain multiple distances, where W is an integer greater than 1; wherein each search cluster includes one or more search contents, the degree of association between the search contents included in the same search cluster is greater than or equal to a first threshold, the degree of association between the search contents included in different search clusters is less than a second threshold, and the second threshold is less than the first threshold; Determine N contents to be recommended that meet the recommendation condition based on the multiple distances, where N is less than or equal to n; Among them, when the recommendation condition is that the degree of association between the recommended contents is greater than or equal to the first threshold, there are M contents among the N contents to be recommended whose degrees of association are greater than or equal to the first threshold; when the recommendation condition is that the degree of association between the recommended contents is less than the second threshold, there are K contents among the N contents to be recommended whose degrees of association are less than the second threshold, and both M and K are integers greater than N / 2, and both M and K are less than or equal to N.

2. The method according to claim 1, characterized in that The recommendation condition is that the degree of association between the recommended contents is greater than or equal to the first threshold; and determining N contents to be recommended that meet the recommendation condition based on the multiple distances includes: If the number of search contents included in the first search cluster is greater than the N, selecting the contents in the first search cluster based on the first selection strategy to obtain the N contents to be recommended; Wherein, the first search cluster is the search cluster corresponding to the minimum distance among the multiple distances; The first selection strategy is: selecting the first N search contents in the first search cluster that are closest to the source target content.

3. The method according to claim 2, characterized in that The method further comprises: If the number of search contents included in the first search cluster is less than the N, and the total number of search contents included in the first search cluster and the second search cluster is greater than the N, then selecting the contents in the first search cluster and the second search cluster based on the second selection strategy to obtain the N contents to be recommended; Wherein, the second search cluster is a search cluster corresponding to the minimum distance of the multiple distances except the minimum distance; The second selection strategy is: select all search contents in the first search cluster, and select the first L search contents in the second search cluster that are closest to the source target content, and the sum of L and the number of search contents included in the first search cluster is equal to N.

4. The method according to claim 3, characterized in that The method further comprises: If the number of search contents included in the first search cluster is less than N, and the total number of search contents included in the first search cluster and the second search cluster is less than N, all search contents included in the first search cluster and the second search cluster are determined as the N contents to be recommended.

5. The method according to claim 1, characterized in that The recommendation condition is that the degree of association between the recommended contents is less than the second threshold; and determining N contents to be recommended that meet the recommendation condition based on the multiple distances includes: Selecting the search contents in the H third search clusters based on the third selection strategy to obtain the N to-be-recommended contents, wherein H is greater than 1, H is less than W, and H is less than or equal to n; The H third search clusters are the H search clusters with the smallest distances among the multiple distances, or the distance between the third search cluster and the source target content is less than a third threshold; The N contents to be recommended include at least one retrieval content in each of the third retrieval clusters.

6. The method according to claim 5, characterized in that The third selection strategy is: selecting a search content in each of the third search clusters, the selected search content having the smallest distance from the source target content; Alternatively, the third selection strategy is: if H is less than n, then select nH-1 search contents in the fourth search cluster, and select one search content in other third search clusters except the fourth search cluster, and the fourth search cluster is the third search cluster with the smallest distance from the source target content.

7. The method according to any one of claims 1 to 6, characterized in that: The specific implementation method of determining the distance between the source target content and the retrieval cluster is: Determining the distance between the source target content and each search content in the search cluster; The determined minimum distance is determined as the distance between the source target content and the retrieval cluster.

8. A device for determining recommended content, characterized in that: include: An acquisition module, used to acquire target information, wherein the target information includes source target content of a to-be-recommended scene, the number n of to-be-recommended content, and a recommendation condition, wherein n is an integer greater than 1; a distance determination module, used to determine the distance between the source target content and W search clusters in the content search library, and obtain multiple distances, wherein W is an integer greater than 1; wherein each search cluster includes one or more search contents, the degree of association between the search contents included in the same search cluster is greater than or equal to a first threshold, the degree of association between the search contents included in different search clusters is less than a second threshold, and the second threshold is less than the first threshold; a content determination module, configured to determine N recommended contents satisfying the recommendation condition based on the multiple distances, wherein N is less than or equal to n; Among them, when the recommendation condition is that the degree of association between the recommended contents is greater than or equal to the first threshold, there are M contents among the N contents to be recommended whose degrees of association are greater than or equal to the first threshold; when the recommendation condition is that the degree of association between the recommended contents is less than the second threshold, there are K contents among the N contents to be recommended whose degrees of association are less than the second threshold, and both M and K are integers greater than N / 2, and both M and K are less than or equal to N.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the recommended content determination method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the recommended content determination method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method and device for search recommendation based on search term and search engine

    CN106919577A

  • Information recommendation method and device, equipment and medium

    CN108108419A

  • Recommended information processing method, apparatus, computer device, and storage medium

    CN109255070A

  • A scene-based thing recommendation method and device

    CN109670106A

  • A question pushing method and device

    CN109885651A