Positioning method, recommendation method, readable medium and electronic device

By combining the Wi-Fi historical data of user electronic devices with external positioning methods to calibrate the stay area, the problem of inaccurate indoor positioning is solved, the accuracy of the recommended content of the LBS service is improved, and the user experience is improved.

CN117014803BActive Publication Date: 2024-08-27HONOR DEVICE CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202310827340.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-06
Publication Date
2024-08-27
Estimated Expiration
2043-07-06

AI Technical Summary

Technical Problem

In indoor or high-rise dense areas, external positioning data is not accurate enough, resulting in inaccurate division of stay points, affecting the accuracy of location-based service (LBS) recommended content.

Method used

Determine the user's stay area through the historical Wi-Fi data of the Wi-Fi network that the user's electronic device has connected to, and compare it with the stay area of ​​the external positioning method to calibrate the candidate stay area and improve positioning accuracy.

Benefits of technology

It achieves more accurate division of stay areas indoors and in high-rise dense areas, improves the accuracy of recommended content of LBS services, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117014803B
    Figure CN117014803B
Patent Text Reader

Abstract

The present application relates to the field of communication technology, and discloses a positioning method, a recommendation method, a readable medium, and an electronic device. The positioning method uses the historical Wi-Fi data of the user's electronic device to determine the user's second stay area and the second stay time corresponding to the second stay area, and then compares the second stay area with the first stay area based on the second stay time corresponding to the second stay area and the first stay time corresponding to the first stay area determined by the positioning data, calibrates the first stay area, and obtains relatively accurate candidate stay area division information. The first stay area is corrected based on the second stay area, and the obtained candidate stay area is more accurate than the first stay area, so that the LBS service can establish related services with each candidate stay area. When the electronic device enters the candidate stay area again, that is, when the location information of the electronic device matches the candidate stay area, the service is recommended to the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a positioning method, a recommendation method, a readable medium and an electronic device. Background Art

[0002] Currently, location-based services are increasingly being used in electronic devices. For example, taking a mobile phone as an example, historical positioning data from an external positioning method (such as satellite positioning) can be obtained, and the historical positioning information can be analyzed and processed to obtain information about areas (stopping points) where users often stay, and provide users with corresponding services when users are at different stopping points. For example, based on the positioning data of a user's mobile phone for a week, it is determined that the area where the user often stays is a shopping mall. When the user enters the mall again, information such as merchant discounts in the mall is recommended to the user.

[0003] However, external positioning data is usually not accurate enough in indoor or high-rise dense areas, which leads to inaccurate division of stay points. For example, if the user's company and the shopping mall near the company are identified as the same stay area, the user may often receive recommendations from nearby shopping malls when at work, affecting the user's experience. Summary of the invention

[0004] The purpose of the present application is to provide a positioning method, a recommendation method, a readable medium and an electronic device.

[0005] A first aspect of the present application provides a positioning method, including: acquiring a current first position of a first electronic device; determining a first target stay area corresponding to the first position from N candidate stay areas that have been divided, wherein the N candidate stay areas are determined based on P first stay areas divided by a first positioning method and L second stay areas determined by a second positioning method, wherein the first positioning method includes a Wi-Fi positioning method, and N, P, and L are integers greater than 2.

[0006] In an embodiment of the present application, the first electronic device here may be an electronic device of the user, the first position may be the first position information of the electronic device, the N candidate stay areas may be multiple candidate stay areas, the first target stay area may be a candidate stay area corresponding to the first position information, the first positioning method may be an external positioning method, the P first stay areas may be multiple first stay areas, the second positioning method may be a Wi-Fi positioning method, and the L second stay areas may be multiple second stay areas. The historical Wi-Fi data of the Wi-Fi network to which the user's electronic device has been connected is used to determine the user's first stay area, and then the first stay area is compared with the predetermined second stay area, and the second stay area is calibrated to obtain relatively accurate candidate stay area division information. When the user's electronic device moves, the first position information of the user's electronic device is obtained based on the external positioning method, and the candidate stay area is matched as the target stay area.

[0007] It can be understood that the candidate stay area obtained by correcting the second stay area based on the first stay area is more accurate than the second stay area, so that the LBS service can establish relevant services with each candidate stay area. When the user enters the candidate stay area again with an electronic device, that is, when the location information of the user's electronic device matches the candidate stay area, the service is recommended to the user.

[0008] In a possible implementation of the first aspect above, it also includes: acquiring the current first position of the first electronic device based on the second positioning method, and determining a first target stay area corresponding to the first position from the N candidate stay areas that have been divided, including: corresponding to the existence of M candidate stay areas corresponding to the first position among the N candidate stay areas, determining the current second position of the first electronic device based on the first positioning method, wherein M is a positive integer less than N, and M is greater than 1; and determining a candidate stay area corresponding to the second position from the M candidate stay areas as the second target stay area.

[0009] In the embodiment of the present application, the M candidate stay areas here may be multiple candidate stay areas, the current second position of the first electronic device may be the second position information of the user's electronic device, and the second target stay area may be the candidate stay area corresponding to the second position information. When the user's electronic device moves, the first position information of the user's electronic device is obtained based on external positioning. If it is determined based on the first position information that the user's electronic device matches multiple candidate stay areas or the user's electronic device does not match the candidate stay area, the wireless network data is used to determine the second position information of the user's electronic device, and further judgment is made to match the candidate stay area as the target stay area.

[0010] In a possible implementation of the first aspect above, N candidate stay areas are divided in the following manner: based on the historical Wi-Fi information of the first electronic device, P first stay areas are divided, and P first stay times that the first electronic device is in each first stay area are determined; L second stay times that the first electronic device is located in L second stay areas are obtained, and based on the P first stay times and the L second stay times, the second stay area that coincides with the first stay area in time is calibrated to obtain N candidate stay areas.

[0011] In the embodiment of the present application, the historical Wi-Fi information here may be historical Wi-Fi data. The historical Wi-Fi data of the Wi-Fi network to which the user's electronic device has been connected is used to determine the user's first stay area and the first stay time corresponding to the first stay area, and then based on the first stay time corresponding to the first stay area and the second stay time corresponding to the aforementioned second stay area, the first stay area is compared with the predetermined second stay area, and the second stay area is calibrated to obtain relatively accurate division information of the candidate stay areas.

[0012] In a possible implementation of the first aspect above, based on P first stay times and L second stay times, the second stay area that overlaps with the first stay area in time is calibrated to obtain N candidate stay areas, including: from the L second stay times, J second stay times Tl that overlap with the first stay time Tp1 among the P first stay times are selected, and the second stay areas corresponding to the J second stay times Tl are merged to obtain a candidate stay area, where J is an integer greater than 1; from the P first stay times, Q first stay times Tp that overlap with the second stay time Tl1 among the L second stay times are selected, and the second stay area corresponding to the second stay time Tl1 is divided to obtain M candidate stay areas, where Q is an integer greater than 1.

[0013] In the embodiment of the present application, the first stay time Tp1 here may be a first stay time corresponding to a first stay area, the J second stay times Tl may be second stay times corresponding to multiple second stay areas, the second stay time Tl1 may be a second stay time corresponding to a second stay area, the Q first stay times Tp may be first stay times corresponding to multiple first stay areas, and the M candidate stay areas may be multiple candidate stay areas. If the first stay time corresponding to a first stay area overlaps with the second stay time corresponding to multiple second stay areas, the multiple second stay areas are merged into one candidate stay area. If the first stay time corresponding to multiple first stay areas overlaps with the second stay time corresponding to a second stay area, the one second stay area is divided into multiple candidate stay areas according to the multiple first stay areas.

