Smart phone GNSS navigation positioning method and system based on PDR step length deviation anomaly detection
Through the state estimation and PDR step size difference detection combined with particle filter and krill swarm algorithm, the problem of low positioning accuracy caused by GNSS signal interference in urban environments is solved, and higher navigation accuracy and stability are achieved.
Patent Information
- Application Number
- CN202410931067.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-01
AI Technical Summary
Smartphones are disturbed in urban environments, resulting in low positioning accuracy, making it difficult for the existing technology to achieve high-precision and stable navigation in complex environments.
The particle filter is combined with the krill group algorithm for state estimation, fuses GNSS and PDR information, and detects the normal detection of PDR step size deviation, sets the threshold to calculate the probability of false alarms and detection probability, eliminates abnormal states, and improves navigation accuracy and stability.
Effectively detect GNSS abnormalities, reduce particle degradation problems, improve step length estimation accuracy and navigation accuracy, and enhance navigation stability.
Smart Images

Figure CN118884492A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of global navigation satellite systems, and in particular to a smart phone GNSS navigation and positioning method and system based on PDR step size deviation anomaly detection. Background Art
[0002] Traditional smartphone GNSS receivers work well in open areas, but face many challenges in complex environments such as cities. The presence of a large number of buildings in urban environments often causes GNSS signals to be weakened, multipath effects, and non-line-of-sight (NLOS) interference, which greatly reduces the positioning accuracy of smartphones in urban environments. In order to overcome these limitations, the addition of auxiliary sensors, data integration, and the development of intelligent algorithms are usually used to filter and judge the accuracy of measurement data to improve the accuracy of navigation positioning.
[0003] Despite this, it is still difficult for existing technologies to achieve high-precision and stable urban navigation effects. Instead, a particle filter is combined with a krill swarm algorithm for state estimation to fuse GNSS and PDR information, and the krill swarm algorithm is used to optimize particle distribution to prevent particle degradation problems. The KHA method is used to move particles in the particle resampling step to obtain the best estimated state. The deviation between the PDR step and the GNSS distance is calculated, and a binary hypothesis test is used to distinguish between normal and abnormal situations. By setting a threshold, the false alarm probability and detection probability can be calculated to evaluate abnormal state situations. Summary of the invention
[0004] The object of the present invention is to provide a GNSS navigation positioning method for a smartphone that can solve the satellite denial problem faced by a smartphone when using GNSS positioning in an urban environment and improve the accuracy and reliability of positioning.
[0005] The technical solution to achieve the purpose of the present invention is: a smart phone GNSS navigation and positioning method based on PDR step deviation anomaly detection, comprising the following steps:
[0006] Step 1: Based on the smartphone pedestrian inertial navigation PDR, establish a PDR motion model;
[0007] Step 2: Use a particle filter combined with a krill swarm algorithm to perform state estimation to fuse GNSS and PDR information, use the krill swarm algorithm to optimize particle distribution, and use the krill swarm algorithm to move particles for particle resampling to obtain the best estimated state;
[0008] Step 3: Anomaly detection: calculate the deviation between the PDR step size and the GNSS distance, set the threshold of the distance deviation, calculate the false alarm probability and the detection probability, so as to evaluate the abnormal state and eliminate the abnormal state.
[0009] A smart phone GNSS navigation and positioning system based on PDR step deviation anomaly detection, the system is used to implement the smart phone GNSS navigation and positioning method based on PDR step deviation anomaly detection, the smart phone GNSS navigation and positioning system includes a PDR motion model building module, a state estimation module and anomaly detection module, wherein:
[0010] The PDR motion model building module builds a PDR motion model based on the smartphone pedestrian inertial navigation PDR;
[0011] The state estimation module uses a particle filter combined with a krill swarm algorithm to perform state estimation, so as to fuse GNSS and PDR information, optimize particle distribution using the krill swarm algorithm, and move particles using the krill swarm algorithm to perform particle resampling to obtain the best estimated state;
[0012] The anomaly detection module calculates the deviation between the PDR step size and the GNSS distance, sets a threshold for the distance deviation, calculates the false alarm probability and the detection probability, thereby evaluating the abnormal state and eliminating the abnormal state.
[0013] A mobile terminal comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for GNSS navigation and positioning of a smart phone based on PDR step deviation anomaly detection is implemented.
[0014] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the smartphone GNSS navigation and positioning method based on PDR step deviation anomaly detection.
[0015] Compared with the prior art, the present invention has the following significant advantages: (1) a particle filter is combined with a krill swarm algorithm for state estimation to fuse GNSS and PDR information, thereby reducing the particle degradation problem, improving the accuracy of step length estimation, and improving the accuracy of navigation positioning; (2) a probability model is constructed using the estimated step length measured by an accelerometer to calculate the deviation between the PDR step length and the GNSS distance for detecting GNSS faults. This can effectively detect GNSS anomalies and improve navigation stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a flow chart of a GNSS navigation and positioning method for a smartphone based on PDR step deviation anomaly detection. DETAILED DESCRIPTION
[0017] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0018] Combination Figure 1 The present invention provides a smart phone GNSS navigation and positioning method based on PDR step deviation anomaly detection, and the steps are as follows:
[0019] Step 1: Based on the smartphone pedestrian inertial navigation PDR, establish a PDR motion model;
[0020] Step 2: Use a particle filter combined with a krill swarm algorithm to perform state estimation to fuse GNSS and PDR information, use the krill swarm algorithm to optimize particle distribution, and use the krill swarm algorithm to move particles for particle resampling to obtain the best estimated state;
[0021] Step 3: Anomaly detection: calculate the deviation between the PDR step size and the GNSS distance, set the threshold of the distance deviation, calculate the false alarm probability and the detection probability, so as to evaluate the abnormal state and eliminate the abnormal state.
[0022] As a specific example, the formula of the PDR motion model in step 1 is as follows:
[0023] PDR is a relative positioning method that uses measurements from accelerometers, gyroscopes, and magnetic sensors to generate position information by estimating step length and heading angle;
[0024] Assume that the position of the pedestrian obtained by PDR at time k and k+1 is and The heading angle and step length from the kth time point to the k+1th time point are θ respectively k and L k,k+1 , then the PDR location update process is expressed as:
[0025]
[0026] In the above formula, the step length L k,k+1 By processing the three-axis accelerometer measurements to estimate, the step length estimation model is expressed as follows:
[0027]
[0028] In the above formula, β represents a constant ranging from 0 to 1. and Represents the measurements of the three-axis accelerometer.
[0029] As a specific example, the particle filter combined with the krill swarm algorithm in step 2 is used for state estimation to fuse GNSS and PDR information, optimize particle distribution using the krill swarm algorithm, and move particles using the krill swarm algorithm for particle resampling to obtain the best estimated state, as follows:
[0030] Step 2.1, build a particle filter:
[0031] The particle filter uses a series of random sampling points in the state space to approximate the posterior probability density function, and then calculates the state estimate by averaging these samples.
[0032] For nonlinear systems, the particle filter is represented as follows:
[0033] x k =f(x k-1 ,v k-1 )(40)
[0034] y k =h(x k ,w k )(41)
[0035] In the above formula, x k-1 and x k represents the state at time k and k+1, f(·) represents the state transition function, v k-1 represents the state noise, y k represents the measured value, h(·) represents the observation function, and w k represents the measurement noise.
[0036] If the initial probability density value of the state is set to p(x0|y0)=p(x0), the prediction result can be expressed as:
[0037]
[0038] The status is updated to:
[0039]
[0040] in:
[0041] p(y k |y 1:k-1 )=∫p(y k |x k )p(x k |y 1:k-1 )dx k (44)
[0042] The importance function is:
[0043]
[0044] The weights are:
[0045]
[0046] From p(x k-1 ∣y 1:k-1 ) Sample N points The density function can be expressed as:
[0047]
[0048] Where δ(·) is the Dirac function;
[0049] The weight update function is:
[0050]
[0051] The final weight normalization and state estimation are:
[0052]
[0053] Step 2.2: Construct the krill swarm algorithm:
[0054] The position change of krill individuals in the krill swarm algorithm depends on three aspects: the induced movement of krill individuals by other individuals in the group, the foraging behavior of krill individuals, and the random diffusion movement of krill individuals. The movement of krill individuals is expressed as:
[0055] ΔM i =N i +F i +D i (51)
[0056] In the above formula, ΔM i Indicates the i th The position change of krill individuals, N i represents the movement induced by other individuals in the group, F i represents the movement caused by foraging behavior, D i represents the motion caused by random diffusion;
[0057] (1) Induced movement: The individual induced movement model of krill is:
[0058]
[0059] In the above formula, N max represents the maximum induction speed, α i Indicates a single direction of motion, represents the sum vector of the surrounding neighbors’ motion vectors, represents the direction vector provided by the optimal individual, represents the position change compared with the previous round, ω n Represents the weight, which ranges between 0 and 1.
[0060] (2) Foraging behavior: The foraging behavior of krill individuals has two parameters: the location of the current food source and the location of the previous food source; the movement caused by foraging behavior is expressed as:
[0061] F i =V f β i +ω f ·F i old (54)
[0062] In the above formula, V f represents the individual foraging speed, β i represents the attractiveness value, ω f represents the inertia weight, F i old Represents the foraging movement vectors of krill individuals on the previous round.
[0063] (3) Random diffusion movement: The physical random diffusion process of krill individuals is expressed as:
[0064]
[0065] In the above formula, D max represents the maximum diffusion speed, δ represents the direction of the random vector, δ∈[-1,1], Iter represents the current number of iterations, Iter max Indicates the maximum number of iterations.
[0066] Step 2.3: Construct a GNSS and PDR fusion algorithm combining particle filter and krill swarm algorithm:
[0067] The particle filter is integrated with the krill swarm algorithm to fuse GNSS and PDR information. In the particle filter, the krill swarm algorithm is used to optimize the particle distribution so that the particles in the particle filter move according to the krill swarm movement mode described in equations (15) to (19). Then, the PF weight is updated and normalized to obtain the best estimate.
[0068] According to the state vector at the kth time point, that is, the pedestrian position p k , update the PDR state according to the PDR position update formula of formula (1), and then calculate the weight based on the predicted PDR state and the GNSS measurement results
[0069]
[0070] in, represents the state position predicted by PDR, and R represents the covariance matrix of measurement noise;
[0071] After the weights are calculated, the krill swarm algorithm is used to resample the particles, which move according to the movement pattern of the krill swarm to avoid particle degradation;
[0072] The optimal estimate of the state is expressed as:
[0073]
[0074] Where N represents the number of particles, It represents the estimated state of the final output of the GNSS and PDR fusion algorithm combining the particle filter with the krill swarm algorithm.
[0075] As a specific example, the anomaly detection described in step 3 calculates the deviation between the PDR step size and the GNSS distance, sets a threshold for the distance deviation, calculates the false alarm probability and the detection probability, thereby evaluating the abnormal state and eliminating the abnormal state, as follows:
[0076] Step 3.1: Model the step size estimate as a Gaussian distribution, which is described as:
[0077]
[0078] In the above formula, L represents the PDR step length, represents the average value of PDR step length, Represents the variance of the PDR step size.
[0079] Assuming that the pedestrian moves in a straight line, the k calculated by the PDR step size is used th Wheel and (k+j) th The distance between the wheels is expressed as:
[0080]
[0081] Calculate k using GNSS positioning th Wheel and (k+j) th The distance between the wheels is expressed as:
[0082]
[0083] In the above formula, and Represents the same as PDR(k+j) th and k th The corresponding GNSS position;
[0084] Assuming that the PDR distance and GNSS distance satisfy the Gaussian distribution, the Gaussian distribution of the PDR distance and GNSS distance is expressed as:
[0085]
[0086] The PDR distance and GNSS distance deviation distribution is expressed as:
[0087]
[0088] Average value of PDR distance and GNSS distance deviation distribution and variance The definition is as follows:
[0089]
[0090] The deviation between PDR distance and GNSS distance is:
[0091]
[0092] Step 3.2: When pedestrians are walking straight, the step length difference between GNSS and PDR is almost zero. In the fault detection of smartphone GNSS position measurement, a binary decision form is used for hypothesis testing. If H0 is set as normal and H1 is set as abnormal, two different errors will occur:
[0093] (1) False alarm: The detector determines that H1 is abnormal, but in fact H0 is normal;
[0094] (2) False alarm: the detector determines that H0 is normal, but in fact H1 is normal;
[0095] Under normal conditions, Δ k+j The distribution is:
[0096]
[0097] In abnormal cases, Δ k+j The distribution is:
[0098]
[0099] is Δ k+j Set a threshold α, when Δ k+j When <α, H0 is true. Under this condition, the false alarm probability is expressed as:
[0100]
[0101] Where P(·) represents the Gaussian probability function;
[0102] The threshold α is expressed as:
[0103]
[0104] In Δ k+j >α and H1 is true, the detection probability is expressed as:
[0105]
[0106] Substituting the threshold α defined in formula (34) into formula (35), the relationship between the detection probability and the false alarm probability is expressed as:
[0107]
[0108] Step 3.3: According to the GNSS position measurement fault detection results of the smartphone, identify the GNSS abnormal data and remove the abnormal values when performing state estimation to obtain a more accurate positioning result.
[0109] The present invention also provides a smart phone GNSS navigation and positioning system based on PDR step deviation anomaly detection, which is used to implement the smart phone GNSS navigation and positioning method based on PDR step deviation anomaly detection. The smart phone GNSS navigation and positioning system includes a PDR motion model building module, a state estimation module and anomaly detection module, wherein:
[0110] The PDR motion model building module builds a PDR motion model based on the smartphone pedestrian inertial navigation PDR;
[0111] The state estimation module uses a particle filter combined with a krill swarm algorithm to perform state estimation, so as to fuse GNSS and PDR information, optimize particle distribution using the krill swarm algorithm, and move particles using the krill swarm algorithm to perform particle resampling to obtain the best estimated state;
[0112] The anomaly detection module calculates the deviation between the PDR step size and the GNSS distance, sets a threshold for the distance deviation, calculates the false alarm probability and the detection probability, thereby evaluating the abnormal state and eliminating the abnormal state.
[0113] The present invention also provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for GNSS navigation and positioning of a smart phone based on PDR step deviation anomaly detection is implemented.
[0114] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps in the smartphone GNSS navigation and positioning method based on PDR step deviation anomaly detection are implemented.
[0115] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
[0116] It should be understood that in order to simplify the present invention and help those skilled in the art understand the various aspects of the present invention, in the above description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes described in a single embodiment or described with reference to a single figure. However, the present invention should not be interpreted as the features included in the exemplary embodiments are all necessary technical features of the patent claims.
Claims
1. A smart phone GNSS navigation and positioning method based on PDR step deviation anomaly detection, characterized in that: The following steps are involved: Step 1: Based on the smartphone pedestrian inertial navigation PDR, a PDR motion model is established; Step 2: Use a particle filter combined with a krill swarm algorithm to perform state estimation to fuse GNSS and PDR information, use the krill swarm algorithm to optimize particle distribution, and use the krill swarm algorithm to move particles for particle resampling to obtain the best estimated state; Step 3: Anomaly detection: calculate the deviation between the PDR step size and the GNSS distance, set the threshold of the distance deviation, calculate the false alarm probability and the detection probability, so as to evaluate the abnormal state and eliminate the abnormal state.
2. The method for GNSS navigation and positioning of a smart phone based on PDR step deviation anomaly detection according to claim 1, characterized in that: The formula of the PDR motion model in step 1 is as follows: PDR is a relative positioning method that uses measurements from accelerometers, gyroscopes, and magnetic sensors to generate position information by estimating step length and heading angle; Assume that the position of the pedestrian obtained by PDR at time points k and k+1 is and The heading angle and step length from the kth time point to the k+1th time point are θ respectively k and L k,k+1 , then the PDR location update process is expressed as: In the above formula, the step length L k,k+1 By processing the three-axis accelerometer measurements to estimate, the step length estimation model is expressed as follows: In the above formula, β represents a constant ranging from 0 to 1. and Represents the measurements of the three-axis accelerometer.
3. The method for GNSS navigation and positioning of a smart phone based on PDR step deviation anomaly detection according to claim 2, characterized in that: In step 2, the particle filter is combined with the krill swarm algorithm for state estimation to fuse GNSS and PDR information, the krill swarm algorithm is used to optimize the particle distribution, and the krill swarm algorithm is used to move particles for particle resampling to obtain the best estimated state, as follows: Step 2.1, build a particle filter: The particle filter uses a series of random sampling points in the state space to approximate the posterior probability density function, and then obtains the state estimate by calculating the average of these samples; For nonlinear systems, the particle filter is represented as follows: x k =f(x k-1 ,v k-1 ) (4) y k =h(x k ,w k ) (5) In the above formula, x k-1 and x k represents the state at time k and k+1, f(·) represents the state transition function, v k-1 represents the state noise, y k represents the measured value, h(·) represents the observation function, and w k represents the measurement noise; If the initial probability density value of the state is set to p(x0|y0)=p(x0), the prediction result is expressed as: Status updated to: in: p(y k |y 1:k-1 )=∫p(y k |x k )p(x k |y 1:k-1 )dx k (8) The importance function is: The weights are: From p(x k-1 ∣y 1:k-1 ) Sample N points The density function is expressed as: Where δ(·) is the Dirac function; The weight update function is: The final weight normalization and state estimation are: Step 2.2: Construct the krill swarm algorithm: The position change of krill individuals in the krill swarm algorithm depends on three aspects: the induced movement of krill individuals by other individuals in the group, the foraging behavior of krill individuals, and the random diffusion movement of krill individuals. The movement of krill individuals is expressed as: ΔM i =N i +F i +D i (15) In the above formula, ΔM i Indicates the i th The position change of krill individuals, N i represents the movement induced by other individuals in the group, F i represents the movement caused by foraging behavior, D i represents the motion caused by random diffusion; (1) Induced movement: The individual induced movement model of krill is: In the above formula, N max represents the maximum induction speed, α i Indicates a single direction of motion, represents the sum vector of the surrounding neighbors’ motion vectors, represents the direction vector provided by the optimal individual, Indicates the position change compared with the previous round; ω n Indicates weight, the value range is 0 to 1; (2) Foraging behavior: The foraging behavior of krill individuals has two parameters: the location of the current food source and the location of the previous food source; the movement caused by foraging behavior is expressed as: F i =V f ·b i +oh f ·F i old (18) In the above formula, V f represents the individual foraging speed, β i represents the attractiveness value, ω f represents the inertia weight, F i old Represents the individuals in the previous round of foraging movement vectors of krill; (3) Random diffusion movement: The physical random diffusion process of krill individuals is expressed as: In the above formula, D max represents the maximum diffusion speed, δ represents the direction of the random vector, δ∈[-1,1], Iter represents the current number of iterations, Iter max Indicates the maximum number of iterations; Step 2.3: Construct a GNSS and PDR fusion algorithm combining particle filter and krill swarm algorithm: The particle filter is integrated with the krill swarm algorithm to fuse GNSS and PDR information. In the particle filter, the krill swarm algorithm is used to optimize the particle distribution so that the particles in the particle filter move according to the krill swarm movement mode described in equations (15) to (19). Then, the PF weight is updated and normalized to obtain the best estimate. According to the state vector at the kth time point, that is, the pedestrian position p k , update the PDR state according to the PDR position update formula of formula (1), and then calculate the weight based on the predicted PDR state and the GNSS measurement results In the above formula, represents the state position predicted by PDR, and R represents the covariance matrix of measurement noise; After the weights are calculated, the krill swarm algorithm is used to resample the particles, which move according to the movement pattern of the krill swarm to avoid particle degradation; The optimal estimate of the state is expressed as: In the above formula, N represents the number of particles, It represents the estimated state of the final output of the GNSS and PDR fusion algorithm combining the particle filter with the krill swarm algorithm.
4. The method for GNSS navigation and positioning of a smart phone based on PDR step deviation anomaly detection according to claim 3 is characterized in that: The anomaly detection described in step 3 calculates the deviation between the PDR step size and the GNSS distance, sets the threshold of the distance deviation, calculates the false alarm probability and the detection probability, thereby evaluating the abnormal state and eliminating the abnormal state, as follows: Step 3.1: Model the step size estimate as a Gaussian distribution, which is described as: In the above formula, L represents the PDR step length, represents the average value of the PDR step length, represents the variance of the PDR step length; Assuming that the pedestrian moves in a straight line, the k calculated by the PDR step size is used th Wheel and (k+j) th The distance between the wheels is expressed as: Calculate k using GNSS positioning th Wheel and (k+j) th The distance between the wheels is expressed as: In the above formula, and Represents the same as PDR(k+j) th and k th The corresponding GNSS position; Assuming that the PDR distance and GNSS distance satisfy the Gaussian distribution, the Gaussian distribution of the PDR distance and GNSS distance is expressed as: The PDR distance and GNSS distance deviation distribution is expressed as: Average value of PDR distance and GNSS distance deviation distribution and variance The definition is as follows: The deviation between PDR distance and GNSS distance is: Step 3.2: When pedestrians are walking straight, the step length difference between GNSS and PDR is almost zero. In the fault detection of smartphone GNSS position measurement, a binary decision form is used for hypothesis testing. If H0 is set as normal and H1 is set as abnormal, two different errors will occur: (1) False alarm: The detector determines that H1 is abnormal, but in fact H0 is normal; (2) False alarm: the detector determines that H0 is normal, but in fact H1 is normal; Under normal conditions, Δ k+j The distribution is: In abnormal cases, Δ k+j The distribution is: is Δ k+j Set a threshold α, when Δ k+j When <α, H0 is true. Under this condition, the false alarm probability is expressed as: Where P(·) represents the Gaussian probability function; The threshold α is expressed as: In Δ k+j >α and H1 is true, the detection probability is expressed as: Substituting the threshold α defined in formula (34) into formula (35), the relationship between the detection probability and the false alarm probability is expressed as: Step 3.3: According to the GNSS position measurement fault detection results of the smartphone, identify the GNSS abnormal data and remove the abnormal values when performing state estimation to obtain a more accurate positioning result.
5. A smart phone GNSS navigation and positioning system based on PDR step deviation anomaly detection, characterized in that: The system is used to implement the smartphone GNSS navigation and positioning method based on PDR step deviation anomaly detection according to any one of claims 1 to 4, wherein the smartphone GNSS navigation and positioning system comprises a PDR motion model building module, a state estimation module and an anomaly detection module, wherein: The PDR motion model building module builds a PDR motion model based on the smartphone pedestrian inertial navigation PDR; The state estimation module uses a particle filter combined with a krill swarm algorithm to perform state estimation, so as to fuse GNSS and PDR information, optimize particle distribution using the krill swarm algorithm, and move particles using the krill swarm algorithm to perform particle resampling to obtain the best estimated state; The anomaly detection module calculates the deviation between the PDR step size and the GNSS distance, sets a threshold for the distance deviation, calculates the false alarm probability and the detection probability, thereby evaluating the abnormal state and eliminating the abnormal state.
6. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the smartphone GNSS navigation and positioning method based on PDR step deviation anomaly detection as described in any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, the steps in the smart phone GNSS navigation and positioning method based on PDR step deviation anomaly detection as described in any one of claims 1 to 4 are implemented.
