Address identification method, medium, product and electronic equipment

By detecting the current location and time period in the electronic device, the electronic device can update the target long-term address in a short time, solving the problem of untimely update of address information and realizing timely and accurate application service recommendations.

CN120470164AActive Publication Date: 2025-08-12HONOR DEVICE CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202411391454.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-08-12
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

In the prior art, electronic devices require users to set their home address and company address in advance to provide map navigation, express delivery and other services, resulting in untimely update of address information and inaccurately recommending application services.

Method used

By detecting the current location, time period, residence time and distance, electronic devices judge and update the target long-term address, including home address or company address, in a short time, and then promptly recommend application services.

Benefits of technology

Without waiting for a day to update data, electronic devices can update target long-term addresses in a timely manner, accurately provide map navigation, express delivery and other services, reducing user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120470164A_ABST
    Figure CN120470164A_ABST
Patent Text Reader

Abstract

The invention is applied to the technical field of terminals, and provides an address identification method, a medium, a product and electronic equipment. The electronic equipment judges whether the current moment belongs to a target time period corresponding to each long-term address of a user, whether the time for the user to reside in the long-term address corresponding to the current position last time is relatively short, and whether the time for the user to reside in the long-term address corresponding to the current position is relatively long; the location of the user is compared with the distance between a plurality of pre-stored long-term addresses, the number of times that the user resides in each long-term address is compared, and the location of the user is judged in a short time. And determining whether the long-term address corresponding to the position of the user is the currently used target long-term address. And the target long-term address can be updated without waiting for the electronic equipment to obtain data of one day.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to an address identification method, medium, product, and electronic device. Background Art

[0002] With the development of electronic technology, users can use applications installed in electronic devices (such as mobile phones) to perform operations such as map navigation, clocking in at work, sending and picking up express parcels, etc. In order to facilitate user operations, electronic devices can recommend the above services to users based on the addresses set in advance by the user. For example, the electronic device can automatically recommend the best route from the user's current location to the home address when the user opens the map application based on the home address and / or company address set in advance. Alternatively, when the user is near the company address, the clocking-in application is automatically opened to facilitate the user to clock in for attendance. Alternatively, when the user needs to send a parcel, the express delivery application will automatically fill in the delivery address based on the user's home address, simplifying the user's operation process, etc.

[0003] However, all of the above services require users to set their home address and / or company address in advance so that the electronic device can recommend map navigation or express delivery services to the user based on the preset address. Summary of the Invention

[0004] In view of this, the present application provides an address identification method, medium, product, and electronic device.

[0005] In a first aspect, an address identification method is provided, comprising: detecting a trigger condition and obtaining the current location of an electronic device; based on the current location, determining that a first long-term address among multiple long-term addresses of the electronic device meets an address condition, and that a target long-term address currently recorded by the electronic device is a second long-term address among the multiple 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 the long-term address is an address where the user's residence condition within a first statistical time period meets the long-term condition, wherein the residence condition includes a single residence duration and the number of residences.

[0006] In the above solution, the target long-term address can be the user's home address or company address, as determined by the electronic device. The electronic device can recommend applications and services to the user based on the target long-term address. A long-term address can be an address where the user has frequently resided, for example, an address where the user has slept for more than seven days.

[0007] The electronic device determines whether it is close to a long-term address based on the location acquired under the trigger condition. If it is determined to be close to a long-term address, it can switch the current target long-term address to the long-term address that is closer to the user. Furthermore, the target long-term address can be updated promptly without having to wait for a day's worth of data to be acquired before determining whether to update the target long-term address.

[0008] In combination with the first aspect, in some implementations, the address condition further includes: a current time corresponding to the current location belongs to a 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 the user is detected to be near a long-term address during the target time period, the target long-term address can be determined to be updated to that long-term address. For example, if the long-term address is a home address, the target time period can be the user's historical sleep time period. Alternatively, if the long-term address is a work address, the target time period can be the user's work time period. Furthermore, by using the target time period as a special time period to determine whether to switch the target long-term address, there is no need to wait until a full day of user data is obtained before determining whether to update the target long-term address, allowing the target long-term address to be updated promptly.

[0010] In combination with the first aspect, in some implementations, the address condition further includes: the distance between the electronic device and the first long-term address within the detection time period is less than a distance threshold for a period greater than a time threshold.

[0011] In the above scheme, if it is detected that the user has been near the first long-term address for a long time, that is, if the time threshold is exceeded, it can be assumed that the user has been staying for a long time and will be residing at the first long-term address that day. Therefore, the target long-term address can be determined to be the first long-term address for update. There is no need to wait until a day's worth of user data is obtained before determining whether to update the target long-term address; the target long-term address can be updated immediately.

