CN118051287A - Application recommendation method and electronic device - Google Patents
Application recommendation method and electronic device Download PDFInfo
- Publication number
- CN118051287A CN118051287A CN202211436782.4A CN202211436782A CN118051287A CN 118051287 A CN118051287 A CN 118051287A CN 202211436782 A CN202211436782 A CN 202211436782A CN 118051287 A CN118051287 A CN 118051287A
- Authority
- CN
- China
- Prior art keywords
- application
- electronic device
- recommendation
- weight
- electronic equipment
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000003993 interaction Effects 0.000 claims description 109
- 238000004590 computer program Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 8
- 230000002452 interceptive effect Effects 0.000 description 82
- 238000012549 training Methods 0.000 description 27
- 238000004422 calculation algorithm Methods 0.000 description 26
- 238000004891 communication Methods 0.000 description 16
- 230000008569 process Effects 0.000 description 13
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 238000007726 management method Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 9
- 238000010295 mobile communication Methods 0.000 description 9
- 238000003066 decision tree Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 230000008859 change Effects 0.000 description 6
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 6
- 238000013500 data storage Methods 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 238000007477 logistic regression Methods 0.000 description 2
- 239000000047 product Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000012896 Statistical algorithm Methods 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72469—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及计算机技术领域,尤其涉及一种应用程序推荐方法及电子设备。The present application relates to the field of computer technology, and in particular to an application recommendation method and electronic device.
背景技术Background technique
当前,电子设备中安装的应用程序的数量越来越多。为了便于用户从大量应用中快速启动目标应用程序,电子设备可以帮助用户选出一些应用程序,如称为推荐应用,并集中显示推荐应用的应用图标,从而,方便用户查找并启用目标应用程序。At present, the number of applications installed in electronic devices is increasing. In order to facilitate users to quickly start a target application from a large number of applications, the electronic device can help users select some applications, such as recommended applications, and centrally display application icons of the recommended applications, thereby facilitating users to find and start the target application.
目前,电子设备对于高频应用的推荐准确度较高,但对于长尾应用的推荐准确度较低。其中,长尾应用是使用热度较低的应用程序。虽然长尾应用整体上使用热度较低,但在某些特定场景下,长尾应用却是用户大概率会使用的应用。At present, electronic devices have a high accuracy in recommending high-frequency applications, but a low accuracy in recommending long-tail applications. Long-tail applications are applications with low usage popularity. Although long-tail applications are generally less popular, in certain specific scenarios, they are applications that users are likely to use.
发明内容Summary of the invention
本申请实施例提供一种应用程序推荐方法及电子设备,用于提高应用推荐的命中率。The embodiments of the present application provide an application recommendation method and an electronic device for improving the hit rate of application recommendations.
为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
第一方面,本申请实施例提供的一种应用程序推荐方法,应用于电子设备,所述方法包括:电子设备显示第一界面,第一界面中包括第一控件,第一控件用于显示需向用户推荐的应用程序的应用图标。在电子设备位于第一位置区域,且系统时间属于第一时段的情况下,电子设备在第一控件中显示第一应用的应用图标;其中,所述第一应用的第一权重高于第二应用的第一权重,所述第二应用的应用图标未显示于所述第一控件,所述第一权重用于指示在位于所述第一位置区域,且所述系统时间属于所述第一时段的场景下所述应用程序的启用概率。In a first aspect, an application recommendation method provided by an embodiment of the present application is applied to an electronic device, the method comprising: the electronic device displays a first interface, the first interface includes a first control, and the first control is used to display an application icon of an application to be recommended to a user. When the electronic device is located in a first location area and the system time belongs to a first time period, the electronic device displays the application icon of the first application in the first control; wherein the first weight of the first application is higher than the first weight of the second application, the application icon of the second application is not displayed in the first control, and the first weight is used to indicate the probability of enabling the application in the scenario where the electronic device is located in the first location area and the system time belongs to the first time period.
在上述实施例中,电子设备可以利用时间场景特征和空间场景特征,确定时空场景下使用规律的第一应用,上述第一应用中可以包含使用热度较低的应用程序,这样,电子设备在第一控件中显示第一应用的应用图标之后,可以增加使用热度较低,但使用规律的应用程序的曝光度,从而,有效提供应用推荐的命中率。In the above embodiment, the electronic device can use the time scene characteristics and the space scene characteristics to determine the first application with regular usage in the time and space scene. The above first application can include applications with lower usage popularity. In this way, after the electronic device displays the application icon of the first application in the first control, it can increase the exposure of applications with lower usage popularity but regular usage, thereby effectively improving the hit rate of application recommendations.
在一些实施例中,所述方法还包括:在电子设备位于第一位置区域,且系统时间属于第一时段的情况下,电子设备在所述第一控件中显示第三应用的应用图标;其中,第三应用的第二权重高于第四应用的第二权重,第四应用的应用图标未显示于所述第一控件,第二权重用于指示在当前场景下应用程序被用户使用的概率,该第二权重可以由历史的操作数据中用户与应用程序在各类场景(由多种场景特征指示的场景)下的交互频次确定。In some embodiments, the method also includes: when the electronic device is located in a first location area and the system time belongs to a first time period, the electronic device displays an application icon of a third application in the first control; wherein the second weight of the third application is higher than the second weight of the fourth application, and the application icon of the fourth application is not displayed in the first control, and the second weight is used to indicate the probability of the application being used by the user in the current scenario, and the second weight can be determined by the frequency of interaction between the user and the application in various scenarios (scenarios indicated by multiple scenario characteristics) in historical operation data.
在上述实施例中,电子设备不仅可以向用户推荐结合时空特征确定出的第一应用,还可以向用户推荐结合能够表征当前场景的多重场景特征,确定出的第三应用,避免遗漏推荐一些时空固定的场景下使用规律的长尾应用,提高推荐的准确性。In the above embodiment, the electronic device can not only recommend to the user the first application determined by combining the spatiotemporal characteristics, but also recommend to the user the third application determined by combining multiple scene features that can characterize the current scene, thereby avoiding missing out on recommending long-tail applications that are regularly used in scenes with fixed spatiotemporal characteristics, and improving the accuracy of recommendations.
在一些实施例中,所述电子设备中包括第一推荐模型和第二推荐模型,第一推荐模型用于确定不同场景下各个所述应用程序对应的第二权重,所述第二推荐模型用于确定不同场景下各个所述应用程序对应的所述第一权重,所述电子设备在所述第一控件中显示第一应用和第三应用之前,所述方法还包括:电子设备获取第一时间及第一位置信息;在第一时间属于所述第一时段,且第一位置信息指示所述第一位置区域的情况下,电子设备利用第二推荐模型,确定所述第一应用,在应用程序的第一权重按照由大到小的顺序进行排列时,第一应用是第一权重排列于第一名次之前的应用程序。另外,电子设备还可以利用第一推荐模型,确定第三应用,在应用程序的所述第二权重按照由大到小的顺序进行排列时,所述第三应用是所述第二权重排列于第二名次之前的应用程序。In some embodiments, the electronic device includes a first recommendation model and a second recommendation model, the first recommendation model is used to determine the second weight corresponding to each of the applications in different scenarios, and the second recommendation model is used to determine the first weight corresponding to each of the applications in different scenarios. Before the electronic device displays the first application and the third application in the first control, the method further includes: the electronic device obtains the first time and the first location information; when the first time belongs to the first time period and the first location information indicates the first location area, the electronic device uses the second recommendation model to determine the first application, and when the first weights of the applications are arranged in order from large to small, the first application is the application whose first weight is arranged before the first place. In addition, the electronic device can also use the first recommendation model to determine the third application, and when the second weights of the applications are arranged in order from large to small, the third application is the application whose second weight is arranged before the second place.
在一些实施例中,所述第一位置信息包括第一网络提供的服务集标识、第一基站提供的小区身份标识及第一经纬度信息之一或之间的组合,其中,所述第一网络和第一基站的信号覆盖区域属于所述第一位置区域。In some embodiments, the first location information includes one or a combination of a service set identifier provided by a first network, a cell identifier provided by a first base station, and first longitude and latitude information, wherein a signal coverage area of the first network and the first base station belongs to the first location area.
在一些实施例中,在所述电子设备在所述第一控件中显示第一应用之前,所述方法还包括:电子设备获取第一天数和第二天数,第一天数是所述电子设备位于所述第一位置区域且系统时间属于第一时段的场景下启用过所述第一应用的天数,第二天数是所述电子设备检测到位于第一位置区域且系统时间属于第一时段的天数;电子设备根据第一天数和第二天数,确定在位于第一位置区域且系统时间属于第一时段的情况下,第一应用对应的第一权重;电子设备根据所述第一应用及对应的第一权重,更新所述第一推荐模型。In some embodiments, before the electronic device displays the first application in the first control, the method further includes: the electronic device obtains a first day number and a second day number, the first day number is the number of days when the first application has been enabled in a scenario where the electronic device is located in the first location area and the system time belongs to a first time period, and the second day number is the number of days when the electronic device detects that it is located in the first location area and the system time belongs to the first time period; the electronic device determines, based on the first day number and the second day number, a first weight corresponding to the first application when the electronic device is located in the first location area and the system time belongs to the first time period; the electronic device updates the first recommendation model based on the first application and the corresponding first weight.
在上述实施例中,电子设备可以根据用户在各类时空场景下针对第一应用的使用天数的变化,更新第一推荐模型中,第一应用在该各类时空场景下对应的第一权重。当然,电子设备也可以通过同样的方式,更新不同时空场景下其他应用的第一权重,这样,电子设备在各类时空场景下确定出的推荐应用可以跟随用户习惯变化。In the above embodiment, the electronic device can update the first weight corresponding to the first application in the first recommendation model in various spatiotemporal scenarios according to the change in the number of days the user uses the first application in various spatiotemporal scenarios. Of course, the electronic device can also update the first weights of other applications in different spatiotemporal scenarios in the same way, so that the recommended applications determined by the electronic device in various spatiotemporal scenarios can change with the user's habits.
在一些实施例中,所述方法还包括:电子设备获取交互数据,交互数据包括在检测到不同位置信息、不同时间信息、不同用户状态信息、不同设备状态信息的情况下,用户与各类所述应用程序的交互次数;电子设备根据所述交互数据中的所述位置信息、所述时间信息、用户状态信息、设备状态信息,进行聚类,得到所述第二推荐模型。In some embodiments, the method also includes: the electronic device obtains interaction data, the interaction data includes the number of interactions between the user and each type of application when different location information, different time information, different user status information, and different device status information are detected; the electronic device performs clustering based on the location information, the time information, the user status information, and the device status information in the interaction data to obtain the second recommendation model.
在上述实施例中,第二推荐模型可以通过学习具有多重场景特征的交互数据,提升对于由多重场景特征指示的实时场景的识别,从而,提高针对各类实时场景的应用推荐匹配度。In the above embodiment, the second recommendation model can improve the recognition of real-time scenes indicated by multiple scene features by learning interaction data with multiple scene features, thereby improving the matching degree of application recommendations for various real-time scenes.
在一些实施例中,所述电子设备获取交互数据,包括:电子设备在检测到针对任意的所述应用程序的第一操作时,进行所述位置信息、时间信息、用户状态信息、设备状态信息的采集;其中,在采集到第一服务集标识和第一小区身份标识的情况下,确定所述第一服务集标识为检测到的所述位置信息,并将所述第一小区身份标识与所述第一服务集标识关联;在采集到所述第一小区身份标识,且所述第一小区身份标识已与所述第一服务集标识关联的情况下,确定所述第一服务集标识为检测到的所述位置信息。In some embodiments, the electronic device obtains interaction data, including: when the electronic device detects a first operation for any of the applications, the electronic device collects the location information, time information, user status information, and device status information; wherein, when the first service set identifier and the first cell identifier are collected, the first service set identifier is determined to be the detected location information, and the first cell identifier is associated with the first service set identifier; when the first cell identifier is collected and the first cell identifier has been associated with the first service set identifier, the first service set identifier is determined to be the detected location information.
在一些实施例中,在检测到所述第一操作时未采集到服务集标识和小区身份标识的情况下,所述电子设备确定所述位置信息为第一标识,所述第一标识指示未识别出的地理空间。In some embodiments, when the service set identifier and the cell identity identifier are not collected when the first operation is detected, the electronic device determines that the location information is a first identifier, and the first identifier indicates an unidentified geographic space.
在一些实施例中,所述第一应用中包括第五应用和第六应用,所述第三应用中包括第六应用和第七应用的情况下,所述方法还包括:所述电子设备依据所述第六应用对应的所述第一权重、第二权重、第一推荐因子及第二推荐因子,确定所述第六应用的推荐权重,所述第一推荐因子用于指示所述第一推荐模型的推荐命中率,所述第二推荐因子用于指示所述第二推荐模型的推荐命中率;所述电子设备依据所述第五应用对应的所述第一权重及所述第一推荐因子,确定所述第六应用的推荐权重;所述电子设备依据所述第七应用对应的所述第二权重及所述第二推荐因子,确定所述第七应用的推荐权重。In some embodiments, when the first application includes a fifth application and a sixth application, and the third application includes a sixth application and a seventh application, the method further includes: the electronic device determines the recommendation weight of the sixth application based on the first weight, the second weight, the first recommendation factor and the second recommendation factor corresponding to the sixth application, the first recommendation factor being used to indicate the recommendation hit rate of the first recommendation model, and the second recommendation factor being used to indicate the recommendation hit rate of the second recommendation model; the electronic device determines the recommendation weight of the sixth application based on the first weight and the first recommendation factor corresponding to the fifth application; the electronic device determines the recommendation weight of the seventh application based on the second weight and the second recommendation factor corresponding to the seventh application.
在一些实施例中,所述第五应用、第六应用和第七应用的应用图标,按照对应的所述推荐权重由大到小的顺序,在所述第一控件上排布。另外,随着电子设备所处场景的变化,电子设备确定出的推荐应用也会变化,这样,第一控件中的应用图标也会变化。在第一控件中应用图标发生变化之后,第一控件中的应用图标可以是无规则排布的。In some embodiments, the application icons of the fifth application, the sixth application, and the seventh application are arranged on the first control in descending order according to the corresponding recommendation weights. In addition, as the scene in which the electronic device is located changes, the recommended application determined by the electronic device will also change, so that the application icons in the first control will also change. After the application icons in the first control change, the application icons in the first control can be arranged irregularly.
第二方面,本申请实施例提供的一种电子设备,电子设备包括一个或多个处理器和存储器;所述存储器与处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,所述一个或多个处理器,用于:显示第一界面,所述第一界面中包括第一控件,所述第一控件用于显示需向用户推荐的应用程序的应用图标;在所述电子设备位于第一位置区域,且系统时间属于第一时段的情况下,在所述第一控件中显示第一应用的应用图标;其中,所述第一应用的第一权重高于第二应用的第一权重,所述第二应用的应用图标未显示于所述第一控件,所述第一权重用于指示在位于所述第一位置区域,且所述系统时间属于所述第一时段的场景下所述应用程序的启用概率。In a second aspect, an electronic device is provided by an embodiment of the present application, and the electronic device includes one or more processors and a memory; the memory is coupled to the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the one or more processors are used to: display a first interface, wherein the first interface includes a first control, and the first control is used to display an application icon of an application to be recommended to a user; when the electronic device is located in a first location area and the system time belongs to a first time period, the application icon of the first application is displayed in the first control; wherein the first weight of the first application is higher than the first weight of the second application, the application icon of the second application is not displayed in the first control, and the first weight is used to indicate the probability of enabling the application in a scenario where the electronic device is located in the first location area and the system time belongs to the first time period.
在一些实施例中,所述一个或多个处理器,用于:在电子设备位于所述第一位置区域,且系统时间属于第一时段的情况下,在所述第一控件中显示第三应用的应用图标;其中,第三应用的第二权重高于第四应用的第二权重,所述第四应用的应用图标未显示于所述第一控件,所述第二权重用于指示在当前场景下用户与应用程序之间的交互频次。In some embodiments, the one or more processors are used to: display an application icon of a third application in the first control when the electronic device is located in the first location area and the system time belongs to the first time period; wherein the second weight of the third application is higher than the second weight of the fourth application, the application icon of the fourth application is not displayed in the first control, and the second weight is used to indicate the frequency of interaction between the user and the application in the current scenario.
在一些实施例中,所述电子设备中包括第一推荐模型和第二推荐模型,所述第一推荐模型用于确定不同场景下各个所述应用程序对应的所述第二权重,所述第二推荐模型用于确定不同场景下各个所述应用程序对应的所述第一权重,所述电子设备在所述第一控件中显示第一应用和第三应用之前,所述一个或多个处理器,用于:获取第一时间及第一位置信息;在所述第一时间属于所述第一时段,且所述第一位置信息指示所述第一位置区域的情况下,利用所述第二推荐模型,确定所述第一应用,在所述应用程序的所述第一权重按照由大到小的顺序进行排列时,所述第一应用是所述第一权重排列于第一名次之前的应用程序;利用所述第一推荐模型,确定所述第三应用,在所述应用程序的所述第二权重按照由大到小的顺序进行排列时,所述第三应用是所述第二权重排列于第二名次之前的应用程序。In some embodiments, the electronic device includes a first recommendation model and a second recommendation model, the first recommendation model is used to determine the second weight corresponding to each of the applications in different scenarios, and the second recommendation model is used to determine the first weight corresponding to each of the applications in different scenarios. Before the electronic device displays the first application and the third application in the first control, the one or more processors are used to: obtain first time and first location information; when the first time belongs to the first time period and the first location information indicates the first location area, use the second recommendation model to determine the first application, and when the first weights of the applications are arranged in order from large to small, the first application is the application whose first weight is arranged before the first place; use the first recommendation model to determine the third application, and when the second weights of the applications are arranged in order from large to small, the third application is the application whose second weight is arranged before the second place.
在一些实施例中,所述第一位置信息包括第一网络提供的服务集标识、第一基站提供的小区身份标识及第一经纬度信息之一或之间的组合,其中,所述第一网络和第一基站的信号覆盖区域属于所述第一位置区域。In some embodiments, the first location information includes one or a combination of a service set identifier provided by a first network, a cell identifier provided by a first base station, and first longitude and latitude information, wherein a signal coverage area of the first network and the first base station belongs to the first location area.
在一些实施例中,在所述第一控件中显示第一应用之前,所述一个或多个处理器,用于:获取第一天数和第二天数,所述第一天数是所述电子设备位于所述第一位置区域且系统时间属于第一时段的场景下启用过所述第一应用的天数,所述第二天数是所述电子设备检测到位于所述第一位置区域且系统时间属于第一时段的天数;根据所述第一天数和第二天数,确定在位于所述第一位置区域且系统时间属于所述第一时段的情况下,所述第一应用对应的第一权重;根据所述第一应用及对应的第一权重,更新所述第一推荐模型。In some embodiments, before displaying the first application in the first control, the one or more processors are used to: obtain a first day and a second day, the first day being the number of days on which the first application has been enabled when the electronic device is located in the first location area and the system time belongs to a first time period, and the second day being the number of days on which the electronic device detects that it is located in the first location area and the system time belongs to the first time period; determine, based on the first day and the second day, a first weight corresponding to the first application when the electronic device is located in the first location area and the system time belongs to the first time period; and update the first recommendation model based on the first application and the corresponding first weight.
在一些实施例中,所述一个或多个处理器,用于:获取交互数据,所述交互数据包括在检测到不同位置信息、不同时间信息、不同用户状态信息、不同设备状态信息的情况下,用户与各类所述应用程序的交互次数;根据所述交互数据中的所述位置信息、所述时间信息、用户状态信息、设备状态信息,进行聚类,得到所述第二推荐模型。In some embodiments, the one or more processors are used to: obtain interaction data, the interaction data including the number of interactions between the user and each type of application when different location information, different time information, different user status information, and different device status information are detected; and perform clustering based on the location information, the time information, the user status information, and the device status information in the interaction data to obtain the second recommendation model.
在一些实施例中,所述一个或多个处理器,用于:在检测到针对任意的所述应用程序的第一操作时,进行所述位置信息、时间信息、用户状态信息、设备状态信息的采集;其中,在采集到第一服务集标识和第一小区身份标识的情况下,确定所述第一服务集标识为检测到的所述位置信息,并将所述第一小区身份标识与所述第一服务集标识关联;在采集到所述第一小区身份标识,且所述第一小区身份标识已与所述第一服务集标识关联的情况下,确定所述第一服务集标识为检测到的所述位置信息。In some embodiments, the one or more processors are used to: collect the location information, time information, user status information, and device status information when a first operation for any of the applications is detected; wherein, when a first service set identifier and a first cell identifier are collected, the first service set identifier is determined to be the detected location information, and the first cell identifier is associated with the first service set identifier; when the first cell identifier is collected and the first cell identifier has been associated with the first service set identifier, the first service set identifier is determined to be the detected location information.
在一些实施例中,所述一个或多个处理器,用于:在检测到所述第一操作时未采集到服务集标识和小区身份标识的情况下,确定所述位置信息为第一标识,所述第一标识指示未识别出的地理空间。In some embodiments, the one or more processors are used to: when detecting that a service set identifier and a cell identity identifier are not collected when the first operation is performed, determine that the location information is a first identifier, and the first identifier indicates an unidentified geographic space.
在一些实施例中,所述一个或多个处理器,用于:所述第一应用中包括第五应用和第六应用,所述第三应用中包括第六应用和第七应用的情况下,所述一个或多个处理器,用于:依据所述第六应用对应的所述第一权重、第二权重、第一推荐因子及第二推荐因子,确定所述第六应用的推荐权重,所述第一推荐因子用于指示所述第一推荐模型的推荐命中率,所述第二推荐因子用于指示所述第二推荐模型的推荐命中率;依据所述第五应用对应的所述第一权重及所述第一推荐因子,确定所述第六应用的推荐权重;依据所述第七应用对应的所述第二权重及所述第二推荐因子,确定所述第七应用的推荐权重。In some embodiments, the one or more processors are used to: when the first application includes the fifth application and the sixth application, and the third application includes the sixth application and the seventh application, the one or more processors are used to: determine the recommendation weight of the sixth application based on the first weight, the second weight, the first recommendation factor and the second recommendation factor corresponding to the sixth application, the first recommendation factor is used to indicate the recommendation hit rate of the first recommendation model, and the second recommendation factor is used to indicate the recommendation hit rate of the second recommendation model; determine the recommendation weight of the sixth application based on the first weight and the first recommendation factor corresponding to the fifth application; determine the recommendation weight of the seventh application based on the second weight and the second recommendation factor corresponding to the seventh application.
第三方面,本申请实施例提供的一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面及其可能的实施例中的方法。In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method in the above-mentioned first aspect and possible embodiments thereof.
第四方面,本申请提供一种计算机程序产品,当计算机程序产品在上述电子设备上运行时,使得电子设备执行上述第一方面及其可能的实施例中的方法。In a fourth aspect, the present application provides a computer program product. When the computer program product is run on the above-mentioned electronic device, the electronic device executes the method in the above-mentioned first aspect and possible embodiments thereof.
可以理解地,上述各个方面所提供的电子设备、计算机存储介质以及计算机程序产品均应用于上文所提供的对应方法,因此,其所能达到的有益效果可参考上文所提供的对应方法中的有益效果,此处不再赘述。It can be understood that the electronic devices, computer storage media and computer program products provided in the above-mentioned aspects are all applied to the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为相关技术中提供的电子设备的显示界面示例图;FIG1 is an example diagram of a display interface of an electronic device provided in the related art;
图2为本申请实施例提供的电子设备的显示界面示例图之一;FIG2 is one of the exemplary diagrams of the display interface of the electronic device provided in the embodiment of the present application;
图3为本申请实施例提供的电子设备的硬件结构示例图;FIG3 is a diagram showing an example of a hardware structure of an electronic device provided in an embodiment of the present application;
图4为本申请实施例提供的电子设备的显示界面示例图之二;FIG4 is a second example diagram of a display interface of an electronic device provided in an embodiment of the present application;
图5为本申请实施例中确定位置标签的示例图;FIG5 is an example diagram of determining a location tag in an embodiment of the present application;
图6为本申请实施例提供的地理围栏示例图;FIG6 is an example diagram of a geo-fence provided in an embodiment of the present application;
图7为本申请实施例提供的电子设备的显示界面示例图之三;FIG. 7 is a third example diagram of a display interface of an electronic device provided in an embodiment of the present application;
图8为本申请实施例提供的电子设备的显示界面示例图之四;FIG8 is a fourth example diagram of a display interface of an electronic device provided in an embodiment of the present application;
图9为本申请实施例提供的应用程序推荐方法的流程图;FIG9 is a flow chart of an application recommendation method provided in an embodiment of the present application;
图10为本申请实施例提供的决策树模型的示例图;FIG10 is an example diagram of a decision tree model provided in an embodiment of the present application;
图11为本申请实施例提供的确定模型1的推荐因子的示例图;FIG11 is an example diagram of determining recommendation factors of model 1 provided in an embodiment of the present application;
图12为本申请实施例提供的芯片系统的示例图。FIG. 12 is an example diagram of a chip system provided in an embodiment of the present application.
具体实施方式Detailed ways
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
下面将结合附图对本实施例的实施方式进行详细描述。The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.
本申请实施例提供了一种应用程序推荐方法,应用于电子设备。其中,电子设备内安装有多个应用程序(含系统应用和第三方应用),不同应用程序可以为用户提供不同应用服务。The embodiment of the present application provides an application recommendation method, which is applied to an electronic device, wherein a plurality of applications (including system applications and third-party applications) are installed in the electronic device, and different applications can provide different application services to users.
为了方便用户使用应用程序所提供的应用服务,电子设备的桌面上显示有各个应用程序的应用图标。上述应用图标可以作为应用程序的启动入口供用户启动(或说开启)对应应用程序。即电子设备接收到用户对应用图标的操作后,可运行对应的应用程序,如,显示该应用程序的应用界面。In order to facilitate users to use the application services provided by the application, application icons of various applications are displayed on the desktop of the electronic device. The above application icons can be used as the application startup entry for the user to start (or open) the corresponding application. That is, after the electronic device receives the user's operation on the application icon, it can run the corresponding application, such as displaying the application interface of the application.
随着电子设备中安装的应用程序越来越多,所需显示的应用图标也越来越多,在此场景下,应用程序的应用图标可以在桌面的多个子屏幕上进行显示。当然,不同的子屏幕所显示的应用图标可以不同。相关技术中,用户想要使用指定应用提供的应用服务时,就需要翻阅多个子屏幕寻找指定应用对应的应用图标。As more and more applications are installed in electronic devices, more and more application icons need to be displayed. In this scenario, the application icons of the application can be displayed on multiple sub-screens on the desktop. Of course, the application icons displayed on different sub-screens can be different. In the related art, when a user wants to use the application service provided by a specified application, he needs to flip through multiple sub-screens to find the application icon corresponding to the specified application.
例如,图1所示,解锁后的电子设备显示有桌面的第一子屏幕(如界面101),该主界面中显示有多个应用程序对应的应用图标。在电子设备显示界面101期间,用户想要使用微信TM,如果界面101中未显示微信TM的应用图标,那么用户需要操作电子设备,以触发电子设备切换显示其他子屏幕,这样,用户可以在其他子屏幕上查找微信TM的应用图标。也就是,用户可以在电子设备的显示屏上执行滑动操作,以触发电子设备切换显示不同的子屏幕,直至用户查找到微信TM的应用图标。For example, as shown in FIG1 , the unlocked electronic device displays the first sub-screen of the desktop (such as interface 101), and the main interface displays application icons corresponding to multiple applications. While the electronic device displays interface 101, the user wants to use WeChat TM . If the application icon of WeChat TM is not displayed in interface 101, the user needs to operate the electronic device to trigger the electronic device to switch to display other sub-screens, so that the user can find the application icon of WeChat TM on other sub-screens. That is, the user can perform a sliding operation on the display screen of the electronic device to trigger the electronic device to switch to display different sub-screens until the user finds the application icon of WeChat TM .
比如,在显示界面101期间,电子设备可以响应于用户在显示屏上的滑动操作,显示界面102。在界面102中包括微信TM的应用图标103的情况下,用户可以通过点击该应用图标103,以触发电子设备启动微信TM。如果界面102上没有应用图标103,那么用户还需要继续在显示屏上滑动,以触发电子设备将显示界面切换到其他子屏幕。显然,整个过程的人机交互效率较低。For example, during the display of interface 101, the electronic device may display interface 102 in response to a user's sliding operation on the display screen. In the case where the interface 102 includes an application icon 103 of WeChat ™ , the user may click on the application icon 103 to trigger the electronic device to start WeChat ™ . If there is no application icon 103 on the interface 102, the user needs to continue sliding on the display screen to trigger the electronic device to switch the display interface to other sub-screens. Obviously, the human-computer interaction efficiency of the whole process is low.
为了改善上述问题,本申请实施例提供了一种应用程序推荐方法。在本方案中,电子设备可以在亮屏期间显示推荐控件。示例性地,上述推荐控件可以显示于电子设备的任意显示界面,比如,锁屏界面、子屏幕、负一屏和应用界面等,本申请实施例对此不作限定,用于显示推荐控件的显示界面又可称为第一界面,上述推荐控件也可以称为第一控件。In order to improve the above problems, an embodiment of the present application provides an application recommendation method. In this solution, the electronic device can display a recommendation control during the screen-on period. Exemplarily, the above recommendation control can be displayed on any display interface of the electronic device, such as a lock screen interface, a sub-screen, a negative first screen, and an application interface, etc. The embodiment of the present application does not limit this. The display interface for displaying the recommendation control can also be referred to as a first interface, and the above recommendation control can also be referred to as a first control.
该推荐控件中包括一个或多个应用图标,可称为推荐图标。其中,上述推荐图标是电子设备确定出的推荐应用的应用图标。上述推荐应用可以包括电子设备从已安装的应用程序中,评估出当前场景下用户希望使用到的应用程序。The recommendation control includes one or more application icons, which may be referred to as recommendation icons. The recommendation icons are application icons of recommended applications determined by the electronic device. The recommended applications may include applications that the electronic device evaluates from installed applications that the user wishes to use in the current scenario.
示例性地,电子设备可以从时间、空间、状态(如,可包括用户状态或设备状态)等一个或多个维度识别电子设备当前所处的场景,然后,根据用户在各类场景下使用热度排名靠前的应用程序,确定在当前场景下,用户可能会用到的应用程序,上述使用热度用于指示用户与应用程序之间的交互频繁程度。Exemplarily, the electronic device can identify the current scenario of the electronic device from one or more dimensions such as time, space, and state (e.g., may include user state or device state), and then determine the applications that the user may use in the current scenario based on the applications that are ranked high in popularity among users in various scenarios. The above-mentioned usage popularity is used to indicate the frequency of interaction between the user and the application.
又示例性地,电子设备可以从时间及空间等一个或多个维度识别电子设备当前所处的场景,然后,根据用户在各类场景下使用规律的应用程序(如,启用的时间段规律和使用应用时设备所处的位置规律的应用),确定在当前场景下,用户可能会用到的应用程序。比如,电子设备在每天早上9:00都会启动一次考勤应用,那么可以确定在早上9:00这个场景下,考勤应用为使用规律的应用。再比如,电子设备在公交站台都会启用公共交通应用,那么可以确定在公交站台这个场景下,公共交通应用为使用规律的应用。As another example, the electronic device can identify the scene in which the electronic device is currently located from one or more dimensions such as time and space, and then determine the applications that the user may use in the current scene based on the applications that the user uses regularly in various scenes (such as the regularity of the time periods that are enabled and the regularity of the location of the device when using the application). For example, the electronic device will start the attendance application once every morning at 9:00, so it can be determined that in the scene of 9:00 in the morning, the attendance application is a regularly used application. For another example, the electronic device will enable the public transportation application at the bus stop, so it can be determined that the public transportation application is a regularly used application in the scene of the bus stop.
这样,在不同的场景下,电子设备都可以通过推荐控件,向用户推荐符合用户当前需求的推荐图标。In this way, in different scenarios, the electronic device can recommend recommended icons that meet the user's current needs to the user through the recommendation control.
例如,图2所示,以电子设备是手机为例,手机解锁后可以显示主界面(如,界面201)。该界面201中包括推荐控件,如,推荐卡片202。该推荐卡片202中包括微信TM、公共交通、图库、视频等推荐应用的应用图标。上述微信TM、公共交通、图库、视频等应用均为电子设备评估出用户当前场景下可能会用到的应用程序。如果用户此时想使用微信TM,那么可以在推荐卡片202中点选微信TM的应用图标,以触发电子设备启用微信TM。这样,用户省去触发电子设备切换显示不同子屏幕的操作,提高人机交互效率,也提高电子设备的智能化程度。For example, as shown in FIG. 2 , taking the electronic device as a mobile phone as an example, the main interface (e.g., interface 201) can be displayed after the mobile phone is unlocked. The interface 201 includes recommendation controls, such as a recommendation card 202. The recommendation card 202 includes application icons of recommended applications such as WeChat ™ , public transportation, gallery, and video. The above-mentioned applications such as WeChat ™ , public transportation, gallery, and video are all applications that the electronic device evaluates to be likely to use in the user's current scenario. If the user wants to use WeChat ™ at this time, then the application icon of WeChat ™ can be selected in the recommendation card 202 to trigger the electronic device to enable WeChat ™ . In this way, the user saves the operation of triggering the electronic device to switch to display different sub-screens, thereby improving the efficiency of human-computer interaction and the intelligence of the electronic device.
示例性地,上述电子设备不仅可以是手机,还可以是电视机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、个人计算机(personal computer,PC),上网本,个人数字助理(personal digital assistant,PDA)等具有显示屏的电子设备。本申请实施例对该电子设备的具体形态不作特殊限制。For example, the electronic device can be not only a mobile phone, but also a television, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a personal computer (PC), a netbook, a personal digital assistant (PDA), and other electronic devices with a display screen. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.
如图3所示,本申请实施例以手机为例,对本申请实施例提供的电子设备的结构进行举例说明。电子设备(如手机)可以包括:处理器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等。As shown in Figure 3, the embodiment of the present application takes a mobile phone as an example to illustrate the structure of the electronic device provided in the embodiment of the present application. The electronic device (such as a mobile phone) may include: a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, a sensor module 380, a button 390, a motor 391, an indicator 392, a camera 393, a display screen 394, and a subscriber identification module (SIM) card interface 395, etc.
其中,上述传感器模块380可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器和骨传导传感器等传感器。Among them, the above-mentioned sensor module 380 may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.
可以理解的是,本实施例示意的结构并不构成对电子设备的具体限定。在另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure 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 processor 310 may include one or more processing units, for example, the processor 310 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
处理器310中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器310中的存储器为高速缓冲存储器。该存储器可以保存处理器310刚用过或循环使用的指令或数据。如果处理器310需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器310的等待时间,因而提高了系统的效率。The processor 310 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may store instructions or data that the processor 310 has just used or cyclically used. If the processor 310 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 310, and thus improves the efficiency of the system.
在一些实施例中,处理器310可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(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, the processor 310 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备的结构限定。在另一些实施例中,电子设备也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable 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. In other embodiments, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块340用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。充电管理模块340为电池342充电的同时,还可以通过电源管理模块341为电子设备供电。The charging management module 340 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 340 is charging the battery 342, it can also power the electronic device through the power management module 341.
电源管理模块341用于连接电池342,充电管理模块340与处理器310。电源管理模块341接收电池342和/或充电管理模块340的输入,为处理器310,内部存储器321,外部存储器,显示屏394,摄像头393,和无线通信模块360等供电。在一些实施例中,电源管理模块341和充电管理模块340也可以设置于同一个器件中。The power management module 341 is used to connect the battery 342, the charging management module 340 and the processor 310. The power management module 341 receives input from the battery 342 and/or the charging management module 340, and supplies power to the processor 310, the internal memory 321, the external memory, the display screen 394, the camera 393, and the wireless communication module 360. In some embodiments, the power management module 341 and the charging management module 340 can also be set in the same device.
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块350,无线通信模块360,调制解调处理器以及基带处理器等实现。在一些实施例中,电子设备的天线1和移动通信模块350耦合,天线2和无线通信模块360耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信,如与可穿戴设备通信。The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, modem processor and baseband processor. In some embodiments, antenna 1 and mobile communication module 350 of the electronic device are coupled, and antenna 2 and wireless communication module 360 are coupled, so that the electronic device can communicate with the network and other devices through wireless communication technology, such as wearable devices.
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块350可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块350可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块350可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The mobile communication module 350 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to electronic devices. The mobile communication module 350 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 350 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
移动通信模块350还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块350的至少部分功能模块可以被设置于处理器310中。在一些实施例中,移动通信模块350的至少部分功能模块可以与处理器310的至少部分模块被设置在同一个器件中。The mobile communication module 350 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 350 can be set in the processor 310. In some embodiments, at least some functional modules of the mobile communication module 350 can be set in the same device as at least some modules of the processor 310.
无线通信模块360可以提供应用在电子设备上的包括WLAN(如(wirelessfidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigationsatellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(nearfield communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。The wireless communication module 360 can provide wireless communication solutions for electronic devices including WLAN (such as (wirelessfidelity, Wi-Fi) network), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), nearfield communication technology (nearfield communication, NFC), infrared technology (infrared, IR), etc.
其中,GNSS可以包括北斗卫星导航系统(beidou navigation satellite system,BDS),全球定位系统(global positioning system,GPS),全球导航卫星系统(globalnavigation satellite system,GLONASS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。Among them, GNSS may include Beidou navigation satellite system (BDS), global positioning system (GPS), global navigation satellite system (GLONASS), quasi-zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
无线通信模块360可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块360经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器310。无线通信模块360还可以从处理器310接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 360 may be one or more devices integrating at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 310. The wireless communication module 360 may also receive a signal to be sent from the processor 310, modulate the signal, amplify the signal, and convert it into an electromagnetic wave for radiation via the antenna 2.
电子设备通过GPU,显示屏394,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏394和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器310可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device implements the display function through a GPU, a display screen 394, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏394用于显示图像,视频等。该显示屏394包括显示面板。The display screen 394 is used to display images, videos, etc. The display screen 394 includes a display panel.
电子设备可以通过ISP,摄像头393,视频编解码器,GPU,显示屏394以及应用处理器等实现拍摄功能。ISP用于处理摄像头393反馈的数据。摄像头393用于捕获静态图像或视频。在一些实施例中,电子设备可以包括1个或N个摄像头393,N为大于1的正整数。The electronic device can realize the shooting function through ISP, camera 393, video codec, GPU, display screen 394 and application processor. ISP is used to process the data fed back by camera 393. Camera 393 is used to capture static images or videos. In some embodiments, the electronic device may include 1 or N cameras 393, where N is a positive integer greater than 1.
外部存储器接口320可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口320与处理器310通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。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. The external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
内部存储器321可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器310通过运行存储在内部存储器321的指令,从而执行电子设备的各种功能应用以及数据处理。例如,在本申请实施例中,处理器310可以通过执行存储在内部存储器321中的指令,内部存储器321可以包括存储程序区和存储数据区。The internal memory 321 may be used to store computer executable program codes, which include instructions. The processor 310 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 321. For example, in an embodiment of the present application, the processor 310 may execute the instructions stored in the internal memory 321, and the internal memory 321 may include a program storage area and a data storage area.
其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器321可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flashstorage,UFS)等。The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
以下实施例中的方法均可以在具有上述硬件结构的设备中实现。The methods in the following embodiments can all be implemented in a device having the above hardware structure.
在一些实施例中,电子设备运行期间,可以实时检测用户与各个应用程序之间交互操作。比如,在显示桌面期间,用户点击应用程序对应的应用图标的操作。再如,在显示应用程序提供的应用界面期间,用户对应用界面中任意功能控件的操作。再如,在显示多任务界面期间,用户对应用程序对应的缩略图窗口的操作。再如,用户触发针对应用程序发送控制命令的操作等。In some embodiments, during the operation of the electronic device, the interactive operations between the user and each application can be detected in real time. For example, during the display of the desktop, the user clicks the application icon corresponding to the application. Another example is during the display of the application interface provided by the application, the user operates any function control in the application interface. Another example is during the display of the multitasking interface, the user operates the thumbnail window corresponding to the application. Another example is the user triggers the operation of sending a control command to the application, etc.
在一些实施例中,电子设备可以给检测到的每一个交互操作,赋予对应的场景特征和应用标识,也即,将交互操作与对应的场景特征和应用标识关联起来。其中,上述场景特征可以是时间、空间、设备状态、用户状态等至少一个维度上的特征。In some embodiments, the electronic device may assign corresponding scene features and application identifiers to each detected interaction operation, that is, associate the interaction operation with the corresponding scene features and application identifiers. The scene features may be features in at least one dimension such as time, space, device status, and user status.
作为一种示例,在电子设备检测到一项交互操作之后,电子设备确定该交互操作所对应的应用程序。然后,将该交互操作与该应用程序的应用标识关联,例如,上述应用标识可以是应用程序的包名。之后,电子设备可以获取检测到该交互操作的时间信息,如称为时间信息a,并将时间信息a作为该交互操作在时间维度上的特征。As an example, after an electronic device detects an interactive operation, the electronic device determines the application corresponding to the interactive operation. Then, the interactive operation is associated with the application identifier of the application, for example, the application identifier can be the package name of the application. Afterwards, the electronic device can obtain the time information of detecting the interactive operation, such as time information a, and use the time information a as the feature of the interactive operation in the time dimension.
示例性地,上述时间信息a可以包括时刻信息。比如,在早上9点,检测到用户触发启动公交应用的操作,电子设备可以将该交互操作与公交应用标识关联,并且还可以该交互操作与09:00:00这个系统时间信息关联。Exemplarily, the time information a may include time information. For example, at 9 am, if a user triggers the operation of starting a public transportation application, the electronic device may associate the interaction operation with the public transportation application identifier, and may also associate the interaction operation with the system time information of 09:00:00.
又示例性地,上述时间信息a还可以包括日期信息。再比如,在2022年10月11日的早上9点,检测到用户做出指示与公交应用的交互操作,电子设备可以将该交互操作与公交应用标识关联,并且还可以该交互操作与2022年10月11日、星期二、09:00:00等系统时间信息关联。As another example, the time information a may also include date information. For another example, at 9:00 a.m. on October 11, 2022, it is detected that the user has indicated an interaction operation with the public transportation application. The electronic device may associate the interaction operation with the public transportation application identifier, and may also associate the interaction operation with system time information such as October 11, 2022, Tuesday, 09:00:00, etc.
这样,电子设备可以在时间维度上,根据交互操作对应的时间特征和应用标识,确定出不同时段所对应的使用热度靠前(如,使用热度排布在前k位,k为正整数)的应用程序,作为该时段对应的推荐应用。比如,电子设备根据T(大于1的正整数,可预先设定T的取值)天内检测到的交互操作,统计具有相同应用标识和时刻信息属于同一时段的交互操作数量。可以理解的,具有相同应用标签指示对应相同的应用程序。这样,通过上述统计,电子设备可以确定各个数段下各个应用程序对应的交互操作次数,也就是,电子设备可以根据各个时段下各个应用程序对应的交互操作次数,确定出各个时段对应的使用热度靠前的应用程序,也即,交互操作次数相对较高的应用。In this way, the electronic device can determine the top usage popularity (e.g., the usage popularity is ranked in the top k positions, k is a positive integer) corresponding to different time periods in the time dimension according to the time characteristics and application identification corresponding to the interactive operations, as the recommended applications corresponding to the time period. For example, the electronic device counts the number of interactive operations with the same application identification and time information belonging to the same time period based on the interactive operations detected within T days (a positive integer greater than 1, and the value of T can be set in advance). It can be understood that the same application label indicates the same application. In this way, through the above statistics, the electronic device can determine the number of interactive operations corresponding to each application in each number segment, that is, the electronic device can determine the top usage popularity corresponding to each time period according to the number of interactive operations corresponding to each application in each time period, that is, the application with a relatively high number of interactive operations.
另外,电子设备可以根据各个应用程序对应的交互操作,确定出各个应用程序对应的使用情况,然后,在时间维度上,评估出使用规律的应用程序。可理解地,在任意时段(如,时段a)下,电子设备如果检测到针对任意应用(如,应用b)的至少一个交互操作,那么电子设备可确定用户在时段a下使用了应用b。作为一种示例性,电子设备获取T天内,用户在时段a下使用过应用b的使用天数。如果对应的使用天数大于m天,可以确定应用b在时段a下是使用规律的应用程序。上述m是大于0且不大于T的正整数,上述m的取值可以与T的取值相关。如果应用b是时段a下使用规律的应用,那么即使应用b在时段a下不属于使用热度靠前的应用程序,也可以被确定为该时段a下的推荐应用。In addition, the electronic device can determine the usage of each application according to the interactive operations corresponding to each application, and then evaluate the application with regular usage in the time dimension. It can be understood that in any time period (such as time period a), if the electronic device detects at least one interactive operation for any application (such as application b), then the electronic device can determine that the user used application b in time period a. As an exemplary example, the electronic device obtains the number of days that the user has used application b in time period a within T days. If the corresponding number of days of use is greater than m days, it can be determined that application b is a regularly used application in time period a. The above m is a positive integer greater than 0 and not greater than T, and the value of the above m can be related to the value of T. If application b is a regularly used application in time period a, then even if application b is not a top-ranked application in time period a, it can be determined as a recommended application in time period a.
也就是,电子设备可以根据各个时间特征对应的交互操作,确定出各个时间特征对应的推荐应用。这样,电子设备实际运行过程中,电子设备可以根据系统时间,识别当前场景所对应的时间特征,如果当前场景的时间特征对应有推荐应用,电子设备可以通过推荐控件显示当前场景对应的推荐应用的应用图标。也就是,电子设备检测到系统时间达到不同的时段,可以在推荐卡片上显示不同的推荐应用。如图4所示,电子设备确定时刻8:00所属的时段对应的推荐应用包括微信TM、公共交通、图库和视频等应用,在检测到系统时间达到8:00,电子设备可以在推荐控件(如,推荐卡片401)上显示微信TM、公共交通、图库和视频等应用的应用图标。电子设备确定时刻10:00所属的时段对应的推荐应用包括外卖、备忘录、电子邮件和会议等应用,在检测到系统时间达到10:00,电子设备可以在推荐控件(如,推荐卡片402)上显示外卖、备忘录、电子邮件和会议等应用的应用图标。That is, the electronic device can determine the recommended applications corresponding to each time feature according to the interactive operations corresponding to each time feature. In this way, during the actual operation of the electronic device, the electronic device can identify the time feature corresponding to the current scene according to the system time. If the time feature of the current scene corresponds to a recommended application, the electronic device can display the application icon of the recommended application corresponding to the current scene through the recommendation control. That is, when the electronic device detects that the system time reaches different time periods, different recommended applications can be displayed on the recommendation card. As shown in FIG4, the electronic device determines that the recommended applications corresponding to the time period to which the time 8:00 belongs include applications such as WeChat TM , public transportation, gallery, and video. When the system time is detected to reach 8:00, the electronic device can display the application icons of applications such as WeChat TM , public transportation, gallery, and video on the recommendation control (such as recommendation card 401). The electronic device determines that the recommended applications corresponding to the time period to which the time 10:00 belongs include applications such as takeout, memo, email, and conference. When the system time is detected to reach 10:00, the electronic device can display the application icons of applications such as takeout, memo, email, and conference on the recommendation control (such as recommendation card 402).
在另一些实施例中,在电子设备检测到一项交互操作之后,电子设备确定该交互操作所对应的应用程序。然后,将该交互操作与该应用程序的应用标识关联,然后,电子设备可以获取当前所处地理空间对应的位置标签,并将该位置标签作为该交互操作在空间维度上的特征。In other embodiments, after the electronic device detects an interactive operation, the electronic device determines the application corresponding to the interactive operation, then associates the interactive operation with the application identifier of the application, and then the electronic device can obtain a location tag corresponding to the current geographic space, and use the location tag as a feature of the interactive operation in the spatial dimension.
示例性地,上述位置标签可以是电子设备采集的基站信号中携带的基站标识,如,蜂窝小区身份标识(cellID)。可以理解的,电子设备进入基站的信号覆盖范围之后,可以接入该基站,并接收到该基站发出的cellID。由于基站的位置固定,能接收到的基站信号的空间位置(也即,信号覆盖范围)也固定,这样,电子设备可以根据实时接收到的基站信号中的cellID,指示电子设备当前所处的地理位置,也即,将得到的cellID作为位置标签。也就是,在电子设备接入同一基站的情况下,检测到的交互操作对应有相同的位置标签。Exemplarily, the above-mentioned location tag can be a base station identifier carried in the base station signal collected by the electronic device, such as a cellular cell identity (cellID). It can be understood that after the electronic device enters the signal coverage range of the base station, it can access the base station and receive the cellID sent by the base station. Since the position of the base station is fixed, the spatial position of the base station signal that can be received (that is, the signal coverage range) is also fixed. In this way, the electronic device can indicate the current geographical location of the electronic device based on the cellID in the base station signal received in real time, that is, use the obtained cellID as the location tag. That is, when the electronic devices are connected to the same base station, the detected interactive operations correspond to the same location tag.
又示例性地,上述位置标签还可以是电子设备接入的无线保真(wireless-fidelity,Wi-Fi)网络的服务集标识(service set identifier,SSID)。可以理解地,Wi-Fi网络的覆盖范围固定,电子设备同样需要进入Wi-Fi网络的覆盖范围内才能够接收到对应的Wi-Fi信息,该Wi-Fi信息中可以携带有SSID,不同的SSID可以指示不同的Wi-Fi网络。这样,电子设备可以根据实时得到的SSID,指示电子设备当前所处的地理位置,也即,将得到的SSID作为位置标签。也就是,在电子设备接入同一WiFi网络的情况下,检测到的交互操作对应有相同的位置标签。As another example, the location tag may also be a service set identifier (SSID) of a wireless-fidelity (Wi-Fi) network to which the electronic device accesses. It is understandable that the coverage of a Wi-Fi network is fixed, and electronic devices also need to enter the coverage of the Wi-Fi network to receive corresponding Wi-Fi information. The Wi-Fi information may carry an SSID, and different SSIDs may indicate different Wi-Fi networks. In this way, the electronic device may indicate the current geographical location of the electronic device based on the SSID obtained in real time, that is, use the obtained SSID as a location tag. That is, when the electronic device accesses the same WiFi network, the detected interactive operations correspond to the same location tag.
又示例性地,上述位置标签还可以是电子设备中定位系统采集到的经纬度信息。As another example, the location tag may also be the longitude and latitude information collected by a positioning system in the electronic device.
在一些可能的示例中,上述位置标签还可以是cellID、SSID以及经纬度信息之一或之间的组合。比如,采用经纬度信息和cellID组合作为位置标签。再比如,将cellID和SSID组合作为位置标签等,本申请中位置标签只需电子设备能够识别出即可,对于位置标签的内容不做具体限定。In some possible examples, the location tag may also be one of or a combination of cellID, SSID, and longitude and latitude information. For example, a combination of longitude and latitude information and cellID is used as a location tag. For another example, a combination of cellID and SSID is used as a location tag. In this application, the location tag only needs to be recognizable by the electronic device, and the content of the location tag is not specifically limited.
以位置标签是经纬度信息和cellID的组合为例,电子设备每检测到一个交互操作,可以利用定位系统(如,GPS定位技术)采集对应的经纬度信息以及获取当前接入的基站对应的cellID。这样,每一条交互操作均对应有一个经纬度信息和cellID。然后,利用经纬度信息对交互操作进行聚类,得到多个聚类簇。每个聚类簇包括多个交互操作,且各个交互操作对应的经纬度信息在地理空间中指示的位置较近。然后,将同一聚类簇中的交互操作所对应的cellID作为该聚类簇指示的空间位置的地理围栏,如果不同交互操作对应的cellID属于同一地理围栏,则该交互操作具有同样的位置标签。如果不同交互操作对应的cellID属于不同的地理围栏,则该交互操作具有不同的位置标签。Taking the example that the location tag is a combination of longitude and latitude information and cellID, each time the electronic device detects an interactive operation, it can use the positioning system (such as GPS positioning technology) to collect the corresponding longitude and latitude information and obtain the cellID corresponding to the currently connected base station. In this way, each interactive operation corresponds to a longitude and latitude information and a cellID. Then, the longitude and latitude information is used to cluster the interactive operations to obtain multiple clusters. Each cluster includes multiple interactive operations, and the longitude and latitude information corresponding to each interactive operation is close to the location indicated in the geographic space. Then, the cellID corresponding to the interactive operation in the same cluster is used as the geographic fence of the spatial position indicated by the cluster. If the cellIDs corresponding to different interactive operations belong to the same geographic fence, the interactive operation has the same location tag. If the cellIDs corresponding to different interactive operations belong to different geographic fences, the interactive operation has different location tags.
以位置标签是经纬度信息和SSID的组合为例,电子设备每检测到一个交互操作,可以利用定位系统(如,GPS定位技术)采集对应的经纬度信息以及获取当前接入的Wi-Fi网络对应的SSID。这样,每一条交互操作均对应有一个经纬度信息和SSID。然后,利用经纬度信息对交互操作进行聚类,得到多个聚类簇。每个聚类簇包括多个交互操作,且各个交互操作对应的经纬度信息在地理空间中指示的位置较近。然后,将同一聚类簇中的交互操作所对应的SSID作为该聚类簇指示的空间位置的地理围栏,如果不同交互操作对应的SSID属于同一地理围栏,则该交互操作具有同样的位置标签。如果不同交互操作对应的SSID属于不同的地理围栏,则该交互操作具有不同的位置标签。Taking the location tag as a combination of longitude and latitude information and SSID as an example, each time the electronic device detects an interactive operation, it can use the positioning system (such as GPS positioning technology) to collect the corresponding longitude and latitude information and obtain the SSID corresponding to the currently connected Wi-Fi network. In this way, each interactive operation corresponds to a longitude and latitude information and an SSID. Then, the longitude and latitude information is used to cluster the interactive operations to obtain multiple clusters. Each cluster includes multiple interactive operations, and the longitude and latitude information corresponding to each interactive operation is close to the location indicated in the geographic space. Then, the SSID corresponding to the interactive operation in the same cluster is used as the geographic fence of the spatial position indicated by the cluster. If the SSIDs corresponding to different interactive operations belong to the same geographic fence, the interactive operation has the same location tag. If the SSIDs corresponding to different interactive operations belong to different geographic fences, the interactive operation has different location tags.
以位置标签是cellID和SSID的组合为例,电子设备每检测到一个交互操作,可以获取当前电子设备接入的基站对应的cellID和/或接入的Wi-Fi网络对应的SSID。Taking the location tag being a combination of cellID and SSID as an example, each time the electronic device detects an interactive operation, the cellID corresponding to the base station currently accessed by the electronic device and/or the SSID corresponding to the accessed Wi-Fi network can be obtained.
示例性地,如果电子设备接入基站但未接入任何Wi-Fi网络,那么可以仅获取对应的cellID。如果电子设备接入Wi-Fi网络但未接入任何基站,那么可以仅获取对应的SSID。如果电子设备接入基站的同时也接入Wi-Fi网络,那么可以同时获取对应的cellID和SSID。如果电子设备未接入基站,也未接入Wi-Fi网络,那么可能任何信息也获取不到。For example, if the electronic device is connected to a base station but not to any Wi-Fi network, only the corresponding cellID can be obtained. If the electronic device is connected to a Wi-Fi network but not to any base station, only the corresponding SSID can be obtained. If the electronic device is connected to a base station and a Wi-Fi network at the same time, the corresponding cellID and SSID can be obtained at the same time. If the electronic device is not connected to a base station and a Wi-Fi network, no information may be obtained.
在一些实施例中,电子设备可以根据SSID和/或cellID的获取情况下,确定本次检测到的交互操作的位置标签。In some embodiments, the electronic device may determine the location tag of the interaction operation detected this time according to the acquisition of the SSID and/or cellID.
作为一种实现方式,如图5所示,电子设备判断是否获取到cellID。在电子设备未获取到cellID,也即,电子设备未接入任何基站的情况下,将标识“-1”作为该交互操作的位置标签。As an implementation, as shown in Fig. 5, the electronic device determines whether the cellID is obtained. If the electronic device does not obtain the cellID, that is, the electronic device is not connected to any base station, the identifier "-1" is used as the location tag of the interactive operation.
在电子设备获取到cellID,也即,电子设备已接入任意基站的情况下,查找与cellID匹配的SSID。示例性地,电子设备查询T天内采集的、对应有相同cellID的交互操作,如称为交互操作a。获取每条交互操作a对应的SSID,作为匹配的SSID。如果所有交互操作a均未对应有SSID(也即,没有匹配的SSID),且交互操作a的数量大于或等于指定数值(如,20),将获取到的cellID确定为本次检测到的交互操作的位置标签。如果所有交互操作a均未对应有SSID,且交互操作a的数量小于指定数值(如,20),将标识“其他”确定为本次检测到的交互操作的位置标签。When the electronic device obtains the cellID, that is, when the electronic device has accessed any base station, the SSID matching the cellID is searched. Exemplarily, the electronic device queries the interaction operations collected within T days and corresponding to the same cellID, such as interaction operation a. The SSID corresponding to each interaction operation a is obtained as the matching SSID. If all interaction operations a do not correspond to an SSID (that is, there is no matching SSID), and the number of interaction operations a is greater than or equal to a specified value (such as 20), the obtained cellID is determined as the location tag of the interaction operation detected this time. If all interaction operations a do not correspond to an SSID, and the number of interaction operations a is less than a specified value (such as 20), the label "other" is determined as the location tag of the interaction operation detected this time.
另外,在交互操作a中至少包括一条交互操作b的情况下,其中,交互操作b是交互操作a中同时对应有cellID和SSID的操作。如果交互操作b对应的SSID都相同(也即,只存在一个匹配的SSID),那么将交互操作b对应的SSID作为本次检测到的交互操作的位置标签。In addition, when the interaction operation a includes at least one interaction operation b, where the interaction operation b is an operation corresponding to both the cellID and the SSID in the interaction operation a. If the SSIDs corresponding to the interaction operations b are the same (that is, there is only one matching SSID), the SSID corresponding to the interaction operation b is used as the location tag of the interaction operation detected this time.
例如,电子设备检测到针对任意应用的第一操作(也即,交互操作)时,如果采集到第一服务集标识(如,一WiFi网络提供的SSID)和第一小区身份标识(一基站提供的cellID),可确定第一服务集标识为本次检测对应的位置信息(或称为位置标签),并将第一小区身份标识与第一服务集标识关联。在采集到第一小区身份标识,且第一小区身份标识已与第一服务集标识关联的情况下,确定第一服务集标识为检测到的位置信息。For example, when an electronic device detects a first operation (i.e., an interactive operation) for any application, if a first service set identifier (e.g., an SSID provided by a WiFi network) and a first cell identifier (a cell ID provided by a base station) are collected, the first service set identifier can be determined as the location information (or location tag) corresponding to this detection, and the first cell identifier is associated with the first service set identifier. When the first cell identifier is collected and the first cell identifier is associated with the first service set identifier, the first service set identifier is determined to be the detected location information.
在交互操作a中至少包括一条交互操作b的情况下,如果交互操作b对应的SSID不全相同,那么统计不同SSID所对应的交互操作b的数量b。这样,电子设备可以将对应的数量b最大的SSID,作为本次检测到的交互操作的位置标签。When interaction operation a includes at least one interaction operation b, if the SSIDs corresponding to interaction operations b are not all the same, then the number b of interaction operations b corresponding to different SSIDs is counted. In this way, the electronic device can use the SSID with the largest number b as the location tag of the interaction operation detected this time.
例如,如表1所示:For example, as shown in Table 1:
表1Table 1
如表1所示,交互操作a是对应cellID为1234的交互操作。上述交互操作a中包括430条交互操作b。其中,交互操作b中对应SSID“223”的交互操作数量为60,交互操作b中对应SSID“224”的交互操作数量为200,交互操作b中对应SSID“225”的交互操作数量为70,交互操作b中对应SSID“226”的交互操作数量为100。这样,可以将SSID“224”作为本次检测到的交互操作的位置标签。As shown in Table 1, interaction operation a is an interaction operation corresponding to cellID 1234. The above interaction operation a includes 430 interaction operations b. Among them, the number of interaction operations corresponding to SSID "223" in interaction operation b is 60, the number of interaction operations corresponding to SSID "224" in interaction operation b is 200, the number of interaction operations corresponding to SSID "225" in interaction operation b is 70, and the number of interaction operations corresponding to SSID "226" in interaction operation b is 100. In this way, SSID "224" can be used as the location tag of the interaction operation detected this time.
另外,通常同一Wi-Fi网络的覆盖范围可能与多个基站的覆盖范围重叠,也就是,在电子设备接入同一Wi-Fi网络的情况下,不同时段可能接入不同的基站,也就是,检测到的交互操作的SSID相同的情况下,对应的cellID可能不同。In addition, the coverage of the same Wi-Fi network may usually overlap with the coverage of multiple base stations. That is, when an electronic device accesses the same Wi-Fi network, it may access different base stations at different time periods. That is, when the SSID of the detected interactive operation is the same, the corresponding cellID may be different.
例如,图6所示,在家场景下,电子设备接入家用WiFi接入节点的情况下,电子设备可以接入基站1。当然,电子设备也可能接入基站2、基站3或者基站4。电子设备检测到交互操作时,无论接入基站1、基站2、基站3还是基站4,都可以将家用WiFi接入节点对应的SSID作为位置标签。也就是,无论是接入基站1、基站2、基站3或者基站4,只要均接入家用WiFi接入节点,就可以确定电子设备进入同一片地理空间(也即,进入家场景)。上述基站1、基站2、基站3和基站4对应的cellID可以作为家场景的地理围栏。For example, as shown in Figure 6, in the home scenario, when the electronic device is connected to the home WiFi access node, the electronic device can access base station 1. Of course, the electronic device may also access base station 2, base station 3 or base station 4. When the electronic device detects an interactive operation, whether it is accessed to base station 1, base station 2, base station 3 or base station 4, the SSID corresponding to the home WiFi access node can be used as a location tag. In other words, whether it is accessed to base station 1, base station 2, base station 3 or base station 4, as long as they are all connected to the home WiFi access node, it can be determined that the electronic device has entered the same geographic space (that is, entered the home scenario). The cellIDs corresponding to the above base stations 1, 2, 3 and 4 can be used as geographic fences for home scenarios.
在电子设备确定每一个交互操作对应的位置标签之后,电子设备可以根据位置标签,对T天内检测到的交互操作进行聚类,得到不同位置标签下,各类cellID对应的交互操作数量。例如,聚类后得到的结果如下表2所示:After the electronic device determines the location tag corresponding to each interactive operation, the electronic device can cluster the interactive operations detected within T days according to the location tag to obtain the number of interactive operations corresponding to each type of cellID under different location tags. For example, the results obtained after clustering are shown in Table 2 below:
表2Table 2
其中,上述123123、147147、159159、126126、101010和148148为不同基站对应的cellID,上述-1代表无cellID,如表2所示,具有位置标签1且对应cellID“126126”的交互操作数量为116,具有位置标签1且对应cellID“101010”的交互操作数量为112,具有位置标签2且对应cellID“123123”的交互操作数量为390,具有位置标签2且无cellID的交互操作数量为23,具有位置标签2且对应cellID“147147”的交互操作数量为1,具有位置标签2且对应cellID“159159”的交互操作数量为1,具有标识“-1”的交互操作数量为190,具有标识“其他”且对应cellID“148148”的交互操作数量为77。其中,上述标识“-1”可称为在采集到第一服务集标识和第一小区身份标识的情况下,确定所述第一服务集标识为检测到第一标识。Among them, the above-mentioned 123123, 147147, 159159, 126126, 101010 and 148148 are cellIDs corresponding to different base stations, and the above-mentioned -1 represents no cellID. As shown in Table 2, the number of interaction operations with location tag 1 and corresponding to cellID "126126" is 116, the number of interaction operations with location tag 1 and corresponding to cellID "101010" is 112, the number of interaction operations with location tag 2 and corresponding to cellID "123123" is 390, the number of interaction operations with location tag 2 and no cellID is 23, the number of interaction operations with location tag 2 and corresponding to cellID "147147" is 1, the number of interaction operations with location tag 2 and corresponding to cellID "159159" is 1, the number of interaction operations with identifier "-1" is 190, and the number of interaction operations with identifier "other" and corresponding to cellID "148148" is 77. The above-mentioned identifier "-1" may refer to determining that the first service set identifier is a detected first identifier when the first service set identifier and the first cell identity identifier are collected.
通过上述聚类,可以确定位置标签1所对应的地理围栏包括cellID“126126”和cellID“101010”,位置标签2对应的地理围栏包括cellID“123123”、cellID“147147”和cellID“159159”,标识“其他”对应的地理围栏包括cellID“148148”。标识“-1”指示电子设备采集不到cellID的场景,比如,位于基站没有覆盖的地方,再比如,电子设备未安装SIM卡的情况。Through the above clustering, it can be determined that the geo-fences corresponding to location tag 1 include cellID "126126" and cellID "101010", the geo-fences corresponding to location tag 2 include cellID "123123", cellID "147147" and cellID "159159", and the geo-fences corresponding to the identifier "other" include cellID "148148". The identifier "-1" indicates a scenario where the electronic device cannot collect the cellID, for example, it is located in a place without base station coverage, or the electronic device does not have a SIM card installed.
在一些实施例中,交互操作对应有位置标签的情况下,电子设备还可以在空间维度上,根据交互操作对应的位置标签和应用标识,确定出不同位置标签使用热度靠前的应用程序,并作为该位置标签的推荐应用,比如,在不同位置标签下,使用频率排列在前k位的应用程序,k为正整数。In some embodiments, when an interactive operation corresponds to a location tag, the electronic device can also determine the most popular applications for different location tags in the spatial dimension based on the location tag and application identifier corresponding to the interactive operation, and use them as recommended applications for the location tag. For example, under different location tags, the applications ranked in the top k in terms of usage frequency, where k is a positive integer.
比如,电子设备根据T(大于1的正整数)天内检测到的交互操作,统计具有相同应用标识和相同位置标签的交互操作数量。可以理解的,相同的应用标签指示相同的应用程序,相同的位置标签指示同一个地理空间,也就是,上述交互操作数量可以指示用户在同一地理空间下,与同一应用程序的交互次数。这样,通过上述统计,电子设备可以确定不同地理空间(可由位置标签指代)中,用户与各个应用程序之间的交互次数,也可以进一步确定出用户在各个地理空间中使用热度排名靠前的应用程序(交互次数较高的应用),并作为该地理空间所对应的推荐应用,也可称为位置标签对应的推荐应用。For example, the electronic device counts the number of interactive operations with the same application identifier and the same location tag based on the interactive operations detected within T (a positive integer greater than 1) days. It can be understood that the same application tag indicates the same application, and the same location tag indicates the same geographic space, that is, the above number of interactive operations can indicate the number of times the user interacts with the same application in the same geographic space. In this way, through the above statistics, the electronic device can determine the number of interactions between the user and each application in different geographic spaces (which can be represented by location tags), and can also further determine the top applications (applications with a higher number of interactions) used by users in each geographic space, and use them as recommended applications corresponding to the geographic space, which can also be called recommended applications corresponding to the location tags.
另外,电子设备可以根据各个应用程序对应的交互操作,确定出各个应用程序的使用情况,也即,用户在各个地理空间(由位置标签指代)内,针对各类应用程序的使用情况。然后,根据在空间维度上,评估出各个地理空间内使用规律的应用程序,并作为地理空间的推荐应用,又可称为位置标签对应的推荐应用。In addition, the electronic device can determine the usage of each application according to the interactive operations corresponding to each application, that is, the usage of each application by the user in each geographic space (indicated by the location tag). Then, based on the spatial dimension, the application with the regular usage in each geographic space is evaluated and used as the recommended application of the geographic space, which can also be called the recommended application corresponding to the location tag.
比如,电子设备根据T天内检测到的交互操作,确定电子设备出现于地理空间a且使用过应用b的使用天数,如果上述使用天数大于m,确定该应用b属于使用规律的应用程序,如果地理空间a由位置标签a指示,那么应用b可作为位置标签a对应的推荐应用。For example, the electronic device determines the number of days that the electronic device appeared in geographic space a and used application b based on the interactive operations detected within T days. If the above-mentioned number of days is greater than m, it is determined that application b is an application with regular usage. If geographic space a is indicated by location tag a, then application b can be used as a recommended application corresponding to location tag a.
在确定不同位置标签对应的推荐应用之后,电子设备检测到当前场景与位置标签所对应的地理围栏相匹配时,可以在推荐卡片上显示该位置标签对应的推荐应用。After determining the recommended applications corresponding to different location tags, when the electronic device detects that the current scene matches the geo-fence corresponding to the location tag, the recommended application corresponding to the location tag can be displayed on the recommendation card.
例如,通过针对具有位置标签的交互操作进行聚类后,确定指示家场景的位置标签2对应的地理围栏包括cellID“123123”、cellID“147147”和cellID“159159”,同时,还确定位置标签2对应的推荐应用包括微信TM、新闻、图库、视频等应用。确定指示公司场景的位置标签1对应的地理围栏包括cellID“126126”和cellID“101010”,同时,还确定位置标签1对应的推荐应用包括文档编辑、办公、电子邮件、会议等应用。For example, after clustering the interactive operations with location tags, it is determined that the geo-fences corresponding to location tag 2 indicating the home scene include cellID "123123", cellID "147147" and cellID "159159", and it is also determined that the recommended applications corresponding to location tag 2 include applications such as WeChat TM , news, gallery, and video. It is determined that the geo-fences corresponding to location tag 1 indicating the company scene include cellID "126126" and cellID "101010", and it is also determined that the recommended applications corresponding to location tag 1 include applications such as document editing, office, email, and conference.
这样,如图7所示,电子设备检测到当前场景与位置标签2对应的地理围栏匹配,比如,从接收到的基站信号中解析出cellID“123123”、cellID“147147”或cellID“159159”,可以确定电子设备位于家场景,此时,电子设备可以在推荐控件(如,推荐卡片701)上显示微信TM、新闻、图库、视频等应用的应用图标。In this way, as shown in Figure 7, the electronic device detects that the current scene matches the geographic fence corresponding to the location tag 2. For example, by parsing the cellID "123123", cellID "147147" or cellID "159159" from the received base station signal, it can be determined that the electronic device is in the home scene. At this time, the electronic device can display application icons of applications such as WeChatTM , news, gallery, video, etc. on the recommendation control (such as recommendation card 701).
如图7所示,电子设备检测当前场景与位置标签1对应的地理围栏匹配,比如,从接收到的基站信号中解析出cellID“126126”或cellID“101010”,可以确定电子设备位于公司场景,此时,电子设备可以在推荐控件(如,推荐卡片702)上,显示文档编辑、办公、电子邮件、会议等应用的应用图标。As shown in Figure 7, the electronic device detects that the current scene matches the geographic fence corresponding to the location tag 1. For example, by parsing the cellID "126126" or cellID "101010" from the received base station signal, it can be determined that the electronic device is located in the company scene. At this time, the electronic device can display application icons for document editing, office, email, conference, etc. on the recommendation control (such as recommendation card 702).
在其他可能的实施例中,在电子设备检测到一项交互操作之后,还可以获取检测到该交互操作时的设备状态信息(如,电量信息),并将其作为设备状态维度的特征。然后,根据各个交互操作对应的设备状态信息,确定不同设备状态下使用热度排名靠前的应用程序,以及使用规律的应用程序,作为该设备状态下对应的推荐应用,这样,可以实现根据电子设备实时的设备状态,向用户推荐适配的应用程序。比如,电量过低时,推送充电宝租赁应用。In other possible embodiments, after the electronic device detects an interactive operation, it can also obtain the device status information (such as power information) when the interactive operation is detected, and use it as a feature of the device status dimension. Then, based on the device status information corresponding to each interactive operation, the top-ranked applications in different device states and the applications with regular usage are determined as the corresponding recommended applications in the device state. In this way, it is possible to recommend adapted applications to users based on the real-time device state of the electronic device. For example, when the battery is too low, a power bank rental application is pushed.
在其他可能的实施例中,在电子设备检测到一项交互操作之后,可以获取检测到该交互操作时的用户状态信息(如,用户处于运动状态),并将其作为用户状态维度的特征。然后,根据各个交互操作对应的用户状态信息,确定不同用户状态下使用热度排名靠前的应用程序,以及使用规律的应用程序,作为该用户状态下对应的推荐应用,从而,实现根据用户实时的状态,向用户推荐所需的应用程序。比如,图8所示,用户处于运动状态时,电子设备可以在推荐控件(也即,推荐卡片801)上显示运动健康、计步、相机、视频等应用的应用图标。In other possible embodiments, after the electronic device detects an interactive operation, the user state information when the interactive operation is detected (e.g., the user is in motion) can be obtained and used as a feature of the user state dimension. Then, based on the user state information corresponding to each interactive operation, the top-ranked applications and the applications with regular usage in different user states are determined as the corresponding recommended applications in the user state, thereby recommending the required applications to the user based on the user's real-time state. For example, as shown in Figure 8, when the user is in motion, the electronic device can display application icons for sports health, pedometer, camera, video, and other applications on the recommendation control (i.e., recommendation card 801).
当然,在电子设备实际运行过程中,电子设备可以给检测到的交互操作赋予多类场景特征。比如,同时具有时间信息和位置标签等。这样,电子设备可以确定由多类场景特征指示的场景下对应的推荐应用。Of course, during the actual operation of the electronic device, the electronic device can give multiple types of scene features to the detected interactive operations, such as having time information and location tags, etc. In this way, the electronic device can determine the recommended applications corresponding to the scenes indicated by the multiple types of scene features.
也就是,在一些实施例中,如图9所示,电子设备检测到交互操作(如,用户点击应用程序图标),确定该交互操作对应的场景特征,如,时间信息、位置标签、设备状态信息、用户状态信息等中的一项或多项。基于根据T天内检测到的交互操作及对应的各类场景特征数据,采用预设算法,可分别训练得到模型1(第一推荐模型)和模型2(第二推荐模型)。其中,上述交互操作及对应的各类场景特征数据可以统称为交互数据。That is, in some embodiments, as shown in FIG9 , the electronic device detects an interactive operation (e.g., a user clicks on an application icon) and determines the scene features corresponding to the interactive operation, such as one or more of time information, location tag, device status information, user status information, etc. Based on the interactive operations detected within T days and the corresponding various scene feature data, a preset algorithm is used to train model 1 (the first recommended model) and model 2 (the second recommended model) respectively. Among them, the above-mentioned interactive operations and the corresponding various scene feature data can be collectively referred to as interactive data.
其中,模型1是采用机器学习算法训练得到的模型,该模型1在训练和预测的过程中,均会充分考虑大量类型的场景特征。也就是,可以根据T天内检测到的交互操作及对应的多重场景特征,结合机器学习算法,训练出模型1。这样,模型1可以实现针对复杂场景的识别和应用推荐。Among them, Model 1 is a model trained by a machine learning algorithm. In the process of training and prediction, Model 1 will fully consider a large number of scene features. That is, Model 1 can be trained based on the interactive operations detected within T days and the corresponding multiple scene features combined with the machine learning algorithm. In this way, Model 1 can realize the recognition and application recommendation for complex scenes.
模型2采用简单统计算法,基于简单场景特征(如,时间特征和空间特征),学习和预测特定时空场景下所需推荐的应用程序。也就是,可以根据T天内检测到的交互操作及对应特定场景特征,训练出模型2。Model 2 uses a simple statistical algorithm to learn and predict the recommended applications in a specific spatiotemporal scenario based on simple scenario features (e.g., time features and spatial features). That is, Model 2 can be trained based on the interactive operations detected within T days and the corresponding specific scenario features.
这样,电子设备可以根据实时检测到的场景特征和模型1,确定出推荐应用1及对应的使用频率权重(第二权重)。电子设备可以根据实时检测到的场景特征和模型2,确定推荐应用2及对应的规律权重(第一权重)。然后,将推荐应用1和推荐应用2对应的权重进行融合,输出实际进行推荐的应用列表,含推荐应用1、推荐应用2及融合后的权重值。总之,模型2作为模型1的补充,电子设备中配置模型2之后,在特定场景下,可以提高长尾应用在推荐控件上的曝光程度,提升长尾应用推荐的准确度。In this way, the electronic device can determine the recommended application 1 and the corresponding frequency of use weight (second weight) based on the real-time detected scene features and model 1. The electronic device can determine the recommended application 2 and the corresponding regular weight (first weight) based on the real-time detected scene features and model 2. Then, the weights corresponding to the recommended application 1 and the recommended application 2 are fused, and a list of applications actually recommended is output, including the recommended application 1, the recommended application 2 and the fused weight values. In short, as a supplement to model 1, after model 2 is configured in the electronic device, in specific scenarios, the exposure of long-tail applications on the recommendation controls can be increased, thereby improving the accuracy of long-tail application recommendations.
比如,在电子设备位于第一位置区域(空间特征),且系统时间属于第一时段(时间特征)的情况下,也即,电子设备检测到第一位置信息的情况下,可以确定电子设备位于第一位置区域,可以理解地,第一位置信息包括第一网络(电子设备当前接入的WiFi网络)提供的服务集标识(SSID)、第一基站(电子设备当前接入的基站)提供的小区身份标识(cellID)及第一经纬度信息(当前位置检测到的经纬度信息)之一或之间的组合,其中,第一网络和第一基站的信号覆盖区域属于第一位置区域。For example, when the electronic device is located in the first location area (spatial feature) and the system time belongs to the first time period (time feature), that is, when the electronic device detects the first location information, it can be determined that the electronic device is located in the first location area. It can be understood that the first location information includes a service set identifier (SSID) provided by the first network (the WiFi network currently accessed by the electronic device), a cell identifier (cellID) provided by the first base station (the base station currently accessed by the electronic device), and first longitude and latitude information (longitude and latitude information detected at the current location) or a combination thereof, wherein the signal coverage area of the first network and the first base station belongs to the first location area.
电子设备检测到系统时间点为第一时间(第一时段内的时间点)的情况下,可以确定电子设备的系统时间属于第一时段。此时,利用模型2,确定出的推荐应用2包括第一应用,该第一应用可以是推荐应用2中可以显示于推荐控件的应用。在第一位置区域和第一时段所指示的时空场景下,如果已安装应用程序的第一权重按照从大到小的顺序排列,第一应用的第一权重排列在第一名次之前(前k名),第二应用的第一权重排列在第一名次之后,也就是,第一应用的第一权重高于第二应用的第一权重,另外,在当前时空场景下,第二应用的应用图标不显示于推荐控件。When the electronic device detects that the system time point is the first time (a time point within the first time period), it can be determined that the system time of the electronic device belongs to the first time period. At this time, using model 2, the determined recommended application 2 includes a first application, and the first application can be an application in the recommended application 2 that can be displayed in the recommendation control. In the spatiotemporal scenario indicated by the first location area and the first time period, if the first weights of the installed applications are arranged in order from large to small, the first weight of the first application is arranged before the first place (the top k), and the first weight of the second application is arranged after the first place, that is, the first weight of the first application is higher than the first weight of the second application. In addition, in the current spatiotemporal scenario, the application icon of the second application is not displayed in the recommendation control.
在电子设备位于第一位置区域,且系统时间属于第一时段的情况下,电子设备还可以当前场景下可检测到的多类型场景特征,确定出包含第三应用的推荐应用1,可以理解的,确定推荐应用1的过程中,所考虑的场景特征不限于第一位置区域(空间特征)和第一时段(时间特征),可以包括更多或更少类型的场景特征。另外,如果已安装应用程序的第二权重按照从大到小的顺序排列,第三应用的第二权重排列在第二名次之前(前k名),第四应用的第二权重排列在第二名次之后,也就是,第三应用的第一权重高于第四应用的第二权重,另外,在当前场景下,第四应用的应用图标不显示于推荐控件。When the electronic device is located in the first location area and the system time belongs to the first time period, the electronic device can also determine the recommended application 1 including the third application based on the multiple types of scene features detectable in the current scene. It can be understood that in the process of determining the recommended application 1, the scene features considered are not limited to the first location area (spatial features) and the first time period (time features), and may include more or fewer types of scene features. In addition, if the second weights of the installed applications are arranged in order from large to small, the second weight of the third application is arranged before the second place (top k), and the second weight of the fourth application is arranged after the second place, that is, the first weight of the third application is higher than the second weight of the fourth application. In addition, in the current scene, the application icon of the fourth application is not displayed in the recommendation control.
当然,第一应用和第三应用之间可以存在相同的应用,也可以存在不同的应用,比如,第一应用可以包括第五应用和第六应用,第三应用可以包括第六应用和第七应用。Of course, the first application and the third application may be the same application or different applications. For example, the first application may include the fifth application and the sixth application, and the third application may include the sixth application and the seventh application.
如前述实施例所述,训练模型1所采用的机器学习算法可以是:决策树、LightGBM、逻辑回归模型、XGBoost等算法。As described in the above embodiments, the machine learning algorithm used in the training model 1 may be: decision tree, LightGBM, logistic regression model, XGBoost and other algorithms.
以模型1是采用决策树算法训练得到的模型为例,上述模型1可以是根据T天内采集的交互操作及对应的场景特征,创建的决策树模型,建立决策树模型的原理可参考相关技术,在此不再赘述。Taking Model 1 as an example, which is a model trained by a decision tree algorithm, the above-mentioned Model 1 can be a decision tree model created based on the interactive operations collected within T days and the corresponding scene features. The principle of establishing a decision tree model can refer to relevant technologies and will not be repeated here.
例如,得到的决策树模型可以如图10所示,该决策树模型中,第一个节点对应有所有应用程序对应的交互次数。图10中采用数字序列的形式展示各个应用程序的交互次数,图10中每个节点都对应一个数字序列,数字序列中每个序列位对应一个应用程序,每个序列位的取值是对应的应用程序的交互次数。比如,第一序列位指代日历应用,如图10所示,第一个节点的第一序列位的取值为1,指示日历应用的交互次数为1。For example, the obtained decision tree model can be shown as FIG10. In the decision tree model, the first node corresponds to the number of interactions corresponding to all applications. FIG10 uses a digital sequence to display the number of interactions of each application. Each node in FIG10 corresponds to a digital sequence. Each sequence bit in the digital sequence corresponds to an application. The value of each sequence bit is the number of interactions of the corresponding application. For example, the first sequence bit refers to the calendar application. As shown in FIG10, the value of the first sequence bit of the first node is 1, indicating that the number of interactions of the calendar application is 1.
另外,第一个节点可以根据某一项场景特征,分裂出多个子节点。比如,如图10所示,根据是否具有指示家场景的位置标签,分裂出第二个节点和第三个节点。其中,第二个节点对应在家场景下,各个应用程序对应的交互次数。第三个节点对应不在家场景下,各个应用程序对应的交互次数。In addition, the first node can be split into multiple child nodes based on a certain scene feature. For example, as shown in FIG10 , the second node and the third node are split based on whether there is a location tag indicating a home scene. The second node corresponds to the number of interactions corresponding to each application in the home scene. The third node corresponds to the number of interactions corresponding to each application in the non-home scene.
同样,第二个节点和第三个节点也可以依据其他场景特征进行分裂。比如,图10所示,利用时间信息是否为周一至周四,对第二个节点进行分裂,得到多个子节点,也即,第四个节点和第五个节点。其中,第四个节点对应在家场景下,时间信息是周一至周四内,各个应用程序对应的交互次数。第五个节点对应在家场景下,时间信息是周五至周天内,各个应用程序对应的交互次数。Similarly, the second node and the third node can also be split according to other scene features. For example, as shown in Figure 10, the second node is split according to whether the time information is Monday to Thursday to obtain multiple child nodes, namely, the fourth node and the fifth node. Among them, the fourth node corresponds to the home scene, and the time information is the number of interactions corresponding to each application from Monday to Thursday. The fifth node corresponds to the home scene, and the time information is the number of interactions corresponding to each application from Friday to Sunday.
另外,第四个节点也可以分裂为第六个节点和第七个节点,第六个节点对应在家场景下,时间信息是周一至周三内,各个应用程序对应的交互次数。第七个节点对应在家场景下,时间信息是周四,各个应用程序对应的交互次数。In addition, the fourth node can also be split into the sixth node and the seventh node. The sixth node corresponds to the home scenario, and the time information is the number of interactions corresponding to each application from Monday to Wednesday. The seventh node corresponds to the home scenario, and the time information is Thursday, and the number of interactions corresponding to each application.
第五个节点也可以分裂为第八个节点和第九个节点,第八个节点对应在家场景下,时间信息为周五至周天的0点至11点,各个应用程序对应的交互次数。第九个节点对应在家场景下,时间信息为周五至周天的12点至23点,各个应用程序对应的交互次数。The fifth node can also be split into the eighth and ninth nodes. The eighth node corresponds to the home scene, the time information is from 0:00 to 11:00 from Friday to Sunday, and the number of interactions corresponding to each application. The ninth node corresponds to the home scene, the time information is from 12:00 to 23:00 from Friday to Sunday, and the number of interactions corresponding to each application.
另外,上述第三个节点可以分裂出第十个节点和第十一个节点。其中,第十个节点对应在公司场景下,各个应用程序对应的交互次数。第十一个节点对应不在家和不在公司的场景下,各个应用程序对应的交互次数。In addition, the third node can be split into the tenth node and the eleventh node. The tenth node corresponds to the number of interactions of each application in the company scenario. The eleventh node corresponds to the number of interactions of each application in the scenarios of not being at home and not being in the company.
上述第十个节点也可以分裂为第十二个节点和第十三个节点。其中,第十二个节点在公司场景下,时间信息为周一至周五,各个应用程序对应的交互次数。第十三个节点在公司场景下,时间信息为周六至周天,各个应用程序对应的交互次数。The tenth node can also be split into the twelfth node and the thirteenth node. The twelfth node is in the company scenario, and the time information is the number of interactions corresponding to each application from Monday to Friday. The thirteenth node is in the company scenario, and the time information is the number of interactions corresponding to each application from Saturday to Sunday.
上述第十一个节点也可以分裂为第十四个节点和第十五个节点。第十四个节点对应在食堂场景下,各个应用程序对应的交互次数。第十五个节点对应不在家、不在公司和不在食堂的场景下,各个应用程序对应的交互次数。The eleventh node can also be split into the fourteenth node and the fifteenth node. The fourteenth node corresponds to the number of interactions of each application in the cafeteria scenario. The fifteenth node corresponds to the number of interactions of each application in the scenarios of not at home, not at work, and not in the cafeteria.
这样,电子设备可以实时地检测当前场景对应的场景特征,根据检测到的场景特征,从模型1中查找匹配的节点。然后,根据匹配的节点对应的各个应用程序的交互次数,评估出使用热度排名靠前的应用程序,作为与当前场景适配的应用程序,也即,推荐应用1。In this way, the electronic device can detect the scene features corresponding to the current scene in real time, and search for matching nodes from model 1 according to the detected scene features. Then, according to the number of interactions of each application corresponding to the matching node, the application with the highest usage popularity is evaluated as the application adapted to the current scene, that is, recommended application 1.
比如,电子设备检测到当前场景对应的场景特征包括家场景的位置标签、时间信息是周四,那么根据图10所示的决策树模型,可以确定当前场景与第七个节点匹配,那么根据第七个节点中各应用程序的交互次数,评估出使用热度排名靠前的应用程序。For example, the electronic device detects that the scene features corresponding to the current scene include the location tag of the home scene and the time information is Thursday. Then, according to the decision tree model shown in Figure 10, it can be determined that the current scene matches the seventh node. Then, according to the number of interactions of each application in the seventh node, the applications with the highest usage popularity are evaluated.
在一些示例中,评估出使用热度排名靠前的应用程序的过程可以是:针对匹配节点中各个应用程序的交互次数,进行归一化处理,得到各个应用程序的使用频率权重,该使用频率权重可以指示在多重场景特征所指代的场景下,用户与应用程序之间的交互频次。其中,使用频率权重越高,指示对应的应用程序使用热度也更高。在此情况下,电子设备可以将使用频率权重大于预设权重阈值1的应用程序,确定为当前场景下使用热度靠前的应用程序。或者,在此情况下,电子设备可以按照使用频率权重对应用程序进行排序,并将排列在前k位的应用程序确定为使用热度靠前的应用程序。其中,k为正整数。In some examples, the process of evaluating the top applications in terms of usage popularity may be: normalizing the number of interactions of each application in the matching node to obtain the usage frequency weight of each application, which may indicate the frequency of interaction between the user and the application in the scenario represented by the multiple scenario features. Among them, the higher the usage frequency weight, the higher the usage popularity of the corresponding application. In this case, the electronic device may determine the application whose usage frequency weight is greater than the preset weight threshold 1 as the top application in the current scenario. Alternatively, in this case, the electronic device may sort the applications according to the usage frequency weight, and determine the applications ranked in the top k as the top applications. Among them, k is a positive integer.
再以模型1是采用LightGBM、逻辑回归或者XGBoost等算法训练得到的模型为例,上述模型1可以是根据T天内采集的交互操作及对应的场景特征等数据,训练后得到的模型。这样,模型1可以根据电子设备实时采集到的场景特征,输出多个应用程序和使用概率,该使用概率是模型1预测出应用程序适配当前场景的概率。然后,可以将使用概率排在前k名之前的应用程序作为使用热度靠前的应用程序。Taking model 1 as an example, the model is trained by algorithms such as LightGBM, logistic regression or XGBoost. The above model 1 can be a model obtained after training based on data such as interactive operations and corresponding scene features collected within T days. In this way, model 1 can output multiple applications and usage probabilities based on the scene features collected by the electronic device in real time. The usage probability is the probability predicted by model 1 that the application is suitable for the current scene. Then, the applications ranked before the top k in usage probability can be regarded as the most popular applications.
在一些实施例中,上述模型2可以是指示各类场景下各应用程序的规律权重。例如,如下表3所示:In some embodiments, the above model 2 may be a regular weight indicating each application program in each scenario. For example, as shown in the following Table 3:
表3table 3
其中,场景可以由空间特征和时间特征组合表征,比如表3中,位置标签1和时段9组合指示场景1,位置标签2和时段10组合指示场景2。Among them, the scene can be represented by a combination of spatial features and time features. For example, in Table 3, the combination of location tag 1 and time period 9 indicates scene 1, and the combination of location tag 2 and time period 10 indicates scene 2.
另外,可以预先将一天量化为多个时段,比如,量化为24个时段,如,时段0、时段1…时段24。其中,时段0指示0点至1点,时段1指示1点至2点,以此类推,时段9指示9点至10点,时段10指示10点至11点,以此类推,时段23指示23点至0点。可以理解地,如果电子设备在时段9(也即,9点至10点)内出现于位置标签1所指示的地理空间,那么电子设备可以检测到场景1。如果电子设备在时段10(也即,10点至11点)内出现于位置标签1所指示的地理空间,那么电子设备可以检测出场景2。In addition, a day can be quantified into multiple time periods in advance, for example, quantified into 24 time periods, such as time period 0, time period 1...time period 24. Among them, time period 0 indicates 0 o'clock to 1 o'clock, time period 1 indicates 1 o'clock to 2 o'clock, and so on, time period 9 indicates 9 o'clock to 10 o'clock, time period 10 indicates 10 o'clock to 11 o'clock, and so on, time period 23 indicates 23 o'clock to 0 o'clock. It can be understood that if the electronic device appears in the geographic space indicated by location tag 1 within time period 9 (that is, 9 o'clock to 10 o'clock), then the electronic device can detect scene 1. If the electronic device appears in the geographic space indicated by location tag 1 within time period 10 (that is, 10 o'clock to 11 o'clock), then the electronic device can detect scene 2.
如表3中,电子设备在22天中都检测到场景1,那么场景1的出现天数为22天。在这22天中,电子设备检测到用户在场景1下使用应用a的天数为17天,应用a对应的规律权重为0.77。其中,该规律权重可以是应用a的使用天数与场景1的出现天数之间的比值,可以指示由时空特征所指代的特定时空场景下,针对应用程序的启用概率。另外,在这22天中,电子设备检测到用户在场景1下使用应用b的天数为11天,应用b对应的规律权重为0.5,其他同理再次不再赘述。As shown in Table 3, the electronic device detected scene 1 in 22 days, so the number of days scene 1 appeared is 22 days. In these 22 days, the electronic device detected that the user used application a in scene 1 for 17 days, and the regular weight corresponding to application a was 0.77. Among them, the regular weight can be the ratio between the number of days application a is used and the number of days scene 1 appears, which can indicate the probability of enabling the application in a specific spatiotemporal scenario represented by the spatiotemporal features. In addition, in these 22 days, the electronic device detected that the user used application b in scene 1 for 11 days, and the regular weight corresponding to application b was 0.5. The same applies to the others and will not be repeated again.
在一些实施例中,表3中不同场景下的使用天数,针对T天内检测到的交互操作进行统计后得到。In some embodiments, the usage days in different scenarios in Table 3 are obtained by counting the interactive operations detected within T days.
以确定应用a在场景1(位置标签1和时段9)和场景2(位置标签1和时段10)下的使用天数进行举例。An example is given to determine the number of days application a is used in scenario 1 (location tag 1 and time period 9) and scenario 2 (location tag 1 and time period 10).
第一种方式:首先,获取训练数据1和训练数据2。其中,训练数据1和训练数据2均为针对应用a的交互操作,不同的是,采集到训练数据1和训练数据2的时空场景不相同。训练数据1包括具有位置标签1和时刻信息1的交互操作c。训练数据2包括具有位置标签1和时刻信息2的交互操作e。上述时刻信息1是指属于时段9的任意时间点,上述时刻信息2是指属于时段10的任意时间点。如前述实施例所示,可以预先将一天量化为24个时段,上述时段9是指示9点至10点的时段,上述时段10是指示10点至11点的时段。这样,训练数据1和训练数据2之间没有重叠的部分。然后,根据训练数据1中交互操作c的检测日期,统计交互操作c对应的不同日期的数量,以作为场景1(位置标签1和时段9)下应用a的使用天数。根据训练数据2中交互操作e的检测日期,统计交互操作e对应的不同日期的数量,以作为场景2(位置标签1和时段10)下应用a的使用天数。The first method: First, obtain training data 1 and training data 2. Among them, training data 1 and training data 2 are both interactive operations for application a, the difference is that the spatiotemporal scenarios in which training data 1 and training data 2 are collected are different. Training data 1 includes interactive operation c with location tag 1 and moment information 1. Training data 2 includes interactive operation e with location tag 1 and moment information 2. The above-mentioned moment information 1 refers to any time point belonging to time period 9, and the above-mentioned moment information 2 refers to any time point belonging to time period 10. As shown in the above embodiment, a day can be quantified into 24 time periods in advance, the above-mentioned time period 9 is a time period indicating 9 o'clock to 10 o'clock, and the above-mentioned time period 10 is a time period indicating 10 o'clock to 11 o'clock. In this way, there is no overlapping part between training data 1 and training data 2. Then, according to the detection date of interactive operation c in training data 1, the number of different dates corresponding to interactive operation c is counted as the number of days of use of application a under scenario 1 (location tag 1 and time period 9). According to the detection date of the interaction operation e in the training data 2, the number of different dates corresponding to the interaction operation e is counted as the number of days the application a is used in the scenario 2 (location tag 1 and time period 10).
第二种方式:首先获取训练数据3和训练数据4。其中,训练数据3和训练数据4均为针对应用a的交互操作,不同的是,采集到训练数据3和训练数据4的时空场景不相同。训练数据3包括具有位置标签1和时刻信息3的交互操作w。训练数据4包括具有位置标签1和时刻信息4的交互操作q。上述时刻信息3是属于时段9对应滑窗的任意时间点,上述时刻信息4是指属于时段10对应滑窗的任意时间点。如前述实施例所示,可以预先将一天量化为24个时段,上述时段9是指示9点至10点的时段,在滑窗时长为15分钟的情况下,上述时段9对应的滑窗为8:45至10:15。上述时段10是指示10点至11点的时段,在滑窗时长为15分钟的情况下,上述时段10对应的滑窗为9:45至11:15。也即,训练数据3和训练数据4之间存在重叠的部分。可以理解地,上述滑窗时长为15分钟仅为举例,本申请实施例对于滑窗时长不作具体限定。The second method: first obtain training data 3 and training data 4. Among them, training data 3 and training data 4 are both interactive operations for application a, and the difference is that the spatiotemporal scenes of training data 3 and training data 4 are different. Training data 3 includes interactive operation w with location tag 1 and time information 3. Training data 4 includes interactive operation q with location tag 1 and time information 4. The above-mentioned time information 3 is any time point belonging to the sliding window corresponding to time period 9, and the above-mentioned time information 4 refers to any time point belonging to the sliding window corresponding to time period 10. As shown in the above embodiment, a day can be quantified into 24 time periods in advance. The above-mentioned time period 9 is a time period indicating 9 o'clock to 10 o'clock. When the sliding window length is 15 minutes, the sliding window corresponding to the above-mentioned time period 9 is 8:45 to 10:15. The above-mentioned time period 10 is a time period indicating 10 o'clock to 11 o'clock. When the sliding window length is 15 minutes, the sliding window corresponding to the above-mentioned time period 10 is 9:45 to 11:15. That is, there is an overlapping part between training data 3 and training data 4. It can be understood that the above sliding window duration of 15 minutes is only an example, and the embodiment of the present application does not specifically limit the sliding window duration.
然后,根据训练数据3中交互操作w的检测日期,统计交互操作w对应的不同日期的数量,以作为场景1(位置标签1和时段9)下应用a的使用天数。根据训练数据4中交互操作q的检测日期,统计交互操作q对应的不同日期的数量,以作为场景2(位置标签1和时段10)下应用a的使用天数。Then, according to the detection date of interaction operation w in training data 3, the number of different dates corresponding to interaction operation w is counted as the number of days application a is used in scenario 1 (position tag 1 and time period 9). According to the detection date of interaction operation q in training data 4, the number of different dates corresponding to interaction operation q is counted as the number of days application a is used in scenario 2 (position tag 1 and time period 10).
总之,第一种方式和第二种方式均可以得到场景1(位置标签1和时段9指示的场景)下应用a的使用天数,以及场景2(位置标签1和时段10指示的场景)下应用a的使用天数,本申请实施例还可以采用其他方式,确定不同场景下应用a的使用天数,对此不作具体限定。In summary, both the first method and the second method can obtain the number of days application a is used in scenario 1 (the scenario indicated by location tag 1 and time period 9), as well as the number of days application a is used in scenario 2 (the scenario indicated by location tag 1 and time period 10). The embodiments of the present application can also adopt other methods to determine the number of days application a is used in different scenarios, and there is no specific limitation on this.
可以理解地,其他应用在各个场景下的使用天数也可通过上述方式获取,在此不再赘述。比如,第一应用对应的第一天数(应用使用天数)和第二天数(场景出现天数)。It is understandable that the usage days of other applications in various scenarios can also be obtained in the above manner, which will not be repeated here. For example, the first day number (application usage days) and the second day number (scenario appearance days) corresponding to the first application.
总之,在创建模型2之后,电子设备可以实时地检测当前场景对应的空间特征和时间特征。根据检测到的空间特征(如,位置标签)和时间特征(如,时刻信息),在模型2中查询匹配的场景。在查询到匹配的场景下,获取该场景下使用过的应用程序以及对应的规律权重。然后,可以将规律权重大于预设权重阈值2的应用程序,作为当前场景下使用规律的应用程序,也即,推荐应用2。In short, after creating model 2, the electronic device can detect the spatial features and time features corresponding to the current scene in real time. According to the detected spatial features (such as location tags) and time features (such as time information), query the matching scene in model 2. When the matching scene is queried, obtain the applications used in the scene and the corresponding regular weights. Then, the applications whose regular weights are greater than the preset weight threshold 2 can be used as the applications with regular usage in the current scene, that is, recommended application 2.
可以理解地,无论是采用模型1得到使用热度靠前的推荐应用1,还会采用模型2得到使用规律的推荐应用2,本质上都是电子设备采用不同推荐算法(模型1和模型2),从不同角度评估出需要向用户推荐的应用程序。本申请实施例中,还可以采用其他推荐算法,从其他角度评估出需要向用户推荐的应用程序,如称为推荐应用3。It can be understood that whether model 1 is used to obtain recommended application 1 with high usage popularity, or model 2 is used to obtain recommended application 2 with regular usage, in essence, the electronic device uses different recommendation algorithms (model 1 and model 2) to evaluate the application programs that need to be recommended to the user from different angles. In the embodiment of the present application, other recommendation algorithms can also be used to evaluate the application programs that need to be recommended to the user from other angles, such as recommended application 3.
例如,其他推荐算法可以是应用跳转预测模型,该模型可以预测出与前台应用之间存在跳转关系的应用程序,并作为对应的推荐应用。通常在电子设备前台运行有应用程序时,可以启用该应用跳转预测模型,预测对应的推荐应用,并显示于前台应用的应用界面上,具体实现过程可参考相关技术,在此不再赘述。For example, other recommendation algorithms may be application jump prediction models, which can predict applications that have a jump relationship with the foreground application and use them as corresponding recommended applications. Usually, when an application is running in the foreground of an electronic device, the application jump prediction model can be enabled to predict the corresponding recommended application and display it on the application interface of the foreground application. The specific implementation process can refer to relevant technologies and will not be repeated here.
可以理解地,采用不同推荐算法确定出的推荐应用中,也可能存在相同的应用。另外,各类推荐算法在筛选推荐应用的过程,均会赋予推荐应用对应的权重,该权重可表征电子设备对该应用程序的推荐程度。当然,不同推荐算法所赋予的权重类型不同,比如,推荐应用1都对应有使用频率权重,推荐应用2对应有规律权重,推荐应用3对应有其他权重。如果同一应用程序具有多类权重值,也即,在多类推荐算法都判定该应用是推荐应用的场景下,可以将该推荐应用的多类权重值进行融合,此过程也可称为对多类推荐应用进行融合。It is understandable that the same application may exist in the recommended applications determined by different recommendation algorithms. In addition, in the process of screening recommended applications, various recommendation algorithms will assign corresponding weights to the recommended applications, and the weights can represent the degree to which the electronic device recommends the application. Of course, different recommendation algorithms assign different types of weights. For example, recommended application 1 corresponds to a frequency of use weight, recommended application 2 corresponds to a regularity weight, and recommended application 3 corresponds to other weights. If the same application has multiple types of weight values, that is, in a scenario where multiple types of recommendation algorithms determine that the application is a recommended application, the multiple types of weight values of the recommended application can be fused. This process can also be called the fusion of multiple types of recommended applications.
作为一种实现方式,多类权重值进行融合的方式为:获取每一类推荐算法的推荐因子,如第一推荐模型对应有第一推荐因子,第二推荐模型对应有第二推荐因子。其中,推荐因子可以指示对应推荐算法针对应用的推荐准确率。比如,推荐算法预测出的推荐应用,被用户选中的占比越高,该推荐算法对应的推荐因子越大,推荐算法预测出的推荐应用,被用户选中的占比越低,该推荐算法对应的推荐因子越小。在一些实施例中,可以利用历史检测数据,评估各类推荐算法对应的推荐因子,具体过程可参考相关技术,在此不再赘述。上述历史检测数据可以包括指定天数内,电子设备检测到的交互数据,其中,交互数据包括检测到的交互操作及对应的场景标签。As an implementation method, the way to fuse multiple types of weight values is to obtain the recommendation factor of each type of recommendation algorithm, such as the first recommendation model corresponds to the first recommendation factor, and the second recommendation model corresponds to the second recommendation factor. Among them, the recommendation factor can indicate the recommendation accuracy of the corresponding recommendation algorithm for the application. For example, the higher the proportion of recommended applications predicted by the recommendation algorithm that are selected by users, the larger the recommendation factor corresponding to the recommendation algorithm; the lower the proportion of recommended applications predicted by the recommendation algorithm that are selected by users, the smaller the recommendation factor corresponding to the recommendation algorithm. In some embodiments, historical detection data can be used to evaluate the recommendation factors corresponding to various recommendation algorithms. The specific process can refer to relevant technologies and will not be repeated here. The above-mentioned historical detection data may include interaction data detected by the electronic device within a specified number of days, wherein the interaction data includes detected interaction operations and corresponding scene labels.
以确定模型1的推荐因子为例。为了方便描述,采用t指代当天,t-1指代t的前一天,t-2指代t-1的前一天,以此类推,t-T代表t-T+1的前一天。如图11所示,电子设备获取t-1之前的T-1天内检测到的交互数据,也即,电子设备在t-2、t-3,…t-T内检测到的交互数据。然后,利用上述T-1天内检测到的交互数据,按照前述实施例中提供的方法,创建模型1。之后,电子设备利用模型1,根据电子设备在t-1中检测出的各类场景,预测需向用户的推荐应用。然后,获取电子在t-1的各类场景中检测到用户实际启用的应用程序。然后,根据各个场景下预测的推荐应用和实际启用的应用,计算模型1的推荐准确率,以作为模型1的推荐因子。其他推荐算法的推荐因子计算方式同理,在此不再赘述。当然,基于T-1天内检测到的交互数据,创建的模型1仅用于测试模型1对应的推荐因子。电子设备中实际使用的模型1,可以是基于T天内(也即,t-1、t-2、…、t-T内)检测到的交互数据训练得到的模型。Take determining the recommendation factor of model 1 as an example. For the convenience of description, t is used to refer to the current day, t-1 refers to the day before t, t-2 refers to the day before t-1, and so on, t-T represents the day before t-T+1. As shown in Figure 11, the electronic device obtains the interaction data detected within T-1 days before t-1, that is, the interaction data detected by the electronic device within t-2, t-3, ... t-T. Then, using the interaction data detected within the above T-1 days, according to the method provided in the above embodiment, model 1 is created. Afterwards, the electronic device uses model 1 to predict the recommended applications to the user based on the various scenarios detected by the electronic device in t-1. Then, the application programs actually enabled by the user detected by the electronic device in various scenarios of t-1 are obtained. Then, based on the predicted recommended applications and the actually enabled applications in each scenario, the recommendation accuracy of model 1 is calculated as the recommendation factor of model 1. The recommendation factor calculation method of other recommendation algorithms is similar, and will not be repeated here. Of course, based on the interaction data detected within T-1 days, the created model 1 is only used to test the recommendation factor corresponding to model 1. The model 1 actually used in the electronic device can be a model trained based on the interaction data detected within T days (that is, within t-1, t-2, ..., t-T).
在确定每一类推荐算法的推荐因子之后,电子设备可以计算每一类推荐算法赋予各推荐应用的权重与推荐因子的乘积,以作为该推荐应用的推荐权重。当一个推荐应用被多类推荐算法推荐时,该推荐应用对应多个推荐权重,在此场景下,将多个推荐权重进行叠加,作为该推荐应用最终的推荐权重。After determining the recommendation factor of each type of recommendation algorithm, the electronic device can calculate the product of the weight assigned to each recommended application by each type of recommendation algorithm and the recommendation factor as the recommendation weight of the recommended application. When a recommended application is recommended by multiple types of recommendation algorithms, the recommended application corresponds to multiple recommendation weights. In this scenario, the multiple recommendation weights are superimposed as the final recommendation weight of the recommended application.
比如,电子设备利用模型1和模型2预测出的推荐应用都包括微信TM、WeLinkTM和知乎TM,其中,模型1赋予微信TM的使用频率权重为0.2,赋予WeLinkTM的使用频率权重为0.3,赋予知乎TM的使用频率权重为0.1。模型2赋予微信TM的规律权重为0.6,赋予WeLinkTM的规律权重为0.2,赋予知乎TM的规律权重为0.3。另外,电子设备确定模型1对应的推荐因子为0.98,模型2对应的推荐因子为0.95,那么微信TM最终对应的推荐权重为:0.2*0.98+0.6*0.95=0.76,WeLinkTM最终对应的推荐权重为:0.3*0.98+0.2*0.95=0.48,知乎TM最终对应的推荐权重为:0.1*0.98+0.3*0.95=0.38。这样,进过权重的融合之后,电子设备确定针对微信TM的推荐程度大于对WeLinkTM的推荐程度,对WeLinkTM的推荐程度又大于对知乎TM的推荐程度。For example, the recommended applications predicted by the electronic device using model 1 and model 2 include WeChat TM , WeLink TM and Zhihu TM . Model 1 assigns a usage frequency weight of 0.2 to WeChat TM , a usage frequency weight of 0.3 to WeLink TM , and a usage frequency weight of 0.1 to Zhihu TM . Model 2 assigns a regularity weight of 0.6 to WeChat TM , a regularity weight of 0.2 to WeLink TM , and a regularity weight of 0.3 to Zhihu TM . In addition, the electronic device determines that the recommendation factor corresponding to model 1 is 0.98, and the recommendation factor corresponding to model 2 is 0.95. Then the final recommendation weight corresponding to WeChat TM is: 0.2*0.98+0.6*0.95=0.76, the final recommendation weight corresponding to WeLink TM is: 0.3*0.98+0.2*0.95=0.48, and the final recommendation weight corresponding to Zhihu TM is: 0.1*0.98+0.3*0.95=0.38. In this way, after the fusion of weights, the electronic device determines that the recommendation level for WeChat TM is greater than that for WeLink TM , and the recommendation level for WeLink TM is greater than that for Zhihu TM .
再比如,模型1确定的推荐应用还包括办公应用,其他推荐算法确定出的推荐应用不含该办公应用的场景下,如果该模型1赋予办公应用的使用频率权重为0.3,那么办公应用最终的推荐权重为:0.3*0.98=0.29。这样,按照推荐权重评估针对应用程序的推荐程度时,可以确定针对微信TM的推荐程度大于对WeLinkTM的推荐程度,针对WeLinkTM的推荐程度又大于对办公应用的推荐程度,针对办公应用的推荐程度大于针对知乎TM的推荐程度。For another example, the recommended applications determined by model 1 also include office applications, and in a scenario where the recommended applications determined by other recommendation algorithms do not include the office applications, if the frequency of use weight assigned to the office applications by model 1 is 0.3, then the final recommendation weight of the office applications is: 0.3*0.98=0.29. In this way, when evaluating the recommendation degree for the application program according to the recommendation weight, it can be determined that the recommendation degree for WeChat TM is greater than that for WeLink TM , and the recommendation degree for WeLink TM is greater than that for office applications, and the recommendation degree for office applications is greater than that for Zhihu TM .
在一些实施例中,电子设备可以按照最终的推荐权重从大到小的顺序,在推荐控件上从左往右进行排布推荐应用的应用图标。也即,最终推荐权重更大的推荐应用,会排布在左侧,最终推荐权重更小的推荐应用,会排布在右侧。In some embodiments, the electronic device may arrange the application icons of the recommended applications from left to right on the recommendation control in the order of the final recommendation weight from large to small. That is, the recommended application with a larger final recommendation weight will be arranged on the left, and the recommended application with a smaller final recommendation weight will be arranged on the right.
在另一些实施例中,推荐控件上的应用图标也可以无序排布。比如,第一次确定出推荐应用包括微信TM和知乎TM,电子设备按照推荐权重,在推荐控件上排布微信TM和知乎TM的应用图标。随着电子设备所处的场景变化,第二次确定出的推荐应用包括微信TM和WeLinkTM,也就是,相较于上次(第一次)确定出的推荐应用而言,存在相同的应用,也存在不同的应用,如,少了知乎TM,但新增了WeLinkTM,当然,都包含微信TM。在此场景下,可以在推荐控件上取消显示知乎TM的应用图标,然后,将WeLinkTM的应用图标显示于原知乎TM的应用图标的显示位置。之后,随着电子设备所处的场景变化,第三次确定出的推荐应用包括知乎TM和办公应用,也就是,与上一次(第二次)确定的推荐应用完全不同,在此场景下,电子设备可以在推荐控件上取消显示微信TM和WeLinkTM的应用图标,同时,在推荐控件上按照推荐权重排布知乎TM和办公应用的应用图标。In other embodiments, the application icons on the recommendation control can also be arranged in disorder. For example, the first time it is determined that the recommended applications include WeChat TM and Zhihu TM , and the electronic device arranges the application icons of WeChat TM and Zhihu TM on the recommendation control according to the recommendation weight. As the scene in which the electronic device is located changes, the recommended applications determined for the second time include WeChat TM and WeLink TM , that is, compared with the recommended applications determined last time (first time), there are the same applications and different applications, such as Zhihu TM is missing, but WeLink TM is newly added, of course, both include WeChat TM . In this scenario, the application icon of Zhihu TM can be canceled from the recommendation control, and then the application icon of WeLink TM is displayed at the display position of the original application icon of Zhihu TM . Afterwards, as the scene in which the electronic device is located changes, the recommended applications determined for the third time include Zhihu TM and office applications, that is, completely different from the recommended applications determined last time (second time), in this scenario, the electronic device can cancel the display of the application icons of WeChat TM and WeLink TM on the recommendation control, and at the same time, arrange the application icons of Zhihu TM and office applications on the recommendation control according to the recommendation weight.
总之,采用了本申请实施例提供的方法,能够有效提高长尾应用的推荐命中率。其中,长尾应用可以包括使用热度较低,但使用情况规律的应用程序,也就是,常在特定时空场景下启用,但使用热度较低的应用程序,比如,考勤应用、门禁应用、智能家居应用、公共交通应用等。In summary, the method provided by the embodiment of the present application can effectively improve the recommendation hit rate of long-tail applications. Among them, long-tail applications may include applications with low usage popularity but regular usage, that is, applications that are often enabled in specific time and space scenarios but have low usage popularity, such as attendance applications, access control applications, smart home applications, public transportation applications, etc.
在其他可能的实施例中,电子设备还可以通过推荐控件,向用户推荐应用程序的功能快捷入口,确定需推荐的功能快捷入口的过程,类似于前述实施例中确定推荐应用的过程,在此不再赘述。In other possible embodiments, the electronic device can also recommend application function shortcut entries to users through recommendation controls. The process of determining the function shortcut entries to be recommended is similar to the process of determining the recommended application in the aforementioned embodiment and will not be repeated here.
本申请实施例还提供一种电子设备,该电子设备可以包括:存储器和一个或多个处理器。该存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,可使得电子设备执行上述实施例中手机执行的各个步骤。当然,该电子设备包括但不限于上述存储器和一个或多个处理器。The embodiment of the present application also provides an electronic device, which may include: a memory and one or more processors. The memory is coupled to the processor. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can execute the various steps executed by the mobile phone in the above embodiment. Of course, the electronic device includes but is not limited to the above memory and one or more processors.
本申请实施例还提供一种芯片系统,该芯片系统可以应用于前述实施例中的终端设备。如图12所示,该芯片系统包括至少一个处理器2201和至少一个接口电路2202。该处理器2201可以是上述电子设备中的处理器。处理器2201和接口电路2202可通过线路互联。该处理器2201可以通过接口电路2202从上述电子设备的存储器接收并执行计算机指令。当计算机指令被处理器2201执行时,可使得电子设备执行上述实施例中手机执行的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。The embodiment of the present application also provides a chip system, which can be applied to the terminal device in the aforementioned embodiment. As shown in Figure 12, the chip system includes at least one processor 2201 and at least one interface circuit 2202. The processor 2201 can be the processor in the above-mentioned electronic device. The processor 2201 and the interface circuit 2202 can be interconnected through a line. The processor 2201 can receive and execute computer instructions from the memory of the above-mentioned electronic device through the interface circuit 2202. When the computer instructions are executed by the processor 2201, the electronic device can execute the various steps executed by the mobile phone in the above-mentioned embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
在一些实施例中,通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。In some embodiments, through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211436782.4A CN118051287A (en) | 2022-11-16 | 2022-11-16 | Application recommendation method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211436782.4A CN118051287A (en) | 2022-11-16 | 2022-11-16 | Application recommendation method and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118051287A true CN118051287A (en) | 2024-05-17 |
Family
ID=91050936
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211436782.4A Pending CN118051287A (en) | 2022-11-16 | 2022-11-16 | Application recommendation method and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118051287A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118656007A (en) * | 2024-08-20 | 2024-09-17 | 荣耀终端有限公司 | Content recommendation method, electronic device and storage medium |
-
2022
- 2022-11-16 CN CN202211436782.4A patent/CN118051287A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118656007A (en) * | 2024-08-20 | 2024-09-17 | 荣耀终端有限公司 | Content recommendation method, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110431585B (en) | User portrait generation method and device | |
US11106709B2 (en) | Recommendation method and device, a device for formulating recommendations | |
CN110710190B (en) | Method, terminal, electronic device and computer-readable storage medium for generating user portrait | |
WO2023016050A1 (en) | Card information display method and electronic device | |
CN110782289B (en) | Service recommendation method and system based on user portrait | |
CN110431535A (en) | A kind of generation method and device of user's portrait | |
CN107341162B (en) | Webpage processing method and device and webpage processing device | |
CN110020148A (en) | A kind of information recommendation method, device and the device for information recommendation | |
CN113891408B (en) | Method for switching Wi-Fi network and cellular network and electronic equipment | |
CN105574182A (en) | News recommendation method and device as well as device for news recommendation | |
KR101626874B1 (en) | Mobile terminal and method for transmitting contents thereof | |
CN106547886A (en) | Application recommendation method, device, terminal and server | |
CN107977431A (en) | Image processing method, device, computer device, and computer-readable storage medium | |
CN111858971A (en) | Multimedia resource recommendation method, device, terminal and server | |
KR102065029B1 (en) | Method for sharing data of electronic device and electronic device thereof | |
CN108874827B (en) | Searching method and related device | |
CN109521888A (en) | A kind of input method, device and medium | |
CN110020106A (en) | A kind of recommended method, recommendation apparatus and the device for recommendation | |
CN108572979A (en) | A kind of position service method and device, a kind of device for location-based service | |
CN110472158A (en) | A kind of sort method and device of search entry | |
US20140297672A1 (en) | Content service method and system | |
CN118051287A (en) | Application recommendation method and electronic device | |
CN105843865B (en) | Media file playing method and device | |
CN107729439A (en) | Obtain the methods, devices and systems of multi-medium data | |
KR20110136084A (en) | Apparatus and method for searching content in a portable terminal |
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 | ||
CB02 | Change of applicant information |
Country or region after: China Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Applicant after: Honor Terminal Co.,Ltd. Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Applicant before: Honor Device Co.,Ltd. Country or region before: China |