[0014] In a possible implementation of the first aspect, the historical Wi-Fi information of the first electronic device includes: Wi-Fi network data to which the first electronic device is connected within a time threshold; and Wi-Fi network data scanned by the first electronic device that meets a scanning condition within the time threshold; wherein the scanning condition includes at least one of the following: a scanning intensity greater than a scanning intensity threshold, and a scanning number greater than a scanning number threshold.

[0015] In the embodiment of the present application, the historical Wi-Fi information here may be historical Wi-Fi network data, the time threshold may be the last 7 days, the scan intensity threshold may be the scan intensity threshold s, and the scan count threshold may be the scan count threshold n. The electronic device 100 obtains data corresponding to the connected Wi-Fi network in the last t days. The electronic device 100 obtains data corresponding to the scanned Wi-Fi network in the last t days, and may also obtain data corresponding to the scanned Wi-Fi network with a scan intensity greater than or equal to the scan intensity threshold s, and / or a scan count greater than or equal to the scan count threshold n.

[0016] In a possible implementation of the first aspect, based on historical Wi-Fi information of the first electronic device, P first stay areas are divided, and P first stay times of the first electronic device in each first stay area are determined, including: determining a first distance between any two Wi-Fi networks in the historical Wi-Fi information; determining that any two Wi-Fi networks whose first distance is less than a distance threshold are in the same first stay area; and determining a first stay time for each first stay area based on a time corresponding to the Wi-Fi networks in each first stay area.

[0017] In the embodiment of the present application, the first distance between any two Wi-Fi networks here may be the distance d between any two data points. ij , the distance threshold may be a distance threshold dist_threshold, and the same first stay area may be the same Wi-Fi connectivity subgraph (first stay area). The electronic device 100 determines the length of each edge (i.e., the distance between any two data points) based on the distance d of each edge of the Wi-Fi undirected graph. ij The Wi-Fi undirected graph is cut into k Wi-Fi connectivity subgraphs (first stay areas) according to the size relationship with the distance threshold dist_threshold. The electronic device 100 can determine the correspondence between each Wi-Fi network and the Wi-Fi connectivity subgraph based on each Wi-Fi connectivity subgraph obtained by cutting.

[0018] In a possible implementation of the first aspect, determining the first distance between any two Wi-Fi networks in the historical Wi-Fi information includes: determining the first distance to be 0 if the any two Wi-Fi networks are Wi-Fi networks connected to the first electronic device at a single time; and determining a scan probability that the any two Wi-Fi networks are scanned by the first electronic device at the same time, and determining the first distance based on the scan probability, where a greater the scan probability, the smaller the first distance.

[0019] In the embodiment of the present application, the single-connected Wi-Fi network here may be single-connection Wi-Fi connection information, and the scanning probability may be the scanning Wi-Fi co-occurrence probability. ij The values ​​include: If point v i and point v j are the two BSSIDs corresponding to a Wi-Fi network connection, then let d ij = 0. Construct the co-occurrence probability matrix bssid_matrix, point v i and point v j The co-occurrence probability is m ij , let d ij =1-m ij The higher the co-occurrence probability of two Wi-Fi networks, the greater the possibility that the two Wi-Fi networks are scanned by the electronic device at the same time, and the closer the distance between the two Wi-Fi networks is.

[0020] In a possible implementation of the first aspect above, the first positioning method includes at least one of the following: satellite positioning and mobile network positioning.

[0021] In the embodiment of the present application, the longitude and latitude position data may be obtained based on mobile network positioning, may be obtained based on external positioning, or may be obtained based on a combination of mobile network positioning and external positioning.

[0022] A second aspect of the present application provides a recommendation method, including: obtaining a current first position of a first electronic device; determining a first target stay area corresponding to the first position from N candidate stay areas that have been divided, wherein the N candidate stay areas are determined based on P first stay areas divided by a first positioning method and L second stay areas determined by a second positioning method, wherein the first positioning method includes a Wi-Fi positioning method, and N, P, and L are integers greater than 2; and recommending recommended content corresponding to the candidate stay area corresponding to the first position to a user of the first electronic device.

[0023] In the embodiment of the present application, the first electronic device here may be an electronic device of the user, the first position may be the first position information of the electronic device, the N candidate stay areas may be multiple candidate stay areas, the first target stay area may be a candidate stay area corresponding to the first position information, the first positioning method may be a Wi-Fi positioning method, the P first stay areas may be multiple first stay areas, the second positioning method may be an external positioning method, the L second stay areas may be multiple second stay areas, and the recommended content may be a recommended service. The historical Wi-Fi data of the Wi-Fi network to which the user's electronic device has been connected is used to determine the user's first stay area, and then the first stay area is compared with the predetermined second stay area, and the second stay area is calibrated to obtain more accurate candidate stay area division information. When the user's electronic device moves, the first position information of the user's electronic device is obtained based on the external positioning method, and the candidate stay area is matched as the target stay area. Then, based on the target stay area, the user is provided with a recommendation service based on the stay area.

[0024] In a possible implementation of the second aspect above, it also includes: acquiring the current first position of the first electronic device based on the second positioning method, and determining a first target stay area corresponding to the first position from the N candidate stay areas that have been divided, including: corresponding to the existence of M candidate stay areas corresponding to the first position among the N candidate stay areas, determining the current second position of the first electronic device based on the first positioning method, wherein M is a positive integer less than N, and M is greater than 1; and determining a candidate stay area corresponding to the second position from the M candidate stay areas as the second target stay area.

[0025] In a possible implementation of the second aspect above, it also includes: recommending recommended content corresponding to a second target stay area corresponding to the second location to a user of the first electronic device, and the recommended content includes at least one of the following: recommended applications, recommended travel methods, recommended merchants, and recommended tourist attractions.

[0026] A third aspect of the present application provides a readable medium on which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes any one of the methods of the first and second aspects.

[0027] The fourth aspect of the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device, and a processor, which is one of the processors of the electronic device, for executing any one of the methods of the first and second aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 According to an embodiment of the present application, a schematic diagram of dividing a stay area is shown;

[0030] Figure 2 According to an embodiment of the present application, a schematic diagram of merging stay areas is shown;

[0031] Figure 3 According to an embodiment of the present application, a schematic diagram of a stay area is shown;

[0032] Figure 4 According to an embodiment of the present application, a flow chart of a positioning method is shown;

[0033] Figure 5 According to an embodiment of the present application, a schematic diagram of a candidate stay point is shown;

[0034] Figure 6 According to an embodiment of the present application, a schematic diagram of a set V of data points in a Wi-Fi undirected graph is shown;

[0035] Figure 7 According to an embodiment of the present application, a schematic diagram of a Wi-Fi undirected graph is shown;

[0036] Figure 8 According to an embodiment of the present application, a schematic diagram of a Wi-Fi connectivity subgraph is shown;

[0037] Fig. 9 According to an embodiment of the present application, a schematic diagram showing the intersection of a stay time period of a candidate stay point and a stay time period of a Wi-Fi connectivity subgraph is shown;

[0038] Fig.10 A schematic diagram of a user interface of an electronic device is shown according to an embodiment of the present application;

[0039] Fig.11 According to an embodiment of the present application, a structural schematic diagram of an electronic device is shown;

[0040] Fig.12 According to an embodiment of the present application, a schematic block diagram of a software system architecture of an electronic device is shown. DETAILED DESCRIPTION

[0041] The illustrative embodiments of the present application include, but are not limited to, a positioning method, a recommendation method, a readable medium, and an electronic device.

[0042] Before introducing the technical solutions involved in the embodiments of the present application, some of the terms included in the embodiments of the present application are explained first.