[0012] In combination with the first aspect, in some implementations, the address condition further includes: a 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 the user is near the first long-term address and the user's last stay at the first long-term address was relatively recent, it can be assumed that the user has recently resided near the first long-term address. Therefore, the target long-term address for update can be determined to be that long-term address. There is no need to wait until a day's worth of user data is obtained before determining whether to update the target long-term address; the target long-term address can be updated promptly.

[0014] In combination with the first aspect, in some implementations, whether a first long-term address among multiple long-term addresses meets the address condition is determined 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 has resided at the first long-term address, the distance between the current location and the first long-term address, and the length of time during the detection time period when the distance between the location of the electronic device and the first long-term address is less than a distance threshold, a score for 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; wherein, the target time period corresponds to the first long-term address.

[0015] In the above solution, the electronic device can also determine the score of the first long-term address based on whether the current time is the target time period, the number of times the user has resided at the first long-term address, the distance from the first long-term address, the current duration of the user's stay at the first long-term address, and other factors. If the score meets the criteria, the target long-term address is updated to that long-term address. Alternatively, the electronic device can determine the score of each other long-term address and then determine the long-term address with the highest score as the target long-term address. Furthermore, there is no need to wait until a full day of user data is obtained before determining whether to update the target long-term address; the target long-term address can be updated promptly using the current, less data.

[0016] In combination with the first aspect, in some implementations, the trigger 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, wherein the target time period corresponds to the first long-term address; a user instruction to update the long-term address is detected.

[0017] In the above solution, the electronic device can collect the user's address at a preset trigger time, such as 9 o'clock every day 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 receives a user instruction to update the long-term address, such as receiving a user selection operation on a control to update commuting information in a system application. Furthermore, there is no need to wait for a day's worth of user data to determine whether to update the target long-term address. Under the trigger condition, the target long-term address can be updated in a timely manner directly based on the current less data.

[0018] In combination with the first aspect, in some implementations, application services are recommended to the user based on the first long-term address, and the application services include one or more of 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 applications and services to the user based on the target long-term address. For example, it can automatically fill in the sender / recipient information based on the user's home address, remind the user to check in based on the company address, or automatically recommend a route home based on the home address. This eliminates the need for the user to manually enter the address, saving user effort.

[0020] In conjunction with the first aspect, in some implementations, the long-term condition includes: the number of user stays in the first statistical time period is greater than a number threshold, and / or the single stay duration is greater than a preset duration.

[0021] In the above scheme,

[0022] In a second aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory is used to store instructions and the processor is used to execute instructions. When the processor executes the instructions, the method described in the first aspect is performed.

[0023] In a third aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the method described in the first aspect is executed.

[0024] In a fourth aspect, the present application provides a computer program product, which includes computer instructions. When the computer program product is executed by an electronic device, the electronic device performs the method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments.

[0026] Figure 1A This is a schematic diagram of an interface for obtaining a target long-term address provided in an embodiment of the present application;

[0027] Figure 1B This is a schematic diagram of an interface for recommending express delivery services to users based on a target long-term address, provided in an embodiment of the present application;

[0028] Figure 1C This is a schematic diagram of an interface for recommending express pickup services to users based on a target long-term address, provided in an embodiment of the present application;

[0029] Figure 1D This is a schematic diagram of an interface for recommending a check-in service to a user based on a target long-term address, provided in an embodiment of the present application;

[0030] Figure 2 This is a schematic diagram of a process for determining a short-term address provided in an embodiment of the present application;

[0031] Figure 3 This is a schematic diagram of a process for determining a long-term address provided in an embodiment of the present application;

[0032] Figure 4 This is a flowchart of switching a target long-term address provided by an embodiment of the present application;

[0033] Figure 5 This is a flow chart of an address recognition method provided in an embodiment of the present application;

[0034] Figure 6 This is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] Illustrative embodiments of the present application include, but are not limited to, address identification methods, media, products, and electronic devices.

[0036] The electronic devices to which the address recognition method provided in this application can be applied may specifically be mobile phones, tablet computers, wearable devices, vehicle-mounted devices, AR / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), etc.

