WO2023071404A1 - Recommendation method, electronic device, and storage medium - Google Patents

Recommendation method, electronic device, and storage medium Download PDF

Info

Publication number
WO2023071404A1
WO2023071404A1 PCT/CN2022/112106 CN2022112106W WO2023071404A1 WO 2023071404 A1 WO2023071404 A1 WO 2023071404A1 CN 2022112106 W CN2022112106 W CN 2022112106W WO 2023071404 A1 WO2023071404 A1 WO 2023071404A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
service
information
historical behavior
server
Prior art date
Application number
PCT/CN2022/112106
Other languages
French (fr)
Chinese (zh)
Inventor
刘辉
Original Assignee
花瓣云科技有限公司
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 花瓣云科技有限公司 filed Critical 花瓣云科技有限公司
Publication of WO2023071404A1 publication Critical patent/WO2023071404A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies

Abstract

The present application relates to the field of data processing, and provides a recommendation method, an electronic device, and a storage medium. According to the method, the feature information in a second service corresponding to historical behavior information related to a first user, and the feature information corresponding to historical behavior information of the other one or more users in the second service can be matched, a user grouping result of the first user in the second service can be determined, and personalized recommendation can be performed to the first user in a first service on the basis of the user grouping result of the first user in the second service. By means of the method, user grouping results can be narrowed down, the accuracy of personalized recommendation can be effectively improved, and recommendation results that the first user is more interested in can be recommended to the first user.

Description

推荐方法、电子设备及存储介质Recommended method, electronic equipment and storage medium
本申请要求于2021年10月29日提交国家知识产权局、申请号为202111276088.6、申请名称为“推荐方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office on October 29, 2021, with application number 202111276088.6, and application title "Recommended method, electronic device, and storage medium", the entire contents of which are incorporated herein by reference. Applying.
技术领域technical field
本申请涉及数据处理领域,尤其涉及一种推荐方法、电子设备及存储介质。The present application relates to the field of data processing, and in particular to a recommendation method, electronic equipment and a storage medium.
背景技术Background technique
个性化推荐一般是指通过分析和挖掘用户的历史行为信息,发现用户的个性化需求与兴趣特点,将用户可能感兴趣的信息或商品推荐给用户。个性化推荐可以应用于电商系统、社交网络、广告推荐、搜索引擎等多个方面。Personalized recommendation generally refers to discovering the user's individual needs and interest characteristics by analyzing and mining the user's historical behavior information, and recommending information or products that the user may be interested in to the user. Personalized recommendations can be applied to e-commerce systems, social networks, advertising recommendations, search engines, and many other aspects.
以个性化推荐在视频平台中的应用为例,视频平台也可以包括一个专门用于个性化推荐的推荐系统,推荐系统可以通过分析和挖掘用户观看的历史视频,发现用户对哪种类型的视频更感兴趣,并向用户推荐其更感兴趣的视频。或者,推荐系统还可以评测用户与其他用户之间的相似性,并基于用户协同过滤(user collaboration filter,UserCF)算法向用户推荐与用户相似的其他用户所感兴趣的视频等。例如,用户A曾经多次观看的电影都是科幻类的电影,如:科幻电影1、科幻电影2等,推荐系统通过数据分析找到用户B曾经也多次观看科幻电影1、科幻电影2,并且用户B还多次观看了科幻电影3,则推荐系统可以向用户A推荐科幻电影3。Taking the application of personalized recommendation in the video platform as an example, the video platform can also include a recommendation system dedicated to personalized recommendation. The recommendation system can analyze and mine historical videos watched by users to find out which types of videos users prefer. more interesting, and recommend videos that are more interesting to users. Alternatively, the recommendation system can also evaluate the similarity between the user and other users, and based on the user collaborative filtering (user collaboration filter, UserCF) algorithm, recommend to the user videos that are similar to the user and other users are interested in. For example, the movies that user A has watched many times are all sci-fi movies, such as: sci-fi movie 1, sci-fi movie 2, etc. The recommendation system finds that user B has also watched sci-fi movie 1 and sci-fi movie 2 many times through data analysis, and User B has also watched science fiction movie 3 many times, then the recommendation system can recommend science fiction movie 3 to user A.
可以看到,向用户进行个性化推荐时,需要依赖于用户的历史行为信息,基于用户的历史行为信息对用户进行推荐。但是,个性化推荐经常面临增量的问题,如:面对新增用户的个性化推荐。而新增用户对个性化推荐的推荐系统而言是没有历史行为信息的,推荐系统并不能够依赖于用户的历史行为信息向用户进行个性化推荐。It can be seen that when making personalized recommendations to users, it needs to rely on the user's historical behavior information, and recommend users based on the user's historical behavior information. However, personalized recommendation often faces incremental problems, such as: personalized recommendation for new users. However, new users do not have historical behavior information for the recommendation system of personalized recommendation, and the recommendation system cannot rely on the user's historical behavior information to make personalized recommendations to users.
发明内容Contents of the invention
本申请提供一种推荐方法、电子设备及存储介质,可以缩小用户分群的结果,有效提高个性化推荐的精准度,为用户推荐其更感兴趣的推荐结果。The present application provides a recommendation method, an electronic device and a storage medium, which can reduce the results of user grouping, effectively improve the accuracy of personalized recommendation, and recommend more interesting recommendation results for users.
第一方面,本申请提供一种推荐方法,所述方法包括:第一设备向服务器发送第一用户的用户信息;服务器向第一设备发送推荐信息;推荐信息是与第一用户群组中的用户使用第一服务相关的信息;第一用户的用户信息与第一用户群组相关;第一用户群组是根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息相匹配所确定的。In the first aspect, the present application provides a recommendation method, the method includes: the first device sends the user information of the first user to the server; the server sends recommendation information to the first device; the recommendation information is related to the first user group Information related to the user's use of the first service; the user information of the first user is related to the first user group; the first user group is based on the characteristic information corresponding to the historical behavior information related to the first user in the second service, and other The feature information corresponding to the historical behavior information of one or more users in the second service is determined by matching.
该方法通过将第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息相匹配,确定第一用户在第二服务中的用户分群结果,并基于第一用户在第二服务中的用户分群结果,在第一服务中向第一用户进行个性化推荐,可以缩小对第一用户进行用户分群的结果,有效提高个性化推荐的精准度,为第一用户推荐其更感兴趣的推荐结果。The method determines that the first user is in User grouping results in the second service, and based on the user grouping results of the first user in the second service, personalized recommendations are made to the first user in the first service, which can narrow down the results of user grouping for the first user, Effectively improve the accuracy of personalized recommendation, and recommend more interesting recommendation results for the first user.
一种可能的实现方式中,第一设备包括第一服务和第二服务;所述方法还包括: 第一设备向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。In a possible implementation manner, the first device includes a first service and a second service; the method further includes: the first device sends feature information corresponding to historical behavior information related to the first user in the second service to the server.
本方式中,第一服务和第二服务可以都由第一设备提供。In this manner, both the first service and the second service may be provided by the first device.
示例性地,第二服务中与第一用户相关的历史行为信息,可以包括:第一用户在第二服务中对应的历史行为信息、或者与第一用户的账号关联的其他账号(家庭公用账号或其他用户的账号)在第二服务中对应的历史行为信息。Exemplarily, the historical behavior information related to the first user in the second service may include: the corresponding historical behavior information of the first user in the second service, or other accounts (family public account) associated with the first user's account or other user's account) corresponding historical behavior information in the second service.
另一种可能的实现方式中,第一设备包括第一服务,第二设备包括第二服务;所述方法还包括:第二设备向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。In another possible implementation manner, the first device includes a first service, and the second device includes a second service; the method further includes: the second device sends historical behavior information related to the first user in the second service to the server Corresponding feature information.
本方式中,第一服务可以由第一设备提供,第二服务可以由第二设备提供。In this manner, the first service may be provided by the first device, and the second service may be provided by the second device.
示例性地,第一设备和第二设备可以是多设备协同场景中的两个终端设备。Exemplarily, the first device and the second device may be two terminal devices in a multi-device coordination scenario.
一种可能的实现方式中,所述第一设备向服务器发送第一用户的用户信息,包括:第一设备通过第三设备向服务器发送第一用户的用户信息。所述服务器向第一设备发送推荐信息,包括:服务器通过第三设备向第一设备发送推荐信息。In a possible implementation manner, the sending, by the first device, the user information of the first user to the server includes: sending, by the first device, the user information of the first user to the server through a third device. The server sending the recommendation information to the first device includes: the server sending the recommendation information to the first device through the third device.
可选地,本方式中,第一设备可以是设备资源较少、无法独立联网和/或人机交互的设备,第三设备可以是设备资源较为丰富、可独立联网和人机交互的设备。Optionally, in this method, the first device may be a device with less device resources and cannot be independently networked and/or human-computer interaction, and the third device may be a device with relatively rich device resources and independent network and human-computer interaction.
可选地,所述第一设备向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息,可以包括:第一设备通过第三设备向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the sending by the first device to the server of the characteristic information corresponding to the historical behavior information related to the first user in the second service may include: the first device sends to the server the feature information related to the first user in the second service through the third device Feature information corresponding to user-related historical behavior information.
可选地,所述第二设备向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息,可以包括:第二设备通过第四设备向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the second device sending to the server the characteristic information corresponding to the historical behavior information related to the first user in the second service may include: the second device sends to the server through the fourth device Feature information corresponding to user-related historical behavior information.
示例性的,第二设备可以是设备资源较少、无法独立联网和/或人机交互的设备,第四设备可以是设备资源较为丰富、可独立联网和人机交互的设备。Exemplarily, the second device may be a device with less device resources, which cannot be independently networked and/or human-computer interaction, and the fourth device may be a device with relatively rich device resources, which may be independently networked and human-computer interaction.
一种可能的实现方式中,第一用户的用户信息,包括:第一用户的标识信息,和/或,第一用户群组的标识信息。In a possible implementation manner, the user information of the first user includes: identification information of the first user, and/or identification information of the first user group.
例如,第一用户的标识信息可以是第一用户的用户账号。For example, the identification information of the first user may be a user account of the first user.
可选地,所述方法还包括:服务器根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息,确定第一用户群组;服务器向第一设备发送第一用户群组的标识信息。Optionally, the method further includes: the server according to the characteristic information corresponding to the historical behavior information related to the first user in the second service and the characteristic information corresponding to the historical behavior information of one or more other users in the second service , determine the first user group; the server sends the identification information of the first user group to the first device.
第一用户群组中的其他用户在第二服务中的历史行为信息与第二服务中与第一用户相关的历史行为信息具有相似性。The historical behavior information of other users in the first user group in the second service is similar to the historical behavior information related to the first user in the second service.
一种可能的实现方式中,第二服务中与第一用户相关的历史行为信息对应的特征信息,包括:第二服务中与第一用户相关的历史行为信息对应的哈希值。其他一个或多个用户在第二服务中的历史行为信息对应的特征信息,包括:其他一个或多个用户在第二服务中的历史行为信息对应的哈希值。In a possible implementation manner, the characteristic information corresponding to the historical behavior information related to the first user in the second service includes: a hash value corresponding to the historical behavior information related to the first user in the second service. The feature information corresponding to the historical behavior information of the other one or more users in the second service includes: a hash value corresponding to the historical behavior information of the other one or more users in the second service.
可选地,第二服务中与第一用户相关的历史行为信息对应的哈希值是采用第一哈希算法对第一编码结果进行哈希计算得到的,第一编码结果是采用第一编码方式对第二服务中与第一用户相关的历史行为信息进行编码处理得到的。其他一个或多个用户在第二服务中的历史行为信息对应的哈希值是采用第一哈希算法对第二编码结果进行 哈希计算得到的,第二编码结果是采用第一编码方式对其他一个或多个用户在第二服务中的历史行为信息进行编码处理得到的。Optionally, the hash value corresponding to the historical behavior information related to the first user in the second service is obtained by hashing the first encoding result using the first hash algorithm, and the first encoding result is obtained by using the first encoding The method is obtained by encoding the historical behavior information related to the first user in the second service. The hash value corresponding to the historical behavior information of one or more users in the second service is obtained by hashing the second encoding result using the first hash algorithm, and the second encoding result is obtained by using the first encoding method to It is obtained by encoding the historical behavior information of one or more other users in the second service.
示例性地,第一哈希算法可以包括:局部敏感哈希(locality sensitive hashing,LSH)算法、使用杰卡德(jaccard)度量数据相似度的最小哈希(min-hash)算法、使用欧氏距离度量数据相似度的P稳定哈希(P-stable hash)算法、simhash算法等。Exemplarily, the first hash algorithm may include: a locality sensitive hash (locality sensitive hashing, LSH) algorithm, a minimum hash (min-hash) algorithm using Jaccard (jaccard) to measure data similarity, a P-stable hash (P-stable hash) algorithm, simhash algorithm, etc., which measure data similarity by distance.
可选地,第一哈希算法具有对待哈希数据进行哈希计算后保持哈希值的相似性的特性。Optionally, the first hash algorithm has the characteristic of maintaining the similarity of hash values after hash calculation is performed on the data to be hashed.
示例性地,第一编码方式可以包括:独热(one-hot)编码、索引(index)编码(基于字典的编码)、多热(multiple-hot)编码等。Exemplarily, the first encoding manner may include: one-hot encoding, index (index) encoding (dictionary-based encoding), multi-hot (multiple-hot) encoding, and the like.
可选地,采用第一编码方式对历史行为信息进行编码时,不同的历史行为信息对应的编码结果(如第一编码结果、第二编码结果)唯一。Optionally, when the historical behavior information is encoded using the first encoding method, the encoding results (such as the first encoding result and the second encoding result) corresponding to different historical behavior information are unique.
一种可能的实现方式中,所述第一设备向服务器发送第一用户的用户信息,包括:当检测到第一用户第一次使用第一服务时,第一设备向服务器发送第一用户的用户信息。In a possible implementation manner, the first device sending the user information of the first user to the server includes: when detecting that the first user uses the first service for the first time, the first device sends the first user's information to the server. User Info.
本方式中,第一用户第一次使用第一服务时向第一用户进行个性化推荐可以称为对第一用户进行用户冷启动,该方法可以提高针对第一用户进行用户冷启动时的推荐准确度,用户冷启动的效果可以更好。In this method, making personalized recommendations to the first user when the first user uses the first service for the first time can be referred to as performing a user cold start for the first user. This method can improve the recommendation for the first user when performing a user cold start. Accuracy, the effect of user cold start can be better.
第二方面,本申请提供一种推荐系统,推荐系统可以实现如第一方面及第一方面的任意一种可能的实现方式所述的推荐方法。In a second aspect, the present application provides a recommendation system, and the recommendation system can implement the recommendation method described in the first aspect and any possible implementation manner of the first aspect.
例如,推荐系统可以包括:第一设备和服务器。第一设备可以用于向服务器发送第一用户的用户信息。服务器可以用于向第一设备发送推荐信息。推荐信息是与第一用户群组中的用户使用第一服务相关的信息;第一用户的用户信息与第一用户群组相关;第一用户群组是根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息相匹配所确定的。For example, the recommendation system may include: a first device and a server. The first device may be configured to send user information of the first user to the server. The server can be used to send recommendation information to the first device. The recommended information is information related to the use of the first service by users in the first user group; the user information of the first user is related to the first user group; the first user group is based on the information related to the first user in the second service The characteristic information corresponding to the historical behavior information of the user and the characteristic information corresponding to the historical behavior information of the other one or more users in the second service are determined by matching.
一种可能的实现方式中,第一设备包括第一服务和第二服务;第一设备还用于向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。In a possible implementation manner, the first device includes a first service and a second service; the first device is further configured to send feature information corresponding to historical behavior information related to the first user in the second service to the server.
另一种可能的实现方式中,推荐系统还包括第二设备。第一设备包括第一服务,第二设备包括第二服务。第二设备可以用于向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。In another possible implementation manner, the recommendation system further includes a second device. The first device includes a first service and the second device includes a second service. The second device may be configured to send feature information corresponding to historical behavior information related to the first user in the second service to the server.
一种可能的实现方式中,推荐系统还包括第三设备,第一设备具体用于通过第三设备向服务器发送第一用户的用户信息。服务器具体用于通过第三设备向第一设备发送推荐信息。In a possible implementation manner, the recommendation system further includes a third device, and the first device is specifically configured to send the user information of the first user to the server through the third device. The server is specifically configured to send recommendation information to the first device through the third device.
一种可能的实现方式中,第一用户的用户信息,包括:第一用户的标识信息,和/或,第一用户群组的标识信息。In a possible implementation manner, the user information of the first user includes: identification information of the first user, and/or identification information of the first user group.
可选地,服务器还用于根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息,确定第一用户群组;以及,向第一设备发送第一用户群组的标识信息。Optionally, the server is further configured to determine the second service according to the characteristic information corresponding to the historical behavior information related to the first user in the second service and the characteristic information corresponding to the historical behavior information of one or more other users in the second service. A user group; and, sending identification information of the first user group to the first device.
一种可能的实现方式中,第二服务中与第一用户相关的历史行为信息对应的特征 信息,包括:第二服务中与第一用户相关的历史行为信息对应的哈希值。其他一个或多个用户在第二服务中的历史行为信息对应的特征信息,包括:其他一个或多个用户在第二服务中的历史行为信息对应的哈希值。In a possible implementation, the feature information corresponding to the historical behavior information related to the first user in the second service includes: the hash value corresponding to the historical behavior information related to the first user in the second service. The feature information corresponding to the historical behavior information of the other one or more users in the second service includes: a hash value corresponding to the historical behavior information of the other one or more users in the second service.
可选地,第二服务中与第一用户相关的历史行为信息对应的哈希值是采用第一哈希算法对第一编码结果进行哈希计算得到的,第一编码结果是采用第一编码方式对第二服务中与第一用户相关的历史行为信息进行编码处理得到的。其他一个或多个用户在第二服务中的历史行为信息对应的哈希值是采用第一哈希算法对第二编码结果进行哈希计算得到的,第二编码结果是采用第一编码方式对其他一个或多个用户在第二服务中的历史行为信息进行编码处理得到的。Optionally, the hash value corresponding to the historical behavior information related to the first user in the second service is obtained by hashing the first encoding result using the first hash algorithm, and the first encoding result is obtained by using the first encoding The method is obtained by encoding the historical behavior information related to the first user in the second service. The hash value corresponding to the historical behavior information of one or more users in the second service is obtained by hashing the second encoding result using the first hash algorithm, and the second encoding result is obtained by using the first encoding method to It is obtained by encoding the historical behavior information of one or more other users in the second service.
一种可能的实现方式中,第一设备具体用于,当检测到第一用户第一次使用第一服务时,向服务器发送第一用户的用户信息。In a possible implementation manner, the first device is specifically configured to, when detecting that the first user uses the first service for the first time, send the user information of the first user to the server.
类似地,推荐系统可以实现如第一方面及第一方面的任意一种可能的实现方式所述的推荐方法的全部步骤对应的功能,在此不再一一赘述。Similarly, the recommendation system can realize the functions corresponding to all the steps of the recommendation method described in the first aspect and any possible implementation manner of the first aspect, which will not be repeated here.
上述第二方面所具备的有益效果,可参考第一方面中所述,在此不再赘述。For the beneficial effects of the above-mentioned second aspect, reference may be made to the description in the first aspect, which will not be repeated here.
第三方面,本申请提供一种推荐方法,可以应用于第一设备。所述方法包括:向服务器发送第一用户的用户信息;接收来自服务器的推荐信息;推荐信息是与第一用户群组中的用户使用第一服务相关的信息;第一用户的用户信息与第一用户群组相关;第一用户群组是根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在所述第二服务中的历史行为信息对应的特征信息相匹配所确定的。In a third aspect, the present application provides a recommendation method that can be applied to the first device. The method includes: sending user information of the first user to the server; receiving recommendation information from the server; the recommendation information is information related to the use of the first service by users in the first user group; the user information of the first user is related to the second service. A user group is related; the first user group is based on the feature information corresponding to the historical behavior information related to the first user in the second service and the historical behavior information of one or more other users in the second service. The feature information matches what is determined.
该方法可以缩小对第一用户进行用户分群的结果,有效提高个性化推荐的精准度,为第一用户推荐其更感兴趣的推荐结果。The method can narrow down the results of user grouping for the first user, effectively improve the accuracy of personalized recommendation, and recommend more interesting recommendation results for the first user.
一种可能的实现方式中,第一设备包括第一服务和第二服务;所述方法还包括:向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。In a possible implementation manner, the first device includes a first service and a second service; the method further includes: sending feature information corresponding to historical behavior information related to the first user in the second service to the server.
示例性地,第二服务中与第一用户相关的历史行为信息,可以包括:第一用户在第二服务中对应的历史行为信息、或者与第一用户的账号关联的其他账号(家庭公用账号或其他用户的账号)在第二服务中对应的历史行为信息。Exemplarily, the historical behavior information related to the first user in the second service may include: the corresponding historical behavior information of the first user in the second service, or other accounts (family public account) associated with the first user's account or other user's account) corresponding historical behavior information in the second service.
另一种可能的实现方式中,第一设备包括第一服务,第二设备包括第二服务。In another possible implementation manner, the first device includes the first service, and the second device includes the second service.
示例性地,第一设备和第二设备可以是多设备协同场景中的两个终端设备。Exemplarily, the first device and the second device may be two terminal devices in a multi-device coordination scenario.
一种可能的实现方式中,所述向服务器发送第一用户的用户信息,包括:通过第三设备向服务器发送第一用户的用户信息。所述接收来自服务器的推荐信息,包括:通过第三设备接收来自服务器的推荐信息。In a possible implementation manner, the sending the user information of the first user to the server includes: sending the user information of the first user to the server through a third device. The receiving the recommendation information from the server includes: receiving the recommendation information from the server through the third device.
可选地,本方式中,第一设备可以是设备资源较少、无法独立联网和/或人机交互的设备,第三设备可以是设备资源较为丰富、可独立联网和人机交互的设备。Optionally, in this method, the first device may be a device with less device resources and cannot be independently networked and/or human-computer interaction, and the third device may be a device with relatively rich device resources and independent network and human-computer interaction.
可选地,所述向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息,可以包括:通过第三设备向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the sending to the server the characteristic information corresponding to the historical behavior information related to the first user in the second service may include: sending the historical behavior information related to the first user in the second service to the server through a third device Corresponding feature information.
可选地,所述方法还包括:接收来自服务器发送的第一用户群组的标识信息;第一用户群组是服务器根据第二服务中与第一用户相关的历史行为信息对应的特征信息、 以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息所确定的。Optionally, the method further includes: receiving identification information of the first user group sent from the server; the first user group is characteristic information corresponding to the historical behavior information related to the first user in the second service by the server, and other feature information corresponding to the historical behavior information of one or more users in the second service.
一种可能的实现方式中,所述向服务器发送第一用户的用户信息,包括:当检测到第一用户第一次使用第一服务时,向服务器发送第一用户的用户信息。In a possible implementation manner, the sending the user information of the first user to the server includes: sending the user information of the first user to the server when it is detected that the first user uses the first service for the first time.
本方式中,第一用户第一次使用第一服务时向第一用户进行个性化推荐可以称为对第一用户进行用户冷启动,该方法可以提高针对第一用户进行用户冷启动时的推荐准确度,用户冷启动的效果可以更好。In this method, making personalized recommendations to the first user when the first user uses the first service for the first time can be referred to as performing a user cold start for the first user. This method can improve the recommendation for the first user when performing a user cold start. Accuracy, the effect of user cold start can be better.
上述第三方面中部分实现方式的有益效果可以参考第一方面中所述,未再赘述。For the beneficial effects of some implementations in the above third aspect, reference may be made to the description in the first aspect, and details are not repeated here.
第四方面,本申请提供一种推荐装置,该装置可以应用于电子设备(如第一设备),以使电子设备实现如第三方面及第三方面的任意一种可能的实现方式所述的推荐方法。该装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与第三方面及第三方面的任意一种可能的实现方式所述的推荐方法中的步骤相对应的模块或单元。In a fourth aspect, the present application provides a recommendation device, which can be applied to an electronic device (such as the first device), so that the electronic device can realize the above mentioned in the third aspect and any possible implementation manner of the third aspect. recommended method. The functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules or units corresponding to the steps in the recommended method described in the third aspect and any possible implementation manner of the third aspect.
例如,该装置可以包括:发送单元、接收单元等。发送单元可以用于向服务器发送第一用户的用户信息;接收单元可以用于接收来自服务器的推荐信息;推荐信息是与第一用户群组中的用户使用第一服务相关的信息;第一用户的用户信息与第一用户群组相关;第一用户群组是根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在所述第二服务中的历史行为信息对应的特征信息相匹配所确定的。For example, the device may include: a sending unit, a receiving unit, and the like. The sending unit may be used to send user information of the first user to the server; the receiving unit may be used to receive recommendation information from the server; the recommendation information is information related to the use of the first service by users in the first user group; the first user The user information is related to the first user group; the first user group is based on the characteristic information corresponding to the historical behavior information related to the first user in the second service, and the other one or more users in the second service It is determined by matching the characteristic information corresponding to the historical behavior information.
一种可能的实现方式中,第一设备包括第一服务和第二服务;发送单元,还用于向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。In a possible implementation manner, the first device includes a first service and a second service; the sending unit is further configured to send feature information corresponding to historical behavior information related to the first user in the second service to the server.
另一种可能的实现方式中,第一设备包括第一服务,第二设备包括第二服务。In another possible implementation manner, the first device includes the first service, and the second device includes the second service.
一种可能的实现方式中,发送单元,具体用于通过第三设备向服务器发送第一用户的用户信息。接收单元,具体用于通过第三设备接收来自服务器的推荐信息。In a possible implementation manner, the sending unit is specifically configured to send the user information of the first user to the server through the third device. The receiving unit is specifically configured to receive recommendation information from the server through the third device.
可选地,发送单元,具体用于通过第三设备向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the sending unit is specifically configured to send the feature information corresponding to the historical behavior information related to the first user in the second service to the server through the third device.
可选地,接收单元,还用于接收来自服务器发送的第一用户群组的标识信息;第一用户群组是服务器根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息所确定的。Optionally, the receiving unit is further configured to receive identification information of the first user group sent from the server; the first user group is characteristic information corresponding to the historical behavior information related to the first user in the second service by the server, and other feature information corresponding to the historical behavior information of one or more users in the second service.
一种可能的实现方式中,发送单元,具体用于当检测到第一用户第一次使用第一服务时,向服务器发送第一用户的用户信息。In a possible implementation manner, the sending unit is specifically configured to send the user information of the first user to the server when it is detected that the first user uses the first service for the first time.
类似地,该装置可以实现如第三方面及第三方面的任意一种可能的实现方式所述的推荐方法的全部步骤对应的功能,在此不再一一赘述。Similarly, the device can realize the functions corresponding to all the steps of the recommendation method described in the third aspect and any possible implementation manner of the third aspect, which will not be repeated here.
第五方面,本申请提供一种电子设备,如电子设备可以是上述第一设备。电子设备包括:处理器,用于存储处理器可执行指令的存储器;处理器被配置为执行所述指令时,使得电子设备实现如第三方面及第三方面的任意一种可能的实现方式所述的推荐方法。In a fifth aspect, the present application provides an electronic device, for example, the electronic device may be the above-mentioned first device. The electronic device includes: a processor, a memory for storing processor-executable instructions; when the processor is configured to execute the instructions, the electronic device implements the third aspect and any possible implementation manner of the third aspect. recommended method described above.
第六方面,本申请提供一种计算机可读存储介质,其上存储有计算机程序指令;当所述计算机程序指令被电子设备执行时,使得电子设备实现如第三方面及第三方面的任意一种可能的实现方式所述的推荐方法。In a sixth aspect, the present application provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by an electronic device, the electronic device realizes any one of the third aspect and the third aspect. Recommended method as described in one possible implementation.
第七方面,本申请提供一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如第三方面及第三方面的任意一种可能的实现方式所述的推荐方法。In a seventh aspect, the present application provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are run in an electronic device The processor in the electronic device implements the recommendation method described in the third aspect and any possible implementation manner of the third aspect.
上述第四方面至第七方面所具备的有益效果,可参考第三方面中所述,在此不再赘述。For the beneficial effects of the above-mentioned fourth aspect to the seventh aspect, reference may be made to the third aspect, which will not be repeated here.
第八方面,本申请提供一种推荐方法,可以应用于服务器。所述方法包括:接收来自第一设备发送的第一用户的用户信息;向第一设备发送推荐信息。推荐信息是与第一用户群组中的用户使用第一服务相关的信息;第一用户的用户信息与第一用户群组相关;第一用户群组是根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息相匹配所确定的。In an eighth aspect, the present application provides a recommendation method that can be applied to a server. The method includes: receiving user information of the first user sent by the first device; and sending recommendation information to the first device. The recommended information is information related to the use of the first service by users in the first user group; the user information of the first user is related to the first user group; the first user group is based on the information related to the first user in the second service The characteristic information corresponding to the historical behavior information of the user and the characteristic information corresponding to the historical behavior information of the other one or more users in the second service are determined by matching.
该方法通过将第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息相匹配,确定第一用户在第二服务中的用户分群结果,并基于第一用户在第二服务中的用户分群结果,在第一服务中向第一用户进行个性化推荐,可以缩小对第一用户进行用户分群的结果,有效提高个性化推荐的精准度,为第一用户推荐其更感兴趣的推荐结果。The method determines that the first user is in User grouping results in the second service, and based on the user grouping results of the first user in the second service, personalized recommendations are made to the first user in the first service, which can narrow down the results of user grouping for the first user, Effectively improve the accuracy of personalized recommendation, and recommend more interesting recommendation results for the first user.
一种可能的实现方式中,第一设备包括第一服务和第二服务;所述方法还包括:接收来自第一设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。In a possible implementation manner, the first device includes a first service and a second service; the method further includes: receiving characteristic information corresponding to historical behavior information related to the first user in the second service sent by the first device .
本方式中,第一服务和第二服务可以都由第一设备提供。In this manner, both the first service and the second service may be provided by the first device.
示例性地,第二服务中与第一用户相关的历史行为信息,可以包括:第一用户在第二服务中对应的历史行为信息、或者与第一用户的账号关联的其他账号(家庭公用账号或其他用户的账号)在第二服务中对应的历史行为信息。Exemplarily, the historical behavior information related to the first user in the second service may include: the corresponding historical behavior information of the first user in the second service, or other accounts (family public account) associated with the first user's account or other user's account) corresponding historical behavior information in the second service.
另一种可能的实现方式中,第一设备包括第一服务,第二设备包括第二服务;所述方法还包括:接收来自第二设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。In another possible implementation manner, the first device includes a first service, and the second device includes a second service; the method further includes: receiving historical behavior related to the first user in the second service from the second device The feature information corresponding to the information.
本方式中,第一服务可以由第一设备提供,第二服务可以由第二设备提供。In this manner, the first service may be provided by the first device, and the second service may be provided by the second device.
示例性地,第一设备和第二设备可以是多设备协同场景中的两个终端设备。Exemplarily, the first device and the second device may be two terminal devices in a multi-device coordination scenario.
一种可能的实现方式中,所述接收来自第一设备发送的第一用户的用户信息,包括:通过第三设备接收来自第一设备发送的第一用户的用户信息。所述向第一设备发送推荐信息,包括:通过第三设备向第一设备发送推荐信息。In a possible implementation manner, the receiving the user information of the first user sent by the first device includes: receiving the user information of the first user sent by the first device through a third device. The sending the recommendation information to the first device includes: sending the recommendation information to the first device through the third device.
可选地,本方式中,第一设备可以是设备资源较少、无法独立联网和/或人机交互的设备,第三设备可以是设备资源较为丰富、可独立联网和人机交互的设备。Optionally, in this method, the first device may be a device with less device resources and cannot be independently networked and/or human-computer interaction, and the third device may be a device with relatively rich device resources and independent network and human-computer interaction.
可选地,所述接收来自第一设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息,可以包括:通过第三设备接收来自第一设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the receiving the feature information corresponding to the historical behavior information related to the first user in the second service sent by the first device may include: receiving the feature information from the second service sent by the first device through the third device. Feature information corresponding to historical behavior information related to the first user.
可选地,所述接收来自第二设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息,可以包括:通过第四设备接收来自第二设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the receiving the feature information corresponding to the historical behavior information related to the first user in the second service sent by the second device may include: receiving, by the fourth device, the feature information corresponding to the historical behavior information in the second service sent by the second device. Feature information corresponding to historical behavior information related to the first user.
示例性的,第二设备可以是设备资源较少、无法独立联网和/或人机交互的设备,第四设备可以是设备资源较为丰富、可独立联网和人机交互的设备。Exemplarily, the second device may be a device with less device resources, which cannot be independently networked and/or human-computer interaction, and the fourth device may be a device with relatively rich device resources, which may be independently networked and human-computer interaction.
可选地,所述方法还包括:根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息,确定第一用户群组;向第一设备发送第一用户群组的标识信息。Optionally, the method further includes: according to the characteristic information corresponding to the historical behavior information related to the first user in the second service and the characteristic information corresponding to the historical behavior information of one or more other users in the second service, Determine the first user group; send the identification information of the first user group to the first device.
一种可能的实现方式中,第一用户是第一次使用第一服务。In a possible implementation manner, the first user uses the first service for the first time.
本方式中,第一用户第一次使用第一服务时向第一用户进行个性化推荐可以称为对第一用户进行用户冷启动,该方法可以提高针对第一用户进行用户冷启动时的推荐准确度,用户冷启动的效果可以更好。In this method, making personalized recommendations to the first user when the first user uses the first service for the first time can be referred to as performing a user cold start for the first user. This method can improve the recommendation for the first user when performing a user cold start. Accuracy, the effect of user cold start can be better.
上述第八方面中部分实现方式的有益效果可以参考第一方面中所述,未再赘述。For the beneficial effects of some implementations in the eighth aspect above, reference may be made to the description in the first aspect, and details are not repeated here.
第九方面,本申请提供一种推荐装置,该装置可以应用于电子设备(如服务器),以使电子设备实现如第八方面及第八方面的任意一种可能的实现方式所述的推荐方法。该装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与第八方面及第八方面的任意一种可能的实现方式所述的推荐方法中的步骤相对应的模块或单元。In a ninth aspect, the present application provides a recommendation device, which can be applied to an electronic device (such as a server), so that the electronic device implements the recommendation method described in the eighth aspect and any possible implementation of the eighth aspect . The functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules or units corresponding to the steps in the recommended method described in the eighth aspect and any possible implementation manner of the eighth aspect.
例如,该装置可以包括:接收单元和发送单元。接收单元可以用于接收来自第一设备发送的第一用户的用户信息;发送单元可以用于向第一设备发送推荐信息。推荐信息是与第一用户群组中的用户使用第一服务相关的信息;第一用户的用户信息与第一用户群组相关;第一用户群组是根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息相匹配所确定的。For example, the device may include: a receiving unit and a sending unit. The receiving unit may be configured to receive user information of the first user sent from the first device; the sending unit may be configured to send recommendation information to the first device. The recommended information is information related to the use of the first service by users in the first user group; the user information of the first user is related to the first user group; the first user group is based on the information related to the first user in the second service The characteristic information corresponding to the historical behavior information of the user and the characteristic information corresponding to the historical behavior information of the other one or more users in the second service are determined by matching.
一种可能的实现方式中,第一设备包括第一服务和第二服务;接收单元,还用于接收来自第一设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。In a possible implementation manner, the first device includes a first service and a second service; the receiving unit is further configured to receive characteristic information corresponding to historical behavior information related to the first user in the second service sent by the first device .
另一种可能的实现方式中,第一设备包括第一服务,第二设备包括第二服务;接收单元,还用于接收来自第二设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。In another possible implementation manner, the first device includes a first service, and the second device includes a second service; the receiving unit is further configured to receive historical behavior related to the first user in the second service sent from the second device The feature information corresponding to the information.
一种可能的实现方式中,接收单元,具体用于通过第三设备接收来自第一设备发送的第一用户的用户信息。发送单元,具体用于通过第三设备向第一设备发送推荐信息。In a possible implementation manner, the receiving unit is specifically configured to receive, through the third device, the user information of the first user sent from the first device. The sending unit is specifically configured to send recommendation information to the first device through the third device.
可选地,接收单元,具体用于通过第三设备接收来自第一设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the receiving unit is specifically configured to receive, through the third device, feature information corresponding to historical behavior information related to the first user in the second service sent by the first device.
可选地,接收单元,具体用于通过第四设备接收来自第二设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the receiving unit is specifically configured to receive, through the fourth device, feature information corresponding to historical behavior information related to the first user in the second service sent by the second device.
可选地,该装置还包括:处理单元。处理单元可以用于根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息,确定第一用户群组。发送单元,还用于向第一设备发送第一用户群组的标识信息。Optionally, the device further includes: a processing unit. The processing unit may be configured to determine the first user group according to the feature information corresponding to the historical behavior information related to the first user in the second service and the feature information corresponding to the historical behavior information of one or more other users in the second service Group. The sending unit is further configured to send the identification information of the first user group to the first device.
类似地,该装置可以配合实现如第八方面及第八方面的任意一种可能的实现方式所述的推荐方法的全部步骤对应的功能,在此不再一一赘述。Similarly, the device can cooperate to realize the functions corresponding to all the steps of the recommendation method described in the eighth aspect and any possible implementation manner of the eighth aspect, which will not be repeated here.
第十方面,本申请提供一种电子设备,如电子设备可以是上述服务器。电子设备包括:处理器,用于存储处理器可执行指令的存储器;处理器被配置为执行所述指令时,使得电子设备实现如第八方面及第八方面的任意一种可能的实现方式所述的推荐方法。In a tenth aspect, the present application provides an electronic device, for example, the electronic device may be the above-mentioned server. The electronic device includes: a processor, a memory for storing processor-executable instructions; when the processor is configured to execute the instructions, the electronic device implements the eighth aspect and any possible implementation manner of the eighth aspect. recommended method described above.
第十一方面,本申请提供一种计算机可读存储介质,其上存储有计算机程序指令;当所述计算机程序指令被电子设备执行时,使得电子设备实现如第八方面及第八方面的任意一种可能的实现方式所述的推荐方法。In an eleventh aspect, the present application provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by an electronic device, the electronic device realizes any of the eighth and eighth aspects. Recommended method as described in one possible implementation.
第十二方面,本申请提供一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如第八方面及第八方面的任意一种可能的实现方式所述的推荐方法。In a twelfth aspect, the present application provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium bearing computer-readable codes, when the computer-readable codes run in an electronic device When, the processor in the electronic device implements the recommended method described in the eighth aspect and any possible implementation manner of the eighth aspect.
上述第九方面至第十二方面所具备的有益效果,可参考第八方面中所述,在此不再赘述。For the beneficial effects of the above-mentioned ninth aspect to the twelfth aspect, reference may be made to the eighth aspect, which will not be repeated here.
可选地,上述第一方面至第十二方面中所述的服务器可以是服务器集群或云服务器,或者,服务器也可以分开为两个服务器,如:推荐服务器和用户画像服务器。Optionally, the servers described in the first to twelfth aspects above may be server clusters or cloud servers, or the servers may be divided into two servers, such as a recommendation server and a user portrait server.
应当理解的是,本申请中对技术特征、技术方案、有益效果或类似语言的描述并不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或有益效果的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或有益效果。因此,本说明书中对于技术特征、技术方案或有益效果的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合本实施例中所描述的技术特征、技术方案和有益效果。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或有益效果即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和有益效果。It should be understood that descriptions of technical features, technical solutions, beneficial effects or similar language in this application do not imply that all features and advantages can be realized in any single embodiment. On the contrary, it can be understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, descriptions of technical features, technical solutions or beneficial effects in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in this embodiment may also be combined in any appropriate manner. Those skilled in the art will understand that the embodiments can be implemented without one or more specific technical features, technical solutions or advantageous effects of the specific embodiments. In other embodiments, additional technical features and beneficial effects may also be identified in certain embodiments that do not embody all embodiments.
附图说明Description of drawings
图1为本申请实施例提供的推荐系统的组成示意图;FIG. 1 is a schematic diagram of the composition of the recommendation system provided by the embodiment of the present application;
图2为本申请实施例提供的终端设备110的结构示意图;FIG. 2 is a schematic structural diagram of a terminal device 110 provided in an embodiment of the present application;
图3为本申请实施例提供的推荐方法的流程示意图;Fig. 3 is a schematic flow chart of the recommendation method provided by the embodiment of the present application;
图4为本申请实施例提供的推荐方法的另一流程示意图;Fig. 4 is another schematic flowchart of the recommendation method provided by the embodiment of the present application;
图5为本申请实施例提供的推荐方法的又一流程示意图;Fig. 5 is another schematic flowchart of the recommendation method provided by the embodiment of the present application;
图6为本申请实施例提供的一种应用场景的示意图;FIG. 6 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图7为本申请实施例提供的推荐装置的结构示意图;FIG. 7 is a schematic structural diagram of a recommendation device provided in an embodiment of the present application;
图8为本申请实施例提供的推荐装置的另一结构示意图。FIG. 8 is another schematic structural diagram of a recommendation device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。字符“/”一般表示前后关联对象是一种“或”的关系。The terms used in the following examples are for the purpose of describing particular examples only, and are not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also Expressions such as "one or more" are included unless the context clearly dictates otherwise. It should also be understood that in the following embodiments of the present application, "at least one" and "one or more" refer to one or more than two (including two). The character "/" generally indicates that the contextual objects are an "or" relationship.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。Reference to "one embodiment" or "some embodiments" or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise. The term "connected" includes both direct and indirect connections, unless otherwise stated.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features.
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplarily" or "for example" are used as examples, illustrations or descriptions. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a concrete manner.
个性化推荐一般是指通过分析和挖掘用户的历史行为信息,发现用户的个性化需求与兴趣特点,将用户可能感兴趣的信息或商品推荐给用户。个性化推荐可以应用于电商系统、社交网络、广告推荐、搜索引擎等多个方面。Personalized recommendation generally refers to discovering the user's individual needs and interest characteristics by analyzing and mining the user's historical behavior information, and recommending information or products that the user may be interested in to the user. Personalized recommendations can be applied to e-commerce systems, social networks, advertising recommendations, search engines, and many other aspects.
例如,以个性化推荐在电商平台中的应用为例,电商平台可以包括一个专门用于个性化推荐的推荐系统,推荐系统可以通过分析和挖掘用户的历史购物行为,发现用户对哪些商品更感兴趣,并向用户推荐其更感兴趣的商品。For example, taking the application of personalized recommendation in an e-commerce platform as an example, the e-commerce platform can include a recommendation system dedicated to personalized recommendation. are more interested, and recommend products that users are more interested in.
又例如,以个性化推荐在视频平台中的应用为例,视频平台也可以包括一个专门用于个性化推荐的推荐系统,推荐系统可以通过分析和挖掘用户观看的历史视频,发现用户对哪种类型的视频更感兴趣,并向用户推荐其更感兴趣的视频。或者,推荐系统还可以评测用户与其他用户之间的相似性,并基于用户协同过滤(user collaboration filter,UserCF)算法向用户推荐与用户相似的其他用户所感兴趣的视频等。例如,用户A曾经多次观看的电影都是科幻类的电影,如:科幻电影1、科幻电影2等,推荐系统通过数据分析找到用户B曾经也多次观看科幻电影1、科幻电影2,并且用户B还多次观看了科幻电影3,则推荐系统可以向用户A推荐科幻电影3。As another example, take the application of personalized recommendation in the video platform as an example. The video platform can also include a recommendation system dedicated to personalized recommendation. Types of videos are more interesting and recommend videos that are more interesting to users. Alternatively, the recommendation system can also evaluate the similarity between the user and other users, and based on the user collaborative filtering (user collaboration filter, UserCF) algorithm, recommend to the user videos that are similar to the user and other users are interested in. For example, the movies that user A has watched many times are all sci-fi movies, such as: sci-fi movie 1, sci-fi movie 2, etc. The recommendation system finds that user B has also watched sci-fi movie 1 and sci-fi movie 2 many times through data analysis, and User B has also watched science fiction movie 3 many times, then the recommendation system can recommend science fiction movie 3 to user A.
可以看到,向用户进行个性化推荐时,需要依赖于用户的历史行为信息,基于用户的历史行为信息对用户进行推荐。但是,个性化推荐经常面临增量的问题,如:面对新增用户的个性化推荐。而新增用户对个性化推荐的推荐系统而言是没有历史行为信息的,推荐系统并不能够依赖于用户的历史行为信息向用户进行个性化推荐。It can be seen that when making personalized recommendations to users, it needs to rely on the user's historical behavior information, and recommend users based on the user's historical behavior information. However, personalized recommendation often faces incremental problems, such as: personalized recommendation for new users. However, new users do not have historical behavior information for the recommendation system of personalized recommendation, and the recommendation system cannot rely on the user's historical behavior information to make personalized recommendations to users.
例如,同样以个性化推荐在电商平台中的应用为例,对于电商平台而言,当存在一个新用户注册并登录该电商平台后,这个新用户则为新增用户。电商平台中并没有记录这个新用户的历史购物行为,此时,电商平台的推荐系统无法根据用户的历史购物行为,向用户进行个性化推荐商品。For example, taking the application of personalized recommendation in an e-commerce platform as an example, for an e-commerce platform, when a new user registers and logs in to the e-commerce platform, this new user is a new user. The e-commerce platform does not record the historical shopping behavior of the new user. At this time, the recommendation system of the e-commerce platform cannot recommend products to the user based on the user's historical shopping behavior.
在个性化推荐中,推荐系统如何针对没有历史行为信息的新增用户,进行合理地个性化推荐,一般被称为“用户冷启动”。例如,推荐系统可以采用一些“用户冷启动”的策略,向用户进行个性化推荐,并在用户使用服务(如:电商平台提供的电商 服务、视频平台提供的视频观看服务等)的过程中,累积收集用户的历史行为信息,在收集一定量的用户的历史行为信息后,即可按照前述通过分析和挖掘用户的历史行为信息向用户进行个性化推荐的方式完成推荐。前述累积收集用户的历史行为信息过程中,用户的历史行为信息从0到1(即从无到有)积累的过程即为冷启动的过程。In personalized recommendation, how the recommendation system makes reasonable personalized recommendations for new users without historical behavior information is generally called "user cold start". For example, the recommendation system can adopt some "user cold start" strategies to make personalized recommendations to users, and in the process of users using services (such as: e-commerce services provided by e-commerce platforms, video viewing services provided by video platforms, etc.) In , the user’s historical behavior information is accumulated and collected. After a certain amount of user’s historical behavior information is collected, the recommendation can be completed in accordance with the aforementioned method of analyzing and mining the user’s historical behavior information to make personalized recommendations to the user. In the aforementioned process of accumulating and collecting the historical behavior information of the user, the process of accumulating the historical behavior information of the user from 0 to 1 (that is, from scratch) is the process of cold start.
目前,常见的“用户冷启动”的策略为:推荐系统采集用户的一些已知用户信息,如:用户使用的设备的设备信息、设备位置等;利用这些已知用户信息,推荐系统可以对用户进行分群,然后,推荐系统可以对相同分群的用户采用UserCF算法(或称为协同推荐算法)进行个性化推荐。At present, the common "user cold start" strategy is: the recommendation system collects some known user information of the user, such as: the device information of the device used by the user, the location of the device, etc.; using these known user information, the recommendation system can After grouping, the recommendation system can use the UserCF algorithm (or collaborative recommendation algorithm) to make personalized recommendations for users in the same group.
例如,同样以个性化推荐在电商平台中的应用为例,对于电商平台中的某个新增用户,电商平台的推荐系统可以采集该新增用户使用的手机的设备信息和设备位置,如假设该新增用户使用的手机的设备信息包括:手机品牌为品牌P,设备位置为X市。然后,推荐系统可以根据该新增用户使用的手机的设备信息和设备位置,将该新增用户与电商平台中的其他用户一起进行用户分群,如:则推荐系统可以将该新增用户归属到“品牌P+X市”人群。之后,推荐系统可以基于UserCF算法向该新增用户推荐“品牌P+X市”人群中的其他用户所感兴趣的商品。For example, taking the application of personalized recommendation in the e-commerce platform as an example, for a new user on the e-commerce platform, the recommendation system of the e-commerce platform can collect the device information and device location of the mobile phone used by the new user , such as assuming that the device information of the mobile phone used by the new user includes: the brand of the mobile phone is brand P, and the location of the device is city X. Then, the recommendation system can group the new user with other users on the e-commerce platform according to the device information and device location of the mobile phone used by the new user. For example, the recommendation system can attribute the new user to To the "Brand P+X City" crowd. Afterwards, the recommendation system can recommend to the new user products that are of interest to other users in the "Brand P+X City" crowd based on the UserCF algorithm.
但是,目前的这种“用户冷启动”的策略可获取的已知用户信息有限,用户分群过大,个性化推荐的效果一般。如:用户可能对个性化推荐的推荐结果并不感兴趣。However, the current "user cold start" strategy can obtain limited known user information, the user groups are too large, and the effect of personalized recommendation is mediocre. For example, users may not be interested in the recommendation results of personalized recommendations.
本申请实施例提供了一种推荐方法,可以适用于在第一服务(服务也可以称为业务、领域等)中进行个性化推荐的场景。例如,第一服务中可以包含向用户进行个性化推荐的功能,本申请实施例提供的推荐方法可以应用于第一服务中向进行个性化推荐的功能中,当需要在第一服务中向某个新增用户进行个性化推荐时,针对第一服务中的新增用户,该方法可以利用该新增用户在第二服务中的历史行为信息进行知识迁移,确定该新增用户在第二服务中的用户分群结果,并基于该新增用户在第二服务中的用户分群结果在第一服务中向该新增用户进行协同推荐,实现该新增用户在第一服务中的用户冷启动。其中,第一服务和第二服务不同。The embodiment of the present application provides a recommendation method, which can be applied to the scenario of performing personalized recommendation in the first service (the service can also be called business, field, etc.). For example, the first service may include the function of making personalized recommendations to users, and the recommendation method provided in the embodiment of this application may be applied to the function of making personalized recommendations to users in the first service. When a new user performs personalized recommendation, for the new user in the first service, the method can use the historical behavior information of the new user in the second service to perform knowledge transfer, and determine that the new user in the second service Based on the user grouping results of the new user in the second service, and based on the user grouping results of the new user in the second service, collaborative recommendation is made to the new user in the first service, so as to realize the user cold start of the new user in the first service. Wherein, the first service and the second service are different.
该方法可以缩小用户分群的结果,有效提高个性化推荐的精准度,为新增用户推荐其更感兴趣的推荐结果,用户冷启动的效果可以更好。This method can narrow down the results of user grouping, effectively improve the accuracy of personalized recommendation, and recommend more interesting recommendation results for new users, and the effect of user cold start can be better.
示例性地,第一服务中包含的向用户进行个性化推荐的功能,可以被称为“猜你喜欢”、“相关推荐”、“个性化推荐”、“用户订阅个性化推荐”、“搜索意图识别”等,在此对个性化推荐的功能的名称不作限制。Exemplarily, the function of making personalized recommendations to users included in the first service may be called "guess what you like", "relevant recommendations", "personalized recommendations", "user subscribes to personalized recommendations", "search Intent recognition" and so on, there is no limitation on the name of the function of personalized recommendation.
一些实施例中,第一服务可以是指单一的某个服务,例如,搜索服务(如搜索平台可以通过浏览器或其他应用为用户提供搜索信息的服务)、信息流服务(如浏览器可以通过信息流服务为用户提供可以浏览的新闻、资讯等信息流)、电商服务(如电商平台可以通过一些应用程序(application,App)为用户提供购买商品的服务)、音乐平台通过一些应用为用户提供的音乐服务(如听歌)、视频平台通过一些应用为用户提供的视频服务(如观看电影或短视频)、阅读平台通过一些应用为用户提供的阅读服务(如电子书阅读)等。与第一服务类似,第二服务也可以包括前述搜索服务、信息流服务、电商服务、音乐服务、视频服务、阅读服务等,但第二服务与第一服务不同。如:第一服务为信息流服务,第二服务为搜索服务。In some embodiments, the first service may refer to a single service, for example, a search service (for example, a search platform can provide users with a search information service through a browser or other applications), an information flow service (for example, a browser can use Information flow services provide users with browseable news, information and other information flows), e-commerce services (for example, e-commerce platforms can provide users with services to purchase goods through some applications (Apps), music platforms provide services for users through some applications. Music services provided by users (such as listening to songs), video services provided by video platforms to users through some applications (such as watching movies or short videos), reading services provided by reading platforms to users through some applications (such as e-book reading), etc. Similar to the first service, the second service may also include the aforementioned search service, information flow service, e-commerce service, music service, video service, reading service, etc., but the second service is different from the first service. For example: the first service is information flow service, and the second service is search service.
举例说明,假设用户1的手机上安装有浏览器,且浏览器中提供的服务包括:搜索服务和信息流服务。用户1之前使用过搜索服务,存在较多的历史搜索行为信息(如搜索词、点击搜索结果页等),但用户1没有使用过信息流服务(即没有阅读过信息流)。对信息流服务而言,当用户1第一次使用信息流服务时,用户1即为新增用户。但由于用户1是第一次使用信息流服务,信息流服务相关的个性化推荐系统并不知道用户的兴趣和偏好,无法根据用户1在信息流服务中的历史行为信息进行推荐。而本申请实施例提供的推荐方法可以利用用户1在搜索服务中的历史行为信息进行知识迁移,确定用户1在搜索服务中的用户分群结果,然后,可以基于用户1在搜索服务中的用户分群结果,向用户1推荐同一分群内的其他用户感兴趣的信息流,从而解决用户1在第一次使用信息流服务时的冷启动问题。For example, assume that a browser is installed on the mobile phone of user 1, and the services provided in the browser include: search service and information streaming service. User 1 has used search services before, and there is a lot of historical search behavior information (such as search terms, clicks on search result pages, etc.), but user 1 has never used the information flow service (that is, has not read the information flow). For the information flow service, when user 1 uses the information flow service for the first time, user 1 is a new user. However, since user 1 is using the information flow service for the first time, the personalized recommendation system related to the information flow service does not know the user's interests and preferences, and cannot make recommendations based on user 1's historical behavior information in the information flow service. However, the recommendation method provided by the embodiment of the present application can use the historical behavior information of user 1 in the search service to carry out knowledge transfer, determine the user grouping results of user 1 in the search service, and then, based on the user grouping of user 1 in the search service As a result, information streams that other users in the same group are interested in are recommended to user 1, thereby solving the cold start problem of user 1 when using the information stream service for the first time.
可选地,第二服务可以包括一种或多种,本申请不作限制。例如,第一服务为信息流服务,第二服务可以包括搜索服务、阅读服务、视频服务等。另外,上述第一服务和第二服务的举例仅为部分示例,本申请对第一服务和第二服务的具体类型也不作限制。Optionally, the second service may include one or more types, which is not limited in this application. For example, the first service is an information flow service, and the second service may include a search service, a reading service, a video service, and the like. In addition, the above examples of the first service and the second service are only partial examples, and the present application does not limit the specific types of the first service and the second service.
另外一些实施例中,第一服务也可以泛指某个应用提供的服务,并不指单一的某个服务(如上述信息流服务、搜索服务等),第二服务可以是指其他应用提供的服务。例如,第一服务可以是浏览器提供的服务,具体可以包括搜索服务、信息流服务、视频服务等多种服务;第二服务可以是某个阅读App提供的服务,具体可以包括电子书阅读服务。提供第一服务的应用和提供第二服务的应用不同,也可以认为第一服务和第二服务不同。In some other embodiments, the first service may generally refer to a service provided by a certain application, and does not refer to a single service (such as the above-mentioned information flow service, search service, etc.), and the second service may refer to a service provided by other applications. Serve. For example, the first service may be a service provided by a browser, which may specifically include various services such as search service, information streaming service, and video service; the second service may be a service provided by a certain reading app, which may specifically include e-book reading service . The application that provides the first service is different from the application that provides the second service, and it can also be considered that the first service is different from the second service.
举例说明,假设用户1的手机上安装有浏览器A和短视频应用B,浏览器A中可以为用户1提供搜索服务、信息流服务、阅读服务、视频服务等多种服务,短视频应用B可以为用户1提供短视频浏览服务。用户1之前使用过浏览器A提供的服务(即第二服务),在浏览器A中存在较多的历史行为信息(如使用过搜索服务、阅读过信息流等),但用户1没有使用短视频应用B提供的服务(即第一服务)。对短视频应用B提供的服务而言,当用户1第一次使用短视频应用B提供的服务时,用户1即为新增用户。但由于用户1是第一次使用短视频应用B提供的服务,短视频应用B提供的服务相关的个性化推荐系统并不知道用户的兴趣和偏好,无法根据用户1在短视频应用B提供的服务中的历史行为信息进行推荐。而本申请实施例提供的推荐方法可以利用用户1在浏览器A提供的服务中的历史行为信息进行知识迁移,确定用户1在浏览器A提供的服务中的用户分群结果,然后,可以基于用户1在浏览器A提供的服务中的用户分群结果,向用户1推荐同一分群内的其他用户感兴趣的短视频,从而解决用户1在第一次使用短视频应用B提供的服务时的冷启动问题。For example, assuming that user 1's mobile phone has browser A and short video application B installed, browser A can provide user 1 with various services such as search service, information flow service, reading service, and video service, while short video application B User 1 can be provided with a short video browsing service. User 1 has used the service provided by browser A (that is, the second service) before, and there is a lot of historical behavior information in browser A (such as using search services, reading information streams, etc.), but user 1 has not used short The service provided by the video application B (ie the first service). For the service provided by short video application B, when user 1 uses the service provided by short video application B for the first time, user 1 is a new user. However, since user 1 is using the service provided by short video application B for the first time, the personalized recommendation system related to the service provided by short video application B does not know the user's interests and preferences, and cannot use the service provided by user 1 in short video application B. Recommendations based on historical behavior information in the service. However, the recommendation method provided by the embodiment of the present application can use the historical behavior information of user 1 in the service provided by browser A to carry out knowledge transfer, determine the user grouping result of user 1 in the service provided by browser A, and then, based on the user 1 In the results of user grouping in the service provided by browser A, recommend short videos that other users in the same group are interested in to user 1, so as to solve the cold start when user 1 uses the service provided by short video application B for the first time question.
可选地,第二服务可以包括一种或多种应用所提供的服务,也即,第二服务可以包括一种或多种,本申请不作限制。例如,第一服务为应用A提供的服务,第二服务可以包括应用B提供的服务、应用C提供的服务等。Optionally, the second service may include one or more services provided by applications, that is, the second service may include one or more services, which is not limited in this application. For example, the first service is a service provided by application A, and the second service may include a service provided by application B, a service provided by application C, and so on.
需要说明的是,本申请实施例对第一服务和第二服务不同的关系并不作限制。一些可能的实施例中,第一服务和第二服务可以是如前述实施例中所述的不同类型的两个服务(如搜索服务和信息流服务),或者,不同应用提供的服务。It should be noted that, the embodiment of the present application does not limit the relationship between the first service and the second service. In some possible embodiments, the first service and the second service may be two different types of services (such as search service and information flow service) as described in the foregoing embodiments, or services provided by different applications.
另外一些可能的实施例中,第一服务和第二服务也可以是同一类型,但服务渠道不同的两个服务。例如,第一服务和第二服务均为搜索服务,但第一服务使用搜索引擎1提供搜索服务,而第二服务使用搜索引擎2提供服务。又例如,第一服务和第二服务均为视频服务,但第一服务是视频平台1提供的视频服务,而第二服务是视频平台2提供的视频服务等。In some other possible embodiments, the first service and the second service may also be two services of the same type but with different service channels. For example, both the first service and the second service are search services, but the first service uses search engine 1 to provide search services, and the second service uses search engine 2 to provide services. For another example, both the first service and the second service are video services, but the first service is a video service provided by video platform 1, and the second service is a video service provided by video platform 2, etc.
还有一些可能的实施例中,第一服务和第二服务还可以是同一应用提供的两个不同服务(如浏览器提供的搜索服务和信息流服务),或者,第一服务和第二服务可以是同一个服务商提供的两个不同服务(如服务商A提供阅读服务和信息流服务)。In some possible embodiments, the first service and the second service can also be two different services provided by the same application (such as the search service and the information flow service provided by the browser), or the first service and the second service It can be two different services provided by the same service provider (for example, service provider A provides reading service and information flow service).
一些可能的实施例中,对某用户(如用户1)而言,用户1在第一服务和第二服务中可以具有同一个用户账号,如账号1。用户1在第二服务中的历史行为信息可以是指:账号1在第二服务中对应的历史行为信息,即用户1通过账号1使用过第二服务。本申请实施例提供的推荐方法中,利用用户1在第二服务中对应的历史行为信息进行知识迁移,确定用户1在第二服务中的用户分群结果,并基于用户1在第二服务中的用户分群结果在第一服务中向用户1进行协同推荐,可以包括:利用账号1在第二服务中对应的历史行为信息进行知识迁移,确定账号1在第二服务中的用户分群结果,并基于账号1在第二服务中的用户分群结果在第一服务中向账号1进行协同推荐。In some possible embodiments, for a certain user (such as user 1), user 1 may have the same user account, such as account 1, in the first service and the second service. The historical behavior information of the user 1 in the second service may refer to: the historical behavior information corresponding to the account 1 in the second service, that is, the user 1 has used the second service through the account 1. In the recommendation method provided by the embodiment of the present application, knowledge transfer is performed using the corresponding historical behavior information of user 1 in the second service, the user grouping result of user 1 in the second service is determined, and based on the user 1’s information in the second service The collaborative recommendation of user grouping results to user 1 in the first service may include: performing knowledge transfer using historical behavior information corresponding to account 1 in the second service, determining the user grouping results of account 1 in the second service, and based on The user grouping results of the account 1 in the second service are collaboratively recommended to the account 1 in the first service.
另外一些可能的实施例中,对某用户(如用户1)而言,用户1在第一服务和第二服务中可以具有不同的用户账号,用户1在第一服务中具有账号1,在第二服务中具有账号2。用户1在第二服务中的历史行为信息可以是指:账号2在第二服务中对应的历史行为信息,即用户1通过账号2使用过第二服务。本申请实施例提供的推荐方法中,利用用户1在第二服务中对应的历史行为信息进行知识迁移,确定用户1在第二服务中的用户分群结果,并基于用户1在第二服务中的用户分群结果在第一服务中向用户1进行协同推荐,可以包括:利用账号2在第二服务中对应的历史行为信息进行知识迁移,确定账号2在第二服务中的用户分群结果,并基于账号2在第二服务中的用户分群结果在第一服务中向账号1进行协同推荐。In some other possible embodiments, for a certain user (such as user 1), user 1 may have different user accounts in the first service and the second service, user 1 has account 1 in the first service, and user 1 in the second service may have different user accounts. The second service has account 2. The historical behavior information of the user 1 in the second service may refer to: the historical behavior information corresponding to the account 2 in the second service, that is, the user 1 has used the second service through the account 2. In the recommendation method provided by the embodiment of the present application, knowledge transfer is performed using the corresponding historical behavior information of user 1 in the second service, the user grouping result of user 1 in the second service is determined, and based on the user 1’s information in the second service The collaborative recommendation of user grouping results to user 1 in the first service may include: performing knowledge transfer using historical behavior information corresponding to account 2 in the second service, determining the user grouping results of account 2 in the second service, and based on The user grouping results of account 2 in the second service are collaboratively recommended to account 1 in the first service.
还有一些可能的实施例中,对某用户(如用户1)而言,用户1在第一服务中具有账号1,在第二服务中没有账号,但第二服务中存在与账号1关联的账号2。例如,账号2可以是用户2的账号,但账号2与账号1存在绑定、分享等关联关系。又例如,账号2可以是用户1的家庭公用账号,但账号2与账号1存在关联关系,或者,账号1可以是用户1的家庭公用账号,账号2可以是用户2的账号,但账号2与账号1存在关联关系等。对于前述用户1在第一服务中具有账号1,在第二服务中没有账号,但第二服务中存在与账号1关联的账号2的场景,本申请实施例提供的推荐方法,也可以利用账号2在第二服务中对应的历史行为信息进行知识迁移,确定账号2在第二服务中的用户分群结果,并基于账号2在第二服务中的用户分群结果在第一服务中向账号1进行协同推荐。其中,账号2在第二服务中对应的历史行为信息也可以认为是第二服务中与用户1相关的历史行为信息,账号2在第二服务中的用户分群结果可以认为是用户1在第二服务中的用户分群结果(可能用户1在第二服务中没有直接产生历史行为信息)。而前述实施例中所述的用户1在第二服务中对应的历史行为信息也可以认为是第二服务中与用户1相关的历史行为信息。In some possible embodiments, for a certain user (such as user 1), user 1 has account 1 in the first service, but does not have an account in the second service, but there is an account associated with account 1 in the second service. account number 2. For example, the account 2 may be the account of the user 2, but the account 2 and the account 1 have association relations such as binding and sharing. For another example, account 2 may be a public family account of user 1, but account 2 is associated with account 1, or account 1 may be a public family account of user 1, account 2 may be an account of user 2, but account 2 is related to account 1. Account 1 has an association relationship, etc. For the aforementioned scenario where user 1 has account 1 in the first service but does not have an account in the second service, but there is account 2 associated with account 1 in the second service, the recommendation method provided in the embodiment of this application can also use the account 2 Perform knowledge transfer on the corresponding historical behavior information in the second service, determine the user grouping results of account 2 in the second service, and transfer to account 1 in the first service based on the user grouping results of account 2 in the second service Collaborative recommendation. Among them, the historical behavior information corresponding to account 2 in the second service can also be considered as the historical behavior information related to user 1 in the second service, and the user grouping result of account 2 in the second service can be considered as user 1 in the second service. User grouping results in the service (maybe user 1 did not directly generate historical behavior information in the second service). The historical behavior information corresponding to the user 1 in the second service described in the foregoing embodiments can also be considered as the historical behavior information related to the user 1 in the second service.
也即,本申请实施例提供的推荐方法,可以利用第二服务中与用户相关的历史行为信息进行知识迁移,确定用户在第二服务中的用户分群结果,并基于用户在第二服务中的用户分群结果在第一服务中向用户进行协同推荐。其中,第二服务中与用户相关的历史行为信息可以包括:用户在第二服务中对应的历史行为信息、或者与用户的账号关联的其他账号(家庭公用账号或其他用户的账号)在第二服务中对应的历史行为信息。下述实施例中仅以第二服务中与用户相关的历史行为信息包括:用户在第二服务中对应的历史行为信息为例进行说明,并不用于限制。That is to say, the recommendation method provided by the embodiment of the present application can use the historical behavior information related to the user in the second service to carry out knowledge transfer, determine the user grouping results of the user in the second service, and based on the user's information in the second service The user grouping result is collaboratively recommended to the user in the first service. Wherein, the historical behavior information related to the user in the second service may include: the corresponding historical behavior information of the user in the second service, or other accounts associated with the user's account (family public account or other user's account) in the second service. The corresponding historical behavior information in the service. In the following embodiments, the historical behavior information related to the user in the second service includes: the historical behavior information corresponding to the user in the second service is taken as an example for illustration, which is not intended to be limiting.
下面结合一些具体的示例,对本申请实施例提供的推荐方法进行示例性说明。The recommended method provided in the embodiment of the present application will be illustrated below with reference to some specific examples.
示例性地,本申请实施例提供的推荐方法可以应用于推荐系统,图1为本申请实施例提供的推荐系统的组成示意图。如图1所示,本申请实施例提供的推荐系统可以包括:终端设备110、推荐服务器120、用户画像服务器130。终端设备110、推荐服务器120、以及用户画像服务器130之间可以彼此通过有线网络或无线网络连接。Exemplarily, the recommendation method provided in the embodiment of the present application can be applied to a recommendation system, and FIG. 1 is a schematic diagram of the composition of the recommendation system provided in the embodiment of the present application. As shown in FIG. 1 , the recommendation system provided by the embodiment of the present application may include: a terminal device 110 , a recommendation server 120 , and a user portrait server 130 . The terminal device 110, the recommendation server 120, and the user portrait server 130 may be connected to each other through a wired network or a wireless network.
其中,终端设备110可以是手机,也可以是平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等,本申请实施例对终端设备110的具体类型不作限制。Wherein, the terminal device 110 may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, an ultra mobile personal computer (ultra -mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), etc., the embodiment of the present application does not limit the specific type of the terminal device 110.
示例性地,以终端设备110为手机为例,图2为本申请实施例提供的终端设备110的结构示意图。如图2所示,终端设备110可以包括:处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。Exemplarily, taking the terminal device 110 as a mobile phone as an example, FIG. 2 is a schematic structural diagram of the terminal device 110 provided in the embodiment of the present application. As shown in Figure 2, the terminal device 110 may include: a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (universal serial bus, USB) interface 230, a charging management module 240, a power management module 241, a battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, earphone jack 270D, sensor module 280, button 290, motor 291, indicator 292, camera 293, a display screen 294, and a subscriber identification module (subscriber identification module, SIM) card interface 295, etc.
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 210 may include one or more processing units, for example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic equipment. The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled.
在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口 (mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备110的结构限定。在另一些实施例中,终端设备110也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the terminal device 110 . In some other embodiments, the terminal device 110 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块240用于从充电器接收充电输入。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为电子设备供电。The charging management module 240 is configured to receive charging input from the charger. While the charging management module 240 is charging the battery 242 , it can also supply power to the electronic device through the power management module 241 .
电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,外部存储器,显示屏294,摄像头293,和无线通信模块260等供电。电源管理模块241还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块241也可以设置于处理器210中。在另一些实施例中,电源管理模块241和充电管理模块240也可以设置于同一个器件中。The power management module 241 is used for connecting the battery 242 , the charging management module 240 and the processor 210 . The power management module 241 receives the input from the battery 242 and/or the charging management module 240 to provide power for the processor 210 , internal memory 221 , external memory, display screen 294 , camera 293 , and wireless communication module 260 . The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 241 can also be set in the processor 210 . In some other embodiments, the power management module 241 and the charging management module 240 may also be set in the same device.
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。移动通信模块250可以提供应用在终端设备110上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块250还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块250的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块250的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 250 can provide wireless communication solutions including 2G/3G/4G/5G applied on the terminal device 110 . The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 250 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 250 may be set in the processor 210 . In some embodiments, at least part of the functional modules of the mobile communication module 250 and at least part of the modules of the processor 210 may be set in the same device.
调制解调处理器可以包括调制器和解调器。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器210,与移动通信模块250或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent of the processor 210, and be set in the same device as the mobile communication module 250 or other functional modules.
无线通信模块260可以提供应用在终端设备110上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 260 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the terminal device 110. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 . The wireless communication module 260 can also receive the signal to be sent from the processor 210 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 to radiate out.
在一些实施例中,终端设备110的天线1和移动通信模块250耦合,天线2和无线通信模块260耦合,使得终端设备110可以通过无线通信技术与网络以及其他设备 (如推荐服务器120、用户画像服务器130)通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。例如,在本申请实施例中,终端设备110可以利用无线通信模块260,通过无线通信技术,与推荐服务器120、用户画像服务器130建立无线连接。基于建立的无线连接,终端设备110可以向推荐服务器120、用户画像服务器130发送信息或消息,还可以接收来自推荐服务器120、用户画像服务器130的信息或消息。In some embodiments, the antenna 1 of the terminal device 110 is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the terminal device 110 can communicate with the network and other devices (such as the recommendation server 120, user portrait Server 130) communicates. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS). For example, in the embodiment of the present application, the terminal device 110 can use the wireless communication module 260 to establish a wireless connection with the recommendation server 120 and the user portrait server 130 through wireless communication technology. Based on the established wireless connection, the terminal device 110 can send information or messages to the recommendation server 120 and the user portrait server 130 , and can also receive information or messages from the recommendation server 120 and the user portrait server 130 .
终端设备110通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 110 implements a display function through a GPU, a display screen 294, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏294用于显示图像,视频等。显示屏294包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备110可以包括1个或N个显示屏294,N为大于1的正整数。The display screen 294 is used to display images, videos and the like. Display 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the terminal device 110 may include 1 or N display screens 294, where N is a positive integer greater than 1.
终端设备110可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。ISP用于处理摄像头293反馈的数据。在一些实施例中,ISP可以设置在摄像头293中。摄像头293用于捕获静态图像或视频。在一些实施例中,终端设备110可以包括1个或N个摄像头293,N为大于1的正整数。视频编解码器用于对数字视频压缩或解压缩。电子设备可以支持一种或多种视频编解码器。The terminal device 110 may implement a shooting function through an ISP, a camera 293 , a video codec, a GPU, a display screen 294 , an application processor, and the like. The ISP is used for processing the data fed back by the camera 293 . In some embodiments, the ISP may be located in the camera 293 . Camera 293 is used to capture still images or video. In some embodiments, the terminal device 110 may include 1 or N cameras 293, where N is a positive integer greater than 1. Video codecs are used to compress or decompress digital video. An electronic device may support one or more video codecs.
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备110的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 110. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. Such as saving music, video and other files in the external memory card.
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行终端设备110的各种功能应用以及数据处理。例如,在本申请实施例中,处理器210可以通过执行存储在内部存储器221中的指令,通过无线通信模块260与推荐服务器120、用户画像服务器130建立连接,以及与推荐服务器120、用户画像服务器130进行数据交互。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储 数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 221 may be used to store computer-executable program codes including instructions. The processor 210 executes various functional applications and data processing of the terminal device 110 by executing instructions stored in the internal memory 221 . For example, in this embodiment of the application, the processor 210 can establish a connection with the recommendation server 120 and the user portrait server 130 through the wireless communication module 260 by executing instructions stored in the internal memory 221, and communicate with the recommendation server 120 and the user portrait server. 130 performs data interaction. The internal memory 221 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
终端设备110可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,以及应用处理器等实现音频功能。例如通话,音乐播放,录音等。The terminal device 110 may implement an audio function through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, and an application processor. Such as calls, music playback, recording, etc.
音频模块270用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块270还可以用于对音频信号编码和解码。在一些实施例中,音频模块270可以设置于处理器210中,或将音频模块270的部分功能模块设置于处理器210中。The audio module 270 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 270 may also be used to encode and decode audio signals. In some embodiments, the audio module 270 can be set in the processor 210 , or some functional modules of the audio module 270 can be set in the processor 210 .
扬声器270A,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备110可以通过扬声器270A收听音乐,或收听免提通话。Speaker 270A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Terminal device 110 can listen to music through speaker 270A, or listen to hands-free calls.
受话器270B,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备110接听电话或语音信息时,可以通过将受话器270B靠近人耳接听语音。 Receiver 270B, also called "earpiece", is used to convert audio electrical signals into audio signals. When the terminal device 110 receives a phone call or voice information, the receiver 270B can be placed close to the human ear to receive the voice.
麦克风270C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风270C发声,将声音信号输入到麦克风270C。电子设备可以设置至少一个麦克风270C。在另一些实施例中,电子设备可以设置两个麦克风270C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,终端设备110还可以设置三个,四个或更多麦克风270C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 270C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 270C with a human mouth, and input the sound signal to the microphone 270C. The electronic device may be provided with at least one microphone 270C. In other embodiments, the electronic device can be provided with two microphones 270C, which can also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the terminal device 110 can also be provided with three, four or more microphones 270C to realize sound signal collection, noise reduction, identify sound sources, realize directional recording functions, and the like.
耳机接口270D用于连接有线耳机。耳机接口270D可以是USB接口230,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 270D is used for connecting wired earphones. The earphone interface 270D can be a USB interface 230, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
传感器模块280可以包括压力传感器280A,陀螺仪传感器280B,气压传感器280C,磁传感器280D,加速度传感器280E,距离传感器280F,接近光传感器280G,指纹传感器280H,温度传感器280J,触摸传感器280K,环境光传感器280L,骨传导传感器280M等。The sensor module 280 may include a pressure sensor 280A, a gyro sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, bone conduction sensor 280M, etc.
可以理解的是,图2所示的终端设备110的结构并不构成对终端设备110的具体限定。在另一些实施例中,当终端设备110是平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、UMPC、上网本,以及蜂窝电话、PDA、AR\VR设备等其他设备时,终端设备110可以包括比图2所示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图2所示的部件可以以硬件,软件或软件和硬件的组合实现。本申请实施例对终端设备110的具体结构不作限制。It can be understood that, the structure of the terminal device 110 shown in FIG. 2 does not constitute a specific limitation on the terminal device 110 . In some other embodiments, when the terminal device 110 is a tablet computer, desktop, laptop, handheld computer, notebook computer, UMPC, netbook, and other devices such as cellular phones, PDAs, and AR/VR devices, the terminal device 110 More or fewer components than shown in FIG. 2 may be included, or some components may be combined, or some components may be split, or a different arrangement of components may be included. The components shown in Fig. 2 can be implemented in hardware, software or a combination of software and hardware. The embodiment of the present application does not limit the specific structure of the terminal device 110 .
需要说明的是,上述图1所示的推荐系统中,推荐服务器120和用户画像服务器130是分开表示的,但在一些可能的实施例中,推荐服务器120和用户画像服务器130也可以是同一个服务器,或者,推荐服务器120和用户画像服务器130还可以是同一个服务器集群或云服务器,在此不作限制。It should be noted that in the recommendation system shown in FIG. 1 above, the recommendation server 120 and the user portrait server 130 are represented separately, but in some possible embodiments, the recommendation server 120 and the user portrait server 130 may also be the same The server, alternatively, the recommendation server 120 and the user portrait server 130 may also be the same server cluster or cloud server, which is not limited here.
在本申请中,终端设备110可以通过App为用户提供服务,如:终端设备110上 可以安装第一App,第一App中可以为用户提供第一服务、第二服务等。或者,终端设备110上可以安装第一App和第二App,第一App中可以为用户提供第一服务,第二App中可以为用户提供第二服务等。第一服务和第二服务可以参考前述实施例中所述,不再赘述。终端设备110为用户提供服务时,可以基于上述图1所示的推荐系统,实现服务中的个性化推荐功能。In this application, the terminal device 110 can provide users with services through Apps, for example, a first App can be installed on the terminal device 110, and the first App can provide users with first services, second services, etc. Alternatively, a first App and a second App may be installed on the terminal device 110, the first App may provide the user with the first service, and the second App may provide the user with the second service, and so on. For the first service and the second service, reference may be made to the foregoing embodiments, and details are not repeated here. When the terminal device 110 provides a service for the user, it may implement a personalized recommendation function in the service based on the recommendation system shown in FIG. 1 above.
以终端设备110为用户提供第一服务和第二服务为例,假设用户使用了终端设备110提供的第二服务,则在用户使用第二服务的过程中,终端设备110可以记录或收集用户在第二服务中的历史行为信息。用户画像服务器130可以根据用户在第二服务中的历史行为信息,对用户在第二服务中的兴趣进行计算和分析,了解用户在第二服务中的兴趣和偏好。推荐服务器120可以根据用户画像服务器130对用户在第二服务中的兴趣进行计算和分析的结果,向用户推荐感兴趣的第二服务的服务内容。例如,第二服务可以是信息流服务,用户画像服务器130对用户在第二服务中的兴趣进行计算和分析得到用户对游戏比较感兴趣,则推荐服务器120可以用户推荐游戏相关的信息流,如资讯。本申请对用户画像服务器130对用户在第二服务中的兴趣进行计算和分析的具体算法、以及推荐服务器120根据用户画像服务器130对用户在第二服务中的兴趣进行计算和分析的结果向用户进行推荐的具体算法不作限制。Taking the terminal device 110 as an example of providing the first service and the second service for the user, assuming that the user uses the second service provided by the terminal device 110, during the process of the user using the second service, the terminal device 110 may record or collect the user's Historical behavior information in the second service. The user portrait server 130 can calculate and analyze the user's interest in the second service according to the user's historical behavior information in the second service, and understand the user's interest and preference in the second service. The recommendation server 120 may recommend service content of the second service that the user is interested in according to the result of calculation and analysis of the user's interest in the second service by the user portrait server 130 . For example, the second service may be an information flow service, and the user portrait server 130 calculates and analyzes the user's interest in the second service to obtain that the user is more interested in games, then the recommendation server 120 may recommend game-related information flow to the user, such as Information. In this application, the specific algorithm for calculating and analyzing the user's interest in the second service by the user portrait server 130 and the recommendation server 120's calculation and analysis of the user's interest in the second service by the user portrait server 130 to the user The specific algorithm for recommendation is not limited.
用户画像服务器130还可以根据用户在第二服务中的历史行为信息、以及其他用户在第二服务中的历史行为信息,对用户和其他用户一起进行聚类分组(即用户分群),得到一个或多个用户群组。推荐服务器120还可以根据用户画像服务器130对用户进行用户分群的结果,向用户推荐与用户处于同一用户群组中的其他用户所感兴趣的第二服务的服务内容。也即,推荐服务器120还可以根据用户画像服务器130在第二服务中对用户进行用户分群的结果,在第二服务中向用户进行协同推荐。例如,其他用户所感兴趣的第二服务的服务内容可以是其他用户浏览过的第二服务的服务内容,或者,是根据用户画像服务器130对其他用户在第二服务中的兴趣进行计算和分析的结果,向其他用户推荐的第二服务的服务内容。The user portrait server 130 can also perform clustering and grouping (that is, user grouping) on the user and other users according to the historical behavior information of the user in the second service and the historical behavior information of other users in the second service, and obtain one or Multiple user groups. The recommendation server 120 may also recommend to the user the service content of the second service that other users in the same user group as the user are interested in according to the user grouping result of the user portrait server 130 . That is, the recommendation server 120 may also perform collaborative recommendation to the user in the second service according to the user grouping result of the user portrait server 130 in the second service. For example, the service content of the second service that other users are interested in may be the service content of the second service that other users have browsed, or it is calculated and analyzed according to the user portrait server 130 on other users' interests in the second service As a result, the service content of the second service recommended to other users.
当用户第一次使用第一服务时,终端设备110需要在第一服务中向用户进行个性化推荐。在本申请实施例所提供的推荐方法中,推荐服务器120可以根据用户画像服务器130在第二服务中对用户进行用户分群的结果,向用户推荐与用户处于同一用户群组中的其他用户所感兴趣的第一服务的服务内容,以解决用户在第一服务中的冷启动问题。例如,其他用户所感兴趣的第一服务的服务内容可以是其他用户浏览过的第一服务的服务内容,或者,是根据用户画像服务器130对其他用户在第一服务中的兴趣进行计算和分析的结果,向其他用户推荐的第一服务的服务内容。When the user uses the first service for the first time, the terminal device 110 needs to make a personalized recommendation to the user in the first service. In the recommendation method provided by the embodiment of the present application, the recommendation server 120 may recommend to the user other users who are in the same user group as the user according to the result of user grouping by the user portrait server 130 in the second service. The service content of the first service to solve the user's cold start problem in the first service. For example, the service content of the first service that other users are interested in may be the service content of the first service that other users have browsed, or it is calculated and analyzed according to the user portrait server 130 on other users' interests in the first service As a result, the service content of the first service recommended to other users.
示例性地,对某个服务(如第一服务或第二服务)而言,上述历史行为信息可以包括用户在使用服务的过程中,浏览过的具体服务内容,对某一项或多项服务内容(如某一组信息流)的点击次数、浏览次数、分享次数、浏览时长、负反馈(如投诉或反馈不感兴趣)等相关信息,本申请对历史行为信息的具体内容不作限制。例如,历史行为信息可以包括用户浏览过的网页地址(简称网址)、用户搜索的关键词、用户搜索的点击页面、用户查看网页的时长等信息。Exemplarily, for a certain service (such as the first service or the second service), the above-mentioned historical behavior information may include the specific service content browsed by the user in the process of using the service, and for one or more services This application does not limit the specific content of historical behavior information such as the number of clicks, viewing times, sharing times, browsing time, negative feedback (such as complaints or feedback not interested) and other related information of content (such as a certain group of information streams). For example, historical behavior information may include information such as addresses of webpages browsed by users (referred to as URLs), keywords searched by users, clicked pages searched by users, and the duration of webpages viewed by users.
在本申请中,终端设备110记录或收集到用户在第二服务中的历史行为信息后, 可以不需要将用户在第二服务中的历史行为信息上传或发送到用户画像服务器130,供用户画像服务器130根据用户在第二服务中的历史行为信息,对用户在第二服务中的兴趣进行计算和分析。在记录或收集到用户在第二服务中的历史行为信息后,终端设备110可以先对用户在第二服务中的历史行为信息进行编码处理,并对编码处理后的结果进行哈希计算得到用户在第二服务中的历史行为信息对应的哈希值。然后,终端设备110可以向用户画像服务器130发送用户在第二服务中的历史行为信息对应的哈希值,用户画像服务器130可以根据用户在第二服务中的历史行为信息对应的哈希值,对用户进行用户分群,确定用户所在的用户群组。不同的用户群组具有不同的分群标识(如分群ID),分群标识也可以称为群组标识。用户画像服务器130可以向终端设备110发送用户所在的用户群组的分群标识,该分群标识可以称作用户在第二服务中所在的用户群组的分群标识。In this application, after the terminal device 110 records or collects the user's historical behavior information in the second service, it may not need to upload or send the user's historical behavior information in the second service to the user portrait server 130 for user portrait The server 130 calculates and analyzes the user's interest in the second service according to the historical behavior information of the user in the second service. After recording or collecting the user's historical behavior information in the second service, the terminal device 110 can first encode the user's historical behavior information in the second service, and perform hash calculation on the encoded result to obtain the user The hash value corresponding to the historical behavior information in the second service. Then, the terminal device 110 may send the hash value corresponding to the historical behavior information of the user in the second service to the user portrait server 130, and the user portrait server 130 may, according to the hash value corresponding to the historical behavior information of the user in the second service, Carry out user grouping for users, and determine the user group to which the user belongs. Different user groups have different group identifiers (such as group IDs), which may also be called group identifiers. The user portrait server 130 may send to the terminal device 110 the group identification of the user group the user belongs to, and the group identification may be referred to as the group identification of the user group the user belongs to in the second service.
用户在第二服务中所在的用户群组的分群标识即为本申请中用户画像服务器130在第二服务中对用户进行用户分群的结果。当用户第一次使用第一服务时,终端设备110可以向推荐服务器120发送用户在第二服务中所在的用户群组的分群标识;推荐服务器120可以根据用户在第二服务中所在的用户群组的分群标识,向终端设备110发送与用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容。终端设备110可以将与用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容作为个性化推荐结果推荐给用户。The grouping identifier of the user group in which the user belongs in the second service is the result of user grouping performed by the user portrait server 130 in the second service in this application. When the user uses the first service for the first time, the terminal device 110 can send to the recommendation server 120 the group identification of the user group in which the user belongs in the second service; The group identifier of the group sends to the terminal device 110 the service content of the first service that other users in the same user group as the user in the second service are interested in. The terminal device 110 may recommend to the user the service content of the first service that is of interest to other users in the same user group as the user in the second service as a personalized recommendation result.
本申请中,终端设备110将用户在第二服务中的历史行为信息对应的哈希值上传或发送到用户画像服务器130,用户画像服务器130根据用户在第二服务中的历史行为信息对应的哈希值,对用户进行用户分群,可以更好地保护用户的隐私。用户画像服务器130根据用户在第二服务中的历史行为信息对应的哈希值,对用户进行用户分群,可以缩小用户分群的结果。终端设备110基于用户画像服务器130的用户分群结果,将与用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容作为个性化推荐结果推荐给用户,不仅实现了利用其他服务(第二服务)中的知识迁移在第一服务中进行用户冷启动,而且有效提高了个性化推荐的精准度,能够为新增用户推荐其更感兴趣的推荐结果,用户冷启动的效果可以更好。In this application, the terminal device 110 uploads or sends the hash value corresponding to the user's historical behavior information in the second service to the user portrait server 130, and the user portrait server 130 based on the hash value corresponding to the user's historical behavior information in the second service Hive, grouping users into user groups can better protect user privacy. The user portrait server 130 performs user grouping on the user according to the hash value corresponding to the historical behavior information of the user in the second service, and can narrow down the result of user grouping. Based on the user grouping results of the user portrait server 130, the terminal device 110 recommends to the user the service content of the first service that is of interest to other users in the same user group as the user in the second service as a personalized recommendation result, which not only realizes Use the knowledge transfer in other services (second service) to perform user cold start in the first service, and effectively improve the accuracy of personalized recommendation, and can recommend more interesting recommendation results for new users, and user cold start The effect can be better.
本申请中,与用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容可以称为推荐信息,推荐信息与用户在第二服务中所在的用户群组相关。In this application, the service content of the first service that other users in the same user group as the user in the second service are interested in may be referred to as recommendation information, and the recommendation information is related to the user group that the user belongs to in the second service.
以终端设备110提供第一服务和第二服务,第一用户第一次使用第一服务、且第一用户为使用过第二服务的用户为例,图3为本申请实施例提供的推荐方法的流程示意图。如图3所示,该推荐方法可以包括S301-S309。Taking the terminal device 110 to provide the first service and the second service, the first user uses the first service for the first time, and the first user is a user who has used the second service as an example, Figure 3 shows the recommendation method provided by the embodiment of the present application schematic diagram of the process. As shown in Fig. 3, the recommendation method may include S301-S309.
S301、终端设备110获取第一用户在第二服务中的历史行为信息。S301. The terminal device 110 acquires historical behavior information of a first user in a second service.
例如,以第二服务为搜索服务为例,第一用户可以在终端设备110上使用搜索服务进行搜索,第一用户在第二服务中的历史行为信息,可以包括:第一用户在搜索服务中搜索过的搜索词、搜索词的搜索次数等。For example, taking the second service as a search service as an example, the first user can use the search service to search on the terminal device 110, and the historical behavior information of the first user in the second service may include: The search term searched, the number of searches for the search term, etc.
S302、终端设备110采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理,得到第一用户在第二服务中的历史行为信息对应的编码结果。S302. The terminal device 110 encodes the historical behavior information of the first user in the second service by using the first encoding method, and obtains an encoding result corresponding to the historical behavior information of the first user in the second service.
一种可能的实现方式中,第一编码方式可以包括独热(one-hot)编码(encoding)。 one-hot编码又称为一位有效编码,主要是采用N(N为大于1的整数)位状态寄存器来对N个状态进行编码,每个状态都有独立的寄存器位,并且在任意时候只有一位。例如,one-hot编码的编码结果可以是一个N维向量,在这个N维向量中,仅有一个维度的值为1,其余维度的值均为0。采用one-hot编码对第一用户在第二服务中的历史行为信息进行编码后,不同的历史行为信息对应的编码结果可以不同,对每条历史行为信息而言,编码结果可以是唯一的。In a possible implementation manner, the first encoding manner may include one-hot encoding (encoding). One-hot encoding is also known as one-bit effective encoding. It mainly uses N (N is an integer greater than 1) bit status register to encode N states. Each state has an independent register bit, and at any time only one. For example, the encoding result of one-hot encoding may be an N-dimensional vector, in which only one dimension has a value of 1, and the values of other dimensions are all 0. After one-hot encoding is used to encode the historical behavior information of the first user in the second service, the encoding results corresponding to different historical behavior information may be different, and for each piece of historical behavior information, the encoding result may be unique.
示例性地,同样以第二服务为搜索服务为例,假设第一用户在第二服务中的历史行为信息包括三个搜索网址,分别为:网址A、网址B、以及网址C。终端设备110可以采用one-hot编码方式分别对网址A、网址B、以及网址C进行编码,网址A、网址B、以及网址C分别对应的编码结果可以如下:Exemplarily, taking the second service as a search service as an example, it is assumed that the historical behavior information of the first user in the second service includes three search websites, namely: website A, website B, and website C. The terminal device 110 can respectively encode the URL A, the URL B, and the URL C in a one-hot encoding manner, and the encoding results corresponding to the URL A, the URL B, and the URL C respectively can be as follows:
网址A对应的编码结果:[0,1,0,0,0,0,0,0];The encoding result corresponding to URL A: [0, 1, 0, 0, 0, 0, 0, 0];
网址B对应的编码结果:[0,0,1,0,0,0,0,0];The encoding result corresponding to URL B: [0, 0, 1, 0, 0, 0, 0, 0];
网址C对应的编码结果:[0,0,0,0,0,1,0,0]。The encoding result corresponding to URL C: [0, 0, 0, 0, 0, 1, 0, 0].
可以看到,网址A、网址B、以及网址C分别对应的编码结果中,每个网址对应的编码结果可以是一个8维的向量(或看作8位的数组),但每个网址对应的编码结果中只有一个维度的值为1,其余维度的值均为0。例如,网址A对应的编码结果中第2维度的值为1,网址B对应的编码结果中第3维度的值为1,网址C对应的编码结果中第6维度的值为1。It can be seen that among the encoding results corresponding to URL A, URL B, and URL C respectively, the encoding result corresponding to each URL can be an 8-dimensional vector (or as an 8-bit array), but each URL corresponds to In the encoding result, only one dimension has a value of 1, and the values of the other dimensions are all 0. For example, the value of the second dimension in the encoding result corresponding to URL A is 1, the value of the third dimension in the encoding result corresponding to URL B is 1, and the value of the sixth dimension in the encoding result corresponding to URL C is 1.
需要说明的是,此处仅以编码结果为8维向量或8维数组为例进行说明,并不对向量的维度或数组的位数进行限制。例如,其他一些示例中,编码结果还可以是一个64位的数组,终端设备110可以对2 64(2的64次方)个网址进行编码,不同网址的编码结果可以不同。 It should be noted that, here, it is only illustrated by taking an encoding result as an 8-dimensional vector or an 8-dimensional array as an example, and there is no limitation on the dimension of the vector or the number of bits of the array. For example, in some other examples, the encoding result may also be a 64-bit array, and the terminal device 110 may encode 264 (2 to the 64th power) URLs, and the encoding results of different URLs may be different.
另外一些可能的实现方式中,第一编码方式还可以包括:索引(index)编码(基于字典的编码)、多热(multiple-hot)编码等,在此对第一编码方式不作限制。In some other possible implementation manners, the first encoding manner may further include: index (index) encoding (dictionary-based encoding), multiple-hot (multiple-hot) encoding, etc., and the first encoding manner is not limited here.
S303、终端设备110采用第一哈希算法对第一用户在第二服务中的历史行为信息对应的编码结果进行哈希计算,得到第一用户在第二服务中的历史行为信息对应的哈希值。S303, the terminal device 110 uses the first hash algorithm to perform hash calculation on the encoding result corresponding to the historical behavior information of the first user in the second service, and obtains the hash corresponding to the historical behavior information of the first user in the second service value.
其中,终端设备110采用第一哈希算法对第一用户在第二服务中的历史行为信息对应的编码结果进行哈希计算时,如果两个编码结果的相似度较高,则采用第一哈希算法对这两个编码结果进行哈希计算后的哈希值也具有一定的相似性。也即,采用第一哈希算法对编码结果进行哈希计算,可以保持编码结果的相似性。由于采用第一哈希算法对编码结果进行哈希计算,可以保持编码结果的相似性,所以下述S305中用户画像服务器130根据用户在第二服务中的历史行为信息对应的哈希值,对用户进行用户分群时,可以将历史行为信息较为相似的用户划分在同一用户群组中。Wherein, when the terminal device 110 uses the first hash algorithm to perform hash calculation on the encoding result corresponding to the historical behavior information of the first user in the second service, if the similarity between the two encoding results is high, the first hash algorithm is used. The Hash value after Hash algorithm performs hash calculation on the two encoding results also has a certain similarity. That is, by using the first hash algorithm to perform hash calculation on the encoding result, the similarity of the encoding result can be maintained. Since the first hash algorithm is used to perform hash calculation on the encoding result, the similarity of the encoding result can be maintained, so in the following S305, the user portrait server 130, according to the hash value corresponding to the user's historical behavior information in the second service, When a user performs user grouping, users with relatively similar historical behavior information can be divided into the same user group.
示例性地,第一哈希算法可以是局部敏感哈希(locality sensitive hashing,LSH)算法,或称为LSH函数。采用LSH算法对编码结果进行哈希计算后,数据不可逆,也即,无法根据LSH算法计算得到的哈希值反向解密编码结果。另外,采用LSH算法对编码结果进行哈希计算,即可以满足上述提到的保持编码结果的相似性。Exemplarily, the first hash algorithm may be a locality sensitive hash (locality sensitive hashing, LSH) algorithm, or called an LSH function. After hash calculation is performed on the encoding result by using the LSH algorithm, the data is irreversible, that is, the encoding result cannot be reversely decrypted according to the hash value calculated by the LSH algorithm. In addition, the LSH algorithm is used to perform hash calculation on the encoding result, which can satisfy the similarity of the encoding result mentioned above.
以第一用户在第二服务中的历史行为信息对应的编码结果为前述S302中所给出 的示例中,网址A、网址B、以及网址C分别对应的编码结果为例,终端设备110采用LSH算法对网址A、网址B、以及网址C分别对应的编码结果进行哈希计算的步骤可以包括:将网址A、网址B、以及网址C分别对应的编码结果进行合并,得到合并后的编码结果;采用LSH算法对合并后的编码结果进行哈希计算,得到第一哈希值,第一哈希值即为网址A、网址B、以及网址C三个网址共同对应的哈希值。Taking the coding results corresponding to the historical behavior information of the first user in the second service as the coding results corresponding to the website A, website B, and website C in the example given in the aforementioned S302 as an example, the terminal device 110 adopts LSH The step of the algorithm performing hash calculation on the encoding results corresponding to the URL A, the URL B, and the URL C may include: merging the encoding results corresponding to the URL A, the URL B, and the URL C respectively, to obtain the combined encoding result; Hash calculation is performed on the merged coding result by using the LSH algorithm to obtain a first hash value, which is the hash value corresponding to the three URLs of URL A, URL B, and URL C.
例如,网址A对应的编码结果为:[0,1,0,0,0,0,0,0],网址B对应的编码结果为:[0,0,1,0,0,0,0,0],网址C对应的编码结果为:[0,0,0,0,0,1,0,0],将网址A、网址B、以及网址C分别对应的编码结果进行合并后,得到的合并后的编码结果可以为:[0,1,1,0,0,1,0,0]。然后,终端设备110可以采用LSH算法对[0,1,1,0,0,1,0,0]进行哈希计算,得到第一哈希值。第一哈希值即为第一用户在搜索服务中的历史行为信息对应的哈希值。该哈希值也可以称为哈希指纹。For example, the encoding result corresponding to URL A is: [0, 1, 0, 0, 0, 0, 0, 0], and the encoding result corresponding to URL B is: [0, 0, 1, 0, 0, 0, 0 , 0], the encoding result corresponding to URL C is: [0, 0, 0, 0, 0, 1, 0, 0], after combining the encoding results corresponding to URL A, URL B, and URL C respectively, we get The combined encoding result of can be: [0, 1, 1, 0, 0, 1, 0, 0]. Then, the terminal device 110 may use the LSH algorithm to perform hash calculation on [0, 1, 1, 0, 0, 1, 0, 0] to obtain the first hash value. The first hash value is the hash value corresponding to the historical behavior information of the first user in the search service. This hash value may also be referred to as a hash fingerprint.
可选地,本申请实施例中,LSH算法可以采用以下任意一种:使用杰卡德(jaccard)度量数据相似度的最小哈希(min-hash)算法、使用欧氏距离度量数据相似度的P稳定哈希(P-stable hash)算法、simhash算法等,在此不作限制。Optionally, in the embodiment of the present application, the LSH algorithm may adopt any of the following: the minimum hash (min-hash) algorithm using Jaccard to measure the similarity of data, and the algorithm using Euclidean distance to measure the similarity of data P-stable hash (P-stable hash) algorithm, simhash algorithm, etc., are not limited here.
S304、终端设备110向用户画像服务器130发送第一用户在第二服务中的历史行为信息对应的哈希值。S304. The terminal device 110 sends the hash value corresponding to the historical behavior information of the first user in the second service to the user portrait server 130 .
相应地,用户画像服务器130可以接收第一用户在第二服务中的历史行为信息对应的哈希值。Correspondingly, the user portrait server 130 may receive a hash value corresponding to the historical behavior information of the first user in the second service.
S305、用户画像服务器130根据第一用户在第二服务中的历史行为信息对应的哈希值,对第一用户进行用户分群,确定第一用户在第二服务中所在的用户群组。S305. The user portrait server 130 performs user grouping on the first user according to the hash value corresponding to the historical behavior information of the first user in the second service, and determines the user group to which the first user belongs in the second service.
示例性地,用户画像服务器130根据第一用户在第二服务中的历史行为信息对应的哈希值,对第一用户进行用户分群的步骤,可以包括:用户画像服务器130将第一用户在第二服务中的历史行为信息对应的哈希值、与其他一个或多个用户(如第二用户、第三用户等)在第二服务中的历史行为信息对应的哈希值进行聚类分群计算,得到一个或多个用户群组,每个用户群组可以具有唯一的分群标识,如:分群ID。其中,其他用户(如第二用户、第三用户等)在第二服务中的历史行为信息对应的哈希值可以由其他用户的终端设备发送给用户画像服务器130,与终端设备110获取第一用户在第二服务中的历史行为信息对应的哈希值并发送给用户画像服务器130的原理相同,不再赘述。Exemplarily, the step of user grouping of the first user by the user portrait server 130 according to the hash value corresponding to the historical behavior information of the first user in the second service may include: the user portrait server 130 grouping the first user in the second service The hash value corresponding to the historical behavior information in the second service, and the hash value corresponding to the historical behavior information of one or more users (such as the second user, the third user, etc.) in the second service are clustered and grouped , to obtain one or more user groups, and each user group may have a unique group identifier, such as a group ID. Among them, the hash value corresponding to the historical behavior information of other users (such as the second user, the third user, etc.) in the second service can be sent to the user portrait server 130 by the terminal device of other users, and the terminal device 110 obtains the first The principle of sending the hash value corresponding to the historical behavior information of the user in the second service to the user portrait server 130 is the same, and will not be repeated here.
本申请中,采用第一编码方式对第二服务中与第一用户相关的历史行为信息进行编码处理得到的编码结果可以称为第一编码结果,采用第一编码方式对其他一个或多个用户在第二服务中的历史行为信息进行编码处理得到的编码结果可以称为第二编码结果。In this application, the encoding result obtained by using the first encoding method to encode the historical behavior information related to the first user in the second service can be called the first encoding result. An encoding result obtained by encoding the historical behavior information in the second service may be referred to as a second encoding result.
或者,用户画像服务器130根据第一用户在第二服务中的历史行为信息对应的哈希值,对第一用户进行用户分群的步骤,也可以包括:用户画像服务器130计算第一用户在第二服务中的历史行为信息对应的哈希值与第二服务中已有的用户群组中的其他用户在第二服务中的历史行为信息对应的哈希值之间的相似度,当某个已有的用户群组中的其他用户在第二服务中的历史行为信息对应的哈希值与第一用户在第二服务 中的历史行为信息对应的哈希值之间的相似度大于某个阈值(如90%、80%等)时,确定第一用户属于该已有的用户群组。其中,第二服务中已有的用户群组是对其他用户(如第二用户、第三用户等)在第二服务中的历史行为信息对应的哈希值进行聚类分群计算得到的。前述已有的用户群组中的其他用户可以是已有的用户群组中的任意一个用户。或者,前述已有的用户群组中的其他用户在第二服务中的历史行为信息对应的哈希值,可以是根据已有的用户群组中的多个其他用户分别在第二服务中的历史行为信息对应的哈希值计算得到的,如:求平均值。Alternatively, the user portrait server 130 may perform user grouping on the first user according to the hash value corresponding to the historical behavior information of the first user in the second service. The similarity between the hash value corresponding to the historical behavior information in the service and the hash value corresponding to the historical behavior information of other users in the existing user group in the second service in the second service, when a certain The similarity between the hash value corresponding to the historical behavior information of other users in the second service in some user groups and the hash value corresponding to the historical behavior information of the first user in the second service is greater than a certain threshold (eg, 90%, 80%, etc.), it is determined that the first user belongs to the existing user group. Wherein, the existing user groups in the second service are obtained by clustering and grouping the hash values corresponding to the historical behavior information of other users (such as the second user, the third user, etc.) in the second service. The other users in the aforementioned existing user group may be any user in the existing user group. Alternatively, the hash values corresponding to the historical behavior information of other users in the aforementioned existing user group in the second service may be based on the respective hash values of a plurality of other users in the existing user group in the second service. The hash value corresponding to the historical behavior information is calculated, such as: calculating the average value.
S306、用户画像服务器130向终端设备110发送第一用户在第二服务中所在的用户群组的分群标识。S306. The user portrait server 130 sends to the terminal device 110 the group identification of the user group in which the first user belongs in the second service.
该分群标识可以用于指示第一用户在第二服务中属于哪个用户群组。The group identifier may be used to indicate which user group the first user belongs to in the second service.
相应地,终端设备110可以接收第一用户在第二服务中所在的用户群组的分群标识,并保存。Correspondingly, the terminal device 110 may receive and save the group identification of the user group in which the first user belongs in the second service.
S307、当检测到第一用户第一次使用第一服务时,终端设备110向推荐服务器120发送第一用户在第二服务中所在的用户群组的分群标识。S307. When detecting that the first user uses the first service for the first time, the terminal device 110 sends to the recommendation server 120 a group identifier of a user group in which the first user belongs in the second service.
相应地,推荐服务器120可以接收第一用户在第二服务中所在的用户群组的分群标识。Correspondingly, the recommendation server 120 may receive the group identification of the user group in which the first user belongs in the second service.
示例性地,第一用户可以在终端设备110上或者终端设备110上安装的用于提供第一服务的App上登录第一用户的用户账号,终端设备110检测到第一用户第一次使用第一服务,即是指终端设备110检测到第一用户的用户账号打开或启动第一服务。例如,终端设备110可以是手机,手机上可以安装有浏览器,浏览器中包括信息流服务,信息流服务可以是前述第一服务。第一用户可以在浏览器上登录自己的用户账号,手机检测到第一用户的用户账号首次启动信息流服务时,即表示第一用户第一次使用信息流服务。Exemplarily, the first user may log in the user account of the first user on the terminal device 110 or an App installed on the terminal device 110 for providing the first service, and the terminal device 110 detects that the first user uses the first service for the first time. A service means that the terminal device 110 detects that the user account of the first user opens or activates the first service. For example, the terminal device 110 may be a mobile phone, and a browser may be installed on the mobile phone, and the browser includes an information flow service, and the information flow service may be the aforementioned first service. The first user can log in his user account on the browser, and when the mobile phone detects that the user account of the first user activates the information streaming service for the first time, it means that the first user uses the information streaming service for the first time.
上述第一用户在第二服务中所在的用户群组的分群标识,可以是指:第一用户的用户账号在第二服务中所在的用户群组的分群标识。The above-mentioned group identification of the user group in which the first user belongs in the second service may refer to: the group identification of the user group in which the user account of the first user belongs in the second service.
S308、推荐服务器120根据第一用户在第二服务中所在的用户群组的分群标识,向终端设备110发送与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容。S308. The recommendation server 120 sends to the terminal device 110, according to the group identifier of the user group in which the first user belongs to in the second service, the first user who is interested in other users who are in the same user group as the first user in the second service. The service content of the service.
示例性地,对于用户画像服务器130对第一用户在第二服务中的历史行为信息对应的哈希值、与其他用户(如第二用户、第三用户等)在第二服务中的历史行为信息对应的哈希值进行聚类分群计算,得到的一个或多个用户群组,推荐服务器120可以记录每个用户群组对应的用户对第一服务的哪些服务内容感兴趣。需要说明的是,推荐服务器120可以只记录每个用户群组对应的用户整体对第一服务的哪些服务内容感兴趣,可以不用关注用户群组中的哪个具体用户对第一服务的哪些服务内容感兴趣。Exemplarily, for the hash value corresponding to the historical behavior information of the first user in the second service by the user portrait server 130, the historical behavior of other users (such as the second user, the third user, etc.) in the second service The hash value corresponding to the information is clustered and grouped to obtain one or more user groups, and the recommendation server 120 may record which service content of the first service the users corresponding to each user group are interested in. It should be noted that the recommendation server 120 may only record which service content of the first service the overall users corresponding to each user group are interested in, and may not pay attention to which specific user in the user group is interested in which service content of the first service interested.
推荐服务器120可以根据第一用户在第二服务中所在的用户群组的分群标识,查询该分群标识对应的用户群组对应的用户整体对第一服务的哪些服务内容感兴趣,也即,可以查询该分群标识对应的用户群组中包括的其他用户(如第二用户、第三用户等)对第一服务的哪些服务内容感兴趣。然后,推荐服务器120可以向终端设备110发送与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服 务内容。The recommendation server 120 may, according to the group ID of the user group that the first user belongs to in the second service, query which service content of the first service the users corresponding to the user group corresponding to the group ID are interested in as a whole, that is, may Query which service content of the first service other users (such as the second user, the third user, etc.) included in the user group corresponding to the group identifier are interested in. Then, the recommendation server 120 may send to the terminal device 110 the service content of the first service that is of interest to other users in the same user group as the first user in the second service.
如上所述,与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容,可以包括:其他用户浏览过的第一服务的服务内容,或者,根据用户画像服务器130对其他用户在第一服务中的兴趣进行计算和分析的结果,向其他用户推荐的第一服务的服务内容。As mentioned above, the service content of the first service that other users in the same user group as the first user in the second service are interested in may include: the service content of the first service browsed by other users, or, according to user The portrait server 130 calculates and analyzes the interests of other users in the first service, and recommends the service content of the first service to other users.
S309、终端设备110显示与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容。S309. The terminal device 110 displays the service content of the first service that other users in the same user group as the first user are interested in in the second service.
也即,终端设备110可以将与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容作为个性化推荐结果推荐给第一用户。That is, the terminal device 110 may recommend to the first user the service content of the first service that is of interest to other users in the same user group as the first user in the second service as a personalized recommendation result.
例如,以第一服务为信息流服务、第二服务为搜索服务为例,终端设备110可以将与第一用户在搜索服务中处于同一用户群组的其他用户所感兴趣的信息流作为信息流服务中的个性化推荐结果推荐给第一用户。For example, taking the first service as an information flow service and the second service as a search service as an example, the terminal device 110 may use the information flow that is of interest to other users in the same user group as the first user in the search service as the information flow service. The personalized recommendation results in are recommended to the first user.
可以理解,上述图3所示的推荐方法中,S301-S306所述的步骤为用户在使用第二服务时,对用户进行分群的过程。S307-S309所述的步骤为用户第一次使用第一服务时,基于S301-S306中的用户分群结果,实现用户冷启动的过程。It can be understood that in the above-mentioned recommendation method shown in FIG. 3 , the steps described in S301-S306 are the process of grouping users when they use the second service. The steps described in S307-S309 are the process of cold-starting the user based on the user grouping results in S301-S306 when the user uses the first service for the first time.
一些实施例中,终端设备110可以按照第一周期定期执行S301-S304所述的步骤。例如,第一周期可以是一天、一周、一个月等。相应地,用户画像服务器130可以随着第一周期定期执行S305-S306所述的步骤。S301中,终端设备110获取的第一用户在第二服务中的历史行为信息可以是第一时间段内第一用户在第二服务中的历史行为信息。例如,第一时间段可以是最近一个月(即)、最近一周等。通过这种方式,可以使得第一用户的用户分群结果能够随着第一用户在第二服务中的历史行为信息的变化而按照第一周期进行动态更新。第一用户的用户分群结果随着第一用户在第二服务中的历史行为信息的变化、按照第一周期进行动态更新,不仅可以提高用户分群结果的准确性,还可以提高用户隐私的安全性。In some embodiments, the terminal device 110 may periodically execute the steps described in S301-S304 according to the first cycle. For example, the first period may be a day, a week, a month, etc. Correspondingly, the user portrait server 130 may periodically execute the steps described in S305-S306 along with the first cycle. In S301, the historical behavior information of the first user in the second service acquired by the terminal device 110 may be the historical behavior information of the first user in the second service within a first time period. For example, the first time period may be the last month (ie), the last week, and so on. In this way, the user grouping result of the first user can be dynamically updated according to the first period along with the change of the historical behavior information of the first user in the second service. The user grouping results of the first user are dynamically updated according to the first cycle as the historical behavior information of the first user in the second service changes, which can not only improve the accuracy of the user grouping results, but also improve the security of user privacy .
以第一时间段为最近一个月、第一周期为一周为例,第一用户在使用第二服务的过程中,终端设备110至少可以保留最近一个月内第一用户在第二服务中的历史行为信息。每隔一周,终端设备110可以获取最近一个月内第一用户在第二服务中的历史行为信息,采用第一编码方式对最近一个月内第一用户在第二服务中的历史行为信息进行编码处理,采用第一哈希算法对最近一个月内第一用户在第二服务中的历史行为信息对应的编码结果进行哈希计算,得到最近一个月内第一用户在第二服务中的历史行为信息对应的哈希值并发送给用户画像服务器130。相应地,用户画像服务器130可以基于最近一个月内第一用户在第二服务中的历史行为信息对应的哈希值,执行上述S305-S306所述的步骤,使得终端设备110侧接收到的第一用户在第二服务中所在的用户群组的分群标识能够每隔一周更新一次。应当理解,第一用户在第二服务中所在的用户群组的分群标识每次更新后,更新前和更新后的结果可能相同,也可能不同,如第一用户可能被划分到新的用户群组。Taking the first time period as the last month and the first period as one week as an example, when the first user is using the second service, the terminal device 110 can at least keep the history of the first user in the second service in the last month behavioral information. Every other week, the terminal device 110 can acquire the historical behavior information of the first user in the second service in the last month, and encode the historical behavior information of the first user in the second service in the last month using the first encoding method Processing, using the first hash algorithm to perform hash calculation on the encoding result corresponding to the historical behavior information of the first user in the second service in the last month, and obtain the historical behavior of the first user in the second service in the last month The hash value corresponding to the information is sent to the user portrait server 130. Correspondingly, the user portrait server 130 may perform the steps described above in S305-S306 based on the hash value corresponding to the historical behavior information of the first user in the second service within the last month, so that the terminal device 110 receives the first The group identifier of the user group that a user belongs to in the second service can be updated every other week. It should be understood that after each update of the group identification of the user group that the first user belongs to in the second service, the results before and after the update may be the same or different, for example, the first user may be classified into a new user group Group.
可选地,本申请实施例中,第一用户也可以在终端设备110上进行设置,选择拒绝授权终端设备110收集第一用户在服务中的历史行为信息。当第一用户选择拒绝授权终端设备110收集第一用户在服务中的历史行为信息后,终端设备110可以不再根 据第一用户在服务中的历史行为信息计算对应的哈希值。Optionally, in this embodiment of the present application, the first user may also set on the terminal device 110 to choose to refuse to authorize the terminal device 110 to collect the historical behavior information of the first user in the service. When the first user chooses to refuse to authorize the terminal device 110 to collect the historical behavior information of the first user in the service, the terminal device 110 may no longer calculate the corresponding hash value according to the historical behavior information of the first user in the service.
可选地,一些实施例中,用户画像服务器130在根据用户(可以包括第一用户、其他用户等)在第二服务中的历史行为信息对应的哈希值,对用户进行用户分群时,可以将每个用户群组中的用户数量保持在固定的数量以下,如:可以保持每个用户群组中的用户数量小于5000个,以避免基于用户分群结果进行推荐的个性化推荐结果过于单一。Optionally, in some embodiments, when the user portrait server 130 performs user grouping according to the hash value corresponding to the historical behavior information of the user (may include the first user, other users, etc.) in the second service, it may Keep the number of users in each user group below a fixed number, for example, keep the number of users in each user group less than 5000, so as to avoid the personalized recommendation results based on user grouping results being too single.
上述图3所示的实施例中,采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理的步骤,是由终端设备110完成的。在另外一些实施例中,采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理的步骤也可以在用户画像服务器130侧完成,将采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理的过程放在用户画像服务器130侧,可以减轻终端设备110侧的计算压力,降低终端设备110的负载。In the embodiment shown in FIG. 3 above, the step of encoding the historical behavior information of the first user in the second service by using the first encoding method is completed by the terminal device 110 . In some other embodiments, the step of encoding the historical behavior information of the first user in the second service by using the first encoding method can also be completed on the side of the user portrait server 130, and the first user will be encoded by the first encoding method The process of encoding the historical behavior information in the second service is placed on the user profile server 130 side, which can reduce the calculation pressure on the terminal device 110 side and reduce the load on the terminal device 110 .
例如,图4为本申请实施例提供的推荐方法的另一流程示意图。如图4所示,该推荐方法可以包括S401-S411。For example, FIG. 4 is another schematic flowchart of the recommendation method provided by the embodiment of the present application. As shown in Fig. 4, the recommendation method may include S401-S411.
S401、终端设备110获取第一用户在第二服务中的历史行为信息。S401. The terminal device 110 acquires historical behavior information of a first user in a second service.
S401所述的步骤可以参考前述S301所述,不再赘述。For the steps described in S401, reference may be made to the foregoing description in S301, and details are not repeated here.
S402、终端设备110向用户画像服务器130发送第一用户在第二服务中的历史行为信息。S402. The terminal device 110 sends historical behavior information of the first user in the second service to the user portrait server 130.
相应地,用户画像服务器130可以接收第一用户在第二服务中的历史行为信息。Correspondingly, the user portrait server 130 may receive historical behavior information of the first user in the second service.
为更好的保护用户隐私,终端设备110可以仅向用户画像服务器130发送第一用户在第二服务中的历史行为信息,可以不携带与第一用户相关的用户信息,如:用户标识(用户账号)、终端设备110的设备信息等。In order to better protect user privacy, the terminal device 110 may only send the historical behavior information of the first user in the second service to the user portrait server 130, and may not carry user information related to the first user, such as: user identification (user account), device information of the terminal device 110, etc.
S403、用户画像服务器130采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理,得到第一用户在第二服务中的历史行为信息对应的编码结果。S403. The user portrait server 130 encodes the historical behavior information of the first user in the second service by using the first encoding method, and obtains an encoding result corresponding to the historical behavior information of the first user in the second service.
用户画像服务器130采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理的过程,可以与前述实施例中所述的终端设备110采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理的过程相同,此处不再赘述。The process in which the user portrait server 130 uses the first encoding method to encode the historical behavior information of the first user in the second service can be compared with the terminal device 110 described in the previous embodiment using the first encoding method to encode the first user in the second service. The process of encoding the historical behavior information in the second service is the same, and will not be repeated here.
S404、用户画像服务器130向终端设备110发送第一用户在第二服务中的历史行为信息对应的编码结果。S404. The user portrait server 130 sends to the terminal device 110 an encoding result corresponding to the historical behavior information of the first user in the second service.
相应地,终端设备110可以接收第一用户在第二服务中的历史行为信息对应的编码结果。Correspondingly, the terminal device 110 may receive an encoding result corresponding to the historical behavior information of the first user in the second service.
S405、终端设备110采用第一哈希算法对第一用户在第二服务中的历史行为信息对应的编码结果进行哈希计算,得到第一用户在第二服务中的历史行为信息对应的哈希值。S405, the terminal device 110 uses the first hash algorithm to perform hash calculation on the encoding result corresponding to the historical behavior information of the first user in the second service, and obtains the hash corresponding to the historical behavior information of the first user in the second service value.
S406、终端设备110向用户画像服务器130发送第一用户在第二服务中的历史行为信息对应的哈希值。S406. The terminal device 110 sends the hash value corresponding to the historical behavior information of the first user in the second service to the user portrait server 130.
相应地,用户画像服务器130可以接收第一用户在第二服务中的历史行为信息对应的哈希值。Correspondingly, the user portrait server 130 may receive a hash value corresponding to the historical behavior information of the first user in the second service.
S407、用户画像服务器130根据第一用户在第二服务中的历史行为信息对应的哈 希值,对第一用户进行用户分群,确定第一用户在第二服务中所在的用户群组。S407. The user portrait server 130 performs user grouping on the first user according to the hash value corresponding to the historical behavior information of the first user in the second service, and determines the user group in which the first user belongs to in the second service.
S408、用户画像服务器130向终端设备110发送第一用户在第二服务中所在的用户群组的分群标识。S408. The user portrait server 130 sends to the terminal device 110 the group identification of the user group in which the first user belongs in the second service.
相应地,终端设备110可以接收第一用户在第二服务中所在的用户群组的分群标识,并保存。Correspondingly, the terminal device 110 may receive and save the group identification of the user group in which the first user belongs in the second service.
S409、当检测到第一用户第一次使用第一服务时,终端设备110向推荐服务器120发送第一用户在第二服务中所在的用户群组的分群标识。S409. When detecting that the first user uses the first service for the first time, the terminal device 110 sends to the recommendation server 120 a group identifier of a user group in which the first user belongs in the second service.
相应地,推荐服务器120可以接收第一用户在第二服务中所在的用户群组的分群标识。Correspondingly, the recommendation server 120 may receive the group identification of the user group in which the first user belongs in the second service.
S410、推荐服务器120根据第一用户在第二服务中所在的用户群组的分群标识,向终端设备110发送与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容。S410. The recommendation server 120 sends to the terminal device 110, according to the group identification of the user group in which the first user belongs to in the second service, the first user who is interested in other users who are in the same user group as the first user in the second service. The service content of the service.
S411、终端设备110显示与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容。S411. The terminal device 110 displays service content of the first service that is of interest to other users in the same user group as the first user in the second service.
S405-S411所述的步骤可以参考前述S303-S309所述,不再赘述。For the steps described in S405-S411, reference may be made to the foregoing descriptions in S303-S309, and details are not repeated here.
可选地,本申请实施例中所述的终端设备110的功能,可以通过安装在终端设备110上的App来实现。例如,终端设备110上安装有浏览器,浏览器可以包括上述第一服务和第二服务,前述实施例中所述的终端设备110的全部功能可以由浏览器实现。Optionally, the functions of the terminal device 110 described in the embodiments of the present application may be realized by an App installed on the terminal device 110 . For example, a browser is installed on the terminal device 110, and the browser may include the above-mentioned first service and the second service, and all functions of the terminal device 110 described in the foregoing embodiments may be realized by the browser.
以上图3和图4所示的实施例以终端设备110提供第一服务和第二服务,第一用户第一次使用第一服务、且第一用户为使用过第二服务的用户为例,介绍了本申请实施例提供的推荐方法。可选地,另外一些实施例中,本申请实施例提供的推荐方法也可以应用于多设备协同的场景中,第一服务和第二服务可以由两个不同的设备提供。例如,手机、平板电脑、个人电脑(personal computer,PC)、智能家居设备(如电视机)等多个(如至少两个)终端设备可以进行协同使用,多个终端设备进行协同的场景可以称为多设备协同场景。在多设备协同场景中,第一用户可以拥有多个可以协同的设备,如:终端设备1、终端设备2等。In the above embodiments shown in FIG. 3 and FIG. 4, the terminal device 110 provides the first service and the second service, the first user uses the first service for the first time, and the first user is a user who has used the second service as an example. The recommended method provided by the embodiment of this application is introduced. Optionally, in some other embodiments, the recommendation method provided in the embodiments of the present application may also be applied in a multi-device coordination scenario, and the first service and the second service may be provided by two different devices. For example, multiple (such as at least two) terminal devices such as mobile phones, tablet computers, personal computers (PCs), and smart home devices (such as televisions) can be used in coordination, and the scenario where multiple terminal devices cooperate can be called For multi-device collaboration scenarios. In a multi-device coordination scenario, the first user may have multiple devices capable of coordination, such as: terminal device 1, terminal device 2, and so on.
以多设备协同场景中,终端设备1(如手机)包括第一服务,终端设备2(如电视)包括第二服务为例,图5为本申请实施例提供的推荐方法的又一流程示意图。其中,第一服务和第二服务请参考前述实施例中所述,不再赘述。如图5所示,该推荐方法可以包括S501-S511。Taking a multi-device collaboration scenario where terminal device 1 (such as a mobile phone) includes the first service and terminal device 2 (such as a TV) includes the second service as an example, FIG. 5 is another schematic flowchart of the recommendation method provided by the embodiment of the present application. Wherein, for the first service and the second service, please refer to the description in the foregoing embodiments, and details are not repeated here. As shown in Fig. 5, the recommendation method may include S501-S511.
S501、终端设备2获取第一用户在第二服务中的历史行为信息。S501. The terminal device 2 acquires historical behavior information of a first user in a second service.
S501所述的步骤可以参考前述S301所述,不再赘述。For the steps described in S501, reference may be made to the foregoing descriptions in S301, and details are not repeated here.
S502、终端设备2向用户画像服务器130发送第一用户在第二服务中的历史行为信息。S502. The terminal device 2 sends historical behavior information of the first user in the second service to the user portrait server 130 .
相应地,用户画像服务器130可以接收第一用户在第二服务中的历史行为信息。Correspondingly, the user portrait server 130 may receive historical behavior information of the first user in the second service.
为更好的保护用户隐私,终端设备2可以仅向用户画像服务器130发送第一用户在第二服务中的历史行为信息,可以不携带与第一用户相关的用户信息,如:用户标识(用户账号)、终端设备2的设备信息等。In order to better protect user privacy, the terminal device 2 may only send the historical behavior information of the first user in the second service to the user portrait server 130, and may not carry user information related to the first user, such as: user identification (user account), device information of the terminal device 2, etc.
S503、用户画像服务器130采用第一编码方式对第一用户在第二服务中的历史行 为信息进行编码处理,得到第一用户在第二服务中的历史行为信息对应的编码结果。S503. The user portrait server 130 uses the first encoding method to encode the historical behavior information of the first user in the second service, and obtains the encoding result corresponding to the historical behavior information of the first user in the second service.
用户画像服务器130采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理的过程,可以与前述实施例中所述的采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理的过程相同,此处不再赘述。The process in which the user profile server 130 uses the first encoding method to encode the historical behavior information of the first user in the second service can be compared with the process of using the first encoding method to encode the first user in the second service described in the previous embodiment. The process of encoding the historical behavior information in is the same and will not be repeated here.
S504、用户画像服务器130向终端设备2发送第一用户在第二服务中的历史行为信息对应的编码结果。S504. The user portrait server 130 sends to the terminal device 2 an encoding result corresponding to the historical behavior information of the first user in the second service.
相应地,终端设备2可以接收第一用户在第二服务中的历史行为信息对应的编码结果。Correspondingly, the terminal device 2 may receive an encoding result corresponding to the historical behavior information of the first user in the second service.
可选地,如前述实施例所述,采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理的过程也可以由终端设备2完成。也即,S502-S504所述的步骤也可以替换为:终端设备2采用第一编码方式对第一用户在第二服务中的历史行为信息进行编码处理,得到第一用户在第二服务中的历史行为信息对应的编码结果。Optionally, as described in the foregoing embodiments, the process of encoding the historical behavior information of the first user in the second service by using the first encoding method may also be completed by the terminal device 2 . That is, the steps described in S502-S504 can also be replaced by: the terminal device 2 uses the first encoding method to encode the historical behavior information of the first user in the second service, and obtains the information of the first user in the second service. The encoding result corresponding to historical behavior information.
S505、终端设备2采用第一哈希算法对第一用户在第二服务中的历史行为信息对应的编码结果进行哈希计算,得到第一用户在第二服务中的历史行为信息对应的哈希值。S505, the terminal device 2 uses the first hash algorithm to perform hash calculation on the encoding result corresponding to the historical behavior information of the first user in the second service, and obtains the hash corresponding to the historical behavior information of the first user in the second service value.
S506、终端设备2向用户画像服务器130发送第一用户在第二服务中的历史行为信息对应的哈希值。S506. The terminal device 2 sends the hash value corresponding to the historical behavior information of the first user in the second service to the user portrait server 130 .
相应地,用户画像服务器130可以接收第一用户在第二服务中的历史行为信息对应的哈希值。Correspondingly, the user portrait server 130 may receive a hash value corresponding to the historical behavior information of the first user in the second service.
S507、用户画像服务器130根据第一用户在第二服务中的历史行为信息对应的哈希值,对第一用户进行用户分群,确定第一用户在第二服务中所在的用户群组。S507. The user portrait server 130 performs user grouping on the first user according to the hash value corresponding to the historical behavior information of the first user in the second service, and determines the user group to which the first user belongs in the second service.
S508、用户画像服务器130向终端设备1发送第一用户在第二服务中所在的用户群组的分群标识。S508. The user portrait server 130 sends to the terminal device 1 the group identifier of the user group in which the first user belongs in the second service.
相应地,终端设备1可以接收第一用户在第二服务中所在的用户群组的分群标识,并保存。Correspondingly, the terminal device 1 may receive and save the group identification of the user group in which the first user belongs in the second service.
或者,用户画像服务器130可以向终端设备2发送第一用户在第二服务中所在的用户群组的分群标识,终端设备1可以从终端设备2处获取第一用户在第二服务中所在的用户群组的分群标识。Alternatively, the user portrait server 130 may send to the terminal device 2 the group ID of the user group that the first user belongs to in the second service, and the terminal device 1 may obtain from the terminal device 2 the user ID of the user group that the first user belongs to in the second service. The grouping ID of the group.
S509、当检测到第一用户第一次使用第一服务时,终端设备1向推荐服务器120发送第一用户在第二服务中所在的用户群组的分群标识。S509. When detecting that the first user uses the first service for the first time, the terminal device 1 sends to the recommendation server 120 a group identifier of a user group in which the first user belongs in the second service.
相应地,推荐服务器120可以接收第一用户在第二服务中所在的用户群组的分群标识。Correspondingly, the recommendation server 120 may receive the group identification of the user group in which the first user belongs in the second service.
S510、推荐服务器120根据第一用户在第二服务中所在的用户群组的分群标识,向终端设备1发送与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容。S510. The recommendation server 120 sends to the terminal device 1, according to the group identifier of the user group in which the first user belongs to in the second service, the first user who is interested in other users who are in the same user group as the first user in the second service. The service content of the service.
S511、终端设备1显示与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容。S511. The terminal device 1 displays service content of the first service that other users in the same user group as the first user are interested in in the second service.
S505-S511所述的步骤可以参考前述S303-S309所述,不再赘述。For the steps described in S505-S511, reference may be made to the foregoing descriptions in S303-S309, and details are not repeated here.
一些可能的实现场景中,本申请实施例中能够提供上述第一服务和第二服务的终 端设备(可以是同一个终端设备,也可以是不同的终端设备)可以是设备资源(如CPU资源、内存资源、存储资源等)较为丰富,可独立联网和人机交互的设备,如:手机、平板电脑、笔记本电脑等。In some possible implementation scenarios, the terminal device (which may be the same terminal device or different terminal devices) capable of providing the above-mentioned first service and second service in the embodiment of the present application may be a device resource (such as CPU resource, Memory resources, storage resources, etc.) are relatively rich, and can be independently networked and human-computer interaction devices, such as: mobile phones, tablet computers, notebook computers, etc.
另外一些可能的场景中,本申请实施例中能够提供上述第一服务和/或第二服务的终端设备也可以是设备资源较少,无法独立联网和/或人机交互的设备,如:手写板、耳机、VR眼镜、车载设备、电饭煲、音响、跑步机等。当提供第一服务的终端设备是设备资源较少,无法独立联网和/或人机交互的设备时,提供第一服务的终端设备与服务器(如推荐服务器、用户画像服务)的交互,可以通过其他设备资源较为丰富,可独立联网和人机交互的设备来完成。类似地,当提供第二服务的终端设备是设备资源较少,无法独立联网和/或人机交互的设备时,提供第二服务的终端设备与服务器(如推荐服务器、用户画像服务)的交互,也可以通过其他设备资源较为丰富,可独立联网和人机交互的设备来完成。In some other possible scenarios, the terminal device that can provide the above-mentioned first service and/or second service in the embodiment of this application may also be a device that has less device resources and cannot be independently connected to the Internet and/or human-computer interaction, such as: handwriting Boards, headphones, VR glasses, car equipment, rice cookers, stereos, treadmills, etc. When the terminal device providing the first service is a device with less device resources and cannot independently network and/or human-computer interaction, the interaction between the terminal device providing the first service and the server (such as recommendation server, user portrait service) can be done through Other equipment resources are relatively rich, and can be completed by independent networking and human-computer interaction equipment. Similarly, when the terminal device providing the second service is a device with less device resources and cannot independently network and/or human-computer interaction, the interaction between the terminal device providing the second service and the server (such as recommendation server, user portrait service) , It can also be completed by other devices with abundant resources, independent networking and human-computer interaction.
示例性地,图6为本申请实施例提供的一种应用场景的示意图。如图6所示,一种可能的应用场景中可以包括:手机601、手表602、智慧屏603、音响604、冰箱605等设备。手机601与手表602、智慧屏603、音响604、以及冰箱605之间可以通过路由器606实现局域网连接。图6所示的场景中,手机601、手表602、智慧屏603等可以认为是设备资源较为丰富,可独立联网和人机交互的设备;音响604、冰箱605等可以认为是设备资源较少,无法独立联网和/或人机交互的设备。Exemplarily, FIG. 6 is a schematic diagram of an application scenario provided by an embodiment of the present application. As shown in FIG. 6 , a possible application scenario may include: mobile phone 601 , watch 602 , smart screen 603 , stereo 604 , refrigerator 605 and other devices. The mobile phone 601 and the watch 602 , smart screen 603 , stereo 604 , and refrigerator 605 can be connected via a router 606 via a local area network. In the scenario shown in Figure 6, mobile phone 601, watch 602, smart screen 603, etc. can be considered as devices with relatively rich equipment resources, which can be independently connected to the Internet and interact with humans; audio equipment 604, refrigerator 605, etc. can be considered as equipment with relatively few resources. Devices that cannot be independently networked and/or human-computer interactive.
一种实现方式中,第一服务可以是冰箱605提供的菜谱推荐服务,第二服务可以是手机601提供的信息流服务。也即,冰箱605可以是上述图5所示的流程中提到的终端设备1,手机601可以是上述图5所示的流程中提到的终端设备2。此时,冰箱605可以通过手机601、或者手表602、又或者智慧屏603等设备资源较为丰富,可独立联网和人机交互的设备,完成与服务器(如推荐服务器、用户画像服务)的交互。例如,用户画像服务器可以向手机601发送第一用户在第二服务中所在的用户群组的分群标识,手机601可以将第一用户在第二服务中所在的用户群组的分群标识转发给冰箱605;冰箱605可以向手机601发送第一用户在第二服务中所在的用户群组的分群标识,手机601可以将第一用户在第二服务中所在的用户群组的分群标识转发给推荐服务器;推荐服务器可以向手机601发送与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容,手机601可以将与第一用户在第二服务中处于同一用户群组的其他用户所感兴趣的第一服务的服务内容转发给冰箱605。In one implementation manner, the first service may be a recipe recommendation service provided by the refrigerator 605 , and the second service may be an information streaming service provided by the mobile phone 601 . That is, the refrigerator 605 may be the terminal device 1 mentioned in the process shown in FIG. 5 above, and the mobile phone 601 may be the terminal device 2 mentioned in the process shown in FIG. 5 above. At this time, the refrigerator 605 can complete the interaction with the server (such as recommendation server, user portrait service) through devices such as mobile phone 601, watch 602, or smart screen 603 that have rich resources and can be independently networked and human-computer interaction. For example, the user portrait server may send the group identifier of the user group that the first user belongs to in the second service to the mobile phone 601, and the mobile phone 601 may forward the group identifier of the user group that the first user belongs to in the second service to the refrigerator 605; the refrigerator 605 may send to the mobile phone 601 the group identifier of the user group in which the first user belongs in the second service, and the mobile phone 601 may forward the group identifier of the user group in which the first user belongs in the second service to the recommendation server The recommendation server can send to the mobile phone 601 the service content of the first service that other users who are in the same user group as the first user in the second service are interested in, and the mobile phone 601 can be in the same user group as the first user in the second service. The service content of the first service that other users of the user group are interested in is forwarded to the refrigerator 605 .
另一种实现方式中,第一服务可以是冰箱605提供的菜谱推荐服务,第二服务可以是音响604提供的音乐推荐服务。也即,冰箱605可以是上述图5所示的流程中提到的终端设备1,音响604可以是上述图5所示的流程中提到的终端设备2。此时,冰箱605可以通过手机601、或者手表602、又或者智慧屏603等设备资源较为丰富,可独立联网和人机交互的设备,完成与服务器(如推荐服务器、用户画像服务)的交互。音响604也可以通过手机601、或者手表602、又或者智慧屏603等设备资源较为丰富,可独立联网和人机交互的设备,完成与服务器(如推荐服务器、用户画像服务)的交互,不再一一举例。In another implementation manner, the first service may be a recipe recommendation service provided by the refrigerator 605 , and the second service may be a music recommendation service provided by the stereo 604 . That is, the refrigerator 605 may be the terminal device 1 mentioned above in the process shown in FIG. 5 , and the stereo 604 may be the terminal device 2 mentioned in the process shown in FIG. 5 above. At this time, the refrigerator 605 can complete the interaction with the server (such as recommendation server, user portrait service) through devices such as mobile phone 601, watch 602, or smart screen 603 that have rich resources and can be independently networked and human-computer interaction. The audio 604 can also interact with the server (such as the recommendation server, user portrait service) through devices such as the mobile phone 601, or the watch 602, or the smart screen 603, which are relatively rich in resources and can be independently networked and human-computer interaction. Give examples.
可选地,本申请实施例中可以将上述设备资源较为丰富、可独立联网和人机交互 的设备称为富设备,将上述设备资源较少、无法独立联网和/或人机交互的设备称为轻设备。Optionally, in the embodiment of the present application, the above-mentioned devices with rich device resources, independent networking and human-computer interaction can be called rich devices, and the above-mentioned devices with few device resources, which cannot be independently connected to the Internet and/or human-computer interaction can be called rich devices. For light equipment.
可选地,本申请实施例提供的推荐方法也可以应用到非用户冷启动的场景中。例如,第一用户也可以不是第一服务中的新增用户,而是使用过第一服务的用户。也即,第一用户在第一服务中已经产生了一些历史行为信息。对于该场景,本申请实施例提供的推荐方法,也可以利用第二服务中与第一用户相关的历史行为信息进行知识迁移,确定第一用户在第二服务中的用户分群结果,并基于第一用户在第二服务中的用户分群结果在第一服务中向用户进行协同推荐。例如,第一用户可以是使用过第一服务的用户,但第一用户在第一服务中的历史行为信息较少。本申请对第一用户是否是第一次使用第一服务、以及第一用户在第一服务中的历史行为信息的数量并不作限制。Optionally, the recommendation method provided in the embodiment of the present application may also be applied to a non-user cold start scenario. For example, the first user may not be a new user in the first service, but a user who has used the first service. That is, the first user has generated some historical behavior information in the first service. For this scenario, the recommendation method provided by the embodiment of the present application can also use the historical behavior information related to the first user in the second service to carry out knowledge transfer, determine the user grouping results of the first user in the second service, and based on the second service The user grouping results of a user in the second service are collaboratively recommended to the user in the first service. For example, the first user may be a user who has used the first service, but the historical behavior information of the first user in the first service is less. This application does not limit whether the first user is using the first service for the first time, and the amount of historical behavior information of the first user in the first service.
本申请前述图3和图4所示出的实施例中,终端设备110可以称为第一设备。前述图5所示的实施例中,终端设备1可以称为第一设备,终端设备2可以称为第二设备。当第一设备通过其他终端设备与服务器进行交互时,其他终端设备可以称为第三设备。如:第一设备可以是上述轻设备,第三设备可以是上述富设备。类似地,当第二设备通过其他终端设备与服务器进行交互时,其他终端设备可以称为第四设备。如:第一设备可以是上述轻设备,第四设备可以是上述富设备。In the foregoing embodiments shown in FIG. 3 and FIG. 4 of the present application, the terminal device 110 may be referred to as a first device. In the aforementioned embodiment shown in FIG. 5 , terminal device 1 may be called a first device, and terminal device 2 may be called a second device. When the first device interacts with the server through other terminal devices, the other terminal devices may be called third devices. For example, the first device may be the aforementioned light device, and the third device may be the aforementioned rich device. Similarly, when the second device interacts with the server through other terminal devices, the other terminal devices may be referred to as fourth devices. For example, the first device may be the aforementioned light device, and the fourth device may be the aforementioned rich device.
可选地,一些可能的实施例中,第一设备还可以向服务器发送第一用户的标识信息(如用户账号)。例如,第一设备可以向服务器发送第一用户的用户信息,第一用户的用户信息包括:第一用户的标识信息和第一用户群组的标识信息。Optionally, in some possible embodiments, the first device may also send identification information of the first user (such as a user account) to the server. For example, the first device may send user information of the first user to the server, where the user information of the first user includes: identification information of the first user and identification information of the first user group.
或者,还有一些可能的实施例中,第一设备可以不感知第一用户在第二服务中所在的用户群组的分群标识,服务器在得到第一用户在第二服务中所在的用户群组的分群标识后,可以在服务器侧建立第一用户在第二服务中所在的用户群组的分群标识与第一用户的标识信息(如用户账号)的关联关系。第一设备可以向服务器发送第一用户的标识信息,服务器可以根据第一用户的标识信息查询得到第一用户在第二服务中所在的用户群组的分群标识,即,服务器可以根据第一用户的标识信息查询得到第一用户在第二服务属于哪个用户群组。Or, in some possible embodiments, the first device may not perceive the group identifier of the user group that the first user belongs to in the second service, and the server obtains the user group identifier of the user group that the first user belongs to in the second service After the group identifier of the user group, an association relationship between the group identifier of the user group that the first user belongs to in the second service and the first user's identification information (such as a user account) can be established on the server side. The first device can send the identification information of the first user to the server, and the server can obtain the group identification of the user group that the first user belongs to in the second service according to the identification information of the first user. The identification information query obtains which user group the first user belongs to in the second service.
在本申请中,第一用户在第二服务中所在的用户群组可以称为第一用户群组,第一用户在第二服务中所在的用户群组的分群标识即第一用户群组的标识信息。也即,第一设备可以向服务器发送第一用户的用户信息,第一用户的用户信息可以包括:第一用户的标识信息,和/或,第一用户群组的标识信息。其中,第一用户的用户信息与第一用户群组相关。In this application, the user group that the first user belongs to in the second service may be referred to as the first user group, and the group identifier of the user group that the first user belongs to in the second service is the ID of the first user group. Identification information. That is, the first device may send the user information of the first user to the server, and the user information of the first user may include: identification information of the first user, and/or identification information of the first user group. Wherein, the user information of the first user is related to the first user group.
需要说明的是,本申请前述实施例中虽然是以服务器可以根据第二服务中与第一用户相关的历史行为信息对应的哈希值、以及其他一个或多个用户在第二服务中的历史行为信息对应的哈希值相匹配,确定第一用户在第二服务中所在的用户群组(即上述第一用户群组)为例进行了说明,但在其他一些可能的实施例中,哈希值也可以被替换为采用其他特征提取算法对历史行为信息对应的编码结果进行特征提取所得到的结果,本申请并不对此进行限制。It should be noted that in the foregoing embodiments of the present application, although the server can use the hash value corresponding to the historical behavior information related to the first user in the second service and the history of one or more other users in the second service Matching the hash value corresponding to the behavior information, determining the user group that the first user belongs to in the second service (that is, the above-mentioned first user group) is described as an example, but in some other possible embodiments, the hash value The Greek value can also be replaced by the result obtained by using other feature extraction algorithms to extract features from the coding results corresponding to the historical behavior information, which is not limited in this application.
可选地,其他特征提取算法对历史行为信息对应的编码结果进行特征提取后得到的结果,也可以保持编码结果的相似性,其他特征提取算法也可以具有无法反向解密 编码结果的特性。Optionally, the results obtained by other feature extraction algorithms after performing feature extraction on the encoding results corresponding to historical behavior information can also maintain the similarity of the encoding results, and other feature extraction algorithms can also have the characteristic that they cannot reversely decrypt the encoding results.
前述历史行为信息对应的哈希值、采用其他特征提取算法对历史行为信息对应的编码结果进行特征提取后得到的结果等,可以称为历史行为信息对应的特征信息。也即,本申请中,可以根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息相匹配,确定第一用户在第二服务中所在的用户群组。The hash value corresponding to the aforementioned historical behavior information, the result obtained after using other feature extraction algorithms to perform feature extraction on the encoding result corresponding to the historical behavior information, etc., can be called the feature information corresponding to the historical behavior information. That is, in this application, it can be matched according to the feature information corresponding to the historical behavior information related to the first user in the second service and the feature information corresponding to the historical behavior information of one or more other users in the second service, A user group to which the first user belongs in the second service is determined.
应当理解,以上各实施例中所述仅为对本申请实施例提供的推荐方法的示例性说明。在其他一些可能的实现方式中,以上所述的各实施例也可以删减或增加某些执行步骤,或者以上实施例中所述的部分步骤的顺序也可以进行调整,本申请对此均不作限制。It should be understood that the descriptions in the above embodiments are only exemplary descriptions of the recommended methods provided in the embodiments of the present application. In some other possible implementations, the above-mentioned embodiments may also delete or add certain execution steps, or the order of some steps described in the above-mentioned embodiments may also be adjusted, and this application does not make any limit.
对应于前述实施例中所述的推荐方法,本申请实施例提供一种推荐系统,推荐系统可以实现如前述实施例中所述的推荐方法。Corresponding to the recommendation method described in the foregoing embodiments, an embodiment of the present application provides a recommendation system, and the recommendation system can implement the recommendation method as described in the foregoing embodiments.
例如,推荐系统可以包括:第一设备和服务器。第一设备和服务器具体可以参考前述实施例中所述。第一设备可以用于向服务器发送第一用户的用户信息。服务器可以用于向第一设备发送推荐信息。推荐信息是与第一用户群组中的用户使用第一服务相关的信息;第一用户的用户信息与第一用户群组相关;第一用户群组是根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息相匹配所确定的。For example, the recommendation system may include: a first device and a server. For details about the first device and the server, reference may be made to the foregoing embodiments. The first device may be configured to send user information of the first user to the server. The server can be used to send recommendation information to the first device. The recommended information is information related to the use of the first service by users in the first user group; the user information of the first user is related to the first user group; the first user group is based on the information related to the first user in the second service The characteristic information corresponding to the historical behavior information of the user and the characteristic information corresponding to the historical behavior information of the other one or more users in the second service are determined by matching.
一种可能的实现方式中,第一设备包括第一服务和第二服务;第一设备还用于向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。In a possible implementation manner, the first device includes a first service and a second service; the first device is further configured to send feature information corresponding to historical behavior information related to the first user in the second service to the server.
另一种可能的实现方式中,推荐系统还包括第二设备。第一设备包括第一服务,第二设备包括第二服务。第二设备可以用于向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。In another possible implementation manner, the recommendation system further includes a second device. The first device includes a first service and the second device includes a second service. The second device may be configured to send feature information corresponding to historical behavior information related to the first user in the second service to the server.
一种可能的实现方式中,推荐系统还包括第三设备,第一设备具体用于通过第三设备向服务器发送第一用户的用户信息。服务器具体用于通过第三设备向第一设备发送推荐信息。In a possible implementation manner, the recommendation system further includes a third device, and the first device is specifically configured to send the user information of the first user to the server through the third device. The server is specifically configured to send recommendation information to the first device through the third device.
一种可能的实现方式中,第一用户的用户信息,包括:第一用户的标识信息,和/或,第一用户群组的标识信息。In a possible implementation manner, the user information of the first user includes: identification information of the first user, and/or identification information of the first user group.
可选地,服务器还用于根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息,确定第一用户群组;以及,向第一设备发送第一用户群组的标识信息。Optionally, the server is further configured to determine the second service according to the characteristic information corresponding to the historical behavior information related to the first user in the second service and the characteristic information corresponding to the historical behavior information of one or more other users in the second service. A user group; and, sending identification information of the first user group to the first device.
一种可能的实现方式中,第二服务中与第一用户相关的历史行为信息对应的特征信息,包括:第二服务中与第一用户相关的历史行为信息对应的哈希值。其他一个或多个用户在第二服务中的历史行为信息对应的特征信息,包括:其他一个或多个用户在第二服务中的历史行为信息对应的哈希值。In a possible implementation manner, the characteristic information corresponding to the historical behavior information related to the first user in the second service includes: a hash value corresponding to the historical behavior information related to the first user in the second service. The feature information corresponding to the historical behavior information of the other one or more users in the second service includes: a hash value corresponding to the historical behavior information of the other one or more users in the second service.
可选地,第二服务中与第一用户相关的历史行为信息对应的哈希值是采用第一哈希算法对第一编码结果进行哈希计算得到的,第一编码结果是采用第一编码方式对第二服务中与第一用户相关的历史行为信息进行编码处理得到的。其他一个或多个用户在第二服务中的历史行为信息对应的哈希值是采用第一哈希算法对第二编码结果进行 哈希计算得到的,第二编码结果是采用第一编码方式对其他一个或多个用户在第二服务中的历史行为信息进行编码处理得到的。Optionally, the hash value corresponding to the historical behavior information related to the first user in the second service is obtained by hashing the first encoding result using the first hash algorithm, and the first encoding result is obtained by using the first encoding The method is obtained by encoding the historical behavior information related to the first user in the second service. The hash value corresponding to the historical behavior information of one or more users in the second service is obtained by hashing the second encoding result using the first hash algorithm, and the second encoding result is obtained by using the first encoding method to It is obtained by encoding the historical behavior information of one or more other users in the second service.
一种可能的实现方式中,第一设备具体用于,当检测到第一用户第一次使用第一服务时,向服务器发送第一用户的用户信息。In a possible implementation manner, the first device is specifically configured to, when detecting that the first user uses the first service for the first time, send the user information of the first user to the server.
类似地,推荐系统可以实现前述实施例中所述的推荐方法的全部步骤对应的功能,在此不再一一赘述。Similarly, the recommendation system can implement the functions corresponding to all the steps of the recommendation method described in the foregoing embodiments, which will not be repeated here.
本申请实施例还提供一种推荐装置,该装置可以应用于电子设备(如第一设备),以使电子设备实现如前述实施例所述的推荐方法中第一设备执行的步骤。该装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与前述实施例所述的推荐方法中第一设备执行的步骤相对应的模块或单元。例如,图7为本申请实施例提供的推荐装置的结构示意图。如图7所示,该装置可以包括:发送单元701、接收单元702等。An embodiment of the present application also provides a recommendation apparatus, which can be applied to an electronic device (such as a first device), so that the electronic device implements the steps performed by the first device in the recommendation method described in the foregoing embodiments. The functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules or units corresponding to the steps performed by the first device in the recommended method described in the foregoing embodiments. For example, FIG. 7 is a schematic structural diagram of a recommendation device provided in an embodiment of the present application. As shown in FIG. 7, the apparatus may include: a sending unit 701, a receiving unit 702, and the like.
发送单元701可以用于向服务器发送第一用户的用户信息;接收单元702可以用于接收来自服务器的推荐信息;推荐信息是与第一用户群组中的用户使用第一服务相关的信息;第一用户的用户信息与第一用户群组相关;第一用户群组是根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在所述第二服务中的历史行为信息对应的特征信息相匹配所确定的。The sending unit 701 may be used to send user information of the first user to the server; the receiving unit 702 may be used to receive recommendation information from the server; the recommendation information is information related to the use of the first service by users in the first user group; the second The user information of a user is related to the first user group; the first user group is based on the feature information corresponding to the historical behavior information related to the first user in the second service, and other one or more users in the second service The feature information corresponding to the historical behavior information in the service is determined by matching.
一种可能的实现方式中,第一设备包括第一服务和第二服务;发送单元701,还用于向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。In a possible implementation manner, the first device includes a first service and a second service; the sending unit 701 is further configured to send feature information corresponding to historical behavior information related to the first user in the second service to the server.
另一种可能的实现方式中,第一设备包括第一服务,第二设备包括第二服务。In another possible implementation manner, the first device includes the first service, and the second device includes the second service.
一种可能的实现方式中,发送单元701,具体用于通过第三设备向服务器发送第一用户的用户信息。接收单元702,具体用于通过第三设备接收来自服务器的推荐信息。In a possible implementation manner, the sending unit 701 is specifically configured to send the user information of the first user to the server through the third device. The receiving unit 702 is specifically configured to receive recommendation information from the server through the third device.
可选地,发送单元701,具体用于通过第三设备向服务器发送第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the sending unit 701 is specifically configured to send the feature information corresponding to the historical behavior information related to the first user in the second service to the server through the third device.
可选地,接收单元702,还用于接收来自服务器发送的第一用户群组的标识信息;第一用户群组是服务器根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息所确定的。Optionally, the receiving unit 702 is also configured to receive the identification information of the first user group sent from the server; the first user group is the characteristic information corresponding to the historical behavior information related to the first user in the second service by the server , and other feature information corresponding to the historical behavior information of one or more users in the second service.
一种可能的实现方式中,发送单元701,具体用于当检测到第一用户第一次使用第一服务时,向服务器发送第一用户的用户信息。In a possible implementation manner, the sending unit 701 is specifically configured to send the user information of the first user to the server when it is detected that the first user uses the first service for the first time.
类似地,该装置可以实现如前述实施例所述的推荐方法中第一设备执行的全部步骤对应的功能,在此不再一一赘述。Similarly, the apparatus can implement the functions corresponding to all the steps performed by the first device in the recommendation method described in the foregoing embodiments, which will not be repeated here.
本申请实施例还提供一种推荐装置,该装置可以应用于电子设备(如服务器),以使电子设备实现如前述实施例所述的推荐方法中服务器执行的步骤。该装置的功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与前述实施例所述的推荐方法中服务器执行的步骤相对应的模块或单元。例如,图8为本申请实施例提供的推荐装置的另一结构示意图。如图8所示,该装置可以包括:接收单元801、发送单元802。An embodiment of the present application also provides a recommendation apparatus, which can be applied to an electronic device (such as a server), so that the electronic device implements the steps performed by the server in the recommendation method described in the foregoing embodiments. The functions of the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules or units corresponding to the steps executed by the server in the recommended method described in the foregoing embodiments. For example, FIG. 8 is another schematic structural diagram of a recommendation device provided in an embodiment of the present application. As shown in FIG. 8 , the apparatus may include: a receiving unit 801 and a sending unit 802 .
接收单元801可以用于接收来自第一设备发送的第一用户的用户信息;发送单元 802可以用于向第一设备发送推荐信息。推荐信息是与第一用户群组中的用户使用第一服务相关的信息;第一用户的用户信息与第一用户群组相关;第一用户群组是根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息相匹配所确定的。The receiving unit 801 may be configured to receive user information of the first user sent from the first device; the sending unit 802 may be configured to send recommendation information to the first device. The recommended information is information related to the use of the first service by users in the first user group; the user information of the first user is related to the first user group; the first user group is based on the information related to the first user in the second service The characteristic information corresponding to the historical behavior information of the user and the characteristic information corresponding to the historical behavior information of the other one or more users in the second service are determined by matching.
一种可能的实现方式中,第一设备包括第一服务和第二服务;接收单元801,还用于接收来自第一设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。In a possible implementation manner, the first device includes the first service and the second service; the receiving unit 801 is further configured to receive the characteristic information corresponding to the historical behavior information related to the first user in the second service sent by the first device. information.
另一种可能的实现方式中,第一设备包括第一服务,第二设备包括第二服务;接收单元801,还用于接收来自第二设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。In another possible implementation manner, the first device includes the first service, and the second device includes the second service; the receiving unit 801 is further configured to receive the history related to the first user in the second service sent from the second device The characteristic information corresponding to the behavior information.
一种可能的实现方式中,接收单元801,具体用于通过第三设备接收来自第一设备发送的第一用户的用户信息。发送单元802,具体用于通过第三设备向第一设备发送推荐信息。In a possible implementation manner, the receiving unit 801 is specifically configured to receive, through the third device, the user information of the first user sent from the first device. The sending unit 802 is specifically configured to send recommendation information to the first device through the third device.
可选地,接收单元801,具体用于通过第三设备接收来自第一设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the receiving unit 801 is specifically configured to receive, through the third device, characteristic information corresponding to historical behavior information related to the first user in the second service sent by the first device.
可选地,接收单元801,具体用于通过第四设备接收来自第二设备发送的第二服务中与第一用户相关的历史行为信息对应的特征信息。Optionally, the receiving unit 801 is specifically configured to receive, through the fourth device, feature information corresponding to historical behavior information related to the first user in the second service sent by the second device.
可选地,请继续参考图8所示,该装置还可以包括:处理单元803。处理单元803可以用于根据第二服务中与第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在第二服务中的历史行为信息对应的特征信息,确定第一用户群组。发送单元802,还用于向第一设备发送第一用户群组的标识信息。Optionally, please continue to refer to FIG. 8 , the apparatus may further include: a processing unit 803 . The processing unit 803 may be configured to determine the first user according to the feature information corresponding to the historical behavior information related to the first user in the second service and the feature information corresponding to the historical behavior information of one or more other users in the second service. group. The sending unit 802 is further configured to send the identification information of the first user group to the first device.
类似地,该装置可以实现如前述实施例所述的推荐方法中服务器执行的全部步骤对应的功能,在此不再一一赘述。Similarly, the device can implement the functions corresponding to all the steps performed by the server in the recommendation method described in the foregoing embodiments, which will not be repeated here.
应理解以上装置中单元(或称为模块)的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。It should be understood that the division of units (or called modules) in the above device is only a division of logical functions, and may be fully or partially integrated into a physical entity or physically separated during actual implementation. And the units in the device can all be implemented in the form of software called by the processing element; they can also be implemented in the form of hardware; some units can also be implemented in the form of software called by the processing element, and some units can be implemented in the form of hardware.
例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以称为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。For example, each unit can be a separate processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Function. In addition, all or part of these units can be integrated together, or implemented independently. The processing element described here may also be referred to as a processor, and may be an integrated circuit with a signal processing capability. In the process of implementation, each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in the processor element or implemented in the form of software called by the processing element.
在一个例子中,以上装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个专用集成电路(application specific integrated circuit,ASIC),或,一个或多个数字信号处理器(digital signal process,DSP),或,一个或者多个现场可编辑逻辑门阵列(field programmable gate array,FPGA),或这些集成电路形式中至少两种的组合。In one example, the units in the above device may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or, one or more A digital signal processor (DSP), or, one or more field programmable gate arrays (FPGA), or a combination of at least two of these integrated circuit forms.
再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可 以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。For another example, when the units in the device can be implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call programs. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
在一种实现中,以上装置实现以上方法中各个对应步骤的单元可以通过处理元件调度程序的形式实现。例如,该装置可以包括处理元件和存储元件,处理元件调用存储元件存储的程序,以执行以上方法实施例所述的推荐方法中第一设备或服务器执行的步骤。存储元件可以为与处理元件处于同一芯片上的存储元件,即片内存储元件。In one implementation, the units of the above apparatus for implementing each corresponding step in the above method may be implemented in the form of a processing element scheduler. For example, the apparatus may include a processing element and a storage element, and the processing element invokes a program stored in the storage element to execute the steps performed by the first device or the server in the recommended method described in the above method embodiments. The storage element may be a storage element on the same chip as the processing element, that is, an on-chip storage element.
在另一种实现中,用于执行以上方法的程序可以在与处理元件处于不同芯片上的存储元件,即片外存储元件。此时,处理元件从片外存储元件调用或加载程序于片内存储元件上,以调用并执行以上方法实施例所述的推荐方法中第一设备或服务器执行的步骤。In another implementation, the program for executing the above method may be stored in a storage element on a different chip from the processing element, that is, an off-chip storage element. At this point, the processing element invokes or loads a program from the off-chip storage element on the on-chip storage element, so as to invoke and execute the steps performed by the first device or the server in the recommended method described in the above method embodiments.
本申请实施例还提供一种电子设备。该电子设备可以是上述第一设备或服务器。电子设备包括:处理器,用于存储处理器可执行指令的存储器;处理器被配置为执行所述指令时,使得电子设备实现如以上方法实施例所述的推荐方法中第一设备或服务器执行的步骤。该存储器可以位于该电子设备之内,也可以位于该电子设备之外。且该处理器包括一个或多个。The embodiment of the present application also provides an electronic device. The electronic device may be the above-mentioned first device or server. The electronic device includes: a processor, a memory for storing processor-executable instructions; when the processor is configured to execute the instructions, the electronic device implements the first device or the server in the recommended method described in the above method embodiments. A step of. The memory can be located inside the electronic device or outside the electronic device. And the processor includes one or more.
在又一种实现中,该电子设备实现以上方法中各个步骤的单元可以是被配置成一个或多个处理元件,这里的处理元件可以为集成电路,例如:一个或多个ASIC,或,一个或多个DSP,或,一个或者多个FPGA,或者这些类集成电路的组合。这些集成电路可以集成在一起,构成芯片。In yet another implementation, the unit of the electronic device that implements each step in the above method may be configured as one or more processing elements, where the processing elements may be integrated circuits, for example: one or more ASICs, or one Or multiple DSPs, or, one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits can be integrated together to form a chip.
例如,本申请实施例还提供一种芯片,该芯片可以应用于上述电子设备。芯片包括一个或多个接口电路和一个或多个处理器;接口电路和处理器通过线路互联;处理器通过接口电路从电子设备的存储器接收并执行计算机指令,以实现如以上方法实施例所述的推荐方法中第一设备或服务器执行的步骤。For example, an embodiment of the present application further provides a chip, and the chip can be applied to the above-mentioned electronic device. The chip includes one or more interface circuits and one or more processors; the interface circuits and processors are interconnected through lines; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuits, so as to realize the above-mentioned method embodiments. The steps performed by the first device or server in the recommended method.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,如:程序。该软件产品存储在一个程序产品,如计算机可读存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Based on such an understanding, the essence of the technical solutions of the embodiments of the present application or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of software products, such as programs. The software product is stored in a program product, such as a computer-readable storage medium, and includes several instructions to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all of the methods described in various embodiments of the present application. or partial steps. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
例如,本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序指令;当所述计算机程序指令被电子设备执行时,使得电子设备实现如以上方法实施例所述的推荐方法中第一设备或服务器执行的步骤。For example, an embodiment of the present application also provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by an electronic device, the electronic device implements the recommended method as described in the above method embodiments Steps performed by the first device or the server.
又例如,本申请实施例还提供一种计算机程序产品,包括:计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如以上方法实施例所述的推荐方法中第一设备或服务器执行的步骤。For another example, an embodiment of the present application further provides a computer program product, including: computer readable codes, or a non-volatile computer readable storage medium bearing computer readable codes, when the computer readable codes are stored in the electronic device When running in the electronic device, the processor in the electronic device implements the steps performed by the first device or the server in the recommended method described in the above method embodiments.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application should be covered within the protection scope of the application . Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (19)

  1. 一种推荐方法,其特征在于,所述方法包括:A recommended method, characterized in that the method comprises:
    第一设备向服务器发送第一用户的用户信息;The first device sends the user information of the first user to the server;
    所述服务器向所述第一设备发送推荐信息;所述推荐信息是与第一用户群组中的用户使用第一服务相关的信息;所述第一用户的用户信息与所述第一用户群组相关;所述第一用户群组是根据第二服务中与所述第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在所述第二服务中的历史行为信息对应的特征信息相匹配所确定的。The server sends recommendation information to the first device; the recommendation information is information related to users in the first user group using the first service; the user information of the first user is related to the first user group Group correlation: the first user group is based on the characteristic information corresponding to the historical behavior information related to the first user in the second service, and the historical behavior information of one or more other users in the second service The corresponding feature information matches that determined.
  2. 根据权利要求1所述的方法,其特征在于,所述第一设备包括所述第一服务和所述第二服务;所述方法还包括:The method according to claim 1, wherein the first device includes the first service and the second service; the method further comprises:
    所述第一设备向所述服务器发送所述第二服务中与所述第一用户相关的历史行为信息对应的特征信息。The first device sends feature information corresponding to historical behavior information related to the first user in the second service to the server.
  3. 根据权利要求1所述的方法,其特征在于,所述第一设备包括所述第一服务,第二设备包括所述第二服务;所述方法还包括:The method according to claim 1, wherein the first device includes the first service, and the second device includes the second service; the method further includes:
    所述第二设备向所述服务器发送所述第二服务中与所述第一用户相关的历史行为信息对应的特征信息。The second device sends feature information corresponding to historical behavior information related to the first user in the second service to the server.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一设备向服务器发送第一用户的用户信息,包括:The method according to any one of claims 1-3, wherein the first device sends the user information of the first user to the server, including:
    所述第一设备通过第三设备向服务器发送第一用户的用户信息;The first device sends the user information of the first user to the server through the third device;
    所述服务器向所述第一设备发送推荐信息,包括:The server sends recommendation information to the first device, including:
    所述服务器通过所述第三设备向所述第一设备发送推荐信息。The server sends recommendation information to the first device through the third device.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述第一用户的用户信息,包括:所述第一用户的标识信息,和/或,所述第一用户群组的标识信息。The method according to any one of claims 1-4, wherein the user information of the first user includes: identification information of the first user, and/or, information of the first user group Identification information.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, wherein the method further comprises:
    所述服务器根据所述第二服务中与所述第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在所述第二服务中的历史行为信息对应的特征信息,确定所述第一用户群组;The server determines according to the feature information corresponding to the historical behavior information related to the first user in the second service and the feature information corresponding to the historical behavior information of one or more other users in the second service. the first user group;
    所述服务器向所述第一设备发送所述第一用户群组的标识信息。The server sends the identification information of the first user group to the first device.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述第二服务中与所述第一用户相关的历史行为信息对应的特征信息,包括:所述第二服务中与所述第一用户相关的历史行为信息对应的哈希值;The method according to any one of claims 1-6, wherein the feature information corresponding to the historical behavior information related to the first user in the second service includes: The hash value corresponding to the historical behavior information related to the first user;
    所述其他一个或多个用户在所述第二服务中的历史行为信息对应的特征信息,包括:所述其他一个或多个用户在所述第二服务中的历史行为信息对应的哈希值。The characteristic information corresponding to the historical behavior information of the other one or more users in the second service includes: the hash value corresponding to the historical behavior information of the other one or more users in the second service .
  8. 根据权利要求7所述的方法,其特征在于,所述第二服务中与所述第一用户相关的历史行为信息对应的哈希值是采用第一哈希算法对第一编码结果进行哈希计算得到的,所述第一编码结果是采用第一编码方式对所述第二服务中与所述第一用户相关的历史行为信息进行编码处理得到的;The method according to claim 7, characterized in that, the hash value corresponding to the historical behavior information related to the first user in the second service is a first hash algorithm to hash the first encoding result Calculated, the first encoding result is obtained by encoding historical behavior information related to the first user in the second service in a first encoding manner;
    所述其他一个或多个用户在所述第二服务中的历史行为信息对应的哈希值是采用第一哈希算法对第二编码结果进行哈希计算得到的,所述第二编码结果是采用第一编 码方式对所述其他一个或多个用户在所述第二服务中的历史行为信息进行编码处理得到的。The hash value corresponding to the historical behavior information of the other one or more users in the second service is obtained by using the first hash algorithm to hash the second encoding result, and the second encoding result is It is obtained by encoding the historical behavior information of the other one or more users in the second service by using the first encoding method.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述第一设备向服务器发送第一用户的用户信息,包括:The method according to any one of claims 1-8, wherein the first device sends the user information of the first user to the server, comprising:
    当检测到所述第一用户第一次使用所述第一服务时,所述第一设备向所述服务器发送所述第一用户的用户信息。When detecting that the first user uses the first service for the first time, the first device sends user information of the first user to the server.
  10. 一种推荐方法,其特征在于,所述方法应用于第一设备,所述方法包括:A recommendation method, wherein the method is applied to a first device, and the method includes:
    向服务器发送第一用户的用户信息;Send the user information of the first user to the server;
    接收来自所述服务器的推荐信息;所述推荐信息是与第一用户群组中的用户使用第一服务相关的信息;所述第一用户的用户信息与所述第一用户群组相关;所述第一用户群组是根据第二服务中与所述第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在所述第二服务中的历史行为信息对应的特征信息相匹配所确定的。receiving recommendation information from the server; the recommendation information is information related to users in the first user group using the first service; the user information of the first user is related to the first user group; The first user group is based on the characteristic information corresponding to the historical behavior information related to the first user in the second service and the characteristic information corresponding to the historical behavior information of one or more other users in the second service matches as determined.
  11. 根据权利要求10所述的方法,其特征在于,所述第一设备包括所述第一服务和所述第二服务;所述方法还包括:The method according to claim 10, wherein the first device includes the first service and the second service; the method further comprises:
    向所述服务器发送所述第二服务中与所述第一用户相关的历史行为信息对应的特征信息。Sending feature information corresponding to historical behavior information related to the first user in the second service to the server.
  12. 根据权利要求10所述的方法,其特征在于,所述第一设备包括所述第一服务,第二设备包括所述第二服务。The method of claim 10, wherein the first device includes the first service and the second device includes the second service.
  13. 根据权利要求10-12任一项所述的方法,其特征在于,所述向服务器发送第一用户的用户信息,包括:The method according to any one of claims 10-12, wherein the sending the user information of the first user to the server includes:
    通过第三设备向服务器发送第一用户的用户信息;sending the user information of the first user to the server through the third device;
    所述接收来自所述服务器的推荐信息,包括:The receiving recommendation information from the server includes:
    通过所述第三设备接收来自所述服务器的推荐信息。The recommendation information from the server is received by the third device.
  14. 一种推荐方法,其特征在于,所述方法应用于服务器,所述方法包括:A recommendation method, characterized in that the method is applied to a server, and the method includes:
    接收来自第一设备发送的第一用户的用户信息;receiving user information of the first user sent by the first device;
    向所述第一设备发送推荐信息;所述推荐信息是与第一用户群组中的用户使用第一服务相关的信息;所述第一用户的用户信息与所述第一用户群组相关;所述第一用户群组是根据第二服务中与所述第一用户相关的历史行为信息对应的特征信息、以及其他一个或多个用户在所述第二服务中的历史行为信息对应的特征信息相匹配所确定的。sending recommendation information to the first device; the recommendation information is information related to users in the first user group using the first service; the user information of the first user is related to the first user group; The first user group is based on the feature information corresponding to the historical behavior information related to the first user in the second service and the feature information corresponding to the historical behavior information of one or more other users in the second service The information matches what was determined.
  15. 根据权利要求14所述的方法,其特征在于,所述第一设备包括所述第一服务和所述第二服务;所述方法还包括:The method according to claim 14, wherein the first device includes the first service and the second service; the method further comprises:
    接收来自所述第一设备发送的所述第二服务中与所述第一用户相关的历史行为信息对应的特征信息。The characteristic information corresponding to the historical behavior information related to the first user in the second service sent from the first device is received.
  16. 根据权利要求14所述的方法,其特征在于,所述第一设备包括所述第一服务,第二设备包括所述第二服务;所述方法还包括:The method according to claim 14, wherein the first device includes the first service, and the second device includes the second service; the method further includes:
    接收来自所述第二设备发送的所述第二服务中与所述第一用户相关的历史行为信息对应的特征信息。The characteristic information corresponding to the historical behavior information related to the first user in the second service sent from the second device is received.
  17. 一种电子设备,其特征在于,包括:处理器,用于存储所述处理器可执行指令的存储器;An electronic device, characterized by comprising: a processor, a memory configured to store instructions executable by the processor;
    所述处理器被配置为执行所述指令时,使得所述电子设备实现如权利要求10-13任一项所述的方法,或者,如权利要求14-16任一项所述的方法。When the processor is configured to execute the instructions, the electronic device implements the method according to any one of claims 10-13, or, the method according to any one of claims 14-16.
  18. 一种计算机可读存储介质,其上存储有计算机程序指令;其特征在于,当所述计算机程序指令被电子设备执行时,使得电子设备实现如权利要求10-13任一项所述的方法,或者,如权利要求14-16任一项所述的方法。A computer-readable storage medium, on which computer program instructions are stored; it is characterized in that, when the computer program instructions are executed by an electronic device, the electronic device implements the method according to any one of claims 10-13, Or, the method according to any one of claims 14-16.
  19. 一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,其特征在于,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器实现如权利要求10-13任一项所述的方法,或者,如权利要求14-16任一项所述的方法。A computer program product, comprising computer-readable codes, or a non-volatile computer-readable storage medium bearing computer-readable codes, characterized in that, when the computer-readable codes are run in an electronic device, the The processor in the electronic device implements the method according to any one of claims 10-13, or, the method according to any one of claims 14-16.
PCT/CN2022/112106 2021-10-29 2022-08-12 Recommendation method, electronic device, and storage medium WO2023071404A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111276088.6A CN116070007A (en) 2021-10-29 2021-10-29 Recommendation method, electronic device and storage medium
CN202111276088.6 2021-10-29

Publications (1)

Publication Number Publication Date
WO2023071404A1 true WO2023071404A1 (en) 2023-05-04

Family

ID=86159036

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112106 WO2023071404A1 (en) 2021-10-29 2022-08-12 Recommendation method, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN116070007A (en)
WO (1) WO2023071404A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116894692A (en) * 2023-09-11 2023-10-17 北京亿家老小科技有限公司 Method and system for analyzing and monitoring potential demands of online network sales users
CN117235321A (en) * 2023-09-04 2023-12-15 之江实验室 Exhibition point position recommendation method and device, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102044009A (en) * 2009-10-23 2011-05-04 华为技术有限公司 Group recommending method and system
US20160321735A1 (en) * 2013-10-28 2016-11-03 Telefonaktiebolaget L M Ericsson (Publ) Group recommendation for selection of service items
CN107360246A (en) * 2017-07-28 2017-11-17 广州优视网络科技有限公司 A kind of information push method and device, a kind of terminal and storage medium
WO2018043860A1 (en) * 2016-09-02 2018-03-08 에스케이플래닛 주식회사 Device for recommending rental item by means of similar-propensity group and method using same
CN109033443A (en) * 2018-08-17 2018-12-18 腾讯科技(深圳)有限公司 Recommended determines method, apparatus, storage medium and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102044009A (en) * 2009-10-23 2011-05-04 华为技术有限公司 Group recommending method and system
US20160321735A1 (en) * 2013-10-28 2016-11-03 Telefonaktiebolaget L M Ericsson (Publ) Group recommendation for selection of service items
WO2018043860A1 (en) * 2016-09-02 2018-03-08 에스케이플래닛 주식회사 Device for recommending rental item by means of similar-propensity group and method using same
CN107360246A (en) * 2017-07-28 2017-11-17 广州优视网络科技有限公司 A kind of information push method and device, a kind of terminal and storage medium
CN109033443A (en) * 2018-08-17 2018-12-18 腾讯科技(深圳)有限公司 Recommended determines method, apparatus, storage medium and computer equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117235321A (en) * 2023-09-04 2023-12-15 之江实验室 Exhibition point position recommendation method and device, electronic device and storage medium
CN117235321B (en) * 2023-09-04 2024-04-16 之江实验室 Exhibition point position recommendation method and device, electronic device and storage medium
CN116894692A (en) * 2023-09-11 2023-10-17 北京亿家老小科技有限公司 Method and system for analyzing and monitoring potential demands of online network sales users
CN116894692B (en) * 2023-09-11 2023-11-24 北京亿家老小科技有限公司 Method and system for analyzing and monitoring potential demands of online network sales users

Also Published As

Publication number Publication date
CN116070007A (en) 2023-05-05

Similar Documents

Publication Publication Date Title
WO2023071404A1 (en) Recommendation method, electronic device, and storage medium
US20100299338A1 (en) Method and apparatus for providing device compatibility service
US10346737B1 (en) Distributed multisensor system to record spatially diverse events
WO2022100221A1 (en) Retrieval processing method and apparatus, and storage medium
WO2022160993A1 (en) Method and device for multimedia data sharing
US11871478B2 (en) Bluetooth low energy-based communication method and related apparatus
WO2020062014A1 (en) Method for inputting information into input box and electronic device
WO2016173404A1 (en) User matching method and device
WO2023010705A1 (en) Data processing method, mobile terminal, and storage medium
CN112148962B (en) Method and device for pushing information
US20220311700A1 (en) Method for multiplexing http channels and terminal
CN110781066A (en) User behavior analysis method, device, equipment and storage medium
WO2020107168A1 (en) Video decoding method and device, electronic apparatus, and computer-readable storage medium
US20230385345A1 (en) Content recommendation method, electronic device, and server
WO2019127652A1 (en) Method for identifying harmful video on basis of user id and credits content and system therefor
WO2012171195A1 (en) Method and apparatus for searching for content within a channel based on contextual characteristics
JP2014501952A (en) Method and apparatus for influencing programming of content for transmission across a multicast network
CN106034065A (en) Information display method and device
WO2019096207A1 (en) Image processing method and computer device, and computer readable storage medium
WO2019127659A1 (en) Method and system for identifying harmful video based on user id
WO2019127656A1 (en) User ip and video copy-based harmful video identification method and system
WO2023001084A1 (en) Image display method and apparatus, image processing method and apparatus, and device
WO2019127651A1 (en) Method and system thereof for identifying malicious video
WO2022188713A1 (en) Page feature storage method, page jump method, and apparatuses
CN114666441B (en) Method for calling capabilities of other devices, electronic device, system and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22885304

Country of ref document: EP

Kind code of ref document: A1