[0043] Location-based recommendation service (LBS) is a location-based service that uses external positioning methods, such as the global positioning system (GPS) and the Beidou navigation satellite system (BDS), to obtain the user's location information (such as longitude and latitude), and uses the geographic information system (GIS) to provide users with corresponding services. For example, based on the location information of the user, personalized services are recommended to the user. Including but not limited to:

[0044] (1) Travel recommendations: Combine the user's location information, length of stay and other information to recommend travel attractions that the user may be more interested in; provide users with more accurate travel suggestions based on their different travel needs.

[0045] (2) Merchant marketing: Identify users who often stay near the store, actively push discounts to these users, and send reminders when the users arrive nearby.

[0046] (3) Social applications: Social applications can recommend users who have stayed in similar places and at similar times.

[0047] (4) Urban planning: Identifying the stay information of user groups can be used to analyze the usage of public places (such as parks and squares) to understand the flow of people at different times and locations, which can help governments or companies formulate corresponding urban planning strategies and improve the overall livability of the city.

[0048] As mentioned above, LBS services usually obtain historical positioning data from external positioning methods (such as satellite positioning), analyze and process the historical positioning data, and obtain information such as the user's stay point (hereinafter referred to as the second stay area for convenience of description) to provide users with corresponding services. For example, based on the positioning data of the user's mobile phone for a week, it is determined that the user's stay points are home and work. When the user enters the stay point where the home is located again, leisure and entertainment content is recommended to the user; when the user enters the stay point where the company is located again, office content is recommended to the user.

[0049] However, external positioning data is easily affected by external factors such as buildings and weather, and it is impossible to obtain accurate positioning data indoors or in areas with densely populated buildings. This may lead to inaccurate division of stay points, which in turn affects the accuracy of LBS service recommendations. For example, if the user's home is near the company (200 meters away), the user's home and company may be identified as one stay point, which may cause the user to frequently receive leisure and entertainment recommendations when at the company, affecting the user's experience.

[0050] It is understandable that in scenes such as indoors or in areas with densely populated high-rise buildings, such as office buildings and shopping districts, wireless local area networks (WLAN), such as wireless fidelity (Wi-Fi) networks, usually have a high coverage rate, and the Wi-Fi module of the user's electronic device is usually turned on. Therefore, in these areas, based on the network information of different Wi-Fis connected and scanned by the user's electronic device, the positioning result is relatively more accurate.

[0051] In view of this, an embodiment of the present application provides a positioning method, which uses the historical Wi-Fi data of the Wi-Fi network to which the user's electronic device has been connected to determine the user's first stay area and the first stay time corresponding to the first stay area, and then compares the first stay area with the predetermined second stay area based on the first stay time corresponding to the first stay area and the second stay time corresponding to the aforementioned second stay area, calibrates the second stay area, and obtains relatively accurate candidate stay area division information. Then, based on the calibrated candidate stay areas, the user is provided with a recommendation service based on the stay area.

[0052] Specifically, the positioning method includes: the electronic device determines the current first position information of the electronic device based on the second positioning method; from the N candidate stay areas that have been divided, determine the target stay area corresponding to the current first position information of the electronic device, wherein the N candidate stay areas are determined based on the P first stay areas divided by the first positioning method and the L second stay areas determined by the second positioning method, and N, P, and L are integers greater than 2.

[0053] If there are M candidate stay areas among the N candidate stay areas corresponding to the first position information, the current second position information of the electronic device is determined based on the first positioning method; from the M candidate stay areas, the candidate stay area corresponding to the second position information is determined as the target stay area; wherein M is a positive integer less than N, and M is greater than 1.

[0054] In some embodiments, the electronic device selects Q first stay times Tp that overlap with the second stay time Tl1 among the L second stay times from the P first stay times, divides the second stay area corresponding to the second stay time Tl1, and obtains M candidate stay areas, where Q is an integer greater than 1.

[0055] For example, if the first stay times corresponding to multiple first stay areas overlap with the second stay time corresponding to a second stay area, then the second stay area is divided into multiple candidate stay areas according to the multiple first stay areas. Assuming that it is determined based on historical positioning data that the electronic device has been in the same second stay area from 9 to 14 o'clock, and based on historical Wi-Fi data, it is determined that the electronic device is in a first stay area from 9 to 12 o'clock (for example, the electronic device is connected to the first Wi-Fi network from 9 to 12 o'clock), and in another first stay area from 12 to 14 o'clock (for example, the electronic device is connected to the second Wi-Fi network from 12 to 14 o'clock), then the second stay area can be divided into two candidate stay areas according to the overlap relationship between the first stay times corresponding to the two first stay areas and the second stay times corresponding to the second stay area.

[0056] For example, reference Figure 1 The division diagram is shown. Figure 1 (a) shows the second stay area M1 , and the second stay time corresponding to the user carrying the electronic device 100 in the second stay area M1 is from t1 to t6 . Figure 1 (b) shows the first stay area N1 and the first stay area N2. The first stay time corresponding to the user carrying the electronic device 100 in the first stay area N1 is t1 to t3, and the first stay time corresponding to the first stay area N2 is t4 to t6. Figure 1 (c) in FIG. 1 shows the candidate stay area D1 and the candidate stay area D2. It can be understood that the candidate stay area D1 and the candidate stay area D2 are obtained by dividing the second stay area M1.

[0057] In some embodiments, the electronic device selects J second stay times Tl from the L second stay times that overlap with the first stay time Tp1 among the P first stay times, merges the second stay areas corresponding to the J second stay times Tl, and obtains a candidate stay area, where J is an integer greater than 1.

[0058] Or for example, if the first stay time corresponding to a first stay area overlaps with the second stay time corresponding to multiple second stay areas, the multiple second stay areas are merged into one candidate stay area. Assuming that it is determined based on historical positioning data that the electronic device is in one second stay area from 9 to 10 o'clock and in another second stay area from 12 to 14 o'clock, and it is determined based on historical Wi-Fi data that the electronic device is always in the same first stay area from 9 to 14 o'clock (for example, the electronic device is always connected to the first Wi-Fi network from 9 to 14 o'clock), the two second stay areas can be merged into one candidate stay area.

[0059] For example, reference Figure 2 The merge diagram is shown. Figure 2 (a) shows the second stay area M2 and the second stay area M3. The second stay time of the user carrying the electronic device 100 in the second stay area M2 is t1 to t3, and the second stay time of the user carrying the electronic device 100 in the second stay area M2 is t4 to t6. Figure 2 (b) shows the first stay area N3, and the first stay time corresponding to the user carrying the electronic device 100 in the first stay area N3 is t1 to t6. Figure 2 (c) in FIG. 1 shows a candidate stay area D3. It can be understood that the candidate stay area D3 is obtained by combining the second stay area M2 and the second stay area M3.

[0060] Or for example, if the first stay time corresponding to the first stay area and the second stay time corresponding to the second stay area do not overlap, multiple candidate stay areas are determined based on the first stay area and the second stay area, and the candidate stay areas are the first stay area and the second stay area. Assuming that it is determined based on historical Wi-Fi data that the electronic device is in a first stay area from 7 to 8 o'clock (for example, the electronic device is always connected to the first Wi-Fi network from 7 to 8 o'clock), and it is determined based on historical positioning data that it is in a second stay area from 9 to 11 o'clock, it can be determined that the first stay area and the second stay area correspond to a candidate stay area respectively.

