Recommended content intervention method and device, equipment and storage medium
By storing and matching intervention rules and logic through relational statistical tables, it solves the problem of complex logic and redundant codes in the recommendation system under hard coding, improves the maintainability and scalability of recommended content intervention, and achieves efficient iteration and Extension.
Patent Information
- Application Number
- CN202310161195.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
In existing recommendation systems, recommended content is intervened through hard coding, which results in complex logical judgments, a lot of redundant code, poor maintainability, and difficulty in expansion and iteration.
Relational statistical tables are used to store intervention rules and logic, and contextual information is used to match intervention logic for recommended content intervention, reducing redundant code maintenance and improving maintainability and scalability.
It improves the maintainability, scalability and iteration efficiency of the recommended content intervention method, reduces the iteration difficulties and poor scalability of hard-coded methods, and enables flexible adjustment of recommended content.
Smart Images

Figure CN118535787A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device, equipment and storage medium for intervening in recommended content. Background Art
[0002] The essence of the recommendation system is a large-scale personalized content distribution system driven by data and dominated by algorithms. At the same time, the recommended content corresponding to the recommendation system also needs to be reasonably intervened to improve the recommendation effect of the recommendation system.
[0003] In the related art, intervention in recommended content is performed by adopting a hard-coded method. For example, a compiled conditional function is used to determine whether the recommended content corresponding to a certain recommendation scenario needs intervention based on the context information of a certain recommendation scenario. If the recommended content needs intervention, the conditional function calls the corresponding intervention logic to intervene in the recommended content, such as inserting intervention data, filtering sensitive content, marking hot content, etc.
[0004] However, the hard-coding method will lead to a large amount of logical judgment and redundant and repeated code in the recommendation system, which has poor maintainability. Summary of the invention
[0005] The embodiments of the present application provide a method, device, equipment and storage medium for intervening in recommended content, which can improve the maintainability, scalability and iteration efficiency of the method for intervening in recommended content. The technical solution is as follows:
[0006] According to one aspect of an embodiment of the present application, a method for intervening in recommended content is provided, the method comprising:
[0007] Acquire context information corresponding to a target recommendation scenario, wherein the context information includes feature data of the target recommendation scenario;
[0008] In the case where there is a target intervention rule matching the context information corresponding to the target recommendation scenario in the relationship statistics table, obtaining the target intervention logic corresponding to the target intervention rule; wherein the relationship statistics table includes at least one set of corresponding relationships between intervention rules and intervention logic, the intervention rule is used to determine whether to intervene in the recommended content corresponding to the recommendation scenario, and the intervention logic refers to the processing logic used to intervene in the recommended content;
[0009] According to the target intervention logic, the recommended content corresponding to the target recommendation scenario is intervened to obtain the recommended content after intervention.
[0010] According to one aspect of an embodiment of the present application, a device for intervening in recommended content is provided, the device comprising:
[0011] An information acquisition module, used to acquire context information corresponding to a target recommendation scenario, wherein the context information includes feature data of the target recommendation scenario;
[0012] A logic acquisition module, configured to acquire a target intervention logic corresponding to a target intervention rule when there is a target intervention rule matching the context information corresponding to the target recommendation scenario in the relationship statistics table; wherein the relationship statistics table includes at least one set of corresponding relationships between intervention rules and intervention logic, the intervention rule is used to determine whether to intervene in the recommended content corresponding to the recommendation scenario, and the intervention logic refers to a processing logic for intervening in the recommended content;
[0013] The content intervention module is used to intervene in the recommended content corresponding to the target recommendation scenario according to the target intervention logic to obtain the recommended content after intervention.
[0014] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned method for intervening in recommended content.
[0015] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned recommended content intervention method.
[0016] According to one aspect of an embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned intervention method for recommending content.
[0017] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0018] By judging whether the recommended content corresponding to the recommended scenario needs intervention according to the context information of the recommended scenario and the relationship statistics table including the correspondence between at least one set of intervention rules and intervention logic, and in the case that the recommended content corresponding to the recommended scenario needs intervention, the corresponding intervention logic is matched from the relationship statistics table according to the context information of the recommended scenario, and then the recommended content is intervened according to the intervention logic. Since the relationship statistics table does not need to maintain a large amount of logical judgment and redundant and repeated code, the maintainability, scalability and iteration efficiency of the recommended content intervention method are improved. In addition, compared with the difficult iteration and poor scalability of the hard-coded method, the relationship statistics table is easy to iterate and has strong scalability, thereby improving the scalability and iteration efficiency of the recommended content intervention method. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;
[0021] Figure 2 is a schematic diagram of an intervention method for recommended content provided by an embodiment of the present application;
[0022] Figure 3 It is a flowchart of a method for constructing a relationship statistics table provided by an embodiment of the present application;
[0023] Figure 4 is a flow chart of a method for intervening in recommended content provided by an embodiment of the present application;
[0024] Figure 5 is a schematic diagram of an intervention method for recommending videos provided by an embodiment of the present application;
[0025] Figure 6 is a schematic diagram of an intervention logic and a method for obtaining intervention data provided by an embodiment of the present application;
[0026] Figure 7 is a block diagram of an intervention device for recommending content provided by an embodiment of the present application;
[0027] Figure 8 is a block diagram of an intervention device for recommending content provided by another embodiment of the present application;
[0028] Fig. 9It is a block diagram of a computer device provided by one embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0030] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application. The implementation environment may include: a terminal device 10 and a server 20.
[0031] The terminal device 10 may be an electronic device such as a mobile phone, a tablet computer, a game console, a multimedia player, a PC (Personal Computer), etc. The terminal device 10 may be installed with a client of a target application, which may be a web browser, a shopping application, an audio and video player application, a live broadcast application, a game application, a simulation learning application, a social application, and any application that requires recommended content intervention.
[0032] The server 20 is used to provide background services for the client of the target application (such as an audio and video playback application) in the terminal device 10. For example, the server 20 can be a background server of the above-mentioned target application (such as an audio and video playback application). The server 20 can be a single server, a server cluster composed of multiple servers, or a cloud computing service center.
[0033] The terminal device 10 and the server 20 can communicate with each other via a network 30. The network 30 can be a wired network or a wireless network.
[0034] For example, reference Figure 1 The client installed and running in the terminal device 10 sends a recommendation request to the server 20 in response to the user's retrieval, viewing, login and other operations. The recommendation request includes context information corresponding to the target recommendation scenario.
[0035] refer to Figure 2After receiving the recommendation request, the server 20 obtains the recommended content corresponding to the target recommendation scenario, and determines whether the recommended content corresponding to the target recommendation scenario needs intervention based on the context information corresponding to the target recommendation scenario and the relationship statistics table 201. If the recommended content corresponding to the target recommendation scenario needs intervention, the server 20 determines the target intervention logic that matches the context information corresponding to the target recommendation scenario from the relationship statistics table 201, and pulls the target intervention data corresponding to the target intervention logic from the intervention database 202, and intervenes in the recommended content corresponding to the target recommendation scenario using the target intervention data according to the target intervention logic to obtain the recommended content after intervention. The server 20 sends the recommended content after intervention to the client, and the client displays the recommended content after intervention to the user. In the application embodiment, intervention is a process of adjusting the recommended content. According to different needs, different interventions can be performed on the recommended content, such as adding content to the recommended content, marking part of the recommended content, replacing part of the recommended content, filtering part of the recommended content, etc. Different interventions can produce different effects. By intervening on the recommended content, the recommended content after the intervention can have at least one of the following effects: more in line with users, more standardized, more valuable and more comprehensive, thereby improving the recommendation effect.
[0036] Among them, the relationship statistics table 201 includes at least one set of corresponding relationships between intervention rules and intervention logic, the intervention rules are used to determine whether to intervene in the recommended content corresponding to the recommendation scenario, and the intervention logic refers to the processing logic used to intervene in the recommended content. The relationship statistics table 201 can be constructed by the server 20 according to the context information and intervention logic corresponding to the collected multiple recommendation scenarios. Optionally, the server 20 also corresponds to a configuration terminal for the relationship statistics table 201, and relevant personnel can adjust the relationship statistics table 201 through the configuration terminal (such as the configuration page in the configuration terminal).
[0037] Optionally, the intervention process of the above-mentioned recommended content can also be executed by the client. For example, the client responds to the user operation and determines whether the recommended content corresponding to the target recommendation scenario needs intervention based on the context information corresponding to the target recommendation scenario and the relationship statistics table. If the recommended content corresponding to the target recommendation scenario needs intervention, the target intervention logic that matches the context information corresponding to the target recommendation scenario is determined from the relationship statistics table, and the recommended content corresponding to the target recommendation scenario is intervened according to the target intervention logic to obtain the recommended content after intervention, and the client displays the recommended content after intervention to the user.
[0038] The technical solution provided by the embodiments of the present application will be described in detail below.
[0039] Please refer to Figure 3, which shows a flowchart of a method for constructing a relationship statistics table provided by an embodiment of the present application. The execution subject of each step of the method can be Figure 1 In the terminal device 10 or the server 20 in the implementation environment of the solution shown, the method may include the following steps (step 301 to step 304):
[0040] Step 301: Obtain context information and intervention logic corresponding to a plurality of recommendation scenarios.
[0041] The above-mentioned recommendation scenarios refer to scenarios where content recommendations need to be made to users. For example, in a shopping scenario, the recommendation system can distribute recommended items that may be of interest to users; in a video playback scenario, the recommendation system can distribute recommended videos that may be of interest to users; in a web browsing scenario, the recommendation system can distribute recommended web page content that may be of interest to users. The content recommended to users is the recommended content in the embodiments of the present application.
[0042] The embodiments of the present application do not limit the division of recommendation scenarios. For example, the usage scenarios of different applications can be divided into different recommendation scenarios, such as video recommendation scenarios corresponding to video applications, live broadcast room recommendation scenarios corresponding to live broadcast applications, etc. For the same type of application, different developers can also divide it into different recommendation scenarios, such as the use of video application A corresponds to one recommendation scenario, and the use of video application B corresponds to another recommendation scenario; for the same program, it can also be divided into different recommendation scenarios according to different versions, such as the mobile version corresponds to one recommendation scenario, and the PC version corresponds to another recommendation scenario. Optionally, different recommendation scenarios correspond to different intervention logics, and the recommendation scenarios can also be divided according to the intervention logic. Intervention logic refers to the processing logic used to intervene in the recommended content, that is, how to adjust the recommended content specifically.
[0043] The above-mentioned context information may include characteristic data of the recommendation scene, and the characteristic data of the recommendation scene is used to characterize the characteristics of the recommendation scene. Exemplarily, the characteristic data of the recommendation scene may include data such as the type, name, ID (Identity Document), characteristics, and related parameters of the recommendation scene, and the context information of the recommendation scene may be used to uniquely identify the recommendation scene. Exemplarily, the context information of the video recommendation scene: browser ID, page number, page type, etc., may be used to uniquely identify the video recommendation scene.
[0044] Intervention logic refers to the processing logic used to intervene in recommended content, that is, intervention logic is used to indicate how to intervene in recommended content. Exemplarily, according to the intervention logic, the recommended content can be adjusted to a certain extent. For example, intervention data can be inserted into a fixed position of the recommended content, such as inserting intervention data such as advertisements, videos, news, topics, and commodities into a specified position of the recommended content, so that the intervention data or recommended content can be guaranteed to have sufficient exposure and clicks; wherein, intervention data refers to data used to adjust (such as replacement, addition, etc.) the recommended content, which can be set and adjusted according to actual usage requirements. It is also possible to highlight the hot content in the recommended content, such as adding hot content such as hot news, hot topics, and hot videos in the recommended content. Hot content (such as hot spots, TOP, etc.) is added to highlight the hot content to maintain the corresponding heat; it is also possible to filter sensitive content in the recommended content or intervention data, such as transitioning (such as blacklisting, blocking, etc.) pornographic content, content with poor picture quality, content related to untrustworthy artists, and sensitive content, as well as timely monitoring and intervention of the impact of negative public opinion on recommended content, and the intervention logic of the embodiment of the present application is not limited.
[0045] Step 302 : For each recommended scenario among the multiple recommended scenarios, spatial mapping is performed on context information corresponding to the recommended scenario to obtain an intervention rule corresponding to the recommended scenario.
[0046] In one example, the feature data corresponding to the recommended scenario is spatially mapped to obtain the intervention rules corresponding to the recommended scenario. Exemplarily, the feature data corresponding to the recommended scenario can be converted into an SQL (Structured Query Language) expression, and SQL can be a combination of one or more values, operators, and SQL functions. For example, in the case where the recommended scenario can be identified by one or more values, the one or more values are determined as the intervention rules corresponding to the recommended scenario, such as "1" as the intervention rule corresponding to the recommended scenario; in the case where the recommended scenario can be identified by an expression, the one expression is determined as the intervention rule corresponding to the recommended scenario, such as "A=1, B=2" as the intervention rule corresponding to the recommended scenario. Optionally, the feature data corresponding to the recommended scenario can also be directly determined as the intervention rule corresponding to the recommended scenario, which is not limited in the embodiments of the present application.
[0047] In another example, the context information may include m sub-features, where m is a positive integer, and each sub-feature is used to characterize different characteristics of the recommendation scenario. The method for obtaining the above intervention logic may also be as follows: for the j-th sub-feature among the m sub-features, perform spatial mapping on the j-th sub-feature to obtain the j-th level sub-rule corresponding to the intervention rule, where j is a positive integer less than or equal to m; sort the m sub-rules in ascending order to obtain the intervention rule corresponding to the recommendation scenario.
[0048] For example, if the recommendation scenario includes sub-features such as the type, name, and ID (Identity Document) of the recommendation scenario, the type of the recommendation scenario can be converted into the first-level sub-rule corresponding to the recommendation scenario, the name of the recommendation scenario can be converted into the second-level sub-rule corresponding to the recommendation scenario, and the ID of the recommendation scenario can be converted into the third-level sub-rule corresponding to the recommendation scenario. Then, the three sub-rules are sorted in order from small to large to obtain the intervention rule corresponding to the recommendation scenario. In this way, when performing an intervention rule query, the query workload can be reduced through hierarchical query, which is conducive to improving the query efficiency of the intervention rule, and then improving the intervention efficiency of the recommended content.
[0049] In another example, when the context information includes m sub-features, at least one target sub-feature among the m sub-features can be spatially mapped to obtain first-level sub-rules corresponding to the at least one target sub-feature, and the remaining sub-feature set can be spatially mapped as a whole to obtain second-level sub-rules. Based on the first-level sub-rules and the second-level sub-rules, intervention rules corresponding to the recommended scenarios are obtained, and the remaining sub-feature set includes sub-features other than the at least one target sub-feature among the m sub-features.
[0050] The target sub-feature may refer to a stable feature corresponding to the recommendation scenario, such as a sub-feature with a low frequency of change. The remaining sub-features in the remaining sub-feature set are sub-features with a high frequency of change.
[0051] For example, the recommended scenario includes sub-features such as the type, name, and ID (Identity Document) of the recommended scenario. The type of the recommended scenario is relatively stable, and the type of the recommended scenario can be converted into a first-level sub-rule alone. The name and ID of the recommended scenario are not stable enough, and the name and ID of the recommended scenario can be converted into a second-level sub-rule. In this way, when performing intervention rule queries, the number of sub-rule query rounds can be reduced, which is conducive to improving the query efficiency of the intervention rules.
[0052] Exemplarily, referring to the following Table 1, which exemplarily shows a plurality of intervention rules, each of which may include three levels of sub-rules.
[0053] Table 1
[0054] name Level 1 Sub-Rules Level 2 Sub-Rules Level 3 Sub-Rules Intervention Rule 1 Channel ID 1 Module Type 1 1=1 Intervention Rule 2 Channel ID 2 Module Type 2 Project Type = 1 Intervention Rule 3 Channel ID 3 Module Type 3 Project Type = 1 and Platform Number = 8 Intervention Rule 4 Channel ID 4 Module Type 4 1=1
[0055] Step 303: Generate an intervention formula corresponding to the recommended scenario according to the intervention logic corresponding to the recommended scenario, and the intervention formula is used to pull the intervention logic and intervention data corresponding to the intervention logic.
[0056] Intervention data refers to data used to intervene in recommended content, such as advertisements, videos, news, topics, products, comments, posts, etc. Intervention data can be used to insert recommended content or replace part of the data of recommended content, etc., which is not limited in the embodiments of the present application.
[0057] In one example, the intervention logic corresponding to the recommendation scenario can be directly determined as the intervention formula corresponding to the recommendation scenario, and the intervention formula is composed of the intervention logic and the intervention data. For example, the intervention formula can be: according to a certain intervention logic, a certain intervention data is used to intervene in the recommended content.
[0058] In another example, the intervention formula may be composed of intervention logic and an identifier of a data interface corresponding to intervention data. For example, the intervention formula may be: calling intervention data in a data interface, and using the intervention data to intervene in the recommended content according to a certain intervention logic.
[0059] In another example, the intervention formula may be composed of an identifier of a data interface corresponding to the intervention logic and an identifier of a data interface corresponding to the intervention data. For example, the intervention formula may be: calling intervention data in a certain data interface, calling intervention logic in another data interface, and intervening in the recommended content using the intervention data according to the intervention logic.
[0060] In this way, not only can the workload of generating intervention formulas be reduced, but also the intervention logic and intervention data can be stored in different storage spaces respectively, reducing the complexity of the relational statistical table. At the same time, the call adjustment of intervention logic or intervention data can be realized by simply adjusting the data interface. The adjustment flexibility of the relational statistical table is strong. When adding content to the relational statistical table, it is only necessary to add content to the storage space, and the corresponding intervention formula can be generated according to the identifier of the data interface corresponding to the storage space. The iteration efficiency of the relational statistical table is high. In addition, during use, the intervention formula can pull the corresponding intervention logic and intervention data through the data interface, thereby increasing the reusability of the intervention logic and intervention data.
[0061] Exemplarily, referring to the following Table 2, multiple intervention codes are exemplarily shown, each of which includes an identifier of a data interface corresponding to the intervention logic and an identifier of a data interface corresponding to the intervention data. Optionally, the intervention code may or may not retrieve the intervention data, and the identifier of the data interface corresponding to the intervention logic and the identifier of the data interface corresponding to the intervention data may or may not be the same, which is not limited in the embodiments of the present application.
[0062] Table 2
[0063] name ID Intervention Logic Intervention data Exposure data Dry budget 1 Func_1 Data interface 1 Data interface 1 Data interface 5 Dry budget 2 Func_2 Data interface 2 Data interface 2 Dry budget 3 Func_3 Data interface 3 Data interface 6 Dry budget 4 Func_4 Data interface 4 Data interface 4
[0064] The exposure data may refer to exposure data related to the user's behavior, through which it is possible to determine whether the recommended content is exposed to the user, the number of times the recommended content is exposed to the user, the number of times the recommended content is exposed to the user, the number of days the recommended content is exposed to the user, the number of days the exposure data of the recommended content to the user expires, etc., which is not limited in the embodiment of the present application. Optionally, the intervention module may pull the corresponding exposure data according to the data interface corresponding to the exposure data.
[0065] Step 304: construct a relationship statistics table according to the intervention rules and intervention scenarios corresponding to the plurality of recommendation scenarios.
[0066] Optionally, the intervention rules and intervention cases corresponding to each recommended scenario are counted into a relationship group, that is, the intervention rules and intervention cases in each relationship group are in a corresponding relationship. By combining multiple relationship groups, a relationship statistics table can be constructed. Exemplarily, the intervention rules are counted into one column and the intervention cases are counted into another column. The intervention rules and intervention cases in each relationship group are distributed in a corresponding manner in the same row, and a relationship statistics table can be obtained.
[0067] For example, referring to the following Table 3, a relationship statistics table is exemplarily shown, and the relationship statistics table includes the corresponding relationship between 4 groups of intervention rules and intervention exponents (ie, intervention logics). Optionally, different intervention rules can reuse the same intervention exponent.
[0068] Table 3
[0069] name Level 1 Sub-Rules Level 2 Sub-Rules … name Intervention Logic … Intervention Rule 1 Channel ID 1 Module Type 1 … Dry budget 1 Data interface 1 … Intervention Rule 2 Channel ID 2 Module Type 2 … Dry budget 2 Data interface 2 … Intervention Rule 3 Channel ID 3 Module Type 3 … Dry budget 3 Data interface 3 … Intervention Rule 4 Channel ID 4 Module Type 4 … Dry budget 4 Data interface 4 …
[0070] In one example, after the relationship statistics table is constructed, the relationship statistics table may be adaptively adjusted. The adjustment process includes at least one of the following items:
[0071] 1. When receiving a modification instruction for a first intervention rule or a first intervention logic in a relationship statistics table, modify the first intervention rule or the first intervention logic.
[0072] Optionally, when the intervention rule is composed of the identifier of the data interface corresponding to the intervention logic and the identifier of the data interface corresponding to the intervention data, the first intervention rule or the first intervention logic in the storage space may be modified without adjusting the relationship statistics table.
[0073] 2. When a new recommendation scenario is obtained, the intervention rules and intervention logic corresponding to the new recommendation scenario are added to the relationship statistics table.
[0074] Optionally, when the intervention rule is composed of the identifier of the data interface corresponding to the intervention logic and the identifier of the data interface corresponding to the intervention data, the intervention rules and intervention logic corresponding to the new recommended scenario are added to the storage space, and the intervention rules and intervention rule corresponding to the new recommended scenario are added to the relationship statistics table.
[0075] 3. When receiving a deletion instruction for the first intervention rule in the relationship statistics table, delete the content corresponding to the first intervention rule.
[0076] Optionally, when the intervention rule is composed of the identifier of the data interface corresponding to the intervention logic and the identifier of the data interface corresponding to the intervention data, the first intervention rule in the storage space is deleted, and the intervention rule that calls the first intervention rule is adjusted.
[0077] In summary, the technical solution provided by the embodiment of the present application constructs a relationship statistics table including the correspondence between at least one set of intervention rules and intervention logic according to the context information and intervention rules of the recommendation scenario. Since the relationship statistics table does not need to maintain a large amount of logical judgments and redundant and repeated codes, the maintainability, scalability and iteration efficiency of the relationship statistics table are higher. In addition, compared with the iteration difficulty and poor scalability of the hard-coded method, the relationship statistics table is easy to iterate and has strong scalability, which is conducive to improving the scalability and iteration efficiency of the recommendation content intervention method.
[0078] In addition, the intervention model is used to call the intervention logic, intervention data, exposure data, etc. through the data interface, so that the intervention logic, intervention data, exposure data and intervention rules are decoupled, thereby further improving the configuration flexibility and scalability of the relational statistical table.
[0079] Please refer to Figure 4 , which shows a flowchart of a method for intervening in recommended content provided by an embodiment of the present application. The execution subject of each step of the method may be Figure 1 In the terminal device 10 or the server 20 in the implementation environment of the solution shown, the method may include the following steps (steps 401 to 403):
[0080] Step 401: Obtain context information corresponding to a target recommendation scenario, where the context information includes feature data of the target recommendation scenario.
[0081] In the embodiments of the present application, the target recommendation scenario may refer to a recommendation scenario in which a recommendation request is triggered by a user operation. The target recommendation scenario may be any recommendation scenario, such as a video recommendation scenario triggered by a user watching a video, an item recommendation scenario triggered by a user shopping, a web content recommendation scenario triggered by a user opening a browser, etc., and the embodiments of the present application do not limit this.
[0082] The context information of the target recommendation scene can be used to uniquely identify the target recommendation scene. The recommendation scene and context information are the same as those described in the above embodiment. The contents not described in the embodiment of the present application can be referred to the above embodiment and will not be repeated here.
[0083] Step 402, when there is a target intervention rule matching the context information corresponding to the target recommendation scenario in the relationship statistics table, obtain the target intervention logic corresponding to the target intervention rule; wherein the relationship statistics table includes at least one set of corresponding relationships between intervention rules and intervention logic, the intervention rule is used to determine whether to intervene in the recommended content corresponding to the recommendation scenario, and the intervention logic refers to the processing logic used to intervene in the recommended content.
[0084] If there is a target intervention rule matching the context information corresponding to the target recommendation scenario in the relationship statistics table, it can be determined that the recommended content corresponding to the target recommendation scenario needs intervention, and the client displays the recommended content after intervention to the user; if there is no target intervention rule matching the context information corresponding to the target recommendation scenario in the relationship statistics table, it can be determined that the recommended content corresponding to the target recommendation scenario does not need intervention, and the client can directly display the recommended content to the user.
[0085] The relationship statistics table can be generated by the server offline or online. After generating the relationship statistics table, the server periodically collects context information and intervention logic corresponding to the target recommendation scene to update the relationship statistics table. The method for constructing the relationship statistics table is the same as that described in the above embodiment and will not be repeated here.
[0086] In one example, the intervention rule includes n levels of sub-rules, where n is a positive integer. Each level of sub-rules serves as a judgment condition to determine whether the context information corresponding to the recommendation scenario matches a certain intervention rule. For example, referring to Table 1 above, in the live broadcast recommendation scenario, the channel ID corresponds to the first level of sub-rules, the module type corresponds to the second level of sub-rules, and the remaining sub-features correspond to the third level of sub-rules.
[0087] Exemplarily, the process of determining the target intervention logic may include the following:
[0088] 1. When the context information corresponding to the target recommendation scenario matches the i-th level sub-rule, the intervention rules that do not include the i-th level sub-rule in the relationship statistics table are filtered to obtain a filtered intervention rule set, where i is a positive integer less than or equal to n.
[0089] The i-th level sub-rule may refer to the i-th level sub-rule corresponding to any intervention rule.
[0090] For example, referring to Table 1 above, when the context information corresponding to the target recommendation scenario matches the first-level sub-rule corresponding to intervention rule 2 (i.e., the channel ID in the context information is channel ID 2), intervention rule 1, intervention rule 3 and intervention rule 4 can be filtered to obtain a filtered intervention rule set.
[0091] 2. When i is equal to n, the intervention rule corresponding to the i-th level sub-rule that matches the context information corresponding to the target recommendation scenario in the filtered intervention rule set is determined as the target intervention rule.
[0092] After the filtered intervention rule set is obtained through n-1 rounds of queries, if there is still an i-th level sub-rule in the filtered intervention rule set that matches the context information corresponding to the target recommendation scenario, the intervention rule corresponding to the i-th level sub-rule can be determined as the target intervention rule.
[0093] For example, based on the above embodiment, if the module type in the context information corresponding to the target recommendation scenario is module type 2, and the item type in the context information corresponding to the target recommendation scenario satisfies "item type = 1", then intervention rule 2 can be determined as the target intervention rule corresponding to the target recommendation scenario. In this way, by hierarchically filtering intervention rules, the query workload of intervention rules can be reduced, thereby improving the query efficiency of intervention rules.
[0094] 3. Obtain the target intervention logic corresponding to the target intervention rule.
[0095] Optionally, the intervention logic in the row where the target intervention rule is located can be determined as the target intervention logic, or the intervention formula corresponding to the target intervention rule can be determined first, and then the target intervention logic corresponding to the target intervention rule can be pulled from the data interface through the intervention formula. This embodiment of the present application is not limited to this.
[0096] Optionally, when the number of matches between the sub-features corresponding to the target recommendation scenario and the sub-rules in the target intervention rule is greater than or equal to a threshold, it can also be determined that the target intervention rule matches the context information corresponding to the target recommendation scenario, which is not limited to this in the embodiments of the present application.
[0097] In one example, considering that in a multi-application, multi-scenario recommendation system, the number of recommendation scenarios is large, that is, there are many intervention rules in the relationship statistics table, and it is time-consuming to query the intervention rules one by one. In view of this, the embodiment of the present application also supports the splitting of intervention rules, so as to realize parallel processing, thereby improving the query efficiency of the intervention logic.
[0098] Exemplarily, the process may include the following contents: dividing the intervention rules in the relationship statistics table to obtain multiple intervention rule subsets; performing parallel retrieval on multiple intervention rule subsets based on the context information corresponding to the target recommendation scenario to determine the target intervention rule that matches the context information corresponding to the target recommendation scenario; and obtaining the target intervention logic corresponding to the target intervention rule.
[0099] Optionally, the intervention rules are evenly divided into multiple intervention rule subsets (such as 2, 3, etc.), and then the multiple intervention rule subsets are queried simultaneously to determine the target intervention rule that matches the context information corresponding to the target recommendation scenario.
[0100] Step 403: According to the target intervention logic, the recommended content corresponding to the target recommendation scenario is intervened to obtain the recommended content after intervention.
[0101] The recommended content can be adjusted differently according to different intervention logics. For example, according to the intervention logic corresponding to the target intervention rule, the intervention data corresponding to the target intervention rule can be inserted at a fixed position of the recommended content to obtain the recommended content after intervention. According to the intervention logic corresponding to the target intervention rule, the content in the recommended content that meets the first condition can be marked as a hotspot to obtain the recommended content after intervention. According to the intervention logic corresponding to the target intervention rule, the content in the recommended content that meets the second condition can also be filtered to obtain the recommended content after intervention.
[0102] Among them, the first condition may refer to recommended content with a heat value greater than or equal to the heat threshold, such as the above-mentioned hot news, hot videos, etc. The second condition may refer to recommended content with a negative value greater than or equal to the filtering threshold, such as the above-mentioned pornographic content, content with poor image quality, content related to dishonest artists, sensitive content, etc. The above-mentioned second condition may also refer to exposure data not meeting the exposure limit, such as the number of exposures greater than or equal to the exposure threshold, the number of exposure expiration days less than the expiration threshold, etc.
[0103] In one example, taking the case where intervention data is required to intervene in the recommended content, the intervention process of the recommended content may also include the following contents:
[0104] Optionally, when the intervention formula in the relational statistical table consists of intervention logic and intervention data, the intervention formula corresponding to the target intervention rule can be directly used to intervene in the recommended content corresponding to the target recommendation scenario according to the target intervention logic contained therein and the target intervention data contained therein to obtain the recommended content after intervention.
[0105] When the intervention formula in the relational statistical table consists of the intervention logic and the identifier of the data interface corresponding to the intervention data, the intervention data corresponding to the target intervention rule can be pulled from the data interface through the intervention formula corresponding to the target intervention rule, and according to the intervention logic contained in the intervention formula, the intervention data corresponding to the target intervention rule is used to intervene in the recommended content corresponding to the target recommendation scenario to obtain the recommended content after intervention.
[0106] When the intervention formula in the relational statistical table consists of the identifier of the data interface corresponding to the intervention logic and the identifier of the data interface corresponding to the intervention data, the intervention data corresponding to the target intervention rule can be pulled from the first data interface through the intervention formula corresponding to the target intervention rule, and the intervention logic corresponding to the target intervention rule can be pulled from the second data interface; according to the intervention logic corresponding to the target intervention rule, the intervention data corresponding to the target intervention rule is used to intervene in the recommended content corresponding to the target recommendation scenario to obtain the recommended content after intervention.
[0107] For example, inserting intervention data at a fixed position of recommended content is used as an example. When the recommended content is recommended for the target recommendation scenario for the first time, the intervention data is inserted at the top of the recommended content; wherein, during the display of the recommended content, the intervention data is displayed at the top. For example, when a user enters a shopping webpage for the first time, the shopping webpage displays the recommended content and a shopping advertisement is displayed at the top.
[0108] When the number of times the recommended content is recommended for the target recommendation scenario is greater than or equal to the first threshold, the intervention data is inserted at the setting position of the recommended content. The setting position can be set according to actual usage requirements. For example, when the user refreshes the shopping webpage multiple times, the shopping webpage displays the recommended content and displays a shopping advertisement on the left.
[0109] When the number of times the recommended content is recommended for the target recommendation scenario is greater than or equal to the second threshold, the intervention data is inserted at the setting position of the recommended content, and the content that meets the second condition in the recommended content is filtered; wherein the second threshold is greater than the first threshold. For example, when the shopping webpage is refreshed multiple times, the shopping webpage filters and displays sensitive items in the recommended content, and displays shopping advertisements on the left.
[0110] Optionally, the embodiment of the present application also supports AB testing. For example, for the opening and closing of the intervention logic, a control group and an experimental group are set, the control group closes the technical solution provided in the embodiment of the present application, and the experimental group opens the technical solution provided in the embodiment of the present application, and the experimental results of the control group are compared with the experimental results of the experimental group to verify the impact of the opening and closing of the technical solution provided in the embodiment of the present application on the recommended business indicators. By comparison, it is found that the overall logic of the technical solution provided in the embodiment of the application is in line with expectations.
[0111] In summary, the technical solution provided by the embodiment of the present application determines whether the recommended content corresponding to the recommendation scenario needs intervention based on the context information of the recommendation scenario and the relationship statistics table including the correspondence between at least one set of intervention rules and intervention logic. If the recommended content corresponding to the recommendation scenario needs intervention, the corresponding intervention logic is matched from the relationship statistics table according to the context information of the recommendation scenario, and then the recommended content is intervened according to the intervention logic. Since the relationship statistics table does not need to maintain a large amount of logical judgment and redundant and repeated code, the maintainability, scalability and iteration efficiency of the recommendation content intervention method are improved. In addition, compared with the difficult iteration and poor scalability of the hard-coded method, the relationship statistics table is easy to iterate and has strong scalability, thereby improving the scalability and iteration efficiency of the recommendation content intervention method.
[0112] In addition, by performing hierarchical query and group query on the intervention rules in the relationship statistics table, the query efficiency of the intervention rules can be effectively improved.
[0113] In an exemplary embodiment, taking a video recommendation system as an example, the intervention method of recommended content provided by the embodiment of the present application is described, which may include the following contents:
[0114] refer to Figure 5 The server obtains the context information and intervention logic corresponding to each recommendation scene of the video recommendation system, and constructs the relationship statistics table 501 corresponding to the video recommendation system according to the context information and intervention logic corresponding to each recommendation scene. For example, for a major event or festival, the server needs to insert a video related to the event or festival at a fixed position in a recommended video, which can be recorded as the event recommendation scene and the intervention logic corresponding to the event recommendation scene.
[0115] The server hot-loads the relationship statistics table 501. After receiving the video recommendation request from the client, the server obtains the recommended video 502 corresponding to the video recommendation request. The video recommendation request includes context information corresponding to the activity recommendation scene. According to the context information corresponding to the activity recommendation scene, the server determines the intervention logic 503 and intervention video 504 corresponding to the activity recommendation scene from the relationship statistics table 501, and the intervention video 504 is related to the above-mentioned major events or festivals. According to the intervention logic 503, the server inserts the intervention video 504 into a fixed position in the recommended video 502 to obtain the recommended video after intervention. The server sends the recommended video after intervention to the client so as to display the recommended video after intervention to the user through the client. Optionally, if there is an actual need, the server can also filter the recommended video 502 according to the user's exposure data 505, which will be explained below.
[0116] Optionally, refer to Figure 6 The acquisition process of the intervention logic 503 and the intervention video 504 may also include the following contents:
[0117] The server determines the target intervention rule corresponding to the activity recommendation scenario from the relationship statistics table 501 according to the context information corresponding to the activity recommendation scenario, and then determines the target intervention formula corresponding to the activity recommendation scenario according to the target intervention rule, and pulls the intervention logic 503 and the intervention video 504 from the corresponding target data interface through the target intervention formula. Figure 6 not shown).
[0118] Optionally, the intervention logic 503 may include three sub-logics: 1. Strong pinning: when the video recommendation request is the first swipe of the client (i.e., the first recommendation), the intervention video 504 is inserted into the head of the recommended video 502 (such as the first one in the recommended video sequence); 2. Pinning: when the video recommendation request is not the first swipe of the client, and the number of swipes is greater than or equal to a first threshold (i.e., multiple recommendations), the intervention video 504 is inserted into a set position in the recommended video 502 according to the number of swipes (such as the second one in the recommended video sequence); 3. Soft pinning: when the video recommendation request is not the first swipe of the client, and the number of swipes is greater than or equal to a second threshold (i.e., multiple recommendations), the intervention video 504 or the recommended video 502 is first filtered according to the exposure data 505, the blacklist, etc. (such as filtering the exposed recommended videos and intervention videos), and then the filtered intervention video 504 is inserted into the set position in the recommended video 502 (or the filtered recommended video 502) according to the number of swipes.
[0119] In summary, the technical solution provided by the embodiment of the present application determines whether the recommended content corresponding to the recommendation scenario needs intervention based on the context information of the recommendation scenario and the relationship statistics table including the correspondence between at least one set of intervention rules and intervention logic. If the recommended content corresponding to the recommendation scenario needs intervention, the corresponding intervention logic is matched from the relationship statistics table according to the context information of the recommendation scenario, and then the recommended content is intervened according to the intervention logic. Since the relationship statistics table does not need to maintain a large amount of logical judgment and redundant and repeated code, the maintainability, scalability and iteration efficiency of the recommendation content intervention method are improved. In addition, compared with the difficult iteration and poor scalability of the hard-coded method, the relationship statistics table is easy to iterate and has strong scalability, thereby improving the scalability and iteration efficiency of the recommendation content intervention method.
[0120] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0121] Please refer to Figure 7 , which shows a block diagram of a recommended content intervention device provided by an embodiment of the present application. The device has the function of implementing the above method example, and the function can be implemented by hardware or by hardware executing corresponding software. The device can be the computer device introduced above, or it can be set in a computer device. Figure 7 As shown, the device 700 includes: an information acquisition module 701, a logic acquisition module 702 and a content intervention module 703.
[0122] The information acquisition module 701 is used to acquire context information corresponding to the target recommendation scene, where the context information includes feature data of the target recommendation scene.
[0123] The logic acquisition module 702 is used to obtain the target intervention logic corresponding to the target intervention rule when there is a target intervention rule matching the context information corresponding to the target recommendation scenario in the relationship statistics table; wherein the relationship statistics table includes at least one set of corresponding relationships between intervention rules and intervention logic, the intervention rule is used to determine whether to intervene in the recommended content corresponding to the recommendation scenario, and the intervention logic refers to the processing logic used to intervene in the recommended content.
[0124] The content intervention module 703 is used to intervene in the recommended content corresponding to the target recommendation scenario according to the target intervention logic to obtain the recommended content after intervention.
[0125] In some embodiments, the intervention rule includes n-level sub-rules, where n is a positive integer; the logic acquisition module 702 is used to:
[0126] When the context information corresponding to the target recommendation scenario matches the i-th level sub-rule, filtering the intervention rules in the relationship statistics table that do not include the i-th level sub-rule to obtain a filtered intervention rule set, where i is a positive integer less than or equal to n;
[0127] In the case where i is equal to n, determining the intervention rule corresponding to the i-th level sub-rule that matches the context information corresponding to the target recommendation scenario in the filtered intervention rule set as the target intervention rule;
[0128] Obtain the target intervention logic corresponding to the target intervention rule.
[0129] In some embodiments, the logic acquisition module 702 is further used to:
[0130] Dividing the intervention rules in the relationship statistics table to obtain multiple intervention rule subsets;
[0131] According to the context information corresponding to the target recommendation scenario, the plurality of intervention rule subsets are searched in parallel to determine the target intervention rule that matches the context information corresponding to the target recommendation scenario;
[0132] Obtain the target intervention logic corresponding to the target intervention rule.
[0133] In some embodiments, the intervention rule corresponds to an intervention formula, the intervention formula is used to pull the intervention logic and intervention data corresponding to the intervention rule, and the intervention data is used to intervene in the recommended content;
[0134] The content intervention module 703 is used to pull the intervention data corresponding to the target intervention rule from the data interface through the intervention budget corresponding to the target intervention rule, and according to the intervention logic contained in the intervention budget, use the intervention data corresponding to the target intervention rule to intervene in the recommended content corresponding to the target recommendation scenario to obtain the recommended content after intervention.
[0135] Alternatively, the content intervention module 703 is further used to pull the intervention data corresponding to the target intervention rule from the first data interface through the intervention budget corresponding to the target intervention rule, and to pull the intervention logic corresponding to the target intervention rule from the second data interface; according to the intervention logic corresponding to the target intervention rule, the intervention data corresponding to the target intervention rule is used to intervene in the recommended content corresponding to the target recommendation scenario to obtain the recommended content after intervention.
[0136] In some embodiments, the content intervention module 703 is further used to insert intervention data corresponding to the target intervention rule at a fixed position of the recommended content according to the intervention logic corresponding to the target intervention rule to obtain the recommended content after intervention.
[0137] Alternatively, the content intervention module 703 is further configured to perform hotspot marking on the content satisfying the first condition in the recommended content according to the intervention logic corresponding to the target intervention rule, so as to obtain the recommended content after intervention.
[0138] Alternatively, the content intervention module 703 is further configured to filter the content satisfying the second condition in the recommended content according to the intervention logic corresponding to the target intervention rule to obtain the recommended content after intervention.
[0139] In some embodiments, the content intervention module 703 is also used to insert the intervention data on top of the recommended content when the recommended content is recommended for the target recommendation scenario for the first time; wherein, during the display of the recommended content, the intervention data is displayed at the top.
[0140] Alternatively, the content intervention module 703 is further configured to insert the intervention data at the setting position of the recommended content when the number of times the recommended content is recommended for the target recommendation scene is greater than or equal to a first threshold.
[0141] Alternatively, the content intervention module 703 is also used to insert the intervention data at the setting position of the recommended content and filter the content in the recommended content that meets the second condition when the number of times the recommended content is recommended for the target recommendation scenario is greater than or equal to a second threshold; wherein the second threshold is greater than the first threshold.
[0142] In some embodiments, Figure 8 As shown, the device 700 further includes: a statistical table adjustment module 704.
[0143] The statistical table adjustment module 704 is used to modify the first intervention rule or the first intervention logic in the relationship statistical table when receiving a modification instruction for the first intervention rule or the first intervention logic.
[0144] Alternatively, the statistical table adjustment module 704 is further configured to, when a new recommendation scenario is acquired, add the intervention rule and intervention logic corresponding to the new recommendation scenario into the relationship statistical table.
[0145] Alternatively, the statistical table adjustment module 704 is further configured to delete the content corresponding to the first intervention rule in the relationship statistical table when receiving a deletion instruction for the first intervention rule in the relationship statistical table.
[0146] In some embodiments, Figure 8 As shown, the device 700 further includes: a data statistics module 705 , a rule construction module 706 , an operator construction module 707 and a statistics table construction module 708 .
[0147] The data statistics module 705 is used to obtain context information and intervention logic corresponding to multiple recommendation scenarios.
[0148] The rule construction module 706 is configured to perform spatial mapping on the context information corresponding to each recommendation scenario in the plurality of recommendation scenarios to obtain an intervention rule corresponding to the recommendation scenario.
[0149] The operator construction module 707 is used to generate an intervention budget corresponding to the recommended scenario according to the intervention logic corresponding to the recommended scenario, and the intervention budget is used to pull the intervention logic and intervention data corresponding to the intervention logic.
[0150] The statistical table construction module 708 is used to construct the relationship statistical table according to the intervention rules and intervention examples corresponding to the multiple recommendation scenarios.
[0151] In some embodiments, the context information includes m sub-features, where m is a positive integer;
[0152] The rule construction module 706 is further used to perform spatial mapping on the j-th sub-feature among the m sub-features to obtain the j-th level sub-rule corresponding to the intervention rule, where j is a positive integer less than or equal to m; and sort the m sub-rules in ascending order of the level to obtain the intervention rule corresponding to the recommendation scenario.
[0153] Alternatively, the rule construction module 706 is further used to perform spatial mapping on at least one target sub-feature among the m sub-features, respectively, to obtain first-level sub-rules corresponding to the at least one target sub-feature, and to perform overall spatial mapping on the remaining sub-feature set, to obtain second-level sub-rules, and to obtain intervention rules corresponding to the recommendation scenario based on the first-level sub-rules and the second-level sub-rules, wherein the remaining sub-feature set includes sub-features among the m sub-features except for the at least one target sub-feature.
[0154] In summary, the technical solution provided by the embodiment of the present application determines whether the recommended content corresponding to the recommendation scenario needs intervention based on the context information of the recommendation scenario and the relationship statistics table including the correspondence between at least one set of intervention rules and intervention logic. If the recommended content corresponding to the recommendation scenario needs intervention, the corresponding intervention logic is matched from the relationship statistics table according to the context information of the recommendation scenario, and then the recommended content is intervened according to the intervention logic. Since the relationship statistics table does not need to maintain a large amount of logical judgment and redundant and repeated code, the maintainability, scalability and iteration efficiency of the recommendation content intervention method are improved. In addition, compared with the difficult iteration and poor scalability of the hard-coded method, the relationship statistics table is easy to iterate and has strong scalability, thereby improving the scalability and iteration efficiency of the recommendation content intervention method.
[0155] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0156] Please refer to Fig. 9 , which shows a structural block diagram of a computer device provided in one embodiment of the present application. The computer device can be used to implement the intervention method of recommended content provided in the above embodiment. Specifically, it can include the following contents.
[0157] The computer device 900 includes a central processing unit (such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit) and an FPGA (Field Programmable Gate Array)) 901, a system memory 904 including a RAM (Random-Access Memory) 902 and a ROM (Read-Only Memory) 903, and a system bus 905 connecting the system memory 904 and the central processing unit 901. The computer device 900 also includes a basic input / output system (Input Output System, I / O system) 906 that helps various devices in the server to transmit information, and a large-capacity storage device 907 for storing an operating system 913, application programs 914 and other program modules 915.
[0158] The basic input / output system 906 includes a display 908 for displaying information and an input device 909 such as a mouse and a keyboard for user inputting information. The display 908 and the input device 909 are connected to the central processing unit 901 via an input / output controller 910 connected to the system bus 905. The basic input / output system 906 may also include an input / output controller 910 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 910 also provides output to a display screen, a printer, or other types of output devices.
[0159] The mass storage device 907 is connected to the central processing unit 901 via a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer readable medium provide non-volatile storage for the computer device 900. That is, the mass storage device 907 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0160] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technology, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 904 and mass storage device 907 can be collectively referred to as memory.
[0161] According to the embodiment of the present application, the computer device 900 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 900 can be connected to the network 912 through the network interface unit 911 connected to the system bus 905, or the network interface unit 911 can be used to connect to other types of networks or remote computer systems (not shown).
[0162] The memory further includes a computer program, which is stored in the memory and configured to be executed by one or more processors to implement the above-mentioned intervention method for recommending content.
[0163] In some embodiments, a computer-readable storage medium is further provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the computer program is used to implement the above-mentioned method for intervening in recommended content.
[0164] Optionally, the computer readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0165] In some embodiments, a computer program product is further provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned intervention method for recommending content.
[0166] It should be noted that the information (including but not limited to the subject's device information, subject's personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the subject or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the exposure data, context information, intervention logic, intervention data, etc. involved in this application are all obtained with full authorization.
[0167] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0168] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for intervening in recommended content, characterized in that: The method comprises: Acquire context information corresponding to a target recommendation scenario, wherein the context information includes feature data of the target recommendation scenario; In the case where there is a target intervention rule matching the context information corresponding to the target recommendation scenario in the relationship statistics table, obtaining the target intervention logic corresponding to the target intervention rule; wherein the relationship statistics table includes at least one set of corresponding relationships between intervention rules and intervention logic, the intervention rule is used to determine whether to intervene in the recommended content corresponding to the recommendation scenario, and the intervention logic refers to the processing logic used to intervene in the recommended content; According to the target intervention logic, the recommended content corresponding to the target recommendation scenario is intervened to obtain the recommended content after intervention.
2. The method according to claim 1, characterized in that The intervention rule includes n-level sub-rules, where n is a positive integer; In the case where there is a target intervention rule matching the context information corresponding to the target recommendation scenario in the relationship statistics table, obtaining the target intervention logic corresponding to the target intervention rule includes: When the context information corresponding to the target recommendation scenario matches the i-th level sub-rule, filtering the intervention rules in the relationship statistics table that do not include the i-th level sub-rule to obtain a filtered intervention rule set, where i is a positive integer less than or equal to n; In the case where i is equal to n, determining the intervention rule corresponding to the i-th level sub-rule that matches the context information corresponding to the target recommendation scenario in the filtered intervention rule set as the target intervention rule; Obtain the target intervention logic corresponding to the target intervention rule.
3. The method according to claim 1, characterized in that In the case where there is a target intervention rule matching the context information corresponding to the target recommendation scenario in the relationship statistics table, obtaining the target intervention logic corresponding to the target intervention rule includes: Dividing the intervention rules in the relationship statistics table to obtain multiple intervention rule subsets; According to the context information corresponding to the target recommendation scenario, the plurality of intervention rule subsets are searched in parallel to determine the target intervention rule that matches the context information corresponding to the target recommendation scenario; Obtain the target intervention logic corresponding to the target intervention rule.
4. The method according to claim 1, characterized in that: The intervention rule corresponds to an intervention formula, and the intervention formula is used to pull the intervention logic and intervention data corresponding to the intervention rule, and the intervention data is used to intervene in the recommended content; The step of intervening the recommended content corresponding to the target recommendation scenario according to the target intervention logic to obtain the recommended content after intervention includes: Pulling intervention data corresponding to the target intervention rule from the data interface through the intervention formula corresponding to the target intervention rule, and intervening in the recommended content corresponding to the target recommendation scenario using the intervention data corresponding to the target intervention rule according to the intervention logic contained in the intervention formula, to obtain the recommended content after the intervention; or, The intervention data corresponding to the target intervention rule is pulled from the first data interface through the intervention rule corresponding to the target intervention rule, and the intervention logic corresponding to the target intervention rule is pulled from the second data interface; according to the intervention logic corresponding to the target intervention rule, the intervention data corresponding to the target intervention rule is used to intervene in the recommended content corresponding to the target recommendation scenario to obtain the recommended content after the intervention.
5. The method according to claim 4, characterized in that The step of intervening the recommended content corresponding to the target recommendation scenario according to the target intervention logic to obtain the recommended content after intervention includes: According to the intervention logic corresponding to the target intervention rule, inserting the intervention data corresponding to the target intervention rule at the fixed position of the recommended content to obtain the recommended content after the intervention; or, According to the intervention logic corresponding to the target intervention rule, hotspot marking is performed on the content in the recommended content that meets the first condition, so as to obtain the recommended content after the intervention; or, According to the intervention logic corresponding to the target intervention rule, the content in the recommended content that meets the second condition is filtered to obtain the recommended content after intervention.
6. The method according to claim 5, characterized in that The method further comprises: When the recommended content is recommended for the target recommendation scene for the first time, the intervention data is inserted at the top of the recommended content; wherein the intervention data is displayed at the top during the display of the recommended content; or, When the number of times the recommended content is recommended for the target recommendation scene is greater than or equal to a first threshold, inserting the intervention data at a setting position of the recommended content; or, When the number of times the recommended content is recommended for the target recommendation scenario is greater than or equal to a second threshold, the intervention data is inserted at the setting position of the recommended content, and the content in the recommended content that meets the second condition is filtered; wherein the second threshold is greater than the first threshold.
7. The method according to claim 1, characterized in that The method further comprises: In case of receiving a modification instruction for a first intervention rule or a first intervention logic in the relationship statistics table, modifying the first intervention rule or the first intervention logic; or, In the case of obtaining a new recommended scenario, adding the intervention rule and intervention logic corresponding to the new recommended scenario into the relationship statistics table; or, When a deletion instruction for the first intervention rule in the relationship statistics table is received, the content corresponding to the first intervention rule is deleted.
8. The method according to claim 1, characterized in that The method further comprises: Obtain context information and intervention logic corresponding to multiple recommendation scenarios; For each of the multiple recommended scenarios, spatially map the context information corresponding to the recommended scenario to obtain an intervention rule corresponding to the recommended scenario; According to the intervention logic corresponding to the recommended scenario, generating an intervention budget corresponding to the recommended scenario, wherein the intervention budget is used to pull the intervention logic and intervention data corresponding to the intervention logic; The relationship statistics table is constructed according to the intervention rules and intervention scenarios respectively corresponding to the plurality of recommendation scenarios.
9. The method according to claim 8, characterized in that The context information includes m sub-features, where m is a positive integer; The spatial mapping of the context information corresponding to the recommendation scenario to obtain the intervention rule corresponding to the recommendation scenario includes: For the j-th sub-feature of the m sub-features, spatial mapping is performed on the j-th sub-feature to obtain a j-th level sub-rule corresponding to the intervention rule, where j is a positive integer less than or equal to m; the m sub-rules are sorted in ascending order of level to obtain the intervention rule corresponding to the recommendation scenario; or, Perform spatial mapping on at least one target sub-feature among the m sub-features respectively to obtain first-level sub-rules corresponding to the at least one target sub-feature, and perform overall spatial mapping on the remaining sub-feature set to obtain second-level sub-rules, and obtain intervention rules corresponding to the recommendation scenario based on the first-level sub-rules and the second-level sub-rules, wherein the remaining sub-feature set includes sub-features among the m sub-features except the at least one target sub-feature.
10. A device for intervening in recommended content, characterized in that: The device comprises: An information acquisition module, used to acquire context information corresponding to a target recommendation scenario, wherein the context information includes feature data of the target recommendation scenario; A logic acquisition module, configured to acquire a target intervention logic corresponding to a target intervention rule when there is a target intervention rule matching the context information corresponding to the target recommendation scenario in the relationship statistics table; wherein the relationship statistics table includes at least one set of corresponding relationships between intervention rules and intervention logic, the intervention rule is used to determine whether to intervene in the recommended content corresponding to the recommendation scenario, and the intervention logic refers to a processing logic for intervening in the recommended content; The content intervention module is used to intervene in the recommended content corresponding to the target recommendation scenario according to the target intervention logic to obtain the recommended content after intervention.
11. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the recommended content intervention method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the recommended content intervention method as described in any one of claims 1 to 9 above.
13. A computer program product, characterized in that The computer program product comprises a computer program, the computer program is stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the intervention of the recommended content according to any one of claims 1 to 9.
Citation Information
Patent Citations
Intervention method, medium and system for recommendation system and computing equipment
CN107562881A
Recommendation request processing method and device, computer equipment and storage medium
CN115130002A
Information recommendation method and device, computer equipment and storage medium
CN115659009A
