CN108734548B - Item recommendation method and device - Google Patents

Item recommendation method and device Download PDF

Info

Publication number
CN108734548B
CN108734548B CN201810395328.6A CN201810395328A CN108734548B CN 108734548 B CN108734548 B CN 108734548B CN 201810395328 A CN201810395328 A CN 201810395328A CN 108734548 B CN108734548 B CN 108734548B
Authority
CN
China
Prior art keywords
recommended
article
value
item
obtaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810395328.6A
Other languages
Chinese (zh)
Other versions
CN108734548A (en
Inventor
刘英涛
于敬
纪达麒
陈运文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Daguan Data Co ltd
Original Assignee
Datagrand Information Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datagrand Information Technology Shanghai Co ltd filed Critical Datagrand Information Technology Shanghai Co ltd
Priority to CN201810395328.6A priority Critical patent/CN108734548B/en
Publication of CN108734548A publication Critical patent/CN108734548A/en
Application granted granted Critical
Publication of CN108734548B publication Critical patent/CN108734548B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Item recommendations

Abstract

The application discloses an article recommendation method and device. The method comprises the steps of obtaining a plurality of recommended articles and a first recommended value corresponding to each recommended article according to N target articles, and obtaining the first recommended value of each recommended article in descending order, wherein each recommended article is related to at least one target article; in the descending sorting of the first recommended value of each recommended article, the similarity value of each recommended article relative to the previous recommended article is obtained, wherein the similarity value included in the first recommended article is a first preset value; and performing data processing on the first recommended value corresponding to each recommended article according to the similarity value included by each recommended article to obtain a second recommended value of each recommended article, so as to obtain a second recommended value sequence of each recommended article. The method and the device solve the technical problem that when a user refers to the recommendation result, the contents of a plurality of adjacent recommended articles are the same or identical.

Description

Item recommendation method and device
Technical Field
The application relates to the technical field of data application, in particular to an article recommendation method and device.
Background
With the rapid development of the internet, the application scenes of the article recommendation method are more and more, and the article recommendation method is widely integrated into a plurality of business application systems, and the well-known Netflix online video recommendation system, Amazon online shopping mall, today's top line and the like. In fact, most information platforms apply item recommendation methods to different degrees, such as news in New wave, today's headlines, etc. The related recommendation provided by the article recommendation method can help a user to better find the articles related to the current articles, related commodities can be sold in a binding mode in an e-commerce platform, related information recommended by the article recommendation method can be used for deep reading or interest discovery and the like in an information platform, and the method is an important application scene for showing the value of a recommendation system.
In the prior art, an article recommendation method is to recommend based on user behaviors, generally based on historical behavior records of users, determine similarity between articles, and recommend according to the similarity of the articles.
In the process of implementing the embodiment of the present application, the inventor finds that the prior art has at least the following technical problems:
in the prior art, the contents of recommended items with different Uniform Resource Locators (URLs) may be the same or similar, which may cause the contents of multiple adjacent recommended items to be the same or similar when a user refers to a recommendation result, and further may reduce the interest of the user in the recommended items, thereby affecting the recommendation experience of the user.
Disclosure of Invention
The application mainly aims to provide an article recommendation method and device, so as to solve the problem that when a user refers to a recommendation result, the contents of a plurality of adjacent recommended articles are the same or identical.
In order to achieve the above object, in a first aspect, an embodiment of the present application provides an item recommendation method.
The item recommendation method according to the application comprises the following steps:
obtaining a plurality of recommended articles and a first recommended value corresponding to each recommended article according to the N target articles, and obtaining the first recommended value of each recommended article in descending order, wherein N is an integer greater than 0, and each recommended article is related to at least one target article;
in the descending sorting of the first recommended value of each recommended article, the similarity value of each recommended article relative to the previous recommended article is obtained, wherein the similarity value included in the first recommended article is a first preset value;
and performing data processing on the first recommended value corresponding to each recommended article according to the similarity value included by each recommended article to obtain a second recommended value of each recommended article, so as to obtain a second recommended value sequence of each recommended article.
Optionally, the data processing is performed on the first recommended value corresponding to each recommended item according to the similarity value included in each recommended item, and the obtaining of the second recommended value of each recommended item includes:
acquiring a dissimilarity value of each recommended article relative to the recommended article at the previous position according to the similarity value included by each recommended article;
and performing data processing on the first recommended value corresponding to each recommended article according to the dissimilarity value included in each recommended article to obtain a second recommended value of each recommended article.
Optionally, when the dissimilarity value of the recommended item relative to the previous recommended item is smaller than a second preset value, the second preset value is selected as the dissimilarity of the recommended item.
Optionally, the item recommendation method further includes:
and acquiring the generation time of each recommended item, performing data processing on the second recommended value of each recommended item according to the current time and the generation time of each recommended item, and acquiring a third recommended value of each recommended item, so as to obtain a third recommended value sequence of each recommended item.
Optionally, the item recommendation method further includes:
acquiring N target articles and recommendation factors corresponding to each target article according to the historical behavior data of the user;
obtaining a plurality of recommended articles and a first recommended value corresponding to each recommended article according to the N target articles, including:
obtaining a plurality of recommended articles and a fourth recommended value corresponding to each recommended article according to the N target articles, and obtaining a fourth recommended value sequence of each recommended article;
and performing data processing on the fourth recommended value corresponding to each recommended article according to the fourth recommended value sequence and the recommendation factor corresponding to each target article to obtain the first recommended value corresponding to each recommended article.
In a second aspect, an article recommendation device provided in an embodiment of the present application includes:
the first obtaining module is used for obtaining a plurality of recommended articles and a first recommended value corresponding to each recommended article according to the N target articles, and obtaining the first recommended value of each recommended article in descending order, wherein N is an integer larger than 0, and each recommended article is related to at least one target article;
the second obtaining module is used for obtaining the similarity value of each recommended article relative to the previous recommended article in the descending order of the first recommended value of each recommended article, wherein the similarity value included in the first recommended article is a first preset value;
and the third acquisition module is used for performing data processing on the first recommended value corresponding to each recommended article according to the similarity value included by each recommended article, and acquiring the second recommended value of each recommended article so as to obtain the second recommended value sequence of each recommended article.
Optionally, the third obtaining module is configured to:
acquiring a dissimilarity value of each recommended article relative to the recommended article at the previous position according to the similarity value included by each recommended article;
and performing data processing on the first recommended value corresponding to each recommended article according to the dissimilarity value included in each recommended article to obtain a second recommended value of each recommended article.
Optionally, the third obtaining module is further configured to select the second preset value as the dissimilarity of the recommended item when the dissimilarity value of the recommended item with respect to the previous recommended item is smaller than the second preset value.
Optionally, the item recommendation device further includes:
and the fourth obtaining module is used for obtaining the generation time of each recommended article, performing data processing on the second recommended value of each recommended article according to the current time and the generation time of each recommended article, and obtaining the third recommended value of each recommended article, so that the third recommended value sequence of each recommended article is obtained.
Optionally, the article recommendation device further includes a fifth obtaining module;
the fifth acquisition module is used for acquiring N target articles and recommendation factors corresponding to the target articles according to the historical behavior data of the user;
a first obtaining module to:
obtaining a plurality of recommended articles and a fourth recommended value corresponding to each recommended article according to the N target articles, and obtaining a fourth recommended value sequence of each recommended article;
and performing data processing on the fourth recommended value corresponding to each recommended article according to the fourth recommended value sequence and the recommendation factor corresponding to each target article to obtain the first recommended value corresponding to each recommended article.
According to the item recommendation method provided in the embodiment of the application, a plurality of recommended items and a first recommendation value corresponding to each recommended item are obtained according to N target items, the first recommendation values of the recommended items are sorted in a descending order, and each recommended item is related to at least one target item; in the descending sorting of the first recommended value of each recommended article, the similarity value of each recommended article relative to the previous recommended article is obtained, wherein the similarity value included in the first recommended article is a first preset value; and performing data processing on the first recommended value corresponding to each recommended article according to the similarity value included by each recommended article to obtain a second recommended value of each recommended article, so as to obtain a second recommended value sequence of each recommended article. Therefore, the content similarity of two adjacent recommended articles in the second recommended value sorting can be prevented, the recommended values of the recommended articles are adjusted according to the similarity between the recommended articles, the content diversity of the recommended results is improved, the content diversity of the recommended articles is realized, the interest of a user in the recommended articles is promoted, the recommended experience of the user is improved, and the technical problem that the content of a plurality of adjacent recommended articles is the same or identical when the user refers to the recommended results is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a flow chart of a method of item recommendation according to an embodiment of the present application;
FIG. 2 is a flowchart of a step S300 according to an embodiment of the present application;
FIG. 3 is a flow chart of another method of item recommendation according to an embodiment of the present application;
FIG. 4 is a flowchart of a step S400 according to an embodiment of the present application;
FIG. 5 is a flowchart of a step S420 according to an embodiment of the present application;
fig. 6 is a flowchart of a step S421 according to an embodiment of the present application;
FIG. 7 is a flow chart of another method of item recommendation according to an embodiment of the present application;
FIG. 8 is a flowchart of a step S120 according to an embodiment of the present application;
FIG. 9 is a flowchart of a step S110 according to an embodiment of the present application;
FIG. 10 is a schematic diagram of an article recommendation device according to an embodiment of the present application;
FIG. 11 is a schematic diagram of another article recommendation device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another article recommendation device according to an embodiment of the application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
An embodiment of the present application provides an item recommendation method, as shown in fig. 1, the method includes the following steps S100 to S300:
s100, obtaining a plurality of recommended articles and a first recommended value corresponding to each recommended article according to the N target articles, and obtaining the first recommended value of each recommended article in descending order, wherein N is an integer larger than 0, and each recommended article is related to at least one target article.
In this embodiment, the target object may also be information in an information platform, for example, the target object may be a sports news or an entertainment news; the target object may also be a video in a video platform, for example, the target object may be a movie or a tv show; the target object can be a commodity or a service item in an e-commerce platform, for example, the target object can be an electronic product or a consultation service item on a certain e-commerce platform. Correspondingly, the recommended article related to the target article can be information in an information platform; the video platform can also be used for video, and goods or service items in the E-commerce platform can also be used.
In an implementation, the method for obtaining a plurality of recommended items related to the target item may be a plurality of recommended items related to the target item generated based on a content recommendation method, a plurality of recommended items related to the target item generated according to a user collaborative recommendation method or an item collaborative recommendation method, a plurality of recommended items related to the target item generated according to a business rule recommendation method, or a union set generated by the methods, where the union set includes the plurality of recommended items related to the target item generated by the methods, and the method obtains the plurality of recommended items related to the target item and obtains a recommendation value corresponding to each recommended item.
Wherein, the value of N can be 1, 2, 3, 4, 5 … …
S200, in descending order of the first recommended value of each recommended article, obtaining the similarity value of each recommended article relative to the previous recommended article, wherein the similarity value included in the first recommended article is a first preset value.
In this embodiment, the recommended item ranked first in the descending order of the first recommended value may have no recommended item in front of it, and therefore, the similarity value of the recommended item ranked first may be set to a first preset value, where optionally, the value of the first preset value may be 0.
In implementation, when the similarity value of each recommended item with respect to the previous recommended item is obtained, the similarity value of the recommended item with respect to the previous recommended item may be calculated by using titles (titles) included in two adjacent recommended items, where the calculation method may adopt an existing similarity calculation method.
And S300, performing data processing on the first recommended value corresponding to each recommended article according to the similarity value included in each recommended article, and acquiring the second recommended value of each recommended article, so as to obtain the second recommended value sequence of each recommended article.
In this embodiment, the second recommendation value corresponding to each recommended item is subjected to data processing according to the similarity value included in each recommended item, so that the second recommendation value corresponding to each recommended item is adjusted according to the content information, and the first recommendation value of each recommended item is generated. Therefore, the content similarity of two adjacent recommended articles can be prevented, the recommended value of the recommended articles is adjusted according to the similarity between the recommended articles, and the content diversity of the recommended result is improved, so that the content diversity of the recommended articles is realized, the interest of the user in the recommended articles is promoted, and the recommendation experience of the user is improved.
As shown in fig. 2, optionally, step S300 is to perform data processing on the first recommended value corresponding to each recommended item according to the similarity value included in each recommended item, and obtain the second recommended value of each recommended item, so as to obtain the second recommended value ranking of each recommended item, and includes steps S310 and S320 as follows:
s310, according to the similarity value included by each recommended article, obtaining the dissimilarity value of each recommended article relative to the previous recommended article.
And S320, performing data processing on the first recommended value corresponding to each recommended article according to the dissimilarity value included in each recommended article, and acquiring a second recommended value of each recommended article.
In this embodiment, the third recommended value of the recommended item may be a product of a dissimilarity value of the recommended item with respect to a previous recommended item and the second recommended value corresponding to the recommended item.
For example, if the second recommended value corresponding to a recommended item is 0.9 and the dissimilarity value of the recommended item with respect to the previous recommended item is 0.3, then the third recommended value of the recommended item is 0.27 (the product of 0.9 and 0.3).
Optionally, when the dissimilarity value of the recommended item relative to the previous recommended item is smaller than a second preset value, the second preset value is selected as the dissimilarity of the recommended item.
In implementation, the second preset value may be set to prevent that the dissimilarity value of the recommended item with respect to the previous recommended item is too small, which may result in that the third recommended value of the recommended item is too small, and further affect the processing operation of other subsequent steps on the recommended item.
In this embodiment, data processing is performed on the first recommended value corresponding to each recommended item according to the similarity value included in each recommended item, so as to obtain the second recommended value of each recommended item, where the data processing may be implemented by the following formula:
rec_scorei=rec_scorei*max((1-sim(itemi,itemi-1)),a)
wherein, the left rec _ score of equal signiIs the second recommended value of the ith recommended item, rec _ score on the right side of the equal signiIs the first recommended value, sim (item), for the ith recommended itemi,itemi-1) (ii) is the similarity value of the ith recommended item to the previous recommended item, (1-sim (item)i,itemi-1) Is the dissimilarity value of the ith recommended item relative to the previous recommended item, a is a second preset value,the value of the second preset value may be 0.08, 0.1, 0.2, and the like, and those skilled in the art may specifically set the value according to actual needs.
As shown in fig. 3, optionally, the item recommendation method further includes the following step S400:
s400, obtaining the generation time of each recommended article, performing data processing on the second recommended value of each recommended article according to the current time and the generation time of each recommended article, and obtaining the third recommended value of each recommended article, so as to obtain the third recommended value sequence of each recommended article.
In this embodiment, the generation time of the recommended item may be a Uniform Resource Locator (URL) generation time of the recommended item; the current time is the time at which the recommendation was generated.
In the implementation, the second recommended value of each recommended item is subjected to data processing according to the current time and the generation time of each recommended item, so that in the process of performing data processing on the second recommended value of each recommended item, the influence of a time factor on the second recommended value is added, the timeliness of the recommended items is considered, the purpose of recommending the recommended items with good timeliness to the user is achieved, the recommended items with good timeliness and high relevance to the interest of the user are recommended to the user, and the technical effect of improving the interest of the user on the recommended items is achieved.
As shown in fig. 4, optionally, in S400, data processing is performed on the second recommended value of each recommended item according to the current time and the generation time of each recommended item, so as to obtain a third recommended value ranking of each recommended item, where the method includes steps S410 to S430 as follows:
and S410, acquiring the generation duration of each recommended item according to the current time and the generation time of each recommended item.
In implementation, the generation time of the recommended item, that is, the length of time that the recommended item exists from the generation to the current time, may be obtained by subtracting the generation time of the recommended item from the current time, and the time unit of the generation time may be seconds, minutes, hours, days, and the like.
For example, if a recommended item is a piece of sports news about the west, the generation time of the sports news about the west is 18 hours, 35 minutes and 18 seconds at 4 months, 17 days, 2018 years, 4 months, 19 days, 19 hours, 45 minutes and 30 seconds at 2018 years, the generation time of the sports news about the west is specifically 2 days, 1 hour, 10 minutes and 12 seconds, the generation time of the sports news about the west is 49.17 hours when the time unit is hour, and the generation time of the sports news about the west is 177012 seconds when the time unit is second.
And S420, acquiring an aging factor of each recommended item according to the first preset time duration evaluation value and the generation time duration of each recommended item.
In this embodiment, the first preset time duration evaluation value is a preset value, and may be set or adjusted according to actual needs, and the first preset time duration evaluation value may be a constant, or may be a value having a time unit.
In implementation, the aging factor of the recommended article is obtained by calculating the production time length of the recommended article and the first preset time length evaluation value.
For example, if a recommended item is social news about an ecological environment, the generation time of the social news about the ecological environment is 30 minutes, the first preset time duration evaluation value is 1440 minutes, and the operation is a ratio of the first preset time duration to the generation time duration, then the aging factor of the social news about the ecological environment is 48 (a ratio of 1440 minutes to 30 minutes).
And S430, calculating the second recommended value of each recommended article according to the aging factor of each recommended article, and acquiring a third recommended value of each recommended article, so as to obtain a third recommended value sequence of each recommended article.
In this embodiment, the second recommended value of the recommended item is calculated according to the aging factor of the recommended item, so as to obtain a third recommended value of the recommended item.
For example, if the operation is the product of the aging factor of the recommended item and the second recommended value of the recommended item, the aging factor of the recommended item is 2, the second recommended value of the recommended item is 0.9001, and then the third recommended value of the recommended item is 1.8002(2 is multiplied by 0.9001).
As shown in fig. 5, optionally, in step S420, obtaining an aging factor of each recommended item according to the first preset time duration evaluation value and the generation time duration of each recommended item, where the steps S421 to S422 include:
s421, acquiring a first time length evaluation value of each recommended item according to the generation time length of each recommended item.
In this embodiment, the evaluation value corresponding to the generation time length may be obtained according to the generation time length of the recommended item, that is, the first time length evaluation value, and the first time length evaluation value may be obtained by performing data processing on the generation time length of the recommended item, for example, by dividing the generation time length of the recommended item by one unit time, so as to obtain the first time length evaluation value corresponding to the generation time length.
For example, if the generation time of a certain recommended item is 4 days and the unit time is day, the first time evaluation value may be 4.
And S422, according to the ratio of the first preset time length evaluation value to the first time length evaluation value of each recommended article, the aging factor of each recommended article.
In this embodiment, the aging factor of the recommended item may be a ratio obtained from a ratio of the first preset time period evaluation value to the first time period evaluation value of the recommended item.
For example, if the first preset time period evaluation value is 1000 and the first time period evaluation value of a recommended item is 5, the aging factor of the recommended item is 200(1000 divided by 5).
As shown in fig. 6, optionally, the step S421 of acquiring the first time length evaluation value of each recommended item according to the generation time length of each recommended item includes the following steps S4211 to S4212:
s4211, acquiring a second time length evaluation value of each recommended article according to the ratio of the generation time length of each recommended article to the unit time.
In this embodiment, the second time period evaluation value of the recommended item may be a ratio obtained from a ratio of the generation time period of the recommended item to the unit time.
For example, if the generation time period of a certain recommended item is 30 hours and the unit time is hours, then the second time period evaluation value of the recommended item is 30, and for example, if the generation time period of another recommended item is 0, that is, if the recommended item is generated at the current time, then the second time period evaluation value of the recommended item is 0.
And S4212, acquiring a first time length evaluation value of each recommended item according to the sum of the second preset time length evaluation value and the second time length evaluation value of each recommended item.
In the present embodiment, to prevent the first time length evaluation value from being 0, the first time length evaluation value is the sum of a second preset time length evaluation value, which is a value greater than 0, and a second time length evaluation value of each recommended item.
For example, the second preset time period evaluation value may be 1, and when the second time period evaluation value of a certain recommended item is 0, the first time period evaluation value of the recommended item is 1.
In this embodiment, in S400, the generation time of each recommended item is obtained, data processing is performed on the second recommended value of each recommended item according to the current time and the generation time of each recommended item, and a third recommended value of each recommended item is obtained, specifically:
and adjusting the timeliness of the second recommended value of the recommended item according to the generation time and the current time of the recommended item to obtain a third recommended value of the recommended item, wherein the formula is as follows:
Figure BDA0001644451990000111
wherein, the left rec _ score of equal signiIs the third recommended value of the ith recommended item, the rec _ score _ i on the right side of the equal sign is the second recommended value of the ith recommended item, cur _ time is the current time, the time unit is second, and create _ time isiIs the generation time of the ith recommended item, the time unit is second, consttime1The evaluation value of the first preset duration evaluation value may be specifically set by a person skilled in the art according to actual needs, for example, the evaluation value of the first preset duration evaluation value may be 1, 5, 10, 30, 100, 300, 1000, and the like; in the formula, consttime2The evaluation value of the second preset duration evaluation value may be specifically set by a person skilled in the art according to actual needs, for example, the evaluation value of the second preset duration evaluation value may be 1, and the like; in the formula, (cur _ time-create _ timei) Is the generation duration of the ith recommended item, (cur _ time-create _ time)i) /86400 is the second time period evaluation value of the ith recommended item, (consttime2+(cur_time-create_timei) 86400) is the first time length evaluation value of the ith recommended item.
As shown in fig. 7, optionally, the item recommendation method further includes the following step S010:
s010, acquiring N target articles and recommendation factors corresponding to each target article according to the historical behavior data of the user;
s100, acquiring a plurality of recommended articles and a first recommended value corresponding to each recommended article according to the N target articles, including the following steps S110 and S120:
s110, obtaining a plurality of recommended articles and a fourth recommended value corresponding to each recommended article according to the N target articles, and obtaining a fourth recommended value sequence of each recommended article;
and S120, performing data processing on the fourth recommended value corresponding to each recommended article according to the fourth recommended value sequence and the recommendation factor corresponding to each target article to obtain the first recommended value corresponding to each recommended article.
In this embodiment, in step 010, N target items are obtained according to the user historical behavior data, specifically: extracting M operation articles from the latest operation records (operation articles on the current day) in the user history browsing according to the category information, the relevance and the operation time of the operation articles as target articles of recent interest; and (3) by using historical browsing data of a user (generally, operating articles of 3-5 days are adopted), and Q operating articles extracted from the historical browsing data are taken as target articles of historical interest according to the category information and the correlation of the operating articles, wherein M + Q is N. And generates recommendation factors for each target item, wherein each recommendation factor can be a topic (such as a topic related to a certain entertainment star) or business information or experience information. The service information can be set for service requirements, for example, articles related to certain topics need to be popularized; the experience information may be historical experience, for example, when the title of an item contains a specific word, for example, when the target item is sports news, the content of the target item contains "mei xi", and the recommendation factor is related to "mei xi".
In implementation, in step S110, recommended article screening is performed on N target articles according to an existing article recommendation method, a plurality of recommended articles are obtained, a fourth recommended value corresponding to each recommended article is obtained, and a fourth recommended value ranking of each recommended article is obtained. In step S120, each recommended item corresponds to at least one target item, and each target item corresponds to one recommendation factor, so that each recommended item corresponds to at least one recommendation factor, and the fourth recommendation value of the recommended item is calculated according to the serial number position of the recommended item in the fourth recommendation value ranking and the corresponding recommendation factor, so as to obtain the first recommendation value of the recommended item, and further obtain the first recommendation value ranking of each recommended item.
As shown in fig. 8, optionally, step S120, performing data processing on the fourth referral value corresponding to each recommended item according to the fourth referral value ranking and the recommendation factor corresponding to each target item, and obtaining the first recommended value corresponding to each recommended item, includes the following steps S121 to S123:
and S121, determining a recommendation factor corresponding to each recommended item according to each recommended item and the related target item.
In this embodiment, each recommended item corresponds to at least one target item, and each target item corresponds to one recommendation factor, so that each recommended item corresponds to at least one recommendation factor.
And S122, obtaining the corresponding recommendation factor sequence of each recommended article according to the fourth recommendation value sequence and the recommendation factor corresponding to each recommended article, and determining the sequence number of each recommended article in the corresponding recommendation factor sequence.
In this embodiment, according to the sequence number position of the recommended item in the fourth recommended value sequence, the sequence between a plurality of recommended items corresponding to the same recommendation factor is determined, so as to determine the sequence number of each recommended item in the corresponding recommendation factor sequence.
For example, there are 3 recommended articles corresponding to one recommendation factor, which are respectively a first recommended article, a second recommended article, and a third recommended article, where sequence numbers of the first recommended article, the second recommended article, and the third recommended article in the fourth recommended value ranking are respectively 2 nd, 9 th, and 4 th, and then sequence numbers of the 3 recommended articles relative to the corresponding recommendation factor ranking are respectively: the first recommended article corresponds to the serial number 1, the second recommended article corresponds to the serial number 3, and the third recommended article corresponds to the serial number 2.
And S123, performing data processing on the fourth recommended value corresponding to each recommended article according to the serial number of each recommended article in the corresponding recommendation factor sequence, and acquiring the first recommended value corresponding to each recommended article.
In this embodiment, data processing is performed on the fourth recommended value corresponding to the recommended item according to the serial number of the recommended item in the corresponding recommendation factor ranking, and the data processing may be implemented by the following formula:
Figure BDA0001644451990000141
in the formula, rec _ score is on the left side of equal signiIs the first recommended value of the ith recommended item, rec _ score on the right side of the equal signiIs the fourth recommended value for the ith recommended item,
Figure BDA0001644451990000142
is the serial number of the ith recommended item in the corresponding recommendation factor sequence (or when the fourth recommendation value sequence is a descending sequence)Time, number of occurrences of recommendation factor), constrsnThe recommendation factor is a preset constant corresponding to each recommendation factor, optionally, the preset constant may select different values according to different recommendation factors, and the preset constant may also adopt a preset fixed value, for example, the value may be 1.
In addition, optionally, when the recommended item has at least two corresponding first recommended values, a maximum first recommended value of the at least two first recommended values of the recommended item is selected as the first recommended value corresponding to the recommended item.
As shown in fig. 9, optionally, in step S110, obtaining a plurality of recommended items and a fourth recommended value corresponding to each recommended item according to the N target items, and obtaining a fourth recommended value ranking of each recommended item, includes steps S1101 to S1107 as follows:
s1101, obtaining at least one recommendation set according to each target article, wherein each recommendation set comprises a plurality of recommendation articles related to the target article, and each recommendation article corresponds to a fifth recommendation value.
In this embodiment, each target item may be subjected to recommended item screening by using each existing item recommendation method, so as to obtain one recommendation set.
And S1102, normalizing the fifth recommended value corresponding to the recommended article in each recommended set, and acquiring a sixth recommended value corresponding to each recommended article.
In this embodiment, normalization processing is performed on the fifth recommended value corresponding to the recommended item included in each recommended set, and a sixth recommended value corresponding to each recommended item is obtained, which may be implemented by the following formula:
Figure BDA0001644451990000151
wherein, the left rec _ score of equal signiIs the sixth recommended value of the ith recommended item in a certain recommended set, rec _ score on the left side of equal signiIs the fifth recommendation value, rec _ score, for the ith recommended item in a recommendation set1Is a rowAnd the fifth recommended value with the maximum value in a certain recommended set. After each recommendation set is normalized in this way, each sixth recommendation value is [0, 1 ]]Within the interval (c).
And S1103, fusing all recommendation sets into a recommendation union set, wherein when the same recommended item exists in different recommendation sets, the sixth recommendation value of the recommended item in the recommendation union set is the sum of the sixth recommendation values corresponding to the recommended item in different recommendation sets.
And S1104, determining the descending order of the sixth recommended value of each recommended item in the recommended union set.
And S1105, obtaining the category of each recommended item.
S1106, obtaining the category sequence of each recommended article according to the descending sequence of the sixth recommended value and the category to which each recommended article belongs, and determining the sequence number of each recommended article in the corresponding category sequence to which each recommended article belongs.
And S1107, performing data processing on the sixth recommended value corresponding to each recommended item according to the serial number of each recommended item in the corresponding belonged category sequence, and acquiring the fourth recommended value corresponding to each recommended item, so as to obtain the fourth recommended value sequence of each recommended item.
In this embodiment, data processing is performed on the sixth recommended value corresponding to each recommended item according to the serial number of each recommended item in the corresponding category ranking to which each recommended item belongs, so as to obtain the fourth recommended value corresponding to each recommended item, which can be implemented according to the following formula:
Figure BDA0001644451990000152
wherein, the left rec _ score of equal signiIs the fourth recommended value of the ith recommended item, rec _ score on the right side of the equal signiIs the sixth recommended value for the ith recommended item,
Figure BDA0001644451990000153
is the serial number (or
Figure BDA0001644451990000154
Is the number of occurrences of the ith recommended item in the sixth recommended value descending order), constcateIs a class constant that may be set to 1 or other value greater than 0.
In the item recommendation method provided in the embodiment of the application, through S100, a plurality of recommended items and a first recommendation value corresponding to each recommended item are obtained according to N target items, and the first recommendation values of each recommended item are sorted in a descending order, where each recommended item is related to at least one target item; s200, in descending order sorting of the first recommended value of each recommended article, obtaining the similarity value of each recommended article relative to the previous recommended article, wherein the similarity value included in the first recommended article is a first preset value; and S300, performing data processing on the first recommended value corresponding to each recommended article according to the similarity value included in each recommended article, and acquiring the second recommended value of each recommended article, so as to obtain the second recommended value sequence of each recommended article. Therefore, the content similarity of two adjacent recommended articles in the second recommended value sorting can be prevented, the recommended values of the recommended articles are adjusted according to the similarity between the recommended articles, the content diversity of the recommended results is improved, the content diversity of the recommended articles is realized, the interest of a user in the recommended articles is promoted, the recommended experience of the user is improved, and the technical problem that the content of a plurality of adjacent recommended articles is the same or identical when the user refers to the recommended results is solved.
Based on the same technical concept as the item recommendation method, an embodiment of the present application further provides an item recommendation device, as shown in fig. 10, including:
the first obtaining module 10 is configured to obtain a plurality of recommended articles and a first recommended value corresponding to each recommended article according to N target articles, and obtain a descending order of the first recommended value of each recommended article, where N is an integer greater than 0, and each recommended article is related to at least one target article;
the second obtaining module 20 is configured to obtain a similarity value of each recommended item with respect to a previous recommended item in a descending order of the first recommended value of each recommended item, where the similarity value included in the first recommended item is a first preset value;
the third obtaining module 30 performs data processing on the first recommended value corresponding to each recommended item according to the similarity value included in each recommended item, and obtains the second recommended value of each recommended item, so as to obtain the second recommended value ranking of each recommended item.
Optionally, the third obtaining module 30 is configured to:
acquiring a dissimilarity value of each recommended article relative to the recommended article at the previous position according to the similarity value included by each recommended article;
and performing data processing on the first recommended value corresponding to each recommended article according to the dissimilarity value included in each recommended article to obtain a second recommended value of each recommended article.
Optionally, the third obtaining module 30 is further configured to select the second preset value as the dissimilarity of the recommended item when the dissimilarity value of the recommended item with respect to the previous recommended item is smaller than the second preset value.
As shown in fig. 11, optionally, the article recommendation apparatus further includes:
the fourth obtaining module 40 is configured to obtain the generation time of each recommended item, perform data processing on the second recommended value of each recommended item according to the current time and the generation time of each recommended item, and obtain the third recommended value of each recommended item, so as to obtain a third recommended value ranking of each recommended item.
Optionally, the fourth obtaining module 40 is configured to:
acquiring the generation duration of each recommended item according to the current time and the generation time of each recommended item;
acquiring an aging coefficient of each recommended article according to the first preset time duration evaluation value and the generation time duration of each recommended article;
and calculating the second recommended value of each recommended article according to the aging coefficient of each recommended article to obtain a third recommended value of each recommended article, so as to obtain a third recommended value sequence of each recommended article.
Optionally, the fourth obtaining module 40 is configured to:
acquiring a first time length evaluation value of each recommended item according to the generation time length of each recommended item;
and according to the ratio of the first preset time length evaluation value to the first time length evaluation value of each recommended article, the aging factor of each recommended article.
Optionally, the fourth obtaining module 40 is configured to:
and acquiring a second time length evaluation value of each recommended item according to the ratio of the generation time length of each recommended item to the unit time.
In this embodiment, the second time period evaluation value of the recommended item may be a ratio obtained from a ratio of the generation time period of the recommended item to the unit time;
and acquiring a first time length evaluation value of each recommended article according to the sum of the second preset time length evaluation value and the second time length evaluation value of each recommended article.
As shown in fig. 12, optionally, the item recommendation apparatus further includes a fifth obtaining module 50;
a fifth obtaining module 50, configured to obtain N target articles and recommendation factors corresponding to each target article according to the historical behavior data of the user;
a first obtaining module 10 configured to:
obtaining a plurality of recommended articles and a fourth recommended value corresponding to each recommended article according to the N target articles, and obtaining a fourth recommended value sequence of each recommended article;
and performing data processing on the fourth recommended value corresponding to each recommended article according to the fourth recommended value sequence and the recommendation factor corresponding to each target article to obtain the first recommended value corresponding to each recommended article.
Optionally, the first obtaining module 10 is configured to:
determining a recommendation factor corresponding to each recommended item according to each recommended item and the related target item;
according to the fourth recommendation value sequence and the recommendation factor corresponding to each recommended article, obtaining the sequence of each recommended article relative to the corresponding recommendation factor, and determining the sequence number of each recommended article in the corresponding recommendation factor sequence;
and performing data processing on the fourth recommended value corresponding to each recommended article according to the serial number of each recommended article in the corresponding recommendation factor sequence, and acquiring the first recommended value corresponding to each recommended article.
Optionally, the first obtaining module 10 is configured to:
obtaining at least one recommendation set according to each target item, wherein each recommendation set comprises a plurality of recommendation items related to the target item, and each recommendation item corresponds to a fifth recommendation value;
normalizing the fifth recommended value corresponding to the recommended article in each recommended set to obtain a sixth recommended value corresponding to each recommended article;
all recommendation sets are fused into a recommendation union set, wherein when the same recommended articles exist in different recommendation sets, the sixth recommendation value of the recommended article in the recommendation union set is the sum of the sixth recommendation values corresponding to the recommended article in different recommendation sets;
determining a sixth recommended value descending order of each recommended item in the recommended union set;
acquiring the category of each recommended article;
according to the descending order of the sixth recommended value and the category of each recommended article, obtaining the category order of each recommended article, and determining the sequence number of each recommended article in the corresponding category order;
and performing data processing on the sixth recommended value corresponding to each recommended article according to the serial number of each recommended article in the corresponding belonged category sequence, and acquiring the fourth recommended value corresponding to each recommended article, so as to obtain the fourth recommended value sequence of each recommended article.
The article recommendation method provided in the embodiment of the application, through the first obtaining module 10, is configured to obtain, according to the N target articles, a plurality of recommended articles and a first recommendation value corresponding to each recommended article, and obtain a descending order of the first recommendation value of each recommended article, where each recommended article is related to at least one target article; the second obtaining module 20 is configured to obtain a similarity value of each recommended item with respect to a previous recommended item in a descending order of the first recommended value of each recommended item, where the similarity value included in the first recommended item is a first preset value; the third obtaining module 30 is configured to perform data processing on the first recommended value corresponding to each recommended item according to the similarity value included in each recommended item, and obtain the second recommended value of each recommended item, so as to obtain the second recommended value ranking of each recommended item. Therefore, the content similarity of two adjacent recommended articles in the second recommended value sorting can be prevented, the recommended values of the recommended articles are adjusted according to the similarity between the recommended articles, the content diversity of the recommended results is improved, the content diversity of the recommended articles is realized, the interest of a user in the recommended articles is promoted, the recommended experience of the user is improved, and the technical problem that the content of a plurality of adjacent recommended articles is the same or identical when the user refers to the recommended results is solved.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (8)