[0061] For example, reference Figure 3 Schematic diagram of the stop area shown. Figure 3 (a) shows the second stay area M4, and the second stay time corresponding to the user carrying the electronic device 100 in the second stay area M4 is from t1 to t3. Figure 3 (b) shows the first stay area N4, and the first stay time corresponding to the user carrying the electronic device 100 in the first stay area N4 is from t4 to t6. Figure 3(c) in FIG. 4 shows the candidate stay area D4 and the candidate stay area D5. It can be understood that the second stay area M4 corresponds to the candidate stay area D4, and the first stay area N4 corresponds to the candidate stay area D5. It can be understood that the candidate stay area obtained by correcting the second stay area based on the first stay area is more accurate than the second stay area, so that the LBS service can establish related services with each candidate stay area. When the user carries an electronic device and enters the candidate stay area again, that is, when the location information of the user's electronic device matches the candidate stay area, the service is recommended to the user.

[0062] It can be understood that when the user's electronic device moves, the first location information of the user's electronic device is obtained based on external positioning. If the user's electronic device is determined to match multiple candidate stay areas based on the first location information or the user's electronic device does not match the candidate stay area, the second location information of the user's electronic device is determined using wireless network data, and further judgment is made to match the candidate stay area as the target stay area. Then, based on the target stay area, recommendation services based on the stay area are provided to the user.

[0063] It can be understood that in the embodiment of the present application, the first stay area can be a stay area determined based on historical Wi-Fi data, and the second stay area can be a stay area determined based on historical positioning data obtained by external positioning methods such as GPS and BDS.

[0064] It can be understood that the historical Wi-Fi data in the embodiments of the present application may be historical Wi-Fi data from one electronic device, or may be historical Wi-Fi data from different electronic devices that have been connected to the same area.

[0065] For example, when an electronic device provides personalized recommendations for a user, the historical Wi-Fi data is the historical Wi-Fi data from the electronic device. The corresponding stay area is determined based on the Wi-Fi network data that the electronic device has connected to. When the user enters the determined stay area again, the electronic device recommends the content corresponding to the stay area to the user. For example, when it is determined that the user has arrived home, it recommends opening leisure and entertainment applications to the user.

[0066] For example, when providing location-based services, such as merchant recommendations, the historical Wi-Fi data may be historical Wi-Fi data of different electronic devices that have connected to the same area. When the user's electronic device enters the area again (connects to the Wi-Fi network in the area), the merchant recommends information such as product discounts to the electronic device that has entered the area.

[0067] It can be understood that the stay area in the embodiments of the present application is not limited to a positioning point, and can be an area where a user's electronic device stays or floats for a period of time, for example, an area where the electronic device stays or floats for more than 10 minutes in a circular area with a diameter of up to 200 meters.

[0068] It can be understood that the positioning method provided in the embodiment of the present application can be applied to mobile phones, tablet computers, laptops, etc. Mobile terminal device. The embodiments of the present application do not impose any restrictions on the specific type of electronic device.

[0069] In order to better understand the technical solutions of the embodiments of the present application, some technical solutions of the present application are described in detail below, taking the historical positioning data and historical Wi-Fi data of an electronic device as an example and combining with the accompanying drawings.

[0070] Figure 4 According to an embodiment of the present application, a flow chart of a positioning method is shown. It can be understood that Figure 4 Each step of the process shown in the figure is performed by the electronic device 100. Figure 4 The execution entities of each step will not be described repeatedly in the steps of the process shown. Figure 4 As shown, the process includes but is not limited to the following steps:

[0071] S401: Acquire historical positioning data and historical Wi-Fi network data of the electronic device as initial data.

[0072] In some embodiments, the electronic device 100 collects latitude and longitude positioning data at preset time intervals (for example, collecting latitude positioning data once every 5 minutes) and Wi-Fi network data (monitoring the Wi-Fi network data connected each time by the electronic device 100 and the scanned Wi-Fi network data).

[0073] In some embodiments, the historical positioning data includes the latitude and longitude location information and time information of each collection point, and the historical Wi-Fi network data includes the basic service set identifier (BSSID) of the Wi-Fi network connected and scanned by the electronic device 100 and the corresponding connection and scanning time information.

[0074] It can be understood that the BSSID can be used to identify the address of a wireless access point, that is, the MAC address (media access control address) of a wireless router, which can be used as a unique identifier of a Wi-Fi network.

[0075] It can be understood that the historical positioning data and Wi-Fi network data can be stored in the data of the corresponding collection points as initial data.

[0076] It can be understood that the initial data can be collected from historical data of the electronic device 100 over a period of time, such as one week, half a month, one month, etc.

[0077] It can be understood that the latitude and longitude location data can be obtained based on mobile network positioning, based on external positioning, or based on a combination of mobile network positioning and external positioning, and this application does not impose any restrictions on this.

[0078] S402: Determine the latitude and longitude stop point based on historical positioning data.

[0079] In some embodiments, the electronic device 100 determines a latitude and longitude stay point (a second stay area) and a stay time period (a second stay time) corresponding to the latitude and longitude stay point based on the historical positioning data.

[0080] In some embodiments, the latitude and longitude stop point can be determined by the following method:

[0081] (1) A latitude and longitude stop point is defined as an area within an area range threshold where the activity time is greater than a time threshold, for example, an area within a circular area with a diameter of at most 200 meters where the activity time is greater than 10 minutes.

[0082] (2) Create a queue data structure quene and initialize the queue data structure quene to a null value.

[0083] (3) Sort the historical positioning data in ascending order of time and traverse them one by one, and record the current traversal data (positioning data) as i. If there is no data in the current queue data structure quene, i is directly added to the queue. If there is data in the current queue data structure quene, the longitude and latitude distances between i and all the data in the current queue data structure quene are calculated respectively; if the longitude and latitude distances are all less than the regional range threshold (for example, 200 meters), i is added to the queue;

[0084] Otherwise, after all the data in the current queue data structure quene are dequeued, i is added to the queue. If the time difference between the first and last data in the dequeued data is greater than the time threshold, a longitude and latitude stop point is generated based on the dequeued data; otherwise, the dequeued data is discarded.

[0085] (4) End the traversal. If there is still data in the current queue data structure quene, then all the data in the current queue data structure quene will be removed from the queue. If the time difference between the first and last data in the removed data is greater than the time threshold,

[0086] A longitude and latitude stop point is generated based on the dequeued data; otherwise, the dequeued data is discarded.

[0087] In some embodiments, the electronic device determines the stay time period corresponding to each longitude and latitude stay point based on the time information corresponding to each positioning data (longitude and latitude position information) in each longitude and latitude stay point.

[0088] For example, reference Figure 5 Schematic diagram of the latitude and longitude stop points shown. Figure 5 As shown, the time information corresponding to the collection points T1 to T24 is T1 to T24 respectively. Among them, the data corresponding to each collection point may include historical positioning data and historical Wi-Fi network data. Collection points T3 to T8 generate longitude and latitude stop point S1, and the stop time period corresponding to longitude and latitude stop point S1 is the time period corresponding to collection points T3 to T8; collection points T12 to T19 generate longitude and latitude stop point S2, and the stop time period corresponding to longitude and latitude stop point S2 is the time period corresponding to collection points T12 to T19.

[0089] It can be understood that in the embodiments of the present application, the above-mentioned method for determining the longitude and latitude stop points is only used as an example of the method for determining the longitude and latitude stop points. In other embodiments, other methods can also be used to determine the longitude and latitude stop points, and the present application does not impose any restrictions on this.

[0090] S403: Construct a Wi-Fi undirected graph based on historical Wi-Fi network data.

[0091] In some embodiments, the electronic device 100 constructs a Wi-Fi undirected graph G(V, E) based on historical Wi-Fi network data, where V represents a set of data points in the Wi-Fi undirected graph, and E represents a set of edges in the data points in the Wi-Fi undirected graph.

[0092] It can be understood that the trigger condition for constructing a Wi-Fi undirected graph can be that the electronic device 100 is connected to a power source, the screen is off for more than a preset time (e.g., 30 seconds), and the time interval from the last construction is greater than or equal to a preset time interval (e.g., 24 hours). In this way, the electronic device 100 will not frequently construct a Wi-Fi undirected graph, effectively reducing the power consumption of the mobile phone.

