[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105701680B - Personalized recommendation method and system based on opposite attribute knowledge base - Google Patents

Personalized recommendation method and system based on opposite attribute knowledge base Download PDF

Info

Publication number
CN105701680B
CN105701680B CN201511034894.7A CN201511034894A CN105701680B CN 105701680 B CN105701680 B CN 105701680B CN 201511034894 A CN201511034894 A CN 201511034894A CN 105701680 B CN105701680 B CN 105701680B
Authority
CN
China
Prior art keywords
user
attribute
recommendation
opposite
recommendation result
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
CN201511034894.7A
Other languages
Chinese (zh)
Other versions
CN105701680A (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.)
South China Normal University
Original Assignee
South China Normal University
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 South China Normal University filed Critical South China Normal University
Priority to CN201511034894.7A priority Critical patent/CN105701680B/en
Publication of CN105701680A publication Critical patent/CN105701680A/en
Application granted granted Critical
Publication of CN105701680B publication Critical patent/CN105701680B/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/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0251Targeted advertisements
    • G06Q30/0255Targeted advertisements based on user history
    • G06Q30/0256User search

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种个性化推荐方法和系统,所述方法包括:获取当前推荐系统向用户推荐的推荐结果序列;在推荐结果序列中获取预设方向的预设推荐个数个推荐结果作为初次推荐结果序列;根据用户的身份信息在相反属性知识库中查询是否存储用户的相反属性;当查询结果为是时,分别将初次推荐结果序列中的各个推荐结果与用户的相反属性进行匹配;删除初次推荐结果序列中与用户的相反属性的匹配结果符合预设条件的推荐结果;根据初次推荐结果序列剩余的推荐结果得到最终推荐结果序列;输出最终推荐结果序列。本发明提高对用户进行推荐的准确率,进而提高用户对推荐结果的采纳率,提升推荐系统对用户的价值。

Figure 201511034894

The invention discloses a personalized recommendation method and system. The method includes: acquiring a recommendation result sequence recommended by a current recommendation system to a user; acquiring a preset number of recommendation results in a preset direction in the recommendation result sequence as the initial Recommendation result sequence; query whether the opposite attribute of the user is stored in the opposite attribute knowledge base according to the user's identity information; when the query result is yes, respectively match each recommendation result in the initial recommendation result sequence with the opposite attribute of the user; delete In the initial recommendation result sequence, the matching result with the opposite attribute of the user conforms to the recommendation result of the preset condition; the final recommendation result sequence is obtained according to the remaining recommendation results of the initial recommendation result sequence; and the final recommendation result sequence is output. The present invention improves the accuracy of recommending users, thereby improving the user's adoption rate of the recommended results, and enhancing the value of the recommending system to users.

Figure 201511034894

Description

基于相反属性知识库的个性化推荐方法和系统Personalized recommendation method and system based on opposite attribute knowledge base

技术领域technical field

本发明涉及推荐技术领域,特别是涉及一种基于相反属性知识库的个性化推荐方法和系统。The present invention relates to the technical field of recommendation, in particular to a personalized recommendation method and system based on an opposite attribute knowledge base.

背景技术Background technique

随着电子商务规模的不断扩大,商品个数和种类快速增长,用户需要花费大量的时间才能找到自己想买的商品。浏览大量无关信息和产品的过程无疑会使消费者不断流失。为了解决这些问题,个性化推荐技术应运而生。个性化推荐技术是建立在海量数据挖掘基础上的一种高级商务智能平台,以帮助电子商务网站为其顾客购物提供完全个性化的决策支持和信息服务。With the continuous expansion of e-commerce scale and the rapid growth of the number and types of products, users need to spend a lot of time to find the products they want to buy. The process of browsing through a lot of irrelevant information and products will undoubtedly keep consumers away. In order to solve these problems, personalized recommendation technology came into being. Personalized recommendation technology is an advanced business intelligence platform based on massive data mining to help e-commerce sites provide fully personalized decision support and information services for their customers.

但是现有个性化推荐系统在用户购买商品的历史数据的分析基础上进行推荐时,可能出现错误推荐。譬如,推荐系统发现A用户和B用户的以往兴趣特点和购买行为都很类似,最近A用户购买了卫生巾,结果推荐系统就把卫生巾推荐给了B用户,这个推荐是否准确?A用户和B用户之所以在过去的时间内兴趣特点和购买行为都很类似,是因为A用户和B用户是亲姐弟,但A用户是女性,最近来月经初潮了,所以开始第一次买卫生巾,但B用户是男性,把卫生巾推荐给B用户,显然是错误的推荐。可见,现有推荐技术得到的推荐结果常常与用户想买的商品不吻合,导致错误的推荐,进而降低用户对推荐结果的采纳率,降低推荐系统对用户的价值。However, when the existing personalized recommendation system recommends based on the analysis of the historical data of the user's purchased products, there may be wrong recommendations. For example, the recommendation system finds that user A and user B have similar interest characteristics and purchasing behaviors. Recently, user A purchased a sanitary napkin, and as a result, the recommendation system recommended the sanitary napkin to user B. Is this recommendation accurate? The reason why user A and user B have similar interest characteristics and purchasing behaviors in the past is because user A and user B are siblings, but user A is a woman who recently had menarche, so she started the first time. Buying sanitary napkins, but user B is a male, recommending sanitary napkins to user B is obviously a wrong recommendation. It can be seen that the recommendation results obtained by the existing recommendation technology often do not match the products the user wants to buy, resulting in incorrect recommendations, which in turn reduces the user's adoption rate of the recommendation results and reduces the value of the recommendation system to the user.

发明内容SUMMARY OF THE INVENTION

基于上述情况,本发明提出了一种个性化推荐方法和系统,提高对用户进行推荐的准确率,进而提高用户对推荐结果的采纳率,提升推荐系统对用户的价值。Based on the above situation, the present invention proposes a personalized recommendation method and system, which improves the accuracy of recommending users, thereby increasing the user's adoption rate of the recommendation results, and increasing the value of the recommendation system to users.

为了实现上述目的,本发明技术方案的实施例为:In order to achieve the above purpose, the embodiment of the technical solution of the present invention is:

一种个性化推荐方法,包括以下步骤:A personalized recommendation method includes the following steps:

获取当前推荐系统向用户推荐的推荐结果序列;Obtain the recommendation result sequence recommended by the current recommendation system to the user;

在所述推荐结果序列中获取预设方向的预设推荐个数个推荐结果作为初次推荐结果序列,所述预设推荐个数小于或等于所述推荐结果序列中的推荐结果总数;Acquiring a preset number of recommendation results in a preset direction in the recommendation result sequence as an initial recommendation result sequence, where the preset recommendation number is less than or equal to the total number of recommendation results in the recommendation result sequence;

根据所述用户的身份信息在相反属性知识库预先存储的用户相反属性表中查询是否存储所述用户的相反属性;According to the identity information of the user, query whether to store the opposite attribute of the user in the user opposite attribute table pre-stored in the opposite attribute knowledge base;

当查询结果为是时,分别将所述初次推荐结果序列中的各个推荐结果与所述用户的相反属性进行匹配;When the query result is yes, respectively matching each recommendation result in the initial recommendation result sequence with the opposite attribute of the user;

删除所述初次推荐结果序列中与所述用户的相反属性的匹配结果符合预设条件的推荐结果;Delete the recommendation results whose matching results with the opposite attributes of the user meet the preset conditions in the initial recommendation result sequence;

根据所述初次推荐结果序列剩余的推荐结果得到最终推荐结果序列;Obtain a final recommendation result sequence according to the remaining recommendation results of the initial recommendation result sequence;

输出所述最终推荐结果序列。The final recommendation result sequence is output.

一种个性化推荐系统,包括:A personalized recommendation system, including:

推荐结果序列获取模块,用于获取当前推荐系统向用户推荐的推荐结果序列;The recommendation result sequence acquisition module is used to acquire the recommendation result sequence recommended by the current recommendation system to the user;

初次推荐结果序列获取模块,用于在所述推荐结果序列中获取预设方向的预设推荐个数个推荐结果作为初次推荐结果序列,所述预设推荐个数小于或等于所述推荐结果序列中的推荐结果总数;An initial recommendation result sequence acquisition module, configured to acquire a preset number of recommendation results in a preset direction in the recommendation result sequence as an initial recommendation result sequence, where the preset number of recommendations is less than or equal to the recommendation result sequence The total number of recommended results in;

属性查询模块,用于根据所述用户的身份信息在相反属性知识库预先存储的用户相反属性表中查询是否存储所述用户的相反属性;an attribute query module, configured to query whether the user's opposite attribute is stored in the user's opposite attribute table pre-stored in the opposite attribute knowledge base according to the user's identity information;

结果匹配模块,用于当查询结果为是时,分别将所述初次推荐结果序列中的各个推荐结果与所述用户的相反属性进行匹配;a result matching module, configured to respectively match each recommendation result in the initial recommendation result sequence with the opposite attribute of the user when the query result is yes;

结果删除模块,用于删除所述初次推荐结果序列中与所述用户的相反属性的匹配结果符合预设条件的推荐结果;a result deletion module, configured to delete a recommendation result whose matching result with the opposite attribute of the user meets a preset condition in the initial recommendation result sequence;

最终推荐结果序列获取模块,用于根据所述初次推荐结果序列剩余的推荐结果得到最终推荐结果序列;a final recommendation result sequence acquisition module, configured to obtain a final recommendation result sequence according to the remaining recommendation results of the initial recommendation result sequence;

序列输出模块,用于输出所述最终推荐结果序列。A sequence output module, used for outputting the final recommendation result sequence.

与现有技术相比,本发明的有益效果为:本发明个性化推荐方法和系统,基于相反属性知识库,通过将当前推荐系统向用户推荐的预设个数个推荐结果与预先存储在相反属性知识库中的用户相反属性进行匹配,根据匹配结果获取最终推荐结果序列,提高对用户进行推荐的准确率,满足用户的个性化推荐需要,提高用户对推荐结果的采纳率,提升推荐系统对用户的价值,适合应用。Compared with the prior art, the beneficial effects of the present invention are as follows: the personalized recommendation method and system of the present invention, based on the opposite attribute knowledge base, through the preset number of recommendation results recommended by the current recommendation system to the user are stored in the opposite direction. The user's opposite attributes in the attribute knowledge base are matched, and the final recommendation result sequence is obtained according to the matching result, which improves the accuracy of the recommendation to the user, meets the user's personalized recommendation needs, improves the user's adoption rate of the recommendation result, and improves the recommendation system. User value, suitable for application.

附图说明Description of drawings

图1为本发明一个实施例中个性化推荐方法流程示意图;1 is a schematic flowchart of a personalized recommendation method in an embodiment of the present invention;

图2为基于图1所示方法一个具体示例中个性化推荐方法流程图;FIG. 2 is a flowchart of a personalized recommendation method based on a specific example of the method shown in FIG. 1;

图3为本发明一个实施例中个性化推荐系统结构示意图。FIG. 3 is a schematic structural diagram of a personalized recommendation system in an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步的详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不限定本发明的保护范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, and do not limit the protection scope of the present invention.

一个实施例中个性化推荐方法,如图1所示,包括以下步骤:In one embodiment, the personalized recommendation method, as shown in Figure 1, includes the following steps:

步骤S101:获取当前推荐系统向用户推荐的推荐结果序列;Step S101: Obtain the recommendation result sequence recommended by the current recommendation system to the user;

其中,当前推荐系统可以是现有的各种推荐系统,也可以是新开发的推荐系统;推荐系统向用户推荐的推荐结果可以是各种类型的推荐结果,譬如,商品的推荐、衣服的推荐、图书的推荐、视频的推荐、图片的推荐、论文的推荐或好友的推荐等;Among them, the current recommendation system may be various existing recommendation systems, or may be a newly developed recommendation system; the recommendation results recommended by the recommendation system to users may be various types of recommendation results, such as product recommendation, clothing recommendation , book recommendation, video recommendation, picture recommendation, paper recommendation or friend recommendation, etc.;

步骤S102:在所述推荐结果序列中获取预设方向的预设推荐个数个推荐结果作为初次推荐结果序列,所述预设推荐个数小于或等于所述推荐结果序列中的推荐结果总数;Step S102: Acquire a preset number of recommendation results in a preset direction in the recommendation result sequence as an initial recommendation result sequence, where the preset number of recommendations is less than or equal to the total number of recommendation results in the recommendation result sequence;

例如推荐系统向一个用户推荐的推荐结果数记为p,将这p个推荐结果中的前n个推荐结果作为n个第一推荐结果,得到初次推荐结果序列,其中,p可以是自然数,推荐系统会向用户推荐至少一个推荐结果,选取推荐系统向一个用户推荐的所有推荐结果中的全部或部分作为第一推荐结果;For example, the number of recommendation results recommended by the recommendation system to a user is denoted as p, and the first n recommendation results in the p recommendation results are used as the n first recommendation results, and the initial recommendation result sequence is obtained. The system will recommend at least one recommendation result to the user, and select all or part of all the recommendation results recommended by the recommendation system to a user as the first recommendation result;

步骤S103:根据所述用户的身份信息在相反属性知识库预先存储的用户相反属性表中查询是否存储所述用户的相反属性;Step S103: query whether to store the opposite attribute of the user in the user opposite attribute table pre-stored in the opposite attribute knowledge base according to the identity information of the user;

例如从相反属性知识库中的用户相反属性表中检索该个用户的相反属性,通过用户的身份信息对用户相反属性表进行检索,当检索到相应用户的身份信息时,则取出该用户的身份信息对应的用户的相反属性;可以事先采集用户的相反属性存储在相反属性知识库中;For example, the user's opposite attribute is retrieved from the user's opposite attribute table in the opposite attribute knowledge base, and the user's opposite attribute table is retrieved through the user's identity information. When the corresponding user's identity information is retrieved, the user's identity is retrieved. The opposite attribute of the user corresponding to the information; the opposite attribute of the user can be collected in advance and stored in the opposite attribute knowledge base;

步骤S104:当查询结果为是时,分别将所述初次推荐结果序列中的各个推荐结果与所述用户的相反属性进行匹配;Step S104: when the query result is yes, match each recommendation result in the initial recommendation result sequence with the opposite attribute of the user;

一个推荐结果与相反属性知识库中该个用户的相反属性的匹配度,本质上是该个推荐结果与用户属性的矛盾程度;从一个推荐结果与该个用户的相反属性的匹配度的大小,可以看出该个推荐结果与该个用户的属性的矛盾程度,一个推荐结果与该个用户的相反属性的匹配度越大,则表明该个推荐结果与该个用户的属性的矛盾程度越高;The matching degree between a recommendation result and the opposite attribute of the user in the opposite attribute knowledge base is essentially the degree of contradiction between the recommendation result and the user's attribute; from the matching degree between a recommendation result and the user's opposite attribute, It can be seen that the degree of contradiction between the recommendation result and the attribute of the user, the greater the matching degree of a recommendation result and the opposite attribute of the user, the higher the degree of contradiction between the recommendation result and the attribute of the user ;

步骤S105:删除所述初次推荐结果序列中与所述用户的相反属性的匹配结果符合预设条件的推荐结果;Step S105: delete a recommendation result whose matching result with the opposite attribute of the user meets a preset condition in the initial recommendation result sequence;

例如当一个推荐结果与该个用户的相反属性的匹配度大于匹配度预设值(匹配度预设值最小为0)时,表示该个推荐结果与该个用户的属性是有矛盾的,删除该个推荐结果;所述匹配度的计算可以转化为字符串匹配度或相似度的计算,可以采用已有的字符串匹配度或相似度算法,譬如Edit距离法(编辑距离,就是用来计算从原串(s)转换到目标串(t)所需要的最少的插入,删除和替换的数目。显然当一个语句编辑为另一个语句所需的最少的插入,删除和替换的数目越小,则匹配度越大)、最大公共子串LCS法(显然两个语句的最大公共子串越长,则这两个语句匹配度越大);所述匹配度的计算也可以使用新的匹配度的算法,譬如将两个字符串的公共的字符数作为匹配度的大小;For example, when the matching degree of a recommendation result and the opposite attribute of the user is greater than the preset matching degree value (the minimum matching degree preset value is 0), it means that the recommendation result is inconsistent with the attribute of the user, delete it This recommendation result; the calculation of the matching degree can be converted into the calculation of the matching degree or similarity of the string, and the existing algorithm of the matching degree or similarity of the string can be used, such as the Edit distance method (the edit distance is used to calculate The minimum number of insertions, deletions and replacements required to convert from the original string (s) to the target string (t). Obviously, when one statement is edited into another statement, the minimum number of insertions, deletions and replacements is required. The greater the matching degree), the largest common substring LCS method (obviously, the longer the maximum common substring of the two sentences, the greater the matching degree of the two sentences); the calculation of the matching degree can also use the new matching degree algorithm, such as the number of common characters of two strings as the size of the matching degree;

步骤S106:根据所述初次推荐结果序列剩余的推荐结果得到最终推荐结果序列;Step S106: obtaining a final recommendation result sequence according to the remaining recommendation results of the initial recommendation result sequence;

一个推荐结果与该个用户的相反属性的匹配度大于匹配度预设值则表明该个推荐结果与该个用户的属性存在矛盾,将初次推荐结果序列中与该个用户的相反属性的匹配度大于匹配度预设值的推荐结果删除后剩下的推荐结果作为最终推荐结果序列;If the matching degree between a recommendation result and the opposite attribute of the user is greater than the preset matching degree value, it indicates that the recommendation result is contradictory with the attribute of the user. The recommendation results remaining after the recommendation results greater than the matching degree preset value are deleted are used as the final recommendation result sequence;

步骤S107:输出所述最终推荐结果序列。Step S107: Output the final recommendation result sequence.

将最终推荐结果输出给用户的方式可以是现有推荐系统所采用的方式,也可以采用其他的信息输出方式,譬如,如网页的方式、文件的方式。The manner of outputting the final recommendation result to the user may be the manner adopted by the existing recommendation system, or may adopt other information output manners, such as the manner of a web page and the manner of a file.

从以上描述可知,本发明个性化推荐方法,基于相反属性知识库,极大排除了与用户属性相矛盾的推荐结果,满足了用户的个性化推荐的需要,提高推荐的准确率,提高了用户对推荐结果的采纳率,提升了推荐系统对用户的价值。As can be seen from the above description, the personalized recommendation method of the present invention, based on the opposite attribute knowledge base, greatly eliminates the recommendation results that contradict the user attributes, satisfies the needs of the user for personalized recommendation, improves the accuracy of the recommendation, and improves the user experience. The adoption rate of the recommendation results increases the value of the recommendation system to users.

此外,在一个具体示例中,所述用户的身份信息包括用户ID(身份标识号),所述用户相反属性表包括用户字段和用户相反属性字段,所述用户字段中存储用户ID,所述用户相反属性字段中存储用户的相反属性,所述用户的相反属性根据所述用户的属性得到,所述用户的属性包括用户的年龄、性别、职业、学历、专业、特长、爱好和地理位置中的任意一项或任意组合。In addition, in a specific example, the user's identity information includes a user ID (identification number), the user opposite attribute table includes a user field and a user opposite attribute field, the user field stores the user ID, the user The opposite attribute of the user is stored in the opposite attribute field, and the opposite attribute of the user is obtained according to the attribute of the user. Any one or any combination.

相反属性知识库中的用户相反属性表包括用户字段、用户相反属性字段,用户字段中存储用户ID,用户相反属性字段存储用户的相反属性。从相反属性知识库中检索出该个用户的相反属性,是通过用户ID对相反属性知识库进行检索,当检索到相应用户ID时,则取出该用户ID对应的用户的相反属性。用户的相反属性根据用户的属性得到,用户的属性可以包括用户的年龄、性别、职业、学历、专业、特长、爱好和地理位置等与用户相关的信息,满足多种应用需要。The user opposite attribute table in the opposite attribute knowledge base includes a user field and a user opposite attribute field, where the user ID is stored in the user field, and the user opposite attribute field is stored in the opposite attribute of the user. Retrieving the opposite attribute of the user from the opposite attribute knowledge base is to retrieve the opposite attribute knowledge base through the user ID. When the corresponding user ID is retrieved, the opposite attribute of the user corresponding to the user ID is retrieved. The opposite attribute of the user is obtained according to the attribute of the user. The attribute of the user may include information related to the user such as the user's age, gender, occupation, education, major, specialty, hobby, and geographic location, etc., to meet the needs of various applications.

获取用户的相反属性步骤:首先查询用户的属性中关键字的反义词;当能查询到反义词时,将该反义词作为用户的相反属性;当不能查询到反义词时,根据用户的属性中关键字在数据库中查询距离所述关键字最远的同类型关键字作为用户的相反属性。其中,数据库中事先存储有各种类型关键词及其之间的距离,这里的距离是指差异性,例如,同为学历类型的关键词离“小学”距离最远的显然是“博士后”。The steps of obtaining the opposite attribute of the user: first, query the antonym of the keyword in the user's attribute; when the antonym can be queried, the antonym is used as the opposite attribute of the user; when the antonym cannot be queried, the keyword in the user's attribute is stored in the database The keyword of the same type that is farthest from the keyword in the middle query is taken as the opposite attribute of the user. Among them, various types of keywords and their distances are stored in the database in advance, and the distance here refers to the difference. For example, the keyword with the same academic type is farthest from "primary school" is obviously "postdoctoral".

此外,在一个具体示例中,当查询结果为否时,判断所述用户是否为所述当前推荐系统的注册用户;In addition, in a specific example, when the query result is no, it is determined whether the user is a registered user of the current recommendation system;

当判定结果为是时,从所述当前推荐系统的所述用户的注册信息中获取所述用户的属性,根据所述用户的属性得到所述用户的相反属性,将所述用户的相反属性存储在所述相反属性知识库中;When the determination result is yes, obtain the attribute of the user from the registration information of the user in the current recommendation system, obtain the opposite attribute of the user according to the attribute of the user, and store the opposite attribute of the user in the opposite attribute knowledge base;

当判定结果为否时,生成一个信息采集窗口,采集所述用户的属性,根据所述用户的属性得到所述用户的相反属性,将所述用户的相反属性存储在所述相反属性知识库中。When the determination result is no, an information collection window is generated, the attributes of the user are collected, the opposite attributes of the user are obtained according to the attributes of the user, and the opposite attributes of the user are stored in the opposite attribute knowledge base .

例如从相反属性知识库中检索该个用户的相反属性,当从相反属性知识库中检索不到该个用户或该个用户的相反属性时,则判断用户是否为推荐系统的注册用户,当用户是注册用户,则查询用户的注册信息中的用户属性,根据用户的属性得到用户的相反属性加入相反属性知识库,当用户不是注册用户,则弹出对话框询问用户,也可以是其他交互方式获取或查询方式获取该个用户的属性,根据用户的属性得到用户的相反属性加入相反属性知识库,如果用户的注册信息中没有用户属性信息时,也可以通过弹出对话框询问用户或是其他交互方式获取该个用户的属性,根据用户的属性得到用户的相反属性加入相反属性知识库。For example, the opposite attribute of the user is retrieved from the opposite attribute knowledge base. When the user or the opposite attribute of the user cannot be retrieved from the opposite attribute knowledge base, it is determined whether the user is a registered user of the recommendation system. If the user is a registered user, the user attribute in the user's registration information is queried, and the user's opposite attribute is obtained according to the user's attribute and added to the opposite attribute knowledge base. When the user is not a registered user, a dialog box will pop up to ask the user, or it can be obtained by other interactive methods. Or query to obtain the attributes of the user, obtain the opposite attributes of the user according to the attributes of the user and add them to the knowledge base of opposite attributes. Obtain the attribute of the user, obtain the opposite attribute of the user according to the attribute of the user, and add the opposite attribute knowledge base.

此外,在一个具体示例中,分别将所述初次推荐结果序列中的各个推荐结果与所述用户的相反属性进行匹配的步骤包括:In addition, in a specific example, the step of respectively matching each recommendation result in the initial recommendation result sequence with the opposite attribute of the user includes:

分别将所述初次推荐结果序列中的各个推荐结果和所述用户的相反属性转化为字符串;respectively converting each recommendation result in the initial recommendation result sequence and the opposite attributes of the user into character strings;

分别计算所述初次推荐结果序列中的各个推荐结果转化的字符串与所述用户的相反属性转化的字符串的匹配度。The degree of matching between the character string converted from each recommendation result in the initial recommendation result sequence and the character string converted from the opposite attribute of the user is calculated respectively.

初次推荐结果序列中的各个推荐结果和用户的相反属性都可以转化为成字符串,计算两者匹配度的可以转化为字符串匹配度或相似度的计算,从一个推荐结果与该个用户的相反属性的匹配度的大小可以看出该个推荐结果与该个用户的属性的矛盾程度,一个推荐结果与该个用户的相反属性的匹配度越大则表明该个推荐结果与该个用户的属性的矛盾程度越高。Each recommendation result in the initial recommendation result sequence and the opposite attribute of the user can be converted into strings, and the calculation of the matching degree between the two can be converted into the calculation of the matching degree or similarity of the string. The degree of matching of the opposite attribute can show the degree of contradiction between the recommendation result and the attribute of the user. The higher the degree of inconsistency of attributes.

所述匹配度的计算可以转化为字符串匹配度或相似度的计算,可以采用已有的字符串匹配度或相似度算法,譬如Edit距离法(编辑距离,就是用来计算从原串(s)转换到目标串(t)所需要的最少的插入,删除和替换的数目。显然当一个语句编辑为另一个语句所需的最少的插入,删除和替换的数目越小,则匹配度越大)、最大公共子串LCS法(显然两个语句的最大公共子串越长,则这两个语句匹配度越大);所述匹配度的计算也可以使用新的匹配度的算法,譬如将两个字符串的公共的字符数作为匹配度的大小。The calculation of the matching degree can be converted into the calculation of the matching degree or similarity of strings, and the existing algorithm of matching degree or similarity of strings can be used, such as the Edit distance method (the edit distance is used to calculate the distance from the original string (s). ) The minimum number of insertions, deletions and replacements required to convert to the target string (t). Obviously, when a statement is edited into another statement with the minimum number of insertions, deletions and replacements, the smaller the number of insertions, deletions and replacements, the greater the degree of matching ), the maximum common substring LCS method (obviously, the longer the maximum common substring of two sentences, the greater the matching degree of the two sentences); the calculation of the matching degree can also use a new matching degree algorithm, such as the The number of characters in common between the two strings is used as the size of the matching degree.

