Positioning method and device, equipment and storage medium

By calculating the outlier threshold value and adaptively adjusting the limiting filter threshold value, the problem of poor outlier removal effect in WiFi positioning is solved, the positioning accuracy is improved, and the positioning accuracy is adapted to various positioning scenarios.

CN118828348APending Publication Date: 2024-10-22CHINA MOBILE M2M +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311571597.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

There is an outlier problem in existing WiFi positioning technology, resulting in low positioning accuracy. Existing filtering algorithms cannot adapt to different positioning scenarios, and fixed parameters cannot effectively eliminate outliers, affecting positioning accuracy.

Method used

By calculating the outlier threshold, adaptively adjust the limiting filter threshold, dynamically update the threshold based on historical positioning data, adapt to different positioning scenarios, eliminate outliers, and improve positioning accuracy.

Benefits of technology

It achieves effective elimination of outliers in different positioning scenarios, improves positioning accuracy, and avoids the problem of deterioration of filtering effects caused by fixed parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828348A_ABST
    Figure CN118828348A_ABST
Patent Text Reader

Abstract

The invention discloses a positioning method and device, equipment and a storage medium, and the method comprises the steps: calculating an outlier threshold value through employing a cached historical standard positioning coordinate before a current moment when a positioner collects a new reference positioning coordinate; judging whether the reference positioning coordinates collected at the current moment are outliers based on the outlier threshold value obtained through calculation, if the reference positioning coordinates collected at the current moment are outliers, eliminating the reference positioning coordinates, re-estimating a target positioning coordinate as a standard positioning coordinate at the current moment, and inserting the standard positioning coordinate into the positioning data list to complete updating of the positioning data list; and finally, fitting the standard positioning coordinates of all element nodes in the updated positioning data list to obtain a positioning position. As the outlier threshold value can be changed along with the historical positioning data, and a fixed parameter is not adopted as the outlier threshold value, the amplitude limiting filtering threshold value can be adjusted in the positioning process, various positioning scenes can be adapted, outliers are effectively eliminated, and the positioning precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of positioning technology, and in particular to a positioning method, device, equipment and storage medium. Background Art

[0002] Location-based services (LBS) are a new business model in the transition of the network communication era. Through location services, accurate and personalized business services are deployed for service providers, which can greatly improve customer experience. At present, WiFi positioning technology usually has wild values, which are also called outliers. They refer to a small number of data points in the measurement data set that seriously deviate from the trend presented by most data. If these wild values ​​are not removed in advance, it will cause great errors in data processing and may cause filter divergence.

[0003] There are two main types of filtering algorithms for the problem of outlier points in the positioning process in the prior art, including Kalman filtering algorithm and ordinary limiting filtering algorithm. In the Kalman filtering algorithm, it is necessary to obtain the observation noise coefficient and the process noise coefficient before the program runs and pass them to the program as input parameters. These two parameters cannot be changed during the program running; similarly, in the ordinary limiting filtering algorithm, it is also necessary to obtain the observation threshold parameter before the program runs and pass it to the program as an input parameter. This parameter cannot be changed during the program running. However, when the positioning scene is inconsistent with the preset positioning scene, the fixed parameters cannot adapt to the changed scene, resulting in poor filtering effect, poor outlier elimination effect, and low positioning accuracy. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a positioning method, device, equipment and storage medium to realize adaptive adjustment of the limiting filter threshold value during the positioning process, which can adapt to various positioning scenarios, effectively eliminate outliers, and improve positioning accuracy.

[0005] To achieve the above object, an embodiment of the present invention provides a positioning method, including:

[0006] Obtaining the standard positioning coordinates of all element nodes in the positioning data list, and calculating the wild value threshold value according to the standard positioning coordinates of all element nodes; wherein the positioning data list is used to record historical positioning data;

[0007] Get the reference positioning coordinates at the current moment;

[0008] If the reference positioning coordinate is determined to be an outlier by using the outlier threshold value, a target positioning coordinate is calculated;

[0009] Inserting the target positioning coordinates into the positioning data list as the standard positioning coordinates at the current moment;

