Address recognition method, medium, product and electronic device
By detecting triggering conditions in electronic devices and quickly updating the target long-term address based on the current location and address conditions, the problem of untimely address information updates in electronic devices is solved, enabling timely and accurate application service recommendations.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-09-30
- Publication Date
- 2026-05-29
AI Technical Summary
In existing technologies, electronic devices cannot update users' address information in a timely manner, resulting in an inability to accurately recommend application services to users.
By detecting triggering conditions, the current location of the electronic device is obtained. Based on the current location, it is determined whether the first long-term address among multiple long-term addresses meets the address conditions, and the second long-term address is updated to the first long-term address. The conditions include factors such as distance, dwell time, and time period, so as to achieve rapid updating of the target long-term address.
The target long-term address can be updated in a timely manner without waiting for a day of data, ensuring that electronic devices can accurately recommend application services, such as express delivery, package pickup, and check-in.
Smart Images

Figure CN120470164B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to an address identification method, medium, product, and electronic device. Background Technology
[0002] With the development of electronic technology, users can use applications installed on electronic devices (such as mobile phones) for map navigation, clocking in and out at work, sending and receiving packages, and other operations. To facilitate user operation, electronic devices can recommend these services based on addresses set in advance. For example, based on pre-set home and / or work addresses, when a user opens a map application, the application can automatically recommend the best route from the user's current location to their home address. Alternatively, when the user is near their work address, the application can automatically open a clocking-in application for convenient attendance tracking. Or, when a user needs to send a package, a courier application can automatically fill in the delivery address based on the user's home address, simplifying the user's process.
[0003] However, all of the above services require users to set their home address and / or company address in advance so that electronic devices can recommend services such as map navigation or express delivery based on the preset address. Summary of the Invention
[0004] In view of this, this application provides an address identification method, medium, product, and electronic device.
[0005] In a first aspect, an address recognition method is provided, comprising: detecting a triggering condition and obtaining the current location of an electronic device; based on the current location, determining that a first long-term address among a plurality of long-term addresses of the electronic device satisfies an address condition, and that the target long-term address currently recorded by the electronic device is a second long-term address among the plurality of long-term addresses, and updating the second long-term address to the first long-term address; wherein the address condition includes that the distance between the current location and the first long-term address is less than a distance threshold, and that the long-term address is an address where the user's dwell time within a first statistical time period satisfies the long-term condition, wherein the dwell time includes single dwell time and dwell time.
[0006] In the above scheme, the target long-term address can be the user's home address or company address determined by the electronic device. The electronic device can recommend application services to the user based on the target long-term address. The long-term address can be an address where the user has visited frequently; for example, an address where the user has lived during sleep time and for more than 7 days can be used as the long-term address.
[0007] The electronic device determines its proximity to a long-term address based on the location obtained under trigger conditions. If it determines that it is close to a certain long-term address, it can switch the current target long-term address to the one closest to the user. Therefore, it can update the target long-term address promptly without waiting for a day's worth of user data.
[0008] In conjunction with the first aspect, in some implementations, the address condition also includes: the current time corresponding to the current location belongs to the target time period, and the target time period corresponds to the first long-term address.
[0009] In the above scheme, different long-term addresses can correspond to different target time periods. If a user is detected to be near a certain long-term address during the target time period, the target long-term address can be updated to that address. For example, if the long-term address is a home address, the target time period could be the user's historical sleep time period. Or, if the long-term address is a company address, the target time period could be the user's work time period. Furthermore, using the target time period as a special time period to determine whether to switch the target long-term address eliminates the need to wait for a full day's worth of user data before deciding whether to update the target long-term address, allowing for timely updates.
[0010] In conjunction with the first aspect, in some implementations, the address condition also includes: the duration during which the distance between the location of the electronic device and the first long-term address is less than the distance threshold is greater than the time threshold.
[0011] In the above scheme, if a user is detected to have spent a considerable amount of time near the first long-term address, exceeding a time threshold, it can be assumed that the user has been staying at that address for an extended period and will reside there for the rest of the day. Therefore, the target long-term address can be determined to be that address without waiting for a full day's worth of user data to update the target long-term address; the target long-term address can be updated promptly.
[0012] In conjunction with the first aspect, in some implementations, the address condition also includes: the difference between the time when the user last stayed at the first long-term address and the current time corresponding to the current location is less than the time difference.
[0013] In the above scheme, if a user is near the first long-term address and the user's last visit to the first long-term address was recent, it can be assumed that the user has been frequently residing near the first long-term address recently. Therefore, the target long-term address can be determined to be this address, without needing to wait for a day's worth of user data to determine whether to update the target long-term address; the target long-term address can be updated promptly.
[0014] In conjunction with the first aspect, in some implementations, the following method is used to determine whether the first long-term address among multiple long-term addresses meets the address conditions: based on whether the current time corresponding to the current location matches the target time period, the number of times the user lingers at the first long-term address, the distance between the current location and the first long-term address, and the duration during which the distance between the electronic device's location and the first long-term address is less than a distance threshold, the score of the first long-term address is calculated; if the score of the first long-term address is greater than the score threshold, the first long-term address is determined to meet the address conditions; wherein, the target time period corresponds to the first long-term address.
[0015] In the above scheme, the electronic device can also determine the score of the first long-term address based on factors such as whether the current time falls within the target time period, the number of times the user has visited the first long-term address, the distance to the first long-term address, and the duration of the current stay at the first long-term address. When the score meets the criteria, the target long-term address is updated to that address. Additionally, the electronic device can determine the score of each other long-term address and then select the long-term address with the highest score as the target long-term address. Therefore, it is not necessary to wait until a full day's worth of user data is acquired before determining whether to update the target long-term address; the target long-term address can be updated promptly using only a limited amount of current data.
[0016] In conjunction with the first aspect, in some implementations, the triggering condition includes at least one of the following: the current time corresponding to the current location reaches a preset trigger time; the current time belongs to a target time period, wherein the target time period corresponds to a first long-term address; a user instruction to update the long-term address is detected.
[0017] In the above scheme, the electronic device can collect the user's address at preset trigger times, such as 9 AM daily or every 10 minutes, or during the user's sleep period, to determine whether to update the target long-term address. Alternatively, the electronic device can receive an instruction from the user to update the long-term address, such as receiving a user's selection of a control for updating commuting information in the system application. Therefore, it is no longer necessary to wait to acquire a day's worth of user data before determining whether to update the target long-term address; under the trigger condition, the target long-term address can be updated promptly using only the currently available limited data.
[0018] In conjunction with the first aspect, in some implementation methods, based on the first long-term address, application services are recommended to the user. These application services include one or more of the following: express delivery service, express pickup service, check-in service, and navigation service.
[0019] In the above solution, after the electronic device updates the target long-term address, it can also recommend application services to the user based on the target long-term address. For example, it can automatically fill in sender / recipient information for the user based on their home address, remind the user to clock in based on their company address, or automatically recommend routes home based on their home address. This eliminates the need for the user to manually enter the address, saving user time and effort.
[0020] In conjunction with the first aspect, in some implementation methods, long-term conditions include: the number of times a user stays within the first statistical time period is greater than the number threshold, and / or the duration of a single stay is greater than the preset duration.
[0021] In the above scheme,
[0022] In a second aspect, this application provides an electronic device including a processor and a memory, wherein the memory is used to store instructions and the processor is used to execute the instructions, and when the processor executes the instructions, it performs the method described in the first aspect.
[0023] Thirdly, this application provides a computer-readable storage medium storing instructions that, when executed on an electronic device, perform the method described in the first aspect.
[0024] Fourthly, this application provides a computer program product including computer instructions, which, when executed by an electronic device, cause the electronic device to perform the method described in the first aspect. Attached Figure Description
[0025] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below.
[0026] Figure 1A This is a schematic diagram of an interface for obtaining a target long-term address provided in an embodiment of this application;
[0027] Figure 1B This is a schematic diagram of an interface that recommends express delivery services to users based on a target long-term address, as provided in an embodiment of this application.
[0028] Figure 1C This is a schematic diagram of an interface that recommends express delivery pickup services to users based on a target long-term address, as provided in an embodiment of this application.
[0029] Figure 1D This is a schematic diagram of an interface that recommends check-in services to users based on a target long-term address, provided in an embodiment of this application.
[0030] Figure 2 This is a schematic diagram of a process for determining a short-term address provided in an embodiment of this application;
[0031] Figure 3 This is a schematic diagram of a process for determining a long-term address provided in an embodiment of this application;
[0032] Figure 4 This is a schematic diagram of a process for switching a target long-term address provided in an embodiment of this application;
[0033] Figure 5 This is a flowchart illustrating an address identification method provided in an embodiment of this application;
[0034] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0035] The illustrative embodiments of this application include, but are not limited to, address identification methods, media, products, and electronic devices.
[0036] The address recognition method provided in this application can be applied to electronic devices, specifically mobile phones, tablets, wearable devices, in-vehicle devices, AR / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), etc.
[0037] As mentioned earlier, electronic devices can recommend services to users based on address information such as their home address and / or work address. For example, a map application can automatically recommend the best route from the user's current location to their home address. Alternatively, when an electronic device detects that the user is near their work address, it can automatically open a check-in app. Or, when an electronic device detects that the user is sending a package through a courier app, the app can automatically fill in the delivery address based on the user's address information.
[0038] However, the above services require users to preset address information in advance. When electronic devices need to obtain the user's address information in applications such as map applications and express delivery applications, they can perform corresponding functions based on the preset address information.
[0039] In some embodiments, to reduce user operations, electronic devices can determine a user's address information by acquiring information such as the user's daily habits. For example, the user's location while sleeping can be used as their home address, and their location while using office applications during the day can be used as their company address. Consequently, the electronic device can automatically identify the user's home address and / or company address, eliminating the need for manual input and saving the user time.
[0040] For example, refer to Figure 1AAs shown, taking a mobile phone 10 as an example, the mobile phone 10 can display an interface 101 for setting the user's commuting information. The user can click on the control 102 to select that the mobile phone 10 automatically obtains the commuting location and time. Then, the mobile phone 10 will collect user information within a certain time period and automatically identify the user's home address, company address, and other address information, as well as the user's commuting time.
[0041] Optionally, the display box 103 in interface 101 may also display the following prompt near control 102: "Automatic acquisition of commuting information requires a certain learning time; manual settings take effect immediately." The display box 103 may also display the automatically acquired user's home address information: "Shenzhen, Guangdong Province, XXXXX," the user's company address information: "Shenzhen, Guangdong Province, XXXXX," the user's work start time: "8:56," and, if the user's off-get off work time is not yet identified, the message "Automatically learning." Additionally, interface 101 may display control 104, allowing the user to select their commuting mode (e.g., driving, walking, or public transportation). Furthermore, interface 101 may display multiple controls in area 105, allowing the user to manually modify their home address, company address, work start time, and off-get off work time.
[0042] It should be understood that the aforementioned interface 101 may specifically be the interface for setting commuting information in the system application of the mobile phone 10. Other applications in the mobile phone 10 (such as map applications, check-in applications, or express delivery applications) can obtain information such as home address and / or company address in the commuting information, and then recommend corresponding services to the user.
[0043] For example, when a user sends a package through a courier app, they can choose to use their home address in the system as the sender / recipient address, thus eliminating the need for the user to fill in address information. Figure 1B Image (a) shows an interface 106 for sending packages using a courier application. Interface 106 includes a display box 107 where the user can fill in sender and recipient information. For example, based on the user's selection of the sender information in the input box of display box 107 received by mobile phone 10, mobile phone 10 can display as follows: Figure 1B Interface 108 is shown in (b) above. Interface 108 includes a prompt box 109 displaying the message "Get home address as recipient address?". Furthermore, based on the user's selection operation based on control 110 detected by mobile phone 10, the following can be... Figure 1A The home address in the file will be automatically filled in. Figure 1B The recipient information in the display box 107 included in (a) is shown.
[0044] For example, the phone 10 can also be based on, for example... Figure 1A The app uses information such as the user's home address and / or company address to remind the user to pick up a package. The phone can obtain the user's current location and, if it determines the user is near their home address, retrieve package pickup information from the courier app. If the pickup information obtained by the phone indicates that the user has a package to pick up, it can remind the user to do so. For example, ... Figure 1C As shown, mobile phone 10 can display package pickup information via service card 112, such as pickup code 3-07-1825 and courier station address. Alternatively, mobile phone 10 can also obtain package pickup information from nearby courier stations when it determines that the user is near the company address, and remind the user to pick up the package.
[0045] For example, the phone 10 can also be based on, for example... Figure 1A The app can remind users to clock in and out based on their company address and / or commute time. For example, after automatically learning the company address and the user's start time of 8:56, the app can recommend clocking-in apps based on the user's current location, indicating that the user is near the company address. For instance, it could... Figure 1D As shown, the attendance card is displayed on the negative one screen 113 of the phone 10, so that the user can directly launch the attendance application by selecting the card 114. Alternatively, the phone 10 can also recommend the attendance application to the user if it detects that the user is near the company address within the preset time, based on whether the current time is within a preset time (half an hour before 8:56) and the distance between the user's location and the company address.
[0046] In some embodiments, an electronic device can determine the period during which a user is least active in a day by acquiring the screen on / off data, page switching data, and / or the user's motion data, and then define the period during which the user is least active as the user's sleep time, and then use the user's location corresponding to the user's sleep time as the user's home address.
[0047] For example, refer to Figure 2 As shown, electronic devices can collect screen-on / off data, motion data, and page-switching data, and send this data to a sleep model to determine the user's short-term sleep time. For example, the sleep model can determine the user's short-term sleep time based on the screen-off time of the electronic device throughout the day, the time the user is not moving, and / or the time when the electronic device does not switch pages. This short-term sleep time can refer to the user's sleep time throughout the day; for example, the user's sleep time on January 1, 2024, could be from 01:00 to 06:00.
[0048] Simultaneously, electronic devices also acquire location information through positioning technologies (such as the Global Positioning System (GPS)). For example, electronic devices can generate latitude and longitude trajectory data from their latitude and longitude information throughout the day, and use spatiotemporal clustering algorithms to cluster multiple latitude and longitude information within a day to determine the user's location at various times during the day, obtaining stop point data. For example, stop point data may include: the stop point from 00:00 to 06:00 on January 1, 2024 is Community A, the stop point from 07:00 to 08:00 on January 1, 2024 is Breakfast Shop K, and the stop point from 21:00 to 24:00 is Community A, etc.
[0049] Then, the electronic device can determine the area where short-term sleep time and dwell time data overlap in time, identify the user's dwell location corresponding to the sleep time, and then use this dwell location as the user's short-term address. If the short-term address is a home address, it can also be called a short-term home address, which refers to the user's home address as determined by the electronic device on that day.
[0050] Electronic devices can also determine a user's long-term address using multiple short-term addresses, using the long-term address as the final identified user's address information. For example, an electronic device can obtain short-term addresses within a first statistical time period, using short-term addresses with higher frequency of visits as long-term addresses, or using short-term addresses with more than a preset number of visits as long-term addresses, provided that the user's visit duration each time is greater than the preset duration. For example, an electronic device can obtain short-term addresses within the past year, using locations where users have visited for at least 7 days as long-term addresses; that is, for a given location, it has been a short-term address for at least 7 days. For example, as... Figure 3 As shown, among the short-term addresses from January 1st to January 8th, 7 days were short-term addresses in cell A. Therefore, electronic devices can use cell A as a long-term address.
[0051] In the above method, if multiple short-term addresses meet the preset long-term conditions, all short-term addresses can be used as long-term addresses. The electronic device also needs to determine the short-term address for the day based on the data of the day (such as screen on / off data, page switching data, and / or user motion data), and then select the address as the current home address from multiple long-term addresses based on the current short-term address.
[0052] For example, if a location was previously a short-term address for 7 days and is subsequently converted to a long-term address, and multiple addresses have also been short-term addresses for 7 days (e.g., locations that were previously long-term addresses, also known as historical addresses, include Community A, Community C, Hotel D, and Apartment E), the electronic device will determine that the short-term address for the current day is Community A based on the user data, and will then set the current address information to Community A. If the electronic device determines that the short-term address for the next day is Community C based on the data from that day, it will also update the current address information to Community C.
[0053] However, electronic devices typically require a complete day's data to determine a short-term home address. For example, using home address information as an example, the electronic device determines the user's sleep time based on the user's least active period of the day, then identifies the location corresponding to that sleep time as the short-term home address, and finally updates the user's home address based on this short-term address. If the user's short-term home address the previous day was in neighborhood A, and neighborhood A is a historical address, the electronic device can determine neighborhood A as the current user's home address. However, if the user arrives at a different historical address (e.g., neighborhood C) the next day, the electronic device needs to collect the user's data for that day, determine the user's least active time, and then update the current home address to neighborhood C. However, when the user uses the electronic device during this second day, because the current home address hasn't been updated in time, the electronic device still recommends services based on the location of neighborhood A.
[0054] In other words, because electronic devices need to update the user's address information based on the user's usage data throughout the day, the address information is not updated in a timely manner, and the electronic device cannot accurately recommend application services to the user.
[0055] To address the problem of electronic devices failing to update address information in a timely manner, this application provides an address identification method. When an electronic device obtains information indicating that a user has multiple long-term addresses, it determines the user's location within a short timeframe by considering factors such as whether the current moment falls within the target time period corresponding to each long-term address, the recent duration of the user's last visit to the long-term address corresponding to the current location, the duration of the user's current visit to the long-term address corresponding to the current location, the distance between the user's current location and pre-stored long-term addresses, and the number of times the user has visited each long-term address. This method eliminates the need for the electronic device to wait for a full day's worth of data before updating the target long-term address.
[0056] For example, in some embodiments, the electronic device can acquire the user's location at preset time windows (e.g., every 10 minutes). If the electronic device determines that the acquired user location is within the range of a first long-term address among multiple long-term addresses, the electronic device will update the user's target long-term address to the first long-term address. Addresses within the range of the first long-term address can be defined as those centered on it and whose distance from the first long-term address is less than a distance threshold. Subsequently, other third-party applications can use the updated target long-term address to recommend corresponding application services to the user (e.g., express delivery services, express pickup services, check-in services, and navigation services).
[0057] Alternatively, the electronic device can obtain the current user's location at a preset time (e.g., 9 AM daily). Or, the electronic device can obtain the user's current location upon receiving a user instruction to update a target long-term address; for example, the electronic device receives a user's location based on... Figure 1A The selection of control 102 shown indicates to the user that the target long-term address needs to be automatically obtained. Alternatively, the electronic device can also obtain the current user's location if it detects that the current time belongs to a target time period, which could be the time period during which the user typically resides at the long-term address in the past. This application does not impose specific restrictions on the specific triggering conditions for the electronic device to obtain the user's current location.
[0058] Furthermore, based on the aforementioned triggering conditions, the electronic device can not only obtain the user's current location but also the user's location within the detection time period (e.g., the past 12 hours or the next 12 hours), generating the user's historical trajectory. The electronic device can then use this historical trajectory to determine whether the address conditions for updating the target long-term address are met.
[0059] In some embodiments, the target time period can be the user's historical sleep time period determined based on the user's least active time period each day. Specifically, the electronic device can determine the user's sleep time for the day based on factors such as the daily screen-off time, the time period with the lowest activity level in the acquired user activity data, and / or the time period during which the electronic device did not perform page switching operations. The user's total sleep time within a day can also be referred to as short-term sleep time, and the historical sleep time period can be derived from a combination of multiple short-term sleep periods. For example, if a user's short-term sleep time on one day is 01:30 to 07:00, and the user's short-term sleep time on another day is also 01:00 to 07:00, then the user's historical sleep time period can be determined to be from 01:00 to 07:00.
[0060] It should be understood that the aforementioned target long-term address can be one or more of the user's home address, company address, and school address. When the target long-term address is a home address, the target time period can be a historical sleep time period. Alternatively, when the target long-term address is a company address, the target time period can be a historical work time period determined based on the user's daily use of office software (such as document editing software or meeting software). That is to say, this application does not impose specific restrictions on the type of target long-term address or the type of target time period. For ease of explanation, the following description uses a historical sleep time period as an example.
[0061] In some embodiments, after the electronic device obtains the user's location based on triggering conditions, it can also determine whether the time when the user's location was obtained belongs to a target time period. If the user's location is within the range of a first long-term address among multiple long-term addresses, and the time when the user's location was obtained belongs to the target time period, the electronic device will update the user's target long-term address to the first long-term address. For example, if the electronic device obtains the user's location as Hotel D, and the time when the user's location was obtained belongs to a historical sleep time period (e.g., 01:00 to 07:00), then the electronic device can update the user's target long-term address to Hotel D.
[0062] In other embodiments, the electronic device can also determine, based on its location within a preset time period, the time period during which the user is located at Hotel D and / or within a preset range of Hotel D, and determine the overlap between this time period and the target time period. If the overlap is greater than a first overlap threshold, the electronic device will update the user's target long-term address to the first long-term address.
[0063] In other embodiments, after the electronic device obtains the user's location based on triggering conditions, if the user's location falls within the range of a first long-term address among multiple long-term addresses, the electronic device will also obtain the number of times the first long-term address has been used as a short-term address, i.e., the number of times the user has resided at the first long-term address, such as the number of days the user has lived at the first long-term address. When the number of times the first long-term address has been used as a short-term address is greater than a first preset number, the electronic device will update the user's target long-term address to the first long-term address.
[0064] It should be understood that the first preset number of visits is greater than the second preset number of visits (also known as the visit threshold) in the long-term condition for determining a long-term address. For example, the long-term condition includes the user residing at the address for more than 7 days, and the first preset number of visits could be the user residing at the first long-term address for more than 30 days. Furthermore, if the electronic device detects that the user is within the range of the first long-term address, and the first long-term address is the address where the user frequently resides, the electronic device can update the target long-term address to the first long-term address.
[0065] In other embodiments, after the electronic device obtains the user's location based on triggering conditions, if the user's location falls within the range of a first long-term address among multiple long-term addresses, the electronic device will also obtain the time elapsed since the user last resided at that first long-term address. If this time is less than the time difference, the electronic device will update the user's target long-term address to that first long-term address. In other words, the more recent the user's last residency at that address, the more frequently the user has resided at that first long-term address.
[0066] In other embodiments, when the electronic device obtains the user's location according to a preset time window or detects that the current time belongs to a target time period, if the user's location is within the range of a first long-term address among multiple long-term addresses, the electronic device will also obtain the duration for which the user is within the range of the first long-term address during the detection time period. If the duration for which the user is within the preset range of the first long-term address during the detection time period is greater than a time threshold, it indicates that the user has recently spent a relatively long time at the first long-term address, and the electronic device will update the user's target long-term address to the first long-term address.
[0067] In other embodiments, after acquiring the user's location, the electronic device can further score each long-term address based on factors such as the overlap between the time of location acquisition and the target time period, the distance between the user's location and each long-term address, the number of times each long-term address has been used as a short-term address (e.g., the number of days the user resided at each long-term address), and the duration the user was within a preset range of each long-term address within a preset time period. The electronic device can then determine the long-term address with the highest score among all long-term addresses as the user's target long-term address.
[0068] For example, such as Figure 4 As shown, taking a long-term address including Community A, Community C, Hotel D, and Apartment E as an example, the electronic device can obtain the current location information at 9:00 AM every day, as well as the user's location within that day (i.e., from 00:00 to 09:00). For example, the electronic device obtains that the user is located at Hotel D from 00:00 to 07:00, and at a park within a preset range of Hotel D from 07:00 to 09:00.
[0069] If the electronic device detects one or more of the following conditions, it can determine to switch the stored target address information to Hotel D: the user has stayed at Hotel D many times in the past (e.g., more than the first preset number); the time when the user last stayed at Hotel D was relatively recent (e.g., less than 7 days); the user spent a long time at or near Hotel D today (e.g., more than 4 hours); the time period when the user stayed at Hotel D was special, which was the user's usual sleeping time (e.g., 1:00-7:00).
[0070] Furthermore, through the address recognition method provided in this application, the electronic device can determine whether to update the target long-term address based on the currently acquired address or the user's address within the detection time period, without waiting to acquire a day's worth of data before updating, thus enabling accurate application service recommendations based on the target long-term address. Moreover, the electronic device can further determine whether to update the target long-term address based on factors such as the overlap between the time of user location acquisition and the target time period, the distance between the user's location and each long-term address, the number of times each long-term address has been used as a short-term address, and the duration the user resides at a long-term address within a preset time period, making the judgment results more accurate.
[0071] The following is combined with Figure 5 This application introduces an address recognition method that can be applied to the aforementioned electronic device (e.g., mobile phone 10). Figure 5 As shown, the address identification method includes:
[0072] S510: The trigger condition was detected, and the current location of the electronic device was obtained.
[0073] When an electronic device detects that the current time has reached a preset trigger time, or that the current time belongs to a target time period, or that it detects a user command to update a long-term address, it can obtain the current location of the electronic device.
[0074] In some embodiments, based on the aforementioned triggering conditions, the electronic device can not only obtain the user's current location, but also the user's location during the detection period, and generate the user's historical trajectory.
[0075] S520: Based on the current location, determine whether the first long-term address meets the address conditions. If yes, proceed to S530. If no, proceed to S540.
[0076] The address condition includes the distance between the current location and the first long-term address being less than a distance threshold. That is, if the electronic device detects that the user has multiple long-term addresses, and the user's current location is close to the first long-term address, the electronic device can determine that the user is currently residing at the first long-term address and update the target long-term address, i.e., execute S530. Conversely, if the electronic device determines that the current location is too far from any long-term address, the electronic device will maintain the current target long-term address, i.e., execute S540.
[0077] Among them, a long-term address refers to an address where the number of times a user stays within the first statistical period exceeds a threshold, and / or the duration of a single stay exceeds a preset duration. For example, a user stays at a certain address for more than 7 days, and the duration of each stay is longer than the preset duration, such as when the stay time includes a target time period (e.g., historical sleep time period).
[0078] In some embodiments, the address condition further includes: the current time corresponding to the current location belongs to the target time period. The target time period can be the aforementioned historical sleep time period, historical work time period, etc., as described above, and will not be repeated here. When the user's location is within the range of the first long-term address among multiple long-term addresses, and the time when the user's location was obtained belongs to the target time period, the electronic device will execute S530, updating the user's target long-term address to the first long-term address. Otherwise, the electronic device will execute S540.
[0079] In other embodiments, the address condition further includes: the duration during which the distance between the electronic device's location and the first long-term address is less than a distance threshold is greater than a time threshold. That is, the electronic device also acquires the duration during which the user is within the range of the first long-term address during the detection period. If the duration during which the user is within the preset range of the first long-term address during the detection period is greater than a time threshold, it indicates that the user has recently spent a relatively long time at the first long-term address, and the electronic device updates the user's target long-term address to the first long-term address; that is, the electronic device executes S530. Otherwise, the electronic device executes S540.
[0080] In other embodiments, the address condition further includes: the difference between the time the user last resided at the first long-term address and the current time corresponding to the current location is less than the time difference. That is, if the user's last resided at the address was recent, it indicates that the user has been frequently residing at the first long-term address recently, and the electronic device will update the user's target long-term address to the first long-term address, i.e., the electronic device will execute S530; otherwise, the electronic device will execute S540.
[0081] In other embodiments, the address condition further includes: the number of times the first long-term address has been used as a short-term address is greater than a first preset number. That is, if the user is detected to be within the range of the first long-term address, and the first long-term address is the address where the user frequently resides, the electronic device can update the target long-term address to the first long-term address, i.e., the electronic device will execute S530; otherwise, the electronic device will execute S540.
[0082] In other embodiments, the electronic device may calculate a score for the first long-term address based on one or more of the following: whether the current time corresponding to the current location matches the target time period, the number of times the user has stayed at the second long-term address, the distance between the current location and the first long-term address, and the duration during which the distance between the electronic device's location and the first long-term address is less than a distance threshold. The first long-term address is determined to meet the address condition only if the score of the electronic device at the first long-term address is greater than the score threshold. For details, please refer to the description of formulas (1) to (8) below.
[0083] S530: Update the current target long-term address from the second long-term address to the first long-term address.
[0084] The electronic device currently records the target long-term address as the second long-term address among multiple long-term addresses. If the electronic device detects that the address condition is met, it can update the current target long-term address from the second long-term address to the first long-term address.
[0085] In some embodiments, the electronic device may also recommend application services to the user based on a first long-term address. The application services include one or more of the following: express delivery service, express pickup service, check-in service, and navigation service.
[0086] S540: Keep the target long-term address as the second long-term address.
[0087] If the electronic device detects that the address conditions are not met, it maintains the target long-term address as the second long-term address. Furthermore, based on the second long-term address, the electronic device recommends application services to the user.
[0088] Furthermore, through the address recognition method provided in this application, electronic devices can determine whether to update the target long-term address based on the currently acquired address or the user's address within the detection time period, without having to wait for a day of data acquisition before updating, thus enabling accurate application service recommendations based on the target long-term address.
[0089] The following section details the method for scoring long-term addresses within the address identification method provided in this application. The scoring of long-term addresses includes one or more of the following: a score based on the number of times a residence has been made, a score based on the last visit time, and a score based on spatiotemporal overlap.
[0090] The residency frequency score indicates a user's familiarity with an address. The more times an address is used as a short-term address, that is, the more times it is used as a short-term address where the user's single stay duration exceeds the preset duration, the higher the residency frequency score.
[0091] In some embodiments, the residency score can be obtained from the normalized score of the residency times for each long-term address, or from the ratio of the residency times to the residency times of the long-term address with the most resides. For example, refer to the following formula (1), where, taking an electronic device storing M long-term addresses as an example, N1 to N M H represents the number of times each long-term address is visited. i S represents the i-th long-term address. count (H i ) represents the residency score for the i-th long-term address, where N, M, and i are all positive integers.
[0092]
[0093] Taking long-term addresses including H1, H2, and H3 as an example, assuming the number of times H1, H2, and H3 reside are [100, 50, 10], then the residency scores of H1, H2, and H3 are [1, 0.5, 0.1].
[0094] The last access time score represents the time difference between the user's last stay or access to a long-term address and the current time. A smaller time difference results in a higher access time score. The access time score can be obtained using a negative exponential decay function and normalization. For example, refer to formula (2) below, where Δt... i S represents the time difference between the user's last stay at the i-th long-term address, λ is a parameter controlling the decay rate, and S time (H i ) represents the last access time score of the i-th long-term address.
[0095]
[0096] Taking long-term addresses including H1, H2, and H3 as an example, assuming the time difference between the user's last access to H1, H2, and H3 is [1, 7, 30], then the last access time scores of H1, H2, and H3 are [0.731, 0.119, 0.0001].
[0097] The spatiotemporal overlap score represents the degree of overlap between a user and a specific long-term address within a detection period (e.g., the past 12 hours) in terms of both time period and location. Specifically, the spatiotemporal overlap score can also be determined by dividing the detection period into preset time windows, such as 10-minute intervals, and defining the time interval t. j The overlap of target time periods and locations.
[0098] Target time period overlap refers to the overlap of time periods t j The degree of overlap with the target time period, where j is a positive integer, can be calculated using an exponential decay function. For example, refer to the following formula (3), where Δt j Indicates the time period t j and the target time period (e.g., the user's historical sleep time period T) sleep The time difference, α is a parameter controlling the decay rate, S time_overlap (t j ) represents the time period t j The overlap of target time periods.
[0099]
[0100] Location overlap refers to the degree of overlap over a time period t. j and the i-th long-term address Hi The score for the nearest distance can be calculated using an exponential decay function. For example, refer to the following formula (4), where d j (H i ) represents the time period t j Inner and the i-th long-term address H i The closest distance, β is a parameter controlling the decay rate, S distance (t j H i ) represents the time period t j and the i-th long-term address H i The degree of overlap in position.
[0101]
[0102] Time period t j The spatiotemporal overlap score can be obtained by multiplying the overlap of the target time period and the overlap of the location. For example, refer to formula (5), S spatio_temporal (t j H i ) represents the time period t j Inner and the i-th long-term address H i The degree of spatiotemporal overlap.
[0103]
[0104] The electronic device can also sum the spatiotemporal overlap scores for all time periods to obtain the long-term address H. i The degree of spatiotemporal overlap. For example, you can refer to formula (6), S spatio_temporal (H i ) represents the long-term address H i The degree of spatiotemporal overlap.
[0105]
[0106] Electronic devices can also access S spatio_temporal (H i Normalization is performed to obtain the final spatiotemporal overlap score. For example, you can refer to formula (7), where γ is used to control the steepness of the sigmoid function.
[0107]
[0108] In some embodiments, the electronic device may also weight and sum the residency frequency score, last visit time score, and spatiotemporal overlap score to obtain a score S(H) for each long-term address. i For example, you can refer to formula (8), where γ1 represents the score of the number of times of residence S. count (Hi The weight parameter γ2 represents the score S from the last visit. time (H i The weight parameter γ3 represents the long-term address H. i Spatiotemporal overlap score S spatio_temporal (H i The weight parameters of ).
[0109] S (Hi) =γ1S time(Hi) +γ2S time(Hi) +γ3S spatio_temporal(Hi) (8)
[0110] For example, taking long-term addresses including H1, H2, and H3, with γ1 equal to 0.4, γ2 equal to 0.3, and γ3 equal to 0.3 as an example.
[0111] The scores for each item in H1 are S count (H1)=1, S time (H1) = 0.731, S spatio_temporal If (H2) = 0.85, then S(H1) = 0.4*1 + 0.3*0.731 + 0.3*0.85 = 0.8593.
[0112] The scores for each item in H2 are S count (H2)=0.5, S time (H2) = 0.119, S spatio_temporal If (H3) = 0.65, then S(H2) = 0.4*0.5 + 0.3*0.119 + 0.3*0.65 = 0.3837.
[0113] The scores for each item in H3 are S count (H3)=0.1, S time (H3) = 0.0001, S spatio_temporal If (H3) = 0.45, then S(H3) = 0.4*0.1 + 0.3*0.0001 + 0.3*0.45 = 0.19003.
[0114] Therefore, H1 is identified as having the highest score, and H1 can be used as the updated target long-term address.
[0115] The methods of the embodiments of this application have been described in detail above. In order to facilitate better implementation of the above-described solutions of the embodiments of this application, relevant equipment for cooperating in implementing the above solutions is also provided below.
[0116] Figure 6 This is a schematic diagram of the structure of an electronic device 100 provided in this application. The electronic device 100 may be the mobile phone 10 mentioned above.
[0117] like Figure 6 As shown, the electronic device 100 includes: a processor 110, a memory 120, an interface module 130, a power module 140, a wireless communication module 150, a mobile communication module 160, an audio module 170, a sensor module 180, buttons 190, a camera 191, a display screen 192, etc.
[0118] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0119] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (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). Different processing units may be independent devices or integrated into one or more processors. Processor 110 can be used to execute the address recognition method provided in the embodiments of this application.
[0120] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0121] Interface module 130 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.
[0122] The power module 140 is connected to the processor 110 and provides power to the processor 110, memory 120, camera 191, display screen 192, and mobile communication module 160.
[0123] The wireless communication function of electronic device 100 can be implemented through wireless communication module 150, mobile communication module 160, antenna, modem processor and baseband processor, etc.
[0124] The wireless communication module 150 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.
[0125] The mobile communication module 160 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on electronic devices 100.
[0126] Audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. Audio module 170 can also be used for encoding and decoding audio signals.
[0127] The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.
[0128] Electronic device 100 implements display functions through a GPU, display screen 192, and application processor, etc. For example, the display shows... Figures 1A to 1D The interface shown.
[0129] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays screens 194, where N is a positive integer greater than 1.
[0130] Electronic device 100 can perform shooting functions through ISP, camera 191, video codec, GPU, display 192 and application processor.
[0131] Camera 191 is used to capture still images or videos. In some embodiments, electronic device 100 may include one or N cameras 191, where N is a positive integer greater than 1.
[0132] The memory 120 can be used to store computer executable program code, which includes instructions. The memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function (such as accessibility functionality). The data storage area may store data created during the use of the electronic device 100 (such as reporting data). Furthermore, the memory 120 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the memory 120 and / or instructions stored in memory disposed within the processor. In some embodiments, the processor 110 executes the address identification method provided in the embodiments of this application by running instructions stored in the memory 120.
[0133] Button 190 includes the power button, volume buttons, etc. Button 190 can be a mechanical button or a touch button.
[0134] It needs to be explained that, Figure 6 This is merely one possible implementation of an embodiment of this application. In practical applications, the electronic device 100 may include more or fewer components, and this is not a limitation. For content not shown or described in the embodiments of this application, please refer to the foregoing. Figure 5 The relevant descriptions in the embodiments will not be repeated here.
[0135] It should be understood that Figure 6 The electronic device shown can also be a computer cluster consisting of at least one server, which is not specifically limited in this application.
[0136] This application also provides a computer-readable storage medium storing instructions that, when executed on a processor. Figure 5 The method flow shown is thus implemented.
[0137] This application also provides a computer program product that, when run on a processor, provides a solution for... Figure 5 The method flow shown is thus implemented.
[0138] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0139] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. An address identification method, characterized in that, Applied to electronic devices, the method includes: Once the trigger condition is detected, the current location of the electronic device is obtained. Based on the current location, it is determined that the first long-term address among the multiple long-term addresses of the electronic device satisfies the address condition, and the target long-term address currently recorded by the electronic device is the second long-term address among the multiple long-term addresses. The target long-term address is then updated from the second long-term address to the first long-term address. The address conditions include: the distance between the current location and the first long-term address is less than a distance threshold, and the difference between the time the user last stayed at the first long-term address and the current time corresponding to the current location is less than a time difference. The long-term address is the address where the user's dwell time meets the long-term condition during the first statistical period, wherein the dwell time includes the duration of a single dwell time and the number of dwell times; and... The first long-term address among the plurality of long-term addresses is determined to meet the address condition in the following manner: Based on whether the current time corresponding to the current location matches the target time period, the number of times the user stays at the first long-term address, the distance between the current location and the first long-term address, and the duration during which the distance between the electronic device's location and the first long-term address is less than the distance threshold, the score of the first long-term address is calculated. If the score corresponding to the first long-term address is greater than the score threshold, it is determined that the first long-term address meets the address condition. The target time period corresponds to the first long-term address.
2. The method according to claim 1, characterized in that, The address conditions also include: The current time corresponding to the current location belongs to the target time period, and the target time period corresponds to the first long-term address.
3. The method according to claim 1 or 2, characterized in that, The address conditions also include: During the detection period, the duration for which the distance between the location of the electronic device and the first long-term address is less than the distance threshold is greater than the time threshold.
4. The method according to claim 1, characterized in that, The triggering condition includes at least one of the following: The current time corresponding to the current location reaches the preset trigger time; The current time belongs to the target time period, which corresponds to the first long-term address; A user command to update a long-term address has been detected.
5. The method according to claim 1, characterized in that, The method further includes: Based on the first long-term address, application services are recommended to the user, including one or more of the following: express delivery service, express pickup service, check-in service, and navigation service.
6. The method according to claim 1, characterized in that, The long-term conditions include: the number of times a user stays within the first statistical time period is greater than a threshold, and / or the duration of a single stay is greater than a preset duration.
7. A computer program product, characterized in that, The computer program product includes computer instructions that, when executed by an electronic device, enable the electronic device to perform the method as described in any one of claims 1 to 6.
8. An electronic device, characterized in that, It includes a processor and a memory, the memory being used to store instructions, the processor being used to execute the instructions, and when the processor executes the instructions, it performs the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, Includes instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 6.