此外,在一个具体示例中,删除所述初次推荐结果序列中与所述用户的相反属性的匹配结果符合预设条件的推荐结果的步骤包括:In addition, in a specific example, the step of deleting a recommendation result whose matching result with the opposite attribute of the user meets a preset condition in the initial recommendation result sequence includes:

分别获取所述初次推荐结果序列中的各个推荐结果转化的字符串与所述用户的相反属性转化的字符串的相同字符个数;Respectively obtain the same number of characters of the character string transformed by each recommendation result in the sequence of initial recommendation results and the character string transformed by the opposite attribute of the user;

删除所述初次推荐结果序列中与所述用户的相反属性转化的字符串的相同字符个数大于预设值的推荐结果。Delete the recommendation result whose number of identical characters in the character string converted with the opposite attribute of the user is greater than the preset value in the initial recommendation result sequence.

一个推荐结果转化的字符串与该个用户的相反属性转化的字符串相同字符个数大于预设值(例如大于0),说明该个推荐结果与该个用户的属性的有矛盾,删除与用户属性相矛盾的推荐结果,提高推荐的准确率。The character string converted from a recommendation result is the same as the character string converted from the opposite attribute of the user. The number of characters is greater than the preset value (for example, greater than 0), indicating that the recommendation result is inconsistent with the attribute of the user. The recommendation results with conflicting attributes can improve the accuracy of the recommendation.