[0010] The standard positioning coordinates of all element nodes in the updated positioning data list are fitted to obtain the positioning position.

[0011] As an improvement of the above solution, the outlier threshold value is calculated according to the standard positioning coordinates of all element nodes, including:

[0012] Calculate the two-normal value of the standard positioning coordinates of every two adjacent element nodes;

[0013] The outlier threshold is calculated using the two-normal value of the standard positioning coordinate points of all two adjacent element nodes and the data length of the positioning data list.

[0014] As an improvement of the above solution, before obtaining the standard positioning coordinates of all element nodes in the cached positioning data list, the method further includes:

[0015] Get the positioning frequency of the locator;

[0016] The data length of the positioning data list is set according to the positioning frequency.

[0017] As an improvement of the above solution, the method further includes:

[0018] When a change in the positioning frequency of the locator is detected, the data length of the positioning data list is reset according to the changed positioning frequency.

[0019] As an improvement of the above solution, the method further includes:

[0020] If the outlier threshold is used to determine that the reference positioning coordinates are non-outliers, the reference positioning coordinates are used as the target positioning coordinates.

[0021] As an improvement of the above solution, after obtaining the reference positioning coordinates at the current moment, the method further includes:

[0022] Obtaining standard positioning coordinates of some element nodes from the positioning data list;

[0023] Generate a reference positioning coordinate according to the standard positioning coordinate of the partial element nodes and the data length of the partial element nodes in the positioning data list;

[0024] Using the two-normal value of the reference positioning coordinate and the benchmark positioning coordinate as the positioning coordinate evaluation value;

[0025] When the positioning coordinate evaluation value is greater than the wild value threshold value, the reference positioning coordinate is determined to be an wild value; when the positioning coordinate evaluation value is less than or equal to the wild value threshold value, the reference positioning coordinate is determined to be a non-wild value.

[0026] As an improvement of the above solution, the calculation of a target positioning coordinate includes:

[0027] When the positioning coordinate evaluation value is greater than a set threshold, the reference positioning coordinate is used as the target positioning coordinate;

[0028] When the positioning coordinate evaluation value is less than or equal to a set threshold, the target positioning coordinates are calculated using the reference positioning coordinates and the benchmark positioning coordinates.

[0029] To achieve the above object, an embodiment of the present invention further provides a positioning device, including:

[0030] The wild value threshold value calculation module is used to obtain the standard positioning coordinates of all element nodes in the positioning data list, and calculate the wild value threshold value according to the standard positioning coordinates of all element nodes; wherein the positioning data list is used to record historical positioning data;

[0031] A reference positioning coordinate acquisition module is used to obtain the reference positioning coordinates at the current moment;

[0032] A target positioning coordinate calculation module, used for calculating a target positioning coordinate if the reference positioning coordinate is determined to be an outlier by using the outlier threshold value;

[0033] A positioning data list updating module, used for inserting the target positioning coordinates into the positioning data list as the standard positioning coordinates at the current moment;

[0034] The positioning position output module is used to fit the standard positioning coordinates of all element nodes in the updated positioning data list to obtain the positioning position.

[0035] To achieve the above objectives, an embodiment of the present invention further provides a positioning device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the positioning method as described in any of the above embodiments when executing the computer program.

[0036] To achieve the above objectives, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the positioning method as described in any of the above embodiments.

[0037] Compared with the prior art, the positioning method, device, equipment and storage medium disclosed in the present invention need to calculate an outlier threshold value using the historical standard positioning coordinates cached before the current moment each time the locator collects a new reference positioning coordinate, and then judge whether the reference positioning coordinate collected at the current moment is an outlier based on the calculated outlier threshold value. If it is an outlier, it is necessary to eliminate this reference positioning coordinate, re-estimate a target positioning coordinate as the standard positioning coordinate at the current moment, and insert it into the positioning data list to complete the update of the positioning data list, and finally fit the standard positioning coordinates of all element nodes in the updated positioning data list to obtain the positioning position. Since the outlier threshold value will change with the historical positioning data, instead of using a fixed parameter as the outlier threshold value, the adaptive adjustment of the limiting filter threshold value in the positioning process is realized, which can adapt to various positioning scenarios, effectively eliminate outliers, and improve positioning accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 is a flow chart of a positioning method provided by an embodiment of the present invention;

