User employment and residence place identification method, electronic equipment and storage medium
By obtaining the terminal status information of the user terminal, constructing and clustering stay point clusters, and identifying the user's workplace and residence, the problems of low workplace and residence identification accuracy and high power consumption in the existing technology are solved, and a more efficient and accurate workplace and residence identification is achieved. position.
Patent Information
- Application Number
- CN202310198192.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-03
AI Technical Summary
In the existing technology, the user's job and residence identification method relies on the user's location information, resulting in low accuracy and high power consumption. Especially in indoor scenes, the positioning failure rate is high, and the job and residence information provided is single and inaccurate.
By obtaining the terminal status information of the user terminal, the sequence of stay point clusters is determined, and clustering is performed to identify the user's place of employment and residence. The base station number, WIFI information and location information are used to construct the stay point cluster, which reduces the dependence on location information and improves the location of the place of residence. accuracy.
It improves the accuracy of user location identification, reduces reliance on location information, reduces power consumption, and improves positioning success rate in indoor scenes.
Smart Images

Figure CN118590832A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and specifically provides a method for identifying a user's workplace and residence, an electronic device, and a storage medium. Background Art
[0002] At present, there are two main schemes for workplace and residence identification. The first is to collect the user's mobile phone signaling data and use its spatiotemporal information to obtain the user's workplace and residence. This method requires information such as base station location and coverage, which has a certain cost, and the accuracy of the obtained workplace and residence is low. The second is to obtain the user's location trajectory and obtain the user's workplace and residence by performing spatiotemporal analysis on the positioning information. This method requires frequent requests for the user's positioning information. Due to its high power consumption, it is not suitable for deployment on smart devices, and the positioning failure rate in indoor scenes is high. In addition, the workplace and residence information provided by the above two schemes is relatively simple, and the workplace and residence fences constructed based on them are not accurate enough.
[0003] Accordingly, the art needs a new user work and residence identification solution to solve the above problems. Summary of the invention
[0004] In order to overcome the above defects, the present invention is proposed to solve or at least partially solve the above technical problems. The present invention provides a method for identifying a user's workplace and residence, an electronic device and a storage medium.
[0005] In a first aspect, the present invention provides a method for identifying a user's workplace and residence, the method comprising: obtaining terminal status information of a user terminal; determining a first stay point cluster sequence based on the terminal status information; clustering based on a second stay point cluster sequence to obtain a stay cluster point cluster, the second stay point cluster sequence including the first stay point cluster sequence; identifying the user's workplace and residence based on the stay cluster point cluster.
[0006] In one embodiment, the acquiring the terminal status information of the user terminal includes: setting k sampling points at a preset time, where k is a positive integer; and collecting the terminal status information of the user terminal at each sampling point.
[0007] In one embodiment, the terminal status information includes at least the base station number information connected to the terminal, the connected WIFI information, the scanned WIFI list and the location information; the determining of the first stay point cluster sequence based on the terminal status information includes: constructing a first stay point cluster based on the first sampling point of the preset time; judging whether the nth sampling point belongs to the first stay point cluster, n is a positive integer, 1<n≤k; if so, updating the first stay point cluster based on the terminal status information of the nth sampling point; if not, constructing the mth stay point cluster based on the nth sampling point, judging whether the n+1th sampling point belongs to the mth stay point cluster, m is a positive integer, 1<m; until all sampling points are assigned to corresponding stay point clusters; and obtaining the first stay point cluster sequence based on the stay point cluster.
[0008] In one embodiment, the first sampling point based on the preset time constructs a first stay point cluster, including: adding the base station number information connected to the first sampling point to the base station number sequence of the first stay point cluster; adding the WIFI information connected to the first sampling point to the first WIFI sequence of the first stay point cluster; adding the WIFI list scanned by the first sampling point to the second WIFI sequence of the first stay point cluster; using the location information of the first sampling point as the location information of the first stay point cluster; and adding the sequence number of the first sampling point to the sampling point sequence of the first stay point cluster.
[0009] In one embodiment, the determining whether the nth sampling point belongs to the first stay point cluster includes:
[0010] S11. Determine whether the base station number sequence of the first stay point cluster contains the base station number information connected to the nth sampling point; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S12;
[0011] S12. Determine whether the first WIFI sequence of the first stay point cluster contains the WIFI information connected to the nth sampling point; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S13;
[0012] S13. Determine whether the second WIFI sequence of the first stay point cluster and the WIFI list scanned by the nth sampling point have at least one identical WIFI information; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S14;
[0013] S14. Determine a first distance based on the location information of the first stay point cluster and the location information of the terminal corresponding to the nth sampling point, and determine whether the first distance is less than a first threshold; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, determine that the nth sampling point does not belong to the first stay point cluster.
[0014] In one embodiment, the updating of the first stay point cluster based on the terminal status information of the nth sampling point includes: when the base station number sequence of the first stay point cluster does not include the base station number information of the nth sampling point, adding the base station number information of the nth sampling point to the base station number sequence of the first stay point cluster; when the first WIFI sequence of the first stay point cluster does not include the WIFI information connected to the nth sampling point, adding the WIFI information connected to the nth sampling point to the first WIFI sequence of the first stay point cluster; when the second WIFI sequence of the first stay point cluster does not include at least one WIFI information in the WIFI list scanned by the nth sampling point, adding at least one WIFI information in the WIFI list scanned by the nth sampling point to the second WIFI sequence of the first stay point cluster; updating the position information of the first stay point cluster based on the position information of the first stay point cluster and the position information of the nth sampling point; and adding the sequence number of the nth sampling point to the sampling point sequence of the first stay point cluster.
[0015] In one embodiment, clustering is performed based on the second stay point cluster sequence to obtain stay cluster point clusters, including: determining the distance between any two stay point clusters in the second stay point cluster sequence; obtaining a distance matrix based on the distance between the any two stay point clusters; clustering the stay point clusters in the second stay point cluster sequence based on the distance matrix to obtain multiple cluster clusters; and fusing the stay point clusters in each of the cluster clusters to obtain the stay cluster point cluster.
[0016] In one embodiment, determining the distance between any two stay point clusters in the second stay point cluster sequence includes:
[0017] S21. Determine whether there is the same base station number in the base station number sequence of any two stay point clusters; if so, determine that the distance between the any two stay point clusters is a first preset distance; if not, execute S22;
[0018] S22. Determine whether the first WIFI sequences of any two stay point clusters have the same WIFI information. If so, determine that the distance between the any two stay point clusters is a second preset distance; if not, determine the distance between the any two stay point clusters based on the location information of the any two stay point clusters.
[0019] In one embodiment, the stay cluster point cluster includes a base station numbering sequence, a first WIFI sequence and a second WIFI sequence, location information and a sampling point sequence of the stay cluster point cluster; the fusion of the stay point clusters in each of the clusters to obtain the stay cluster point cluster includes: taking the base station numbering sequence, the first WIFI sequence and the second WIFI sequence of all the stay point clusters in each of the clusters to obtain the base station numbering sequence, the first WIFI sequence and the second WIFI sequence of the stay cluster point cluster; performing weighted averaging on the location information of all the stay point clusters in each of the clusters to obtain the location information of the stay cluster point cluster; merging the sampling point sequences of all the stay point clusters in each of the clusters to obtain the sampling point sequence of the stay cluster point cluster.
[0020] In one embodiment, identifying the user's residence and workplace based on the stay clustering point cluster includes: obtaining a first weight and a second weight corresponding to each sampling point in the sampling point sequence of the stay clustering point cluster, wherein the first weight is the weight of the sampling point corresponding to the user's residence, and the second weight is the weight of the sampling point corresponding to the user's workplace; based on the first weight and the second weight, determining a first confidence level corresponding to the stay clustering point cluster as the user's residence and a second confidence level corresponding to the user's workplace, respectively; and determining the user's residence and the user's workplace based on the first confidence level and the second confidence level.
[0021] In one embodiment, the method further includes: obtaining user residence information from the stay clustering point cluster identified as the user's residence; and / or obtaining user workplace information from the stay clustering point cluster identified as the user's workplace.
[0022] In one embodiment, after determining the first stay point cluster sequence based on the terminal status information, and before clustering to obtain a stay point cluster based on the second stay point cluster sequence, the method also includes: determining whether there are stay point clusters containing the same area in the first stay point cluster sequence; if so, merging the stay point clusters containing the same area in the first stay point cluster sequence; sorting all the fused stay point clusters according to the length of the sampling point sequence; and deleting the stay point clusters whose lengths of the sampling point sequences are less than a dynamic length threshold from the first stay point cluster sequence.
[0023] In one embodiment, determining whether there is a stay point cluster including the same area in the first stay point cluster sequence includes:
[0024] S31. Determine whether there are the same base station numbers in the base station number sequences of any two stay point clusters in the first stay point cluster sequence; if so, determine whether there are stay point clusters containing the same area in the first stay point cluster sequence; if not, execute S32;
[0025] S32. Determine whether there is the same WIFI information in the first WIFI sequence of any two stay point clusters in the first stay point cluster sequence; if so, determine whether there is a stay point cluster containing the same area in the first stay point cluster sequence; if not, execute S33;
[0026] S33. Determine a second distance based on the position information of any two stay point clusters in the first stay point cluster sequence, and judge whether the second distance is less than a second threshold value. If so, determine that there are stay point clusters covering the same area in the first stay point cluster sequence; if not, determine that there are no stay point clusters covering the same area in the first stay point cluster sequence.
[0027] In a second aspect, an electronic device is provided, which includes at least one processor and at least one storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute any of the user's workplace and residence identification methods described above.
[0028] In a third aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored therein, wherein the program codes are suitable for being loaded and run by a processor to execute any of the aforementioned user work and residence identification methods.
[0029] Solution 1. A method for identifying a user's workplace and residence, characterized in that the method comprises:
[0030] Obtain terminal status information of the user terminal;
[0031] Determine a first stay point cluster sequence based on the terminal state information;
[0032] Perform clustering based on a second stay point cluster sequence to obtain a stay point cluster, wherein the second stay point cluster sequence includes the first stay point cluster sequence;
[0033] The user's workplace and residence are identified based on the stay cluster point clusters.
[0034] Solution 2. The method for identifying a user's workplace and residence according to Solution 1, wherein the step of obtaining the terminal status information of the user terminal comprises:
[0035] Set k sampling points at a preset time, where k is a positive integer;
[0036] The terminal status information of the user terminal is collected at each sampling point.
[0037] Solution 3. The user's workplace and residence identification method according to Solution 2 is characterized in that the terminal status information at least includes the base station number information connected to the terminal, the connected WIFI information, the scanned WIFI list and the location information; and the determining of the first stay point cluster sequence based on the terminal status information includes:
[0038] Constructing a first stay point cluster based on the first sampling point at the preset time;
[0039] Determine whether the nth sampling point belongs to the first stay point cluster, where n is a positive integer, 1<n≤k;
[0040] If so, updating the first stay point cluster based on the terminal status information of the nth sampling point;
[0041] If not, construct an mth stay point cluster based on the nth sampling point, and determine whether the n+1th sampling point belongs to the mth stay point cluster, where m is a positive integer and 1<m;
[0042] Until all sampling points are assigned to the corresponding stay point clusters;
[0043] The first stay point cluster sequence is obtained based on the stay point cluster.
[0044] Solution 4. The user's workplace and residence identification method according to Solution 3 is characterized in that the first sampling point based on the preset time is used to construct a first stay point cluster, comprising:
[0045] Adding the base station number information connected to the first sampling point to the base station number sequence of the first stay point cluster;
[0046] Adding the WIFI information of the first sampling point connection to the first WIFI sequence of the first stay point cluster;
[0047] Add the WIFI list scanned by the first sampling point to the second WIFI sequence of the first stay point cluster;
[0048] Using the first sampling point location information as the location information of the first stay point cluster;
[0049] The sequence number of the first sampling point is added to the sampling point sequence of the first stay point cluster.
[0050] Solution 5. The user's workplace and residence identification method according to Solution 3 is characterized in that the step of determining whether the nth sampling point belongs to the first stay point cluster comprises:
[0051] S11. Determine whether the base station number sequence of the first stay point cluster contains the base station number information connected to the nth sampling point; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S12;
[0052] S12. Determine whether the first WIFI sequence of the first stay point cluster contains the WIFI information connected to the nth sampling point; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S13;
[0053] S13. Determine whether the second WIFI sequence of the first stay point cluster and the WIFI list scanned by the nth sampling point have at least one identical WIFI information; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S14;
[0054] S14. Determine a first distance based on the location information of the first stay point cluster and the location information of the terminal corresponding to the nth sampling point, and determine whether the first distance is less than a first threshold; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, determine that the nth sampling point does not belong to the first stay point cluster.
[0055] Solution 6. The user's workplace and residence identification method according to Solution 3 is characterized in that the updating of the first stay point cluster based on the terminal status information of the nth sampling point comprises:
[0056] If the base station number sequence of the first stay point cluster does not include the base station number information of the nth sampling point, adding the base station number information of the nth sampling point to the base station number sequence of the first stay point cluster;
[0057] When the first WIFI sequence of the first stay point cluster does not include the WIFI information of the n-th sampling point connection, adding the WIFI information of the n-th sampling point connection to the first WIFI sequence of the first stay point cluster;
[0058] If the second WIFI sequence of the first stay point cluster does not include at least one WIFI information in the WIFI list scanned by the n-th sampling point, add at least one WIFI information in the WIFI list scanned by the n-th sampling point to the second WIFI sequence of the first stay point cluster;
[0059] updating the position information of the first stay point cluster based on the position information of the first stay point cluster and the position information of the nth sampling point;
[0060] The sequence number of the nth sampling point is added to the sampling point sequence of the first stay point cluster.
[0061] Solution 7. The user's workplace and residence identification method according to Solution 1 is characterized in that clustering based on the second stay point cluster sequence to obtain the stay point clustering clusters includes:
[0062] Determining the distance between any two stay point clusters in the second stay point cluster sequence;
[0063] Obtaining a distance matrix based on the distance between any two stay point clusters;
[0064] Clustering the stay point clusters in the second stay point cluster sequence based on the distance matrix to obtain a plurality of cluster clusters;
[0065] The stay point clusters in each of the clusters are fused to obtain the stay point clusters.
[0066] Solution 8. The user's workplace and residence identification method according to Solution 7 is characterized in that determining the distance between any two stay point clusters in the second stay point cluster sequence comprises:
[0067] S21. Determine whether there is the same base station number in the base station number sequence of any two stay point clusters; if so, determine that the distance between the any two stay point clusters is a first preset distance; if not, execute S22;
[0068] S22. Determine whether the first WIFI sequences of any two stay point clusters have the same WIFI information. If so, determine that the distance between the any two stay point clusters is a second preset distance; if not, determine the distance between the any two stay point clusters based on the location information of the any two stay point clusters.
[0069] Solution 9. The user's workplace and residence identification method according to Solution 7 is characterized in that the stay cluster point cluster includes a base station number sequence, a first WIFI sequence and a second WIFI sequence, location information and a sampling point sequence of the stay cluster point cluster; the fusion of the stay point clusters in each of the clusters to obtain the stay cluster point cluster includes:
[0070] Taking the union of the base station numbering sequence, the first WIFI sequence and the second WIFI sequence of all the stay point clusters in each of the clusters, respectively, to obtain the base station numbering sequence, the first WIFI sequence and the second WIFI sequence of the stay point cluster;
[0071] Performing weighted averaging on the location information of all the stay point clusters in each of the clusters to obtain the location information of the stay point clusters;
[0072] The sampling point sequences of all the stop point clusters in each of the clusters are merged to obtain the sampling point sequence of the stop point cluster.
[0073] Solution 10. The method for identifying a user's workplace and residence according to Solution 1, wherein the step of identifying the user's workplace and residence based on the stay cluster point clusters comprises:
[0074] Obtaining a first weight and a second weight corresponding to each sampling point in the sampling point sequence of the stay cluster point cluster, wherein the first weight is a weight of the sampling point corresponding to the user's residence, and the second weight is a weight of the sampling point corresponding to the user's workplace;
[0075] Based on the first weight and the second weight, respectively determining a first confidence level corresponding to the stay cluster as a user's residence and a second confidence level corresponding to the user's workplace;
[0076] The user's residence and the user's work place are determined based on the first confidence level and the second confidence level.
[0077] Scheme 11. The user's workplace and residence identification method according to Scheme 10 is characterized in that the method also includes: obtaining the user's residence information from the stay clustering point cluster identified as the user's residence; and / or obtaining the user's workplace information from the stay clustering point cluster identified as the user's workplace.
[0078] Solution 12. The user's workplace and residence identification method according to Solution 3 is characterized in that after determining the first stay point cluster sequence based on the terminal status information and before clustering the stay point clusters based on the second stay point cluster sequence, the method further includes:
[0079] Determining whether there is a stay point cluster including the same area in the first stay point cluster sequence;
[0080] If so, merging the stay point clusters that include the same area in the first stay point cluster sequence;
[0081] Sort all the fused stay point clusters according to the length of the sampling point sequence;
[0082] The stay point clusters whose length of the sampling point sequence is less than a dynamic length threshold are deleted from the first stay point cluster sequence.
[0083] Solution 13. The user's workplace and residence identification method according to Solution 12 is characterized in that the step of determining whether there is a stay point cluster including the same area in the first stay point cluster sequence comprises:
[0084] S31. Determine whether there are the same base station numbers in the base station number sequences of any two stay point clusters in the first stay point cluster sequence; if so, determine whether there are stay point clusters containing the same area in the first stay point cluster sequence; if not, execute S32;
[0085] S32. Determine whether there is the same WIFI information in the first WIFI sequence of any two stay point clusters in the first stay point cluster sequence; if so, determine whether there is a stay point cluster containing the same area in the first stay point cluster sequence; if not, execute S33;
[0086] S33. Determine a second distance based on the position information of any two stay point clusters in the first stay point cluster sequence, and judge whether the second distance is less than a second threshold value. If so, determine that there are stay point clusters covering the same area in the first stay point cluster sequence; if not, determine that there are no stay point clusters covering the same area in the first stay point cluster sequence.
[0087] Scheme 14. An electronic device comprising at least one processor and at least one storage device, wherein the storage device is suitable for storing multiple program codes, and wherein the program codes are suitable for being loaded and run by the processor to execute the user work and residence identification method described in any one of Schemes 1 to 13.
[0088] Solution 15. A computer-readable storage medium storing a plurality of program codes, characterized in that the program codes are suitable for being loaded and run by a processor to execute the user's workplace and residence identification method described in any one of Solutions 1 to 13.
[0089] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:
[0090] The user's workplace and residence identification method of the present invention obtains the terminal status information of the user terminal at a preset time; determines a first stay point cluster sequence based on the terminal status information; performs clustering based on a second stay point cluster sequence to obtain a stay cluster point cluster, wherein the second stay point cluster sequence includes the first stay point cluster sequence; and identifies the user's workplace and residence based on the stay cluster point cluster. In this way, the problem of the prior art that the identification of workplace and residence depends on the user's location information is solved, and the accuracy of the workplace and residence is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0091] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In addition, similar numbers in the figures are used to represent similar components, among which:
[0092] Figure 1 is a flowchart of the main steps of a method for identifying a user's workplace and residence according to an embodiment of the present invention;
[0093] Figure 2 is a schematic diagram of a process of obtaining a first stay point cluster sequence based on a stay point cluster in an embodiment;
[0094] Figure 3 is a schematic diagram of a process of clustering a stay point cluster based on a second stay point cluster sequence in an embodiment;
[0095] Figure 4 is a schematic diagram of a process for identifying a user's workplace and residence based on a stay clustering point cluster in an embodiment;
[0096] Figure 5 It is a schematic diagram of the structure of an electronic device in an embodiment. DETAILED DESCRIPTION
[0097] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0098] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.
[0099] At present, there are two main schemes for workplace and residence identification. The first is to collect the user's mobile phone signaling data and use its spatiotemporal information to obtain the user's workplace and residence. This method requires information such as base station location and coverage, which has a certain cost, and the accuracy of the obtained workplace and residence is low. The second is to obtain the user's location trajectory and obtain the user's workplace and residence by performing spatiotemporal analysis on the positioning information. This method requires frequent requests for the user's positioning information. Due to its high power consumption, it is not suitable for deployment on smart devices, and the positioning failure rate in indoor scenes is high. In addition, the workplace and residence information provided by the above two schemes is relatively simple, and the workplace and residence fences constructed based on them are not accurate enough.
[0100] To this end, the present application proposes a method, electronic device and storage medium for identifying a user's workplace and residence, which obtains the terminal status information of the user terminal; determines a first stay point cluster sequence based on the terminal status information; performs clustering based on a second stay point cluster sequence to obtain a stay cluster point cluster, wherein the second stay point cluster sequence includes the first stay point cluster sequence; and identifies the user's workplace and residence based on the stay cluster point cluster. In this way, the problem of the dependence of the identification of workplace and residence on the user's location information in the prior art is solved, and the accuracy of the workplace and residence is improved.
[0101] See attached Figure 1 , Figure 1 It is a flowchart of the main steps of a method for identifying a user's workplace and residence according to an embodiment of the present invention.
[0102] like Figure 1 As shown, the user's workplace and residence identification method in the embodiment of the present invention mainly includes the following steps S101 to S104.
[0103] Step S101: Acquire terminal status information of a user terminal.
[0104] Step S102: determining a first stay point cluster sequence based on the terminal status information.
[0105] Step S103: performing clustering based on the second stay point cluster sequence to obtain a stay point cluster, wherein the second stay point cluster sequence includes the first stay point cluster sequence.
[0106] Step S104: Identify the user's workplace and residence based on the stay clustering point clusters.
[0107] Based on the above steps S101 to S104, the terminal status information of the user terminal at the preset time is obtained; the stay point cluster sequence is determined based on the terminal status information; clustering is performed based on the stay point cluster sequence to obtain stay cluster point clusters; and the user's work and residence are identified based on the stay cluster point clusters. In this way, the problem of the prior art that the identification of the work and residence depends on the user's location information is solved, and the accuracy of the work and residence is improved.
[0108] The above steps S101 to S103 are further explained below.
[0109] First, step S101 will be described in detail.
[0110] A mobile phone can be used as an example of the user terminal, but is not limited thereto.
[0111] In a specific embodiment, the acquiring of the terminal status information of the user terminal includes: setting k sampling points at the preset time, where k is a positive integer; and collecting the terminal status information of the user terminal at each of the sampling points.
[0112] The preset time may be every day of the time period to be noted.
[0113] The first stay point cluster sequence is a stay point cluster sequence corresponding to each day.
[0114] Specifically, multiple sampling points may be set every day to periodically collect terminal status information and record the serial number of each sampling point, wherein the serial number of the sampling point indicates the sampling point number of the day.
[0115] The terminal status information includes at least the terminal signaling information, the WIFI information connected to the terminal, and the WIFI list scanned by the terminal. The terminal signaling information includes at least the user number, user age, user gender, and the base station number (base station ID) that matches the terminal. Based on the base station number, the base station location is matched, and the longitude and latitude of the base station to which the user is connected can be obtained, and the longitude and latitude information is used as the terminal location information.
[0116] If the base station ID of the current terminal signaling information does not have matching location information, the terminal positioning information at the current moment is requested as the matching location of the base station. Since only the location information of the base station ID without a match needs to be sampled, unnecessary location information sampling is reduced, and power consumption is reduced.
[0117] The above is a further description of step S101 , and the following is a further description of step S102 .
[0118] In one embodiment, specifically Figure 2 As shown, the step of determining the first stay point cluster sequence based on the terminal status information can be implemented through the following S1021 to S1026.
[0119] S1021: Construct a first stay point cluster based on the first sampling point at the preset time.
[0120] In a specific embodiment, the terminal status information includes at least the base station number information connected to the terminal, the connected WIFI information, the scanned WIFI list and the location information; the first sampling point based on the preset time is used to construct the first stay point cluster, including: adding the base station number information connected to the first sampling point to the base station number sequence of the first stay point cluster; adding the WIFI information connected to the first sampling point to the first WIFI sequence of the first stay point cluster; adding the WIFI list scanned by the first sampling point to the second WIFI sequence of the first stay point cluster; using the first sampling point location information as the location information of the first stay point cluster; adding the sequence number of the first sampling point to the sampling point sequence of the first stay point cluster.
[0121] The stay point cluster is used to store the terminal status information collected at each sampling point. The stay point cluster information includes the base station ID sequence, the connected WIFI sequence, the scanned WIFI sequence, the location information (the longitude and latitude information of the base station) and the sampling point sequence.
[0122] Specifically, the base station id of the signaling information of the first sampling point is added to the base station number sequence of the first stay point cluster, the connected WIFI information in the WIFI information of the first sampling point is added to the connected WIFI sequence of the first stay point cluster, the scanned WIFI list in the WIFI information of the first sampling point is added to the second WIFI sequence of the first stay point cluster, that is, the scanned WIFI sequence, the longitude and latitude in the positioning information matched with the base station id of the signaling information of the first sampling point are used as the location information of the first stay point cluster, and the first sampling point sequence number is added to the sampling point sequence.
[0123] S1022: Determine whether the nth sampling point belongs to the first stay point cluster, where n is a positive integer, 1<n≤k.
[0124] Starting from the second sampling point, determine whether it belongs to the first stop point cluster.
[0125] In a specific embodiment, the step of determining whether the nth sampling point belongs to the first stay point cluster comprises the following steps:
[0126] S11. Determine whether the base station number sequence of the first stay point cluster contains the base station number information connected to the nth sampling point; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S12;
[0127] S12. Determine whether the first WIFI sequence of the first stay point cluster contains the WIFI information connected to the nth sampling point; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S13;
[0128] S13. Determine whether the second WIFI sequence of the first stay point cluster and the WIFI list scanned by the nth sampling point have at least one identical WIFI information; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S14;
[0129] S14. Determine a first distance based on the location information of the first stay point cluster and the location information of the terminal corresponding to the nth sampling point, and determine whether the first distance is less than a first threshold; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, determine that the nth sampling point does not belong to the first stay point cluster.
[0130] For S13, in a preferred implementation, it may be determined whether the second WIFI sequence of the first stay point cluster and the WIFI list scanned by the nth sampling point have three identical WIFI information, and if so, it is determined that the nth sampling point belongs to the first stay point cluster.
[0131] In S14, taking n=2 as an example, the distance between the location information of the first stay point cluster and the location information of the terminal corresponding to the second sampling point can be calculated to determine whether the distance is less than the first threshold. If so, it is determined that the second sampling point belongs to the first stay point cluster. If not, it is determined that the second sampling point does not belong to the first stay point cluster.
[0132] In the above steps, the base station ID is preferentially used as the basis for judging whether the sampling point belongs to the first stay point cluster, followed by the WIFI information, and finally the location information. In this way, when the terminal device fails to sample the location information, the negative impact on the final result will be minimized, thereby reducing the dependence on location information in the process of identifying the work and residence.
[0133] S1023: If yes, update the first stay point cluster based on the terminal status information of the nth sampling point.
[0134] In a specific embodiment, the updating of the first stay point cluster based on the terminal status information of the nth sampling point includes: when the base station number sequence of the first stay point cluster does not include the base station number information of the nth sampling point, adding the base station number information of the nth sampling point to the base station number sequence of the first stay point cluster; when the first WIFI sequence of the first stay point cluster does not include the WIFI information connected to the nth sampling point, adding the WIFI information connected to the nth sampling point to the first WIFI sequence of the first stay point cluster; when the second WIFI sequence of the first stay point cluster does not include at least one WIFI information in the WIFI list scanned by the nth sampling point, adding at least one WIFI information in the WIFI list scanned by the nth sampling point to the second WIFI sequence of the first stay point cluster; updating the position information of the first stay point cluster based on the position information of the first stay point cluster and the position information of the nth sampling point; and adding the sequence number of the nth sampling point to the sampling point sequence of the first stay point cluster.
[0135] Specifically, taking n=2 as an example, if the base station ID of the signaling information of the second sampling point is not in the base station ID sequence of the first stay point cluster, the base station ID of the signaling information of the second sampling point is added to the base station number sequence of the first stay point cluster.
[0136] If the connected WIFI in the WIFI information of the sampling point is not in the connected WIFI sequence of the first stay point cluster, the connected WIFI in the WIFI information of the sampling point is added to the connected WIFI sequence of the first stay point cluster.
[0137] The WIFI in the WIFI list scanned in the WIFI information of the sampling point that is not in the scanned WIFI sequence of the first stay point cluster is added to the scanned WIFI sequence of the first stay point cluster.
[0138] The longitude and latitude in the positioning information matched by the base station ID of the signaling information of the sampling point are weighted averaged with the longitude and latitude of the first stay point cluster as the updated longitude and latitude of the first stay point cluster. In one embodiment, the weight of the sampling point and the weight of the first stay point cluster can be preset values. In another embodiment, the weight of the sampling point is 1, and the weight of the first stay point cluster is the length of the sampling point sequence.
[0139] Add the current sampling point sequence number to the sampling point sequence of the first stop point cluster.
[0140] S1024: If not, construct an mth stay point cluster based on the nth sampling point, and determine whether the (n+1)th sampling point belongs to the mth stay point cluster, where m is a positive integer and 1<m.
[0141] Exemplarily, for example, if the second sampling point does not belong to the first stay point cluster, a second stay point cluster is constructed based on the second sampling point, and then it is determined whether the third sampling point belongs to the second stay point cluster.
[0142] S1025: The above step S1024 is repeated until all sampling points are assigned to corresponding stay point clusters.
[0143] Repeat the above step S1024 until the first sampling point that does not belong to the second stay point cluster is found, and continue to build the third stay point cluster. In this way, all sampling points can be assigned to corresponding stay point clusters.
[0144] S1026: Obtain the first stay point cluster sequence based on the stay point cluster.
[0145] After obtaining multiple stay point clusters, determine whether the sampling point sequence length in each stay point cluster is greater than or equal to a preset length. If so, add the stay point cluster to the first stay point cluster sequence. If not, delete the stay point cluster to obtain the first stay point cluster sequence.
[0146] The above is a further description of step S102 , and the following is a further description of step S103 .
[0147] The stay point clustering cluster is a set of clustered stay point clusters, and is specifically obtained by clustering the stay point clusters in the second stay point cluster sequence.
[0148] The second stay point cluster sequence is a stay point cluster sequence of the time period to be concerned, such as a stay point cluster sequence corresponding to multiple days. Since the stay point cluster sequence of each day is the first stay point cluster sequence, the second stay point cluster sequence includes multiple first stay point cluster sequences.
[0149] In a specific embodiment, Figure 3 As shown, clustering is performed based on the second stay point cluster sequence to obtain stay point cluster clusters, which can be achieved through the following S1031 to S1034.
[0150] S1031: Determine the distance between any two stay point clusters in the second stay point cluster sequence.
[0151] In a specific embodiment, determining the distance between any two stay point clusters in the second stay point cluster sequence includes:
[0152] S21. Determine whether there is the same base station number in the base station number sequence of any two stay point clusters; if so, determine that the distance between the any two stay point clusters is a first preset distance; if not, execute S22;
[0153] S22. Determine whether the first WIFI sequences of any two stay point clusters have the same WIFI information. If so, determine that the distance between the any two stay point clusters is a second preset distance; if not, determine the distance between the any two stay point clusters based on the location information of the any two stay point clusters.
[0154] The first preset distance and the second preset distance may be values obtained in advance through experiments.
[0155] In S22, the distance between any two stay point clusters is determined based on the position information of the any two stay point clusters, and the distance between any two stay point clusters may be calculated based on the latitude and longitude information of the any two stay point clusters.
[0156] S1032: Obtain a distance matrix based on the distance between any two stay point clusters.
[0157] By obtaining the distance between any two stay point clusters, the distance matrix corresponding to the second stay point cluster sequence can be obtained.
[0158] S1033: Clustering the stay point clusters in the second stay point cluster sequence based on the distance matrix to obtain a plurality of cluster clusters.
[0159] Specifically, based on the distance matrix, the DBSCAN density clustering algorithm with the minimum preset distance and the minimum preset density is used to cluster the stay point clusters in the second stay point cluster sequence to obtain a plurality of cluster clusters.
[0160] DBSCAN clustering algorithm is a density-based clustering algorithm. This type of density clustering algorithm generally assumes that the category can be determined by the density of sample distribution. Samples of the same category are closely connected, that is, there must be samples of the same category not far away from any sample of the category. By classifying closely connected samples into one category, we get a cluster category. By classifying all groups of closely connected samples into different categories, we get the final results of all cluster categories.
[0161] Since clustering using the DBSCAN density clustering algorithm is a routine operation in the field of information processing, it will not be described here.
[0162] S1034: Merge the stay point clusters in each of the clusters to obtain the stay point clusters.
[0163] After clustering, multiple clusters are obtained, each of which includes multiple stay point clusters. Since each cluster may include stay point clusters in the same area, it is necessary to merge the stay point clusters in the same area.
[0164] In a specific embodiment, the stay cluster point cluster includes a base station numbering sequence, a first WIFI sequence and a second WIFI sequence, location information and a sampling point sequence of the stay cluster point cluster; the fusion of the stay point clusters in each of the clusters to obtain the stay cluster point cluster includes: taking the base station numbering sequence, the first WIFI sequence and the second WIFI sequence of all the stay point clusters in each of the clusters to obtain the base station numbering sequence, the first WIFI sequence and the second WIFI sequence of the stay cluster point cluster; performing weighted averaging on the location information of all the stay point clusters in each of the clusters to obtain the location information of the stay cluster point cluster; merging the sampling point sequences of all the stay point clusters in each of the clusters to obtain the sampling point sequence of the stay cluster point cluster.
[0165] Specifically, during the fusion process, the base station number sequences of all stay point clusters in each cluster are combined to obtain the base station number sequence of the stay point cluster.
[0166] The first WIFI sequence of all the stay point clusters in each cluster is taken as the union to obtain the first WIFI sequence of the stay point cluster.
[0167] The second WIFI sequences of all the stay point clusters in each cluster are combined to obtain the second WIFI sequence of the stay point cluster.
[0168] The location information of all the stay point clusters in each cluster is weighted averaged to obtain the location information of the stay point cluster, wherein the weight of each stay point cluster can be a preset value or a weight corresponding to the length of each sampling point sequence.
[0169] The above is a further description of step S103 , and the following is a further description of step S104 .
[0170] In a specific embodiment, Figure 4 As shown, identifying the user's workplace and residence based on the stay cluster point cluster can be achieved through the following steps S1041 to S1043.
[0171] S1041: Obtain a first weight and a second weight corresponding to each sampling point in the sampling point sequence of the stay clustering point cluster, wherein the first weight is the weight of the sampling point corresponding to the user's residence, and the second weight is the weight of the sampling point corresponding to the user's workplace.
[0172] Specifically, based on the local average work and rest time, the weight of the residence and the weight of the workplace are set for the sampling point number of each sampling point. Specifically, if the sampling time is during working hours, the weight of the residence corresponding to the sampling point number is set to wh1, and the weight of the workplace is set to ww1, wh1<ww1; if the sampling time is during rest time, the weight of the residence corresponding to the sampling point number is set to wh2, and the weight of the workplace is set to ww2, ww2<wh2, where wh1, ww1, wh2, and ww2 can be weights given according to actual scenarios.
[0173] S1042: Based on the first weight and the second weight, respectively determine a first confidence level corresponding to the stay cluster as the user's residence and a second confidence level corresponding to the user's workplace.
[0174] Specifically, the sampling point numbers corresponding to the sampling point sequence in each stay cluster point cluster are converted into the weight of the residence, and the sum is used as the first confidence corresponding to the residence. The sampling point numbers corresponding to the sampling point sequence in each stay cluster point cluster are converted into the weight of the work place, and the sum is used as the second confidence corresponding to the work place.
[0175] S1043: Determine the user's residence and the user's workplace based on the first confidence level and the second confidence level.
[0176] Specifically, if the first confidence is greater than the second confidence, the stay point cluster is identified as the user's residence; otherwise, the stay point cluster is identified as the user's workplace.
[0177] In a specific embodiment, the method further includes: obtaining user residence information from the stay clustering point cluster identified as the user's residence; and / or obtaining user workplace information from the stay clustering point cluster identified as the user's workplace.
[0178] Specifically, information on the user's residence or workplace may be further extracted from the stay point cluster identified as the residence or workplace.
[0179] For example, for the stay cluster point cluster identified as a residence, its base station ID sequence is used as the base station ID sequence of the user's residence, the WIFI sequence of the connection of the stay cluster point cluster is used as the WIFI sequence of the residence connection, and the location information of the stay cluster point cluster is used as the location information of the residence.
[0180] For the stay cluster point cluster identified as the workplace, the base station ID sequence of the stay cluster point cluster is used as the base station ID sequence of the workplace, the WIFI sequence of the connection of the stay cluster point cluster is used as the WIFI sequence of the workplace connection, and the location information of the stay cluster point cluster is used as the location information of the workplace. In this way, the user's workplace and residence can be obtained without relying on the location information, which improves the accuracy of the workplace and residence.
[0181] In a specific embodiment, after determining the first stay point cluster sequence based on the terminal status information, and before clustering to obtain a stay point cluster based on the second stay point cluster sequence, the method also includes: determining whether there are stay point clusters containing the same area in the first stay point cluster sequence; if so, merging the stay point clusters containing the same area in the first stay point cluster sequence; sorting all the fused stay point clusters according to the length of the sampling point sequence; and deleting the stay point clusters whose lengths of the sampling point sequences are less than a dynamic length threshold from the first stay point cluster sequence.
[0182] The dynamic length threshold refers to an adjustable length threshold. For example, the dynamic length threshold corresponding to the first stay point cluster sequence of each day may be different. The dynamic length threshold is set according to the actual application scenario.
[0183] Specifically, after obtaining the first stay point cluster sequence, it is necessary to fuse the stay point clusters in the same area, and sort all the fused stay point clusters according to the length of the sampling point sequence. For the stay point cluster whose sampling point sequence is less than the preset length, it means that the user's stay at the location is short and cannot be used as a basis for identifying the user's work and residence. The stay point cluster can be deleted from the first stay point cluster sequence. In this way, the complexity of the data is reduced, which is conducive to improving the efficiency of identifying the work and residence. Among them, the specific means for fusing the stay point clusters in the same area can be referred to the detailed steps of S1034, which will not be repeated here.
[0184] In a specific embodiment, the determining whether there is a stay point cluster including the same area in the first stay point cluster sequence includes:
[0185] S31. Determine whether there are the same base station numbers in the base station number sequences of any two stay point clusters in the first stay point cluster sequence; if so, determine whether there are stay point clusters covering the same area in the first stay point cluster sequence; if not, execute S32.
[0186] S32. Determine whether there is the same WIFI information in the first WIFI sequences of any two stay point clusters in the first stay point cluster sequence; if so, determine whether there is a stay point cluster containing the same area in the first stay point cluster sequence; if not, execute S33.
[0187] S33. Determine a second distance based on the position information of any two stay point clusters in the first stay point cluster sequence, and judge whether the second distance is less than a second threshold value. If so, determine that there are stay point clusters covering the same area in the first stay point cluster sequence; if not, determine that there are no stay point clusters covering the same area in the first stay point cluster sequence.
[0188] Specifically, the second distance may be obtained based on the location information (longitude and latitude) of any two stay point clusters. The second threshold may be a value obtained in advance through experiments.
[0189] Through the above steps S31 to S33, it can be determined whether there is a stay point cluster including the same area in the first stay point cluster sequence, and then the stay point clusters in the same area are merged.
[0190] It should be noted that the terminal signaling information, the WIFI information connected to the terminal, the WIFI list scanned by the terminal, etc. mentioned in the present invention are all obtained after full authorization by the user or all parties. In other words, the terminal in the present invention is an authorized terminal. In some embodiments, the terminal or the backend server can detect whether the authorization information is received. If the authorization information is received, it indicates that the current terminal is an authorized terminal, otherwise the current terminal is an unauthorized terminal.
[0191] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.
[0192] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0193] Furthermore, the present invention also provides an electronic device. In an embodiment of the electronic device according to the present invention, specifically as follows Figure 5 As shown, the electronic device includes at least one processor 51 and at least one storage device 52, the storage device can be configured to store a program for executing the user's workplace and residence identification method of the above method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to the program for executing the user's workplace and residence identification method of the above method embodiment. For ease of explanation, only the part related to the embodiment of the present invention is shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention.
[0194] In the embodiment of the present invention, the electronic device may be a control device device formed by various devices. In some possible implementations, the electronic device may include multiple storage devices and multiple processors. The program for executing the user's workplace and residence identification method of the above method embodiment can be divided into multiple subprograms, and each subprogram can be loaded and run by the processor to execute different steps of the user's workplace and residence identification method of the above method embodiment. Specifically, each subprogram can be stored in different storage devices, and each processor can be configured to execute the program in one or more storage devices to jointly implement the user's workplace and residence identification method of the above method embodiment, that is, each processor executes different steps of the user's workplace and residence identification method of the above method embodiment, to jointly implement the user's workplace and residence identification method of the above method embodiment.
[0195] The above-mentioned multiple processors may be processors deployed on the same device. For example, the above-mentioned electronic device may be a high-performance device composed of multiple processors, and the above-mentioned multiple processors may be processors configured on the high-performance device. In addition, the above-mentioned multiple processors may also be processors deployed on different devices. For example, the above-mentioned electronic device may be a server cluster, and the above-mentioned multiple processors may be processors on different servers in the server cluster.
[0196] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the user's workplace identification method of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the above-mentioned user's workplace identification method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.
[0197] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A method for identifying a user's workplace and residence, characterized in that: The method comprises: Obtain terminal status information of the user terminal; Determine a first stay point cluster sequence based on the terminal state information; Perform clustering based on a second stay point cluster sequence to obtain a stay point cluster, wherein the second stay point cluster sequence includes the first stay point cluster sequence; The user's workplace and residence are identified based on the stay cluster point clusters.
2. The method for identifying a user's workplace and residence according to claim 1, characterized in that: The obtaining of the terminal status information of the user terminal includes: Set k sampling points at a preset time, where k is a positive integer; The terminal status information of the user terminal is collected at each sampling point.
3. The method for identifying a user's workplace and residence according to claim 2, characterized in that: The terminal status information includes at least the base station number information to which the terminal is connected, the connected WIFI information, the scanned WIFI list and the location information; The determining a first stay point cluster sequence based on the terminal state information includes: Constructing a first stay point cluster based on the first sampling point at the preset time; Determine whether the nth sampling point belongs to the first stay point cluster, where n is a positive integer, 1<n≤k; If so, updating the first stay point cluster based on the terminal status information of the nth sampling point; If not, construct an mth stay point cluster based on the nth sampling point, and determine whether the n+1th sampling point belongs to the mth stay point cluster, where m is a positive integer and 1<m; Until all sampling points are assigned to the corresponding stay point clusters; The first stay point cluster sequence is obtained based on the stay point cluster.
4. The method for identifying a user's workplace and residence according to claim 3, characterized in that: The step of constructing a first stay point cluster based on the first sampling point at the preset time includes: Adding the base station number information connected to the first sampling point to the base station number sequence of the first stay point cluster; Adding the WIFI information of the first sampling point connection to the first WIFI sequence of the first stay point cluster; Add the WIFI list scanned by the first sampling point to the second WIFI sequence of the first stay point cluster; Using the first sampling point location information as the location information of the first stay point cluster; The sequence number of the first sampling point is added to the sampling point sequence of the first stay point cluster.
5. The method for identifying a user's workplace and residence according to claim 3, characterized in that: The determining whether the nth sampling point belongs to the first stay point cluster includes: S11. Determine whether the base station number sequence of the first stay point cluster contains the base station number information connected to the nth sampling point; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S12; S12. Determine whether the first WIFI sequence of the first stay point cluster contains the WIFI information connected to the nth sampling point; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S13; S13. Determine whether the second WIFI sequence of the first stay point cluster and the WIFI list scanned by the nth sampling point have at least one identical WIFI information; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, execute S14; S14. Determine a first distance based on the location information of the first stay point cluster and the location information of the terminal corresponding to the nth sampling point, and determine whether the first distance is less than a first threshold; if so, determine that the nth sampling point belongs to the first stay point cluster; if not, determine that the nth sampling point does not belong to the first stay point cluster.
6. The method for identifying a user's workplace and residence according to claim 3, characterized in that: The updating of the first stay point cluster based on the terminal status information of the nth sampling point includes: If the base station number sequence of the first stay point cluster does not include the base station number information of the nth sampling point, adding the base station number information of the nth sampling point to the base station number sequence of the first stay point cluster; When the first WIFI sequence of the first stay point cluster does not include the WIFI information of the n-th sampling point connection, adding the WIFI information of the n-th sampling point connection to the first WIFI sequence of the first stay point cluster; If the second WIFI sequence of the first stay point cluster does not include at least one WIFI information in the WIFI list scanned by the n-th sampling point, add at least one WIFI information in the WIFI list scanned by the n-th sampling point to the second WIFI sequence of the first stay point cluster; updating the position information of the first stay point cluster based on the position information of the first stay point cluster and the position information of the nth sampling point; The sequence number of the nth sampling point is added to the sampling point sequence of the first stay point cluster.
7. The method for identifying a user's workplace and residence according to claim 1, characterized in that: The step of clustering based on the second stay point cluster sequence to obtain a stay point cluster includes: Determining the distance between any two stay point clusters in the second stay point cluster sequence; Obtaining a distance matrix based on the distance between any two stay point clusters; Clustering the stay point clusters in the second stay point cluster sequence based on the distance matrix to obtain a plurality of cluster clusters; The stay point clusters in each of the clusters are fused to obtain the stay point clusters.
8. The method for identifying a user's workplace and residence according to claim 7, characterized in that: The determining the distance between any two stay point clusters in the second stay point cluster sequence comprises: S21. Determine whether there is the same base station number in the base station number sequence of any two stay point clusters; if so, determine that the distance between the any two stay point clusters is a first preset distance; if not, execute S22; S22. Determine whether the first WIFI sequences of any two stay point clusters have the same WIFI information. If so, determine that the distance between the any two stay point clusters is a second preset distance; if not, determine the distance between the any two stay point clusters based on the location information of the any two stay point clusters.
9. The method for identifying a user's workplace and residence according to claim 7, characterized in that: The stay clustering point cluster includes a base station number sequence, a first WIFI sequence and a second WIFI sequence, location information and a sampling point sequence of the stay clustering point cluster; The step of fusing the stay point clusters in each of the clusters to obtain the stay point clusters comprises: Taking the union of the base station numbering sequence, the first WIFI sequence and the second WIFI sequence of all the stay point clusters in each of the clusters, respectively, to obtain the base station numbering sequence, the first WIFI sequence and the second WIFI sequence of the stay point cluster; Performing weighted averaging on the location information of all the stay point clusters in each of the clusters to obtain the location information of the stay point clusters; The sampling point sequences of all the stop point clusters in each of the clusters are merged to obtain the sampling point sequence of the stop point cluster.
10. The method for identifying a user's workplace and residence according to claim 1, characterized in that: The identifying the user's workplace and residence based on the stay cluster point clusters includes: Obtaining a first weight and a second weight corresponding to each sampling point in the sampling point sequence of the stay cluster point cluster, wherein the first weight is a weight of the sampling point corresponding to the user's residence, and the second weight is a weight of the sampling point corresponding to the user's workplace; Based on the first weight and the second weight, respectively determining a first confidence level corresponding to the stay cluster as a user's residence and a second confidence level corresponding to the user's workplace; The user's residence and the user's work place are determined based on the first confidence level and the second confidence level.