为了更好地理解上述方法,以下详细阐述一个本发明个性化推荐方法的应用实例。In order to better understand the above method, an application example of the personalized recommendation method of the present invention is described in detail below.

如图2所示,该应用实例可以包括以下步骤:As shown in Figure 2, the application example may include the following steps:

步骤S201:获取一个购物网站的推荐系统向用户甲推荐的推荐结果序列;Step S201: Obtain a recommendation result sequence recommended by a recommendation system of a shopping website to user A;

步骤S202:在上述推荐结果序列中获取前11个推荐结果作为初次推荐结果序列,上述推荐结果序列中的推荐结果总数大于或等于11;所述11个推荐结果为:(1)丸美防晒霜女防水正品激白防晒精华隔离乳SPF30防紫外线全身45g;(2)包邮新款大网鞋男凉鞋学生休闲运动鞋男夏季网布鞋男士加大码男鞋;(3)中歌金立S7手机套ELIFE7壳GN9006透明硅胶保护软套外壳配件后盖潮;(4)iphone4s手机壳苹果5s外壳超薄塑料磨砂保护硬壳黑白红潮男女简约;(5)包邮男包加厚帆布双肩包男士包包休闲旅行包潮男包韩版男背包;(6)茵曼2015夏装新款背心女夏外穿印花无袖衫夏季背心吊带8520300114;(7)森谷鸟韩版潮2015春秋女帆布鞋松糕鞋高帮增高女鞋厚底布鞋子;(8)大sim韩国定制款夏装必备破洞纯色简约圆领宽松短袖女T恤;(9)中老年女款夏装T恤雪纺衫上衣大码妈妈装宽松绣花短袖老年人衣服;(10)小米2s手机保护壳二s后盖手机套潮小米2皮套外壳m2超薄硬翻盖包邮;(11)韩国东大门2015夏季新上女装时尚碎花宽松短袖雪纺蛋糕衫短款上衣;Step S202: Obtain the first 11 recommended results in the above-mentioned recommendation result sequence as the initial recommendation result sequence, and the total number of recommended results in the above-mentioned recommendation result sequence is greater than or equal to 11; the 11 recommended results are: (1) Marumi Sunscreen Women Waterproof genuine whitening sunscreen essence isolation milk SPF30 UV protection body 45g; (2) free shipping new large mesh shoes men's sandals student casual sports shoes men's summer mesh shoes men's plus size men's shoes; (3) Zhongge Gionee S7 mobile phone case ELIFE7 Shell GN9006 transparent silicone protection soft cover shell accessories back cover tide; (4) iphone4s mobile phone shell apple 5s shell ultra-thin plastic frosted protection hard shell black and white red tide men and women simple; (5) men's bag thickened canvas backpack men's bag casual Travel bag trendy men's bag Korean version men's backpack; (6) Inman 2015 summer new vest women's summer outer wear printed sleeveless shirt summer vest suspender 8520300114; (7) Morigu bird Korean version of the tide 2015 spring and autumn women's canvas shoes platform shoes high-top women's shoes thick bottom Cloth shoes; (8) Big sim Korean custom summer clothes must-have ripped solid color simple round neck loose short-sleeved women's T-shirt; (9) middle-aged and elderly women's summer T-shirt chiffon shirt top large size mother's loose embroidered short-sleeved elderly People clothes; (10) Xiaomi 2s mobile phone protective case two s back cover mobile phone case tide Xiaomi 2 leather case m2 ultra-thin hard flip cover free shipping; (11) South Korea's Dongdaemun 2015 summer new women's fashion floral loose short-sleeved chiffon cake shirt crop top;