[0039] Figure 2 is a schematic diagram of a positioning data list provided by an embodiment of the present invention;

[0040] Figure 3 is another flow chart of a positioning method provided by an embodiment of the present invention;

[0041] Figure 4 is a structural block diagram of a positioning device provided by an embodiment of the present invention;

[0042] Figure 5 It is a structural block diagram of a positioning device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] See also Figure 1 , Figure 1 is a flow chart of a positioning method provided by an embodiment of the present invention, the positioning method comprising:

[0045] S1, obtain the standard positioning coordinates of all element nodes in the positioning data list, and calculate the wild value threshold value according to the standard positioning coordinates of all element nodes;

[0046] S2, obtain the reference positioning coordinates at the current moment;

[0047] S3, if the reference positioning coordinate is determined to be an outlier by using the outlier threshold value, calculating a target positioning coordinate;

[0048] S4, inserting the target positioning coordinates into the positioning data list as the standard positioning coordinates at the current moment;

[0049] S5. Fit the standard positioning coordinates of all element nodes in the updated positioning data list to obtain the positioning position.

[0050] It is worth noting that, before executing step S1, the method further includes:

[0051] S101, obtaining the positioning frequency of the locator;

[0052] S102: Setting the data length of the positioning data list according to the positioning frequency.

[0053] Specifically, in step S101, the positioning frequency is the number of positioning times of the locator in one second. The positioning frequency of the locator is divided into the factory initial frequency and the current preset frequency. The factory initial frequency can be obtained through the description document, and the current preset frequency can be obtained through the interface function of the positioning device. Set the current frequency of the locator to num loc The positioning data list is used to record the historical positioning data of the locator. In order to save the historical positioning data for a period of time before the current moment, it is necessary to construct a dynamic list, that is, the positioning data list loc_data_list cached at the current moment. The list is stored in a chain-like manner, and the structure is as follows: Figure 2 As shown. The topmost node is the head node, the bottommost node is the tail node, and the middle node is the list element node; the structure of each list element node is the same, lp_pre is a pointer to the previous node in the list, lp_next is a pointer to the next node in the list, loc_cur_src is the standard positioning coordinates of the current positioning, which includes longitude and latitude, and time_cur is the time of the current positioning.

[0054] Specifically, in step S102, the data length list_len of loc_data_list is set according to the positioning frequency of the locator. After the data length is known, the algorithm can know the size of the list. The setting of the data length can avoid the problem of data bloat and complex calculation caused by too much data cached in the positioning data list; it can also avoid the problem of too little data cached in the positioning data list resulting in less reference and inaccurate positioning. The data length is set using the interval segment method, satisfying the following formula:

[0055]

[0056] Furthermore, in the embodiment of the present invention, a reset length error_len of adaptive limiting filtering resetting filtering data is also provided, which is also set according to the positioning frequency of the positioning device and is set using the interval segment method. The reset length error_len satisfies the following formula:

[0057]

[0058] It is worth noting that the reset length error_len represents the number of continuous abnormal positioning data. During the real-time positioning process, when the number of continuous abnormal positioning data reaches error_len, the system will clear the list and recalculate list_len.

[0059] Furthermore, for different application scenarios, the positioning frequency of the locator may change. For example, the positioning frequency of the user when walking and running is different. Since the position changes faster when running, the positioning frequency can be set to be larger. Anyway, the positioning frequency when walking is set to be smaller. When the positioning frequency of the locator is detected to have changed, the data length of the positioning data list is reset according to the changed positioning frequency. At this time, the data length list_len, the reset length error_len, and the positioning data list loc_data_list will change with the positioning frequency, where the data length changes with formula (1) and the reset length changes with formula (2). If the data length becomes smaller, the value n of the data length reduction is calculated, and n elements are deleted from the positioning data list starting from the head node; if the data length becomes larger, the value m of the data length increase is calculated, and m elements are added starting from the tail node in the positioning data list.