[0093] In some embodiments, each time a Wi-Fi undirected graph is constructed, it is reconstructed based on historical Wi-Fi network data. It can be understood that reconstructing based on historical Wi-Fi network data avoids excessive data in the Wi-Fi undirected graph, resulting in a large amount of calculation.

[0094] First, the electronic device 100 obtains the BSSID of the connected Wi-Fi network and the BSSID of the scanned Wi-Fi network, and constructs a set V of data points in the Wi-Fi undirected graph based on the BSSID of the connected Wi-Fi network and the BSSID of the scanned Wi-Fi network.

[0095] Secondly, the electronic device 100 constructs a set E of edges in the Wi-Fi undirected graph based on the set V of data points in the Wi-Fi undirected graph; the electronic device 100 determines the edge connecting every two data points based on the data points in the set V of data points in the Wi-Fi undirected graph, and determines the length of each edge (i.e., the distance between any two data points). It can be understood that the set E of edges in the Wi-Fi undirected graph includes the edge connecting every two data points and the length corresponding to each edge.

[0096] The following is a detailed introduction to the method in which the electronic device 100 constructs a set V of data points in a Wi-Fi undirected graph.

[0097] First, the electronic device 100 obtains the BSSID of the connected Wi-Fi network. In some embodiments, the BSSID of the connected Wi-Fi network may be data corresponding to the connected Wi-Fi network in the last t days obtained from the initial data, for example, data corresponding to the connected Wi-Fi network in the last 7 days.

[0098] Then, the electronic device 100 obtains the BSSID of the scanned Wi-Fi network. In some embodiments, the BSSID of the scanned Wi-Fi network may be data corresponding to the scanned Wi-Fi network in the last t days obtained from the initial data, for example, data corresponding to the scanned Wi-Fi network in the last 7 days. Since the amount of data corresponding to the scanned Wi-Fi network may be large, data corresponding to the scanned Wi-Fi network with a scan intensity greater than or equal to a scan intensity threshold s, and / or a scan number greater than or equal to a scan number threshold n may also be obtained. The scan intensity threshold s may be, for example, a signal strength of -70 dBm (decibel milliwatts), and the scan number threshold n may be, for example, 5 times.

[0099] It is understandable that the propagation of Wi-Fi network signals will be affected by obstacles and distance, and the signal energy will gradually weaken. Generally, above -70dbm is an ideal signal strength, -70dbm to -80dbm is a medium signal strength, and less than -80dbm is a weak signal. In the embodiment of the present application, only -70dbm is used as an example of the scanning intensity threshold s. In other embodiments, the scanning intensity threshold s may also be other values, such as -80dbm.

[0100] This application does not limit the specific values ​​of the scanning intensity threshold s and the scanning number threshold n.

[0101] Finally, the electronic device 100 constructs a set V of data points in the Wi-Fi undirected graph based on the BSSID of the connected Wi-Fi network and the BSSID of the scanned Wi-Fi network. Exemplarily, Figure 6 According to an embodiment of the present application, a schematic diagram of a set V of data points in a Wi-Fi undirected graph is shown. Figure 6 As shown, set V includes data point 1, data point 2, data point 3, data point 4 and data point 5.

[0102] The following is a detailed description of the method in which the electronic device 100 constructs the edge set E in the Wi-Fi undirected graph.

[0103] First, the electronic device 100 determines the edge connecting every two data points based on the data points in the set V of data points in the Wi-Fi undirected graph, and forms an edge set E. For example, referring to Figure 7 A schematic diagram of a Wi-Fi undirected graph is shown. The Wi-Fi undirected graph includes data point 1, data point 2, data point 3, data point 4, and data point 5, and there is an edge between any two data points.

[0104] The electronic device 100 then determines the length of each edge (ie, the distance between any two data points).

[0105] In some embodiments, the electronic device 100 performs a pairing operation on any two data points v in the set V. i and point v j The distance between them is defined as the distance d ij , and the distance d ij Initialize to 1, and update the distance d based on the single Wi-Fi connection information and the scanned Wi-Fi co-occurrence probability information ij The value of .

[0106] It can be understood that the single Wi-Fi connection information may be data corresponding to the Wi-Fi network connected after the electronic device initiates a Wi-Fi connection.

[0107] It can be understood that the Wi-Fi co-occurrence probability may be a ratio of the number of times two Wi-Fi networks are scanned simultaneously to the number of times at least one of the two Wi-Fi networks is scanned.

[0108] In some embodiments, the distance d is updated based on the single Wi-Fi connection information. ij The values ​​include: If point v i and point v j are the two BSSIDs corresponding to a Wi-Fi network connection, then let d ij =0.

[0109] Specifically, the electronic device 100 obtains data corresponding to the Wi-Fi network connected in the last t days from the historical Wi-Fi network data, for example, data corresponding to the Wi-Fi network connected in the last 7 days. Obtain a list of BSSIDs each time the user connects to a Wi-Fi network (for example, during a period of time when the electronic device is connected to a Wi-Fi network named "My Wi-Fi", multiple Wi-Fi BSSIDs may be automatically switched). If two BSSIDs appear in the BSSID list at the same time when connecting to a Wi-Fi network, it means that the Wi-Fi networks corresponding to the two BSSIDs correspond to the same Wi-Fi network, and the distance between the two data points is set to 0.

[0110] In some embodiments, the distance d is updated based on the scanned Wi-Fi co-occurrence probability information. ij The values ​​include: constructing the co-occurrence probability matrix bssid_matrix, point v i and point v j The co-occurrence probability is m ij , let d ij =1-m ij .

[0111] Specifically, first, the electronic device 100 obtains data corresponding to the Wi-Fi networks scanned in the last t days in the historical Wi-Fi network data, for example, data corresponding to the Wi-Fi networks scanned in the last 7 days. Since the amount of data corresponding to the scanned Wi-Fi networks may be large, data corresponding to the scanned Wi-Fi networks with a scan intensity greater than or equal to a scan intensity threshold s and / or a scan count greater than or equal to a scan count threshold n may also be obtained. Then, the electronic device marks the element in the i-th row and j-th column of the co-occurrence probability matrix bssid_matrix as m ij , represents point v i and point v j The co-occurrence probability of

[0112] For example, assuming that the data corresponding to the scanned Wi-Fi networks are [1, 2, 3], [1, 2, 4], [1, 2, 5], [1, 2, 6], [1, 5, 6] respectively; then the co-occurrence probability of data point 1 and data point 2 is 4 / 5=0.8; the co-occurrence probability of data point 1 and data point 6 is 2 / 5=0.4.

[0113] It can be understood that the co-occurrence probability of the two Wi-Fi networks indicates the ratio of the number of times the first Wi-Fi network and the first Wi-Fi network are scanned simultaneously to the number of times the first Wi-Fi network or the second Wi-Fi network is scanned during the process of the electronic device 100 scanning the Wi-Fi network. It can be understood that the higher the co-occurrence probability of the two Wi-Fi networks, the greater the possibility that the two Wi-Fi networks are scanned by the electronic device at the same time, and the closer the distance between the two Wi-Fi networks.

[0114] S404: based on the relationship between the distance of each edge of the Wi-Fi undirected graph and the distance threshold, cut the Wi-Fi undirected graph into k Wi-Fi connected subgraphs.

