Method and device for screening information to be recommended
By configuring the blacklist of items on the server and using the sorting model, the problem of flexibility and low efficiency in filtering the recommended information in the prior art is solved, and personalized recommendations and efficient sorting are achieved.
Patent Information
- Application Number
- CN202010920523.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-04
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2040-09-04
AI Technical Summary
In the prior art, the flexibility of screening information to be recommended is low and the efficiency is low, and it cannot meet the personalized needs of different users.
By preconfiguring the entry blacklist on the server, receiving the client's recommendation request information, extracting the target object's ID, obtaining the corresponding entry blacklist, performing the difference from the recalled entry, sorting the results using the sorting model, and transmitting them to the client end.
It realizes flexible screening and sorting of recommended information, improves the efficiency and user experience of the recommendation system, and can dynamically adjust the recommended content according to the needs of different users.
Smart Images

Figure HDA0002666571150000011 
Figure HDA0002666571150000021 
Figure HDA0002666571150000022
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a method and device for screening information to be recommended. Background Art
[0002] Recommendation systems widely support various applications and systems on the entire Internet. For example, the news client can implement personalized recommendation functions, which requires the support of recommendation systems. Many content displayed on the Internet come from the recommendation results returned by recommendation systems.
[0003] In some scenarios, it is necessary to block recommendation results for different users. For example, if certain items or products are not suitable for teenagers under the age of 18 to view, they need to be blocked.
[0004] In the model design of related technologies, items are screened and filtered according to certain rules so that they are eliminated from the data before training, which fundamentally eliminates the display opportunities of these items. However, this is often a one-size-fits-all approach, that is, all users who use this model to recommend items cannot see these items, which cannot meet the needs of thousands of people. In addition, this method can only take effect after the model training is completed. If some new items are recalled and recommended by a certain rule, it will not take effect.
[0005] Another solution in the related art is to set up an interception module on the web page or APP client, that is, after the backend pushes, the client determines whether such an entry should be blocked, thereby achieving the blocking effect. The disadvantage of this solution is that if the number of entries is reduced after blocking, the terminal will display fewer entries, which may affect the user experience.
[0006] Currently, no effective solution has been proposed to address the problems of low flexibility and low efficiency in screening information to be recommended in related technologies. Summary of the invention
[0007] The main purpose of the present invention is to provide a method and device for screening information to be recommended, so as to solve the problem of low flexibility and low efficiency in screening information to be recommended in the related art.
[0008] In order to achieve the above-mentioned purpose, according to one aspect of the present invention, a method for screening information to be recommended is provided. The method comprises: receiving recommendation request information transmitted by a client, recalling a first entry according to the recommendation request information, wherein the first entry is one or more; extracting a first identification ID of a target object in the recommendation request information, obtaining an entry blacklist corresponding to the first ID, wherein the entry blacklist is pre-configured on a server; performing a difference set processing on the entry blacklist and the first entry to obtain one or more second entries, sorting the second entries using a sorting model, and transmitting the sorting result to the client.
[0009] In order to achieve the above-mentioned purpose, according to another aspect of the present invention, a device for screening information to be recommended is provided. The device comprises: a receiving module, used to receive recommendation request information transmitted by a client, and recall a first entry according to the recommendation request information, wherein the first entry is one or more; an extraction module, used to extract a first identification ID of a target object in the recommendation request information, and obtain an entry blacklist corresponding to the first ID, wherein the entry blacklist is pre-configured on a server; a sorting module, used to perform a difference set processing on the entry blacklist and the first entry, obtain one or more second entries, sort the second entries using a sorting model, and transmit the sorting result to the client.
[0010] Through the present invention, the server where the recommendation engine is located receives the recommendation request information transmitted by the client, recalls one or more items based on the recommendation request information, extracts the first ID of the target object in the recommendation request information, obtains the item blacklist corresponding to the first ID, and the item blacklist is pre-configured on the server by the operator, performs difference set processing on the item blacklist and the first item to obtain one or more second items, sorts the second items using the sorting model, and transmits the one or more second items to the client according to the sorting result. With the above scheme, the staff configures the item blacklist for different IDs on the server, and subsequently filters the information recommended to the client based on the item blacklist. The item blacklist can be flexibly configured, which solves the problem of low flexibility and low efficiency in screening the information to be recommended in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0012] Figure 1 is a flowchart of a method for screening information to be recommended according to an embodiment of the present invention;
[0013] Figure 2is a flowchart of a recommendation system according to an embodiment of the present application;
[0014] Figure 3 is a schematic diagram of a device for screening information to be recommended according to an embodiment of the present invention. DETAILED DESCRIPTION
[0015] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0016] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0017] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0018] According to an embodiment of the present invention, a method for screening information to be recommended is provided, and this solution can be applied to a server side where a recommendation engine runs.
[0019] Figure 1 FIG. 1 is a flow chart of a method for screening information to be recommended according to an embodiment of the present invention. Figure 1 As shown, the invention comprises the following steps:
[0020] Step S101, receiving recommendation request information transmitted by a client, and recalling a first item according to the recommendation request information, wherein the first item may be one or more;
[0021] The client can be a mobile device such as a mobile phone or tablet computer, or a device such as a PC.
[0022] One or more first items are information to be recommended. These items may involve text, images, etc. The client and server may be physical devices, or virtual clients or virtual servers integrated in physical devices, all of which are within the scope of protection of this application.
[0023] Optionally, recalling the first item according to the recommendation request information includes: obtaining search results corresponding to the recommendation request information through a recommendation engine on the server; and recalling a batch of the search results according to the relevance to the recommendation request information as the first item. The first item finally recalled may be a part of the search results, and the relevance is the Euclidean distance of different information feature degrees, etc.
[0024] Step S102, extracting the first identification ID of the target object in the recommendation request information, and acquiring an item blacklist corresponding to the first ID, wherein the item blacklist is pre-configured on the server;
[0025] The target object may be a user using the client.
[0026] Optionally, before extracting the first identification (Identity document, referred to as ID) of the target object in the recommendation request information and obtaining the entry blacklist corresponding to the first ID, the blacklist is generated in the following manner: receiving an input signal on the user interface (User Interface, referred to as UI) of the server where the recommendation engine is located, and configuring the entry blacklist corresponding to the ID of different target objects according to the input signal; storing the specific data of the entry blacklist in the Redis cache, the keyword Key of the specific data is the ID of the different target objects, and the value value is the corresponding entry blacklist set ID. With this solution, the staff can configure the entry blacklist with different IDs on the server at any time, which is flexible enough.
[0027] Step S103: Perform set difference processing on the entry blacklist and the first entry to obtain one or more second entries, sort the second entries using a sorting model, and transmit the sorting result to the client.
[0028] The blacklist entry and the first entry are processed as a difference set, that is, the blacklisted information in the first entry is deleted, and the information not included in the blacklist is retained.
[0029] Optionally, the blacklist of items is processed as a difference set with the first item, and after obtaining one or more second items, it is detected whether the number of the second items meets the recommended quantity requirement; if it is lower than the recommended quantity requirement, the recommendation engine is called to continue to generate a third item, and the third item is added to the second item; it is repeatedly determined whether the number of the second items meets the recommended quantity requirement until it meets the recommended quantity requirement. This solution can avoid the problem of insufficient recommended items after blacklist screening, such as the recommendation page is sufficient, but the number of recommended items is small and only occupies a small area, affecting the user experience and failing to start the recommendation effect.
[0030] Optionally, when it is detected that the number of the second items meets the recommendation quantity requirement, the ranking model is used to score and rank the second items. This solution ensures that the number of items pushed to the user is sufficient, increasing the probability that the user is interested in the pushed information.
[0031] Through the present invention, the server where the recommendation engine is located receives the recommendation request information transmitted by the client, recalls one or more items based on the recommendation request information, extracts the first ID of the target object in the recommendation request information, obtains the item blacklist corresponding to the first ID, and the item blacklist is pre-configured on the server by the operator, performs difference set processing on the item blacklist and the first item to obtain one or more second items, sorts the second items using the sorting model, and transmits the one or more second items to the client according to the sorting result. With the above scheme, the staff configures the item blacklist for different IDs on the server, and subsequently filters the information recommended to the client based on the item blacklist. The item blacklist can be flexibly configured, which solves the problem of low flexibility and low efficiency in screening the information to be recommended in the related technology.
[0032] Figure 2 is a flow chart of a recommendation system according to an embodiment of the present application. Figure 2 As shown, the following steps are included:
[0033] S1, the client requests the recommendation engine service;
[0034] S2, the recommendation engine recalls a batch of candidate entries according to their relevance, and the number of such candidates is often greater than the number of recommended results required in the end.
[0035] S3, then obtains the client's user ID to obtain the blacklist rule bound to the ID. The blacklist rule often defines a group of item IDs that are prohibited from being pushed.
[0036] S4, the recommendation engine performs a difference calculation between the recalled candidate item ID and the item ID on the blacklist to obtain the remaining candidate item list;
[0037] S5, then judge whether the number of candidate item lists meets the final required number of results, if so, go to S6, if not, go to S2, until the requirement of the number of recommended results is met.
[0038] S6, the sorting model scores and sorts the entries and returns the results to the client.
[0039] The above solution mainly complements the recommendation algorithm. The human intervention mechanism can be reflected in the recommendation results to meet the different needs of different users for blocking different content. It can be applied to scenarios such as age restrictions and recommendation flooding.
[0040] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0041] The embodiment of the present invention further provides a device for screening information to be recommended. It should be noted that the device for screening information to be recommended in the embodiment of the present invention can be used to execute the method for screening information to be recommended provided in the embodiment of the present invention. The device for screening information to be recommended provided in the embodiment of the present invention is introduced below.
[0042] Figure 3 is a schematic diagram of a device for screening information to be recommended according to an embodiment of the present invention. Figure 3 As shown, the device comprises:
[0043] The receiving module 302 is configured to receive recommendation request information transmitted by the client, and to recall a first item according to the recommendation request information, wherein the first item may be one or more items;
[0044] An extraction module 304 is used to extract a first identification ID of a target object in the recommendation request information, and obtain an entry blacklist corresponding to the first ID, wherein the entry blacklist is pre-configured on a server;
[0045] The sorting module 306 is used to perform set difference processing on the entry blacklist and the first entry to obtain one or more second entries, sort the second entries using a sorting model, and transmit the sorting result to the client.
[0046] Optionally, the receiving module 302 is further configured to obtain search results corresponding to the recommendation request information through a recommendation engine on the server; and to recall a batch of the search results according to their relevance to the recommendation request information as the first entries.
[0047] Optionally, after performing a difference set processing on the entry blacklist and the first entry to obtain one or more second entries, the sorting module 306 is also used to detect whether the number of the second entries meets the recommended quantity requirement; and if it is lower than the recommended quantity requirement, calling the recommendation engine to continue generating a third entry and adding the third entry to the second entry; and repeatedly determining whether the number of the second entries meets the recommended quantity requirement until it meets the recommended quantity requirement.
[0048] Optionally, the sorting module 306 is further configured to, when it is detected that the number of the second entries meets the recommended quantity requirement, use the sorting model to score and sort the second entries.
[0049] Optionally, before extracting the first identification ID of the target object in the recommendation request information and obtaining the entry blacklist corresponding to the first ID, the extraction module is also used to generate the blacklist in the following manner: receiving an input signal on the user interface UI of the server where the recommendation engine is located, and configuring an entry blacklist corresponding to the IDs of different target objects according to the input signal; storing specific data of the entry blacklist in a Redis cache, wherein the keyword Key of the specific data is the ID of the different target objects, and the value value is the corresponding entry blacklist set ID.
[0050] Optionally, in the device for screening information to be recommended provided by the embodiment of the present invention, the server where the recommendation engine is located receives the recommendation request information transmitted by the client, recalls one or more items based on the recommendation request information, extracts the first ID of the target object in the recommendation request information, obtains the item blacklist corresponding to the first ID, and the item blacklist is pre-configured on the server by the operator, performs difference set processing on the item blacklist and the first item to obtain one or more second items, sorts the second items using the sorting model, and transmits the one or more second items to the client according to the sorting result. With the above scheme, the staff configures the item blacklist for different IDs on the server, and subsequently screens the information recommended to the client based on the item blacklist. The item blacklist can be flexibly configured, which solves the problem of low flexibility and low efficiency in screening information to be recommended in the related technology.
[0051] The device for screening information to be recommended includes a processor and a memory. The receiving module 302, the extracting module 304, the sorting module 306, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0052] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the staff can configure the entry blacklist for different IDs on the server by adjusting the kernel parameters. The information recommended to the client is subsequently filtered based on the entry blacklist. The entry blacklist can be flexibly configured, which solves the problem of low flexibility and low efficiency in filtering the recommended information in the related technology.
[0053] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0054] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the method for screening the information to be recommended is implemented.
[0055] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for screening the information to be recommended is executed when the program is running.
[0056] The embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: receiving recommendation request information transmitted by a client, and recalling a first entry according to the recommendation request information, wherein the first entry is one or more; extracting a first identification ID of a target object in the recommendation request information, and obtaining an entry blacklist corresponding to the first ID, wherein the entry blacklist is pre-configured on a server; performing a difference set processing on the entry blacklist and the first entry to obtain one or more second entries, and using a sorting model to sort the second entries, and transmitting the sorting result to the client. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0057] The present invention also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: receiving recommendation request information transmitted by a client, and recalling a first entry based on the recommendation request information, wherein the first entry is one or more; extracting a first identification ID of a target object in the recommendation request information, and obtaining an entry blacklist corresponding to the first ID, wherein the entry blacklist is pre-configured on a server; performing a difference set processing on the entry blacklist and the first entry to obtain one or more second entries, sorting the second entries using a sorting model, and transmitting the sorting result to the client.
[0058] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0059] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0060] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0061] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0062] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0063] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0064] 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 magnetic 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.
[0065] 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.
[0066] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0067] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A method for screening information to be recommended, characterized in that: include: Receive recommendation request information transmitted by a client, recall a first item according to the recommendation request information, and obtain search results corresponding to the recommendation request information through a recommendation engine on a server; recall a batch of search results according to relevance to the recommendation request information as the first item, wherein the first item is one or more; Extracting a first identification ID of a target object in the recommendation request information, and acquiring an entry blacklist corresponding to the first identification ID, wherein the entry blacklist is pre-configured on a server; Performing set difference processing on the entry blacklist and the first entry to obtain one or more second entries, detecting whether the number of the second entries meets the recommended number requirement; if it is less than the recommended number requirement, calling the recommendation engine to continue generating a third entry, and adding the third entry to the second entry; repeatedly determining whether the number of the second entries meets the recommended number requirement until it meets the recommended number requirement; sorting the second entries using a sorting model, and transmitting the sorting result to the client; Wherein, before extracting the first identification ID of the target object in the recommendation request information and obtaining the blacklist of entries corresponding to the first identification ID, the blacklist is generated in the following manner: Receiving an input signal on a user interface UI of the server where the recommendation engine is located, configuring an item blacklist corresponding to the IDs of different target objects according to the input signal, and subsequently filtering information planned to be recommended to the client according to the item blacklist, wherein the item blacklist can be flexibly configured; The specific data of the entry blacklist is stored in the Redis cache, the keyword Key of the specific data is the ID of different target objects, and the value value is the corresponding entry blacklist set ID.
2. The method according to claim 1, characterized in that When it is detected that the number of the second entries meets the recommended quantity requirement, the ranking model is used to score and rank the second entries.
3. A device for screening information to be recommended, characterized in that: include: a receiving module, configured to receive recommendation request information transmitted by a client, recall the first item according to the recommendation request information, and obtain search results corresponding to the recommendation request information through a recommendation engine on a server; and for recalling a batch of the search results according to the relevance to the recommendation request information as the first items, wherein the first items are one or more; an extraction module, configured to extract a first identification ID of a target object in the recommendation request information, and obtain an entry blacklist corresponding to the first identification ID, wherein the entry blacklist is pre-configured on a server; a sorting module, configured to perform set difference processing on the entry blacklist and the first entry to obtain one or more second entries, and to detect whether the number of the second entries meets the recommended number requirement; and to call the recommendation engine to continue generating a third entry if the number is lower than the recommended number requirement, and to add the third entry to the second entry; and to repeatedly determine whether the number of the second entries meets the recommended number requirement until the number meets the recommended number requirement; sorting the second entries using a sorting model, and transmitting the sorting result to the client; Wherein, before extracting the first identification ID of the target object in the recommendation request information and obtaining the blacklist of entries corresponding to the first identification ID, the extraction module is further used to generate the blacklist in the following manner: Receiving an input signal on a user interface UI of the server where the recommendation engine is located, configuring an item blacklist corresponding to the IDs of different target objects according to the input signal, and subsequently filtering information planned to be recommended to the client according to the item blacklist, wherein the item blacklist can be flexibly configured; The specific data of the entry blacklist is stored in the Redis cache, the keyword Key of the specific data is the ID of different target objects, and the value value is the corresponding entry blacklist set ID.
4. A "computer-readable storage medium" or "non-volatile storage medium", characterized in that: The "computer-readable storage medium" or "non-volatile storage medium" includes a stored program, wherein when the program is running, the device where the "computer-readable storage medium" or "non-volatile storage medium" is controlled to execute the method for screening the information to be recommended as described in any one of claims 1 to 2.
5. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the method for screening information to be recommended as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Application program recommendation method, server and mobile terminal
CN106503078A
Account recommendation method and device
CN111597454A