[0060] Specifically, in step S1, after obtaining the standard positioning coordinates of all element nodes in the positioning data list, the wild value threshold value is calculated based on the standard positioning coordinates of all element nodes, including: calculating the binormal value of the standard positioning coordinates of every two adjacent element nodes; using the binormal value of the standard positioning coordinate points of all two adjacent element nodes and the data length of the positioning data list to calculate the wild value threshold value.

[0061] Exemplarily, the two-normal value dist of the standard positioning coordinates of every two adjacent element nodes in the positioning data list loc_data_list is calculated to satisfy the following formula:

[0062]

[0063] Among them, lon1 and lat1 respectively represent the longitude value and latitude value in the standard positioning coordinates of the first element node; lon2 and lat2 respectively represent the longitude value and latitude value in the standard positioning coordinates of the second element node.

[0064] After calculating the two-normal form values ​​of the standard positioning coordinate points of all (e.g., k) two adjacent element nodes, the outlier threshold value threshold is calculated using the two-normal form values ​​of the standard positioning coordinate points of all two adjacent element nodes and the data length of the positioning data list, satisfying the following formula:

[0065]

[0066] Among them, distk represents the binormal value of the standard positioning coordinate points of the kth two adjacent element nodes.

[0067] In the embodiment of the present invention, since the outlier threshold value will change with the historical positioning data, a fixed parameter is not used as the outlier threshold value. The limiting filter threshold value can be adjusted during the positioning process to adapt to various positioning scenarios, effectively eliminate outliers, and improve positioning accuracy.

[0068] Specifically, in step S2, the reference positioning coordinate loc_cur at the current moment is obtained by calling the locator interface. This reference positioning coordinate is a coordinate that has not yet been written into the positioning data list.

[0069] Specifically, after executing step S2, the method also includes: obtaining standard positioning coordinates of some element nodes from the positioning data list; generating a reference positioning coordinate according to the standard positioning coordinates of some element nodes and the data length of some element nodes in the positioning data list; using the two-normal value of the reference positioning coordinate and the reference positioning coordinate as a positioning coordinate judgment value; when the positioning coordinate judgment value is greater than the wild value threshold value, determining that the reference positioning coordinate is a wild value; when the positioning coordinate judgment value is less than or equal to the wild value threshold value, determining that the reference positioning coordinate is a non-wild value.

[0070] Exemplarily, the latest standard positioning coordinates of 1 / w element nodes are obtained from the positioning data list loc_data_list, where w is the value of some element nodes. Assuming there are 9 element nodes, w=3, the standard positioning coordinates of the last updated 3 element nodes are taken; assuming there are 10 element nodes, w=3, the standard positioning coordinates of the last updated 3 element nodes are also taken, and the standard positioning coordinates of several element nodes are obtained in combination with the rounding algorithm. It is worth noting that in order to avoid delays in timing when subsequently calculating the reference positioning coordinates, the standard positioning coordinates of all element nodes are not selected here, and some element nodes can take other values ​​such as 1 / 2, 1 / 3, 1 / 4, which are not specifically limited here.

[0071] Specifically, a reference positioning coordinate loc_base is generated according to the standard positioning coordinates of the partial element nodes and the data length of the partial element nodes in the positioning data list, satisfying the following formula:

[0072] loc_base=(loc_cur_src1+loc_cur_src2+...+loc_cur_srcd) / list_len / w (5);

[0073] Among them, d is the number of element nodes.

[0074] Specifically, after calculating the reference positioning coordinate loc_base, the two-normal value dist_base_cur of the reference positioning coordinate loc_cur and the reference positioning coordinate loc_base is calculated, and dist_base_cur is used as the positioning coordinate judgment value. The specific process of solving the two-normal value dist_base_cur can refer to formula (3). When the positioning coordinate judgment value is greater than the wild value threshold value, the reference positioning coordinate is judged to be a wild value; when the positioning coordinate judgment value is less than or equal to the wild value threshold value, the reference positioning coordinate is judged to be a non-wild value, and the judgment process satisfies the following formula:

[0075]

[0076] Specifically, in step S3, if the wild value threshold is used to determine that the reference positioning coordinate is a wild value, a target positioning coordinate is calculated. The calculation of a target positioning coordinate includes: when the positioning coordinate evaluation value is greater than a set threshold, the reference positioning coordinate is used as the target positioning coordinate; when the positioning coordinate evaluation value is less than or equal to the set threshold, the target positioning coordinate is calculated using the reference positioning coordinate and the reference positioning coordinate.

[0077] Exemplarily, the set threshold is a multiple of the wild value threshold, such as the set threshold is twice the wild value threshold (threshold×2). When the positioning coordinate evaluation value is less than or equal to the set threshold, there are two calculation methods. The calculation process of the specific target positioning coordinate loc_cur_pass satisfies the following formula:

[0078]

[0079] Furthermore, the method further includes: if the outlier threshold is used to determine that the reference positioning coordinate is a non-outlier, using the reference positioning coordinate loc_cur as the target positioning coordinate loc_cur_pass.

[0080] Specifically, in step S4, after obtaining the target positioning coordinate loc_cur_pass, the target positioning coordinate loc_cur_pass is used as the standard positioning coordinate at the current moment, and the target positioning coordinate is inserted into the positioning data list to complete the updating of the positioning data list.

[0081] Specifically, in step S5, the standard positioning coordinates of all element nodes in the updated positioning data list are fitted to obtain an optimal value, which is the positioning position, satisfying the following formula:

[0082] loc_last=(loc_cur_src1×0.5+loc_cur_src2×0.5 / (list_len-1)+loc_cur_src3×0.5 / (list_len-1)+...+loc_cur_srcd×0.5 / (list_len-1)) / (list_len-1) (8);

[0083] Among them, d is the number of element nodes.

[0084] Further, the detailed process of outputting the positioning position can be referred to Figure 3 , Figure 3 This is another flow chart of a positioning method provided by an embodiment of the present invention.

[0085] Compared with the prior art, the positioning method disclosed in the present invention needs to calculate an outlier threshold value using the historical standard positioning coordinates cached before the current moment each time the locator collects a new reference positioning coordinate, and then judge whether the reference positioning coordinate collected at the current moment is an outlier based on the calculated outlier threshold value. If it is an outlier, it is necessary to eliminate this reference positioning coordinate, re-estimate a target positioning coordinate as the standard positioning coordinate at the current moment, and insert it into the positioning data list to complete the update of the positioning data list, and finally fit the standard positioning coordinates of all element nodes in the updated positioning data list to obtain the positioning position. Since the outlier threshold value will change with the historical positioning data, instead of using a fixed parameter as the outlier threshold value, the limiting filter threshold value can be adjusted during the positioning process to adapt to various positioning scenarios, effectively eliminate outliers, and improve positioning accuracy.

[0086] In addition, there are existing Kalman filtering algorithms and ordinary limiting filtering algorithms for the problem of positioning outlier points in the positioning process. These two types of filtering algorithms are mainly aimed at high-precision positioning such as outdoor RTK (Real-time kinematic) positioning and indoor UWB (Ultra Wide Band) positioning, while there is no effective algorithm for WiFi positioning with positioning accuracy at the hundred-meter level. The positioning method provided in the embodiment of the present invention can fill the gap in the effective outlier elimination algorithm for WiFi positioning with positioning accuracy at the hundred-meter level, and can effectively solve the shortcomings of the two traditional outlier filtering elimination algorithms.

[0087] See also Figure 4 , Figure 4 is a structural block diagram of a positioning device 100 provided in an embodiment of the present invention, wherein the positioning device 100 comprises:

[0088] The wild value threshold value calculation module 11 is used to obtain the standard positioning coordinates of all element nodes in the positioning data list, and calculate the wild value threshold value according to the standard positioning coordinates of all element nodes; wherein the positioning data list is used to record historical positioning data;

[0089] A reference positioning coordinate acquisition module 12 is used to acquire the reference positioning coordinates at the current moment;