[0115] In some embodiments, the electronic device 100 calculates the distance d of each edge of the Wi-Fi undirected graph based on the distance d of each edge of the Wi-Fi undirected graph. ij The relationship between the size of the distance threshold dist_threshold and the Wi-Fi undirected graph is divided into k Wi-Fi connected subgraphs (the first stay area) A1, A2, ...A k , and k Wi-Fi connected subgraphs satisfy And A1∪A2∪...∪A k = V. That is, each connected subgraph does not intersect with each other (does not contain the same data points), and the data points in each connected subgraph constitute the set V of data points in the Wi-Fi undirected graph.

[0116] Specifically, the electronic device 100 has a distance d ij The edges greater than or equal to the distance threshold dist_threshold are cut to obtain k Wi-Fi connected subgraphs. The distance threshold dist_threshold may be 0.9, for example. The present application does not specifically limit the value of the distance threshold dist_threshold.

[0117] It can be understood that the distance between any two data points in each Wi-Fi connectivity subgraph is less than the distance threshold.

[0118] In some embodiments, the electronic device 100 may determine the correspondence between each Wi-Fi network and the Wi-Fi connectivity subgraph based on each Wi-Fi connectivity subgraph obtained by cutting.

[0119] For example, the electronic device 100 may determine a "BSSID belonging to subgraph id mapping table" to indicate the correspondence between each Wi-Fi network and the Wi-Fi connectivity subgraph. Specifically, a different id may be assigned to each Wi-Fi connectivity subgraph, and all BSSIDs in each Wi-Fi connectivity subgraph are assigned the id of the corresponding Wi-Fi connectivity subgraph, to obtain a mapping relationship between the BSSID and the id of the Wi-Fi connectivity subgraph. For example, {BSSID1:1, BSSID2:1, BSSID3:2} indicates that BSSID1 and BSSID2 belong to the same Wi-Fi connectivity subgraph. Figure 1 , BSSID3 belongs to Wi-Fi connectivity sub Figure 2 .

[0120] Exemplarily, the “BSSID belonging to subgraph id mapping table” can be expressed as follows:

[0121]

[0122] Among them, BSSID “4c:ae:13:67:d0:50” belongs to Wi-Fi connectivity subgraph 0; BSSID “6c:16:32:17:35:d5”, “6c:16:32:17:3c:95”, “6c:16:32:17:92:d5”, “6c:16:32:17:34:d5”, “6c:16:32:17:36:15”, “6c:16:32:17:4f:d5”, “6c:16:32:17:a7:c5”, and “6c:16:32:17:35:15” all belong to Wi-Fi connectivity subgraph 0. Figure 1 ; BSSID "6c:16:32:17:09:15" belongs to Wi-Fi connectivity Figure 2 .

[0123] For example, Figure 8 According to an embodiment of the present application, a schematic diagram of a Wi-Fi connectivity subgraph is shown. It can be understood that Figure 8 The Wi-Fi connectivity subgraph shown is a Figure 7 It is obtained by cutting the Wi-Fi undirected graph shown.

[0124] like Figure 8As shown, the Wi-Fi connectivity subgraph Z1 includes data point 1 and data point 2; and the distance between data point 1 and data point 2 is 0, that is, the BSSID of data point 1 and the BSSID of data point 2 are two corresponding BSSIDs in one Wi-Fi network connection. The Wi-Fi connectivity subgraph Z2 includes data point 3. The Wi-Fi connectivity subgraph Z3 includes data point 4, data point 5, and data point 6; the distance between data point 4 and data point 5 is 0.1, that is, the co-occurrence probability of the BSSIDs of data point 4 and data point 5 is 0.9; the distance between data point 4 and data point 6 is 0.7, that is, the co-occurrence probability of the BSSIDs of data point 4 and data point 6 is 0.3; the distance between data point 5 and data point 6 is 0, that is, the BSSID of data point 5 and the BSSID of data point 6 are two corresponding BSSIDs in one Wi-Fi network connection.

[0125] S405: Divide the longitude and latitude stay points based on the Wi-Fi connectivity subgraph to obtain candidate stay points.

[0126] In some embodiments, the electronic device 100 further divides the latitude and longitude stay points based on the obtained k Wi-Fi connectivity subgraphs to obtain candidate stay points (candidate stay areas) to improve the accuracy of the stay points.

[0127] If the number k of Wi-Fi connectivity subgraphs is greater than 1, first, traverse the original data and obtain Wi-Fi network data with valid BSSID field values ​​(for example, Wi-Fi networks connected by the electronic device 100 within t days) or valid scanned Wi-Fi network data values ​​(for example, Wi-Fi networks scanned by the electronic device 100 within t days with a scanning intensity greater than a scanning intensity threshold and a scanning number greater than a scanning number threshold), and determine the ID of the Wi-Fi connectivity subgraph to which each Wi-Fi network data belongs.

[0128] In some embodiments, if the BSSID field value is valid, the id of the Wi-Fi connectivity subgraph corresponding to the current Wi-Fi network data is the id of the Wi-Fi connectivity subgraph corresponding to the BSSID.

[0129] In other embodiments, if the BSSID field value is invalid, the BSSIDs in the Wi-Fi network data are traversed and scanned, for example, Wi-Fi networks whose scanning intensity is greater than the scanning intensity threshold and whose scanning times are greater than the scanning times threshold scanned by the electronic device 100 within t days. It can be understood that each BSSID corresponds to the id of a Wi-Fi connectivity subgraph, and the id of the Wi-Fi connectivity subgraph with the highest frequency of occurrence is taken as the id of the Wi-Fi connectivity subgraph of the current Wi-Fi network data.

[0130] Secondly, calculate the dwell time period (first dwell time) of the Wi-Fi connectivity subgraph: obtain the mapping relationship between the id and time information of the Wi-Fi connectivity subgraph, merge the ids of the same Wi-Fi connectivity subgraphs in adjacent time intervals, and obtain the dwell time period list of the Wi-Fi connectivity subgraph. For example, [[ts1, ts5], [ts6, ts10]] means that the time interval from ts1 to ts5 corresponds to the id of the same Wi-Fi connectivity subgraph, and ts6 to ts10 correspond to the id of another Wi-Fi connectivity subgraph.

[0131] Exemplarily, the dwell time period of the Wi-Fi connectivity subgraph may be expressed as follows:

[0132]

[0133] Among them, the time intervals include: ['2023-02-28 23:46:30', '2023-03-01 08:59:27'], ['2023-03-01 09:38:42', '2023-03-01 18:33:10'], ['2023-03-01 19:20:01', '2023-03-01 20:15:54'], ['2023-03-01 21:12:41', '2023-03-02 08:49:04'], ['2023-03-02 09:40:30', '2023-03-02 11:59:49'], ['2023-03-02 12:00:30', '2023-03-02 18:09:57'], ['2023-03-02 18:21:27', '2023-03-02 18:54:30'], ['2023-03-02 20:37:52', '2023-03-02 22:10:28'], ['2023-03-02 22:54:15', '2023-03-03 07:25:09']. It can be understood that each time interval corresponds to an id of a Wi-Fi connectivity subgraph, and the ids of the Wi-Fi connectivity subgraphs corresponding to two adjacent time intervals are different.

[0134] Then, the longitude and latitude stay points are divided based on the stay time period of the Wi-Fi connectivity subgraph to obtain candidate stay points.

[0135] In some embodiments, if there is a longitude and latitude stay point whose stay time period intersects with the stay time periods of at least two Wi-Fi connectivity subgraphs, and the length of the intersecting time period is greater than the time period threshold, for example, 1 second, the longitude and latitude stay point is divided to obtain at least two candidate stay points. It is understood that the present application does not limit the specific value of the time period threshold.

[0136] In other embodiments, if there is a stay time period of a Wi-Fi connectivity subgraph that intersects with the stay time periods of multiple longitude and latitude stay points, and the length of the intersecting time period is greater than a time period threshold, such as 1 second, the multiple longitude and latitude stay points are merged to obtain a candidate stay point.

