A method for preloading an application program
By detecting locations and high frequency of use in electronic devices, preloading the application, solving the problem of long waiting time for resource loading, and improving the efficiency of application usage and user experience.
Patent Information
- Application Number
- CN202310152323.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2043-02-17
AI Technical Summary
When an electronic device runs an application, it needs to wait for resources to load, which causes users to wait for a long time, which reduces the efficiency of application usage. Especially when frequently used applications, they need to wait for resources to load each time they run, affecting the user experience.
By detecting the current location information and time periods or places with high frequency of use, preload the corresponding application, complete resource loading in advance, and reduce user waiting time.
It realizes that the main application interface can be displayed quickly when the user clicks the application icon, reducing resource loading waiting time and improving application usage efficiency and user experience.
Smart Images

Figure CN117130679B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a method for preloading an application. Background Art
[0002] One or more application programs may be run in an electronic device to provide various functions to users.
[0003] Generally, the electronic device can start running the corresponding application after the user inputs an operation to run the application, wherein the operation may include an operation of clicking an application icon displayed on the interface of the electronic device, and the like.
[0004] After the application starts running, resources can be loaded. The resources may include functions and storage space required during the running of the application. After the resource loading is completed, the electronic device can display the main interface of the application.
[0005] During the resource loading process, the user cannot use the functions provided by the application. This reduces the efficiency of the application. Especially for frequently used applications, the user needs to wait for the resource loading process each time the application is run, which is not conducive to the use of the application. Summary of the invention
[0006] An embodiment of the present application provides a method for preloading an application, which enables an electronic device to accurately preload the application, so that when a user instructs the electronic device to run the application, the main interface of the application is quickly displayed on the electronic device, thereby reducing the user's waiting time due to resource loading.
[0007] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0008] In a first aspect, a method for preloading an application is provided, the method being applied to an electronic device in which at least one application is installed. The at least one application includes a first application set. The electronic device stores a high-frequency time period set. At least one application in the first application set corresponds to at least one high-frequency time period in the high-frequency time period set. The method includes: the electronic device detects current location information. The electronic device runs a second application according to the first high-frequency time period. The second application corresponds to at least one first high-frequency time period at the current location. The first high-frequency time period is included in the high-frequency time period set. The second application is included in the first application set.
[0009] In the above solution, the electronic device can run the second application at the current location according to the first high-frequency time period corresponding to the second application. Since the second application is used more frequently in the first high-frequency time period, the accuracy of preloading the second application is improved.
[0010] Optionally, the at least one application also includes a third application set. The electronic device also stores a high-frequency location set. At least one application in the third application set corresponds to at least one high-frequency location in the high-frequency location set. The electronic device immediately runs a fourth application. The current location information is included in the high-frequency location set, the fourth application is included in the third application set, and the fourth application corresponds to the current location information. In the above scheme, the electronic device can run the fourth application based on at least one high-frequency location corresponding to the fourth application. The fourth application is used more frequently in the corresponding high-frequency location, thereby improving the accuracy of the pre-loading judgment of the fourth application.
[0011] Optionally, the at least one application also includes a third application set. The electronic device also stores a high-frequency location set. At least one application in the third application set corresponds to at least one high-frequency location in the high-frequency location set. Before the electronic device runs the second application according to the first high-frequency time period, the method also includes: the electronic device determines that the second application corresponds to the current location information. The second application is included in the third application set, and the current location information is included in the high-frequency location set. In the above scheme, the electronic device can run the second application at the current location according to at least one high-frequency location and at least one high-frequency time period corresponding to the second application. The second application is used more frequently in the corresponding high-frequency time period and in the high-frequency location, thereby improving the accuracy of the pre-loading judgment of the second application.
[0012] Optionally, the first high-frequency location includes one or more cell identifiers Cell ID, and when the electronic device accesses the network of at least one of the one or more cell identifiers, the electronic device enters the first high-frequency location. The first high-frequency location is any location in the high-frequency location set. The current location information is included in the high-frequency location set, including: the geographic coordinates of the current location are included in multiple geographic coordinates in the high-frequency location set, or the first cell identifier set corresponding to the current location is included in multiple cell identifier sets in the high-frequency location set. In this solution, the electronic device can determine whether the current location is in the high-frequency location set based on the geographic coordinates of the current location, or the first cell identifier set. The geographic coordinates or cell identifier of the current location are easy to obtain, which makes it easy for the electronic device to determine whether the current location is in the high-frequency location set.
[0013] Optionally, before the electronic device determines that the second application corresponds to the current location information, the method further includes: the electronic device determines the cell identifier of the current access network. The electronic device determines that the second application corresponds to the current location information, including: the electronic device determines that the cell identifier of the current access network is included in the first cell identifier set. Or, the electronic device determines that the cell identifier of the current access network is included in the first area in the first cell identifier set. Among them, the first area of the first cell identifier set includes one or more cell identifiers, and the cell identifiers of the first area include the cell identifiers of the first a% after all the cell identifiers in the first cell identifier set are sorted from large to small according to the number of days of appearance within the detection period, and a is a preset value. In this scheme, the electronic device can determine that the second application corresponds to the current location information by accessing the cell identifiers in the first area. The first area can be a cell identifier with a large number of appearance days in the first cell identifier set. In this way, by defining a smaller range in the first cell identifier set, the possibility of determining that the second application is running at this location can be increased.
[0014] Optionally, the electronic device runs the second application according to the first high-frequency time period, including: when the current moment is earlier than the start moment of the first high-frequency time period by more than a preset first duration, the electronic device runs the second application at the first moment. The duration between the first moment and the start moment of the first high-frequency time period is the first duration. In this solution, the electronic device runs the second application in advance of the first duration of the first high-frequency time period. In this way, the electronic device can complete the preloading of the second application within the time corresponding to the first duration.
[0015] Optionally, the electronic device runs the second application according to the first high-frequency time period, including: when the duration between the current moment and the start moment of the first high-frequency time period is less than a preset first duration, the electronic device immediately runs the second application. In this way, the electronic device can immediately preload the second application within a time less than the first duration.
[0016] Optionally, the method also includes: the electronic device determining the high-frequency location set and the high-frequency time period set.
[0017] Optionally, the electronic device determines the high-frequency location set, including: the electronic device collects at least one first location information within a preset detection period. The first location information corresponds to a location where the user stays for a time greater than a preset second time period within the detection period. Alternatively, the first location information corresponds to a location when the fourth application is started in the electronic device. The high-frequency location set is determined based on the at least one first location information.
[0018] Optionally, determining the high-frequency location set according to the at least one first location information includes: performing a first clustering operation on the at least one first location information to obtain at least one first clustering result. The first clustering operation includes: aggregating any two first location information whose time difference is less than a preset third duration to obtain a corresponding first clustering result. Alternatively, aggregating any two first location information whose distance difference is less than a preset first distance to obtain a corresponding first clustering result. Performing a second clustering operation according to the at least one first clustering result to obtain at least one second clustering result. The second clustering operation is the same as the first clustering operation. The electronic device determines the locations whose occurrence times are greater than or equal to the preset first times as high-frequency locations according to the at least one second clustering result. In this solution, the electronic device aggregates the discrete points in the high-frequency locations through the first clustering and second clustering operations to improve the accuracy of the first location information. Filtering the locations whose occurrence times are greater than or equal to the preset first times as high-frequency locations improves the data accuracy of high-frequency locations.
[0019] Optionally, the high-frequency time period set of the electronic device includes: multiple second time periods in which the second application is respectively started multiple times within the detection period obtained by the electronic device. The detection period includes multiple detection units, and each detection unit includes multiple second time periods of the same duration. The multiple second time periods are sorted from high to low according to the proportion of the number of days of occurrence of each time period, so as to obtain the corresponding sorting result. The proportion of the number of days of occurrence of the third time period is: the proportion of the number of days of occurrence of the third time period in the sum of the number of days of occurrence of each second time period in the multiple second time periods. The third time period is any time period among the multiple second time periods. According to the sorting result, at least one high-frequency time period corresponding to the second application is determined.
[0020] Optionally, the determining of at least one high-frequency time period corresponding to the second application according to the ranking result includes: selecting at least one second time period whose occurrence day ratio is greater than a preset second ratio according to the occurrence day ratio of each second time period to determine the high-frequency time period corresponding to the second application. In this way, the occurrence ratio of the second high-frequency time period is relatively large, making the high-frequency time period data corresponding to the second application more accurate.
[0021] Optionally, determining at least one high-frequency time period corresponding to the second application according to the sorting result includes: performing a third clustering operation on the at least one second time period according to the sorting result to obtain at least one corresponding third clustering result. The third clustering operation includes: taking the fourth time period as the cluster center, and when the time difference between the fifth time period and the fourth time period is less than or equal to the fourth time length, aggregating the fourth time period and the fifth time period to obtain a third clustering result. The fourth time period is any one of the at least one second time period, and the fifth time period is a time period adjacent to the fourth time period according to the sorting result. Determine at least one high-frequency time period corresponding to the second application according to the at least one third clustering result. Thus, through the third clustering operation, points concentrated in discrete high-frequency time periods can be aggregated to facilitate subsequent use.
[0022] Optionally, determining at least one high-frequency time period corresponding to the second application according to the at least one third clustering result includes: using each third clustering result in the at least one third clustering result as a high-frequency time period corresponding to the second application. In this way, the high-frequency time period corresponding to the second application is more streamlined.
[0023] Optionally, the determining of at least one high-frequency time period corresponding to the second application based on the at least one third clustering result includes: from the at least one third clustering result, screening at least one third clustering result whose proportion of occurrence days is greater than the fourth proportion, to obtain at least one fourth clustering result. Alternatively, from the at least one third clustering result, screening the first N third clustering results after sorting the proportion of occurrence days from high to low, to obtain at least one fourth clustering result. N is an integer greater than or equal to 1. Based on the at least one fourth clustering result, determining at least one high-frequency time period corresponding to the second application. In this scheme, the electronic device screens the third clustering results whose proportion of occurrence days is greater than the fourth proportion, or screens the first N third clustering results after sorting the proportion of occurrence days from high to low, as the fourth clustering result, to determine the high-frequency time period. In this way, the proportion of occurrence days of the high-frequency time period is relatively high, making the high-frequency time period corresponding to the second application more accurate.
[0024] Optionally, the determining of at least one high-frequency time period corresponding to the second application according to the at least one fourth clustering result includes: performing a time reduction operation on any one of the at least one fourth clustering results to obtain at least one fourth clustering result with a reduced time period. The time reduction operation includes: for the sixth time period, taking the cluster center of the sixth time period as a reference, extending to at least one of the two sides until the sum of the time period of the cluster center and the time period after the extension reaches a preset fifth time period. The sum of the time periods is a partial time period in the sixth time period of the fifth time period, corresponding to a fourth clustering result with a reduced time period. The sixth time period is a time period corresponding to any one of the at least one fourth clustering results. According to the at least one fourth clustering result with a reduced time period, a high-frequency time period corresponding to the second application is determined. In this solution, the electronic device reduces each time period in the fourth clustering result to the fifth time period. In this way, the time period of the high-frequency time period corresponding to the second application is more streamlined.
[0025] Optionally, the cluster center of the sixth time period is used as a reference and extended to at least one of the two sides, including: extending to the seventh time period based on the cluster center of the sixth time period. The seventh time period is adjacent to the sixth time period, and the proportion of the number of days in the seventh time period is greater than the proportion of the number of days in the time period on the other side of the sixth time period. In this way, the proportion of the number of days in the high-frequency time period corresponding to the second application is relatively high, and the data in the high-frequency time period is more accurate.
[0026] Optionally, determining at least one high-frequency time period corresponding to the second application according to the at least one fourth clustering result includes: using the at least one fourth clustering result as the at least one high-frequency time period corresponding to the second application. As a result, the proportion of days in which the high-frequency time period occurs is relatively high, and the data of the high-frequency time period set is more concise and accurate.
[0027] Optionally, determining a high-frequency time period corresponding to the second application based on the at least one fourth clustering result with a reduced duration includes: selecting at least one fifth clustering result whose percentage of days of occurrence is greater than the fifth percentage from the at least one fourth clustering result with a reduced duration, and using the at least one fifth clustering result as the at least one high-frequency time period corresponding to the second application. In this way, the percentage of days of occurrence of the high-frequency time period is relatively high, making the data of the high-frequency time period set more concise and accurate.
[0028] In a second aspect, an electronic device is provided, the electronic device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories store computer instructions. When the one or more processors execute the computer instructions, the electronic device performs the method provided in any one of the first aspect and its optional designs.
[0029] In a third aspect, a computer-readable storage medium is provided, which includes computer instructions. When the computer instructions are executed, a method for preloading an application provided in the first aspect and any one of its optional designs is executed.
[0030] According to a fourth aspect, a computer program product is provided, wherein the computer program includes instructions, and when a computer runs the instructions, the method for preloading an application program provided in the first aspect and any one of its optional designs is executed.
[0031] In a fifth aspect, a chip system is provided, the chip system comprising a processor and a communication interface. The processor is used to call and run a computer program stored in a storage medium from a storage medium, and execute a preloading method for an application program provided in any one of the first aspect and its optional designs.
[0032] It should be understood that the technical solutions provided in the second, third, fourth, and fifth aspects above and their technical features can all correspond to the preloading method of the application provided in the first aspect and its possible design, and therefore the beneficial effects that can be achieved are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of an electronic device interface;
[0034] Figure 2 is a schematic diagram of another electronic interface;
[0035] Figure 3 is a schematic diagram of another electronic device interface;
[0036] Figure 4 is a schematic diagram of another electronic device interface;
[0037] Figure 5 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application;
[0038] Figure 6 A schematic diagram of a process of determining a geographic fence method provided in an embodiment of the present application;
[0039] Figure 7 A schematic diagram of determining a geographic fence provided in an embodiment of the present application;
[0040] Figure 8 A schematic diagram of another method for determining a geographic fence provided in an embodiment of the present application;
[0041] Fig. 9 A schematic diagram of another method for determining a geographic fence provided in an embodiment of the present application;
[0042] Fig.10 A schematic diagram of another method for determining a geographic fence provided in an embodiment of the present application;
[0043] Fig.11 A flowchart of a method for determining a high-frequency time period provided in an embodiment of the present application;
[0044] Fig.12 A schematic diagram of another method for determining a high-frequency time period provided in an embodiment of the present application;
[0045] Fig.13 A schematic diagram of another method for determining a high-frequency time period provided in an embodiment of the present application;
[0046] Fig.14 A schematic diagram of another method for determining a high-frequency time period provided in an embodiment of the present application;
[0047] Fig.15 A schematic diagram of another method for determining a high-frequency time period provided in an embodiment of the present application;
[0048] Fig.16 A schematic diagram of a flow chart of an application preloading method provided in an embodiment of the present application;
[0049] Fig.17 A schematic diagram of the composition of a geographic fence provided in an embodiment of the present application;
[0050] Fig.18 A flowchart of another application preloading method provided in an embodiment of the present application;
[0051] Fig.19 A flowchart of another application preloading method provided in an embodiment of the present application;
[0052] Fig. 20 A schematic diagram of another electronic device provided in an embodiment of the present application;
[0053] Fig.21 A schematic diagram of the composition of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] 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.
[0055] One or more application programs may be provided in the electronic device to implement various functions.
[0056] Exemplary, reference Figure 1 Take the electronic device as a mobile phone as an example. The electronic device may be provided with applications such as clock, calendar, music, and video. Take the video application (referred to as video application) as an example. The user may click on the icon 101 on the electronic device interface to instruct the electronic device to run the video application.
[0057] In response to the operation on icon 101, the electronic device can launch a video application.
[0058] Exemplarily, the electronic device may run a process of a video application and load resources for the video application.
[0059] As an example, during the loading process, the electronic device may display the following Figure 2 The interface 102 shown in the figure prompts the user to use the video application after the resource loading is completed. In other implementations, during the resource loading process, advertisements, promotional information and other contents may also be displayed on the interface of the electronic device.
[0060] Correspondingly, after completing resource loading, the electronic device can display Figure 3 The main interface of the video application shown (such as interface 103) may include one or more video resources provided by the video application for the user to select and play.
[0061] It is understandable that during the resource loading process, the user cannot perform any operation on the video application, thereby affecting the efficiency of using the video application.
[0062] In order to improve the efficiency of application usage, the application can be preloaded so that the waiting process for resource loading can be completed in advance, avoiding users waiting.
[0063] For example, the electronic device may, according to the preloaded rules, Figure 1 Before the operation of running the video application shown, the video application is preloaded.
[0064] refer to Figure 4As a possible implementation, the electronic device can set a virtual screen in the background when preloading the video application. On the virtual screen, a virtual click event is used to simulate the following Figure 1 The operations on icon 101 are shown in FIG. 101. Correspondingly, the following operations can be performed on the virtual screen: Figure 2 After the resource loading is completed, the virtual screen can include the following Figure 3 Interface 103 is shown.
[0065] In this way, before the electronic device receives the user's click operation on the icon 101, the resource loading operation can be completed on the background virtual screen, and the main interface of the video application (such as interface 103) can be obtained. Therefore, after the electronic device receives the user's click operation on the icon 101, the interface 103 on the virtual screen can be replaced with the current display screen, so that the user can quickly see the main interface of the video application on the display screen without waiting for the resource loading process.
[0066] It is understandable that if Figure 4 In the example, the electronic device can select the application program to be preloaded according to the preloading rule, and perform the preloading operation of the application program under the corresponding time and / or location conditions.
[0067] The embodiment of the present application provides a method for preloading an application program, which determines whether to preload the target application in the current environment according to the time and / or geographic attributes of the target application. The time and / or geographic attributes of the target application may correspond to the following: Figure 2 The time and / or geographic attributes of the target application may be determined by the electronic device based on the time and / or geographic related information during the historical use of the target application.
[0068] It should be noted that the solution provided in the embodiment of the present application is carried out on the premise that the user agrees to collect the corresponding data.
[0069] The technical solution provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0070] It should be noted that the solution provided in the embodiments of the present application can be applied to electronic devices.
[0071] Exemplarily, the electronic device may include at least one of a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, or a smart city device. The specific type of the electronic device is not particularly limited in the embodiments of the present application.
[0072] As an implementation, refer to Figure 5 , is a schematic diagram of the composition of an electronic device 400 provided in an embodiment of the present application.
[0073] The electronic device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) connector 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera module 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc. The sensor module 480 may include a pressure sensor 480A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, etc.
[0074] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 400. In other embodiments of the present application, the electronic device 400 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.
[0075] The processor 410 may include one or more processing units, for example, the processor 410 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0076] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0077] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 may be a cache memory. The memory may store instructions or data that have been used or are frequently used by the processor 410. If the processor 410 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.
[0078] In some embodiments, the processor 410 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. The processor 410 may be connected to a touch sensor, an audio module, a wireless communication module, a display, a camera, and other modules through at least one of the above interfaces.
[0079] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 400. In other embodiments of the present application, the electronic device 400 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0080] It should be noted that the above Figure 4 The electronic device components shown are only examples and do not constitute a limitation on the electronic device involved in the technical solution provided in the embodiment of the present application. The embodiment of the present application does not limit the specific components of the electronic device.
[0081] For example, in some embodiments of the present application, the electronic device may have a positioning function. So that the electronic device can determine whether to preload according to the geographical attributes of the application according to the current location. In other embodiments of the present application, the electronic device may have a timing function, such as the electronic device can determine the current time at any time. So that the electronic device can determine whether to preload according to the time attribute of the application according to the current time.
[0082] In a specific implementation of the embodiment of the present application, the electronic device can accurately preload the application according to the predetermined time attributes and / or geographical attributes of the application.
[0083] It is understandable that users have different usage habits for different applications.
[0084] For some applications (such as application A), users may frequently use the application A within a certain time period (such as a first time period, which may be a time period within a day). Then, the application A may have a time attribute. In some embodiments of the present application, the application A may also be referred to as a second application. The second application is included in the first application set.
[0085] In some embodiments of the present application, the electronic device can accurately preload the application according to the time attribute of the application. For an application that is frequently used in one or more time periods, the application can have a time attribute. The time attribute of the application can be used to indicate the time period when the application is frequently used.
[0086] For other applications (such as application B), the user may frequently use the application B in a certain location or geographical range (such as the first location). Then, the application B may have a geographical attribute. In some embodiments of the present application, the application B may also be referred to as a fourth application. The fourth application is included in the third application set.
[0087] In other embodiments, the electronic device can accurately preload the application according to the geographical attributes of the application. For an application that is frequently used in one or more geographical ranges, the application can have a geographical attribute. The geographical attribute of the application can be used to indicate a location or geographical range where the application is frequently used.
[0088] The specific implementation of the above solutions will be described below in conjunction with the accompanying drawings.
[0089] Exemplarily, one or more application programs may be installed in the electronic device, which may include application A.
[0090] For example, application A has a time attribute.
[0091] The electronic device can determine, within a preset detection period, based on the usage of the application A, that the application A has a time attribute and one or more time periods identified by the time attribute.
[0092] It is understandable that when a user uses an application within a certain or relatively fixed time period, it is often related to the current location.
[0093] For example, for some applications that are often used at home (such as smart home applications, etc.), the user will use the application at a relatively fixed time (such as after get off work at 8 o'clock) when the user is at "home". Correspondingly, if the user is not at "home", the user will not use the application even if the time period (such as after 8 o'clock) arrives.
[0094] Therefore, in the embodiment of the present application, the electronic device can refer to the geo-fence corresponding to the application A in the process of determining the time attribute of the application A. In some implementations of this example, the application A has a time attribute, which can also be referred to as the application A having a time attribute in the corresponding geo-fence. In some embodiments of the present application, the geo-fence can also be referred to as a high-frequency location set. The high-frequency location set includes a first high-frequency location.
[0095] The geo-fence of the application A may include one or more geographic ranges. In one embodiment of the present application, the geo-fence may include at least one high-frequency location information corresponding to the application A. As an implementation, the high-frequency location information may be represented by a cell ID (Cell ID) of the access network when the electronic device is located at the location.
[0096] Within one or more geographic ranges indicated by the geo-fence, application A is used more frequently during the time period indicated by the time attribute.
[0097] Thus, after entering the geographic fence, the electronic device can trigger the preloading judgment of the application A in the time period indicated by the time attribute. The following first describes the method for determining the geographic fence of the application A.
[0098] In an embodiment of the present application, the electronic device can collect statistics on the usage of application A during the detection period, thereby determining the geographic fence corresponding to application A.
[0099] For example, the detection period is 3 days. Figure 6 The electronic device can determine the geographic fence of application A through this process. Figure 6 As shown, the program may include:
[0100] S601: Record the geographical coordinates of the electronic device in the unit starting application A, the corresponding time, and the cell identifier of the access network in a day. For example, the geographical coordinates may be longitude and latitude.
[0101] As an example, refer to Figure 7 In 701, on that day, the user opened application A at 10 locations including location A1, location A2, location A3, etc. The electronic device can record the geographic coordinates, time and cell identification of the 10 locations respectively.
[0102] It should be noted that in some embodiments of the present application, the electronic device may start application A at a certain location, and when staying at the first location for a certain period of time (such as time T0), record the geographic coordinates, time, and cell identifier of the location.
[0103] S602: Perform a first clustering operation on all geographic coordinates in the unit to obtain one or more first clustering results corresponding to the unit.
[0104] It is understandable that specific geographic coordinates are often discrete. In this example, the electronic device can perform a first clustering operation based on the multiple geographic coordinates collected in S601, thereby reducing the amount of information within the unit (such as 1 day). At the same time, the first clustering operation improves the accuracy of the geographic information within the unit.
[0105] For example, continue to refer to Figure 7 The electronic device may perform a first clustering operation on any two of the 10 locations. Figure 7 As shown in 702 , the location A1 and the location A2 are clustered into the location B1 .
[0106] In some embodiments, the first clustering operation may include: aggregating any two locations whose time difference is less than a third time length to obtain a first clustering result.
[0107] For example, take 10 locations including location A1 and location A2 as an example. In some implementations, when the difference between the time corresponding to location A1 and the time corresponding to location A2 is less than a third time length (such as 15 minutes), the electronic device can cluster location 1 and location 2 into one location (such as location B1). This location B1 corresponds to a first clustering result.
[0108] In some other embodiments, the first clustering operation may include: aggregating any two locations whose distance difference is less than the first distance to obtain a first clustering result.
[0109] For example, when the distance between the location A1 and the location A2 is less than a first distance (eg, 10 m), the electronic device may cluster the location A1 and the location A2 into one location (eg, location B1).
[0110] In other implementations, the electronic device may also combine time and geographic coordinates to cluster two locations.
[0111] It should be noted that the first clustering result may correspond to a location. The geographic coordinates of the location may be determined based on the geographic coordinates of the two locations where the first clustering operation is performed. For example, the geographic coordinates of the first clustering result may be the middle position of the geographic coordinates of the two locations where the first clustering operation is performed. The time of the location may be determined based on the geographic coordinates of the two locations where the first clustering operation is performed. For example, the time of the first clustering result may be the middle moment of the time of the two locations where the first clustering operation is performed. The cell identifier of the first clustering result may simultaneously include the cell identifiers of the two locations where the first clustering operation is performed.
[0112] For example, the geographic coordinates of the location B1 corresponding to the first clustering result may be the longitude and latitude of the center point of the line connecting the location A1 and the location A2. The cell identifier of the location B1 may include the cell identifier of the location A1 and the cell identifier of the location A2.
[0113] Thus, the electronic device can determine one or more corresponding first clustering results based on all geographic coordinates collected within 1 day. For example, all geographic coordinates collected within 1 day may include location A1, location A2, location A3, etc. The corresponding first clustering results may include location B1, location B2, etc. It is understandable that the number of first clustering results may be less than the number of geographic coordinates before clustering.
[0114] In some embodiments of the present application, the electronic device may continue to perform a second clustering operation on the first clustering result, thereby obtaining at least one second clustering result.
[0115] Illustratively, after acquiring at least one first clustering result, the electronic device may execute the following S603.
[0116] S603: Perform a second clustering operation according to the at least one first clustering result to obtain at least one second clustering result.
[0117] In the embodiment of the present application, the execution of the second clustering operation may refer to the execution of the first clustering operation. The specific implementations may refer to each other.
[0118] Take the first clustering result including location B1, location B2, location B3 and location B4 as an example. Figure 8 For example, after the second clustering operation, location B1 and location B2 can be clustered to obtain location C1, and location B3 and location B4 can be clustered to obtain location C2.
[0119] It can be understood that the number of the second clustering results is less than that of the first clustering results, and the data is more concise and easier to process.
[0120] In some embodiments of the present application, the electronic device may further continue to perform the first clustering operation or the second clustering operation on at least one second clustering result, thereby further achieving the effect of streamlining data.
[0121] In the following example, it is taken that the electronic device performs the second clustering operation to obtain the second clustering result including the location C1 and the location C2.
[0122] The electronic device may execute the above S601-S603 for each unit (eg, 1 day) in the detection period (ie, 3 days), thereby obtaining the second clustering result corresponding to each day in the 3 days.
[0123] For example, Fig. 9 As shown, the 3 days may include D1-D3.
[0124] The second clustering result in D1 may include location C1 and location C2. The second clustering result in D2 may include location C1, location C2, and location C3. The second clustering result in D3 may include location C1 and location C4.
[0125] It should be noted that after completing the first clustering operation and the second clustering operation, the electronic device can store the geographic coordinates, time, and cell identifiers of each second clustering result. The specific determination method is referred to the above description and will not be repeated here.
[0126] S604: Filter and obtain high-frequency locations according to all second clustering results in the detection period.
[0127] It is understandable that if Fig. 9 As shown, in each unit within the detection period, the second clustering result may include repeated parts. For example, location C1 and location C2 appear multiple times.
[0128] That is to say, at the location C1 and the location C2, the user frequently uses the application A. Therefore, the location C1 and the location C2 can be used as high-frequency locations corresponding to the application A.
[0129] Exemplarily, in some embodiments, the electronic device may screen places whose occurrence times are greater than or equal to a preset first number according to all second clustering results, and determine them as high-frequency places.
[0130] Combination Fig. 9 For example, the preset first number is 2. Fig.10 , in the detection period, location C1 appears 3 times, and location C2 appears 2 times. That is to say, the number of occurrences of location C1 and location C2 are both greater than or equal to the first number. Then, location C1 and location C2 can be high-frequency locations of application A.
[0131] That is, the high-frequency location information included in the geo-fence of application A may correspond to location C1 and location C2.
[0132] In other embodiments, the electronic device may further sort all the locations in the second clustering results according to the number of occurrences from large to small, and select multiple locations whose number of occurrences is greater than a corresponding threshold as high-frequency locations.
[0133] In combination with the above description, the high-frequency location information can be represented by the cell identifier of the corresponding location.
[0134] Then, in this example, the geo-fence of application A may include: one or more cell identifiers corresponding to location C1, and one or more cell identifiers corresponding to location C2. Figure 6-Figure 10 In the description, the detection period is 3 as an example. In the specific implementation process, the detection period can be longer (such as 30 days). In this way, more abundant data is obtained to determine the geographic fence.
[0135] Above Figure 6-Figure 10 In the example, the geographical coordinates of the electronic device starting the application A are used to illustrate the confirmation of the geographical fence of the application A. In another embodiment of the present application, the electronic device can also confirm the geographical fence of the user according to the user's stay.
[0136] The user's geo-fence may include one or more geographic ranges. In an embodiment of the present application, the geo-fence may include at least one high-frequency location information where the user stays. As an implementation, the high-frequency location information may be a cell ID (Cell ID) of the access network when the electronic device is located at the location.
[0137] In an embodiment of the present application, the electronic device can collect statistics on the user's stay information within a detection period, thereby determining the user's geographic fence.
[0138] For example, the geographical coordinates of the user's stay in a day are recorded, as well as the corresponding time and the cell identifier of the electronic device accessing the network. For example, the geographical coordinates may be longitude and latitude.
[0139] As an example, refer to Figure 7 In 701, on that day, the user stayed at 10 locations including location A1, location A2, location A3, etc. The electronic device can record the geographical coordinates, time and cell identification of the 10 locations respectively.
[0140] It should be noted that in some embodiments of the present application, the electronic device can record the geographical coordinates, time, and cell identifier of the first location when the electronic device stays at the first location for a certain period of time (such as time T1). In some embodiments of the present application, the time T1 can also be called a second duration.
[0141] The electronic device may continue to perform the operations of S602 to S604 for the 10 locations, thereby acquiring high-frequency location information in a detection period (eg, 3 days).
[0142] For example, refer to Fig.10 The high-frequency locations may include location C1 and location C2. That is, users frequently stay at location C1 and location C2.
[0143] In summary of the above description, high-frequency location information can be represented by the cell identifier of the corresponding location.
[0144] Then, in this example, the user's geo-fence may include: one or more cell identifiers corresponding to location C1, and one or more cell identifiers corresponding to location C2.
[0145] In an embodiment of the present application, the electronic device may also determine that application A has a time attribute during a detection period according to the user's usage habits of application A, and determine a high-frequency time period indicated by the time attribute of application A. In some embodiments of the present application, the high-frequency time period includes a first high-frequency time period, and the first high-frequency time period is included in the high-frequency time period set.
[0146] As an example, refer to Fig.11 .Should Fig.11 It can be used to determine the high-frequency time period of application A. Here, the detection period of 3 days is taken as an example.
[0147] like Fig.11 As shown, the program may include:
[0148] S1101 . Taking one day as a unit, determine a time period corresponding to when application A is started in the unit.
[0149] Exemplarily, in combination with the description in S601, the electronic device may record the corresponding geographic coordinates, time and cell identifier when application A is started.
[0150] In this example, the electronic device may divide the startup of application A into corresponding time periods according to the time when application A is started.
[0151] As an example, the electronic device may divide a unit (such as 1 day) into 48 time periods. In some implementations, the duration of the 48 time periods may be the same. For example, the duration of each time period may be 30 minutes. Then, the 48 time periods may be respectively from 0:00 to 0:30, 0:30 to 1:00, 1:00 to 1:30, ..., 23:00 to 23:30, and 23:30 to 12:00 on the same day.
[0152] In the embodiment of the present application, the time period may be referred to as a time bucket (bin). The time period may be referred to as a bin for short.
[0153] In the present application, the electronic device may record the number of times application A is started in each bin corresponding to a time period within the unit of one day.
[0154] For example, application A is started at 0:10. The time of this start falls in the bin from 0:00 to 0:30. Then, the electronic device can record the number of times application A starts in the bin from 0:00 to 0:30 plus 1.
[0155] Combined with the above description, the user's usage habits of the application are often related to both the current location and the current time.
[0156] Then, in some implementations of the present application, the electronic device may execute S1101 when approaching a high-frequency location. When the distance between the current location and a certain high-frequency location is less than a second distance, it may be determined that the current location is near the high-frequency location. The high-frequency location may be based on the following example: Figure 6 For example, the high frequency locations may include Fig.10 Then, if the distance between the current position and the location C1 is less than the second distance, it can be considered that the electronic device is close to the location C1, triggering the execution of S1101.
[0157] By analogy, the electronic device can obtain the corresponding relationship between the usage of application A and the bin within that day.
[0158] As an example, Fig.12 An example of a time period corresponding to application A collected within a unit day (such as D1) is provided.
[0159] like Fig.12 As shown, in D1, the bin corresponding to application A may include bins of 0030-0100 and bins of 0100-0130. The bin of 0030-0100 is the time period corresponding to 0:30 to 1:00. The bin of 0100-0130 is the time period corresponding to 1:00 to 1:30.
[0160] The Fig.12 The example is described by taking the electronic device approaching location C1 as an example. In the case where the geographic fence of application A also includes other high-frequency locations, the electronic device can also obtain corresponding time period information for the other high-frequency locations respectively.
[0161] In the following example, the high-frequency locations of application A include location C1.
[0162] S1102: During the detection cycle, obtain the time period corresponding to each unit.
[0163] The time period corresponding to each unit is used to identify the start time of application A at a high-frequency location within the unit day.
[0164] For example, if the detection period is 3 days, the electronic device can implement according to the solution provided in S1101 to obtain the time period when the application A is close to a high-frequency location (such as location C1) in each of the 3 days.
[0165] As an example, Fig.13 An example of the time period of collection in each detection cycle is provided.
[0166] For example, the detection period includes unit days D1, D2, and D3.
[0167] like Fig.13 As shown, at D1, the time period when the electronic device approaches the location C1 and starts the application A may include: 0030-0100 and 0100-0130.
[0168] At D2 , the time period when the electronic device approaches the location C1 and starts the application A may include: 0030-0100 and 0230-0300.
[0169] At D3 , the time period when the electronic device approaches the location C1 and starts the application A may include: 0030-0100 and 0100-0130.
[0170] It is understandable that Fig.13 The example is only an example. In other embodiments of the present application, the detection period can also be longer (such as 30 days), so that the time period corresponding to each day in the 30 days can be obtained.
[0171] In this example, the electronic device may process the multiple time periods obtained in S1102 to accurately determine the high-frequency time period corresponding to the location C1 and the application A.
[0172] Exemplarily, the implementation of processing multiple time periods may refer to the following S1103 and S1104.
[0173] In some embodiments of the present application, the multiple time periods include a second time period, a third time period, a fourth time period and a fifth time period.
[0174] S1103. Sort multiple time periods within the detection cycle.
[0175] Exemplarily, the electronic device may sort the multiple time periods from high to low according to the proportion of days they occur.
[0176] For any bin recorded in a detection period, each time the bin appears, the number of days of appearance increases by 1. The percentage of days of appearance of the bin can be: the number of days of appearance of the bin divided by the sum of the number of days of appearance of all bins.
[0177] As Fig.13 The multiple time periods shown are taken as an example.
[0178] The bin corresponding to 0030-0100 appears on D1, D2, and D3 within the detection period. The number of days that the bin corresponding to 0030-0100 appears is 3 days.
[0179] The bin corresponding to 0100-0130 appears in D1 and D3 within the detection period. The number of days that the bin corresponding to 0100-0130 appears is 2 days.
[0180] The bin corresponding to 0230-0300 appears in D2 within the detection period. The number of days that the bin corresponding to 0230-0300 appears is 1 day.
[0181] So, in Fig.13 In the detection period shown, the sum of the number of days that all bins appear is 3+2+1=6.
[0182] Correspondingly, the proportion of days that the bin corresponding to 0030-0100 appears is 3 / 6=0.5.
[0183] The percentage of days that the bin corresponding to 0100-0130 appears is 2 / 6=0.33.
[0184] The percentage of days corresponding to the bin from 0230 to 0300 is 1 / 6 = 0.17.
[0185] In this way, the result of sorting each bin from high to low according to the proportion of occurrence days can be: 0030-0100, 0100-0130, 0230-0300.
[0186] Similar to the description in S1103. In other implementations, the detection period can be longer, and the corresponding bin data is more. Then the electronic device can perform sorting operations on each bin according to a similar solution in the above description.
[0187] For example, taking a detection period of 30 days as an example, the following Table 1 shows an example of the proportion of days of occurrence of each bin in the detection period.
[0188] Table 1
[0189] bin Days Percentage of days 0000-0030 2 0.105263158 0030-0100 3 0.157894737 0100-0130 1 0.052631579 0130-0200 4 0.210526316 0200-0230 5 0.263157895 0230-0300 4 0.210526316
[0190] As shown in Table 1, the sum of the number of days that all bins appear is 2+3+1+4+5+4=19 days.
[0191] The bin corresponding to 0000-0030 appears for 2 days within the detection period, so the percentage of days that the bin corresponding to 0000-0030 appears is 2 / 19=0.105263158.
[0192] Similarly, if the bin corresponding to 0030-0100 appears for 3 days within the detection period, the percentage of days that the bin corresponding to 0030-0100 appears may be 3 / 19=0.157894737.
[0193] The bin corresponding to 0100-0130 appears for 1 day within the detection period, so the percentage of days that the bin corresponding to 0100-0130 appears may be 1 / 19=0.052631579.
[0194] The bin corresponding to 0130-0200 appears for 4 days within the detection period, so the percentage of the number of days that the bin corresponding to 0130-0200 appears may be 4 / 19=0.210526316.
[0195] The bin corresponding to 0200-0230 appears for 5 days within the detection period, so the percentage of days that the bin corresponding to 0200-0230 appears may be 5 / 19=0.263157895.
[0196] The bin corresponding to 0230-0300 appears for 4 days within the detection period, so the percentage of the number of days that the bin corresponding to 0230-0300 appears may be 4 / 19=0.210526316.
[0197] Thus, in the example provided in Table 1, the bins sorted according to the proportion of occurrence days can be:
[0198] 0200-0230, 0130-0200, 0230-0300, 0030-0100, 0000-0030, 0100-0130.
[0199] Among them, the percentage of days with 0130-0200 and 0230-0300 is 0.210526316. Then, the order of the two bins can be flexibly set according to the actual situation. For example, the earlier 0130-0200 can be set before 0230-0300.
[0200] In the above example, sorting the bins according to the proportion of the number of days of appearance is used as an example for explanation. In other embodiments of the present application, the electronic device can also directly sort the bins according to the number of days of appearance of each bin.
[0201] S1104. Determine the high-frequency time period corresponding to application A according to the sorting result.
[0202] It is understandable that after the sorting in S1103, the higher the sorting position, the higher the frequency of occurrence of the bin, and the greater the possibility that the user starts application A in the time period corresponding to the bin.
[0203] In some embodiments, the electronic device may select at least one bin whose proportion of appearance days is greater than a preset second proportion based on the proportion of appearance days of each bin, and determine it as the high-frequency time period of application A.
[0204] For example, in combination with the example in Table 1, taking the second ratio as 0.2 as an example, the bins with a ratio of days greater than 0.2 may include 0130-0200, 0200-0230, and 0230-0300. Therefore, the high-frequency time periods of application A at location C1 may include 0130-0200, 0200-0230, and 0230-0300.
[0205] It is understandable that when the number of samples in the detection cycle is large, the discrete degree of the high-frequency time period is higher. Then, in other embodiments of the present application, the electronic device can also perform a time period clustering operation (or a third clustering operation) according to the sorting result in S1103 to obtain a more accurate and concise high-frequency time period.
[0206] Illustratively, the electronic device may number each bin according to the sorting result in S1103, so as to perform a subsequent third clustering operation.
[0207] For example, combined with the example in Table 1. The top-ranked 0200-0230 can be marked as 1#bin. The following can be marked as 2#bin corresponding to 0130-0200, 3#bin corresponding to 0230-0300, 4#bin corresponding to 0030-0100, 5#bin corresponding to 0000-0030, and 6#bin corresponding to 0100-0130. In the example in Table 1 above, only the occurrence of part of the time period in the detection cycle is shown, and the proportion of the number of days, sorting, and numbering are explained.
[0208] In the following example, in order to more clearly illustrate the subsequent third clustering operation, the time period distribution after sorting and numbering according to the proportion of occurrence days is as follows: Fig.14 The following is an example for explanation.
[0209] In such Fig.14 In the example, the larger the vertical value of the bar graph corresponding to the bin is, the larger the proportion of the corresponding occurrence days is. The proportion of the occurrence days from 1#bin to 8#bin decreases successively. Each bin can include an interval time period or an adjacent time period.
[0210] In the present application, the third clustering operation may be performed in order from small to large numbers.
[0211] Exemplarily, the third clustering operation can be implemented in the following manner: taking 1#bin as the cluster center, when including one or more bins that meet the third clustering operation rules, perform the third clustering operation of the one or more bins and 1#bin, and obtain a corresponding third clustering result. The third clustering result can also correspond to a time period, which can cover all clustered bins. If the third clustering operation with 1#bin as the cluster center is completed, and other bins are included, then continue to use the bin with the smallest number in the remaining bins as the cluster center and repeat the above third clustering operation.
[0212] In some embodiments, the third clustering operation may be performed until all bins are clustered or the remaining bins do not satisfy the third clustering operation rule.
[0213] In other embodiments, in accordance with Fig.14 After the third clustering operation is performed in the scheme shown, the third clustering operation can be stopped when the sum of the proportions of the number of days of all the third clustering results obtained is greater than or equal to the proportion R1 (such as 0.9). The remaining other bins can be discarded. It can be understood that when the ratio of the number of days of all the third clustering results is greater than the proportion R1, the third clustering result has already included most of the valid bins. The third clustering result thus obtained can effectively and accurately reflect the high-frequency time period of the application.
[0214] For any third clustering result, its start time may be the earliest start time of all bins participating in the aggregation. Its end time may be the latest end time of all bins participating in the aggregation. The percentage of days of occurrence of the third clustering result may be the sum of the percentage of days of occurrence of all bins participating in the aggregation.
[0215] The third clustering operation rule may include: if the time difference between a bin and a bin as a cluster center is less than or equal to a fourth time length, the third clustering operation rule is satisfied. The time difference may be the time difference between the end time of the previous bin and the start time of the subsequent bin.
[0216] As an example, combining Fig.14 Take the fourth time segment, which is 30 minutes long, as an example.
[0217] The third clustering operation is started with 1#bin as the cluster center. The difference between the start time of 2#bin and the end time of 1#bin is one bin, that is, 30 minutes. Then 2#bin meets the third clustering rule and can be clustered with 1#bin. After 2#bin and 1#bin are clustered, the start time of the corresponding bin can be the earlier start time of 1#bin, and the end time can be the later end time of 2#bin.
[0218] By analogy, for other bins, 7#bin is adjacent to 1#bin, and the time difference is 0, so 7#bin can be clustered with 1#bin.
[0219] It should be noted that although the time difference between 5#bin and 1#bin is greater than the fourth time length, the time difference between 5#bin and 2#bin is 0. Therefore, 5#bin can also be clustered with 1#bin.
[0220] Therefore, taking 1#bin as the third clustering operation in clustering, we can obtain Fig.14 A third clustering result is shown, namely the first cluster bin. The start time of the first cluster bin may be the earliest start time of 7#bin, and the end time of the first cluster bin may be the latest end time of 5#bin. The proportion of days of occurrence of the first cluster bin may be the sum of the proportions of days of occurrence of 1#bin, 2#bin, 5#bin and 7#bin (such as 0.55).
[0221] Similarly, after completing the third clustering operation with bin 1# as the cluster, bin 2# has been clustered with bin 1#. The electronic device can continue to perform the third clustering operation with bin 3# as the cluster center. Fig.14The second cluster bin shown. The second cluster bin can be obtained by aggregating 3#bin, 4#bin and 6#bin. The start time of the second cluster bin can be the earliest start time of 4#bin, and the end time of the second cluster bin can be the latest end time of 6#bin. The proportion of days of occurrence of the second cluster bin can be the sum of the proportion of days of occurrence of 3#bin, 4#bin and 6#bin (such as 0.33).
[0222] In this example, after obtaining the first cluster bin and the second cluster bin, there is still 8#bin that does not participate in the aggregation. Then, this 8#bin can be used as a separate third cluster result (such as called the third cluster bin). For example, the percentage of days of appearance of 8#bin, that is, the third cluster bin, can be 0.02.
[0223] Thus, the electronic device can obtain three third clustering results including the first clustering bin, the second clustering bin, and the third clustering bin through the third clustering operation.
[0224] In some embodiments of the present application, the third clustering result also includes a sixth time period and a seventh time period.
[0225] It can be understood that after the third clustering operation, the scattered time periods (such as 30-minute bins) are aggregated, making the high-frequency time period data corresponding to application A more streamlined and convenient for subsequent applications.
[0226] In this example, the electronic device can use the three third clustering results including the first clustering bin, the second clustering bin, and the third clustering bin as the high-frequency time period corresponding to the application A at the location C1.
[0227] In some other embodiments of the present application, the electronic device may also be based on Fig.14 The third clustering operation shown processes the third clustering result so that the high-frequency time period determined according to the third clustering result is more accurate and concise, which is convenient for subsequent use.
[0228] Exemplarily, the electronic device may reduce the time period for each of the plurality of third clustering results, thereby improving the accuracy of the clustering result.
[0229] In some implementations, the simplification of the time period may be determined based on a fifth duration. The fifth duration may be preset, such as the fifth duration may be set to 60 minutes. Then, the duration of each simplified third clustering result may be the fifth duration, i.e., 60 minutes.
[0230] In this example, if the duration of a third cluster result is greater than the fifth duration, the electronic device can extend to at least one of the two sides based on the cluster center of the third cluster result until the duration corresponding to the cluster result reaches the fifth duration. The mechanism of extending to at least one of the two sides can be performed with reference to the proportion of occurrence days.
[0231] For example, Fig.14 Take the first cluster bin in as an example. The cluster center of the first cluster bin can be 1#bin. The duration of each bin can be 30 minutes. Then, when the fifth duration is 60 minutes, the streamlined first cluster bin can include two adjacent bins.
[0232] In such Fig.14 In the example, the percentage of days in the bin adjacent to the start time of bin 1# (i.e. bin 7#) is smaller than that in the bin adjacent to the end time of bin 1#. Therefore, in this example, bin 1# can be used as a benchmark to extend to a later time (i.e., extend to the positive direction of the x-axis), so that the percentage of days in the time period obtained after simplification can be higher.
[0233] refer to Fig.15 , thereby the electronic device can simplify the first cluster bin into the fourth cluster bin.
[0234] Similarly, the electronic device can also simplify the second cluster bin into a fifth cluster bin.
[0235] In such Fig.15 In the example of , since the duration of the third cluster bin is shorter, it is smaller than the fifth duration. For this type of third cluster result, the electronic device can discard it during the streamlining process.
[0236] Thus, by Fig.15 According to the simplification operation shown, the simplified third clustering result may include the fourth clustering bin and the fifth clustering bin.
[0237] In this example, the electronic device can use the fourth cluster bin and the fifth cluster bin as the high-frequency time period corresponding to the application A at the location C1.
[0238] Above Fig.15 In the example, Fig.14 The third clustering result shown is simplified according to the fifth duration as an example. In other implementations of the present application, the simplification operation on the third clustering result can also be performed based on the proportion of the number of days of occurrence.
[0239] As an implementation, in some embodiments, the electronic device may be based on the third clustering result, or as follows Fig.15The simplified third clustering result and the preset fourth proportion are used to simplify the clustering result. For example, the fourth proportion may be 0.2.
[0240] As Fig.15 The fourth cluster bin and the fifth cluster bin shown are used as an example to simplify the clustering results in combination with the preset fourth proportion.
[0241] The electronic device may discard, among all clustering results, clustering results whose proportion of appearance days is less than the fourth proportion, and retain clustering results whose proportion of appearance days is greater than the fourth proportion.
[0242] In such Fig.15 In the example, the fourth cluster bin may have a percentage of days greater than 0.2, and the fifth cluster bin may have a percentage of days less than 0.2. Fig.15 As shown, after simplification based on the fourth proportion, the retained simplified third clustering results may include the fourth clustering bin.
[0243] That is, in this example, the high-frequency time period corresponding to application A at location C1 may be the time period corresponding to the fourth cluster bin.
[0244] In some other implementations of the present application, the electronic device may further filter the first N third clustering results sorted by the percentage of the number of days of occurrence from high to low according to the percentage of the third clustering results, and simplify the clustering results.
[0245] For example, in Fig.14 In the example, the first cluster bin accounts for 0.55 days, the second cluster bin accounts for 0.33 days, and the third cluster bin accounts for 0.02 days. The results of sorting from high to low are: first cluster bin, second cluster bin, third cluster bin. Assuming N is 2, the streamlined third cluster result can include the first cluster bin and the second cluster bin. Then, in this embodiment, the high-frequency time period corresponding to application A at location C1 can be the time period corresponding to the first cluster bin and the second cluster bin.
[0246] It is understandable that, after the above-mentioned simplification operation based on the fifth duration and / or the fourth proportion and / or sorting screening, when the third clustering results are relatively large and scattered, a simplified third clustering result with a reasonable duration and a high proportion of days can be obtained. Therefore, the preloading of application A based on the simplified point clustering result can be executed more accurately and efficiently.
[0247] In the above example, the location C1 corresponding to application A is used as an example to illustrate the acquisition of the high-frequency time period of the high-frequency location. It can be understood that when the high-frequency location corresponding to application A also includes other locations (such as location C2), the electronic device can obtain the high-frequency time period of the high-frequency location based on the above Figure 11-Figure 15 A similar mechanism is used to determine the high-frequency time period corresponding to the location C2 where application A is used.
[0248] It should be noted that in the above example, Fig.14 The high-frequency time period processing method provided, or Fig.15 The high frequency time period processing method is provided as an example for illustration. In other embodiments of the present application, the following can also be used simultaneously: Fig.14 The solutions provided, as well as Fig.15 The provided solution processes high-frequency time periods.
[0249] For example, in this example, according to the sorting result, determining the high-frequency time period corresponding to application A can also be achieved through the following solution:
[0250] According to the third clustering result, at least one third clustering result whose occurrence days ratio is greater than the fourth ratio is selected to obtain at least one fourth clustering result. Fig.15 Based on the solution provided by the fourth proportion processing, the third clustering result can be streamlined to obtain the fourth clustering result.
[0251] In some other implementations of the present application, the electronic device may further select the first N third clustering results sorted from high to low in terms of the percentage of days of occurrence according to the third clustering result as the fourth clustering result. Wherein N is an integer greater than or equal to 1. Thus, corresponding to Fig.14 Based on the solution provided by sorting and screening, the third clustering result can be streamlined to obtain the fourth clustering result.
[0252] In this example, the electronic device can also perform a time reduction operation on any of the fourth clustering results according to the fourth clustering result to obtain at least one fourth clustering result with a reduced time. Fig.15 Based on the solution provided by the fifth duration processing, the fourth clustering result can be streamlined to obtain a more streamlined and accurate clustering result.
[0253] In this example, the electronic device can also filter at least one fifth cluster result whose occurrence days account for a larger proportion than the fifth proportion according to the fourth cluster result with a reduced duration. The electronic device uses the at least one fifth cluster result as at least one high-frequency time period corresponding to application A. Fig.15The provided solution can achieve the simplification of the fourth clustering result with shortened duration, making the high-frequency time period data corresponding to application A more concise, accurate and easy to use.
[0254] Therefore, through the above Figure 6-Figure 10 The determination mechanism of geo-fencing, as well as the above Figure 11-Figure 15 With the mechanism for determining the high-frequency time period, the electronic device can determine the geographic fence and high-frequency time period corresponding to application A according to the user's usage of application A during the detection period.
[0255] It can be understood that in different embodiments, the application A may be one or more.
[0256] When there are multiple applications A, the electronic device can Figure 6-Figure 10 A solution is provided to determine a geographic fence corresponding to each of the multiple applications.
[0257] For example, an application whitelist may be set in the electronic device. The application whitelist may include multiple application programs. Then, the electronic device may determine the corresponding geographic fence for each of the multiple application programs.
[0258] Then, the electronic device can also perform the following operations for each geographic fence of each application: Figure 11-Figure 15 The scheme shown determines the high-frequency time period corresponding to the geographic fence (ie, the high-frequency location).
[0259] For any application in the application whitelist, if the application includes at least one high-frequency time period in its corresponding geo-fence, the application may be application A. The application may have a time attribute.
[0260] In an embodiment of the present application, the electronic device can store the geographic fences of each application A and the corresponding high-frequency time periods for subsequent use.
[0261] In combination with the above description, the geo-fence of application A may include at least one high-frequency location information. Each high-frequency location information may include one or more cell identifiers. Since application A has a time attribute, then, for the location indicated by the high-frequency location information of application A, at least one corresponding high-frequency time period may be included.
[0262] The electronic device may preload application A according to the above-mentioned stored information.
[0263] Exemplary, reference Fig.16 , which is a flow chart of an application preloading method provided in an embodiment of the present application.
[0264] like Fig.16As shown, the program may include:
[0265] S1601. The electronic device detects the current position in real time.
[0266] S1602: Determine whether there is an application with a time attribute at the current location. The application can be included in the application whitelist.
[0267] If the current location includes an application with a time attribute, the following S1603 is executed. Otherwise, if the current location does not include an application with a time attribute, no response is made. The process ends.
[0268] Exemplarily, in combination with the foregoing description, the electronic device may store the geographic fence and high-frequency time period corresponding to each application in the application whitelist.
[0269] Then, for each application in the application whitelist, the electronic device can determine whether there is an application with time attributes at the current location based on whether the current location is in a geo-fence and whether there is a high-frequency time period of the application in the geo-fence.
[0270] For example, application A is included in the application whitelist.
[0271] As a possible implementation, the electronic device uses the cell identifier of the currently accessed network to query among multiple cell identifiers corresponding to the geo-fence of application A. If there is a match in the query (such as the multiple cell identifiers corresponding to application A include the cell identifier of the currently accessed network), it is determined that the electronic device has entered the geo-fence of application A.
[0272] In other embodiments of the present application, it is also possible to confirm whether the electronic device enters the geo-fence based on multiple cell identifiers corresponding to the user's geo-fence.
[0273] As an implementation, the electronic device uses the cell identifier of the current access network to query whether there is a matching item in multiple cell identifiers corresponding to the user's geo-fence. If there is a matching item in the query, it is determined that the electronic device has entered the user's geo-fence.
[0274] The electronic device may also query whether there is at least one high-frequency time period corresponding to the geographic fence to determine whether the application A has a time attribute at the current location.
[0275] If application A has at least one high-frequency time period in the geo-fence, it is considered that application A has a time attribute at the current location.
[0276] If application A does not have a high-frequency time period in the geo-fence, it is considered that application A has no time attribute at the current location.
[0277] S1603: Determine a high-frequency time period of an application program having a time attribute at the current location.
[0278] S1604: Preload the application program according to the high-frequency time period of the application program.
[0279] Exemplarily, the electronic device may determine to preload the application program in combination with the current time.
[0280] In some embodiments, application A has a time attribute at the current location. If the current time is earlier than the high-frequency time period of application A at the current location, the electronic device can set a timer internally, and the timer can be used to trigger the electronic device to preload application A at the first moment before the high-frequency time period arrives. The preloading process can refer to Figure 3 Instructions in .
[0281] The first moment may be a moment of the first duration before the high-frequency time period arrives. For example, the first duration may be 30 minutes. Then, if the current time is earlier than 30 minutes before the high-frequency time period arrives, the electronic device may preload application A 30 minutes before the high-frequency time period arrives by setting the above timer.
[0282] In other embodiments, if the current time is earlier than the high-frequency time period corresponding to application A, but the high-frequency time period of application A is less than the first time length, the electronic device can immediately preload application A. In other embodiments, when the electronic device performs preloading, application A is already in the memory, and the preloading of application A is canceled. In other embodiments, the electronic device enters and exits the geo-fence multiple times within the time period indicated by the time attribute. The electronic device only preloads application A when it enters the geo-fence for the first time, avoiding multiple repeated preloading.
[0283] Thus, through Fig.16 With the scheme shown, the electronic device can accurately preload application A according to the current location and time, and the geographic fences and high-frequency time periods corresponding to each application in the stored application whitelist.
[0284] It is understandable that in Fig.16 In the description, the electronic device may determine that it has entered the geo-fence when the cell identifier of the current access network is included in the cell identifier of the stored geo-fence. Correspondingly, when the cell identifier of the electronic device accessing the network changes, the location of the corresponding electronic device changes.
[0285] Then, in this case, if the changed cell identifier is not included in the cell identifiers of the stored geo-fence, and the preloading of application A has been triggered, the electronic device may interrupt the preloading of application A. For example, the electronic device may interrupt the timer that triggers the preloading of application A.
[0286] In other embodiments of the present application, the electronic device may also optimize the geo-fence, thereby dividing the geo-fence into different areas for respectively determining entry into and exit from the geo-fence.
[0287] Exemplarily, in combination with the above-mentioned example of the solution for determining the geo-fence, the electronic device determines at least one high-frequency location corresponding to application A. In addition, the electronic device may also store the number of occurrences of each high-frequency location in the detection cycle.
[0288] For example, the following Table 2 shows an example of the number of times a cell identifier included in a high-frequency location appears in a detection period, taking a detection period of 30 days as an example.
[0289]
[0290] As shown in Table 2, the number of days that the cell ID [13849465] appears is 21 days. The number of days that the cell ID [19646486] appears is 18 days. The number of days that the cell ID [14649849] appears is 16 days. The number of days that the cell ID [12494989] appears is 12 days. The number of days that the cell ID [15978487] appears is 10 days. The number of days that the cell ID [16999874] appears is 6 days.
[0291] In some embodiments, similar to the above-mentioned example of determining a high-frequency time period, in this example, the electronic device may determine the percentage of days that each cell identifier appears. The electronic device may also record a set of cell identifiers whose percentage of days that appear is greater than the third percentage as the first area. Correspondingly, when the electronic device accesses a network of any cell identifier in the first area, it is determined that the electronic device enters the geo-fence.
[0292] In some other embodiments, the first area may include multiple cell identifiers. For multiple cell identifiers corresponding to any high-frequency location, the electronic device may sort the multiple cell identifiers from large to small according to the number of days they appear, and determine the cell identifiers in the first a% of the sorting as the cell identifiers of the first area, where a is a preset value.
[0293] The electronic device may record the set of cell identifiers of all recorded high-frequency locations as the second area. Correspondingly, when the electronic device switches to connect to a network different from the cell identifier in the second area, it is determined that the electronic device exits the geo-fence.
[0294] For example, refer to Fig.17 When the electronic device enters the first area, it is considered that the electronic device has entered the geo-fence. Correspondingly, when the electronic device exits the second area, it is considered that the electronic device has exited the geo-fence.
[0295] It can be understood that the first area is smaller than the second area and the first area should be included in the second area.
[0296] If the electronic device accesses the cell identifier of the first area, then, from the perspective of geographic location alone, the probability that the electronic device runs application A at the current location is relatively high. Fig.16 In an example of the solution, the electronic device may determine that it has entered the geo-fence when it determines that the cell identifier of the network accessed at the current location includes the cell identifier of the first area.
[0297] If the electronic device accesses a cell identifier outside the second area, the probability that the electronic device runs application A at the current location is low during the detection period. Therefore, the electronic device can determine that the current location is no longer within the geo-fence, for example, triggering an interruption to the preloading of application A.
[0298] In the above solution description, the implementation of the solution for the electronic device to enter / exit the geo-fence is described in detail. In other embodiments of the present application, the electronic device can also pre-determine the probability of the user using each application in the application whitelist on the same day before entering the geo-fence (such as at the beginning of the day). Based on the probability of each application, combined with the above Fig.16 The solution shown comprehensively considers whether to trigger preloading of the application.
[0299] Exemplarily, for each high-frequency location of application A, the electronic device may determine the usage probability corresponding to the high-frequency location according to the number of times application A is used in the high-frequency location within a detection period.
[0300] The usage probability is equal to the number of days that application A is used in high-frequency locations, divided by the number of days that the electronic device is close to the high-frequency locations.
[0301] For example, if the high-frequency location of application A includes location C1, the detection period is 30 days, and the number of days during the 30 days that the electronic device is close to location C1 is 20 days, and the number of days that application A is used in location C1 is 16 days. Then, the usage probability of application A in location C1 can be 16 / 20=80%.
[0302] Similarly, for the high-frequency location C2 of application A, the number of days that application A is close to the location C2 is 30 days. The number of days that the electronic device runs application A when close to the location C2 is 3 days. Then, the usage probability of using application A in the location C2 may be 3 / 30=10%.
[0303] Thus, the electronic device can determine the usage probability of each high-frequency location corresponding to application A.
[0304] Based on the usage probability of the application A in various high-frequency locations, the electronic device can pre-determine the high-frequency locations where the application A may be used in the next day or a few days. Fig.16 The scheme shown triggers the determination of whether to preload application A. For other locations where the probability of using application A is low, the electronic device can temporarily exclude these high-frequency locations from the geo-fence to avoid triggering the preloading of application A when the electronic device moves to these locations.
[0305] For example, a first probability threshold may be pre-set in the electronic device. When the usage probability of a high-frequency location is greater than the first probability threshold, it is considered that the electronic device is likely to run application A in the high-frequency location in the next few days. Fig.16 The illustrated scenario triggers a determination as to whether to preload application A.
[0306] As an example, the first probability threshold is 70%, and the high-frequency location includes location C1. The probability of application A being used in location C1 is 80%, which is greater than the first probability threshold. Therefore, the electronic device can determine whether to perform preloading of application A when approaching location C1. Fig.16 According to the description, if the current time is earlier than the high-frequency time period corresponding to the location C1, the electronic device can set a timer to preload the application A before the high-frequency time period arrives.
[0307] Correspondingly, when the usage probability at a high-frequency location is less than the first probability threshold, it is considered that the electronic device is unlikely to run application A at the high-frequency location in the next few days. For these high-frequency locations, the electronic device can temporarily exclude them from the geo-fence to avoid preloading application A at these locations.
[0308] As an example, take the first probability threshold as 70% and the high-frequency location as location C2. The probability of application A being used in location C2 is 10%, which is less than the first probability threshold. Therefore, even if the electronic device is close to location C2, it will consider that the current location is not close to or enters the geo-fence, and will not trigger the preloading of application A.
[0309] It should be noted that, in some embodiments of the present application, with the continuous use of application A, the use probability of different high-frequency locations may change.
[0310] For example, if application A is run at location C2 for several consecutive days after the usage probability of location C2 is determined to be 10%, the usage probability of application A at location C2 can be increased accordingly. Therefore, when the usage probability of location C2 exceeds the first probability threshold, when the electronic device is close to location C2, it can be determined that it is close to a high-frequency location. Fig.16 The illustrated scheme determines whether to perform preloading of application A.
[0311] In addition, in other embodiments of the present application, the method for determining the usage probability of application A in each high-frequency location may also be different. Exemplarily, the electronic device can determine the usage probability of each high-frequency location based on a preset machine learning model. For example, the machine learning model can be a binary classification model, and the sample data input to the model can include the user's behavioral characteristics and / or time characteristics in a high-frequency location. For example, the user uses the target application on Wednesday, the percentage of days the target application was opened in the target location in the past 20 days, etc.
[0312] In the above example, application A is used as an example. For other applications in the application whitelist, the electronic device can also adopt a similar mechanism to determine the usage probability of each application in a high-frequency location. This is used as a reference for preloading each application. The specific implementation is similar to that of application A and will not be repeated here.
[0313] Therefore, through the above Fig.16 And its related instructions, the electronic device can accurately determine and execute preloading of application A with time attributes according to the current location and time.
[0314] In some other embodiments of the present application, an application B with geographical attributes may also be installed in the electronic device. Then, the electronic device may also preload the application B accurately.
[0315] Exemplary, reference Fig.18 , which is a flow chart of another application preloading method provided in an embodiment of the present application.
[0316] In this example, it is taken that application B has a geographical attribute.
[0317] like Fig.18 As shown, the program may include:
[0318] S1801. The electronic device detects the current position in real time.
[0319] The process can refer to the description of S1601, and the specific implementations can refer to each other and will not be repeated here.
[0320] S1802: Determine whether there is an application with geographic attributes at the current location.
[0321] Combined with the above Figure 6-Figure 10 Regarding the description of the geo-fence, the electronic device stores at least one high-frequency location information corresponding to application B within the detection period. The at least one high-frequency location information of application B can constitute the geo-fence of application B.
[0322] In some embodiments, the electronic device may store high-frequency location information corresponding to each of a plurality of application programs in the application whitelist.
[0323] It is understandable that if an application has high-frequency location information, then the application can have geographic attributes. In this example, the electronic device can compare the high-frequency location information of each application based on the current location. If there is a match, the matched application has geographic attributes at the current location.
[0324] For example, the application whitelist includes application 1 and application 2. The high-frequency location information of application 1 includes the cell identifier of the current location, and the high-frequency location information of application 2 also includes the cell identifier of the current location.
[0325] The electronic device can then determine that application 1 and application 2 have geographic attributes at the current location.
[0326] In some embodiments, in combination with Fig.17 In this example, the electronic device can query the cell identifier of the current access network among the cell identifiers of the first area of all applications. When the query result is not empty, it indicates that there is an application with geographical attributes at the current location.
[0327] In the above embodiment, the geographical attributes of the application are determined by taking the geographical fence as the high-frequency location corresponding to the application as an example. In other embodiments of the present application, the electronic device can also determine the geographical attributes of the application according to the geographical fence as the high-frequency location where the user stays.
[0328] In this example, the electronic device can compare the current location with the high-frequency location information contained in the user's geo-fence. If there is a match, it is determined that the electronic device has entered the user's geo-fence.
[0329] Combination Fig.10 and Fig.11 The electronic device can also query the usage ratio of application B in the geographic fence to confirm whether application B has geographic attributes in the current location.
[0330] Among them, the proportion of the number of times application B is used is equal to the number of times the electronic device uses application B within a certain period of time (such as T1) when arriving at the current location during the detection period, divided by the number of times the electronic device arrives at the current location.
[0331] It should be noted that, within a certain period of time (such as T1), if the electronic device has used application B, the number of times application B is used is increased by 1.
[0332] The sixth proportion may be preset in the electronic device. If the usage frequency proportion of application B is greater than the sixth proportion, it is considered that application B has a geographical attribute at the current location. Otherwise, it is considered that application B does not have a geographical attribute at the current location.
[0333] In some embodiments, in combination with Fig.17 In this example, the electronic device can query the cell identifier of the current access network in the cell identifier of the first area of the user's geo-fence. If the query result is not empty, it indicates that the electronic device has entered the user's geo-fence.
[0334] If it is determined that there is an application with geographic attributes at the current location, the electronic device may execute the following S1803. On the contrary, if there is no application with geographic attributes at the current location, the electronic device may jump out of the solution and not preload the application.
[0335] S1803: Execute preloading of the application.
[0336] Exemplarily, the application may be the application matched and determined in S1802. The application to be preloaded may be one or more. Any one of the application to be preloaded includes at least one high-frequency location information corresponding to the current location.
[0337] For example, the electronic device may perform preloading of Application 1 and Application 2.
[0338] It should be noted that Fig.18 In the example of FIG. 1 , when it is determined that the application has a geographical attribute at the current location, the preloading is immediately performed as an example. In other embodiments of the present application, the electronic device may also determine whether to preload the application in combination with the usage probability of the application. The method for determining the usage probability of the application may refer to the following example. Fig.16 The examples related to probability are used in the description.
[0339] In this example, the electronic device may preload only the application programs whose usage probability is greater than the second probability threshold.
[0340] For example, both Application 1 and Application 2 have geographic attributes at the current location.
[0341] If the usage probability of application 1 is greater than the second probability threshold, the electronic device immediately performs preloading of application 1.
[0342] If the usage probability of application 2 is less than the second probability threshold, the electronic device does not perform preloading of application 2.
[0343] Thus, by Fig.18 In an example of a solution, the electronic device may determine whether to trigger preloading of an application at a current location based on at least one high-frequency location information stored.
[0344] It is understandable that the above Fig.16 as well as Fig.18 Two different application preloading solutions are provided. In some embodiments of the present application, the electronic device may also be combined with Fig.16 The solutions provided, as well as Fig.18 The provided solution implementation enables both applications with geographic attributes and applications with time attributes to accurately trigger preloading.
[0345] Exemplary, reference Fig.19 , is a flowchart of a method for preloading an application provided in an embodiment of the present application. It is understandable that the electronic device may pre-store high-frequency location information corresponding to each application in the application whitelist and the corresponding high-frequency time period. The high-frequency location information of the application may be based on the following information: Figure 6-Figure 10 The high-frequency time period of the application can be determined according to the following scheme: Figure 11-Figure 15 Provided solutions to obtain.
[0346] like Fig.19 As shown, the program may include:
[0347] S1901. The electronic device detects the current location in real time.
[0348] Exemplarily, the execution of S1901 may refer to the execution of S1601, which will not be described in detail.
[0349] S1902: Is there at least one target application with geographic attributes at the current location?
[0350] For example, the electronic device can filter whether there is a matching item from the high-frequency location information corresponding to each stored application according to the current location. If there is a matching item, it is determined that the corresponding application has a geographical attribute at the current location.
[0351] In combination with the description of S1802, the electronic device can also determine that the electronic device has entered the geo-fence if there is a match among the high-frequency locations included in the stored user's geo-fence based on the current location.
[0352] The electronic device can also query the usage days percentage of the application on the geographic fence to screen whether there is a match (if the usage days percentage of the application is greater than the sixth percentage, there is a match). If there is a match, it is determined that the corresponding application has geographic attributes at the current location.
[0353] In this example, for an application with geographic attributes, the electronic device can continue to determine whether the application has a time attribute at the current location, so as to determine the timing for preloading the application.
[0354] S1903: Determine whether the target application has a time attribute at the current location.
[0355] Exemplarily, in the case where the application has a geographic attribute at the current location, the current location of the application shown in S1602 is included in the corresponding geographic fence. Then, if the application has at least one high-frequency time period at the current location, the application has a time attribute at the current location, and the following S1904 is executed. Correspondingly, if the application does not have a high-frequency time period at the current location, the application does not have a time attribute at the current location, and the process jumps to execute the following S1905.
[0356] It should be noted that, in some other embodiments of the present application, before executing S1903, the electronic device may also determine whether the usage probability of the target application is greater than a corresponding threshold (such as a first probability threshold). When the usage probability of the target application is greater than the first probability threshold, the electronic device may execute S1903. This avoids preloading of applications with a lower usage probability at the current location according to the time attribute.
[0357] S1904: Preload according to the time attribute of the target application.
[0358] Combination Fig.16 In the case where the target application has a time attribute at the current location, the electronic device can Fig.16 The solution of S1603-S1604 in the embodiment is used to preload the target application.
[0359] S1905: Immediately preload the target application.
[0360] It is understandable that, in this example, for an application program that does not have a time attribute but has a geographic attribute, the electronic device can immediately preload the target application, thereby facilitating the user's quick use at any subsequent time.
[0361] In other embodiments, in combination with the above description of the second probability threshold, the electronic device may also determine whether the usage probability of the target application that does not have a time attribute but has a geographic attribute is greater than the second probability threshold. If the usage probability of the target application is greater than the second probability threshold, S1905 is executed. That is, the target application is preloaded immediately.
[0362] Thus, through the above Fig.16 or Fig.17 or Fig.19 With the technical solution provided, electronic devices can accurately preload applications. For example, taking a taxi application as an example, the electronic device can preload it before the user needs to use the taxi application. Then when the user uses the taxi application, the application advertisement can be skipped and the application can be used directly. For another example, taking a game application as an example, the electronic device can preload it before the user needs to use the game application. Then when the user uses the game application, the game loading process can be skipped and the game can be started quickly.
[0363] The accurate preloading effect can be achieved based on Figure 6-Figure 10 Provided geo-fence construction solutions and Figure 11-Figure 15 This is achieved by providing a high-frequency time period determination solution.
[0364] It should be noted that in some embodiments of the present application, the electronic device may also collect the judgment accuracy of the preloading mechanism based on the implementation of the preloading solution of the above application program, and adjust the subsequent application preloading according to the judgment accuracy.
[0365] Among them, Fig.19 The solution provided is taken as an example. Fig.19 In the illustrated solution, the electronic device performs preloading of the target application.
[0366] Take the case where the target application has a time attribute. If the user uses the target application in the high-frequency time period corresponding to the time attribute, it indicates that the electronic device's preloading of the target application is effective and the prediction is accurate. On the contrary, if the user does not use the target application in the high-frequency time period corresponding to the time attribute, it indicates that the electronic device's preloading of the target application is invalid and the prediction accuracy is low.
[0367] For example, if the target application has geographic attributes but does not have time attributes, if the user uses the target application at the current location after the target application is preloaded, it indicates that the electronic device's preloading of the target application is effective and the prediction is accurate. On the contrary, if the user does not use the target application at the current location after the target application is preloaded, it indicates that the electronic device's preloading of the target application is invalid and the prediction accuracy is low.
[0368] In this example, the electronic device can store the usage of each preload for any application in the application whitelist. The electronic device can determine the accuracy of preloading of the application in the last M days. For example, the accuracy of preloading can be the number of times the application performs effective preloading in the M days, divided by the total number of times the application performs preloading.
[0369] In some implementations, when the accuracy of preloading of the application is less than or equal to the threshold value P2, it is considered that the preloading of the application in the last M days is not accurate enough. The electronic device can stop preloading the application. That is, the application is removed from the application whitelist. In the following L days, the electronic device can continue to collect the usage of the application, and update the high-frequency location information and / or high-frequency time period of the application in combination with the usage during the detection period. After L days, the electronic device can move the application back to the application whitelist and re-determine the accuracy according to the above scheme.
[0370] In some other implementations, if the number of consecutive days that an application has not been used at a high-frequency location reaches a corresponding threshold, the high-frequency location is removed from the geo-fence of the application.
[0371] In some other implementations, if the number of consecutive days during which an application is not used in a certain high-frequency time period reaches a corresponding threshold, the high-frequency time period is removed from the time attribute of the application.
[0372] Thus, through the negative feedback mechanism, the electronic device can continuously update each application in the application whitelist and its geographic attributes and time attributes. Fig.16 or Fig.18 or Fig.19 The provided solution performs accurate application preloading.
[0373] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of electronic equipment. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0374] The above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0375] For example, Fig. 20 FIG. 2 shows a schematic diagram of the composition of an electronic device 2000. Fig. 20 As shown, the electronic device 2000 may include: a processor 2001 and a memory 2002. The memory 2002 is used to store computer-executable instructions. Exemplarily, in some embodiments, when the processor 2001 executes the instructions stored in the memory 2002, the electronic device 2000 may execute any of the technical solutions shown in the above embodiments.
[0376] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0377] Fig.21 A schematic diagram of the composition of a chip system 2100 is shown. The chip system 2100 may include: a processor 2101 and a communication interface 2102, which are used to support related devices to implement the functions involved in the above embodiments. In a possible design, the chip system also includes a memory for storing program instructions and data necessary for the electronic device. The chip system may be composed of chips, or may include chips and other discrete devices. It should be noted that in some implementations of the present application, the communication interface 2102 may also be referred to as an interface circuit.
[0378] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0379] The functions or actions or operations or steps in the above embodiments, etc., can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that includes one or more servers that can be integrated with a medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state drive (SSD)).
[0380] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for preloading an application program, It is characterized in that The method is applied to an electronic device, wherein at least one application is installed in the electronic device; the at least one application includes a first application set; the electronic device stores a high-frequency time period set and a high-frequency location set; at least one application in the first application set corresponds to at least one high-frequency time period in the high-frequency time period set; The method comprises: The electronic device detects current location information; the current location information is included in the high-frequency location set; The electronic device runs a second application according to the first high-frequency time period; The second application corresponds to at least one of the first high-frequency time periods at the current location; the first high-frequency time period is included in the high-frequency time period set; the second application is included in the first application set; The method further comprises: The electronic device determines the high-frequency time period set corresponding to the high-frequency location set; The electronic device determines the high-frequency time period set corresponding to the high-frequency location set, including: Performing a time reduction operation on any one of the at least one clustering result to obtain at least one time-reduced clustering result, and determining a high-frequency time period corresponding to the second application according to the at least one time-reduced clustering result; wherein the clustering result is obtained by performing a clustering operation on a plurality of second time periods in which the second application is respectively located when it is started multiple times at the high-frequency location; Among them, the duration reduction operation includes: for the sixth time period, taking the cluster center of the sixth time period as the reference, extending to at least one of the two sides until the sum of the time period of the cluster center and the time period after the extension reaches the preset fifth time period; the sum of the time periods is a partial time period in the sixth time period of the fifth time period, corresponding to a clustering result with a reduced duration; the sixth time period is the time period corresponding to any one of the at least one clustering results.
2. The method according to claim 1, It is characterized in that The at least one application further includes a third application set; at least one application in the third application set corresponds to at least one high-frequency location in the high-frequency location set; The electronic device immediately runs a fourth application; The fourth application is included in the third application set, and the fourth application corresponds to the current location information.
3. The method according to claim 1, It is characterized in that The at least one application further includes a third application set; at least one application in the third application set corresponds to at least one high-frequency location in the high-frequency location set; Before the electronic device runs the second application according to the first high-frequency time period, the method further includes: The electronic device determines that the second application corresponds to the current location information; The second application is included in the third application set.
4. The method according to claim 3, It is characterized in that The first high frequency location includes one or more cell identifiers CellID, and when the electronic device accesses a network of at least one of the one or more cell identifiers, the electronic device enters the first high frequency location; The first high-frequency location is any location in the high-frequency location set; The current location information is included in the high-frequency location set, including: The geographic coordinates of the current position are included in the multiple geographic coordinates in the high-frequency location set, or the first cell identifier set corresponding to the current position is included in the multiple cell identifier sets in the high-frequency location set.
5. The method according to claim 4, It is characterized in that Before the electronic device determines that the second application corresponds to the current location information, the method further includes: The electronic device determines the cell identifier of the currently accessed network; The electronic device determines that the second application corresponds to the current location information, including: The electronic device determines that the cell identifier of the currently accessed network is included in the first cell identifier set; or the electronic device determines that the cell identifier of the currently accessed network is included in the first area in the first cell identifier set; The first area of the first cell identifier set includes one or more cell identifiers. The cell identifiers of the first area include the first a% of the cell identifiers in the first cell identifier set after all the cell identifiers are sorted from large to small according to the number of days they appear in the detection period, where a is a preset value.
6. The method according to claim 1 or 3, It is characterized in that The electronic device runs a second application according to the first high-frequency time period, including: When the current time is earlier than the start time of the first high-frequency time period by more than a preset first duration, The electronic device runs the second application at a first moment; The duration between the first moment and the start moment of the first high-frequency time period is the first duration.
7. The method according to claim 6, It is characterized in that The electronic device runs a second application according to the first high-frequency time period, including: When the duration between the current time and the start time of the first high-frequency time period is less than the preset first duration, The electronic device immediately runs the second application.
8. The method according to claim 2, It is characterized in that The method further comprises: The electronic device determines the set of high-frequency locations and the set of high-frequency time periods.
9. The method according to claim 8, It is characterized in that The electronic device determines the high-frequency location set, including: The electronic device collects at least one first location information within a preset detection period; The first location information corresponds to a location where the user stays for a period greater than a preset second time period during the detection period; or The first location information corresponds to a location in the electronic device when the fourth application is started; The high-frequency location set is determined according to the at least one first location information.
10. The method according to claim 9, It is characterized in that Determining the high-frequency location set according to the at least one first location information includes: Performing a first clustering operation on the at least one first location information to obtain at least one first clustering result; The first clustering operation includes: aggregating first location information whose time difference is less than a preset third time length to obtain a corresponding first clustering result; or aggregating first location information whose distance difference is less than a preset first distance to obtain a corresponding first clustering result; According to the at least one first clustering result, performing a second clustering operation to obtain at least one second clustering result; the second clustering operation is the same as the first clustering operation; The electronic device screens places whose occurrence times are greater than or equal to a preset first number and determines them as high-frequency places according to the at least one second clustering result.
11. The method according to claim 1, It is characterized in that The electronic device determines the high-frequency time period set corresponding to the high-frequency location set, further comprising: The electronic device obtains multiple second time periods in which the second application is respectively located when it is launched multiple times in the high-frequency location within a detection period; wherein the detection period includes multiple detection units, and each detection unit includes multiple second time periods of the same duration; the multiple second time periods are sorted from high to low according to the proportion of the number of days of occurrence of each time period to obtain the corresponding sorting result; wherein the proportion of the number of days of occurrence of the third time period is: the proportion of the number of days of occurrence of the third time period to the sum of the number of days of occurrence of each second time period in the multiple second time periods; the third time period is any time period among the multiple second time periods.
12. The method according to claim 11, It is characterized in that Also includes: According to the sorting result and the proportion of the number of days of occurrence of each second time period, at least one second time period whose proportion of the number of days of occurrence is greater than a preset second proportion is selected.
13. The method according to claim 11, It is characterized in that The at least one clustering result is at least one third clustering result, and the method further includes: According to the sorting result, performing a third clustering operation on the at least one second time period to obtain at least one corresponding third clustering result; Among them, the third clustering operation includes: taking the fourth time period as the cluster center, and when the time difference between the fifth time period and the fourth time period is less than or equal to the fourth time length, aggregating the fourth time period and the fifth time period to obtain a third clustering result; the fourth time period is any one of the at least one second time period, and the fifth time period is a time period adjacent to the fourth time period according to the sorting result.
14. The method according to claim 13, It is characterized in that Also includes: Each third clustering result of the at least one third clustering result is used as a high-frequency time period corresponding to the second application.
15. The method according to claim 13, It is characterized in that The at least one clustering result is at least one fourth clustering result, and the method further includes: From the at least one third clustering result, filter at least one third clustering result whose occurrence day ratio is greater than the fourth ratio to obtain at least one fourth clustering result; or, from the at least one third clustering result, filter the first N third clustering results sorted from high to low in occurrence day ratio to obtain at least one fourth clustering result; N is an integer greater than or equal to 1.
16. The method according to claim 15, It is characterized in that The step of taking the cluster center of the sixth time period as a reference and extending to at least one of the two sides includes: Taking the cluster center of the sixth time period as a benchmark, extending to the seventh time period; The seventh time period is adjacent to the sixth time period, and the proportion of days in which the seventh time period occurs is greater than the proportion of days in which the time period on the other side of the sixth time period occurs.
17. The method according to claim 15, It is characterized in that Also includes: The at least one fourth clustering result is used as at least one high-frequency time period corresponding to the second application.
18. The method according to claim 15, It is characterized in that The step of determining a high-frequency time period corresponding to the second application program according to the at least one fourth clustering result with a reduced duration includes: From the at least one fourth clustering result with a shortened duration, at least one fifth clustering result whose occurrence days account for a larger proportion than the fifth proportion is selected, The at least one fifth clustering result is used as at least one high-frequency time period corresponding to the second application.
19. An electronic device, It is characterized in that The electronic device includes one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, and the one or more memories store computer instructions; when the one or more processors execute the computer instructions, the electronic device executes the method described in any one of claims 1-18.
