Wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor

Through the improved Visushrink threshold method and the new threshold function designed by adjusting parameter α, the problem of hard threshold discontinuity and soft threshold deviation in wavelet threshold denoising is solved, and the accuracy of mobile phone inertial indoor positioning is improved, which is suitable for those who cannot use GPS signals. Indoor place.

CN118896612APending Publication Date: 2024-11-05NANJING NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411004502.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

When the existing wavelet threshold denoising method processes in inertial sensor data, the hard threshold function causes signal discontinuity, and the soft threshold function has deviations, resulting in reduced positioning accuracy and it is difficult to effectively suppress accelerometer and gyroscope noise.

Method used

Using the improved Visushrink threshold method, a new threshold function with both continuity and progressiveness is designed by adaptively adjusting the wavelet decomposition level and introducing the adjustment parameter α, which is used for wavelet threshold denoising, combining wavelet decomposition and reconstruction to improve positioning Accuracy.

Benefits of technology

It significantly improves the accuracy of mobile phone inertial indoor positioning, reduces the impact of noise, enhances the accuracy of signal reconstruction, and is suitable for indoor places where GPS signals cannot be used.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118896612A_ABST
    Figure CN118896612A_ABST
Patent Text Reader

Abstract

The invention discloses a wavelet threshold denoising indoor positioning method based on a mobile phone inertial sensor. The method comprises the following steps: reading noise-containing signal data acquired by the mobile phone inertial sensor; selecting a wavelet basis and a decomposition layer number, and performing wavelet decomposition on the read-in signal; determining a threshold value and a threshold value function of wavelet threshold value decomposition, and performing wavelet threshold value denoising; performing wavelet decomposition signal reconstruction to obtain a reconstructed original signal; and according to the obtained reconstructed original signal, calculating a pedestrian motion track. The threshold function obtained by the adaptive wavelet threshold denoising algorithm provided by the invention has continuity and progressiveness, solves the problems of discontinuity and large deviation of the existing soft and hard threshold functions, and can greatly improve the precision of mobile phone inertial positioning. And the system can be applied to large shopping malls, underground parking lots, hospitals and other indoor places where active signals such as GPS signals cannot be used for positioning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of inertial indoor positioning, relates to wavelet threshold denoising indoor positioning, and specifically relates to a wavelet threshold denoising indoor positioning method based on a mobile phone inertial sensor. Background Art

[0002] Location-based services (LBS) as a way of life have gradually penetrated into all aspects of human life. Accurate location information is the prerequisite for LBS. At present, humans can rely on the global navigation satellite system (GNSS) to achieve sub-meter outdoor positioning accuracy; however, indoor positioning cannot be achieved using GNSS because satellite signals cannot penetrate buildings.

[0003] On average, humans spend about 70% to 90% of their time indoors, and the need for LBS is more urgent indoors. In the case that GNSS cannot provide indoor positioning services, accurate indoor location information has become a bottleneck for the development of indoor LBS.

[0004] Inertial positioning technology is a positioning and navigation technology that is independent of all external tools and equipment. Among them, pedestrian dead reckoning (PDR) technology has the advantages of small equipment size, simple algorithm, and low system complexity, and has a higher cost-effectiveness compared to other indoor positioning methods. Due to the wide coverage of smartphones and the excellent data acquisition capabilities of built-in inertial sensors, the built-in accelerometer and gyroscope of smartphones are used to collect pedestrian movement information, obtain acceleration and angular velocity data, and then use the pedestrian positioning model for positioning.