1. An item recommendation method, characterized in that the method comprises:
obtaining a plurality of recommended articles and a first recommended value corresponding to each recommended article according to N target articles, and obtaining the first recommended value of each recommended article in descending order, wherein N is an integer greater than 0, and each recommended article is related to at least one target article;
in the descending sorting of the first recommended value of each recommended article, the similarity value of each recommended article relative to the recommended article at the previous position is obtained, wherein the similarity value included by the recommended article at the first position is a first preset value;
performing data processing on a first recommended value corresponding to each recommended article according to the similarity value included by each recommended article to obtain a second recommended value of each recommended article, so as to obtain a second recommended value sequence of each recommended article;
the data processing of the first recommended value corresponding to each recommended article according to the similarity value included in each recommended article to obtain the second recommended value of each recommended article includes:
obtaining the dissimilarity value of each recommended article relative to the recommended article at the previous position according to the similarity value included by each recommended article;
and performing data processing on the first recommended value corresponding to each recommended article according to the dissimilarity degree value included in each recommended article to obtain a second recommended value of each recommended article.
2. The item recommendation method according to claim 1, wherein when there is a dissimilarity value of the recommended item with respect to the previous recommended item that is smaller than a second preset value, the second preset value is selected as the dissimilarity of the recommended item.
3. The item recommendation method according to claim 1, further comprising:
and acquiring the generation time of each recommended article, performing data processing on the second recommended value of each recommended article according to the current time and the generation time of each recommended article, and acquiring the third recommended value of each recommended article, so as to obtain the third recommended value sequence of each recommended article.
4. The item recommendation method according to claim 1, further comprising:
acquiring N target articles and recommendation factors corresponding to each target article according to the historical behavior data of the user;
the obtaining a plurality of recommended articles and a first recommended value corresponding to each recommended article according to the N target articles includes:
obtaining a plurality of recommended articles and a fourth recommended value corresponding to each recommended article according to the N target articles, and obtaining a fourth recommended value sequence of each recommended article;
and performing data processing on the fourth recommended value corresponding to each recommended article according to the fourth recommended value sequence and the recommendation factor corresponding to each target article to obtain the first recommended value corresponding to each recommended article.
5. An item recommendation device, the device comprising:
the first obtaining module is used for obtaining a plurality of recommended articles and a first recommended value corresponding to each recommended article according to N target articles, and obtaining the first recommended value of each recommended article in descending order, wherein N is an integer larger than 0, and each recommended article is related to at least one target article;
the second obtaining module is used for obtaining the similarity value of each recommended article relative to the recommended article at the previous position in the descending sorting of the first recommended value of each recommended article, wherein the similarity value included in the recommended article at the first position is a first preset value;
the third obtaining module is used for performing data processing on the first recommended value corresponding to each recommended article according to the similarity value included by each recommended article to obtain a second recommended value of each recommended article, so that the second recommended value sequence of each recommended article is obtained;
the third obtaining module is configured to:
obtaining the dissimilarity value of each recommended article relative to the recommended article at the previous position according to the similarity value included by each recommended article;
and performing data processing on the first recommended value corresponding to each recommended article according to the dissimilarity degree value included in each recommended article to obtain a second recommended value of each recommended article.
6. The item recommendation device according to claim 5, wherein the third obtaining module is further configured to select the second preset value as the dissimilarity of the recommended item when the dissimilarity value of the recommended item with respect to the previous recommended item is smaller than a second preset value.
7. The item recommendation device of claim 5, further comprising:
and the fourth obtaining module is used for obtaining the generation time of each recommended article, performing data processing on the second recommended value of each recommended article according to the current time and the generation time of each recommended article, and obtaining the third recommended value of each recommended article, so as to obtain the third recommended value sequence of each recommended article.
8. The item recommendation device of claim 5, further comprising a fifth obtaining module;
the fifth obtaining module is used for obtaining N target articles and recommendation factors corresponding to the target articles according to the historical behavior data of the user;
the first obtaining module is configured to:
obtaining a plurality of recommended articles and a fourth recommended value corresponding to each recommended article according to the N target articles, and obtaining a fourth recommended value sequence of each recommended article;
and performing data processing on the fourth recommended value corresponding to each recommended article according to the fourth recommended value sequence and the recommendation factor corresponding to each target article to obtain the first recommended value corresponding to each recommended article.
CN201810395328.6A 2018-04-27 2018-04-27 Item recommendation method and device Active CN108734548B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810395328.6A CN108734548B (en) 2018-04-27 2018-04-27 Item recommendation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810395328.6A CN108734548B (en) 2018-04-27 2018-04-27 Item recommendation method and device

Publications (2)

Publication Number Publication Date
CN108734548A CN108734548A (en) 2018-11-02
CN108734548B true CN108734548B (en) 2021-12-17

Family

ID=63940106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810395328.6A Active CN108734548B (en) 2018-04-27 2018-04-27 Item recommendation method and device

Country Status (1)

Country Link
CN (1) CN108734548B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010134733A (en) * 2008-12-05 2010-06-17 Dainippon Printing Co Ltd Information recommendation device, information recommendation method, and program
CN104598643A (en) * 2015-02-13 2015-05-06 成都品果科技有限公司 Article similarity contribution factor, similarity acquiring method, as well as article recommendation method and system thereof
CN104615631A (en) * 2014-10-29 2015-05-13 中国建设银行股份有限公司 Information recommendation method and device
CN105183731A (en) * 2014-06-04 2015-12-23 腾讯科技(深圳)有限公司 Method, device, and system for generating recommended information
CN105809479A (en) * 2016-03-07 2016-07-27 海信集团有限公司 Item recommending method and device
CN106687952A (en) * 2014-09-26 2017-05-17 甲骨文国际公司 Techniques for similarity analysis and data enrichment using knowledge sources
CN107092616A (en) * 2016-11-02 2017-08-25 北京小度信息科技有限公司 A kind of object order method and device
CN107948748A (en) * 2017-11-30 2018-04-20 奇酷互联网络科技(深圳)有限公司 Recommend method, equipment, mobile terminal and the computer-readable storage medium of video

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100268661A1 (en) * 2009-04-20 2010-10-21 4-Tell, Inc Recommendation Systems

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010134733A (en) * 2008-12-05 2010-06-17 Dainippon Printing Co Ltd Information recommendation device, information recommendation method, and program
CN105183731A (en) * 2014-06-04 2015-12-23 腾讯科技(深圳)有限公司 Method, device, and system for generating recommended information
CN106687952A (en) * 2014-09-26 2017-05-17 甲骨文国际公司 Techniques for similarity analysis and data enrichment using knowledge sources
CN104615631A (en) * 2014-10-29 2015-05-13 中国建设银行股份有限公司 Information recommendation method and device
CN104598643A (en) * 2015-02-13 2015-05-06 成都品果科技有限公司 Article similarity contribution factor, similarity acquiring method, as well as article recommendation method and system thereof
CN105809479A (en) * 2016-03-07 2016-07-27 海信集团有限公司 Item recommending method and device
CN107092616A (en) * 2016-11-02 2017-08-25 北京小度信息科技有限公司 A kind of object order method and device
CN107948748A (en) * 2017-11-30 2018-04-20 奇酷互联网络科技(深圳)有限公司 Recommend method, equipment, mobile terminal and the computer-readable storage medium of video

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于信任和推荐关系的可信服务发现;刘迎春;《系统工程理论与实践》;20121231;全文 *