步骤S203:根据用户甲的ID在相反属性知识库预先存储的用户相反属性表中查询是否存储用户甲的相反属性;所述用户相反属性表包括用户字段和用户相反属性字段,所述用户字段中存储用户ID,所述用户相反属性字段中存储用户的相反属性,用户的相反属性根据用户的属性得到,用户的属性包括用户的年龄和性别;相反属性知识库可以事先存储用户的相反属性;一个实施例中用户属性表如表1所示,用户相反属性表如表2所示;Step S203: query whether the opposite attribute of user A is stored in the user opposite attribute table pre-stored in the opposite attribute knowledge base according to the ID of user A; the user opposite attribute table includes a user field and a user opposite attribute field, in which the user field is The user ID is stored, and the opposite attribute of the user is stored in the user's opposite attribute field, and the opposite attribute of the user is obtained according to the attribute of the user, and the attribute of the user includes the age and gender of the user; the opposite attribute knowledge base can store the opposite attribute of the user in advance; a In the embodiment, the user attribute table is shown in Table 1, and the user opposite attribute table is shown in Table 2;

表1 用户属性表Table 1 User attribute table

用户IDUser ID 用户的属性User properties 1423314233 年老男性old male 1423414234 年轻女性young female 1423514235 年轻男性young male 1423614236 年老女性old woman

表2 用户相反属性表Table 2 User opposite attribute table

Figure BDA0000899284520000081
Figure BDA0000899284520000081

步骤S204:当查询结果为是时,分别将上述11个推荐结果和用户甲的相反属性转化为字符串;当查询结果为否时,判断用户甲是否为上述购物网站的注册用户;当判定结果为是时,从上述购物网站的用户甲的注册信息中获取用户甲的属性,根据用户甲的属性得到用户甲的相反属性,将用户甲的相反属性存储在相反属性知识库中;当判定结果为否时,生成一个信息采集窗口,采集用户甲的属性,根据用户甲的属性得到用户甲的相反属性,将用户甲的相反属性存储在相反属性知识库中;Step S204: when the query result is yes, convert the above 11 recommended results and the opposite attributes of user A into character strings respectively; when the query result is no, determine whether user A is a registered user of the above-mentioned shopping website; If yes, obtain the attribute of user A from the registration information of user A of the above-mentioned shopping website, obtain the opposite attribute of user A according to the attribute of user A, and store the opposite attribute of user A in the opposite attribute knowledge base; If no, generate an information collection window, collect the attributes of user A, obtain the opposite attributes of user A according to the attributes of user A, and store the opposite attributes of user A in the opposite attribute knowledge base;

已知用户甲的ID是14235,可以从上述相反属性知识库预先存储的用户相反属性表中查询到用户甲的相反属性是“年老女性”;Knowing that the ID of User A is 14235, it can be queried from the user's opposite attribute table pre-stored in the above-mentioned opposite attribute knowledge base that the opposite attribute of User A is "old woman";

如果上述相反属性知识库预先存储的用户相反属性表中查询不到用户甲的相反属性时,则判断用户甲是否为上述购物网站的注册用户,当用户甲是注册用户,则查询用户的注册信息中的用户甲的属性,根据用户甲的属性得到用户甲的相反属性加入相反属性知识库,当用户甲不是注册用户,则弹出对话框询问用户甲,也可以是其他交互方式获取或查询方式获取用户甲的属性,根据用户甲的属性得到用户甲的相反属性加入相反属性知识库,如果用户的注册信息中没有用户甲的属性时,也可以通过弹出对话框询问用户或是其他交互方式获取用户甲的属性,根据用户甲的属性得到用户甲的相反属性加入相反属性知识库;If the opposite attribute of user A cannot be queried in the user opposite attribute table pre-stored in the above-mentioned opposite attribute knowledge base, then determine whether user A is a registered user of the above-mentioned shopping website, and when user A is a registered user, query the user's registration information The attributes of user A in the user A, according to the attributes of user A, the opposite attributes of user A are obtained and added to the knowledge base of opposite attributes. When user A is not a registered user, a dialog box will pop up to ask user A, or it can be obtained by other interactive methods or query methods. Attributes of user A, according to the attributes of user A, the opposite attributes of user A are obtained and added to the opposite attribute knowledge base. If there is no attribute of user A in the user's registration information, you can also ask the user through a pop-up dialog box or obtain the user through other interactive methods. The attribute of user A, according to the attribute of user A, the opposite attribute of user A is obtained and added to the opposite attribute knowledge base;

用户甲的属性为“年轻男性”,关键字“年轻”、“男性”,查询得到上述关键字的反义词“年老”、“女性”,将“年老女性”作为用户甲的相反属性;The attribute of user A is "young male", and the keywords are "young" and "male", the antonyms of the above keywords are obtained by querying "old" and "female", and "old female" is regarded as the opposite attribute of user A;

步骤S205:分别计算上述11个推荐结果转化的字符串与用户甲的相反属性转化的字符串的匹配度;Step S205: Calculate the matching degree of the character string transformed by the above 11 recommendation results and the character string transformed by the opposite attribute of user A respectively;

所述匹配度的计算可以转化为字符串匹配度或相似度的计算,也可以将两个字符串的公共的字符数作为匹配度的大小;从一个推荐结果与该个用户的相反属性的匹配度的大小可以看出该个推荐结果与该个用户的属性的矛盾程度;一个推荐结果与该个用户的相反属性的匹配度越大则表明该个推荐结果与该个用户的属性的矛盾程度越高;The calculation of the matching degree can be converted into the calculation of the matching degree or similarity of strings, and the number of common characters of the two strings can also be used as the size of the matching degree; The size of the degree can show the degree of contradiction between the recommendation result and the attribute of the user; the greater the degree of matching between a recommendation result and the opposite attribute of the user, the degree of contradiction between the recommendation result and the user's attribute. higher;

步骤S206:分别获取上述11个推荐结果转化的字符串与用户甲的相反属性转化的字符串的相同字符个数;Step S206: respectively obtaining the same number of characters of the character string converted from the above 11 recommendation results and the character string converted from the opposite attribute of user A;

匹配度采用的计算方式:将两个字符串的相同的字符数作为匹配度的大小:The calculation method of the matching degree: take the same number of characters of the two strings as the size of the matching degree:

(1)丸美防晒霜女防水正品激白防晒精华隔离乳SPF30防紫外线全身45g年老女性与用户甲的相反属性转化的字符串的相同字符个数为1;(1) Marumi Sunscreen Female Waterproof Authentic Whitening Sunscreen Essence Isolation Milk SPF30 UV Protection Whole Body 45g The number of identical characters in the string converted by the opposite attributes of the old woman and the user's armor is 1;

(2)包邮新款大网鞋男凉鞋学生休闲运动鞋男夏季网布鞋男士加大码男鞋年老女性与用户甲的相反属性转化的字符串的相同字符个数为0;(2) Free shipping new large mesh shoes, men's sandals, students' casual sports shoes, men's summer mesh shoes, men's plus size men's shoes, old women's, and user A's opposite attributes are converted to a string with the same number of characters as 0;

(3)中歌金立S7手机套ELIFE7壳GN9006透明硅胶保护软套外壳配件后盖潮年老女性与用户甲的相反属性转化的字符串的相同字符个数为0;(3) Zhongge Gionee S7 mobile phone case ELIFE7 case GN9006 transparent silicone protective soft case case accessories back cover trendy old women and user A The number of identical characters in the string converted by the opposite attributes is 0;