[0137] In other embodiments, if there is no intersection between the stay time period of the Wi-Fi connectivity subgraph and the stay time period of the longitude and latitude stay point, the candidate stay points are determined to be the Wi-Fi connectivity subgraphs and the longitude and latitude stay points respectively.

[0138] Specifically, assuming that the stay time period of the latitude and longitude stay point is gpsStayDuration = [ts_p, ts_q], the list of stay time periods of the Wi-Fi connected subgraph that intersects with it is wifiStayDurationList = [[ts_1, ts_2], [ts_3, ts_4] ... [ts_m, ts_n]]. Among them, there are N elements in the list of stay time periods of the Wi-Fi connected subgraph, that is, the stay time periods of N Wi-Fi connected subgraphs [ts_1, ts_2], [ts_3, ts_4] ... [ts_m, ts_n]. Let ts_1=ts_p, ts_n=ts_q, that is, let the start time of the stay time period of the first Wi-Fi connectivity subgraph that intersects with the stay time period of the longitude and latitude stay point be the same as the start time of the stay time period of the longitude and latitude stay point, and let the end time of the stay time period of the Nth Wi-Fi connectivity subgraph that intersects with the stay time period of the longitude and latitude stay point be the same as the end time of the stay time period of the longitude and latitude stay point; divide the longitude and latitude stay point into N candidate stay points, and the length of the stay time period of each candidate stay point is greater than or equal to the length of the stay time period of each Wi-Fi connectivity subgraph.

[0139] For example, Fig. 9 According to an embodiment of the present application, a schematic diagram is shown in which a stay time period of a longitude and latitude stay point intersects with a stay time period of a Wi-Fi connectivity subgraph.

[0140] like Fig. 9As shown, the stay time period [23-6-18 01:17:18, 23-6-17 19:37:59] of the Wi-Fi connectivity subgraph intersects with the stay time period of the longitude and latitude stay points [23-6-18 08:35:46, 23-6-17 22:28:22] and the stay time period of the longitude and latitude stay points [23-6-17 21:42:46, 23-6-17 19:37:59] respectively. The stay time periods of the longitude and latitude stay points [23-6-17 18:35:51, 23-6-17 11:56:22] correspond to the stay time periods of the Wi-Fi connected subgraph [23-6-17 18:33:28, 23-6-17 11:58:21] and the stay time periods of the Wi-Fi connected subgraph [23-6-17 11:57:04, 23-6-17 11:56:33], respectively.

[0141] It can be understood that the longitude and latitude stay point with a stay time period of [23-6-18 08:35:46, 23-6-17 22:28:22] and the longitude and latitude stay point with a stay time period of [23-6-17 21:42:46, 23-6-17 19:37:59] can be merged into a candidate stay point, and the stay time period of the candidate stay point is [23-6-18 08:35:46, 23-6-17 19:37:59]. The longitude and latitude stop point with a stop time period of [23-6-17 18:35:51, 23-6-17 11:56:22] can be divided into two candidate stop points, and the stop time periods of each candidate stop point are: [23-6-17 18:35:51, 23-6-17 11:57:42], [23-6-17 11:57:42, 23-6-17 11:56:22] respectively.

[0142] It can be understood that the present application does not limit the division method of the longitude and latitude stay points, and the stay time period of the longitude and latitude stay points can be divided based on any time point between the end time of the stay time period of the previous Wi-Fi connectivity subgraph and the initial time of the stay time period of the next Wi-Fi connectivity subgraph in the stay time period of each two adjacent Wi-Fi connectivity subgraphs that intersect with the stay time period of the longitude and latitude stay points, to obtain N candidate stay points.

[0143] It can be understood that in other embodiments, according to actual needs, the above Figure 4 The steps shown can be combined, deleted or replaced with other steps that are conducive to achieving the purpose of this application. For example, the above steps S401 and S402 can be combined into one step, and this application does not limit this.

[0144] In summary, the positioning method provided in the embodiment of the present application uses the historical Wi-Fi network data of the Wi-Fi network connected or scanned by the user's electronic device to determine the Wi-Fi connectivity subgraph and the stay time period corresponding to the Wi-Fi connectivity subgraph, and then compares the Wi-Fi connectivity subgraph with the longitude and latitude stay points based on the stay time period corresponding to the Wi-Fi connectivity subgraph and the stay time period corresponding to the longitude and latitude stay points, calibrates the longitude and latitude stay points, and obtains relatively accurate candidate stay points. This is to facilitate providing users with recommendation services based on the stay area based on the calibrated candidate stay points.

[0145] It can be understood that by correcting the longitude and latitude stay points based on the Wi-Fi connectivity subgraph, the candidate stay points obtained are more accurate than the longitude and latitude stay points, so that the LBS service can establish related services with each candidate stay point. When the electronic device enters the candidate stay point again, that is, when the location information of the electronic device matches the candidate stay point, the service is recommended to the user.

[0146] It can be understood that when the user's electronic device enters the candidate stay area again, the user's location information is first determined based on the external positioning method. If the candidate stay area cannot be matched based on the obtained user's location information (for example, it cannot be determined that the current location corresponds to one of the two candidate stay areas), the wireless network data is used for further judgment to match the candidate stay area.

[0147] The embodiment of the present application also provides a recommendation method, which includes: using the historical Wi-Fi data of the Wi-Fi network to which the user's electronic device has been connected to determine the user's first stay area, then comparing the first stay area with a predetermined second stay area, calibrating the second stay area, and obtaining relatively accurate candidate stay area division information. When the user's electronic device moves, the first location information of the user's electronic device is obtained based on external positioning, and the candidate stay area is matched as the target stay area. Then, based on the target stay area, a recommendation service based on the stay area is provided to the user.

[0148] It can be understood that the candidate stay area obtained by correcting the second stay area based on the first stay area is more accurate than the second stay area, so that the LBS service can establish relevant services with each candidate stay area. When the user enters the candidate stay area again with an electronic device, that is, when the location information of the user's electronic device matches the candidate stay area, the service is recommended to the user.

[0149] When the user's electronic device moves, the first location information of the user's electronic device is obtained based on external positioning. If it is determined based on the first location information that the user's electronic device matches multiple candidate stay areas or the user's electronic device does not match the candidate stay area, the wireless network data is used to determine the second location information of the user's electronic device, and further judgment is made to match the candidate stay area as the target stay area.

[0150] In some embodiments, the recommended content may include recommended applications, recommended travel methods, recommended merchants, recommended tourist attractions, etc. For example, when it is determined that the user has arrived home, it is recommended to open leisure and entertainment applications for the user. Or, for example, a merchant recommends information such as product discounts to electronic devices entering the area.

[0151] For example, reference Fig.10 FIG. 1 is a schematic diagram of a user interface of a mobile phone 100. Fig.10 As shown, when the mobile phone 100 determines that the user is in the stay area of ​​the home based on the current location information, the display is as follows Fig.10 The user interface 10a shown in FIG. 1 includes a "YOYO Recommendation" service card 11 and a "Weather Clock" service card as well as icons of multiple applications. The "YOYO Recommendation" service card 11 includes an icon 101 of a video application and an icon 102 of a music application recommended by the electronic device 100 to the user.

[0152] Understandably, Fig.10 The user interface 10a is the main interface of the electronic device 100. In other embodiments, the electronic device can also make recommendations to the user in other interfaces, such as the negative one screen interface, etc. This application does not limit this.

[0153] In order to better understand the technical solutions of the embodiments of the present application, the structure of the equipment involved in the present application is introduced below with reference to the accompanying drawings.

[0154] For example, Fig.11 According to an embodiment of the present application, a structural schematic diagram of an electronic device 100 is shown.