Also Published As

Publication number Publication date
CN108734548A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
US10846775B1 (en) Identifying item recommendations through recognized navigational patterns
EP2304619B1 (en) Correlated information recommendation
US10402479B2 (en) Method, server, browser, and system for recommending text information
CN106708817B (en) Information searching method and device
CN108765051B (en) Item recommendation method and device
WO2014194689A1 (en) Method, server, browser, and system for recommending text information
US9390168B1 (en) Customer keyword-based item recommendations
US11430049B2 (en) Communication via simulated user
CN103294692A (en) Information recommendation method and system
CN110111167A (en) A kind of method and apparatus of determining recommended
CN109587527B (en) Personalized video recommendation method and device
CN105894310A (en) Personalized recommendation method
CN109727047A (en) A kind of method and apparatus, data recommendation method and the device of determining data correlation degree
US20190205769A1 (en) Data Processing Method, Apparatus, Device and Computer Readable Storage Media
CN110309410B (en) Information recommendation method, platform and computer readable storage medium
CN107357911A (en) A kind of text entry method and device
CN107562432A (en) Information processing method and related product
CN110110206B (en) Method, device, computing equipment and storage medium for mining and recommending relationships among articles
CN111339429B (en) Information recommendation method
CN108960958B (en) Item recommendation method and device
CN108763318B (en) Item recommendation method and device
CN102314422A (en) Method and equipment for preferably selecting open type interactive forum based on user interests
CN108734548B (en) Item recommendation method and device
CN108734549B (en) Item recommendation method and device
CN108694171B (en) Information pushing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 501, 502, 503, No. 66 Boxia Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai, March 2012

Patentee after: Daguan Data Co.,Ltd.

Address before: Room 515, building Y1, No. 112, liangxiu Road, Pudong New Area, Shanghai 201203

Patentee before: DATAGRAND INFORMATION TECHNOLOGY (SHANGHAI) Co.,Ltd.