(4)iphone4s手机壳苹果5s外壳超薄塑料磨砂保护硬壳黑白红潮男女简约年老女性与用户甲的相反属性转化的字符串的相同字符个数为1;(4) iphone4s mobile phone shell apple 5s shell ultra-thin plastic frosted protection hard shell black and white red tide men and women simple old women and user A with the opposite attributes of the string converted to the same character number is 1;

(5)包邮男包加厚帆布双肩包男士包包休闲旅行包潮男包韩版男背包年老女性与用户甲的相反属性转化的字符串的相同字符个数为0;(5) Free shipping men's bags, thickened canvas backpacks, men's bags, leisure travel bags, trendy men's bags, Korean version of men's backpacks, old women's, and user A's opposite attributes of the character string converted to the same number of characters are 0;

(6)茵曼2015夏装新款背心女夏外穿印花无袖衫夏季背心吊带8520300114年老女性与用户甲的相反属性转化的字符串的相同字符个数为1;(6) Inman 2015 summer clothes new vest women's summer outer wear printed sleeveless shirt summer vest suspenders 8520300114 old women and user A's opposite attributes of the string converted to the same character number is 1;

(7)森谷鸟韩版潮2015春秋女帆布鞋松糕鞋高帮增高女鞋厚底布鞋子年老女性与用户甲的相反属性转化的字符串的相同字符个数为2;(7) Morigu Bird Korean version of the tide 2015 spring and autumn women's canvas shoes, platform shoes, high-top, height-enhancing women's shoes, thick-soled cloth shoes, the number of identical characters in the strings converted by the opposite attributes of the elderly women and user A is 2;

(8)大sim韩国定制款夏装必备破洞纯色简约圆领宽松短袖女T恤年老女性与用户甲的相反属性转化的字符串的相同字符个数为1;(8) The number of identical characters in the string converted by the opposite attributes of the old woman and the user's armor is 1;

(9)中老年女款夏装T恤雪纺衫上衣大码妈妈装宽松绣花短袖老年人衣服年老女性与用户甲的相反属性转化的字符串的相同字符个数为3;(9) Middle-aged and elderly women's summer clothes T-shirts, chiffon shirts, tops, large-size mother's clothes, loose embroidery, short-sleeved clothes for the elderly

(10)小米2s手机保护壳二s后盖手机套潮小米2皮套外壳m2超薄硬翻盖包邮年老女性与用户甲的相反属性转化的字符串的相同字符个数为0;(10) Mi 2s mobile phone protective case 2 s back cover mobile phone case trendy Mi 2 leather case shell m2 ultra-thin hard flip cover free shipping The number of the same characters in the string converted by the opposite attributes of the elderly women and user A is 0;

(11)韩国东大门2015夏季新上女装时尚碎花宽松短袖雪纺蛋糕衫短款上衣年老女性与用户甲的相反属性转化的字符串的相同字符个数为1;(11) South Korea's Dongdaemun 2015 summer new women's fashion Floral Loose Short Sleeve Chiffon Cake Shirt Short Top Shirt The number of identical characters in the string converted by the opposite attributes of the old women and user A is 1;

步骤S207:删除上述11个推荐结果中与用户甲的相反属性转化的字符串的相同字符个数不为零的推荐结果;Step S207: delete the recommendation results whose number of identical characters is not zero in the character string converted with the opposite attribute of user A from the above 11 recommendation results;

即删除:i.e. remove:

丸美防晒霜女防水正品激白防晒精华隔离乳SPF30防紫外线全身45g;Marumi sunscreen female waterproof authentic whitening sunscreen essence isolation milk SPF30 UV protection body 45g;

iphone4s手机壳苹果5s外壳超薄塑料磨砂保护硬壳黑白红潮男女简约;iphone4s mobile phone shell apple 5s shell ultra-thin plastic frosted protection hard shell black and white red tide men and women simple;

茵曼2015夏装新款背心女夏外穿印花无袖衫夏季背心吊带8520300114;Inman 2015 summer new vest women's summer outer wear printed sleeveless shirt summer vest suspenders 8520300114;

森谷鸟韩版潮2015春秋女帆布鞋松糕鞋高帮增高女鞋厚底布鞋子;Morigu bird Korean version of the tide 2015 spring and autumn women's canvas shoes platform shoes high-top women's shoes thick-soled cloth shoes;

大sim韩国定制款夏装必备破洞纯色简约圆领宽松短袖女T恤;Big sim Korean custom summer clothes must-have hole solid color simple round neck loose short-sleeved women's T-shirt;

中老年女款夏装T恤雪纺衫上衣大码妈妈装宽松绣花短袖老年人衣服;Middle-aged and elderly women's summer clothes T-shirts, chiffon shirts, tops, large size mother's clothes, loose embroidered short-sleeved clothes for the elderly;

韩国东大门2015夏季新上女装时尚碎花宽松短袖雪纺蛋糕衫短款上衣;South Korea's Dongdaemun 2015 summer new women's fashion floral loose short-sleeved chiffon cake shirt short top;

步骤S208:根据上述11个推荐结果序列剩余的推荐结果得到最终推荐结果序列:Step S208: Obtain the final recommendation result sequence according to the remaining recommendation results of the above 11 recommendation result sequences:

(1)包邮新款大网鞋男凉鞋学生休闲运动鞋男夏季网布鞋男士加大码男鞋;(1) Free shipping new large mesh shoes men's sandals student casual sports shoes men's summer mesh shoes men's plus size men's shoes;

(2)中歌金立S7手机套ELIFE7壳GN9006透明硅胶保护软套外壳配件后盖潮;(2) Zhongge Gionee S7 mobile phone case ELIFE7 shell GN9006 transparent silicone protective soft cover shell accessories back cover damp;

(3)包邮男包加厚帆布双肩包男士包包休闲旅行包潮男包韩版男背包;(3) Free shipping men's bag thickened canvas backpack men's bag leisure travel bag trendy men's bag Korean version of the men's backpack;

(4)小米2s手机保护壳二s后盖手机套潮小米2皮套外壳m2超薄硬翻盖包邮;(4) Mi 2s mobile phone protective case 2s back cover mobile phone case tide Mi 2 leather case shell m2 ultra-thin hard flip cover free shipping;

步骤S209:输出上述最终推荐结果序列。Step S209: Output the above-mentioned final recommendation result sequence.

将最终推荐结果输出给用户的方式可以是现有推荐系统所采用的方式,也可以采用其他的信息输出方式,譬如,如网页的方式、文件的方式。The manner of outputting the final recommendation result to the user may be the manner adopted by the existing recommendation system, or may adopt other information output manners, such as the manner of a web page and the manner of a file.

本应用实例将11推荐结果中与用户甲的相反属性的匹配度不为0的推荐结果删除后剩下的推荐结果作为最终推荐结果,极大排除了与用户属性相矛盾的推荐结果,满足了用户的个性化推荐的需要,提高推荐的准确率,提高了用户对推荐结果的采纳率,提升了推荐系统对用户的价值。In this application example, the remaining recommendation results after deleting the recommendation results whose matching degree with the opposite attribute of user A is not 0 in the 11 recommendation results is taken as the final recommendation result, which greatly eliminates the recommendation results that contradict the user's attributes, and satisfies the The user's personalized recommendation needs, improve the accuracy of the recommendation, improve the user's adoption rate of the recommendation results, and enhance the value of the recommendation system to the user.

一个实施例中个性化推荐系统,如图3所示,包括:In one embodiment, the personalized recommendation system, as shown in Figure 3, includes:

推荐结果序列获取模块301,用于获取当前推荐系统向用户推荐的推荐结果序列;The recommendation result sequence obtaining module 301 is used to obtain the recommendation result sequence recommended by the current recommendation system to the user;

初次推荐结果序列获取模块302,用于在所述推荐结果序列中获取预设方向的预设推荐个数个推荐结果作为初次推荐结果序列,所述预设推荐个数小于或等于所述推荐结果序列中的推荐结果总数;The initial recommendation result sequence acquisition module 302 is configured to acquire a preset recommended number of recommendation results in a preset direction in the recommendation result sequence as an initial recommendation result sequence, and the preset recommendation number is less than or equal to the recommendation result The total number of recommended results in the sequence;

属性查询模块303,用于根据所述用户的身份信息在相反属性知识库预先存储的用户相反属性表中查询是否存储所述用户的相反属性;The attribute query module 303 is configured to query whether the opposite attribute of the user is stored in the user opposite attribute table pre-stored in the opposite attribute knowledge base according to the identity information of the user;

结果匹配模块304,用于当查询结果为是时,分别将所述初次推荐结果序列中的各个推荐结果与所述用户的相反属性进行匹配;A result matching module 304, configured to respectively match each recommendation result in the initial recommendation result sequence with the opposite attribute of the user when the query result is yes;

结果删除模块305,用于删除所述初次推荐结果序列中与所述用户的相反属性的匹配结果符合预设条件的推荐结果;A result deletion module 305, configured to delete a recommendation result whose matching result with the opposite attribute of the user meets a preset condition in the initial recommendation result sequence;

最终推荐结果序列获取模块306,用于根据所述初次推荐结果序列剩余的推荐结果得到最终推荐结果序列;A final recommendation result sequence obtaining module 306, configured to obtain a final recommendation result sequence according to the remaining recommendation results of the initial recommendation result sequence;

序列输出模块307,用于输出所述最终推荐结果序列。The sequence output module 307 is configured to output the final recommendation result sequence.

此外,在一个具体示例中,所述用户的身份信息包括用户ID,所述用户相反属性表包括用户字段和用户相反属性字段,所述用户字段中存储用户ID,所述用户相反属性字段中存储用户的相反属性,所述用户的相反属性根据所述用户的属性得到,所述用户的属性包括用户的年龄、性别、职业、学历、专业、特长、爱好和地理位置中的任意一项或任意组合。In addition, in a specific example, the user's identity information includes a user ID, the user opposite attribute table includes a user field and a user opposite attribute field, the user field stores the user ID, and the user opposite attribute field stores The opposite attribute of the user, the opposite attribute of the user is obtained according to the attribute of the user, and the attribute of the user includes any one or any one of the user's age, gender, occupation, education, major, specialty, hobby, and geographic location. combination.

相反属性知识库中的用户相反属性表包括用户字段、用户相反属性字段,用户字段中存储用户ID,用户相反属性字段存储用户的相反属性。从相反属性知识库中检索出该个用户的相反属性,是通过用户ID对相反属性知识库进行检索,当检索到相应用户ID时,则取出该用户ID对应的用户的相反属性。用户的相反属性根据用户的属性得到,用户的属性可以包括用户的年龄、性别、职业、学历、专业、特长、爱好和地理位置等与用户相关的信息,满足多种应用需要。The user opposite attribute table in the opposite attribute knowledge base includes a user field and a user opposite attribute field, where the user ID is stored in the user field, and the user opposite attribute field is stored in the opposite attribute of the user. Retrieving the opposite attribute of the user from the opposite attribute knowledge base is to retrieve the opposite attribute knowledge base through the user ID. When the corresponding user ID is retrieved, the opposite attribute of the user corresponding to the user ID is retrieved. The opposite attribute of the user is obtained according to the attribute of the user. The attribute of the user may include information related to the user such as the user's age, gender, occupation, education, major, specialty, hobby, and geographic location, etc., to meet the needs of various applications.

获取用户的相反属性步骤:首先查询用户的属性中关键字的反义词;当能查询到反义词时,将该反义词作为用户的相反属性;当不能查询到反义词时,根据用户的属性中关键字在数据库中查询距离所述关键字最远的同类型关键字作为用户的相反属性。其中,数据库中事先存储有各种类型关键词及其之间的距离,这里的距离是指差异性,例如,同为学历类型的关键词离“小学”距离最远的显然是“博士后”。The steps of obtaining the opposite attribute of the user: first, query the antonym of the keyword in the user's attribute; when the antonym can be queried, the antonym is used as the opposite attribute of the user; when the antonym cannot be queried, the keyword in the user's attribute is stored in the database The keyword of the same type that is farthest from the keyword in the middle query is taken as the opposite attribute of the user. Among them, various types of keywords and their distances are stored in the database in advance, and the distance here refers to the difference. For example, the keyword with the same academic type is farthest from "primary school" is obviously "postdoctoral".

如图3所示,在一个具体示例中,所述系统还包括属性获取模块308,用于当查询结果为否时,判断所述用户是否为所述当前推荐系统的注册用户;As shown in FIG. 3, in a specific example, the system further includes an attribute acquisition module 308, configured to determine whether the user is a registered user of the current recommendation system when the query result is no;

当判定结果为是时,从所述当前推荐系统的所述用户的注册信息中获取所述用户的属性,根据所述用户的属性得到所述用户的相反属性,将所述用户的相反属性存储在所述相反属性知识库中;When the determination result is yes, obtain the attribute of the user from the registration information of the user in the current recommendation system, obtain the opposite attribute of the user according to the attribute of the user, and store the opposite attribute of the user in the opposite attribute knowledge base;

当判定结果为否时,生成一个信息采集窗口,采集所述用户的属性,根据所述用户的属性得到所述用户的相反属性,将所述用户的相反属性存储在所述相反属性知识库中。When the determination result is no, an information collection window is generated, the attributes of the user are collected, the opposite attributes of the user are obtained according to the attributes of the user, and the opposite attributes of the user are stored in the opposite attribute knowledge base .

例如从相反属性知识库中检索该个用户的相反属性,当从相反属性知识库中检索不到该个用户或该个用户的相反属性时,则判断用户是否为推荐系统的注册用户,当用户是注册用户,则查询用户的注册信息中的用户属性,根据用户的属性得到用户的相反属性加入相反属性知识库,当用户不是注册用户,则弹出对话框询问用户,也可以是其他交互方式获取或查询方式获取该个用户的属性,根据用户的属性得到用户的相反属性加入相反属性知识库,如果用户的注册信息中没有用户属性信息时,也可以通过弹出对话框询问用户或是其他交互方式获取该个用户的属性,根据用户的属性得到用户的相反属性加入相反属性知识库。For example, the opposite attribute of the user is retrieved from the opposite attribute knowledge base. When the user or the opposite attribute of the user cannot be retrieved from the opposite attribute knowledge base, it is determined whether the user is a registered user of the recommendation system. If the user is a registered user, the user attribute in the user's registration information is queried, and the user's opposite attribute is obtained according to the user's attribute and added to the opposite attribute knowledge base. When the user is not a registered user, a dialog box will pop up to ask the user, or it can be obtained by other interactive methods. Or query to obtain the attributes of the user, obtain the opposite attributes of the user according to the attributes of the user and add them to the knowledge base of opposite attributes. Obtain the attribute of the user, obtain the opposite attribute of the user according to the attribute of the user, and add the opposite attribute knowledge base.

如图3所示,在一个具体示例中,所述结果匹配模块304包括:As shown in FIG. 3, in a specific example, the result matching module 304 includes:

转化单元3041,用于分别将所述初次推荐结果序列中的各个推荐结果和所述用户的相反属性转化为字符串;A conversion unit 3041, configured to convert each recommendation result in the initial recommendation result sequence and the opposite attribute of the user into character strings;

匹配单元3042,用于分别计算所述初次推荐结果序列中的各个推荐结果转化的字符串与所述用户的相反属性转化的字符串的匹配度。The matching unit 3042 is configured to calculate the matching degree of the character string transformed by each recommendation result in the initial recommendation result sequence and the character string transformed by the opposite attribute of the user, respectively.

初次推荐结果序列中的各个推荐结果和用户的相反属性都可以转化为成字符串,计算两者匹配度的可以转化为字符串匹配度或相似度的计算,从一个推荐结果与该个用户的相反属性的匹配度的大小可以看出该个推荐结果与该个用户的属性的矛盾程度,一个推荐结果与该个用户的相反属性的匹配度越大则表明该个推荐结果与该个用户的属性的矛盾程度越高。Each recommendation result in the initial recommendation result sequence and the opposite attribute of the user can be converted into strings, and the calculation of the matching degree between the two can be converted into the calculation of the matching degree or similarity of the string. The degree of matching of the opposite attribute can show the degree of contradiction between the recommendation result and the attribute of the user. The higher the degree of inconsistency of attributes.

所述匹配度的计算可以转化为字符串匹配度或相似度的计算,可以采用已有的字符串匹配度或相似度算法,譬如Edit距离法(编辑距离,就是用来计算从原串(s)转换到目标串(t)所需要的最少的插入,删除和替换的数目。显然当一个语句编辑为另一个语句所需的最少的插入,删除和替换的数目越小,则匹配度越大)、最大公共子串LCS法(显然两个语句的最大公共子串越长,则这两个语句匹配度越大);所述匹配度的计算也可以使用新的匹配度的算法,譬如将两个字符串的公共的字符数作为匹配度的大小。The calculation of the matching degree can be converted into the calculation of the matching degree or similarity of strings, and the existing algorithm of matching degree or similarity of strings can be used, such as the Edit distance method (the edit distance is used to calculate the distance from the original string (s). ) The minimum number of insertions, deletions and replacements required to convert to the target string (t). Obviously, when a statement is edited into another statement with the minimum number of insertions, deletions and replacements, the smaller the number of insertions, deletions and replacements, the greater the degree of matching ), the maximum common substring LCS method (obviously, the longer the maximum common substring of two sentences, the greater the matching degree of the two sentences); the calculation of the matching degree can also use a new matching degree algorithm, such as the The number of common characters of the two strings is used as the size of the matching degree.

如图3所示,在一个具体示例中,所述结果删除模块305包括:As shown in FIG. 3, in a specific example, the result deletion module 305 includes:

获取单元3051,用于分别获取所述初次推荐结果序列中的各个推荐结果转化的字符串与所述用户的相反属性转化的字符串的相同字符个数;The obtaining unit 3051 is used to obtain the same number of characters of the character string transformed by each recommendation result in the initial recommendation result sequence and the character string transformed by the opposite attribute of the user;

删除单元3052,用于删除所述初次推荐结果序列中与所述用户的相反属性转化的字符串的相同字符个数大于预设值的推荐结果。A deletion unit 3052, configured to delete a recommendation result in which the number of identical characters of the character string converted with the opposite attribute of the user in the initial recommendation result sequence is greater than a preset value.

一个推荐结果转化的字符串与该个用户的相反属性转化的字符串相同字符个数大于预设值(例如大于0),说明该个推荐结果与该个用户的属性的有矛盾,删除与用户属性相矛盾的推荐结果,提高推荐的准确率。The character string converted from a recommendation result is the same as the character string converted from the opposite attribute of the user. The number of characters is greater than the preset value (for example, greater than 0), indicating that the recommendation result is inconsistent with the attribute of the user. The recommendation results with conflicting attributes can improve the accuracy of the recommendation.

基于图3所示的本实施例的系统,一个具体的工作过程可以是如下所述:Based on the system of this embodiment shown in FIG. 3 , a specific working process may be as follows:

首先推荐结果序列获取模块301获取当前推荐系统向用户推荐的推荐结果序列;初次推荐结果序列获取模块302在所述推荐结果序列中获取预设方向的预设推荐个数个推荐结果作为初次推荐结果序列,所述预设第一推荐个数小于或等于所述推荐结果序列中的推荐结果总数;属性查询模块303根据所述用户的身份信息在相反属性知识库预先存储的用户相反属性表中查询是否存储所述用户的相反属性;当查询结果为是时,结果匹配模块304中的转化单元3041分别将所述初次推荐结果序列中的各个推荐结果和所述用户的相反属性转化为字符串;匹配单元3042分别计算所述初次推荐结果序列中的各个推荐结果转化的字符串与所述用户的相反属性转化的字符串的匹配度;当查询结果为否时,属性获取模块308判断所述用户是否为所述当前推荐系统的注册用户;当判定结果为是时,从所述当前推荐系统的所述用户的注册信息中获取所述用户的属性,根据所述用户的属性得到所述用户的相反属性,将所述用户的相反属性存储在所述相反属性知识库中;当判定结果为否时,生成一个信息采集窗口,采集所述用户的属性,根据所述用户的属性得到所述用户的相反属性,将所述用户的相反属性存储在所述相反属性知识库中;结果删除模块305中的获取单元3051分别获取所述初次推荐结果序列中的各个推荐结果转化的字符串与所述用户的相反属性转化的字符串的相同字符个数;删除单元3052删除所述初次推荐结果序列中与所述用户的相反属性转化的字符串的相同字符个数大于预设值的推荐结果;最终推荐结果序列获取模块306根据所述初次推荐结果序列剩余的推荐结果得到最终推荐结果序列;序列输出模块307输出所述最终推荐结果序列。First, the recommendation result sequence acquisition module 301 acquires the recommendation result sequence recommended by the current recommendation system to the user; the initial recommendation result sequence acquisition module 302 acquires a preset number of recommendation results in a preset direction in the recommendation result sequence as the initial recommendation result sequence, the preset first recommendation number is less than or equal to the total number of recommendation results in the recommendation result sequence; the attribute query module 303 searches the user's opposite attribute table pre-stored in the opposite attribute knowledge base according to the user's identity information Whether to store the opposite attribute of the user; when the query result is yes, the conversion unit 3041 in the result matching module 304 converts each recommendation result in the initial recommendation result sequence and the opposite attribute of the user into character strings; The matching unit 3042 respectively calculates the matching degree between the character string converted from each recommendation result in the initial recommendation result sequence and the character string converted from the opposite attribute of the user; when the query result is no, the attribute acquisition module 308 judges the user Whether it is a registered user of the current recommendation system; when the determination result is yes, obtain the user's attribute from the registration information of the user in the current recommendation system, and obtain the user's attribute according to the user's attribute. Opposite attribute, store the opposite attribute of the user in the opposite attribute knowledge base; when the judgment result is no, generate an information collection window, collect the attribute of the user, and obtain the user according to the attribute of the user The opposite attribute of the user is stored in the opposite attribute knowledge base; the obtaining unit 3051 in the result deletion module 305 obtains the character strings transformed by each recommendation result in the initial recommendation result sequence and the The same number of characters in the character string converted by the opposite attribute of the user; the deletion unit 3052 deletes the recommendation result whose number of identical characters in the character string converted with the opposite attribute of the user is greater than the preset value in the initial recommendation result sequence; finally The recommendation result sequence acquisition module 306 obtains the final recommendation result sequence according to the remaining recommendation results of the initial recommendation result sequence; the sequence output module 307 outputs the final recommendation result sequence.

从以上描述可知,本发明个性化推荐系统,基于相反属性知识库,极大排除了与用户属性相矛盾的推荐结果,满足了用户的个性化推荐的需要,提高推荐的准确率,提高了用户对推荐结果的采纳率,提升了推荐系统对用户的价值。It can be seen from the above description that the personalized recommendation system of the present invention, based on the opposite attribute knowledge base, greatly eliminates the recommendation results that contradict the user attributes, satisfies the user's needs for personalized recommendation, improves the accuracy of the recommendation, and improves the user experience. The adoption rate of the recommendation results increases the value of the recommendation system to users.

以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above-described embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be regarded as the scope described in this specification.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present invention, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can also be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be subject to the appended claims.

Claims (8)