[0090] A target positioning coordinate calculation module 13, configured to calculate a target positioning coordinate if the reference positioning coordinate is determined to be an outlier by using the outlier threshold value;

[0091] A positioning data list updating module 14 is used to insert the target positioning coordinates into the positioning data list as the standard positioning coordinates at the current moment;

[0092] The positioning position output module 15 is used to fit the standard positioning coordinates of all element nodes in the updated positioning data list to obtain the positioning position.

[0093] Specifically, the outlier threshold calculation module 11 is used to: calculate the two-normal value of the standard positioning coordinates of every two adjacent element nodes; calculate the outlier threshold using the two-normal value of the standard positioning coordinate points of all two adjacent element nodes and the data length of the positioning data list.

[0094] Specifically, the positioning device 100 further includes:

[0095] A positioning frequency acquisition module is used to obtain the positioning frequency of the locator;

[0096] The data length setting module is used to set the data length of the positioning data list according to the positioning frequency.

[0097] Specifically, the data length setting module is further used to: when a change in the positioning frequency of the locator is detected, reset the data length of the positioning data list according to the changed positioning frequency.

[0098] Specifically, the target positioning coordinate calculation module 13 is further used to: if the reference positioning coordinate is determined to be a non-outlier value by using the outlier threshold value, use the reference positioning coordinate as the target positioning coordinate.

[0099] Specifically, the positioning device 100 further includes a judgment module, which is used to:

[0100] Obtaining standard positioning coordinates of some element nodes from the positioning data list;

[0101] Generate a reference positioning coordinate according to the standard positioning coordinate of the partial element nodes and the data length of the partial element nodes in the positioning data list;

[0102] Using the two-normal value of the reference positioning coordinate and the benchmark positioning coordinate as the positioning coordinate evaluation value;

[0103] When the positioning coordinate evaluation value is greater than the wild value threshold value, the reference positioning coordinate is determined to be an wild value; when the positioning coordinate evaluation value is less than or equal to the wild value threshold value, the reference positioning coordinate is determined to be a non-wild value.

[0104] Specifically, the target positioning coordinate calculation module 13 is used to: when the positioning coordinate evaluation value is greater than a set threshold, use the reference positioning coordinate as the target positioning coordinate; when the positioning coordinate evaluation value is less than or equal to the set threshold, use the reference positioning coordinate and the reference positioning coordinate to calculate the target positioning coordinate.

[0105] It is worth noting that the working process of each module in the positioning device 100 described in the embodiment of the present invention can refer to the working process of the positioning method described in the above embodiment, and will not be repeated here.

[0106] Compared with the prior art, the positioning device 100 disclosed in the present invention needs to calculate an outlier threshold value using the historical standard positioning coordinates cached before the current moment each time the locator collects a new reference positioning coordinate, and then judge whether the reference positioning coordinate collected at the current moment is an outlier based on the calculated outlier threshold value. If it is an outlier, it is necessary to eliminate this reference positioning coordinate, re-estimate a target positioning coordinate as the standard positioning coordinate at the current moment, and insert it into the positioning data list to complete the update of the positioning data list, and finally fit the standard positioning coordinates of all element nodes in the updated positioning data list to obtain the positioning position. Since the outlier threshold value will change with the historical positioning data, instead of using a fixed parameter as the outlier threshold value, the limiting filter threshold value can be adjusted during the positioning process to adapt to various positioning scenarios, effectively eliminate outliers, and improve positioning accuracy.

[0107] See also Figure 5 , Figure 5 2 is a structural block diagram of a positioning device 200 provided in an embodiment of the present invention, and the positioning device 200 includes a processor 21, a memory 22, and a computer program stored in the memory 22 and executable on the processor 21. When the processor 21 executes the computer program, the steps in the above-mentioned positioning method embodiments are implemented, such as steps S1 to S5.

[0108] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 22 and executed by the processor 21 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the positioning device 200.

[0109] The positioning device 200 may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that the schematic diagram is merely an example of the positioning device 200 and does not constitute a limitation on the positioning device 200. The positioning device 200 may include more or fewer components than shown in the figure, or may combine certain components, or different components. For example, the positioning device 200 may also include input and output devices, network access devices, buses, etc.