[0005] However, if the original inertial sensor data is used alone, the influence of Gaussian white noise and constant drift contained in the accelerometer and gyroscope data will cause the error of the positioning algorithm to accumulate rapidly over time, which will greatly reduce the accuracy of the positioning algorithm. Therefore, the selection of appropriate filtering methods to eliminate or suppress the noise signals of accelerometers and gyroscopes is crucial to improving the navigation accuracy of pedestrian navigation systems. In the study of suppressing the random drift errors of accelerometers and gyroscopes, the method of modeling first and then filtering is usually used for error compensation, and the accuracy of filtering mainly depends on the accuracy of the model built. In recent years, in order to overcome the complexity of modeling and the uncertainty of parameters, the method of using wavelet theory to process non-stationary signals has been widely studied in view of the non-stationary and nonlinear characteristics of the random drift of accelerometers and gyroscopes.

[0006] However, in the field of wavelet threshold denoising, traditional methods have some potential disadvantages. When using hard threshold function to process signals, although some local features of the signal can be well preserved, It is discontinuous at the threshold λ. Therefore, the use of the hard threshold function will produce the Gibbs phenomenon in the signal reconstruction process, resulting in oscillation of the reconstructed signal. For the soft threshold function, although it has good continuity overall, it can overcome the shortcomings of the hard threshold function and make the processing of wavelet coefficients smoother, but when |ω j,k When |≥λ, there is always a constant deviation, which will affect the approximation of the reconstructed signal to the original signal and lead to inevitable errors. Summary of the invention

[0007] Purpose of the invention: In order to overcome the defects of the existing hard threshold function and soft threshold function in wavelet threshold denoising, a wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor is provided, which can greatly improve the accuracy of mobile phone inertial indoor positioning.

[0008] Technical solution: To achieve the above purpose, the present invention provides a wavelet threshold denoising indoor positioning method based on a mobile phone inertial sensor, comprising the following steps:

[0009] S1: Read the noisy signal data collected by the mobile phone inertial sensor;

[0010] S2: Select the wavelet basis and the number of decomposition levels to perform wavelet decomposition on the input signal;

[0011] S3: Determine the threshold and threshold function of wavelet threshold decomposition, and perform wavelet threshold denoising;

[0012] S4: reconstruct the wavelet decomposition signal to obtain the reconstructed original signal;

[0013] S5: Calculate the pedestrian's motion trajectory based on the obtained reconstructed original signal.

[0014] Furthermore, the noise signal data in step S1 includes the accelerations of the X-axis, Y-axis, and Z-axis obtained by the accelerometer and the XYZ three-axis combined acceleration, wherein the XYZ three-axis acceleration is calculated as the combined acceleration: Among them, a x 、a y 、a z Respectively represent the acceleration of the X-axis, Y-axis, and Z-axis, a total Represents the total acceleration.

[0015] Furthermore, in step S2, the sym6 wavelet basis function is selected, and the number of wavelet decomposition layers is determined to be 4 according to the characteristics of the original input signal, and wavelet decomposition is performed.

[0016] Furthermore, in step S2, the read signal is subjected to three-layer wavelet decomposition, and the signal model of the noisy speech signal is as follows:

[0017] y(t)=x(t)+s(t)

[0018] Where y(t) is the actual output signal of the accelerometer, x(t) is the original accelerometer input signal, and s(t) is the noise signal. The purpose of signal processing is to restore x(t) and s(t) as completely as possible to reduce or remove noise. Perform three-layer wavelet decomposition on y(t). After the first layer of decomposition of the signal y(t), ca1 is the approximate signal of y(t), cd1 is the detail signal of y(t), and so on. Decompose ca1 into the second layer, a total of three layers, and the decomposed signal It is expressed as:

[0019]

[0020] In the above formula, ca3 is the low-frequency part of the signal after decomposition, which basically contains the main components of the effective signal; cd1 to cd3 are mainly the high-frequency parts of the signal after decomposition, including the high-frequency part of the effective signal conversion and the wavelet coefficients generated by noise.

[0021] Furthermore, in step S3, an improved Visushrink threshold method is used to adaptively change the threshold by adding wavelet decomposition levels to obtain a threshold of wavelet threshold decomposition.

[0022] Furthermore, the specific process of determining the threshold of wavelet threshold decomposition in step S3 is as follows:

[0023] A1: Get the wavelet decomposition layer number j and the length of the noisy signal N;

[0024] A2: According to the wavelet coefficient ω j,k The median of the absolute value at each scale is then divided by the constant 0.6745 to obtain the estimated mean square error σ of the noise intensity in the wavelet coefficients at that scale. j , the mean square error calculation formula is:

[0025]

[0026] A3: Calculate the threshold value, threshold λ j The calculation formula is:

[0027]

[0028] A4: For the threshold λ in A3 j , when j = 1, the formula is transformed into the Visushrink threshold; when j> 1, λ jIt decreases with the increase of j, following the rule that the noise amplitude decreases with the increase of the number of decomposition layers, showing a good denoising performance.

[0029] Furthermore, the threshold function in step S3 is determined by introducing an adjustment parameter α, and by adjusting the parameter α, the new threshold function is transformed into a soft or hard threshold function.

[0030] Furthermore, the specific process of determining the threshold function in step S3 is:

[0031] B1: Determine the adjustment parameter α, α∈[0,+∞);

[0032] B2: The mean square error σ obtained in step A2 j , we get the wavelet threshold function, the function model is:

[0033]

[0034] B3: By adjusting the α parameter, the new threshold function is transformed into a soft or hard threshold function. When α = 0, the above formula is approximately a soft threshold function. When α → ∞, the above formula can be transformed into a hard threshold function. According to different data systems, adjusting the value of α can affect the performance of wavelet denoising.

[0035] Furthermore, the method of calculating the pedestrian's motion trajectory in step S5 is:

[0036] Assume that the current position coordinates of the pedestrian are (x k ,y k ), the walking step length is SL k , the heading angle is ψ k , and the next position coordinates of the pedestrian at the next moment (x k+1 ,y k+1 ):

[0037]

[0038] Beneficial effects: Compared with the prior art, the present invention has the following advantages:

[0039] 1. The threshold function obtained by the adaptive wavelet threshold denoising algorithm proposed in the present invention has both continuity and gradualness, which solves the problems of discontinuity and large deviation of existing soft and hard threshold functions.

[0040] 2. The indoor positioning method based on mobile phone inertial sensor proposed in the present invention can greatly improve the accuracy of mobile phone inertial positioning.

[0041] 3. The method of the present invention can be applied to large shopping malls, underground parking lots, hospitals and other indoor places where active signals such as GPS signals cannot be used for positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is an overall flow chart of the method of the present invention;

[0043] Figure 2 The original three-axis acceleration data graph read by the mobile phone inertial sensor;

[0044] Figure 3 It is the XYZ axis combined acceleration data diagram;

[0045] Figure 4 Schematic diagram of wavelet decomposition;

[0046] Figure 5 A comparison chart of the improved wavelet threshold function and the traditional threshold function;

[0047] Figure 6 This is the principle diagram of the PDR algorithm;

[0048] Figure 7 The comparison diagram of the three-axis combined acceleration signal and the denoised signal;

[0049] Figure 8 Comparison diagram of pedestrian trajectory using hard threshold function and true trajectory;

[0050] Fig. 9 Comparison diagram of pedestrian trajectory using improved threshold function and true trajectory. DETAILED DESCRIPTION

[0051] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.

[0052] The present invention provides a wavelet threshold denoising indoor positioning method based on a mobile phone inertial sensor, such as Figure 1 As shown, it includes the following steps:

[0053] S1: Read the noisy signal data collected by the mobile phone inertial sensor:

[0054] The noisy signal data includes the acceleration of the X-axis, Y-axis, and Z-axis obtained by the accelerometer, as well as the combined acceleration of the XYZ three axes, such as Figure 2 As shown, the X-axis acceleration includes the gravity acceleration, and the gravity needs to be removed by α x =α x_g -g;

[0055] The calculation of the composite acceleration of the XYZ three-axis acceleration is as follows: Among them, a x 、ay 、a z Respectively represent the acceleration of the X-axis, Y-axis, and Z-axis, a total represents the total acceleration;

[0056] In this embodiment, the combined acceleration is Figure 3 shown.

[0057] S2: Select the wavelet basis and the number of decomposition levels to perform wavelet decomposition on the input signal:

[0058] The number of decomposition layers is a key factor in wavelet multiscale decomposition. By affecting the level of detail captured during decomposition and reconstruction, the number of decomposition layers determines the trade-off between noise reduction and retaining important signal components. In order to obtain a better denoising effect, the number of decomposition layers is as high as possible. The more decomposition layers there are, the more obvious the difference between the useful signal and the noise signal is. The benefit of filtering at this time is that the difference is large and it is easier to separate the signal and noise. The disadvantage is that adding decomposition layers will cause gradual distortion in the signal reconstruction process and increase the amount of calculation. The maximum number of decomposition layers is closely related to the signal-to-noise ratio of the signal and the distribution of wavelet coefficients and frequencies. When the signal-to-noise ratio and high-frequency noise distribution are high, denoising can be achieved with a smaller number of decomposition layers; if the signal-to-noise ratio and high-frequency noise distribution are low, a large number of decomposition layers is required. Therefore, careful analysis and selection of the optimal number of decomposition layers are crucial to achieve effective noise reduction and maintain the integrity of the acceleration signal.

[0059] The noisy signal is decomposed into N layers of wavelets. The choice of the number of decomposition layers N depends on the amount of noise in the signal. More noise requires more decomposition levels, while less noise requires fewer decomposition levels.

[0060] Generally speaking, when denoising an inertial navigation sensor, the best value for N is three to five layers. A smaller number of layers cannot effectively separate the noise signal from the useful signal, and a larger number of layers will cause distortion.

[0061] For example, in this embodiment, the read signal is subjected to three-layer wavelet decomposition, and the signal model of the noisy speech signal is as follows:

[0062] y(t)=x(t)+s(t)

[0063] Where y(t) is the actual output signal of the accelerometer, x(t) is the original accelerometer input signal, and s(t) is the noise signal. The purpose of signal processing is to restore x(t) and s(t) as completely as possible to reduce or remove noise.

[0064] Perform three-layer wavelet decomposition on y(t), and the decomposition process is as follows: Figure 4As shown in the figure, after the first layer decomposition of the signal y(t), ca1 is the approximate signal of y(t), cd1 is the detail signal of y(t), and so on, ca1 is decomposed into the second layer, a total of three layers, and the decomposed signal It is expressed as:

[0065]

[0066] In the above formula, ca3 is the low-frequency part of the signal after decomposition, which basically contains the main components of the effective signal; cd1 to cd3 are mainly the high-frequency parts of the signal after decomposition, including the high-frequency part of the effective signal conversion and the wavelet coefficients generated by noise.

[0067] This embodiment selects the sym6 wavelet basis function, determines the number of wavelet decomposition layers to be 4 according to the characteristics of the original input signal, and performs wavelet decomposition.

[0068] S3: Determine the threshold and threshold function of wavelet threshold decomposition and perform wavelet threshold denoising:

[0069] The threshold determination method is to use the improved Visushrink threshold method, by adding the wavelet decomposition level to adaptively change the threshold, and obtain the threshold of wavelet threshold decomposition. The specific process is:

[0070] A1: Get the wavelet decomposition layer number j and the length of the noisy signal N;

[0071] A2: According to the wavelet coefficient ω j,k The median of the absolute value at each scale is then divided by the empirical constant 0.6745 to obtain the estimated mean square error σ of the noise intensity in the wavelet coefficients at that scale. j , the mean square error calculation formula is:

[0072]

[0073] A3: Calculate the threshold value, threshold λ j The calculation formula is:

[0074]

[0075] A4: For the threshold λ in A3 j , when j = 1, the formula is transformed into the Visushrink threshold; when j> 1, λ j It decreases with the increase of j, following the rule that the noise amplitude decreases with the increase of the number of decomposition layers, showing a good denoising performance.

[0076] The threshold function is determined by using the improved threshold function and adding an exponential function to solve the problem of discontinuity and large deviation of the soft and hard functions, so that the new threshold function has continuity and gradualness. Specifically, the adjustment parameter α is introduced, and the new threshold function is transformed into a soft and hard threshold function by adjusting the parameter α. The specific process is as follows:

[0077] B1: Determine the adjustment parameter α, α∈[0,+∞);

[0078] B2: The mean square error σ obtained in step A2 j , we get the wavelet threshold function, the function model is:

[0079]

[0080] B3: By adjusting the α parameter, the new threshold function is transformed into a soft or hard threshold function. α is in the formula This part is reflected in that when α=0, the above formula is approximately a soft threshold function, and when α→+∞, the above formula can be transformed into a hard threshold function; according to different data systems, adjusting the value of α can enhance the flexibility of the system and affect the performance of wavelet denoising.

[0081] S4: reconstruct the wavelet decomposition signal to obtain the reconstructed original signal;

[0082] S5: Calculate the pedestrian's motion trajectory based on the reconstructed original signal:

[0083] Pedestrian dead reckoning (PDR) is mainly based on the collected inertial sensor data to estimate the pedestrian's cadence, step length and heading, without relying on any other external factors, and based on the current position to estimate the pedestrian's next position. Figure 7 As shown in Figure 2, the method for calculating the pedestrian motion trajectory is:

[0084] Assume that the current position coordinates of the pedestrian are (x k ,y k ), the walking step length is SL k , the heading angle is ψ k , and the next position coordinates of the pedestrian at the next moment (x k+1 ,y k+1 ):

[0085]

[0086] Based on the above content, in order to verify the effectiveness and effect of the method of the present invention, the improved threshold function provided by the present invention is compared with the existing soft and hard threshold functions in this embodiment. The comparison results are as follows: Figure 5As shown, it can be seen that the improved threshold function solves the problem of discontinuity of the hard threshold function at the threshold and the problem of the soft threshold function causing the overall amplitude to decrease. Compared with other threshold function methods, the improved threshold function can approach the hard threshold function faster and has a better denoising effect.

[0087] Wavelet threshold denoising is performed based on the threshold and threshold function. The denoising effect is compared as follows: Figure 6 As shown, it can be seen that compared with the original signal, the signal curve after filtering is smoother, indicating that there is a certain effect on noise filtering.

[0088] The final comparison between the denoised pedestrian trajectory and the real trajectory. Figure 8 The figure shows the pedestrian trajectory using the hard threshold function (the soft threshold function image is similar to the hard threshold). Fig. 9 The figure shows the trajectory of a pedestrian using the improved threshold function. It can be seen that the trajectory of a pedestrian using the improved threshold function of the present invention is obviously closer to the real trajectory.

[0089] In this embodiment, evaluation parameters such as signal-to-noise ratio (SNR), mean square error (MSE) and waveform similarity coefficient (NCC) are quantitatively compared, and the specific data are shown in Table 1. The signal-to-noise ratio is the most intuitive quantity to measure the degree of noise reduction. The larger the signal-to-noise ratio, the less noise contained in the signal and the better the noise reduction effect. The mean square error is a measure of the degree of difference between the estimator and the estimated quantity. The smaller the value, the better. The waveform similarity coefficient reflects the overall similarity of the signal waveform before and after denoising. The larger the value, the more similar it is to the original signal and the better the effect. As can be seen from Table 1, the best effect is achieved when the improved threshold function of the present invention is selected and the adjustment factor α=0.5.

[0090] Table 1

[0091]

Claims

1. A wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor, characterized in that: The steps include: S1: Read the noisy signal data collected by the mobile phone inertial sensor; S2: Select the wavelet basis and the number of decomposition levels to perform wavelet decomposition on the input signal; S3: Determine the threshold and threshold function of wavelet threshold decomposition, and perform wavelet threshold denoising; S4: reconstruct the wavelet decomposition signal to obtain the reconstructed original signal; S5: Calculate the pedestrian's motion trajectory based on the obtained reconstructed original signal.

2. According to claim 1, a wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor is characterized in that: The noise signal data in step S1 includes the accelerations of the X-axis, Y-axis, and Z-axis obtained by the accelerometer and the combined acceleration of the XYZ three-axis, wherein the combined acceleration of the XYZ three-axis acceleration is calculated: Among them, a x 、a y 、a z Respectively represent the acceleration of the X-axis, Y-axis, and Z-axis, a total Represents the total acceleration.

3. The wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor according to claim 1 is characterized in that: In the step S2, the sym6 wavelet basis function is selected, and the number of wavelet decomposition layers is determined to be 4 according to the characteristics of the original input signal, and wavelet decomposition is performed.

4. The wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor according to claim 3 is characterized in that: In step S2, the read signal is decomposed by three layers of wavelet, and the signal model of the noisy speech signal is as follows: y(t)=x(t)+s(t) Where y(t) is the actual output signal of the accelerometer, x(t) is the original accelerometer input signal, and s(t) is the noise signal; y(t) is subjected to three-layer wavelet decomposition. After the first layer of decomposition of the signal y(t), ca1 is the approximate signal of y(t), cd1 is the detail signal of y(t), and so on. Ca1 is decomposed into the second layer, a total of three layers, and the decomposed signal It is expressed as: In the above formula, ca3 is the low-frequency part of the signal after decomposition; cd1 to cd3 are the high-frequency parts of the signal after decomposition, including the high-frequency part of the effective signal conversion and the wavelet coefficients generated by the noise.

5. The wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor according to claim 1 is characterized in that: In step S3, the improved Visushrink threshold method is used to adaptively change the threshold by adding the wavelet decomposition level to obtain the threshold of the wavelet threshold decomposition.

6. The wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor according to claim 5 is characterized in that: The specific process of determining the threshold of wavelet threshold decomposition in step S3 is as follows: A1: Get the wavelet decomposition layer number j and the length of the noisy signal N; A2: According to the wavelet coefficient ω j,k The median of the absolute value at each scale is then divided by the constant 0.6745 to obtain the estimated mean square error σ of the noise intensity in the wavelet coefficients at that scale. j , the mean square error calculation formula is: A3: Calculate the threshold value, threshold λ j The calculation formula is: A4: For the threshold λ in A3 j , when j = 1, the formula is transformed into the Visushrink threshold; when j> 1, λ j It decreases as j increases.

7. The wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor according to claim 6 is characterized in that: The threshold function in step S3 is determined by introducing an adjustment parameter α, and by adjusting the parameter α, the new threshold function is transformed into a soft or hard threshold function.

8. The wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor according to claim 7 is characterized in that: The specific process of determining the threshold function in step S3 is: B1: Determine the adjustment parameter α, α∈[0,+∞); B2: According to the mean square error σj obtained in step A2, the wavelet threshold function is obtained. The function model is: B3: By adjusting the α parameter, the new threshold function is transformed into a soft or hard threshold function. When α = 0, the above formula is approximately a soft threshold function. When α → +∞, the above formula can be transformed into a hard threshold function.

9. The wavelet threshold denoising indoor positioning method based on mobile phone inertial sensor according to claim 1 is characterized in that: The method for calculating the pedestrian's motion trajectory in step S5 is: Assume that the current position coordinates of the pedestrian are (x k ,y k ), the walking step length is SL k , the heading angle is ψ k , and the next position coordinates of the pedestrian at the next moment (x k+1 ,y k+1 ):