[0037] As previously mentioned, electronic devices can recommend services to users based on their home and / or work addresses. For example, a map application can automatically recommend the best route from the user's current location to their home address based on their home address. Alternatively, when an electronic device detects that a user is currently near their work address, it can automatically open a check-in application. Alternatively, when an electronic device detects that a user is sending a package through a courier app, the courier 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 user 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, the electronic device can determine the user's address information by obtaining information such as the user's daily habits. For example, the user's sleeping location can be used as the user's home address, and the user's daytime location when using office applications can be used as the company address. Furthermore, the electronic device can automatically identify the user's home address and / or company address, eliminating the need for manual user input, saving the user time.

[0040] For example, refer to Figure 1AAs shown, taking a mobile phone 10 as an example, the mobile phone 10 may display an interface 101 for setting the user's commuting information. The user may click a control 102 to select the mobile phone 10 to automatically obtain the commuting location and time. The mobile phone 10 then collects user information within a certain time period and automatically identifies the user's address information, such as home address, company address, and commuting time.

[0041] Optionally, the display box 103 in the interface 101 may also display the following prompt information near the control 102: "It takes a certain amount of time to learn the automatic acquisition of commuting information, and the manual setting takes effect today." The display box 103 may also display the automatically acquired user's home address information: "XXXXX, Shenzhen City, Guangdong Province", the user's company address information: "XXXXX, Shenzhen City, Guangdong Province", the user's working hours: "8:56", and when the user's off-get off work time is also identified, the words "automatically learning" may be displayed. In addition, the interface 101 may also display a control 104, and the user may use the control 104 to select a commuting mode (such as driving, walking, or public transportation, etc.). The interface 101 may also display multiple controls in area 105, and the user may use the controls in area 105 to modify the home address, company address, working hours, and off-get off work time, etc.

[0042] It should be understood that the above-mentioned interface 101 can specifically be an 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, clock-in applications or express delivery applications, etc.) can obtain information such as home address and / or company address in the commuting information, and then recommend corresponding services to users.

[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, eliminating the need for the user to fill in address information. Figure 1B (a) in the figure shows an interface 106 for sending a parcel by an express application. The interface 106 includes a display box 107. The user can fill in the sender and recipient information based on the display box 107. For example, based on the mobile phone 10 obtaining the user's selection operation based on the input box for filling in the sender information in the display box 107, the mobile phone 10 can display the following information: Figure 1B The interface 108 shown in (b) in FIG. The interface 108 includes a prompt box 109, which displays the content of "whether to obtain the home address as the recipient address". In addition, based on the mobile phone 10 detecting the user's selection operation based on the control 110, the following can be Figure 1A The home address in the Figure 1B The recipient information in the display frame 107 included in (a).

[0044] For another example, the mobile phone 10 can also be based on Figure 1A The mobile phone 10 can obtain the user's current location and, when it determines that the user is near the home address, obtain the pickup information in the express delivery application. If the pickup information obtained by the mobile phone 10 indicates that the user has a courier to be picked up, the user can be reminded to pick it up. For example, Figure 1C As shown, the mobile phone 10 can display pickup information, such as the pickup code 3-07-1825 and the address of the courier station, through the service card 112. Alternatively, when the mobile phone 10 determines that the user is near the company address, it can obtain the courier pickup information of the courier station near the company and remind the user to pick up the package.

[0045] For another example, the mobile phone 10 can also be based on Figure 1A For example, after the mobile phone 10 automatically learns the company address and the user's working time is 8:56, the mobile phone 10 can recommend a clock-in application to the user if the user is near the company address based on the user's current location. For example, Figure 1D As shown, a card for clocking in and out is displayed in the negative first screen interface 113 of the mobile phone 10, so that the user can directly start the clocking-in application by selecting the card 114. Alternatively, the mobile phone 10 can also recommend the clocking-in application to the user if it is detected that the user is near the company address within the preset time based on whether the current time is within the preset time (half an hour before 8:56) and the distance between the user's location and the company address.

[0046] In some embodiments, the electronic device can determine the user's least active time period in a day by obtaining the electronic device's screen on and off data, page switching data and / or the user's motion data, etc., determine the user's least active time period 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, the electronic device can collect the screen-on and screen-off data, motion status data, and page switching data of the electronic device, and send the above data to the 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 in a day, the time when the user is not exercising, and / or the time when there is no page switching of the electronic device. The short-term sleep time can refer to the user's sleep time in a day, for example, the user's sleep time on January 1, 2024 is 01:00 to 06:00.

[0048] At the same time, the electronic device also obtains the location information of the electronic device through positioning technology (such as the global positioning system (GPS)). For example, the electronic device can also generate longitude and latitude trajectory data based on the longitude and latitude information of the electronic device within a day, and cluster multiple longitude and latitude information within a day through a spatiotemporal clustering algorithm to determine the user's stay location in each time period of the day to obtain stay point data. For example, the stay point data may include: the stay point from 00:00 to 06:00 on January 1, 2024 is Community A, the stay point from 07:00 to 08:00 on January 1, 2024 is Breakfast Shop K, and the stay point from 21:00 to 24:00 is Community A, etc.

[0049] The electronic device can then determine the area where the short-term sleep time and the rest point data overlap in time, determine the user's rest location corresponding to the sleep time, and then use this rest 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. The short-term home address refers to the user's home address determined by the electronic device on that day.

[0050] The electronic device can also determine the long-term address of the user through multiple short-term addresses, and use the long-term address as the address information of the user finally identified. For example, the electronic device can obtain the short-term addresses in the first statistical time period, and use the short-term addresses with higher residence frequency as long-term addresses, or use the short-term addresses with more than a preset number of residence times as long-term addresses, and the user's residence time each time is greater than the preset time. For example, the electronic device can obtain the short-term addresses in the past year, and use the location where the user resides for at least 7 days as the long-term address, that is, for a location, it has been a short-term address for at least 7 days. For example, Figure 3 As shown, the short-term addresses from January 1 to January 8 include Cell A for 7 days. Therefore, the electronic device can use Cell A as a long-term address.

[0051] In the above method, if multiple short-term addresses exist and all meet the preset long-term conditions, the multiple short-term addresses can be used as long-term addresses. The electronic device also needs to determine the short-term address of the day based on the data of the day (such as screen on / off data, page switching data, and / or user movement data), and then select the address from the multiple long-term addresses as the current home address based on the current short-term address.

[0052] For example, if a short-term address that lasted seven days is now a long-term address, and multiple addresses have served as short-term addresses for seven days, such as Community A, Community C, Hotel D, and Apartment E, and the electronic device determines that the short-term address is Community A based on the user data for that day, it will determine the current address information as Community A. If the electronic device determines that the short-term address is Community C based on the user data for the next day, it will also update the current address information to Community C.

[0053] However, electronic devices usually need a full day of data to determine the short-term address of the day. For example, taking the address information as a home address, the electronic device determines the user's sleep time based on the user's least active time period in a day, and then determines the location corresponding to the user's sleep time as the short-term home address, and then updates the user's home address based on the current short-term home address. If the user's short-term home address on the previous day was Community A and Community A is a historical address, the electronic device can determine that Community A is the current user's home address. If the user has arrived at another historical address (such as Community C) on the second day, the electronic device needs to collect the user's data on the second day and determine the user's least active time before updating the current home address to Community C. However, when the user uses the electronic device on the second day, since the electronic device has not updated the current home address in time, the electronic device still recommends corresponding services to the user based on the location of Community A.

[0054] That is, since the electronic device needs to update the user's address information in the electronic device based on the user's use data within a 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 being unable to update address information in a timely manner, the present application provides an address recognition method. When an electronic device obtains multiple long-term addresses corresponding to a user, the electronic device determines whether the current moment falls within the target time period corresponding to each long-term address of the user, whether the user's last stay at the long-term address corresponding to the current location was recent, whether the user's current stay at the long-term address corresponding to the current location was long, compares the distance between the user's location and multiple pre-stored long-term addresses, and compares the number of times the user has stayed at each long-term address. In this way, the electronic device determines the user's location in a relatively short period of time to determine whether the long-term address corresponding to the user's location is the target long-term address currently in use. The electronic device does not need to wait until a day's data is obtained before updating the target long-term address.

[0056] For example, in some embodiments, the electronic device can obtain the user's location according to a preset time window (e.g., every 10 minutes). If the electronic device determines that the obtained user location is within the range of the 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, wherein the first long-term address can be used as the center, and the address with a distance from the first long-term address less than a distance threshold can be determined as an address within the range of the first long-term address. Furthermore, other third-party applications can subsequently use the updated target long-term address to recommend corresponding application services to the user (e.g., express delivery service, express pickup service, check-in service, and navigation service, etc.).

[0057] Alternatively, the electronic device may also obtain the current user's location at a preset time (e.g., 9:00 every day). Alternatively, the electronic device may obtain the user's current location when receiving a user instruction to update the target long-term address. For example, the electronic device receives a user instruction based on the following example: Figure 1A Selecting control 102 indicates that the user wishes to automatically obtain the target long-term address. Alternatively, the electronic device may obtain the current user's location upon detecting that the current time falls within a target time period, where the target time period may be a time period during which the user typically resides at the long-term address. This application does not impose any specific restrictions on the specific triggering conditions for the electronic device to obtain the user's current location.

[0058] Furthermore, based on the trigger conditions, the electronic device can obtain not only the user's current location but also the user's location within a detection period (e.g., within the past 12 hours or the next 12 hours) to generate a historical track of the user. Furthermore, the electronic device can determine whether the address conditions for updating the target long-term address are met based on this historical track.

[0059] In some embodiments, the target time period may be the user's historical sleep time period determined based on the user's least active time period in the past. The electronic device may determine the user's sleep time for the day based on the time period when the electronic device's screen is off, the time period with the lowest amount of exercise in the acquired user's motion data, and / or the time period when the electronic device does not perform page switching operations. The user's sleep time in a day may also be referred to as short-term sleep time, and the historical sleep time period may also be obtained based on a combination of multiple short-term sleep times. For example, the user's short-term sleep time on a certain day is from 01:30 to 07:00, and the user's short-term sleep time on another day is from 01:00 to 07:00. Furthermore, it may be determined that the user's historical sleep time period is from 01:00 to 07:00.

[0060] It should be understood that the above-mentioned 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 time period when the user uses office software (such as document editing software or conference software, etc.) every day. In other words, this application does not specifically limit the type of target long-term address and the type of target time period. For the sake of convenience, the following description will take the target time period as a historical sleep time period as an example.

[0061] In some embodiments, after the electronic device obtains the user's location based on the trigger condition, it can also determine whether the time when the user's location is obtained falls within the target time period. 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 is obtained falls within 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 is obtained falls within the historical sleep time period (e.g., 01:00 to 07:00), the electronic device can update the user's target long-term address to Hotel D.

[0062] In other embodiments, the electronic device may also determine, based on the user's past locations within a preset time period, the time period during which the user was at Hotel D and / or within a preset range of Hotel D, and determine the degree of overlap between the time period and the target time period. If the degree of overlap is greater than a first overlap threshold, the electronic device updates 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 a trigger condition, 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 number of times the first long-term address has been used as a short-term address, that is, the number of times the user has resided at the first long-term address, such as the number of days the user has resided at the first long-term address. If the number of times the first long-term address has been used as a short-term address exceeds 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 times is greater than the second preset number of times (also referred to as a number threshold) in the long-term condition for determining a long-term address. For example, if the long-term condition includes the user's number of visits to the address exceeding seven days, the first preset number of times may be the number of visits to the first long-term address exceeding 30 days. Furthermore, if the user is detected to be within the range of the first long-term address, and the first long-term address is the user's regular residence, the electronic device may 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 a trigger condition, 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 time between the user's last stay at the first long-term address and the present time. If the time difference is less than the time difference, the electronic device will update the user's target long-term address to the first long-term address. In other words, the user's last stay at the address is relatively recent, indicating that the user has recently been resident at the 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 falls within 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 length of time the user was within the range of the first long-term address during the detection time period. If the length of time the user was within the preset range of the first long-term address during the detection time period is greater than a time threshold, indicating that the user recently resided at the first long-term address for a relatively long period of time, the electronic device will update the user's target long-term address to the first long-term address.

[0067] In other embodiments, after obtaining the user's location, the electronic device may further score each long-term address based on the degree of overlap between the time when the user's location was obtained 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 has resided at each long-term address), the length of time the user has been within a preset range of each long-term address within a preset time period, etc. The electronic device may determine the long-term address with the highest score among the long-term addresses as the user's target long-term address.

[0068] For example, if Figure 4 As shown, taking the long-term addresses 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 every day, as well as the user's location on that day (i.e., from 00:00 to 09:00). For example, the electronic device obtains that the user was at Hotel D from 00:00 to 07:00, and was in 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 before (for example, more than the first preset number of times); the last time the user stayed at Hotel D was close to the present time (for example, less than 7 days); the user stayed at Hotel D or near Hotel D for a long time today (for example, more than 4 hours); the time period when the user stayed at Hotel D was special, which was the user's previous sleeping time (for example, 1:00-7:00).

[0070] Furthermore, through the address recognition method provided by this application, an electronic device can determine whether a target long-term address needs to be updated based on the currently acquired address or the user's address within a detection time period, without having to wait for a day's worth of data to be acquired before updating, thereby enabling accurate application service recommendations based on the target long-term address. Furthermore, the electronic device can also make auxiliary judgments on whether to update the target long-term address based on the overlap between the time when the user's location was acquired 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 length of time the user has resided at the long-term address within a preset time period, thereby making the judgment result more accurate.

[0071] The following combination Figure 5 The address recognition method provided by this application is introduced. The address recognition method can be applied to the above-mentioned electronic devices (such as mobile phone 10), such as Figure 5 As shown, the address identification method includes:

[0072] S510: A trigger condition is detected, and the current location of the electronic device is obtained.

[0073] The electronic device can obtain the current location of the electronic device when it detects that the current time reaches the preset trigger time, or the current time belongs to the target time period, or detects a trigger condition such as a user instruction to update the long-term address.

[0074] In some embodiments, based on the above trigger conditions, the electronic device can not only obtain the user's current location, but also obtain the user's location during the detection time period to generate the user's historical trajectory.

[0075] S520: Based on the current location, determine whether the first long-term address meets the address condition. If so, execute S530. If not, execute 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 of the multiple long-term addresses, the electronic device can determine that the user is currently residing at the first long-term address and then update the target long-term address, executing S530. Conversely, if the electronic device determines that the current location is far from any of the long-term addresses, the electronic device maintains the current target long-term address, executing S540.

[0077] A long-term address is one where the user has visited an address more than a threshold number of times within the first statistical time period, and / or where the duration of a single visit is longer than a preset duration. For example, a user may have visited an address for more than seven days, and each visit lasted longer than a preset duration, e.g., the visit time included a target time period (e.g., a historical sleep time period).

[0078] In some embodiments, the address condition further includes: the current time corresponding to the current location falls within a target time period. The target time period may be the aforementioned historical sleep time period, historical work time period, etc. For details, please refer to the aforementioned description and will not be repeated here. If the user's location is within the range of the first long-term address among the multiple long-term addresses, and the time when the user's location is acquired falls within the target time period, the electronic device will execute S530 to update 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 also includes: the time length during which the distance between the electronic device and the first long-term address is less than the distance threshold during the detection time period is greater than the time threshold. In other words, the electronic device will also obtain the time length during which the user is within the range of the first long-term address during the detection time period. If the time length during which the user is within the preset range of the first long-term address during the detection time period is greater than the time threshold, it indicates that the user has recently resided at the first long-term address for a long time, and the electronic device will update the user's target long-term address to the first long-term address, that is, the electronic device will execute S530. Otherwise, the electronic device will execute 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. In other words, if the time the user last resided at the address is relatively recent, indicating that the user has recently resided at the first long-term address, 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 first long-term address has been used as a short-term address a number of times greater than a first preset number. In other words, if the user is detected to be within the range of the first long-term address, and the first long-term address is an address where the user frequently resides, the electronic device may 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 the score of the first long-term address based on one or more of whether the current time corresponding to the current location matches the target time period, the number of times the user has resided at the second long-term address, the distance between the current location and the first long-term address, and the duration during the detection time period when the distance between the electronic device and the first long-term address is less than a distance threshold. The electronic device determines that the first long-term address meets the address condition only when the score of 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 target long-term address currently recorded by the electronic device is the second long-term address among the multiple long-term addresses. When 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 the first long-term address, where the application services include one or more of express delivery services, express pickup services, check-in services, and navigation services.

[0086] S540: Keep the target long-term address as the second long-term address.

[0087] When the electronic device detects that the address condition is not met, the electronic device maintains the target long-term address as the second long-term address, and recommends application services to the user based on the second long-term address.

[0088] Furthermore, through the address identification method provided by this application, the electronic device can determine whether the target long-term address needs to be updated based on the currently acquired address or the user's address within the detection time period, without having to wait for a day's data to be acquired before updating, so that application service recommendations based on the target long-term address can be accurately made.

[0089] The following is a detailed introduction to the method for scoring long-term addresses in the address recognition method provided by this application. The scoring of long-term addresses includes one or more of the scores of residence times, last visit time, and spatiotemporal overlap.

[0090] The residence frequency score indicates the user's familiarity with the 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 is greater than the preset duration, that is, the higher the number of user stays, the higher the residence frequency score.

[0091] In some embodiments, the residence score can be obtained based on the normalized score of the number of residences of each long-term address, or based on the ratio of the number of residences to the number of residences of the most resident long-term address. For example, the following formula (1) can be used for specific reference, where, for example, the electronic device stores M long-term addresses, N1 to N M Indicates the number of residence times of each long-term address, H i represents the i-th long-term address, S count (H i ) represents the residence score of the i-th long-term address, where N, M, and i are all positive integers.

[0092]

[0093] Taking the long-term addresses including H1, H2 and H3 as an example, assuming that the number of residences of H1, H2 and H3 is [100, 50, 10], the residence number scores of H1, H2 and H3 are [1, 0.5, 0.1].

[0094] The last access time score is the difference between the time when the user last resided or visited a long-term address and the current time. The smaller the time difference, the higher the access time score. The access time score can be obtained by using a negative exponential decay function and normalization operation. For example, the following formula (2) can be used for details, where Δt i represents the time difference of the last time the user stayed at the i-th long-term address, λ is the parameter that controls the decay speed, S time (H i ) represents the last access time score of the i-th long-term address.

[0095]

[0096] Taking the long-term addresses including H1, H2 and H3 as an example, assuming that the time difference of the user's last visit to H1, H2 and H3 is [1, 7, 30] respectively, the last visit time scores of H1, H2 and H3 are [0.731, 0.119, 0.0001].

[0097] The spatiotemporal overlap score indicates the degree of overlap between the user and a long-term address in the target time period and location during the detection period (e.g., the past 12 hours). Specifically, the spatiotemporal overlap score can also be calculated by dividing the detection period into preset time windows, for example, 10 minutes as a time period, and determining the time period t j The target time period overlap and location overlap.

[0098] The target time period overlap refers to the time period t j The overlap degree with the target time period, j is a positive integer and can be calculated by an exponential decay function. For example, the following formula (3) can be used for details, where Δt j Represents time period t j and target time period (e.g. user's historical sleep time period T sleep ), α is the parameter that controls the decay rate, S time_overlap (t j ) represents the time period t j The target time period overlap.

[0099]

[0100] Position overlap refers to the time period t j and the i-th long-term address Hi The score of the closest distance can be calculated by using an exponential decay function. For example, the following formula (4) can be used for specific reference, where d j (H i ) represents the time period t j The i-th long-term address H i The closest distance, β is the parameter that controls the decay speed, S distance (t j ,H i ) represents the time period t j and the i-th long-term address H i The position overlap.

[0101]

[0102] Time period t j The spatiotemporal overlap score can be obtained based on the product of the target time period overlap and the location overlap. For example, please refer to formula (5), S spatio_temporal (t j ,H i ) represents the time period t j The i-th long-term address H i The degree of space-time overlap.

[0103]

[0104] The electronic device can also sum up the spatiotemporal coincidence scores of all time periods to obtain the long-term address H i For example, please refer to formula (6), S spatio_temporal (H i ) represents the long-term address H i The degree of space-time overlap.

[0105]

[0106] Electronic devices can also be used to spatio_temporal (H i ) is normalized to obtain the final spatiotemporal coincidence score. For example, please refer to formula (7), where γ is used to control the steepness of the sigmoid function.

[0107]

[0108] In some embodiments, the electronic device may further perform a weighted sum of the residence times score, the last visit time score, and the spatiotemporal overlap score to obtain a score S(H) for each long-term address. i ), for example, please refer to formula (8), where γ1 represents the residence frequency score S count (Hi ), γ2 represents the last visit time score S time (H i ), γ3 represents the long-term address H i The spatiotemporal overlap score S spatio_temporal (H i ) weight parameter.

[0109] S (Hi) =γ1S time(Hi) +γ2S time(Hi) +γ3S spatio_temporal(Hi) (8)

[0110] For example, the long-term addresses include H1, H2, and H3, γ1 is equal to 0.4, γ2 is equal to 0.3, and γ3 is equal to 0.3.

[0111] The scores of H1 are S count (H1)=1,S time (H1)=0.731,S spatio_temporal (H2)=0.85, then S(H1)=0.4*1+0.3*0.731+0.3*0.85=0.8593.

[0112] The scores of H2 are S count (H2)=0.5,S time (H2)=0.119,S spatio_temporal (H3)=0.65, then S(H2)=0.4*0.5+0.3*0.119+0.3*0.65=0.3837.

[0113] The scores of H3 are S count (H3)=0.1,S time (H3)=0.0001,S spatio_temporal (H3)=0.45, then S(H3)=0.4*0.1+0.3*0.0001+0.3*0.45=0.19003.

[0114] Then, it is determined that the one with the highest score is H1, and H1 can be used as the updated target long-term address.

[0115] The above describes in detail the method of the embodiment of the present application. In order to facilitate better implementation of the above scheme of the embodiment of the present application, correspondingly, related equipment for cooperating in implementing the above scheme is also provided below.

[0116] Figure 6 1 is a structural diagram 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, a button 190, a camera 191, a display screen 192, etc.

[0118] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0119] The processor 110 may include one or more processing units, for example: the processor 110 may include 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), etc. Among them, different processing units can be independent devices or integrated into one or more processors. The processor 110 can be used to execute the address recognition method provided in the embodiment of the present application.

[0120] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0121] The 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 , the memory 120 , the camera 191 , the display screen 192 , and the mobile communication module 160 .

[0123] The wireless communication function of the electronic device 100 can be implemented through the wireless communication module 150, the mobile communication module 160, the antenna, the modem processor and the baseband processor.

[0124] The wireless communication module 150 can provide wireless communication solutions for application 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 technology (NFC), infrared technology (IR), etc.

[0125] The mobile communication module 160 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the electronic device 100.

[0126] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals.

[0127] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0128] The electronic device 100 implements the display function through the GPU, the display screen 192, and the application processor. For example, the display Figures 1A to 1D The interface shown.

[0129] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0130] The electronic device 100 can implement a shooting function through an ISP, a camera 191, a video codec, a GPU, a display screen 192, and an application processor.

[0131] The camera 191 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 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 codes, which include instructions. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as an accessibility function, etc.). The data storage area may store data created during the use of the electronic device 100 (such as reporting data), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. 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 a memory provided in the processor. In some implementation examples, the processor 110 executes the address recognition method provided in the embodiment of the present application by running instructions stored in the memory 120.

[0133] The buttons 190 include a power button, a volume button, etc. The buttons 190 can be mechanical buttons or touch buttons.

[0134] Need to explain, Figure 6 This is only one possible implementation of the embodiment of the present application. In actual applications, the electronic device 100 may also include more or fewer components, which is not limited here. Figure 5 The relevant explanations in the embodiments will not be repeated here.

[0135] It should be understood that Figure 6 The electronic device shown may also be a computer cluster consisting of at least one server, which is not specifically limited in this application.

[0136] The present application also provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a processor, Figure 5 The method flow shown is realized.

[0137] The present application also provides a computer program product. When the computer program product is run on a processor, Figure 5 The method flow shown is realized.

[0138] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, 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 the computer program instructions are loaded and executed 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 device. 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 one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. 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 includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk).

[0139] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by a computer program instructing related hardware to perform the processes. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described 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 recognition method, characterized in that: Applied to electronic equipment, the method includes: Detecting a trigger condition and obtaining the current location of the electronic device; Based on the current location, determining that a first long-term address among multiple long-term addresses of the electronic device meets an address condition, and a target long-term address currently recorded by the electronic device is a second long-term address among the multiple long-term addresses, and updating the second long-term address to the first long-term address; The address condition includes that the distance between the current location and the first long-term address is less than a distance threshold, and The long-term address is an address where the user's residence condition during the first statistical time period meets the long-term condition, wherein the residence condition includes a single residence duration and the number of residence times.

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 a 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: The time length during which the distance between the electronic device and the first long-term address within the detection time period is less than the distance threshold is greater than the time threshold.

4. The method according to any one of claims 1 to 3, characterized in that The address conditions also include: 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.

5. The method according to claim 1, characterized in that: Determining whether a first long-term address among the plurality of long-term addresses satisfies an address condition is performed by: Calculating a score for the first long-term address based on whether the current time corresponding to the current location matches the target time period, the number of times the user has resided at the first long-term address, the distance between the current location and the first long-term address, and the duration during a detection time period when the distance between the electronic device and the first long-term address is less than the distance threshold; The score corresponding to the first long-term address is greater than a score threshold, and it is determined that the first long-term address meets the address condition; The target time period corresponds to the first long-term address.

6. 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 position reaches the preset trigger time; The current time belongs to a target time period, wherein the target time period corresponds to the first long-term address; A user instruction to update a long-term address was detected.

7. The method according to claim 1, characterized in that: The method further comprises: Based on the first long-term address, application services are recommended to the user, where the application services include one or more of an express delivery service, an express pickup service, a check-in service, and a navigation service.

8. The method according to claim 1, characterized in that: The long-term condition includes: the number of times the user stays in the first statistical time period is greater than a number threshold, and / or the single stay duration is greater than a preset duration.

9. A computer program product, characterized in that The computer program product comprises computer instructions, and when executed by an electronic device, the electronic device performs the method according to any one of claims 1 to 8.

10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, the method according to any one of claims 1 to 8 is performed.

11. A computer-readable storage medium, characterized in that The method comprises instructions, which, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Address judgment method and terminal

    CN106528176A

  • Schedule address identification method and device, storage medium and software program product

    CN113779427A

  • Schedule information intelligent reminding method and device, storage medium and software program product

    CN113780975A

  • Express pickup reminding method and device

    CN114463898A

  • Location labeling method, electronic equipment and storage medium

    CN116684524A