[0110] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the positioning device 200, and uses various interfaces and lines to connect various parts of the entire positioning device 200.

[0111] The memory 22 can be used to store the computer program and / or module. The processor 21 realizes various functions of the positioning device 200 by running or executing the computer program and / or module stored in the memory 22 and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can 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 can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0112] Wherein, if the module / unit integrated into the positioning device 200 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor 21, the steps of the above-mentioned method embodiments can be implemented. Wherein, 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 medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0113] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A positioning method, characterized in that: include: Obtaining the standard positioning coordinates of all element nodes in the positioning data list, and calculating the wild value threshold value according to the standard positioning coordinates of all element nodes; wherein the positioning data list is used to record historical positioning data; Get the reference positioning coordinates at the current moment; If the reference positioning coordinate is determined to be an outlier by using the outlier threshold value, a target positioning coordinate is calculated; Inserting the target positioning coordinates into the positioning data list as the standard positioning coordinates at the current moment; The standard positioning coordinates of all element nodes in the updated positioning data list are fitted to obtain the positioning position.

2. The positioning method according to claim 1, characterized in that: The calculating of the wild value threshold value according to the standard positioning coordinates of all element nodes includes: Calculate the two-normal value of the standard positioning coordinates of every two adjacent element nodes; The outlier threshold is calculated using the two-normal value of the standard positioning coordinate points of all two adjacent element nodes and the data length of the positioning data list.

3. The positioning method according to claim 1, characterized in that: Before obtaining the standard positioning coordinates of all element nodes in the cached positioning data list, the method further includes: Get the positioning frequency of the locator; The data length of the positioning data list is set according to the positioning frequency.

4. The positioning method according to claim 1, characterized in that: The method further comprises: When a change in the positioning frequency of the locator is detected, the data length of the positioning data list is reset according to the changed positioning frequency.

5. The positioning method according to claim 1, characterized in that: The method further comprises: If the outlier threshold is used to determine that the reference positioning coordinates are non-outliers, the reference positioning coordinates are used as the target positioning coordinates.

6. The positioning method according to claim 1, characterized in that: After obtaining the reference positioning coordinates at the current moment, the method further includes: Obtaining standard positioning coordinates of some element nodes from the positioning data list; Generate a reference positioning coordinate according to the standard positioning coordinate of the partial element nodes and the data length of the partial element nodes in the positioning data list; Using the two-normal value of the reference positioning coordinate and the benchmark positioning coordinate as the positioning coordinate evaluation value; When the positioning coordinate evaluation value is greater than the wild value threshold value, the reference positioning coordinate is determined to be an wild value; when the positioning coordinate evaluation value is less than or equal to the wild value threshold value, the reference positioning coordinate is determined to be a non-wild value.

7. The positioning method according to claim 5, characterized in that: The calculating of a target positioning coordinate comprises: When the positioning coordinate evaluation value is greater than a set threshold, the reference positioning coordinate is used as the target positioning coordinate; When the positioning coordinate evaluation value is less than or equal to a set threshold, the target positioning coordinates are calculated using the reference positioning coordinates and the benchmark positioning coordinates.

8. A positioning device, characterized in that: include: The wild value threshold value calculation module is used to obtain the standard positioning coordinates of all element nodes in the positioning data list, and calculate the wild value threshold value according to the standard positioning coordinates of all element nodes; wherein the positioning data list is used to record historical positioning data; A reference positioning coordinate acquisition module is used to obtain the reference positioning coordinates at the current moment; A target positioning coordinate calculation module, used for calculating a target positioning coordinate if the reference positioning coordinate is determined to be an outlier by using the outlier threshold value; A positioning data list updating module, used for inserting the target positioning coordinates into the positioning data list as the standard positioning coordinates at the current moment; The positioning position output module is used to fit the standard positioning coordinates of all element nodes in the updated positioning data list to obtain the positioning position.

9. A positioning device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the positioning method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the positioning method according to any one of claims 1 to 7.