[0155] like Fig.11As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, an interface module 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0156] It is to be understood that the structure illustrated in the embodiment of the present application does 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 in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0157] 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 processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0158] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0159] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0160] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0161] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 140 charges the battery 142, it can also power the electronic device through the power management module 141.

[0162] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device. In some embodiments, the power management module 141 is used to monitor whether the electronic device 100 is connected to a power source.

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

[0164] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0165] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0166] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0167] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TDSCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0168] In some embodiments, the electronic device 100 can locate the electronic device 100 through the mobile communication module 150 and the wireless communication module 160, obtain the latitude and longitude location data and Wi-Fi network data, so that the electronic device 100 determines the stay point based on the latitude and longitude location data and the Wi-Fi network data.

[0169] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0170] The display screen 194 is used to display images, videos, etc. The 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 or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-Led, Micro-Led, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0171] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0172] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0173] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 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 a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 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 internal memory 121, and / or instructions stored in a memory provided in the processor.

[0174] The electronic device 100 can implement audio functions through the audio module 170, such as music playing, recording, etc.

[0175] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0176] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0177] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.

[0178] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0179] For example, Fig.12 According to an embodiment of the present application, a schematic block diagram of a software system architecture of an electronic device 100 is shown.

[0180] The software system architecture of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0181] Fig.12The layered architecture of the electronic device 100 shown divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.

[0182] like Fig.12 As shown, the application layer may include a series of application packages, which may include camera, gallery, calendar, call, map, navigation, WLAN, input method, music, short message and other applications.

[0183] like Fig.12 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0184] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0185] Content providers are used to store and retrieve data and make it accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0186] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0187] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0188] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0189] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0190] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.

[0191] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0192] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0193] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0194] The system library may include multiple functional modules, such as surface manager (SM), media libraries (ML), 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0195] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0196] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0197] Program code may be applied to input instructions to perform the functions described herein and to generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0198] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0199] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

[0200] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0201] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0202] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0203] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims

1. A positioning method, characterized in that: include: Acquire a current first position of the first electronic device; Determine a first target stay area corresponding to the first position from the divided N candidate stay areas, wherein the N candidate stay areas are determined based on P first stay areas divided by a first positioning method and L second stay areas determined by a second positioning method, wherein the first positioning method includes a Wi-Fi positioning method, and the second positioning method includes at least one of the following: satellite positioning, mobile network positioning, and N, P, and L are integers greater than 2; and The N candidate stay areas are divided in the following manner: Based on the historical Wi-Fi information of the first electronic device, the P first stay areas are divided, and P first stay times of the first electronic device in each of the first stay areas are determined, L second stay times of the first electronic device in the L second stay areas are obtained, and based on the P first stay times and the L second stay times, the second stay areas that overlap with the first stay areas in time are calibrated to obtain the N candidate stay areas.

2. The method according to claim 1, characterized in that Also includes: acquiring the current first position of the first electronic device based on the second positioning method, and The step of determining a first target stay area corresponding to the first position from the divided N candidate stay areas includes: Corresponding to the presence of M candidate stay areas among the N candidate stay areas corresponding to the first position, determining the current second position of the first electronic device based on the first positioning method, where M is a positive integer less than N, and M is greater than 1; A candidate staying area corresponding to the second position is determined from the M candidate staying areas as a second target staying area.

3. The method according to claim 1, characterized in that: The method of calibrating the second stay area that temporally overlaps with the first stay area based on the P first stay times and the L second stay times to obtain the N candidate stay areas includes: From the L second stay times, select J second stay times Tl that overlap with the first stay time Tp1 among the P first stay times, merge the second stay areas corresponding to the J second stay times Tl to obtain a candidate stay area, where J is an integer greater than 1; From the P first stay times, Q first stay times Tp that overlap with the second stay time Tl1 among the L second stay times are selected, and the second stay area corresponding to the second stay time Tl1 is divided to obtain M candidate stay areas, where Q is an integer greater than 1.

4. The method according to claim 1, characterized in that: The historical Wi-Fi information of the first electronic device includes: Wi-Fi network data to which the first electronic device is connected within a time threshold; and Wi-Fi network data scanned by the first electronic device that meets a scanning condition within a time threshold; The scanning condition includes at least one of the following: The scan intensity is greater than the scan intensity threshold, and the scan count is greater than the scan count threshold.

5. The method according to claim 4, characterized in that The dividing the P first stay areas based on the historical Wi-Fi information of the first electronic device and determining the P first stay times of the first electronic device in each of the first stay areas includes: Determine a first distance between any two Wi-Fi networks in the historical Wi-Fi information; Determine that any two Wi-Fi networks whose first distance is less than a distance threshold are in the same first stay area; The first stay time of each of the first stay areas is determined based on the time corresponding to the Wi-Fi network in each of the first stay areas.

6. The method according to claim 5, characterized in that The determining a first distance between any two Wi-Fi networks in the historical Wi-Fi information includes: Corresponding to the arbitrary two Wi-Fi networks being Wi-Fi networks connected to the first electronic device at a single time, determining the first distance to be 0; Corresponding to the arbitrary two Wi-Fi networks being Wi-Fi networks scanned by the first electronic device, a scan probability that the arbitrary two Wi-Fi networks are simultaneously scanned by the first electronic device is determined, and the first distance is determined based on the scan probability, where a greater the scan probability, a smaller the first distance.

7. A recommendation method, characterized in that: include: Acquire a current first position of the first electronic device; Determine a first target stay area corresponding to the first position from the divided N candidate stay areas, wherein the N candidate stay areas are determined based on P first stay areas divided by a first positioning method and L second stay areas determined by a second positioning method, wherein the first positioning method includes a Wi-Fi positioning method, and the second positioning method includes at least one of the following: satellite positioning, mobile network positioning, and N, P, and L are integers greater than 2; recommending to a user of the first electronic device recommended content corresponding to a first target stay area corresponding to the first location; and The N candidate stay areas are divided in the following manner: Based on the historical Wi-Fi information of the first electronic device, the P first stay areas are divided, and P first stay times of the first electronic device in each of the first stay areas are determined, L second stay times of the first electronic device in the L second stay areas are obtained, and based on the P first stay times and the L second stay times, the second stay areas that overlap with the first stay areas in time are calibrated to obtain the N candidate stay areas.

8. The method according to claim 7, characterized in that Also includes: acquiring the current first position of the first electronic device based on the second positioning method, and The step of determining a first target stay area corresponding to the first position from the divided N candidate stay areas includes: Corresponding to the presence of M candidate stay areas among the N candidate stay areas corresponding to the first position, determining the current second position of the first electronic device based on the first positioning method, where M is a positive integer less than N, and M is greater than 1; A candidate staying area corresponding to the second position is determined from the M candidate staying areas as a second target staying area.

9. The method according to claim 8, characterized in that Also includes: recommending recommended content corresponding to a second target stay area corresponding to the second location to a user of the first electronic device, and The recommended content includes at least one of the following: Recommended applications, recommended travel methods, recommended businesses, and recommended tourist attractions.

10. A readable medium, characterized in that: The readable medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the method according to any one of claims 1 to 9.

11. An electronic device, characterized in that: include: a memory for storing instructions to be executed by one or more processors of the electronic device, and The processor is one of the processors of the electronic device, and is used to execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • User residence analysis method based on signal data

    CN106792514A

  • Method for analyzing human flow in highway service area based on cellular network and Wi-Fi data

    CN109561391A

  • Event occurrence area determination method and device and storage medium

    CN115422480A

  • Data processing method and electronic equipment

    CN116070035A

  • High-precision spatio-temporal trajectory restoration method based on mobile phone signaling data

    CN116132923A