1.一种个性化推荐方法,其特征在于,包括以下步骤:1. a personalized recommendation method, is characterized in that, comprises the following steps: 获取当前推荐系统向用户推荐的推荐结果序列;Obtain the recommendation result sequence recommended by the current recommendation system to the user; 在所述推荐结果序列中获取预设方向的预设推荐个数个推荐结果作为初次推荐结果序列,所述预设推荐个数小于或等于所述推荐结果序列中的推荐结果总数;Acquiring a preset number of recommendation results in a preset direction in the recommendation result sequence as an initial recommendation result sequence, where the preset recommendation number is less than or equal to the total number of recommendation results in the recommendation result sequence; 根据所述用户的身份信息在相反属性知识库预先存储的用户相反属性表中查询是否存储所述用户的相反属性;所述用户的相反属性的获取步骤包括:当能在数据库中查询到所述用户的属性中关键字的反义词时,将所述关键字的反义词作为所述用户的相反属性;当在数据库中未查询到所述用户的属性中关键字的反义词时,将数据库中距离所述关键字最远的同类型关键字作为用户的相反属性;所述距离指差异性;According to the user's identity information, query whether the user's opposite attribute is stored in the user's opposite attribute table pre-stored in the opposite attribute knowledge base; the step of obtaining the user's opposite attribute includes: when the user's opposite attribute can be queried in the database. When the antonym of the keyword in the attribute of the user is the antonym of the keyword, the antonym of the keyword is used as the opposite attribute of the user; when the antonym of the keyword in the attribute of the user is not queried in the database, the distance from the The keyword of the same type with the farthest keyword is used as the opposite attribute of the user; the distance refers to the difference; 当查询结果为是时,分别将所述初次推荐结果序列中的各个推荐结果与所述用户的相反属性进行匹配;When the query result is yes, respectively matching each recommendation result in the initial recommendation result sequence with the opposite attribute of the user; 当查询结果为否时,判断所述用户是否为所述当前推荐系统的注册用户;当判定结果为是时,从所述当前推荐系统的所述用户的注册信息中获取所述用户的属性,根据所述用户的属性得到所述用户的相反属性,将所述用户的相反属性存储在所述相反属性知识库中;当判定结果为否时,生成一个信息采集窗口,采集所述用户的属性,根据所述用户的属性得到所述用户的相反属性,将所述用户的相反属性存储在所述相反属性知识库中;When the query result is no, it is judged whether the user is a registered user of the current recommendation system; when the judgment result is yes, the attribute of the user is obtained from the registration information of the user of the current recommendation system, The opposite attribute of the user is obtained according to the attribute of the user, and the opposite attribute of the user is stored in the opposite attribute knowledge base; when the judgment result is no, an information collection window is generated to collect the attribute of the user , obtain the opposite attribute of the user according to the attribute of the user, and store the opposite attribute of the user in the opposite attribute knowledge base; 删除所述初次推荐结果序列中与所述用户的相反属性的匹配结果符合预设条件的推荐结果;所述预设条件为所述推荐结果与所述用户的相反属性的匹配度大于匹配度预设值;Delete the recommendation result whose matching result with the opposite attribute of the user meets the preset condition in the initial recommendation result sequence; the preset condition is that the matching degree of the recommendation result and the opposite attribute of the user is greater than the matching degree prediction. set value; 根据所述初次推荐结果序列剩余的推荐结果得到最终推荐结果序列;Obtain a final recommendation result sequence according to the remaining recommendation results of the initial recommendation result sequence; 输出所述最终推荐结果序列。The final recommendation result sequence is output. 2.根据权利要求1所述的个性化推荐方法,其特征在于,所述用户的身份信息包括用户ID,所述用户相反属性表包括用户字段和用户相反属性字段,所述用户字段中存储用户ID,所述用户相反属性字段中存储用户的相反属性,所述用户的相反属性根据所述用户的属性得到,所述用户的属性包括用户的年龄、性别、职业、学历、专业、特长、爱好和地理位置中的任意一项或任意组合。2. The personalized recommendation method according to claim 1, wherein the user's identity information includes a user ID, the user opposite attribute table includes a user field and a user opposite attribute field, and the user field stores the user ID, the user's opposite attribute field stores the user's opposite attribute, the user's opposite attribute is obtained according to the user's attribute, and the user's attribute includes the user's age, gender, occupation, education, major, specialty, hobby and any one or any combination of geographic locations. 3.根据权利要求1所述的个性化推荐方法,其特征在于,分别将所述初次推荐结果序列中的各个推荐结果与所述用户的相反属性进行匹配的步骤包括:3. The personalized recommendation method according to claim 1, wherein the step of respectively matching each recommendation result in the initial recommendation result sequence with the opposite attribute of the user comprises: 分别将所述初次推荐结果序列中的各个推荐结果和所述用户的相反属性转化为字符串;respectively converting each recommendation result in the initial recommendation result sequence and the opposite attributes of the user into character strings; 分别计算所述初次推荐结果序列中的各个推荐结果转化的字符串与所述用户的相反属性转化的字符串的匹配度。The degree of matching between the character string converted from each recommendation result in the initial recommendation result sequence and the character string converted from the opposite attribute of the user is calculated respectively. 4.根据权利要求3所述的个性化推荐方法,其特征在于,删除所述初次推荐结果序列中与所述用户的相反属性的匹配结果符合预设条件的推荐结果的步骤包括:4. The personalized recommendation method according to claim 3, wherein the step of deleting a recommendation result whose matching result with the opposite attribute of the user in the initial recommendation result sequence meets a preset condition comprises: 分别获取所述初次推荐结果序列中的各个推荐结果转化的字符串与所述用户的相反属性转化的字符串的相同字符个数;Respectively obtain the same number of characters of the character string transformed by each recommendation result in the sequence of initial recommendation results and the character string transformed by the opposite attribute of the user; 删除所述初次推荐结果序列中与所述用户的相反属性转化的字符串的相同字符个数大于预设值的推荐结果。Delete the recommendation result whose number of identical characters in the character string converted with the opposite attribute of the user is greater than the preset value in the initial recommendation result sequence. 5.一种个性化推荐系统,其特征在于,包括:5. A personalized recommendation system, comprising: 推荐结果序列获取模块,用于获取当前推荐系统向用户推荐的推荐结果序列;The recommendation result sequence acquisition module is used to acquire the recommendation result sequence recommended by the current recommendation system to the user; 初次推荐结果序列获取模块,用于在所述推荐结果序列中获取预设方向的预设推荐个数个推荐结果作为初次推荐结果序列,所述预设推荐个数小于或等于所述推荐结果序列中的推荐结果总数;An initial recommendation result sequence acquisition module, configured to acquire a preset number of recommendation results in a preset direction in the recommendation result sequence as an initial recommendation result sequence, where the preset number of recommendations is less than or equal to the recommendation result sequence The total number of recommended results in; 属性查询模块,用于根据所述用户的身份信息在相反属性知识库预先存储的用户相反属性表中查询是否存储所述用户的相反属性;所述用户的相反属性的获取步骤包括:当能在数据库中查询到所述用户的属性中关键字的反义词时,将所述关键字的反义词作为所述用户的相反属性;当在数据库中未查询到所述用户的属性中关键字的反义词时,将数据库中距离所述关键字最远的同类型关键字作为用户的相反属性;The attribute query module is used for querying whether the opposite attribute of the user is stored in the user opposite attribute table pre-stored in the opposite attribute knowledge base according to the identity information of the user; the step of obtaining the opposite attribute of the user includes: When the antonym of the keyword in the attribute of the user is queried in the database, the antonym of the keyword is used as the opposite attribute of the user; when the antonym of the keyword in the attribute of the user is not queried in the database, Take the keyword of the same type that is farthest from the keyword in the database as the opposite attribute of the user; 结果匹配模块,用于当查询结果为是时,分别将所述初次推荐结果序列中的各个推荐结果与所述用户的相反属性进行匹配;a result matching module, configured to respectively match each recommendation result in the initial recommendation result sequence with the opposite attribute of the user when the query result is yes; 属性获取模块,用于当查询结果为否时,判断所述用户是否为所述当前推荐系统的注册用户;当判定结果为是时,从所述当前推荐系统的所述用户的注册信息中获取所述用户的属性,根据所述用户的属性得到所述用户的相反属性,将所述用户的相反属性存储在所述相反属性知识库中;当判定结果为否时,生成一个信息采集窗口,采集所述用户的属性,根据所述用户的属性得到所述用户的相反属性,将所述用户的相反属性存储在所述相反属性知识库中;an attribute acquisition module, configured to determine whether the user is a registered user of the current recommendation system when the query result is no; acquire from the registration information of the user of the current recommendation system when the determination result is yes For the attribute of the user, obtain the opposite attribute of the user according to the attribute of the user, and store the opposite attribute of the user in the opposite attribute knowledge base; when the judgment result is no, an information collection window is generated, collecting the attributes of the user, obtaining the opposite attribute of the user according to the attribute of the user, and storing the opposite attribute of the user in the opposite attribute knowledge base; 结果删除模块,用于删除所述初次推荐结果序列中与所述用户的相反属性的匹配结果符合预设条件的推荐结果;所述预设条件为所述推荐结果与所述用户的相反属性的匹配度大于匹配度预设值;A result deletion module, configured to delete a recommendation result whose matching result with the opposite attribute of the user meets a preset condition in the initial recommendation result sequence; The matching degree is greater than the matching degree preset value; 最终推荐结果序列获取模块,用于根据所述初次推荐结果序列剩余的推荐结果得到最终推荐结果序列;a final recommendation result sequence acquisition module, configured to obtain a final recommendation result sequence according to the remaining recommendation results of the initial recommendation result sequence; 序列输出模块,用于输出所述最终推荐结果序列。A sequence output module, used for outputting the final recommendation result sequence. 6.根据权利要求5所述的个性化推荐系统,其特征在于,所述用户的身份信息包括用户ID,所述用户相反属性表包括用户字段和用户相反属性字段,所述用户字段中存储用户ID,所述用户相反属性字段中存储用户的相反属性,所述用户的相反属性根据所述用户的属性得到,所述用户的属性包括用户的年龄、性别、职业、学历、专业、特长、爱好和地理位置中的任意一项或任意组合。6 . The personalized recommendation system according to claim 5 , wherein the user's identity information includes a user ID, the user opposite attribute table includes a user field and a user opposite attribute field, and the user field stores the user ID, the user's opposite attribute field stores the user's opposite attribute, the user's opposite attribute is obtained according to the user's attribute, and the user's attribute includes the user's age, gender, occupation, education, major, specialty, hobby and any one or any combination of geographic locations. 7.根据权利要求5所述的个性化推荐系统,其特征在于,所述结果匹配模块包括:7. The personalized recommendation system according to claim 5, wherein the result matching module comprises: 转化单元,用于分别将所述初次推荐结果序列中的各个推荐结果和所述用户的相反属性转化为字符串;a conversion unit, configured to convert each recommendation result in the initial recommendation result sequence and the opposite attribute of the user into character strings; 匹配单元,用于分别计算所述初次推荐结果序列中的各个推荐结果转化的字符串与所述用户的相反属性转化的字符串的匹配度。A matching unit, configured to respectively calculate the matching degree of the character string transformed from each recommendation result in the initial recommendation result sequence and the character string transformed from the opposite attribute of the user. 8.根据权利要求7所述的个性化推荐系统,其特征在于,所述结果删除模块包括:8. The personalized recommendation system according to claim 7, wherein the result deletion module comprises: 获取单元,用于分别获取所述初次推荐结果序列中的各个推荐结果转化的字符串与所述用户的相反属性转化的字符串的相同字符个数;an obtaining unit, configured to obtain the same number of characters of the character string transformed by each recommendation result in the initial recommendation result sequence and the character string transformed by the opposite attribute of the user; 删除单元,用于删除所述初次推荐结果序列中与所述用户的相反属性转化的字符串的相同字符个数大于预设值的推荐结果。A deletion unit, configured to delete a recommendation result whose number of identical characters in the character string converted with the opposite attribute of the user is greater than a preset value in the initial recommendation result sequence.
CN201511034894.7A 2015-12-31 2015-12-31 Personalized recommendation method and system based on opposite attribute knowledge base Active CN105701680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511034894.7A CN105701680B (en) 2015-12-31 2015-12-31 Personalized recommendation method and system based on opposite attribute knowledge base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511034894.7A CN105701680B (en) 2015-12-31 2015-12-31 Personalized recommendation method and system based on opposite attribute knowledge base

Publications (2)

Publication Number Publication Date
CN105701680A CN105701680A (en) 2016-06-22
CN105701680B true CN105701680B (en) 2020-08-25

Family

ID=56226854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511034894.7A Active CN105701680B (en) 2015-12-31 2015-12-31 Personalized recommendation method and system based on opposite attribute knowledge base

Country Status (1)

Country Link
CN (1) CN105701680B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111151858B (en) * 2020-01-13 2021-10-15 吉利汽车研究院(宁波)有限公司 Spot welding parameter application system and setting method
CN112269928B (en) * 2020-10-23 2024-08-13 百度在线网络技术(北京)有限公司 User recommendation method and device, electronic equipment and computer readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329674A (en) * 2007-06-18 2008-12-24 北京搜狗科技发展有限公司 System and method for providing personalized searching
US20130091164A1 (en) * 2011-10-11 2013-04-11 Microsoft Corporation Recommending data based on user and data attributes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329674A (en) * 2007-06-18 2008-12-24 北京搜狗科技发展有限公司 System and method for providing personalized searching
US20130091164A1 (en) * 2011-10-11 2013-04-11 Microsoft Corporation Recommending data based on user and data attributes

Also Published As

Publication number Publication date
CN105701680A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
JP7136156B2 (en) Search support system, search support method and program
Zhang et al. Trip outfits advisor: Location-oriented clothing recommendation
Vaccaro et al. The elements of fashion style
JP2015526831A (en) Product identifier labeling and product navigation
CN105224775A (en) Based on the method and apparatus that picture processing is arranged in pairs or groups to clothes
JP7529088B2 (en) Information processing system, information processing method, and program
CN102332034A (en) A portrait image retrieval method and device
CN105678575B (en) Personalized recommendation method and system based on user attribute knowledge base
CN105701680B (en) Personalized recommendation method and system based on opposite attribute knowledge base
CN105677817B (en) Personalized recommendation method and system based on positive and negative attribute knowledge base
Liu et al. Weather-to-garment: Weather-oriented clothing recommendation
JP2014013460A (en) Fashion coordinate service system and its method
KR20200084647A (en) A method of providing a fashion item recommendation service to a user using a date
JP2014229129A (en) Combination presentation system and computer program
JP6494837B1 (en) Cluster generation device, cluster generation method and cluster generation program
Shoib et al. Methods and advancement of content-based fashion image retrieval: A review
CN105512341B (en) Personalized recommendation method and system based on big data search
KR101387704B1 (en) System and method providing recommended sentence using past search-word
KR20200084642A (en) A method of providing a fashion item recommendation service to a user using calendar data
Goel et al. Multimedia ontology based complementary garment recommendation
CN112750004B (en) Cold start recommendation method and device for cross-domain commodity and electronic equipment
CN114821202A (en) Clothing recommendation method based on user preference
JP7266797B2 (en) Styling database management system and method
Peng et al. Personalised virtual fitting for fashion
US20210334877A1 (en) System and method for fashion style recommendation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant