CN114707075A - A cold start recommended method and device - Google Patents
A cold start recommended method and device Download PDFInfo
- Publication number
- CN114707075A CN114707075A CN202210631258.6A CN202210631258A CN114707075A CN 114707075 A CN114707075 A CN 114707075A CN 202210631258 A CN202210631258 A CN 202210631258A CN 114707075 A CN114707075 A CN 114707075A
- Authority
- CN
- China
- Prior art keywords
- recommendation list
- commodity
- user
- access record
- model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 118
- 230000006399 behavior Effects 0.000 claims description 139
- 230000003993 interaction Effects 0.000 claims description 80
- 230000006870 function Effects 0.000 claims description 52
- 238000004891 communication Methods 0.000 claims description 38
- 238000004590 computer program Methods 0.000 claims description 11
- 230000002452 interceptive effect Effects 0.000 claims description 11
- 238000013507 mapping Methods 0.000 claims description 11
- 238000004422 calculation algorithm Methods 0.000 claims description 7
- 238000012216 screening Methods 0.000 claims description 3
- 238000001514 detection method Methods 0.000 claims description 2
- 238000009933 burial Methods 0.000 claims 6
- 238000012163 sequencing technique Methods 0.000 claims 3
- 239000000047 product Substances 0.000 description 291
- 239000010410 layer Substances 0.000 description 26
- 238000007726 management method Methods 0.000 description 20
- 238000012545 processing Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 15
- 230000000694 effects Effects 0.000 description 13
- 238000005516 engineering process Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000004044 response Effects 0.000 description 9
- 238000013461 design Methods 0.000 description 8
- 238000010295 mobile communication Methods 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 7
- 230000005236 sound signal Effects 0.000 description 7
- 238000009434 installation Methods 0.000 description 5
- 238000007499 fusion processing Methods 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 241000207875 Antirrhinum Species 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 238000001816 cooling Methods 0.000 description 1
- 239000012792 core layer Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000012467 final product Substances 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000005065 mining Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 210000001747 pupil Anatomy 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9536—Search customisation based on social or collaborative filtering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0631—Item recommendations
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Economics (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Development Economics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请实施例提供一种冷启动推荐方法和设备,涉及终端技术领域,能够解决推荐系统的冷启动问题。该方法应用于服务器,具体包括:接收来自终端设备的获取推荐列表请求,获取推荐列表请求包括新用户所使用的终端设备的型号;确定第一型号对应的第一商品访问记录和第一版块访问记录,第一应用为购物类应用,第二应用为社区类应用;根据第一商品访问记录得出第一推荐列表;根据第一版块访问记录得出第二推荐列表;确定第一型号的相似型号和相似型号对应的第二商品访问记录,并根据第二商品访问记录,得出第三推荐列表,对第一推荐列表、第二推荐列表和第三推荐列表中的商品信息进行去重、排序,得到最终推荐列表;向终端设备发送最终推荐列表。
Embodiments of the present application provide a cold start recommendation method and device, which relate to the technical field of terminals and can solve the cold start problem of a recommendation system. The method is applied to a server, and specifically includes: receiving a request for obtaining a recommendation list from a terminal device, where the request for obtaining a recommendation list includes the model of the terminal device used by the new user; determining the access record of the first product and the access to the first section corresponding to the first model record, the first application is a shopping application, and the second application is a community application; the first recommendation list is obtained according to the first product access record; the second recommendation list is obtained according to the first section access record; the similarity of the first model is determined The second product access record corresponding to the model and the similar model, and according to the second product access record, a third recommendation list is obtained, and the product information in the first recommendation list, the second recommendation list and the third recommendation list are deduplicated, Sort to get the final recommendation list; send the final recommendation list to the terminal device.
Description
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种冷启动推荐方法和设备。The present application relates to the field of terminal technologies, and in particular, to a cold start recommendation method and device.
背景技术Background technique
推荐技术在如今的互联网产品中被广泛应用,例如,浏览器网站的搜索结果推荐、社区网站的话题推荐、购物网站的商品推荐、社交网站的交友推荐等。但是,现有的推荐大多为推荐系统基于大量的用户数据得出的,当新用户首次使用互联网产品时,由于没有新用户的用户数据,因而推荐系统也无法为新用户精准推荐。Recommendation technology is widely used in today's Internet products, such as search result recommendation on browser websites, topic recommendation on community websites, product recommendation on shopping websites, and friend recommendation on social networking websites. However, most of the existing recommendations are made by the recommendation system based on a large amount of user data. When a new user uses an Internet product for the first time, since there is no user data of the new user, the recommendation system cannot accurately recommend the new user.
上述无法为新用户精准推荐即为推荐系统的冷启动问题。对此,大多互联网产品会设计相关的引导界面引导新用户使用社交网络账号登录,以便根据用户的社交网络账号获取用户数据,从而为用户进行个性化推荐。但是,为了保护隐私,新用户可能会避免使用社交网络账号登录,这样互联网产品将不能获取用户数据,推荐系统也无法为新用户做精准推荐。The above-mentioned inability to accurately recommend new users is the cold start problem of the recommendation system. In this regard, most Internet products will design relevant guidance interfaces to guide new users to log in using social network accounts, so as to obtain user data according to the user's social network account, so as to make personalized recommendations for users. However, in order to protect privacy, new users may avoid using social network accounts to log in, so that Internet products will not be able to obtain user data, and the recommendation system will not be able to make accurate recommendations for new users.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供了一种冷启动推荐方法和设备,能够解决推荐系统的冷启动问题。In view of this, the present application provides a cold-start recommendation method and device, which can solve the cold-start problem of the recommendation system.
第一方面,本申请提供一种冷启动推荐方法,应用于服务器,方法包括:服务器接收来自终端设备的获取推荐列表请求,获取推荐列表请求包括新用户所使用的终端设备的型号,终端设备的型号为第一型号;确定第一型号对应的第一商品访问记录和第一版块访问记录,第一商品访问记录为从第一应用的商品访问记录中筛选得到的,第一版块访问记录为从第二应用的版块访问记录中筛选得到的,第一应用为购物类应用,第二应用为社区类应用;根据第一商品访问记录得出第一推荐列表;根据第一版块访问记录得出第二推荐列表;确定第一型号的相似型号和相似型号对应的第二商品访问记录,并根据第二商品访问记录,得出第三推荐列表,其中,第一推荐列表、第二推荐列表和第三推荐列表均包括商品信息和商品对应的打分结果;对第一推荐列表、第二推荐列表和第三推荐列表中的商品信息进行去重、排序,得到最终推荐列表,最终推荐列表用于为新用户推荐商品;服务器向终端设备发送最终推荐列表。In a first aspect, the present application provides a cold-start recommendation method, which is applied to a server. The method includes: the server receives a request for obtaining a recommendation list from a terminal device, and the request for obtaining a recommendation list includes the model of the terminal device used by the new user, and the The model is the first model; the first product access record and the first section access record corresponding to the first model are determined, the first product access record is filtered from the product access records of the first application, and the first section access record is obtained from Filtered from the section access records of the second application, the first application is a shopping application, and the second application is a community application; the first recommendation list is obtained according to the first product access record; the first recommendation list is obtained according to the first section access record. Second recommendation list; determine the similar model of the first model and the second product access record corresponding to the similar model, and obtain a third recommendation list according to the second product access record, wherein the first recommendation list, the second recommendation list and the third recommendation list are The three recommendation lists all include product information and the corresponding scoring results of the products; the product information in the first recommendation list, the second recommendation list and the third recommendation list are deduplicated and sorted to obtain the final recommendation list, which is used for New users recommend products; the server sends the final recommendation list to the terminal device.
通常,若用户想要购买商品时,用户可以选择先通过社区类应用查询商品的功能介绍,然后根据商品的功能介绍,确定是否购买该商品,或者选择与该商品具有同等功能的其它商品。在确定出想要购买的商品后,接着打开购物类应用完成商品购买。Usually, when a user wants to buy a product, the user can choose to first query the function introduction of the product through a community application, and then determine whether to buy the product according to the function introduction of the product, or select another product with the same function as the product. After determining the product you want to buy, then open the shopping application to complete the product purchase.
基于上述用户购买习惯,本申请利用购物类应用的商品访问记录和社区类应用的版块访问记录来解决推荐系统的冷启动问题。由于购物类应用的商品访问记录和社区类应用的版块访问记录数量较大,服务器在没有新用户的其它有效数据的情况下,按照新用户所使用的终端设备的型号,对商品访问记录和版块访问记录作初步筛选,得到第一商品访问记录和第一版块访问记录。然后对第一商品访问记录和第一版块访问记录分别进行分析,得到第一推荐列表和第二推荐列表。Based on the above-mentioned purchasing habits of users, the present application uses the commodity access records of shopping applications and the section access records of community applications to solve the cold start problem of the recommendation system. Due to the large number of commodity access records of shopping applications and section access records of community applications, the server, in the absence of other valid data of the new user, according to the model of the terminal device used by the new user, records the commodity access records and sections. The access records are preliminarily screened, and the access records of the first product and the access records of the first section are obtained. Then, the access records of the first product and the access records of the first section are analyzed respectively to obtain the first recommendation list and the second recommendation list.
由于第一推荐列表是根据第一商品访问记录得到的,所以第一推荐列表是从历史购物方面,来确定用户的商品偏好。由于第二推荐列表是根据第一版块访问记录得到的,所以第二推荐列表是从社区版块方面,来确定用户的商品偏好。同时,本申请还根据第一型号的相似型号,确定第三推荐列表。由于相似型号的用户受众与第一型号的用户受众具有重叠的部分,所以利用相似型号,得出的第三推荐列表也可以表达用户偏好。Since the first recommendation list is obtained according to the access record of the first product, the first recommendation list is to determine the user's product preference from the aspect of historical shopping. Since the second recommendation list is obtained according to the access records of the first section, the second recommendation list is based on the community section to determine the user's product preference. At the same time, the present application also determines a third recommendation list based on similar models of the first model. Since the user audience of the similar model and the user audience of the first model have overlapping parts, the third recommendation list derived by using the similar model can also express user preference.
最后将第一推荐列表、第二推荐列表以及第三推荐列表进行处理,得出最终的推荐列表,可以认为最终推荐列表是通过多方面,如历史购物方面、社区版块方面和相似型号方面判断得到的,更符合新用户的偏好。这样,不仅解决了冷启动问题,由于推荐的商品更符合新用户的偏好,还能进一步增加用户粘性,提高用户满意度。Finally, the first recommendation list, the second recommendation list and the third recommendation list are processed to obtain the final recommendation list. It can be considered that the final recommendation list is obtained through various aspects, such as historical shopping, community sections and similar models. , more in line with the preferences of new users. In this way, not only the cold start problem is solved, but because the recommended products are more in line with the preferences of new users, it can further increase user stickiness and improve user satisfaction.
在一种可能的实现方式中,得出第三推荐列表之后,方法还包括:基于第一版块访问记录中每条版块访问记录涉及的帖子,确定每条版块访问记录涉及的帖子对应的第一类型词,为帖子和第一类型词创建映射关系,第一类型词为帖子中与产品名称相关的词;基于第一版块访问记录,确定用户偏好的帖子;根据映射关系,确定用户偏好的帖子对应的第一类型词;利用模糊匹配算法,确定第一类型词对应的商品信息,并根据第一类型词对应的商品信息,生成第四推荐列表;对第一推荐列表、第二推荐列表和第三推荐列表中的商品信息进行去重、排序,得到最终推荐列表,包括:对第一推荐列表、第二推荐列表、第三推荐列表和第四推荐列表中的商品信息进行去重、排序,得到最终推荐列表。In a possible implementation manner, after the third recommendation list is obtained, the method further includes: based on the posts involved in each section access record in the first section access record, determining the first section corresponding to the post involved in each section access record. Type word, create a mapping relationship between the post and the first type word, the first type word is the word related to the product name in the post; based on the access record of the first section, determine the user's preferred post; according to the mapping relationship, determine the user's preferred post Corresponding first type words; use fuzzy matching algorithm to determine the commodity information corresponding to the first type words, and generate a fourth recommendation list according to the commodity information corresponding to the first type words; Deduplicate and sort the commodity information in the third recommendation list to obtain the final recommendation list, including: deduplicating and sorting commodity information in the first recommendation list, the second recommendation list, the third recommendation list and the fourth recommendation list , to get the final recommendation list.
本申请方案中,对第一版块访问记录中的帖子进行打分,确定出用户偏好的帖子。然后基于帖子与帖子中与产品名称相关的词(第一类型词)的映射关系,得出用户偏好的帖子对应的第一类型词。用户偏好的帖子可以确定出用户的关注点,然后对用户的关注点做进一步处理,即确定用户偏好的帖子对应的第一类型词,从而得到用户关注的与产品名称相关的词。由于与产品名称相关的词不能直接对应到产品上,因此还需利用模糊匹配算法,将与产品名称相关的词和产品进行匹配,匹配后得到第四推荐列表。本申请通过帖子来确定出用户的偏好,相当于从用户关注点出发,得到更贴合用户需求的第四推荐列表。最后将第一推荐列表、第二推荐列表、第三推荐列表和第四推荐列表进行处理,得出最终的推荐列表。所以最终的推荐列表中的商品更符合用户偏好,准确率更高。In this application scheme, the posts in the access records of the first section are scored to determine the posts that the user prefers. Then, based on the mapping relationship between posts and words related to product names (first type words) in the posts, the first type words corresponding to the posts preferred by the user are obtained. The user's preferred post can determine the user's focus, and then further process the user's focus, that is, determine the first type of words corresponding to the user's preferred post, so as to obtain the words related to the product name that the user focuses on. Since words related to product names cannot directly correspond to products, a fuzzy matching algorithm is also needed to match words related to product names to products, and a fourth recommendation list is obtained after matching. In this application, the user's preference is determined through posts, which is equivalent to starting from the user's focus to obtain a fourth recommendation list that is more suitable for the user's needs. Finally, the first recommendation list, the second recommendation list, the third recommendation list and the fourth recommendation list are processed to obtain a final recommendation list. Therefore, the products in the final recommendation list are more in line with user preferences and have a higher accuracy rate.
在一种可能的实现方式中,得出第三推荐列表之后,方法还包括:基于第一版块访问记录中每条版块访问记录涉及的帖子,确定每条版块访问记录涉及的帖子对应的第二类型词,第二类型词为帖子中与产品特性相关的词;按照所有的第二类型词出现的频次进行排序,生成第一排序结果;基于第一排序结果中的第二类型词关联商品卖点,以生成第五推荐列表,第五推荐列表中包括商品卖点对应的商品信息;对第一推荐列表、第二推荐列表和第三推荐列表中的商品信息进行去重、排序,得到最终推荐列表,包括:对第一推荐列表、第二推荐列表、第三推荐列表和第五推荐列表中的商品信息进行去重、排序,得到最终推荐列表。或者,对第一推荐列表、第二推荐列表、第三推荐列表、第四推荐列表和第五推荐列表中的商品信息进行去重、排序,得到最终推荐列表。In a possible implementation manner, after the third recommendation list is obtained, the method further includes: based on the posts involved in each section access record in the first section access record, determining the second corresponding to the post involved in each section access record. Type word, the second type word is the word related to the product characteristics in the post; sort according to the frequency of occurrence of all the second type words, and generate the first sorting result; based on the second type word in the first sorting result, the product selling point is associated , to generate a fifth recommendation list, which includes the commodity information corresponding to the selling points of the commodities; deduplicate and sort the commodity information in the first recommendation list, the second recommendation list and the third recommendation list to obtain the final recommendation list , including: deduplicating and sorting the commodity information in the first recommendation list, the second recommendation list, the third recommendation list and the fifth recommendation list to obtain the final recommendation list. Alternatively, the product information in the first recommendation list, the second recommendation list, the third recommendation list, the fourth recommendation list, and the fifth recommendation list is deduplicated and sorted to obtain a final recommendation list.
本申请方案中,从每条版块访问记录中确定出与产品特性相关的词(第二类型词),然后对第二类型词进行排序,得到第一排序结果。第一排序结果可以表明用户关注的产品特性,然后根据用户关注的产品特征关联商品卖点,相当于根据用户关注的产品特征关联商品,最后根据关联到的商品得到第五推荐列表。即本申请根据用户访问的版块访问记录来确定出用户关注的产品特性,进而得到用户关注的商品。由于确定出的商品是根据用户版块访问记录得到的,版块访问记录即为用户意图的真实表达,所以得出的第五推荐列表中的商品更符合用户需求。最后将第一推荐列表、第二推荐列表、第三推荐列表、第四推荐列表和第五推荐列表进行排列组合,排列组合后进行去重、排序得出最终的推荐列表。所以最终的推荐列表中的商品也更符合用户的真实意图。In the solution of the present application, words related to product characteristics (words of the second type) are determined from each block access record, and then the words of the second type are sorted to obtain the first sorting result. The first sorting result can indicate the product features that the user is concerned about, and then associate the selling points of the products according to the product features that the user cares about, which is equivalent to associating the products according to the product features that the user cares about, and finally obtain the fifth recommendation list according to the associated products. That is, the present application determines the features of the products that the user pays attention to according to the section access records accessed by the user, and then obtains the products that the user pays attention to. Since the determined commodities are obtained according to the user's section access records, which are the true expressions of the user's intentions, the derived commodities in the fifth recommended list are more in line with the user's needs. Finally, the first recommendation list, the second recommendation list, the third recommendation list, the fourth recommendation list, and the fifth recommendation list are arranged and combined, and after the arrangement and combination, deduplication and sorting are performed to obtain the final recommendation list. Therefore, the products in the final recommendation list are also more in line with the real intention of the user.
在一种可能的实现方式中,根据第一商品访问记录,得出第一推荐列表,包括:对第一商品访问记录中的每条商品访问记录涉及的商品进行打分,得到每条商品访问记录涉及的商品的打分结果;对同一商品的打分结果进行累加,得到所有商品的打分结果;按照所有商品的打分结果,从高到低进行排序,得到第一推荐列表。In a possible implementation manner, obtaining the first recommendation list according to the first product access record includes: scoring the products involved in each product access record in the first product access record, and obtaining each product access record The scoring results of the products involved; the scoring results of the same product are accumulated to obtain the scoring results of all the products; according to the scoring results of all the products, sort from high to low to obtain the first recommendation list.
本申请方案中,第一推荐列表是对第一商品访问记录中涉及到的商品进行打分得到的。这样,得到的第一推荐列表中的商品更加客观,也更加准确。In the solution of the present application, the first recommendation list is obtained by scoring the commodities involved in the first commodity access record. In this way, the obtained products in the first recommended list are more objective and accurate.
在一种可能的实现方式中,对第一商品访问记录中的每条商品访问记录涉及的商品进行打分,得到每条商品访问记录涉及的商品的打分结果,包括:基于每条商品访问记录中的用户与商品的第一交互行为,对每条商品访问记录涉及的商品进行打分,得到第一打分结果;基于每条商品访问记录中的第一交互行为的发生时间,对每条商品访问记录涉及的商品进行打分,得到第二打分结果;将第一打分结果和第二打分结果相乘,得到每条商品访问记录涉及的商品的打分结果。In a possible implementation manner, scoring the commodities involved in each commodity access record in the first commodity access record, and obtaining a scoring result of the commodities involved in each commodity access record, including: According to the first interaction between the user and the product, the product involved in each product access record is scored, and the first scoring result is obtained; based on the occurrence time of the first interaction in each product access record, each product access record The involved commodities are scored to obtain the second scoring result; the first scoring result and the second scoring result are multiplied to obtain the scoring results of the commodities involved in each commodity access record.
不同的第一交互行为能够说明用户不同的购买意图,例如,用户加入购物车行为所表达的购买意图远远大于用户浏览行为所表达的购买意图。并且随着时间的推移,用户的购买意图会发生变更,因此,本申请基于第一交互行为和第一交互行为的发生时间为商品打分,得到的打分结果将更加客观,也更能表达用户的购买意图。Different first interaction behaviors can indicate different purchase intentions of the user. For example, the purchase intention expressed by the user's adding to the shopping cart behavior is far greater than the purchase intention expressed by the user's browsing behavior. And with the passage of time, the user's purchase intention will change. Therefore, this application scores the product based on the first interactive behavior and the occurrence time of the first interactive behavior, and the obtained scoring result will be more objective and can better express the user's expectations. purchase intent.
在一种可能的实现方式中,基于每条商品访问记录中的用户与商品的第一交互行为,对每条商品访问记录涉及的商品进行打分,得到第一打分结果,包括:基于每条商品访问记录中的用户与商品的第一交互行为,将用户与商品的第一交互行为与行为打分规则中的行为进行对比,得到第一打分结果,行为打分规则包括行为和行为对应的打分结果。本申请方案中公开了第一交互行为的打分结果是根据将第一交互行为与行为打分规则中的行为进行对比得到的。In a possible implementation manner, based on the first interaction between the user and the product in each product access record, the products involved in each product access record are scored to obtain a first scoring result, including: based on each product The first interaction behavior between the user and the product in the access record is compared, and the first interaction behavior between the user and the product is compared with the behavior in the behavior scoring rule to obtain the first scoring result. The behavior scoring rule includes the scoring results corresponding to the behavior and the behavior. The solution of the present application discloses that the scoring result of the first interaction behavior is obtained by comparing the first interaction behavior with the behavior in the behavior scoring rule.
在一种可能的实现方式中,基于每条商品访问记录中的第一交互行为的发生时间,对每条商品访问记录涉及的商品进行打分,得到第二打分结果,包括:基于每条商品访问记录中的第一交互行为的发生时间,将第一交互行为的发生时间输入时间衰减函数,得到第二打分结果。本申请方案中公开了利用时间衰减函数来对第一交互行为的发生时间进行打分。In a possible implementation manner, based on the occurrence time of the first interactive behavior in each commodity access record, the commodities involved in each commodity access record are scored, and a second scoring result is obtained, including: based on each commodity access record For the occurrence time of the first interaction behavior in the record, the occurrence time of the first interaction behavior is input into the time decay function to obtain a second scoring result. The solution of the present application discloses using a time decay function to score the occurrence time of the first interaction behavior.
在一种可能的实现方式中,根据第一版块访问记录,得出第二推荐列表,包括:基于第一版块访问记录,确定出用户偏好版块和用户偏好版块对应的用户群;基于用户群中用户的名称,从商品访问记录中确定出用户群中的用户偏好的商品,并基于用户偏好的商品生成第二推荐列表。In a possible implementation manner, obtaining the second recommendation list according to the access records of the first panel, including: determining the user preference panel and the user group corresponding to the user preference panel based on the access records of the first panel; The name of the user, the commodities preferred by the user in the user group are determined from the commodity access records, and a second recommendation list is generated based on the commodities preferred by the user.
由于社区类应用中涉及很多版块,每个版块区别也很大,例如,手机版块和游戏版块。所以本申请基于第一版块访问记录,从多个版块中确定出用户偏好版块,这样可以大大降低数据处理难度,也能精准定位出用户偏好版块。接着根据用户偏好版块确定出用户群,然后根据用户群从商品访问记录中确定出用户群中的用户偏好的商品,相当于将社区类应用和购物类应用联动,使用户先明确商品的性能,然后根据商品的性能选择出心仪的商品。这样,不仅更贴合用户的购物习惯,得到的商品也更符合用户需求。Since there are many sections involved in community applications, each section is also very different, for example, the mobile section and the game section. Therefore, this application determines user preference sections from multiple sections based on the access records of the first section, which can greatly reduce the difficulty of data processing and accurately locate user preference sections. Then, the user group is determined according to the user preference section, and then the user-preferred products in the user group are determined from the product access records according to the user group. Then choose the product you like according to the performance of the product. In this way, not only is it more in line with the shopping habits of users, but the products obtained are also more in line with the needs of users.
在一种可能的实现方式中,基于第一版块访问记录,确定出用户偏好版块和用户偏好版块对应的用户群,包括:基于第一版块访问记录中每条版块访问记录中的用户与版块的第二交互行为和第二交互行为的发生时间,对每条版块访问记录涉及的版块进行打分,得出用户偏好版块和用户偏好版块对应的用户群。In a possible implementation manner, determining the user group corresponding to the user preference section and the user preference section based on the first section access record, including: based on the user group in each section access record in the first section access record and the section The second interaction behavior and the occurrence time of the second interaction behavior are scored, and the sections involved in each section access record are scored to obtain the user preference section and the user group corresponding to the user preference section.
不同的第二交互行为能够说明用户对于版块中的帖子不同的关注程度,例如,用户评论帖子行为所表达的关注程度远远大于用户浏览行为所表达的关注程度。并且随着时间的推移,用户的关注点会发生变化,因此,本申请基于第二交互行为和第二交互行为的发生时间来确定出用户更关注的版块,这样,得到的用户偏好版块会更加客观,也更能表达用户的关注点。Different second interaction behaviors can indicate different degrees of attention of users to posts in the forum. For example, the degree of concern expressed by the behavior of users commenting on posts is much greater than that expressed by users' browsing behaviors. And with the passage of time, the user's focus will change. Therefore, this application determines the section that the user pays more attention to based on the second interactive behavior and the occurrence time of the second interactive behavior. In this way, the obtained user preference section will be more It is objective and can better express the concerns of users.
在一种可能的实现方式中,在确定第一型号的相似型号之前,方法还包括:对商品访问记录,按照设备型号进行区分,并基于区分后的商品访问记录,得到每种设备型号对应的用户行为序列,用户行为序列中包括用户访问的产品;确定第一型号的相似型号,包括:确定第一型号的用户行为序列与第二型号的用户行为序列的相似度,在第一型号的用户行为序列与第二型号的用户行为序列的相似度符合阈值时,则第二型号为第一型号的相似型号,第二型号为第一型号以外的所有型号;确定相似型号对应的第二商品访问记录,并根据第二商品访问记录,得出第三推荐列表,包括:将商品访问记录,按照设备型号进行区分,得到相似型号对应的第二商品访问记录;基于第二商品访问记录,对第二商品访问记录中涉及的商品进行打分,得到相似设备型号对应的商品打分结果;基于商品打分结果,生成第三推荐列表。In a possible implementation manner, before determining the similar models of the first model, the method further includes: distinguishing the commodity access records according to the device models, and based on the differentiated commodity access records, obtaining the corresponding access records of each device model. User behavior sequence, the user behavior sequence includes products accessed by the user; determining the similar models of the first model, including: determining the similarity between the user behavior sequence of the first model and the user behavior sequence of the second model, in the user behavior sequence of the first model. When the similarity between the behavior sequence and the user behavior sequence of the second model meets the threshold, the second model is a similar model of the first model, and the second model is all models other than the first model; determine the second product access corresponding to the similar model. record, and obtain a third recommendation list according to the second product access record, including: distinguishing the product access records according to the device model to obtain a second product access record corresponding to a similar model; 2. Score the commodities involved in the commodity access records, and obtain commodity scoring results corresponding to similar device models; and generate a third recommendation list based on the commodity scoring results.
本申请还考虑从第一型号的相似型号层面为新用户作商品推荐。相似型号具体是根据商品访问记录中,每个型号对应的用户行为序列的相似度来确定的。然后根据相似型号的第二访问记录,得到第三推荐列表。由于相似型号是根据用户行为序列的相似度确定的,用户行为序列中包括用户访问的商品,所以用户行为序列的相似度也可以是商品的相似度,如果两个型号的用户行为序列的相似度较高,说明该型号的使用用户与第一型号的使用用户,对商品的需求有很多重叠的部分,所以将该型号作为相似型号。因此,后续利用相似型号的第二访问记录得到的第三推荐列表,也更符合用户需求。The present application also considers product recommendation for new users from the level of similar models of the first model. The similar models are specifically determined according to the similarity of the user behavior sequence corresponding to each model in the commodity access record. Then, a third recommendation list is obtained according to the second access records of similar models. Since similar models are determined according to the similarity of user behavior sequences, which include the commodities accessed by users, the similarity of user behavior sequences can also be the similarity of commodities. If the similarity of user behavior sequences of two models is If it is higher, it means that the users of this model and the users of the first model have many overlapping demands for commodities, so this model is regarded as a similar model. Therefore, the subsequent third recommendation list obtained by using the second access record of a similar model is also more in line with the user's needs.
在一种可能的实现方式中,通过终端设备的操作系统公开的应用程序接口API,确定新用户所使用的终端设备型号为第一型号。In a possible implementation manner, the model of the terminal device used by the new user is determined as the first model through the application program interface API disclosed by the operating system of the terminal device.
在一种可能的实现方式中,第一应用的商品访问记录和第二应用的版块访问记录为通过页面埋点获取的,页面埋点包括手写埋点和无埋点,手写埋点为在预置的检测位置上,若检测到数据,则上报数据,无埋点为上报所有数据。本申请公开了利用手写埋点和无埋点这两种方式来获取第一应用的商品访问记录和第二应用的版块访问记录。In a possible implementation manner, the commodity access records of the first application and the section access records of the second application are obtained through page embedding points, page embedding points include handwritten embedding points and no embedding points, and handwriting embedding points are pre- At the detection position set, if data is detected, the data will be reported, and all data will be reported if there is no buried point. The present application discloses using two methods of handwritten embedment and no embedment to obtain the commodity access record of the first application and the section access record of the second application.
在一种可能的实现方式中,用户与商品的第一交互行为包括点击进入商品详情页、收藏商品、加入购物车、点击立即购买商品、提交商品购买订单、商品订单支付成功、取消商品收藏、商品分享、搜索商品、商品到货通知确认成功、咨询商品、评论商品和点击浏览足迹中的商品。In a possible implementation manner, the first interaction behavior of the user with the product includes clicking to enter the product details page, saving the product, adding to the shopping cart, clicking to buy the product immediately, submitting the product purchase order, successful payment of the product order, canceling the product collection, Product sharing, searching for products, confirming successful product arrival notification, consulting products, commenting products, and clicking to browse the products in the footprint.
在一种可能的实现方式中,用户与版块的第二交互行为包括用户浏览版块下的帖子、用户在帖子下面的评论、用户对帖子下面的评论的回复、用户分享帖子、用户收藏帖子、用户对帖子的点赞、用户点击评论帖子的用户的详细信息、用户点击评论帖子的用户发布的帖子、用户对帖子的打赏。In a possible implementation manner, the second interaction behavior of the user with the forum includes the user browsing posts under the forum, the user's comments under the post, the user's reply to the comment under the post, the user sharing the post, the user bookmarking the post, the user's Likes on posts, details of users who clicked to comment on posts, posts posted by users who clicked to comment on posts, user tips on posts.
第二方面,本申请还提供另一种冷启动推荐方法,应用于终端设备,方法包括:终端设备响应于新用户登录第一应用的操作,向服务器发送获取推荐列表请求,推荐列表请求包括新用户所使用的终端设备的型号,终端设备的型号为第一型号;终端设备接收到来自服务器发送的最终推荐列表;终端设备根据最终推荐列表,为新用户推荐商品。本申请方案中,当用户触发商品推荐时,终端设备通过服务器获取最终推荐列表,然后根据最终推荐列表为新用户推荐商品。In a second aspect, the present application further provides another cold-start recommendation method, which is applied to a terminal device. The method includes: the terminal device, in response to an operation of a new user logging in to a first application, sends a request for obtaining a recommendation list to a server, where the recommendation list request includes a new user. The model of the terminal device used by the user, the model of the terminal device is the first model; the terminal device receives the final recommendation list sent from the server; the terminal device recommends commodities for the new user according to the final recommendation list. In the solution of the present application, when the user triggers product recommendation, the terminal device obtains the final recommendation list through the server, and then recommends the product for the new user according to the final recommendation list.
第三方面,提供了一种服务器,该服务器具有实现上述第一方面的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, a server is provided, and the server has the function of implementing the method of the first aspect above. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
第四方面,提供了一种终端设备,该终端设备具有实现上述第二方面的方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, a terminal device is provided, and the terminal device has a function of implementing the method of the second aspect. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.
第五方面,提供了一种服务器,服务器包括:无线通信模块、存储器和一个或多个处理器;无线通信模块、存储器与处理器耦合;In a fifth aspect, a server is provided, the server comprising: a wireless communication module, a memory and one or more processors; the wireless communication module, the memory and the processor are coupled;
其中,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令;当计算机指令被处理器执行时,使得服务器执行如上述第一方面中任一项的方法。Wherein, the memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the server is caused to execute the method according to any one of the above first aspects.
第六方面,提供了一种终端设备,终端设备包括:无线通信模块、存储器和一个或多个处理器;无线通信模块、存储器与处理器耦合;In a sixth aspect, a terminal device is provided, the terminal device includes: a wireless communication module, a memory, and one or more processors; the wireless communication module, the memory and the processor are coupled;
其中,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令;当计算机指令被处理器执行时,使得电子设备执行如上述第二方面的方法。Wherein, the memory is used to store computer program codes, and the computer program codes include computer instructions; when the computer instructions are executed by the processor, the electronic device is made to execute the method of the second aspect.
第七方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行上述第一方面中任一项的冷启动推荐方法以及上述第二方面中任一项的冷启动推荐方法。In a seventh aspect, a computer-readable storage medium is provided, and instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer can execute the cold-start recommendation method according to any one of the above-mentioned first aspects. and the cold start recommended method of any one of the above second aspects.
第八方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第一方面中任一项的冷启动推荐方法以及上述第二方面中任一项的冷启动推荐方法。In an eighth aspect, there is provided a computer program product comprising instructions, which, when run on a computer, enables the computer to execute the cold start recommendation method of any one of the above-mentioned first aspect and the method of any one of the above-mentioned second aspect. Cold start recommended method.
第九方面,提供了一种装置(例如,该装置可以是芯片系统),该装置包括处理器,用于支持服务器实现上述第一方面中所涉及的功能,以及支持终端设备实现上述第二方面中所涉及的功能。在一种可能的设计中,该装置还包括存储器,该存储器,用于保存服务器必要的程序指令和数据,以及终端设备必要的程序指令和数据。该装置是芯片系统时,可以由芯片构成,也可以包含芯片和其他分立器件。In a ninth aspect, an apparatus (for example, the apparatus may be a chip system) is provided, the apparatus includes a processor for supporting a server to implement the functions involved in the first aspect, and supporting a terminal device to implement the second aspect functions involved. In a possible design, the apparatus further includes a memory for storing necessary program instructions and data of the server and necessary program instructions and data of the terminal device. When the device is a system-on-chip, it may be composed of chips, or may include chips and other discrete devices.
其中,第三方面至第九方面中任一种设计方式所带来的技术效果可参见第一方面和第二方面中不同设计方式所带来的技术效果,此处不再赘述。Wherein, for the technical effect brought by any one of the design methods in the third aspect to the ninth aspect, reference may be made to the technical effects brought by different design methods in the first aspect and the second aspect, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种登录第一应用的界面显示示意图;FIG. 1 is a schematic diagram of an interface display for logging in to a first application provided by an embodiment of the present application;
图2为本申请实施例提供的一种系统架构结构示意图;FIG. 2 is a schematic structural diagram of a system architecture provided by an embodiment of the present application;
图3为本申请实施例提供的一种终端设备的硬件结构示意图;FIG. 3 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application;
图4为本申请实施例提供的一种终端设备的软件结构示意图;FIG. 4 is a schematic diagram of a software structure of a terminal device according to an embodiment of the present application;
图5为本申请实施例提供的一种服务器的硬件结构示意图;FIG. 5 is a schematic diagram of a hardware structure of a server according to an embodiment of the present application;
图6为本申请实施例提供的一种冷启动推荐方法的流程示意图之一;FIG. 6 is one of the schematic flowcharts of a cold start recommendation method provided by an embodiment of the present application;
图7为本申请实施例提供的一种冷启动推荐方法的流程示意图之二;FIG. 7 is the second schematic flowchart of a cold start recommendation method provided by an embodiment of the present application;
图8为本申请实施例提供的一种冷启动推荐方法的流程示意图之三;FIG. 8 is a third schematic flowchart of a cold start recommendation method provided by an embodiment of the present application;
图9为本申请实施例提供的一种冷启动推荐方法的流程示意图之四;FIG. 9 is a fourth schematic flowchart of a cold start recommendation method provided by an embodiment of the present application;
图10为本申请实施例提供的一种冷启动推荐方法的流程示意图之五;FIG. 10 is a fifth schematic flowchart of a cold start recommendation method provided by an embodiment of the present application;
图11为本申请实施例提供的一种冷启动推荐方法的流程示意图之六;FIG. 11 is a sixth schematic flowchart of a cold start recommendation method provided by an embodiment of the present application;
图12为本申请实施例提供的一种冷启动推荐方法的应用示意图;12 is an application schematic diagram of a cold start recommendation method provided by an embodiment of the present application;
图13为本申请实施例提供的一种芯片系统的结构示意图。FIG. 13 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“至少一个”是指一个或多个,“多个”是指两个或多于两个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the present application, unless otherwise specified, "at least one" refers to one or more, and "a plurality" refers to two or more than two. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like are not necessarily different.
随着互联网产品的多样化,信息条目数、商品个数和商品种类都在快速增长,通常用户需要花费大量的时间,才能找到自己所需的信息或商品。并且随着大量无关信息和产品的浏览,会逐步降低用户的浏览欲或购买欲,进而导致用户流失。With the diversification of Internet products, the number of information items, the number of commodities and the types of commodities are growing rapidly. Usually, users need to spend a lot of time to find the information or commodities they need. And with the browsing of a large amount of irrelevant information and products, the user's desire to browse or purchase will be gradually reduced, which will lead to the loss of users.
为了解决上述问题,推荐系统应运而生,推荐系统可以理解为:模拟客服人员帮助用户,在互联网平台上,快速找到用户所需的信息或商品。而推荐系统中的个性化推荐则是根据用户的兴趣特点数据和购买行为数据,向用户推荐用户感兴趣的信息和商品,这样就可以提高用户与互联网平台的粘性,避免客户流失。In order to solve the above problems, the recommendation system came into being. The recommendation system can be understood as: simulating customer service personnel to help users, on the Internet platform, to quickly find the information or products that users need. The personalized recommendation in the recommendation system is to recommend the information and products that the user is interested in according to the user's interest characteristic data and purchase behavior data, so as to improve the user's stickiness with the Internet platform and avoid customer loss.
但是,这种推荐系统只有在获取到用户的兴趣特点数据和购买行为数据等相关用户数据时,才能精准的对用户进行信息或商品推荐。若新用户首次登录互联网平台时,由于互联网平台没有新用户的用户数据,所以也无法根据新用户的历史行为预测其兴趣,从而无法为新用户做个性化推荐,这也是推荐系统中的用户冷启动问题。However, this kind of recommendation system can only accurately recommend information or products to users when it obtains relevant user data such as user interest characteristic data and purchase behavior data. If a new user logs in to the Internet platform for the first time, since the Internet platform does not have the user data of the new user, it is impossible to predict the interest of the new user based on the historical behavior of the new user, so that personalized recommendations cannot be made for the new user. This is also the user coldness in the recommendation system. Startup problem.
在实际应用中,针对用户冷启动问题,大多互联网平台在新用户首次登录时,会通过精心设置的交互界面,引导新用户使用社交账户登录,以获取到新用户的社交账户信息,例如:关注关系、好友关系、发布内容等。接着利用新用户的社交账号信息,为新用户生成兴趣模型,进而为新用户做精准推荐。但是为了保护隐私,新用户通常会拒绝使用社交账号登录。In practical applications, in response to the user's cold start problem, most Internet platforms will guide new users to log in using social accounts through carefully set interactive interfaces when they log in for the first time, so as to obtain new users' social account information, such as: follow Relationships, Friendships, Posting, etc. Then use the social account information of the new user to generate an interest model for the new user, and then make accurate recommendations for the new user. But to protect privacy, new users often refuse to log in with social accounts.
参见图1中的(a),手机可以接收用户对手机的主界面(即桌面)101中商城APP的图标102的点击操作。若商城APP未运行,手机可以响应于该点击操作,启动商城APP。商城APP启动后,若用户为商城APP的新用户,商城APP显示如图1中(b)所示的界面103。界面103中可以包括微信™账号快捷登录按钮、QQ™账号快捷登录按钮和换个登录方式按钮104(例如,通过手机号登录)。响应于用户在界面103对换个登录方式按钮104的操作,用户通过其它登录方式登录商城APP。这样的话,商城APP将不能获取到用户的社交账号信息,进而无法获取到更多的用户信息。Referring to (a) in FIG. 1 , the mobile phone can receive a user's click operation on the
或者,在新用户首次登录时,应用平台为用户提供粗粒度的兴趣选项,来捕获用户兴趣。例如,音乐类的应用平台会让用户选择喜欢听的音乐类型(摇滚类、古典类、民谣类等),健身类的应用平台会让用户选择感兴趣的运动类型(瑜伽、跳绳、拳击等)。但这种兴趣选择界面需要精心的交互设计,否则会影响用户的体验。并且,新用户注册时的兴趣和真实访问时的兴趣可能会发生变化,则捕获的用户兴趣可能也无法用于推荐。Alternatively, when a new user logs in for the first time, the application platform provides users with coarse-grained interest options to capture user interests. For example, a music application platform will allow users to choose the type of music they like to listen to (rock, classical, folk, etc.), and a fitness application platform will allow users to choose the type of sports they are interested in (yoga, skipping, boxing, etc.) . But this kind of interest selection interface requires careful interaction design, otherwise it will affect the user's experience. Moreover, the interests of new users during registration and real visits may change, and the captured interests of users may also not be used for recommendation.
为此,本申请提供一种冷启动推荐方法和设备,通过新用户所使用的终端设备的型号,抓取该型号对应的其它用户行为数据。并基于该型号对应的其它用户行为数据,为新用户做精准推荐。To this end, the present application provides a cold-start recommendation method and device, which captures other user behavior data corresponding to the model of the terminal device used by the new user. And based on other user behavior data corresponding to the model, make accurate recommendations for new users.
如图2所示,为本申请实施例提供的一种系统架构示意图。该系统可以包括终端设备和服务器。其中,终端设备可以安装有应用程序(application,APP),应用程序可以是购物类应用(例如,淘宝APP、荣耀商城APP、京东APP)和社区类应用(例如,荣耀俱乐部APP、豆瓣APP)等。服务器可以是应用程序的管理服务器或者云服务器。As shown in FIG. 2 , a schematic diagram of a system architecture provided by an embodiment of the present application is shown. The system may include terminal devices and servers. Among them, the terminal device may be installed with an application (application, APP), and the application may be a shopping application (eg, Taobao APP, Glory Mall APP, JD APP) and community applications (eg, Glory Club APP, Douban APP), etc. . The server can be an application management server or a cloud server.
本申请实施例中,终端响应于新用户登录第一应用的操作,向服务器发送获取推荐列表请求,该推荐列表请求中包括新用户所使用的终端设备的型号(第一型号)。服务器响应于获取推荐列表请求,确定第一型号对应的第一商品访问记录和第一版块访问记录。然后根据第一商品访问记录得出第一推荐列表,根据第一版块访问记录得出第二推荐列表。接着服务器确定第一型号的相似型号和相似型号对应的第二商品访问记录,并根据第二访问记录,得到第三推荐列表。最后对第一推荐列表、第二推荐列表和第三推荐列表进行去重、排序,得到最终推荐列表,并将最终推荐列表发送给终端设备,终端设备根据最终推荐列表中的商品为用户推荐。In the embodiment of the present application, the terminal sends a request for obtaining a recommendation list to the server in response to the operation of the new user logging in to the first application, where the recommendation list request includes the model (first model) of the terminal device used by the new user. In response to the request for obtaining the recommendation list, the server determines the first product access record and the first section access record corresponding to the first model. Then, the first recommendation list is obtained according to the access record of the first product, and the second recommendation list is obtained according to the access record of the first section. Next, the server determines a similar model of the first model and a second commodity access record corresponding to the similar model, and obtains a third recommendation list according to the second access record. Finally, the first recommendation list, the second recommendation list and the third recommendation list are deduplicated and sorted to obtain the final recommendation list, and the final recommendation list is sent to the terminal device, and the terminal device recommends the user according to the commodities in the final recommendation list.
在一种可能的设计中,终端设备首先响应于新用户登录第一应用的操作,向服务器发送获取数据请求,获取数据请求用于请求获取第一应用的商品访问记录和第二应用的版块访问记录。服务器响应于获取数据请求,将第一应用的商品访问记录和第二应用的版块访问记录发送给终端设备。终端设备接收到第一应用的商品访问记录和第二应用的版块访问记录后,对商品访问记录,按照新用户所使用的终端设备的型号(第一型号)进行区分,得到第一型号对应的第一商品访问记录和第一版块访问记录。然后根据第一商品访问记录得出第一推荐列表,根据第一版块访问记录得出第二推荐列表。接着确定出第一型号的相似型号和相似型号对应的第二商品访问记录,并根据第二访问记录,得到第三推荐列表。最后对第一推荐列表、第二推荐列表和第三推荐列表进行去重、排序,得到最终推荐列表,终端设备按照最终推荐列表为用户推荐商品。In a possible design, the terminal device first responds to the operation of the new user logging into the first application, and sends a data acquisition request to the server, and the data acquisition request is used to request to acquire the commodity access record of the first application and the section access of the second application Record. In response to the data acquisition request, the server sends the commodity access record of the first application and the section access record of the second application to the terminal device. After receiving the commodity access record of the first application and the section access record of the second application, the terminal device distinguishes the commodity access record according to the model (the first model) of the terminal device used by the new user, and obtains the corresponding product of the first model. The access record of the first product and the access record of the first section. Then, the first recommendation list is obtained according to the access record of the first product, and the second recommendation list is obtained according to the access record of the first section. Next, a similar model of the first model and a second commodity access record corresponding to the similar model are determined, and a third recommendation list is obtained according to the second access record. Finally, the first recommendation list, the second recommendation list and the third recommendation list are deduplicated and sorted to obtain a final recommendation list, and the terminal device recommends commodities for the user according to the final recommendation list.
示例性的,本申请实施例中的终端设备可以是手机、平板电脑、台式机(桌面型电脑)、手持计算机、笔记本电脑(膝上型电脑)、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等可以安装上述目标应用的设备,本申请实施例对第一设备的具体形态不作特殊限制。Exemplarily, the terminal device in this embodiment of the present application may be a mobile phone, a tablet computer, a desktop computer (desktop computer), a handheld computer, a notebook computer (laptop computer), and an ultra-mobile personal computer (ultra-mobile personal computer, UMPC). ), netbook, personal digital assistant (PDA), augmented reality (AR) \ virtual reality (virtual reality, VR) device and other devices that can install the above target application, the embodiment of the present application is for the first device The specific form is not particularly limited.
其中,终端设备的操作系统可以是安卓(Android)、鸿蒙系统、IOS系统或者其他操作系统,本申请实施例对第一设备的操作系统类型不做限定。The operating system of the terminal device may be Android (Android), Hongmeng system, IOS system or other operating systems, and the embodiment of the present application does not limit the operating system type of the first device.
本申请实施例中以图3所示的终端设备是电子设备300(如手机)为例,对本申请实施例提供的终端设备的结构进行举例说明。如图3所示,电子设备300可以包括处理器310,外部存储器接口320,内部存储器321,通用串行总线(universal serial bus,USB)接口330,充电管理模块340,电源管理模块341,电池342,天线1,天线2,移动通信模块350,无线通信模块360,音频模块370,扬声器370A,受话器370B,麦克风370C,耳机接口370D,传感器模块380,按键390,马达391,指示器392,摄像头393,显示屏394,以及用户标识模块(subscriber identification module,SIM)卡接口395、瞳孔检测器396和虹膜检测器397等。In the embodiment of the present application, the terminal device shown in FIG. 3 is an electronic device 300 (such as a mobile phone) as an example to illustrate the structure of the terminal device provided by the embodiment of the present application. As shown in FIG. 3 , the electronic device 300 may include a
其中,传感器模块380可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。The sensor module 380 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
可以理解的是,本实施例示意的结构并不构成对电子设备300的具体限定。在另一些实施例中,电子设备300可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 300 . In other embodiments, the electronic device 300 may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器310可以包括一个或多个处理单元,例如:处理器310可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
控制器可以是电子设备300的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 300 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器310中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器310中的存储器为高速缓冲存储器。该存储器可以保存处理器310刚用过或循环使用的指令或数据。如果处理器310需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器310的等待时间,因而提高了系统的效率。A memory may also be provided in the
在一些实施例中,处理器310可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I3C)接口,集成电路内置音频(inter-integrated circuitsound,I3S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments,
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备300的结构限定。在另一些实施例中,电子设备300也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the electronic device 300 . In other embodiments, the electronic device 300 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块340用于从充电器接收充电输入。充电管理模块340为电池342充电的同时,还可以通过电源管理模块341为电子设备300供电。The
电源管理模块341用于连接电池342,充电管理模块340与处理器310。电源管理模块341接收电池342和/或充电管理模块340的输入,为处理器310,内部存储器321,外部存储器,显示屏394,摄像头393,和无线通信模块360等供电。在其他一些实施例中,电源管理模块341也可以设置于处理器310中。在另一些实施例中,电源管理模块341和充电管理模块340也可以设置于同一个器件中。The
电子设备300的无线通信功能可以通过天线1,天线2,移动通信模块350,无线通信模块360,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 300 can be implemented by the
天线1和天线2用于发射和接收电磁波信号。电子设备300中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。
移动通信模块350可以提供应用在电子设备300上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块350可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块350可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块350还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。The
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器370A,受话器370B等)输出声音信号,或通过显示屏394显示图像或视频。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 370A, the
无线通信模块360可以提供应用在电子设备300上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块360可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块360经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器310。无线通信模块360还可以从处理器310接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The
在一些实施例中,电子设备300的天线1和移动通信模块350耦合,天线2和无线通信模块360耦合,使得电子设备300可以通过无线通信技术与网络以及其他设备通信。无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,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),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the
电子设备300通过GPU,显示屏394,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏394和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器310可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 300 implements a display function through a GPU, a display screen 394, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.
显示屏394用于显示图像,视频等。该显示屏394包括显示面板。显示面板可以采用液晶屏幕(liquid crystal display,LCD),发光二极管(light-emitting diode,LED),有机发光二极管(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)等。Display screen 394 is used to display images, videos, and the like. The display screen 394 includes a display panel. The display panel can use a liquid crystal display (LCD), a light-emitting diode (LED), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic Active-matrix organic light emitting diode (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED) Wait.
其中,本申请实施例中的显示屏394如果集成了触摸传感器,则显示屏394可以称为触摸屏。该触摸传感器也可以称为“触控面板”。也就是说,显示屏394可以包括显示面板和触摸面板。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器检测到触摸操作后,可触发内核层的驱动(如TP驱动)周期性地扫描该触摸操作产生的触摸参数。然后,内核层的驱动将触摸参数传递给上层的相关模块,以便于相关模块确定触摸参数对应的触摸事件。Wherein, if the display screen 394 in the embodiment of the present application integrates a touch sensor, the display screen 394 may be called a touch screen. The touch sensor may also be referred to as a "touch panel". That is, the display screen 394 may include a display panel and a touch panel. A touch sensor is used to detect touch operations on or near it. After the touch sensor detects the touch operation, it can trigger the driver of the core layer (such as the TP driver) to periodically scan the touch parameters generated by the touch operation. Then, the driver of the kernel layer transmits the touch parameters to the relevant modules of the upper layer, so that the relevant modules can determine the touch events corresponding to the touch parameters.
另外,显示屏394可以提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备300的表面,而不是集成在显示屏394中。此时,触摸传感器与显示屏394所处的位置可以不同。本申请实施例中以屏幕是集成有触摸传感器的屏幕为例,对播放界面的显示方法的具体过程进行说明。Additionally, display screen 394 may provide visual output related to touch operations. In other embodiments, the touch sensor may also be disposed on the surface of the electronic device 300 instead of being integrated in the display screen 394 . At this time, the positions of the touch sensor and the display screen 394 may be different. In the embodiment of the present application, the specific process of the display method of the playback interface is described by taking the screen as an example of a screen integrated with a touch sensor.
电子设备300可以通过ISP,摄像头393,视频编解码器,GPU,显示屏394以及应用处理器等实现拍摄功能。ISP 用于处理摄像头393反馈的数据。摄像头393用于捕获静态图像或视频。数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。视频编解码器用于对数字视频压缩或解压缩。电子设备300可以支持一种或多种视频编解码器。这样,电子设备300可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)3,MPEG3,MPEG3,MPEG4等。The electronic device 300 can realize the shooting function through the ISP, the camera 393, the video codec, the GPU, the display screen 394, and the application processor. The ISP is used to process the data fed back by the camera 393 . Camera 393 is used to capture still images or video. A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. Video codecs are used to compress or decompress digital video. The electronic device 300 may support one or more video codecs. In this way, the electronic device 300 can play or record videos in various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 3, MPEG3, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备300的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By borrowing the structure of biological neural network, such as the transmission mode between neurons in the human brain, it can quickly process the input information, and can also continuously learn by itself. Applications such as intelligent cognition of the electronic device 300 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口320可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备300的存储能力。外部存储卡通过外部存储器接口320与处理器310通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。内部存储器321可以用于存储计算机可执行程序代码,可执行程序代码包括指令。处理器310通过运行存储在内部存储器321的指令,从而执行电子设备300的各种功能应用以及数据处理。例如,在本申请实施例中,处理器310可以通过执行存储在内部存储器321中的指令,内部存储器321可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备300使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器321可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universalflash storage,UFS)等。The external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 300 . The external memory card communicates with the
电子设备300可以通过音频模块370,扬声器370A,受话器370B,麦克风370C,耳机接口370D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 300 may implement audio functions through an
音频模块370用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块370还可以用于对音频信号编码和解码。扬声器370A,也称“喇叭”,用于将音频电信号转换为声音信号。受话器370B,也称“听筒”,用于将音频电信号转换成声音信号。麦克风370C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。耳机接口370D用于连接有线耳机。The
按键390包括开机键,音量键等。按键390可以是机械按键。也可以是触摸式按键。电子设备300可以接收按键输入,产生与电子设备300的用户设置以及功能控制有关的键信号输入。马达391可以产生振动提示。马达391可以用于来电振动提示,也可以用于触摸振动反馈。指示器392可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口395用于连接SIM卡。SIM卡可以通过插入SIM卡接口395,或从SIM卡接口395拔出,实现和电子设备300的接触和分离。电子设备300可以支持3个或N个SIM卡接口,N为大于3的正整数。SIM卡接口395可以支持Nano SIM卡,Micro SIM卡,SIM卡等。The keys 390 include a power-on key, a volume key, and the like. Keys 390 may be mechanical keys. It can also be a touch key. The electronic device 300 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 300 . Motor 391 can generate vibrating cues. The motor 391 can be used for incoming call vibration alerts, and can also be used for touch vibration feedback. The indicator 392 can be an indicator light, which can be used to indicate the charging status, the change of power, and can also be used to indicate messages, missed calls, notifications, and the like. The SIM card interface 395 is used to connect a SIM card. The SIM card can be contacted and separated from the electronic device 300 by inserting into the SIM card interface 395 or pulling out from the SIM card interface 395 . The electronic device 300 may support 3 or N SIM card interfaces, where N is a positive integer greater than 3. The SIM card interface 395 can support Nano SIM card, Micro SIM card, SIM card and so on.
上述手机的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android®系统为例,示例性说明手机的软件结构。The software system of the above mobile phone may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present invention take an Android® system with a layered architecture as an example to illustrate the software structure of a mobile phone.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过接口通信。在一些实施例中,将Android®系统分为四层,从上至下分别为应用程序层,应用程序框架层,Android runtime和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through interfaces. In some embodiments, the Android® system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图4所示,应用程序包可以包括相机,邮件,日历,通话,地图,导航,WLAN,蓝牙,音乐,商城,社区俱乐部等应用程序。As shown in Figure 4, the application package may include applications such as camera, mail, calendar, call, map, navigation, WLAN, Bluetooth, music, mall, community club and so on.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for the applications of the application layer. The application framework layer includes some predefined functions.
应用程序框架层可以包括窗口管理器,内容提供器,活动管理器,资源管理器,通知管理器,视图系统等,本申请实施例对此不做任何限制。The application framework layer may include a window manager, a content provider, an activity manager, a resource manager, a notification manager, a view system, etc., which is not limited in this embodiment of the present application.
活动管理器(Activity Manager):用于管理每个应用的生命周期。应用通常以Activity的形式运行在操作系统中。对于每一个Activity,在活动管理器中都会有一个与之对应的应用记录(ActivityRecord),这个ActivityRecord记录了该应用的Activity的状态。活动管理器可以利用这个ActivityRecord作为标识,调度应用的Activity进程。Activity Manager (Activity Manager): used to manage the life cycle of each application. Applications usually run in the operating system in the form of Activity. For each Activity, there will be a corresponding application record (ActivityRecord) in the activity manager, and this ActivityRecord records the state of the application's Activity. The activity manager can use this ActivityRecord as an identifier to schedule the Activity process of the application.
窗口管理器(WindowManagerService):用于管理在屏幕上使用的图形用户界面(graphical user interface,GUI)资源,具体可用于:获取屏幕大小、窗口的创建和销毁、窗口的显示与隐藏、窗口的布局、焦点的管理以及输入法和壁纸管理等。Window Manager (WindowManagerService): used to manage the graphical user interface (GUI) resources used on the screen, which can be used for: obtaining the screen size, creating and destroying windows, displaying and hiding windows, and layout of windows , focus management and input method and wallpaper management.
应用程序框架层以下的系统库和内核层等可称为底层系统,底层系统中包括用于提供显示服务的底层显示系统,例如,底层显示系统包括内核层中的显示驱动以及系统库中的surface manager等。The system library and kernel layer below the application framework layer can be called the underlying system. The underlying system includes the underlying display system used to provide display services. For example, the underlying display system includes the display driver in the kernel layer and the surface in the system library. manager, etc.
安卓运行时(Android Runtime)包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The Android Runtime includes core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android. The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
OpenGL ES用于实现三维图形绘图,图像渲染,合成,和图层处理等。OpenGL ES is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
SGL是2D绘图的绘图引擎。SGL is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
本申请实施例中以图5所示的服务器500为例,对本申请实施例提供的服务器的结构进行举例说明。如图5所示,为本申请实施例提供的服务器的一种硬件结构示意图。该服务器500包括至少一个处理器501,通信线路502,存储器503以及至少一个通信接口504。In the embodiment of the present application, the server 500 shown in FIG. 5 is used as an example to illustrate the structure of the server provided by the embodiment of the present application. As shown in FIG. 5 , a schematic diagram of a hardware structure of a server provided by an embodiment of the present application is shown. The server 500 includes at least one
处理器501可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The
通信线路502可包括一通路,在上述组件之间传送信息。Communication line 502 may include a path to communicate information between the components described above.
通信接口504,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local areanetworks,WLAN)等。The
存储器503可以是只读存储器(read-only memory,ROM) 或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM) 或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compactdisc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路502与处理器相连接。存储器也可以和处理器集成在一起。The
其中,存储器503用于存储执行本申请方案的计算机执行指令,并由处理器501来控制执行。处理器501用于执行存储器503中存储的计算机执行指令,从而实现本申请下述实施例提供的组播/广播业务的通信方法。The
可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Optionally, the computer-executed instructions in the embodiment of the present application may also be referred to as application code, which is not specifically limited in the embodiment of the present application.
在具体实现中,作为一种实施例,处理器501可以包括一个或多个CPU,例如图5中的CPU0和CPU1。In a specific implementation, as an embodiment, the
在具体实现中,作为一种实施例,服务器500可以包括多个处理器,例如图5中的处理器501和处理器507。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the server 500 may include multiple processors, such as the
可选的,服务器500还可以包括输出设备505和输入设备506。输出设备505和处理器501通信,可以以多种方式来显示信息。例如,输出设备505可以是液晶显示器(liquidcrystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT) 显示设备,或投影仪(projector)等。输入设备506和处理器501通信,可以以多种方式接收用户的输入。例如,输入设备506可以是鼠标、键盘、触摸屏设备或传感设备等。Optionally, the server 500 may further include an
上述的服务器500可以是一个通用设备或者是一个专用设备。在具体实现中,服务器500可以是台式机、便携式电脑、网络服务器、掌上电脑(personal digital assistant,PDA)、移动手机、平板电脑、无线终端设备、嵌入式设备或有图5中类似结构的设备。本申请实施例不限定服务器500的类型。The above-mentioned server 500 may be a general-purpose device or a dedicated device. In a specific implementation, the server 500 may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, an embedded device, or a device with a similar structure in FIG. 5 . . This embodiment of the present application does not limit the type of the server 500 .
下面以图6为例对本申请实施例提供的一种冷启动推荐方法进行说明,具体包括:The following uses FIG. 6 as an example to describe a cold start recommendation method provided by the embodiment of the present application, which specifically includes:
601、确定新用户访问第一应用所使用的终端设备的型号。601. Determine the model of the terminal device used by the new user to access the first application.
其中,新用户所使用的终端设备型号为第一型号。The model of the terminal device used by the new user is the first model.
新用户进入第一应用后,第一应用通过交互界面引导新用户登录第一应用,登录第一应用后,第一应用为新用户展示推荐界面。在第一应用为新用户展示推荐界面之前,第一应用需要确定新用户所使用的终端设备的型号。After a new user enters the first application, the first application guides the new user to log in to the first application through the interactive interface, and after logging in to the first application, the first application displays a recommendation interface for the new user. Before the first application displays the recommendation interface for the new user, the first application needs to determine the model of the terminal device used by the new user.
可选的,第一应用可以是手机中的应用程序,还可以是电脑中的网站平台。为用户展示的推荐界面可以用于推荐图书、推荐社交好友、推荐视频、推荐音乐、推荐餐饮和推荐商品等等。Optionally, the first application may be an application program in a mobile phone, or a website platform in a computer. The recommendation interface displayed for the user can be used for recommending books, recommending social friends, recommending videos, recommending music, recommending restaurants, recommending products, and so on.
第一应用确定新用户所使用的终端设备的型号,具体可以是通过新用户所使用的终端设备的操作系统,来确定新用户的终端设备信息的。目前大多终端设备的操作系统都有公开的应用程序接口(Application Program Interface,API)供第三方应用程序(Aapplication,App)获取终端设备的一些基本信息。在得到用户授权后,第三方App可以获得终端设备的操作系统公开的API的访问权限,然后通过API获取所需的信息。The first application determines the model of the terminal device used by the new user. Specifically, the terminal device information of the new user may be determined through the operating system of the terminal device used by the new user. At present, the operating systems of most terminal devices have a public application program interface (Application Program Interface, API) for a third-party application (Aapplication, App) to obtain some basic information of the terminal device. After being authorized by the user, the third-party App can gain access to the API exposed by the operating system of the terminal device, and then obtain the required information through the API.
在安卓操作系统中,第三方App(即第一应用)可以获取终端设备型号和安装的所有APP 信息(安装包名)。在iOS®系统中,第三方App(即第一应用)不能直接获取用户终端设备上安装的App列表,但是可以通过查询该终端设备是否安装某个App 的方式间接获得此信息。这种方法要求第三方App(即第一应用)内置常用iOS App的id列表,常用iOS App的id列表可以从App Store的网页版抓取的。In the Android operating system, the third-party App (ie, the first application) can obtain the terminal device model and all the installed APP information (installation package name). In the iOS® system, the third-party App (ie, the first application) cannot directly obtain the list of apps installed on the user terminal device, but can obtain this information indirectly by querying whether an App is installed on the terminal device. This method requires a third-party app (ie, the first app) to have a built-in id list of commonly used iOS apps, and the id list of commonly used iOS apps can be captured from the web version of the App Store.
602、获取第一应用的商品访问记录。602. Acquire a commodity access record of the first application.
第一应用的商品访问记录可以是终端设备获取还可以是服务器获取。如果是终端设备获取,具体的获取方式可以是终端设备向第一应用的云服务器发送获取商品访问记录指令,第一应用的云服务器响应于获取商品访问记录指令,向终端设备发送第一应用的商品访问记录。还可以是第一应用的云服务器周期性的向所有安装第一应用的终端设备主动发送第一应用的商品访问记录。或者在第一应用的云服务器检测到第一应用的新的商品访问记录后,就自动向所有安装第一应用的终端设备发送新的商品访问记录。又或者在终端设备下载第一应用的安装包时,第一应用的安装包中就自动携带,截止当前时刻,第一应用上的所有商品访问记录。如果是服务器获取,具体的获取方式为服务器向第一应用的云服务器发送获取商品访问记录指令,第一应用的云服务器响应于获取商品访问记录指令,向服务器发送第一应用的商品访问记录。The commodity access record of the first application may be acquired by a terminal device or acquired by a server. If it is acquired by the terminal device, the specific acquisition method may be that the terminal device sends an instruction to obtain the commodity access record to the cloud server of the first application. Commodity access records. It may also be that the cloud server of the first application periodically actively sends the commodity access records of the first application to all terminal devices that install the first application. Or after the cloud server of the first application detects the new commodity access record of the first application, it automatically sends the new commodity access record to all terminal devices that install the first application. Alternatively, when the terminal device downloads the installation package of the first application, it is automatically carried in the installation package of the first application. As of the current moment, all commodity access records on the first application are recorded. In the case of server acquisition, the specific acquisition method is that the server sends an instruction to acquire the commodity access record to the cloud server of the first application, and the cloud server of the first application sends the commodity access record of the first application to the server in response to the instruction to acquire the commodity access record.
第一应用可以是购物类应用,例如,商城APP,购物APP等。The first application may be a shopping application, for example, a mall APP, a shopping APP, and the like.
商品访问记录可以通过页面埋点技术获取。页面埋点技术具体可以通过手写埋点和无埋点两种方式获取数据。手写埋点是指:在确定出需要监控的数据(如,用户的点击行为、浏览行为等)后,然后在相应的位置写入代码。当第三方App检测到预先设置的监控数据后,直接上报检测到的数据。手写埋点这种方式的灵活性很大,但是工作量也较大,在每个需要监控的地方都得插入相应的代码。无埋点是指:不需要开发者手写埋点,通过统计所有的事件并且定时上报的方式获取数据。无埋点这种方式虽然没有手写埋点繁琐,但是因为统计的是所有事件,所以后期还需要过滤出需要的数据。Commodity access records can be obtained through page embedding technology. The page embedding technology can obtain data in two ways: handwritten embedding and no embedding. Handwriting embedment means: after determining the data that needs to be monitored (such as the user's click behavior, browsing behavior, etc.), then write code in the corresponding position. When the third-party App detects the preset monitoring data, it directly reports the detected data. This method of handwriting buried points is very flexible, but the workload is also large, and corresponding codes must be inserted in every place that needs to be monitored. No burying point means: no need for developers to manually bury points, and obtain data by counting all events and reporting them regularly. Although the method without buried points is not as cumbersome as handwritten buried points, because all events are counted, it is necessary to filter out the required data later.
通常,页面埋点会监控页面访问量(Page View,PV)、独立访问用户数(UniqueVisitor,UV)、停留时长和用户交互行为等数据。其中,PV是指网站的页面浏览量或者点击量。UV是指根据IP地址来区分的访客数,若一段时间内一个IP地址的重复访问,也是一个UV。停留时长具体是指用户在第三方App的某一个页面或是一次访问(会话)所停留的时间。用户交互行为是指用户在第一应用上触发的所有行为,例如,浏览、点击、收藏、分享等等。Usually, page embedding monitors data such as page views (Page View, PV), the number of unique visitors (UniqueVisitor, UV), dwell time, and user interaction behavior. Among them, PV refers to the page views or clicks of the website. UV refers to the number of visitors distinguished by IP address. If an IP address is repeatedly accessed within a period of time, it is also a UV. The stay duration specifically refers to the time a user stays on a certain page or a visit (session) of a third-party App. User interaction behaviors refer to all behaviors triggered by the user on the first application, such as browsing, clicking, bookmarking, sharing, and the like.
商品访问记录是指在预设时长内,第一应用存储的用户在购物类应用中对商品的访问情况的记录。商品访问记录可以包括用户行为记录和用户设备记录。The commodity access record refers to the record of the user's visit to the commodity in the shopping application stored by the first application within a preset period of time. The commodity access records may include user behavior records and user equipment records.
用户行为记录是指用户与商品的第一交互行为的记录。例如,用户行为记录可以包括用户的名称、用户访问的商品的名称、用户与商品的第一交互行为以及第一交互行为的发生时间。用户与商品的第一交互行为可以包括点击进入商品详情页、收藏商品、加入购物车、点击立即购买商品、提交商品购买订单、商品订单支付成功、取消商品收藏、商品分享、搜索商品、商品到货通知确认成功、咨询商品、评论商品和点击浏览足迹中的商品。用户行为记录可以直接反应出用户的真实需求,通过对用户与商品的第一交互行为进行分析,可以确定出用户感兴趣的商品。再基于感兴趣的商品为用户进行个性化推荐,则更能贴合用户的真实需求。The user behavior record refers to the record of the first interaction behavior between the user and the product. For example, the user behavior record may include the name of the user, the name of the commodity accessed by the user, the first interaction behavior of the user with the commodity, and the occurrence time of the first interaction behavior. The first interaction between the user and the product can include clicking to enter the product details page, saving the product, adding to the shopping cart, clicking to buy the product immediately, submitting the product purchase order, successful payment of the product order, canceling the product collection, product sharing, searching for products, and product arrival. Product notification confirms success, consults products, reviews products, and clicks to browse products in the footprint. The user behavior record can directly reflect the real needs of the user, and by analyzing the first interaction behavior between the user and the product, the product that the user is interested in can be determined. Personalized recommendations for users based on the products they are interested in can better meet the real needs of users.
用户设备记录可以是在用户访问第一应用时,用户所使用的终端设备的记录。例如,用户设备记录可以包括用户的名称、用户使用的终端设备型号、设备运行第一应用的时间。The user equipment record may be a record of the terminal equipment used by the user when the user accesses the first application. For example, the user equipment record may include the user's name, the terminal device model used by the user, and the time when the device runs the first application.
若访问第一应用的用户为新用户时,则第一应用无法提供可供参考的数据,所以本申请通过新用户所使用的终端设备型号,来查询同终端设备型号的其他用户的商品访问记录,根据其他用户的商品访问记录,来为新用户提供推荐数据。If the user accessing the first application is a new user, the first application cannot provide data for reference, so this application uses the terminal device model used by the new user to query the commodity access records of other users of the same terminal device model , to provide recommendation data for new users based on other users' product access records.
示例性的,商品访问记录如下表1所示。Exemplarily, the commodity access records are shown in Table 1 below.
表1Table 1
603、在商品访问记录中,确定出第一型号对应的第一商品访问记录。603. In the commodity visit record, determine the first commodity visit record corresponding to the first model.
第一应用的商品访问记录可以有多条,并且随着第一应用的上线时间越长,商品访问记录条数也越多。从多条商品访问记录中,选出使用第一型号的终端设备的商品访问记录,得到第一商品访问记录。There may be multiple commodity access records of the first application, and as the online time of the first application is longer, the number of commodity access records also increases. From a plurality of commodity access records, a commodity access record using a terminal device of the first model is selected to obtain a first commodity access record.
示例性的,结合表1,得到第一商品访问记录,第一商品访问记录如下表2所示。Exemplarily, in combination with Table 1, a first commodity access record is obtained, and the first commodity access record is shown in Table 2 below.
表2Table 2
604、根据第一商品访问记录,得出第一推荐列表。604. Obtain a first recommendation list according to the access record of the first product.
基于第一商品访问记录中的每条商品访问记录,对每条商品访问记录中涉及的商品进行打分,得到每条商品访问记录涉及的商品的打分结果。然后基于商品名称,对同一个商品的打分结果进行累加,以得到所有商品的最终打分结果。接着根据所有商品的打分结果,对商品进行排序,并结合排序结果生成第一推荐列表。最后,可以按照第一推荐列表中的商品信息为新用户推荐商品。Based on each commodity access record in the first commodity access record, the commodities involved in each commodity access record are scored, and a scoring result of the commodities involved in each commodity access record is obtained. Then, based on the product name, the scoring results of the same product are accumulated to obtain the final scoring results of all products. Then, according to the scoring results of all the commodities, the commodities are sorted, and the first recommendation list is generated in combination with the sorting results. Finally, products may be recommended for new users according to the product information in the first recommendation list.
对每条商品访问记录中涉及的商品的打分,具体是从两方面进行的,一方面是根据每条商品访问记录中的用户与商品的第一交互行为打分,另一方面是根据每条商品访问记录中的第一交互行为的发生时间打分。最后,将上述两方面的打分结果相乘,得到每条商品访问记录中涉及的商品的最终打分结果。The scoring of the commodities involved in each commodity access record is carried out from two aspects. On the one hand, it is scored according to the first interaction between the user and the commodity in each commodity access record, and on the other hand, it is based on each commodity. The time of occurrence of the first interaction in the access record is scored. Finally, multiply the scoring results of the above two aspects to obtain the final scoring result of the commodities involved in each commodity access record.
根据每条商品访问记录中的用户与商品的第一交互行为打分,具体可以是将每条商品访问记录中的用户与商品的第一交互行为与行为打分规则中的行为作比对,在确定出商品访问记录中的用户与商品的第一交互行为与行为打分规则中的某一条行为一致时,则将行为打分规则中规定的该行为的打分结果,作为当前商品访问记录中用户与商品的第一交互行为的打分结果。若商品访问记录中的用户与商品的第一交互行为在行为打分规则中没有对应的行为时,则将该用户与商品的第一交互行为的打分结果记为0。示例性的,行为打分规则参见表3:Scoring according to the first interaction behavior between the user and the product in each product access record, specifically, comparing the first interaction behavior between the user and the product in each product access record with the behavior in the behavior scoring rules. When the first interaction between the user and the product in the product access record is consistent with one of the behaviors in the behavior scoring rules, the scoring result of the behavior specified in the behavior scoring rules will be used as the current product access record. The scoring result of the first interaction behavior. If the first interaction behavior between the user and the product in the product access record has no corresponding behavior in the behavior scoring rule, the scoring result of the first interaction behavior between the user and the product is marked as 0. Exemplary, behavior scoring rules are shown in Table 3:
表3table 3
基于表2和表3,对用户与商品的第一交互行为进行打分,得到的打分结果如下表4所示:Based on Table 2 and Table 3, the first interaction behavior between the user and the product is scored, and the scoring results obtained are shown in Table 4 below:
表4Table 4
根据每条商品访问记录中的第一交互行为发生时间打分,可以是基于时间衰减函数确定商品访问记录中的第一交互行为发生时间的打分结果。示例性的,时间衰减函数如下公式所示:Scoring according to the occurrence time of the first interaction in each commodity access record may be a scoring result of determining the occurrence time of the first interaction in the commodity access record based on a time decay function. Exemplarily, the time decay function is as follows:
其中,t0为初始温度,t1为冷却系数,t0,t1均为固定系数值,间隔时间是指第一交互行为的发生时间与待推荐的时间之间的间隔。示例性的,t0=1,t1=0.2。Among them, t0 is the initial temperature, t1 is the cooling coefficient, t0 and t1 are fixed coefficient values, and the interval time refers to the interval between the occurrence time of the first interaction behavior and the time to be recommended. Exemplarily, t0=1, t1=0.2.
将每条商品访问记录中的第一交互行为发生时间代入上述时间衰减函数中,计算得出F(t),接着将F(t)的结果进行归一化,得到一个[0, 1]之间的数值。Substitute the occurrence time of the first interaction in each commodity access record into the above time decay function, calculate F(t), and then normalize the result of F(t) to obtain a [0, 1] value in between.
众所周知,用户的购买需求会随着时间变化而发生变化。越靠近推荐时间,发生的用户与商品的第一交互行为越有参考性。若为新用户推荐商品的时间是10月19号。参见表2,小王在3月10号,进入了商品A的详情页,小赵在10月18号,收藏了商品C。相比较而言,10月18号更靠近推荐时间10月19号,则10月18号的打分比3月10号的打分更高。As we all know, the purchasing needs of users will change over time. The closer to the recommendation time, the more informative the first interaction between the user and the product. If you recommend products for new users, the time is October 19th. See Table 2, Xiao Wang entered the details page of product A on March 10, and Xiao Zhao collected product C on October 18. Comparatively speaking, if October 18th is closer to the recommended time of October 19th, the score on October 18th is higher than that on March 10th.
在确定出用户与商品的第一交互行为的打分结果和第一交互行为发生时间的打分结果后,每条商品访问记录中涉及的商品的打分结果满足如下公式:After determining the scoring result of the first interaction behavior between the user and the product and the scoring result of the occurrence time of the first interaction behavior, the scoring result of the product involved in each product access record satisfies the following formula:
A=B*CA=B*C
其中,A为每条商品访问记录中涉及的商品的打分结果,B为每条商品访问记录中的第一交互行为的打分结果,C为每条商品访问记录中的第一交互行为发生时间的打分结果。Among them, A is the scoring result of the product involved in each product access record, B is the scoring result of the first interaction behavior in each product access record, and C is the time when the first interaction behavior in each product access record occurred. Scoring results.
最后,将表4中的第一交互行为打分结果和基于时间衰减函数计算的第一交互行为发生时间的打分结果相乘,得到每条商品访问记录中对应的商品的打分值。每条商品访问记录中对应的商品的打分值具体如下表5所示:Finally, multiply the scoring result of the first interactive behavior in Table 4 and the scoring result of the occurrence time of the first interactive behavior calculated based on the time decay function to obtain the scoring value of the corresponding product in each product access record. The scoring value of the corresponding product in each product access record is shown in Table 5 below:
表5table 5
在得到每条商品访问记录对应的商品的打分结果后,将相同商品的打分结果进行累加,得到每个商品对应的加和打分结果值。结合表6,第一条商品访问记录对应的商品是商品A,第三条商品访问记录对应的商品也是商品A,第N条商品访问记录对应的商品是商品C,然后将都是商品A的打分结果进行累加,即将第一条商品访问记录得到的打分结果0.025和第三条商品访问记录得到的打分结果0.04进行累加,则商品A对应的打分结果为0.065。接着依次计算涉及的其它商品的打分结果。After obtaining the scoring result of the commodity corresponding to each commodity access record, the scoring results of the same commodity are accumulated to obtain the summation and scoring result value corresponding to each commodity. Combining with Table 6, the product corresponding to the first product access record is product A, the product corresponding to the third product access record is also product A, and the product corresponding to the Nth product access record is product C, and then all the products of product A are The scoring results are accumulated, that is, the scoring result of 0.025 obtained from the first product access record and the scoring result of 0.04 obtained from the third product access record are accumulated, and the corresponding scoring result of product A is 0.065. Then, the scoring results of other commodities involved are calculated in turn.
最后,根据所有商品的打分结果生成推荐列表,该推荐列表包括商品信息和商品对应的打分结果,其中,商品信息可以是商品名称和推荐序号。示例性的,推荐列表如表6所示:Finally, a recommendation list is generated according to the scoring results of all commodities, and the recommendation list includes commodity information and the scoring results corresponding to the commodities, wherein the commodity information may be the commodity name and the recommended serial number. Exemplarily, the recommended list is shown in Table 6:
表6Table 6
在得到推荐列表后,可以按照推荐要求,选择推荐列表中的前N个商品,组成第一推荐列表。示例性的,推荐要求可以是选择推荐列表中的前10个商品作为推荐商品。或者,将打分结果超过阈值的商品作为推荐商品。具体推荐要求可以根据实际需求调整,本申请对此不作限制。在得到第一推荐列表后,可以根据第一推荐列表中的商品信息和商品对应的打分结果为新用户推荐,或者将第一推荐列表与其它推荐列表结合为新用户推荐。After the recommendation list is obtained, the first N products in the recommendation list can be selected according to the recommendation requirements to form the first recommendation list. Exemplarily, the recommendation requirement may be to select the top 10 commodities in the recommendation list as the recommended commodities. Alternatively, products whose scoring results exceed the threshold are regarded as recommended products. The specific recommended requirements can be adjusted according to actual needs, which is not limited in this application. After the first recommendation list is obtained, the product information in the first recommendation list and the scoring result corresponding to the product may be recommended for new users, or the first recommendation list and other recommendation lists may be combined for new user recommendation.
具体的,603-604可以是终端设备执行的,还可以是服务器执行的。若603-604是服务器执行的,则在603之前,该方法还包括:服务器接收来自终端设备的获取推荐列表请求,该获取推荐列表请求包括新用户所使用的终端设备的型号,终端设备的型号为第一型号。在通过604得到第一推荐列表后,服务器将第一推荐列表发送至终端设备,终端设备基于第一推荐列表中的商品信息为新用户推荐商品。Specifically, 603-604 may be executed by a terminal device, or may be executed by a server. If 603-604 are executed by the server, before 603, the method further includes: the server receives a request for obtaining a recommendation list from the terminal device, where the request for obtaining a recommendation list includes the model of the terminal device used by the new user, the model of the terminal device for the first model. After obtaining the first recommendation list through 604, the server sends the first recommendation list to the terminal device, and the terminal device recommends commodities for the new user based on commodity information in the first recommendation list.
下面以图7为例对本申请实施例提供的另一种冷启动推荐方法进行说明,该方法还包括:Another cold start recommendation method provided by the embodiment of the present application is described below by taking FIG. 7 as an example, and the method further includes:
701、确定新用户访问第一应用所使用的终端设备的型号。701. Determine the model of the terminal device used by the new user to access the first application.
详细内容参见601。See 601 for details.
702、获取第二应用的版块访问记录。702. Acquire a section access record of the second application.
第二应用的版块访问记录可以是终端设备获取还可以是服务器获取。如果是终端设备获取,具体的获取方式可以是终端设备向第二应用的云服务器发送获取版块访问记录指令,第二应用的云服务器响应于获取版块访问记录指令,向终端设备发送第二应用的版块访问记录;还可以是第二应用的云服务器周期性的向所有安装第二应用的终端设备主动发送第二应用的版块访问记录;或者在第二应用的云服务器检测到第二应用的新的版块访问记录后,自动向所有安装第二应用的终端设备发送新的版块访问记录;又或者在终端设备下载第二应用的安装包时,第二应用的安装包中就自动携带,截止当前时刻,第二应用上的所有版块访问记录。如果是服务器获取,具体的获取方式为服务器向第二应用的云服务器发送获取版块访问记录指令,第二应用的云服务器响应于获取版块访问记录指令,向服务器发送第二应用的版块访问记录。The section access record of the second application may be obtained by the terminal device or obtained by the server. If it is acquired by a terminal device, the specific acquisition method may be that the terminal device sends an instruction to acquire the section access record to the cloud server of the second application. The block access record; it can also be that the cloud server of the second application periodically actively sends the block access record of the second application to all terminal devices where the second application is installed; or the cloud server of the second application detects a new update of the second application. After the section access record of the second application is saved, the new section access record is automatically sent to all terminal devices that install the second application; or when the terminal device downloads the installation package of the second application, it is automatically carried in the installation package of the second application. At the moment, access records of all sections on the second application. In the case of server acquisition, the specific acquisition method is that the server sends an instruction to acquire the block access record to the cloud server of the second application, and the cloud server of the second application sends the block access record of the second application to the server in response to the instruction to acquire the block access record.
第二应用可以是社区类应用,例如社区俱乐部APP。The second application may be a community application, such as a community club APP.
社区俱乐部APP可以提供多个兴趣版块,供用户交流互动。多个兴趣版块可以包括:手机版块、智慧生活版块、界面设计(User Interface Design,UI)版块、云服务版块、兴趣街区版块、游戏版块和线下俱乐部版块。其中,手机版块下面的帖子为不同手机型号的功能介绍;智慧生活版块下面的帖子为智能设备的功能介绍,智能设备可以是笔记本、平板、耳机音箱、智慧屏、路由和智能穿戴设备等;UI版块下面的帖子为与UI相关的功能介绍;云服务版块下面的帖子为与云服务相关的功能介绍;兴趣街区版块下面的帖子为不同兴趣爱好的介绍,例如,爱美食、爱旅行、爱运动、爱数码、爱主题、爱游戏、爱摄影和慢生活等。游戏版块下面的帖子为游戏介绍;线下俱乐部版块下面的帖子为线下活动介绍。The Community Club APP can provide multiple interest sections for users to communicate and interact. Multiple interest sections may include: mobile phone section, smart life section, user interface design (UI) section, cloud service section, interest block section, game section and offline club section. Among them, the posts under the mobile phone section are the function introductions of different mobile phone models; the posts under the smart life section are the function introductions of smart devices, which can be notebooks, tablets, earphone speakers, smart screens, routers, and smart wearable devices, etc.; UI The posts under the section are introductions of UI-related functions; the posts under the cloud service section are introductions of functions related to cloud services; the posts under the interest block section are introductions of different hobbies, such as love of food, love of travel, and love of sports , love digital, love themes, love games, love photography and slow life, etc. The post under the game section is the introduction of the game; the post under the offline club section is the introduction of offline activities.
版块访问记录也可以通过页面埋点技术获取。关于页面埋点具体可参考402处的描述,这里就不再赘述。Section access records can also be obtained through page embedding technology. For details on page embedding, please refer to the description at 402, and details will not be repeated here.
版块访问记录是指在预设时长内,第二应用存储的用户在社区类应用中对各个版块的访问情况的记录。版块访问记录可以包括版块行为记录和版块设备记录。The section access record refers to the record of the user's access to each section in the community application stored by the second application within a preset period of time. Board access records can include board behavior records and board device records.
版块行为记录是指用户与版块的第二交互行为的记录。例如,版块行为记录可以包括用户的名称、用户浏览的版块名称、用户浏览的版块名称下的帖子名称、用户与版块的第二交互行为,以及第二交互行为发生时间的记录。用户与版块的第二交互行为可以包括用户浏览版块下的帖子、用户在帖子下面的评论、用户对帖子下面的评论的回复、用户分享帖子、用户收藏帖子、用户对帖子的点赞、用户点击评论帖子的用户的详细信息、用户点击评论帖子的用户发布的帖子、用户对帖子的打赏。The forum behavior record refers to the record of the user's second interaction behavior with the forum. For example, the section behavior record may include the user's name, the section name browsed by the user, the post name under the section name browsed by the user, the user's second interaction with the section, and a record of the time when the second interaction occurred. The second interaction behavior of the user with the forum may include the user browsing the posts under the forum, the user's comment below the post, the user's reply to the comment below the post, the user sharing the post, the user bookmarking the post, the user liking the post, the user clicking The details of the user who commented on the post, the post published by the user who clicked on the commented post, the user's tip for the post.
版块设备记录可以是在用户访问第二应用时,用户所使用的终端设备的记录。例如,版块设备记录可以包括用户的名称、用户使用的终端设备型号、设备运行第二应用的时间。版块访问记录的具体内容可以参考表1中的内容,本申请对此不再详细赘述。The board device record may be a record of the terminal device used by the user when the user accesses the second application. For example, the board device record may include the user's name, the terminal device model used by the user, and the time when the device runs the second application. For the specific content of the block access record, reference may be made to the content in Table 1, which will not be described in detail in this application.
并且,版块访问记录可以只包括第二应用的登录用户的版块访问记录,还可以包括第二应用的非登陆用户的版块访问记录。其中,登陆用户是指在访问第二应用注册过账户,并且登录了该账号进行访问的用户。非登陆用户是指在访问第二应用时,没有登录账号便进行访问的用户。在用户访问第二应用时,第二应用通过弹窗提醒用户登录第二应用,若用户拒绝登录第二应用,则以非登陆用户进行标记并编号,然后记录该非登陆用户所有的第二交互行为,直到该非登陆用户退出第二应用为止。In addition, the section access record may only include the section access record of the logged-in user of the second application, and may also include the section access record of the non-login user of the second application. The login user refers to a user who has registered an account when accessing the second application, and has logged into the account for access. A non-login user refers to a user who accesses the second application without a login account when accessing the second application. When the user accesses the second application, the second application reminds the user to log in to the second application through a pop-up window. If the user refuses to log in to the second application, it will be marked and numbered with the non-login user, and then all the second interactions of the non-login user will be recorded. behavior until the non-login user exits the second application.
703、在版块访问记录中,确定出第一型号对应的第一版块访问记录。703. In the block access record, determine the first block access record corresponding to the first model.
第二应用的版块访问记录可以有多条,并且随着第二应用的上线时间越长,第二应用的版块访问记录条数也越多。从多条版块访问记录中,选出使用第一型号的设备的版块访问记录,得到第一版块访问记录。第一版块访问记录的具体内容可以参考表2中的内容,本申请对此不再赘述。There may be multiple access records of the second application, and as the online time of the second application is longer, the number of access records of the second application will increase. From the plurality of section access records, the section access records using the first model of equipment are selected to obtain the first section access records. For the specific content of the access record of the first block, reference may be made to the content in Table 2, which will not be repeated in this application.
704、基于第一版块访问记录,确定出用户偏好版块和用户偏好版块对应的用户群。704. Determine the user preference section and the user group corresponding to the user preference section based on the access record of the first section.
基于第一版块访问记录中每条版块访问记录的用户与版块的第二交互行为和第二交互行为的发生时间,对每条版块访问记录中涉及的版块进行打分,从而得到用户偏好的版块。Based on the second interaction behavior and the occurrence time of the second interaction between the user and the block in each block access record in the first block access record, the blocks involved in each block access record are scored, so as to obtain the user's preferred block.
示例性的,参见604,对版块的打分分成两方面,一方面是根据每条版块访问记录中的用户与版块的第二交互行为打分,另一方面是根据每条版块访问记录中的第二交互行为的发生时间打分。最后,将上述两方面的打分结果相乘,得到每条版块访问记录中涉及的版块的最终打分结果。Exemplarily, referring to 604, the scoring of the forum is divided into two aspects, on the one hand, the score is based on the second interaction behavior between the user and the forum in each forum access record, and on the other hand, the score is based on the second interaction behavior in each forum access record. The time-to-occurrence of the interaction is scored. Finally, multiply the scoring results of the above two aspects to obtain the final scoring results of the sections involved in each section access record.
第二交互行为中的用户浏览版块中的贴子的行为,对应的打分结果是0.25;用户在版块中的帖子下面的评论的行为,对应的打分结果是0.3;用户分享版块中的帖子的行为,对应的打分结果是0.4;用户收藏版块中的帖子的行为,对应的打分结果是0.4、用户对版块中的帖子的点赞的行为,对应的打分结果是0.6。其它用户与版块的第二交互行为的打分结果可结合实际需求设定,本申请对此不作限制。In the second interaction behavior, the user's behavior of browsing the posts in the forum, the corresponding score is 0.25; the user's behavior of commenting under the post in the forum, the corresponding score is 0.3; the user's behavior of sharing the posts in the forum , the corresponding scoring result is 0.4; the behavior of the user's favorite post in the forum, the corresponding scoring result is 0.4, and the behavior of the user liking the post in the forum, the corresponding scoring result is 0.6. The scoring results of the second interaction behavior between other users and the forum can be set in combination with actual needs, which is not limited in this application.
第二交互行为的发生时间打分,具体可以根据上述604中的时间衰减函数计算。The score of the occurrence time of the second interaction behavior may be specifically calculated according to the time decay function in 604 above.
在确定出用户与版块的第二交互行为的打分结果和第二交互行为的发生时间的打分结果后,每条版块访问记录中涉及的版块的打分结果满足如下公式:After determining the scoring result of the second interaction behavior between the user and the forum and the scoring result of the occurrence time of the second interaction behavior, the scoring result of the forum involved in each forum access record satisfies the following formula:
A1=B1*C1A1=B1*C1
其中,A1为每条版块访问记录中涉及的版块的打分结果,B1为每条版块访问记录中的第二交互行为的打分结果,C1为每条版块访问记录中的第二交互行为发生时间的打分结果。Among them, A1 is the scoring result of the section involved in each section access record, B1 is the scoring result of the second interaction behavior in each section access record, and C1 is the occurrence time of the second interaction behavior in each section access record. Scoring results.
依次计算所有版块访问记录中涉及的版块的打分结果,然后基于版块名称,对同一个版块的打分结果进行累加,从而得到涉及的所有版块的最终打分。接着根据所有版块的打分结果,对版块进行排序,并根据排序结果,将排序前3的版块作为同一机型的用户偏好版块。The scoring results of the sections involved in the access records of all sections are calculated in turn, and then based on the section name, the scoring results of the same section are accumulated to obtain the final scores of all involved sections. Then, according to the scoring results of all the sections, the sections are sorted, and according to the sorting results, the top 3 sections are used as the user preference section of the same model.
再从第一版块访问记录中,基于用户偏好版块的名称,筛选出仅包含用户偏好版块的第二版块访问记录。结合702可知,每条版块访问记录均包括用户的名称。然后记录第二版块访问中的每条版块访问记录中的用户的名称,接着对重复的名称进行删除,得到的用户偏好版块对应的用户群。Then, from the access records of the first panel, based on the name of the user preference panel, the access records of the second panel that only contain the user preference panel are filtered out. Combining with 702, it can be known that each section access record includes the user's name. Then record the name of the user in the access record of each section in the second section visit, and then delete the duplicate name to obtain the user group corresponding to the user preference section.
首先通过同机型进行第一次筛选,筛选出与新用户所使用的终端设备型号一致的设备的版块访问记录。然后对筛选出的版块访问记录中的版块进行打分,再筛选出用户偏好版块。最后基于用户偏好的版块,为用户做个性化推荐,将更能满足用户需求。First, perform the first screening through the same model, and filter out the access records of the device with the same model as the terminal device used by the new user. Then, the sections in the screened section access records are scored, and then the user preference sections are screened out. Finally, based on the user's preference section, making personalized recommendations for users will better meet the needs of users.
705、基于用户群中每个用户的名称,从商品访问记录中确定出用户群中每个用户偏好的商品,并基于用户偏好的商品生成第二推荐列表。705. Based on the name of each user in the user group, determine the commodity preferred by each user in the user group from the commodity access record, and generate a second recommendation list based on the commodity preferred by the user.
根据用户群中每个用户的名称,从商品访问记录中索引到用户群中每个用户的商品访问记录,然后根据每个用户的商品访问记录,对每条商品访问记录涉及的商品进行打分,具体打分过程可以参考604, 接着基于打分结果进行排序,得到用户群中的用户偏好的商品。最后根据用户偏好的商品的商品信息和商品对应的打分结果生成第二推荐列表,得出的第二推荐列表可以直接用于为新用户推荐,或者将第二推荐列表与其它推荐列表结合为新用户推荐。According to the name of each user in the user group, the commodity access records of each user in the user group are indexed from the commodity access records, and then the commodities involved in each commodity access record are scored according to the commodity access records of each user. For the specific scoring process, please refer to 604, and then sort based on the scoring results to obtain the products preferred by the users in the user group. Finally, a second recommendation list is generated according to the product information of the product preferred by the user and the corresponding scoring result of the product. The obtained second recommendation list can be directly used to recommend new users, or the second recommendation list can be combined with other recommendation lists to form a new recommendation list. User recommendation.
其中,703-705可以是终端设备执行的,还可以是服务器执行的。若703-705是服务器执行的,则在703之前,该方法还包括:服务器接收来自终端设备的获取推荐列表请求,该获取推荐列表请求包括新用户所使用的终端设备的型号,终端设备的型号为第一型号。在通过705得到第二推荐列表后,服务器将第二推荐列表发送至终端设备,终端设备可以基于第二推荐列表中的商品信息为新用户推荐商品。Among them, 703-705 may be executed by the terminal device, and may also be executed by the server. If 703-705 are performed by the server, before 703, the method further includes: the server receives a request for obtaining a recommendation list from the terminal device, where the request for obtaining a recommendation list includes the model of the terminal device used by the new user, the model of the terminal device for the first model. After obtaining the second recommendation list through 705, the server sends the second recommendation list to the terminal device, and the terminal device may recommend commodities for the new user based on commodity information in the second recommendation list.
下面以图8为例对本申请实施例提供的另一种冷启动推荐方法进行说明,该方法还包括:Another cold start recommendation method provided by the embodiment of the present application is described below by taking FIG. 8 as an example, and the method further includes:
801、确定新用户访问第一应用所使用的终端设备的型号。801. Determine the model of the terminal device used by the new user to access the first application.
详细内容参见601。See 601 for details.
802、获取第二应用的版块访问记录。802. Obtain a section access record of the second application.
详细内容参见702。See 702 for details.
803、在版块访问记录中,确定出第一型号对应的第一版块访问记录。803. In the block access record, determine the first block access record corresponding to the first model.
详细内容参见703。See 703 for details.
804、基于第一版块访问记录中每条版块访问记录涉及的帖子,确定每条版块访问记录涉及的帖子对应的第一类型词,为帖子和第一类型词创建映射关系。804. Based on the posts involved in each section access record in the first section access record, determine a first type word corresponding to the post involved in each section access record, and create a mapping relationship between the post and the first type word.
其中,第一类型词为帖子中涉及到的与产品名称相关的词。Among them, the first type of words are words related to product names involved in the post.
第一版块访问记录为使用第一型号的终端设备的版块访问记录。查看第一版块访问记录,可以获知第一版块访问记录中每条版块访问记录中涉及的帖子。再通过查阅帖子,能够得出每个帖子中涉及到的与产品名称相关的词,与产品名称相关的词即为第一类型词。并为帖子和与帖子对应的第一类型词建立映射关系。示例性的,若第一版块访问记录中涉及的帖子是手机版块下的帖子,则该帖子中与产品名称相关的词(即第一类型词)可以是手机名称。The first section access record is the section access record using the terminal device of the first model. View the access record of the first forum, you can learn the posts involved in each access record of the forum in the access record of the first forum. Then, by looking up the posts, words related to the product name involved in each post can be obtained, and the words related to the product name are the first type words. And establish a mapping relationship between the post and the first type word corresponding to the post. Exemplarily, if the post involved in the access record of the first section is a post in the mobile section, the word related to the product name (ie, the first type word) in the post may be the mobile phone name.
805、基于第一版块访问记录,确定出用户偏好的帖子。805. Determine, based on the access record of the first section, a post preferred by the user.
结合702可知,第一版块访问记录中包括用户与版块的第二交互行为和第二交互行为的发生时间,其中,用户与版块的第二交互行为通常为用户与版块下的帖子发生的交互行为,即用户与版块的第二交互行为和第二交互行为的发生时间,可以认为是用户与帖子的第二交互行为和第二交互行为的发生时间。然后对第一版块访问记录中的每条版块访问记录中的用户与帖子的第二交互行为和第二交互行为的发生时间进行打分,以确定出每条版块访问记录中涉及的帖子的打分结果,最后对同一帖子的打分结果进行累加,从而得到每个帖子的最终打分值。其中,用户与帖子的第二交互行为和第二交互行为的发生时间的打分可以参考704,在此不再赘述。Combining with 702, it can be seen that the first section access record includes the second interaction between the user and the section and the occurrence time of the second interaction, wherein the second interaction between the user and the section is usually the interaction between the user and the posts under the section. , that is, the occurrence time of the second interaction behavior and the second interaction behavior between the user and the forum, which can be considered as the occurrence time of the second interaction behavior and the second interaction behavior between the user and the post. Then, score the second interaction behavior of the user and the post and the occurrence time of the second interaction behavior in each section access record in the first section access record, so as to determine the scoring result of the post involved in each section access record , and finally accumulate the scoring results of the same post to obtain the final scoring value of each post. Wherein, for the scoring of the second interaction behavior between the user and the post and the occurrence time of the second interaction behavior, reference may be made to 704, which will not be repeated here.
接着根据帖子的打分结果,对帖子进行排序,并根据排序结果,筛选出同一机型的用户偏好帖子。示例性,可以选择排序结果中的前10个帖子作为用户偏好帖子。Then, according to the scoring results of the posts, the posts are sorted, and according to the sorting results, the user preference posts of the same model are filtered out. Exemplarily, the top 10 posts in the sorting result may be selected as user preference posts.
806、根据映射关系,确定出用户偏好的帖子对应的第一类型词。806. According to the mapping relationship, determine the first type word corresponding to the post preferred by the user.
结合804,在确定出用户偏好的帖子后,根据映射关系,得出用户偏好的帖子对应的第一类型词。Combining with 804, after the user's preferred post is determined, according to the mapping relationship, the first type word corresponding to the user's preferred post is obtained.
807、利用模糊匹配算法,确定第一类型词对应的商品信息,并根据第一类型词对应的商品信息,生成第四推荐列表。807. Use a fuzzy matching algorithm to determine commodity information corresponding to the first type word, and generate a fourth recommendation list according to the commodity information corresponding to the first type word.
示例性的,可以通过FuzzyWuzzy来实现模糊匹配。FuzzyWuzzy是一个简单易用的模糊字符串匹配工具包。它依据编辑距离(Levenshtein Distance)算法,来计算两个序列之间的差异。编辑距离是指两个字符串之间,由一个转成另一个所需的最少编辑操作次数。编辑操作可以包括将一个字符替换成另一个字符,插入一个字符,删除一个字符。一般来说,编辑距离越小,两个序列的相似度越大。Exemplarily, fuzzy matching can be implemented through FuzzyWuzzy. FuzzyWuzzy is a simple and easy to use fuzzy string matching toolkit. It calculates the difference between two sequences based on the edit distance (Levenshtein Distance) algorithm. Edit distance is the minimum number of edit operations required to convert two strings from one to the other. Editing operations can include replacing one character with another, inserting a character, and deleting a character. In general, the smaller the edit distance, the greater the similarity between the two sequences.
FuzzyWuzzy可以通过简单匹配(Ratio)、非完全匹配(Partial Ratio)、忽略顺序匹配(Token Sort Ratio)和去重子集匹配(Token Set Ratio)这四个函数中的任一个进行模糊匹配,从而根据第一类型词匹配到商品。FuzzyWuzzy can perform fuzzy matching by any one of the four functions: simple matching (Ratio), partial matching (Partial Ratio), ignoring order matching (Token Sort Ratio), and deduplication subset matching (Token Set Ratio), thereby according to The first type word matches the item.
例如,用户偏好的帖子为下述的帖子1、帖子2和帖子3。帖子1的标题为:【摄影教程】一张好看的INS青橙风的夜景是如何拍出来的,商品名称A。帖子2的标题为:旗舰机到底是什么样的,商品名称A告诉你答案。帖子3的标题为:五月之商品名称B夜景街拍。For example, the user's preferred posts are the
帖子1对应的第一类型词是“商品名称A”,帖子2对应的第一类型词是“商品名称A”,帖子3对应的第一类型词是“商品名称B”。然后将帖子1对应的“商品名称A”, 帖子2对应的“商品名称A”, 帖子3对应的“商品名称B”,依次通过FuzzyWuzzy关联到垂域的产品目录树上。或者在确定出所有帖子的第一类型词后,将所有帖子的第一类型词一起通过FuzzyWuzzy关联到垂域的产品目录树名称。例如,若“商品名称A”为“某耀Magic4 Pro”,商品B为“V30”,则根据FuzzyWuzzy可以将“商品名称A”匹配到产品“某耀Magic4 Pro”,将“商品名称B”匹配到“某耀V30”。The first type word corresponding to post 1 is "product name A", the first type word corresponding to post 2 is "product name A", and the first type word corresponding to post 3 is "product name B". Then, the "commodity name A" corresponding to post 1, the "commodity name A" corresponding to post 2, and the "commodity name B" corresponding to post 3 are related to the product catalog tree of the vertical domain through FuzzyWuzzy in turn. Or after the first type words of all the posts are determined, the first type words of all the posts are related to the product directory tree name of the vertical domain together through FuzzyWuzzy. For example, if "commodity name A" is "A Yao Magic4 Pro" and commodity B is "V30", then according to FuzzyWuzzy, "commodity name A" can be matched to the product " Yaoyao Magic4 Pro", and "commodity name B" can be matched to "A Yaoyao V30".
其中,垂域是指在一个大领域下,垂直细分出的小领域。垂直指纵向延伸,而不是横向扩展,细分则是在垂直行业板块里面,再挑选主要的业务深度发展。以手机为例,手机是一个垂直领域,可细分为某为手机、某耀手机、某米手机、某果手机等。Among them, vertical domain refers to a small domain that is vertically subdivided under a large domain. Vertical refers to vertical extension, not horizontal expansion. Segmentation refers to the in-depth development of major businesses in the vertical industry sector. Taking mobile phones as an example, mobile phones are a vertical field, which can be subdivided into certain mobile phones, certain Yao mobile phones, certain Mi mobile phones, and certain fruit mobile phones.
产品目录树用于表征某一品牌下所有产品的层级关系,这样可以清晰地描述该品牌下所有产品的发展,进一步展示出产品的优劣性。产品的层级关系可以是根据产品零部件的性能确定的。The product catalog tree is used to represent the hierarchical relationship of all products under a brand, so that the development of all products under the brand can be clearly described, and the pros and cons of the products can be further shown. The hierarchical relationship of products can be determined according to the performance of product components.
通过FuzzyWuzzy匹配到商品信息后,将匹配到的商品信息按照用户偏好的帖子的打分结果进行排序,进而生成第四推荐列表。后续可以根据第四推荐列表中的商品信息和商品对应的打分结果为新用户推荐;或者将第四推荐列表与其它推荐列表结合为新用户推荐。After the product information is matched by FuzzyWuzzy, the matched product information is sorted according to the scoring result of the posts preferred by the user, and then a fourth recommendation list is generated. Subsequent recommendations may be made for new users according to the product information in the fourth recommendation list and the scoring results corresponding to the products; or the fourth recommendation list may be combined with other recommendation lists to be recommended for new users.
其中,803-807可以是终端设备执行的,还可以是服务器执行的。若803-807是服务器执行的,则在803之前,该方法还包括:服务器接收来自终端设备的获取推荐列表请求,该获取推荐列表请求包括新用户所使用的终端设备的型号,终端设备的型号为第一型号。在通过807得到第四推荐列表后,服务器将第四推荐列表发送至终端设备,终端设备基于第四推荐列表中的商品信息为新用户推荐商品。Among them, 803-807 may be executed by the terminal device, and may also be executed by the server. If 803-807 are performed by the server, before 803, the method further includes: the server receives a request for obtaining a recommendation list from the terminal device, where the request for obtaining a recommendation list includes the model of the terminal device used by the new user, the model of the terminal device for the first model. After obtaining the fourth recommendation list through 807, the server sends the fourth recommendation list to the terminal device, and the terminal device recommends products for the new user based on the product information in the fourth recommendation list.
下面以图9为例对本申请实施例提供的另一种冷启动推荐方法进行说明,该方法还包括:Another cold start recommendation method provided by the embodiment of the present application is described below by taking FIG. 9 as an example, and the method further includes:
901、确定新用户访问第一应用所使用的终端设备的型号。901. Determine the model of the terminal device used by the new user to access the first application.
详细内容参见601。See 601 for details.
902、获取第二应用的版块访问记录。902. Obtain a section access record of the second application.
详细内容参见702。See 702 for details.
903、在版块访问记录中,确定出第一型号对应的第一版块访问记录。903. In the block access record, determine the first block access record corresponding to the first model.
详细内容参见703。See 703 for details.
904、基于第一版块访问记录中每条版块访问记录涉及的帖子,确定每条版块访问记录涉及的帖子对应的第二类型词。904. Based on the posts involved in each of the forum access records in the first forum access record, determine a second type word corresponding to the posts involved in each of the forum access records.
其中,第二类型词为帖子中涉及到的与产品特性相关的词。Among them, the second type of words are words related to product characteristics involved in the post.
第一版块访问记录为使用第一型号的终端设备的版块访问记录。查看第一版块访问记录,可以获知第一版块访问记录中每条版块访问记录中涉及的帖子。再通过查阅帖子,能够得出每个帖子中涉及到的与产品特性相关的词,与产品特性相关的词即为第二类型词。示例性的,若第一版块访问记录中涉及的帖子是手机版块下的帖子,则该帖子中与产品特性相关的词(即第二类型词)可以是芯片、相机、内存和电池等。The first section access record is the section access record using the terminal device of the first model. View the access record of the first forum, you can learn the posts involved in each access record of the forum in the access record of the first forum. Then, by looking up the posts, it is possible to obtain the words related to the product characteristics involved in each post, and the words related to the product characteristics are the second type words. Exemplarily, if the post involved in the access record of the first section is a post under the mobile section, the words related to product characteristics (ie, the second type word) in the post may be chips, cameras, memory, and batteries.
905、按照所有的第二类型词出现的频次进行排序,生成第一排序结果,并基于第一排序结果中的第二类型词关联商品卖点,以生成第五推荐列表。905. Sort all the second type words according to the frequency of occurrence, generate a first sorting result, and associate the selling points of the commodities based on the second type words in the first sorting result to generate a fifth recommendation list.
其中,第五推荐列表中包括商品卖点对应的商品信息。The fifth recommendation list includes commodity information corresponding to the commodity selling point.
根据第二类型词出现的频次,将所有第二类型词进行排序,得到第一排序结果。通过对帖子中第二类型词出现的频次进行统计,得到第一排序结果,第一排序结果可以是:相机>芯片>电池。According to the frequency of occurrence of the second type words, all the second type words are sorted to obtain the first sorting result. By counting the frequency of the second type of words in the post, the first sorting result is obtained, and the first sorting result may be: camera>chip>battery.
其中,第二类型词可以是根据产品词典确定出的,还可以是根据训练后的模型确定出的。通常产品词典包括产品和产品特性,在确定出帖子介绍的产品后,即可得出第二类型词。或者,将帖子输入到训练后的模型中,模型输出帖子对应的第二类型词。模型的训练过程为:获取多篇帖子和帖子对应的第二类型词,并且每篇帖子的第二类型词是人为标注的。然后将多篇帖子输入到初始模型,得到每篇帖子对应的初始第二类型词,最后通过损失函数修正初始模型,使得输出的第二类型词和人为标注的第二类型词之间的偏差符合阈值,从而得到训练后的模型。Wherein, the second type of words may be determined according to the product dictionary, or may be determined according to the trained model. Usually, the product dictionary includes products and product characteristics. After determining the products introduced by the post, the second type of words can be obtained. Alternatively, the post is fed into the trained model, and the model outputs the second type word corresponding to the post. The training process of the model is as follows: obtaining multiple posts and their corresponding second-type words, and the second-type words of each post are manually annotated. Then multiple posts are input into the initial model to obtain the initial second-type words corresponding to each post, and finally the initial model is corrected by the loss function, so that the deviation between the output second-type words and the artificially-labeled second-type words is consistent with Threshold to get the trained model.
终端设备中可以存储商品卖点数据库,商品卖点数据库中包括商城中所有的商品以及每件商品的商品卖点。将商品卖点数据库中的商品卖点与第一排序结果中的每个第二类型词进行模糊匹配,以得到每个第二类型词对应的商品卖点。一个第二类型词可能匹配到多个商品的商品卖点。接着根据多个商品中每个商品的商品卖点的性能,对商品进行排序,以得到第二类型词对应的初始商品排序。A commodity selling point database may be stored in the terminal device, and the commodity selling point database includes all commodities in the mall and commodity selling points of each commodity. Fuzzy matching is performed between the commodity selling points in the commodity selling point database and each second type word in the first sorting result, so as to obtain the commodity selling point corresponding to each second type word. A second type word may match the selling point of multiple products. Then, according to the performance of the commodity selling point of each commodity in the plurality of commodities, the commodities are sorted to obtain the initial commodity ranking corresponding to the second type word.
结合904,第一排序结果中有多个第二类型词,将每个第二类型词与商品卖点匹配,一个第二类型词可以匹配到多个商品卖点。然后将匹配到的商品卖点,按照商品卖点的性能从高到低进行排序。由于商品卖点可以直接对应到商品上,那么可以将商品卖点的排序结果转化为商品的排序结果。所以一个第二类型词可以对应一个商品排序结果。Combining 904, there are multiple second-type words in the first sorting result, each second-type word is matched with a commodity selling point, and one second-type word can be matched with multiple commodity selling points. Then, the matched commodity selling points are sorted according to the performance of the commodity selling points from high to low. Since the selling points of commodities can be directly corresponded to the commodities, the sorting result of the selling points of the commodities can be converted into the sorting results of the commodities. Therefore, a second type word can correspond to a product sorting result.
由于第一排序结果中有多个第二类型词,那么可以得到多个商品排序结果。在得到多个商品排序结果后,如果多个商品排序结果不一致,则以第一排序结果中的第二类型词的排序结果为主,对多个商品排序结果进行调整,得到最终的商品排序结果,最终的商品排序结果即为第五推荐列表。Since there are multiple second-type words in the first sorting result, multiple commodity sorting results can be obtained. After obtaining multiple commodity sorting results, if the multiple commodity sorting results are inconsistent, the sorting results of the second type words in the first sorting result are used as the main, and the multiple commodity sorting results are adjusted to obtain the final commodity sorting result. , the final product sorting result is the fifth recommendation list.
示例性的,商品一的商品卖点是:四曲面屏、5000万主摄+5000万超广角镜头+6400万像素潜望式长焦镜头、4800mAh电池、66W超级快充以及全新一代骁龙8移动平台芯片。商品二的商品卖点是:前后对称双曲屏、1亿像素相机+5000万超广角镜头、4800mAh电池、66W超级快充、多镜录像隔空换镜以及高通骁龙™778G芯片等。商品三的商品卖点是:双曲面屏、5000万主摄+800万超广角镜头、4000mAh电池、66W超级快充、天玑1000+芯片。Exemplarily, the product selling point of
前述的第一排序结果为相机>芯片>电池。将第一排序结果中的第二类型词与上述商品一、商品二、商品三中的商品卖点进行关联。对于第一排序结果中的相机而言,关联到的商品一的商品卖点是:5000万主摄+5000万超广角镜头+6400万像素潜望式长焦镜头;关联到的商品二的商品卖点是:1亿像素相机+5000万超广角镜头;关联到的商品三的商品卖点是:5000万主摄+800万超广角镜头。结合商品的商品卖点性能,相机对应的商品排序为:商品二>商品一>商品三。The aforementioned first sorting result is camera>chip>battery. The second type word in the first sorting result is associated with the commodity selling points in the above-mentioned
对于第一排序结果中的芯片而言,关联到商品一的商品卖点是:全新一代骁龙8移动平台芯片;关联到商品二的商品卖点是:高通骁龙™778G芯片;关联到商品三的商品卖点是:天玑1000+芯片。结合商品的商品卖点性能,芯片对应的商品排序为:商品一>商品二>商品三。For the chips in the first sorting result, the selling point of the product associated with the first product is: the new generation of Snapdragon 8 mobile platform chip; the selling point of the product associated with the second product is: Qualcomm Snapdragon™ 778G chip; the product associated with the third product The selling point of the product is: Dimensity 1000+ chip. Combining the commodity selling point performance of the commodity, the order of commodities corresponding to the chip is:
对于第一排序结果中的电池而言,关联到商品一的商品卖点是:4800mAh电池+66W超级快充;关联到商品二的商品卖点是:4800mAh电池+66W超级快充;关联到商品三的商品卖点是:4000mAh电池+66W超级快充。结合商品的商品卖点性能,电池对应的商品排序为:商品一=商品二>商品三。For the batteries in the first sorting result, the selling point of the product associated with the first item is: 4800mAh battery + 66W super fast charge; the selling point of the product associated with the second item is: 4800mAh battery + 66W super fast charge; the product associated with the third item The selling point of the product is: 4000mAh battery + 66W super fast charge. Combining the product selling point performance of the product, the order of the products corresponding to the battery is: product one = product two > product three.
结合上述可知,相机、芯片和电池关联到的商品排序有差异。在这种情况下,以第一排序结果中每个第二类型词的排序为主,每个第二类型词关联到的商品排序为辅,将多个商品排序结果调整为一个商品排序结果,从而得到第五推荐列表,第五推荐列表中的商品排序为:商品二>商品一>商品三。Combining the above, it can be seen that the order of commodities associated with cameras, chips and batteries is different. In this case, the sorting of each second-type word in the first sorting result is the main, and the commodity sorting associated with each second-type word is supplementary, and the multiple commodity sorting results are adjusted into one commodity sorting result, Thereby, a fifth recommendation list is obtained, and the order of commodities in the fifth recommendation list is: commodity 2 >
通过对第一版块访问记录中的每条版块访问记录涉及的帖子进行处理,得到多个第二类型词。然后根据第二类型词出现的频次进行排序,得到第一排序结果。接着,将第一排序结果中的每个第二类型词与商品卖点数据库中的商品卖点进行模糊匹配,将每个第二类型词与商品的商品卖点关联起来,关联起来后,可以根据商品卖点的性能,来确定出为每个第二类型词对应的商品排序。最后,以第一排序结果中的第二类型词的排序为主,以每个第二类型词对应的商品排序为辅,生成最终的第五推荐列表。后续可以根据第五推荐列表中的商品信息为新用户推荐商品,或者将第五推荐列表与其它推荐列表结合为新用户推荐。A plurality of second type words are obtained by processing the posts involved in each section access record in the first section access record. Then, it is sorted according to the frequency of the second type of words to obtain the first sorting result. Next, fuzzy matching is performed between each second type word in the first sorting result and the commodity selling point in the commodity selling point database, and each second type word is associated with the commodity selling point of the commodity. performance to determine the ordering of items corresponding to each second type word. Finally, the final fifth recommendation list is generated based on the sorting of the second type words in the first sorting result, supplemented by the sorting of the commodities corresponding to each second type word. Subsequently, products may be recommended for new users according to the product information in the fifth recommendation list, or the fifth recommendation list may be combined with other recommendation lists to be recommended for new users.
其中,903-905可以是终端设备执行的,还可以是服务器执行的。若903-905是服务器执行的,则在903之前,该方法还包括:服务器接收来自终端设备的获取推荐列表请求,该获取推荐列表请求包括新用户所使用的终端设备的型号,终端设备的型号为第一型号。在通过905得到第五推荐列表后,服务器将第五推荐列表发送至终端设备,终端设备可以基于第五推荐列表中的商品信息为新用户推荐商品。Among them, 903-905 may be executed by the terminal device, and may also be executed by the server. If 903-905 are performed by the server, before 903, the method further includes: the server receives a request for obtaining a recommendation list from the terminal device, where the request for obtaining a recommendation list includes the model of the terminal device used by the new user, the model of the terminal device for the first model. After obtaining the fifth recommendation list through 905, the server sends the fifth recommendation list to the terminal device, and the terminal device may recommend commodities for the new user based on commodity information in the fifth recommendation list.
下面以图10为例对本申请实施例提供的另一种冷启动推荐方法进行说明,该方法还包括:Another cold start recommendation method provided by the embodiment of the present application is described below by taking FIG. 10 as an example, and the method further includes:
1001、确定新用户访问第一应用所使用的终端设备的型号。1001. Determine the model of the terminal device used by the new user to access the first application.
详细内容参见601。See 601 for details.
1002、获取第一应用的商品访问记录。1002. Acquire a commodity access record of the first application.
详细内容参见602。See 602 for details.
1003、基于终端设备的型号,对第一应用的商品访问记录进行区分,并基于区分后的第一应用的商品访问记录,得到每种型号对应的用户行为序列。1003. Distinguish the commodity access records of the first application based on the model of the terminal device, and obtain a user behavior sequence corresponding to each model based on the differentiated commodity access records of the first application.
对第一应用的商品访问记录,按照用户设备记录中的设备型号进行区分。区分后,针对每个设备型号,建立用户行为序列P,P=[ p1, p2, p3, …]。用户行为序列P可以是在预设时间段内,根据该设备型号对应的第一应用的商品访问记录确定的。其中, p1, p2,p3表示产品粒度。产品粒度可以是所有产品池,以及每个产品池中各个级别的产品。例如,在手机产品池中,p1, p2, p3可以是折叠式手机、直立式手机、滑盖式手机、旋转式手机等等中的任一个。The commodity access records of the first application are distinguished according to the device models in the user device records. After distinguishing, for each device model, establish a user behavior sequence P, P=[ p1, p2, p3, …]. The user behavior sequence P may be determined according to the commodity access record of the first application corresponding to the device model within a preset time period. Among them, p1, p2, p3 represent the product particle size. Product granularity can be all product pools, as well as various levels of products within each product pool. For example, in the mobile phone product pool, p1, p2, p3 can be any one of a foldable mobile phone, a vertical mobile phone, a slide-type mobile phone, a rotary mobile phone, and the like.
1004、确定第一型号的相似设备型号。1004. Determine a similar device model of the first model.
确定任一设备型号的相似设备型号可以通过该设备的用户行为序列P与其他设备的用户行为序列P之间的相似度确定。具体的,可以通过计算该设备的用户行为序列P与另一个设备的用户行为序列P之间的余弦相似度确定。The similar device models of any device model can be determined by the similarity between the user behavior sequence P of the device and the user behavior sequences P of other devices. Specifically, it can be determined by calculating the cosine similarity between the user behavior sequence P of the device and the user behavior sequence P of another device.
示例性的,若待确定相似设备型号的产品是手机,可以将商城中其他型号的手机与该型号的手机进行相似度计算,以得到相似度计算结果。通过计算之后,可以得到多个相似度结果,通常可以选择相似度结果排名前3的设备型号作为相似设备型号。Exemplarily, if the product of the similar device model to be determined is a mobile phone, the similarity calculation may be performed on the mobile phone of other models in the mall and the mobile phone of this model to obtain the similarity calculation result. After calculation, multiple similarity results can be obtained. Usually, the top 3 device models in the similarity results can be selected as similar device models.
结合601可知,登录第一应用的新用户所使用的设备型号为第一型号,通过相似度计算,可以得出第一型号的相似设备型号,第一型号的相似设备型号可以包括多个,具体可根据实际情况选择,本申请对此不作限定。Combining with 601, it can be seen that the device model used by the new user logging in the first application is the first model. Through similarity calculation, the similar device models of the first model can be obtained. The similar device models of the first model can include multiple, specifically. It can be selected according to the actual situation, which is not limited in this application.
1005、确定相似设备型号对应的第二商品访问记录,并根据第二商品访问记录,得到第三推荐列表。1005. Determine a second product access record corresponding to the similar device model, and obtain a third recommendation list according to the second product access record.
其中,第三推荐列表包括商品信息和商品对应的打分结果。The third recommendation list includes product information and a scoring result corresponding to the product.
将第一应用的商品访问记录,按照设备型号进行区分,得到相似设备型号对应的第二商品访问记录。对第二商品访问记录中涉及的商品进行打分,得到相似设备型号对应的商品的打分结果。具体的打分过程可以参考604。然后按照商品的打分高低,对商品排序。结合1004可知,本申请选出3个相似设备型号,则本申请可以得出3个排序结果。Distinguish the commodity access records of the first application according to the device model to obtain a second commodity access record corresponding to a similar device model. The commodities involved in the second commodity access record are scored, and the scoring results of commodities corresponding to similar device models are obtained. For the specific scoring process, please refer to 604. Then, sort the items according to their ratings. Combining with 1004, it can be known that if the application selects 3 similar equipment models, the application can obtain 3 sorting results.
再基于每个相似设备型号与第一型号的相似度计算结果,将上述得到的3个排序结果按照相似度计算结果的大小,从高到低整体排序,得到第三推荐列表。后续可以根据第三推荐列表中的商品信息和商品对应的打分结果为新用户推荐商品,或者将第三推荐列表与其它推荐列表结合为新用户推荐。Then, based on the similarity calculation result between each similar device model and the first model, the three sorting results obtained above are sorted according to the size of the similarity calculation result, from high to low as a whole, to obtain a third recommendation list. Subsequently, products may be recommended for new users according to the product information in the third recommendation list and the scoring results corresponding to the products, or the third recommendation list may be combined with other recommendation lists to be recommended for new users.
其中,1003-1005可以是终端设备执行的,还可以是服务器执行的。若1003-1005是服务器执行的,则在1003之前,该方法还包括:服务器接收来自终端设备的获取推荐列表请求,该获取推荐列表请求包括新用户所使用的终端设备的型号,终端设备的型号为第一型号。在通过1005得到第三推荐列表后,服务器将第三推荐列表发送至终端设备,终端设备基于第三推荐列表中的商品信息为新用户推荐商品。Among them, 1003-1005 may be executed by the terminal device, and may also be executed by the server. If 1003-1005 are executed by the server, before 1003, the method further includes: the server receives a request for obtaining a recommendation list from the terminal device, where the request for obtaining a recommendation list includes the model of the terminal device used by the new user, the model of the terminal device for the first model. After obtaining the third recommendation list through 1005, the server sends the third recommendation list to the terminal device, and the terminal device recommends products for the new user based on the product information in the third recommendation list.
通过挖掘相似设备型号的用户偏好的商品,可以从全新的方面突破没有有效数据的困境,进而为用户推荐感兴趣的商品,从而解决冷启动问题。By mining the products preferred by users of similar device models, it is possible to break through the predicament of no valid data from a new aspect, and then recommend products of interest to users, thereby solving the cold start problem.
下面以图11为例对本申请实施例提供的另一种冷启动推荐方法进行说明,该方法包括4部分,分别是第一部分:第一推荐列表生成方法;第二部分:第二推荐列表、第四推荐列表、第五推荐列表的生成方法;第三部分:第三推荐列表的生成方法和第四部分:融合过程。Another cold start recommendation method provided by the embodiment of the present application is described below by taking FIG. 11 as an example. The method includes four parts, which are the first part: the first recommendation list generation method; the second part: the second recommendation list, the first recommendation list The generation method of the fourth recommendation list and the fifth recommendation list; the third part: the generation method of the third recommendation list and the fourth part: the fusion process.
其中,第一部分:第一推荐列表生成方法,具体是:当新用户登录第一应用时,可以通过第一应用的云服务器获取到第一应用的商品访问记录。然后根据新用户所使用的终端设备的型号,对商品访问记录进行区分,得到新用户所使用的终端设备的型号(第一型号)对应的第一商品访问记录,最后根据第一商品访问记录,得到第一推荐列表。第一推荐列表的详细生成过程参见601-604,此处不再详细赘述。The first part: a method for generating a first recommendation list, specifically: when a new user logs in to the first application, the commodity access record of the first application can be obtained through the cloud server of the first application. Then, according to the model of the terminal device used by the new user, the product access records are distinguished, and the first product access record corresponding to the model (first model) of the terminal device used by the new user is obtained. Finally, according to the first product access record, Get the first recommendation list. For the detailed generation process of the first recommendation list, refer to 601-604, which will not be described in detail here.
第二部分:第二推荐列表、第四推荐列表、第五推荐列表的生成方法,具体包括第二推荐列表的生成方法、第四推荐列表的生成方法和第五推荐列表的生成方法。The second part: the generation method of the second recommendation list, the fourth recommendation list, and the fifth recommendation list, specifically including the generation method of the second recommendation list, the generation method of the fourth recommendation list and the generation method of the fifth recommendation list.
第二推荐列表的生成方法为:通过第二应用的云服务器获取第二应用的版块访问记录,然后根据新用户所使用的终端设备的型号,对版块访问记录进行区分,得到新用户所使用的终端设备的型号(第一型号)对应的第一版块访问记录,接着根据第一版块访问记录,得到用户偏好版块和用户偏好版块对应的用户群。例如,用户偏好版块为A版块、B版块和C版块。A版块对应的是用户群a,B版块对应的是用户群b,C版块对应的是用户群c。再根据用户群中用户的名称和商品访问记录,确定出用户群中的用户偏好的商品,最后根据用户偏好的商品,生成第二推荐列表。第二推荐列表的详细生成过程参见701-705,此处不再详细赘述。The method for generating the second recommendation list is as follows: obtaining the block access records of the second application through the cloud server of the second application, and then distinguishing the block access records according to the model of the terminal device used by the new user to obtain the block access records used by the new user. The access record of the first section corresponding to the model of the terminal device (the first model), and then according to the access record of the first section, the user preference section and the user group corresponding to the user preference section are obtained. For example, the user preference sections are Section A, Section B, and Section C. Section A corresponds to user group a, section B corresponds to user group b, and section C corresponds to user group c. Then, according to the names of the users in the user group and the commodity access records, the commodities preferred by the users in the user group are determined, and finally a second recommendation list is generated according to the commodities preferred by the users. For the detailed process of generating the second recommendation list, refer to 701-705, which will not be described in detail here.
第四推荐列表的生成方法为:首先通过第二应用的云服务器获取第二应用的版块访问记录,其次根据新用户所使用的终端设备的型号,对版块访问记录进行区分,得到新用户所使用的终端设备的型号(第一型号)对应的第一版块访问记录,然后根据第一版块访问记录中每条版块访问记录涉及的帖子,分别确定每条版块访问记录涉及的帖子对应的第一类型词,并为帖子和第一类型词创建映射关系。接着根据第一版块访问记录,确定用户偏好的帖子。再根据映射关系,确定用户偏好的帖子对应的第一类型词,最后利用模糊匹配算法,确定第一类型词对应的商品信息,并根据第一类型词对应的商品信息,生成第四推荐列表。第四推荐列表的详细生成过程参见801-807,此处不再详细赘述。The method for generating the fourth recommendation list is as follows: first, obtain the section access records of the second application through the cloud server of the second application, and secondly, according to the model of the terminal device used by the new user, distinguish the section access records to obtain the section access records used by the new user. The first section access record corresponding to the model (first model) of the terminal device of words, and create a mapping between posts and first-type words. Then, according to the access records of the first section, the posts preferred by the user are determined. Then according to the mapping relationship, determine the first type word corresponding to the post preferred by the user, and finally use the fuzzy matching algorithm to determine the commodity information corresponding to the first type word, and generate a fourth recommendation list according to the commodity information corresponding to the first type word. For the detailed generation process of the fourth recommendation list, refer to 801-807, which will not be described in detail here.
第五推荐列表的生成方法为:通过第二应用的云服务器获取第二应用的版块访问记录,然后根据新用户所使用的终端设备的型号,对版块访问记录进行区分,得到新用户所使用的终端设备的型号(第一型号)对应的第一版块访问记录,接着根据第一版块访问记录,确定第二类型词,最后根据第二类型词关联卖点,并根据卖点生成第五推荐列表。第五推荐列表的详细生成过程参见901-905,此处不再详细赘述。The method for generating the fifth recommendation list is as follows: obtaining the block access records of the second application through the cloud server of the second application, and then distinguishing the block access records according to the model of the terminal device used by the new user to obtain the block access records used by the new user. The first block access record corresponding to the model of the terminal device (the first model), then according to the first block access record, the second type word is determined, and finally the selling point is associated according to the second type word, and a fifth recommendation list is generated according to the selling point. For the detailed generation process of the fifth recommendation list, refer to 901-905, which will not be described in detail here.
第三部分:第三推荐列表的生成方法,具体是:通过第一应用的云服务器获取到第一应用的商品访问记录。然后基于终端设备的型号,对第一应用的商品访问记录进行区分,并基于区分后的第一应用的商品访问记录,得到每种型号对应的用户行为序列,接着确定第一型号的相似设备型号,再确定相似设备型号对应的第二商品访问记录,并根据第二商品访问记录,得到第三推荐列表。第三推荐列表的详细生成过程参见1001-1005,此处不再详细赘述。The third part: a method for generating a third recommendation list, specifically: acquiring the commodity access record of the first application through the cloud server of the first application. Then, based on the model of the terminal device, the product access records of the first application are distinguished, and based on the differentiated product access records of the first application, the user behavior sequence corresponding to each model is obtained, and then the similar device models of the first model are determined. , and then determine the second product access record corresponding to the similar device model, and obtain a third recommendation list according to the second product access record. For the detailed generation process of the third recommendation list, refer to 1001-1005, which will not be described in detail here.
第四部分:融合过程。具体是:在得到第一推荐列表、第二推荐列表、第三推荐列表、第四推荐列表和第五推荐列表后,对第一推荐列表、第二推荐列表、第三推荐列表、第四推荐列表和第五推荐列表中的商品信息进行融合处理,得出最终推荐列表。The fourth part: the fusion process. Specifically: after obtaining the first recommendation list, the second recommendation list, the third recommendation list, the fourth recommendation list and the fifth recommendation list, make the first recommendation list, the second recommendation list, the third recommendation list, the fourth recommendation list and the fourth recommendation list. The product information in the list and the fifth recommendation list are fused to obtain the final recommendation list.
示例性的,融合处理可以是从第一推荐列表、第二推荐列表、第三推荐列表、第四推荐列表和第五推荐列表中,按照设定的比例,选择出部分商品对应的商品信息。然后按照第一推荐列表在前、接着是第二推荐列表、第三推荐列表、第四推荐列表和第五推荐列表的顺序,对选择出的商品进行排序。设定的比例可以是3:2:1:1:1。Exemplarily, the fusion process may be to select commodity information corresponding to some commodities from the first recommendation list, the second recommendation list, the third recommendation list, the fourth recommendation list and the fifth recommendation list according to a set ratio. Then, the selected commodities are sorted in the order that the first recommendation list comes first, followed by the second recommendation list, the third recommendation list, the fourth recommendation list, and the fifth recommendation list. The set ratio can be 3:2:1:1:1.
排序后将重复的商品进行删除,删除后,从相应的推荐列表中顺位补齐商品。示例性的,发现第三推荐列表中的商品信息对应的商品与第一推荐列表中的商品信息对应的商品一致,删除第三推荐列表中的商品信息,然后将第三推荐列表中,被删掉的商品信息的下一个商品信息填补到空缺位置处,以生成最终推荐列表。最终推荐列表中的商品数量与前端的传参值有关。前端会将本次需要推荐展示的商品数量以recNum的形式传递给后端,在得到最终推荐列表后,后端按顺序截取recNum个商品返回,展示给用户。After sorting, the duplicate products will be deleted, and after deletion, the products will be filled in order from the corresponding recommendation list. Exemplarily, it is found that the product corresponding to the product information in the third recommendation list is consistent with the product corresponding to the product information in the first recommendation list, the product information in the third recommendation list is deleted, and then the deleted product information in the third recommendation list is deleted. The next product information of the lost product information is filled into the vacant position to generate the final recommendation list. The number of products in the final recommendation list is related to the parameter value passed in the front end. The front-end will pass the number of products to be recommended and displayed to the back-end in the form of recNum. After getting the final recommendation list, the back-end will intercept the recNum products in order and return them to the user.
或者,在得到第一推荐列表、第二推荐列表、第三推荐列表、第四推荐列表和第五推荐列表后,融合处理还可以是从第一推荐列表、第二推荐列表、第三推荐列表、第四推荐列表和第五推荐列表中任意选择两个或两个以上列表进行商品信息的排序和去重,生成最终推荐列表。例如,可以对第一推荐列表、第二推荐列表、第三推荐列表和第四推荐列表中的商品信息进行去重、排序,生成最终推荐列表,还可以对第一推荐列表、第二推荐列表、第三推荐列表和第五推荐列表中的商品信息进行去重、排序,生成最终推荐列表,或者,如图12所示,对第一推荐列表、第二推荐列表、第三推荐列表中的商品信息进行去重、排序,生成最终推荐列表。Or, after obtaining the first recommendation list, the second recommendation list, the third recommendation list, the fourth recommendation list, and the fifth recommendation list, the fusion process may also be performed from the first recommendation list, the second recommendation list, and the third recommendation list. , the fourth recommendation list and the fifth recommendation list, two or more lists are arbitrarily selected for sorting and deduplication of commodity information to generate a final recommendation list. For example, the product information in the first recommendation list, the second recommendation list, the third recommendation list and the fourth recommendation list can be deduplicated and sorted to generate the final recommendation list, and the first recommendation list and the second recommendation list , the commodity information in the third recommendation list and the fifth recommendation list are deduplicated and sorted to generate the final recommendation list, or, as shown in FIG. The product information is deduplicated and sorted to generate the final recommendation list.
为了实现上述功能,上述电子设备包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。In order to realize the above-mentioned functions, the above-mentioned electronic device includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that, in conjunction with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the electronic device may be divided into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
本申请另一些实施例提供了一种电子设备,该电子设备可以包括:通信模块、存储器和一个或多个处理器。该通信模块、存储器与处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。Other embodiments of the present application provide an electronic device, and the electronic device may include: a communication module, a memory, and one or more processors. The communication module and memory are coupled to the processor. The memory is used to store computer program code comprising computer instructions.
本申请另一实施例提供一种芯片系统,如图13所示,该芯片系统包括至少一个处理器1301和至少一个接口电路1302。处理器1301和接口电路1302可通过线路互联。例如,接口电路1302可用于从其它装置接收信号。又例如,接口电路1302可用于向其它装置(例如处理器1301)发送信号。Another embodiment of the present application provides a chip system. As shown in FIG. 13 , the chip system includes at least one
例如,接口电路1302可读取设备中存储器中存储的指令,并将该指令发送给处理器1301。当指令被处理器1301执行时,可使得电子设备执行上述实施例中的各个。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。For example, the
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述方法实施例中电子设备(例如,手机)执行的各个功能或者。Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium includes computer instructions, when the computer instructions are executed on the electronic device, the electronic device is made to execute the electronic device (for example, a mobile phone) in the foregoing method embodiments. The various functions performed or.
本申请实施例还提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述方法实施例中电子设备(例如,手机)执行的各个功能或者。Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, enables the computer to perform various functions or functions performed by an electronic device (eg, a mobile phone) in the foregoing method embodiments.
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From 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 functional modules is used as an example for illustration. In practical applications, the above functions can be allocated by Different functional modules are completed, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to cause a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the methods of the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk and other media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above contents are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210631258.6A CN114707075B (en) | 2022-06-06 | 2022-06-06 | A cold start recommended method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210631258.6A CN114707075B (en) | 2022-06-06 | 2022-06-06 | A cold start recommended method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114707075A true CN114707075A (en) | 2022-07-05 |
CN114707075B CN114707075B (en) | 2022-10-25 |
Family
ID=82177801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210631258.6A Active CN114707075B (en) | 2022-06-06 | 2022-06-06 | A cold start recommended method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114707075B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117332145A (en) * | 2022-08-26 | 2024-01-02 | 荣耀终端有限公司 | Application recommendation method, device and user equipment |
CN118521370A (en) * | 2024-05-06 | 2024-08-20 | 创贸科技(深圳)集团有限公司 | E-commerce marketing data analysis method and system based on intelligent data |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002095597A1 (en) * | 2001-05-18 | 2002-11-28 | Nikon Corporation | Method for providing bulletin board for placing an image and method for providing electronic album service |
JP2005018470A (en) * | 2003-06-26 | 2005-01-20 | Sony Corp | Server and system for providing merchandise information |
WO2013013161A1 (en) * | 2011-07-20 | 2013-01-24 | Ebay Inc. | Real-time location-aware recommendations |
US20160225063A1 (en) * | 2015-01-30 | 2016-08-04 | Sears Brands, L.L.C. | System and method for using crowdsourced personalized recommendations |
CN105989074A (en) * | 2015-02-09 | 2016-10-05 | 北京字节跳动科技有限公司 | Method and device for recommending cold start through mobile equipment information |
WO2016175420A1 (en) * | 2015-04-30 | 2016-11-03 | 에스케이플래닛 주식회사 | User device for recommending retargeting advertisement product and device for providing service, system for recommending advertisement product, including same, control method therefor, and recording medium having computer program recorded therein |
CN108205768A (en) * | 2016-12-20 | 2018-06-26 | 百度在线网络技术(北京)有限公司 | Database building method and data recommendation method and device, equipment and storage medium |
US20190095874A1 (en) * | 2017-09-27 | 2019-03-28 | International Business Machines Corporation | Determining validity of service recommendations |
US20200042147A1 (en) * | 2018-08-03 | 2020-02-06 | Apple Inc. | User simulation for model initialization |
CN113434778A (en) * | 2021-07-20 | 2021-09-24 | 陕西师范大学 | Recommendation method based on regularization framework and attention mechanism |
-
2022
- 2022-06-06 CN CN202210631258.6A patent/CN114707075B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002095597A1 (en) * | 2001-05-18 | 2002-11-28 | Nikon Corporation | Method for providing bulletin board for placing an image and method for providing electronic album service |
JP2005018470A (en) * | 2003-06-26 | 2005-01-20 | Sony Corp | Server and system for providing merchandise information |
WO2013013161A1 (en) * | 2011-07-20 | 2013-01-24 | Ebay Inc. | Real-time location-aware recommendations |
US20160225063A1 (en) * | 2015-01-30 | 2016-08-04 | Sears Brands, L.L.C. | System and method for using crowdsourced personalized recommendations |
CN105989074A (en) * | 2015-02-09 | 2016-10-05 | 北京字节跳动科技有限公司 | Method and device for recommending cold start through mobile equipment information |
WO2016175420A1 (en) * | 2015-04-30 | 2016-11-03 | 에스케이플래닛 주식회사 | User device for recommending retargeting advertisement product and device for providing service, system for recommending advertisement product, including same, control method therefor, and recording medium having computer program recorded therein |
CN108205768A (en) * | 2016-12-20 | 2018-06-26 | 百度在线网络技术(北京)有限公司 | Database building method and data recommendation method and device, equipment and storage medium |
US20190095874A1 (en) * | 2017-09-27 | 2019-03-28 | International Business Machines Corporation | Determining validity of service recommendations |
US20200042147A1 (en) * | 2018-08-03 | 2020-02-06 | Apple Inc. | User simulation for model initialization |
CN113434778A (en) * | 2021-07-20 | 2021-09-24 | 陕西师范大学 | Recommendation method based on regularization framework and attention mechanism |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117332145A (en) * | 2022-08-26 | 2024-01-02 | 荣耀终端有限公司 | Application recommendation method, device and user equipment |
CN118521370A (en) * | 2024-05-06 | 2024-08-20 | 创贸科技(深圳)集团有限公司 | E-commerce marketing data analysis method and system based on intelligent data |
Also Published As
Publication number | Publication date |
---|---|
CN114707075B (en) | 2022-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230063920A1 (en) | Content navigation with automated curation | |
US11750683B2 (en) | Computer application promotion | |
CN107251006B (en) | Gallery of messages with shared interests | |
EP3288275B1 (en) | Methods and systems of providing visual content editing functions | |
JP2019532422A (en) | Display keyframes for videos on online social networks | |
EP3432233A1 (en) | Method of recommending friends, and server and terminal therefor | |
US12289283B2 (en) | Automated image processing and insight presentation | |
US11928133B2 (en) | Unit group generation and relationship establishment | |
CA2797544C (en) | Method and apparatus for identifying network functions based on user data | |
US11652866B2 (en) | Generating collections of sets based on user provided annotations | |
US11818428B2 (en) | Identifying viewing characteristics of an audience of a content channel | |
US20130232435A1 (en) | Map based event navigation and venue recommendation system | |
US10176201B2 (en) | Content organization and categorization | |
CN114707075B (en) | A cold start recommended method and device | |
US8725795B1 (en) | Content segment optimization techniques | |
WO2022199494A1 (en) | User interest-based content recommendation method, and terminal device | |
CN111126390A (en) | Correlation method and device for identifying identification pattern in media content | |
KR20140027011A (en) | Method and server for recommending friends, and terminal thereof | |
CN111435377B (en) | Application recommendation method, device, electronic equipment and storage medium | |
CN113626624B (en) | Resource identification method and related device | |
US20150269177A1 (en) | Method and system for determining user interest in a file | |
CN114780828A (en) | Resource recommendation method, apparatus, computer equipment and medium | |
HK40056132A (en) | Resource recognition method and related apparatus | |
HK40025943A (en) | Application recommendation method and apparatus, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |