Next Article in Journal
A Human-Following Motion Planning and Control Scheme for Collaborative Robots Based on Human Motion Prediction
Previous Article in Journal
A Novel Hybrid Deep Learning Model for Human Activity Recognition Based on Transitional Activities
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Indoor Navigation Algorithm Using Multi-Dimensional Euclidean Distance and an Adaptive Particle Filter

1
School of Informatics, Xiamen University, Xiamen 361001, China
2
Artificial Intelligence and Big Data College, Chongqing College of Electronic Engineering, Chongqing 401331, China
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(24), 8228; https://doi.org/10.3390/s21248228
Submission received: 4 September 2021 / Revised: 26 November 2021 / Accepted: 2 December 2021 / Published: 9 December 2021
(This article belongs to the Section Navigation and Positioning)

Abstract

:
The inertial navigation system has high short-term positioning accuracy but features cumulative error. Although no cumulative error occurs in WiFi fingerprint localization, mismatching is common. A popular technique thus involves integrating an inertial navigation system with WiFi fingerprint matching. The particle filter uses dead reckoning as the state transfer equation and the difference between inertial navigation and WiFi fingerprint matching as the observation equation. Floor map information is introduced to detect whether particles cross the wall; if so, the weight is set to zero. For particles that do not cross the wall, considering the distance between current and historical particles, an adaptive particle filter is proposed. The adaptive factor increases the weight of highly trusted particles and reduces the weight of less trusted particles. This paper also proposes a multidimensional Euclidean distance algorithm to reduce WiFi fingerprint mismatching. Experimental results indicate that the proposed algorithm achieves high positioning accuracy.

1. Introduction

In open outdoor areas, the global satellite navigation system offers reliable positioning accuracy. For example, Baidu Maps and Google Maps provide navigation and positioning for pedestrians and cars. Yet the transmission of obstacle occlusion signals indoors, in tunnels and in other areas greatly attenuates the wireless signal; therefore, a scheme using satellite navigation cannot deliver reliable positioning accuracy. Scholars have thus begun to study indoor navigation solutions [1,2]. Considering the advantages of the high popularity and ease of carrying of smartphones, researchers have done a lot of research on indoor navigation with the help of smartphone platforms. For indoor pedestrian navigation, the positioning accuracy of the meter level has been within the visible range of users, which meets the positioning needs of most ordinary users. Considering smartphones’ popularity and ease of transportation, researchers have carefully considered indoor navigation based on smartphone platforms.
The inertial navigation system (INS) is an autonomous navigation system that does not depend on external information and does not radiate energy to the outside. This system can provide continuous and real-time data on the carrier’s position, attitude, and speed. Its primary disadvantage is the cumulative effect of position error: the longer the running time, the greater the error. Reference [3] shows that the position error of the two-dimensional plane is proportional to the cubic power of time. Various in-depth investigations have been conducted to address cumulative error. When pedestrians walk in regular corridors, Heuristic drift reduction (HDR) and Heuristic drift elimination (HDE) algorithms [4,5] effectively eliminate cumulative error. Reference [6,7] introduced map information and used a map-aided algorithm to eliminate the direction drift of inertial navigation. Alternatively, one can introduce a magnetic field and use the field’s north-pointing characteristic to correct the INS’s direction.
WiFi wireless signals are widely used for positioning. The signal attenuation model and signal fingerprint matching model are two typical positioning techniques. The attenuation model needs to know the WiFi access point’s location in advance and then calculates the user’s location via the least squares method according to the received signal strength [8]. WiFi signals fluctuate with time, and a complex indoor environment (e.g., with walking pedestrians or changing obstacles) can quickly lead to deviation in the propagation model’s parameter estimation along with poor positioning accuracy. The WiFi fingerprint matching model contains two stages: an offline training stage and online positioning stage. In the first phase, the user stores the received signal and corresponding position in the database; in the second phase, collected fingerprints are matched with fingerprints from the database. The position corresponding to the most similar fingerprint in the fingerprint database is often taken as the pedestrian’s position. Considering that WiFi fingerprints are vulnerable to environmental interference, fingerprint mismatching is unavoidable. Magnetic fingerprint matching was introduced in Reference [9], to further reduce position error due to WiFi fingerprint mismatching. Given the two signal sources’ complementary characteristics, an adaptive particle filter is proposed in this paper to integrate INS and WiFi.

2. The Innovation and the New Contributions

Most navigation schemes require infrastructure set up in advance in order to improve positioning accuracy. Unlike these schemes, the one proposed in this paper makes use of existing WiFi and inertial sensors. In an indoor environment, WiFi mismatching due to the “jump” fingerprint is the main problem, so the multi-dimensional fingerprint is introduced. Unlike the multi-dimensional dynamic time warping algorithm in Reference [10], the multi-dimensional Euclidean distance algorithm is not only simple to calculate but also has the potential to reduce fingerprint mismatching. The particle weight in the process of particle sampling is thought to be related not only to the observation but also to the historical position of pedestrians.
The main innovations of our work are as follows:
  • Because the improved algorithm does not necessitate additional infrastructure, it is low-cost and simple to update software;
  • A multi-dimensional Euclidean distance algorithm is proposed to calculate the distance between fingerprints. A multi-dimensional Euclidean distance algorithm using historical fingerprints can reduce the impact of the “jump point" fingerprints, thus reducing fingerprint mismatching;
  • To solve the problem of particle degradation, the historical position information is introduced, and the adaptive factor is used to improve the weight of high trust particles and reduce the weight of low trust particles;
  • Two smartphones are used to conduct navigation experiments in two navigation areas. The experimental results show that the average positioning accuracy is 1.84 m.

3. Related Work

At present, popular localization algorithms include Dead Reckoning (DR) [11], and the geometric algorithm [12], fingerprint algorithm [13], and image algorithm [14]. Different indoor positioning technologies possess unique characteristics. DR based on inertial sensors can provide continuous navigation and positioning but suffers from cumulative error. Geomagnetism exists in nature; thus, no infrastructure needs to be deployed in advance. Geomagnetism can provide navigation direction but is readily disturbed by metal equipment and can easily lead users in the wrong direction. Meanwhile, fingerprint mismatching is a key concern in fingerprint matching. The image algorithm is similarly problematic: it requires intensive computation and is plagued by visual blind spots.
Although a single positioning signal source carries inherent benefits and drawbacks, its positioning performance can be improved by integrating the complementary characteristics of multiple signal sources. For example, several scholars have studied the hybrid positioning fusion algorithm [15,16]. Reference [17] presented a short-range radio frequency and map to eliminate DR’s cumulative error. Reference [18] used an unscented Kalman filter to fuse DR and Ultra Wide Band (UWB). Kang [19] proposed SmartPDR, which adaptively selects a trusted direction source for a magnetometer and a gyroscope. Li [20] applied an adaptive Kalman filter to fuse an INS and magnetic field matching system; the fusion algorithm effectively reduced cumulative error. Furthermore, Reference [21] used an adaptive unscented Kalman filter to integrate the inertial measurement unit, magnetometer, and floor plan to reduce cumulative error. Yu [22] introduced map information and devised a map-based indoor pedestrian navigation algorithm that incorporated map assistance and map-matching algorithms to eliminate cumulative error.
Another common method involves WiFi signals. Using a DR error model as the state equation with WiFi positioning results and DR as observation equations, Li [23] presented an adaptive and robust Kalman filter to integrate DR and WiFi. Zhuang [24] proposed a tightly coupled extended Kalman filter to fuse DR and WiFi signals; this algorithm could effectively eliminate cumulative error in pedestrian navigation. By adding equality constraints and expanding the distribution of observation noise, a robust constrained Kalman filter has also been proposed to improve DR and WiFi indoor positioning [25].
Inspired by the above work, this paper presents an improved particle filter algorithm combining DR and WiFi. The DR model is taken as the state equation, and the difference between WiFi and DR represents the observation equation for the particle filter. An adaptive particle filter is also proposed to mitigate particle degradation in the traditional particle filter.

4. Framework Description

The gyroscope and accelerometer of the smartphone collect angular velocity and acceleration. Using the integral technique obtains the attitude angle. Using the gait technique obtains the pedestrian step length. DR based on direction and step length is used to estimate the position of pedestrians. The process of WiFi fingerprint localization can be divided into the offline fingerprint database construction stage and the online fingerprint matching stage. The reference points of the positioning area are calibrated in advance, and the fingerprints corresponding to the reference points are collected at the same time. The interpolation technology is used to construct the fingerprint database in the positioning area. In the online phase, MED is used to calculate the distance between the WiFi fingerprints collected online and the fingerprints in the database. The weighted K nearest neighbor (WKNN) algorithm further improves the positioning performance by selecting K WiFi matching results. The DR model is used as the state transfer equation of the particle filter, and the difference between the positioning results of WiFi and inertial navigation is used as the observation equation. An adaptive factor is proposed to improve the weight of highly trusted particles. At the same time, map information is introduced as an auxiliary means to eliminate particles crossing the wall. If the particle crosses the wall, its corresponding weight is set to zero. Finally, map matching is used to further reduce the pedestrian position error. The algorithm framework of MED and APF is shown in Figure 1.

4.1. DR Module

4.1.1. Attitude Angle

When the gyroscope obtains the angular velocity, the increment of the three-axis angular velocity [ Δ θ k x , Δ θ k y , Δ θ k z ] velocity can be calculated as follows [26]:
Δ θ k x = ω k x T s Δ θ k y = ω k y T s Δ θ k z = ω k z T s
where [ ω k x , ω k y , ω k z ] represents the angular velocity of the three axes, respectively; and T s represents the sampling interval.
According to Reference [27], the quaternion vector can be updated as follows:
q k + 1 = diag ( I , 0 ) cos Δ θ k 2 + Δ Θ sin Δ θ k 2 Δ θ k q k
where diag ( I , 0 ) denotes a 3 3 identity matrix. q k + 1 = [ q 1 , q 2 , q 3 , q 4 ] k + 1 represents the quaternion vector at the ( k + 1 ) t h time. Δ θ k = ( Δ θ k x ) 2 + ( Δ θ k y ) 2 + ( Δ θ k z ) 2 . Δ Θ is calculated as follows:
Δ Θ = 0 Δ θ k z Δ θ k y Δ θ k x Δ θ k z 0 Δ θ k x Δ θ k y Δ θ k y Δ θ k x 0 Δ θ k z Δ θ k x Δ θ k y Δ θ k z 0
Once the quaternions are updated, the direction cosine matrix is calculated as follows:
C b , k + 1 n = q 1 2 q 2 2 q 3 2 + q 4 2 2 q 1 q 2 2 q 3 q 4 2 q 1 q 3 + 2 q 2 q 4 2 q 1 q 2 + 2 q 3 q 4 q 1 2 + q 2 2 q 3 2 + q 4 2 2 q 2 q 3 2 q 1 q 4 2 q 1 q 3 2 q 2 q 4 2 q 2 q 3 + 2 q 1 q 4 q 1 2 q 2 2 + q 3 2 + q 4 2 k + 1
where C b , k + 1 n represents the direction cosine matrix at the ( k + 1 ) t h time. The function of C b , k + 1 n is to convert the acceleration and angular velocity in the carrier coordinate system to the navigation coordinate system.
After the direction cosine matrices have been updated, the attitude angle can be calculated as follows [26]:
ϑ k + 1 = tan 1 C b , k + 1 n ( 3 , 1 ) C b , k + 1 n ( 3 , 2 ) 2 + C b , k + 1 n ( 3 , 3 ) 2 ϕ k + 1 = tan 1 C b , k + 1 n ( 3 , 2 ) C b , k + 1 n ( 3 , 3 ) ψ k + 1 = tan 1 C b , k + 1 n ( 2 , 1 ) C b , k + 1 n ( 1 , 1 )
where ϑ k + 1 , ϕ k + 1 , ψ k + 1 denote the pitch, roll, and yaw at the ( k + 1 ) t h time, respectively.

4.1.2. Step Length

Gait-based step length estimation has been successfully applied in low-end inertial sensors [28]. Vertical displacement is periodic while a pedestrian walks, as illustrated in Figure 2.
The vertical displacement of pedestrians during walking is calculated as follows [29]:
h ( k ) = t 1 t 2 V z ( t ) d t
where h ( k ) and V z denote the vertical displacement and vertical speed at the k t h time, respectively.
According to the literature [29], step length can be calculated as follows:
S L ( k ) = 2 2 L t 1 t 2 V z ( t ) d t t 1 t 2 V z ( t ) d t 2
where S L ( k ) represents the leg length at the k t h time.

4.1.3. The Extended Kalman Filter for Accelerometer and Gyroscope Drift

In the process of walking, when a pedestrian’s foot hits the ground, their vertical speed should be zero. Using this observation information, EKF can be constructed to filter out walking noise. The corresponding system model is written as follows [29]:
X ( k ) = Z ( k ) , V z ( k ) , Roll ( k ) , Pitch ( k ) , Yaw ( k )
where Z ( k ) and V z ( k ) represent the vertical displacement and vertical velocity, respectively; and Roll ( k ) , Pitch ( k ) , Yaw ( k ) represents the attitude angle.
The vertical velocity and vertical displacement of the transition model is as follows [29]:
Z ( k + 1 ) V z ( k + 1 ) = 1 T s 0 1 Z ( k ) V z ( k ) + 0 0 T s 2 2 0 0 T s a x a y a z
where T s represents the sampling interval and a x , a y , a z represents the tri-axis acceleration, respectively.
EKF is triggered while the time moves to the moment where Zero Velocity Update (ZUPT) detects zero vertical velocity; the vertical velocity is then updated to zero. The algorithm flowchart for the EKF module is shown in Algorithm 1.
Algorithm 1 The EKF module.
Input: Accelerometers and gyroscopes collect acceleration and angular velocity data
  • Extract the vertical acceleration from acceleration.
  • Estimate the zero-velocity point using vertical acceleration.
  • Compensate for acceleration and angular velocity errors.
  • Use acceleration to calculate the quaternion.
  • Obtain the attitude angle from the quaternion.
  • Filter noise using EKF.

4.1.4. DR

Based on the step length, direction, and position at the k t h time, the pedestrian position at the ( k + 1 ) t h time is calculated as follows:
x ( k + 1 ) y ( k + 1 ) = x ( k ) y ( k ) + S L ( k ) × sin ( ψ ( k ) ) cos ( ψ ( k ) )
where x ( k ) and y ( k ) denote the pedestrian’s position at the k t h moment.

4.2. Multi-Dimensional Euclidean Distance for WiFi Matching

Single-point fingerprint matching is a common algorithm in WiFi fingerprint matching [10].Yet single-point matching suffers from a “jump point” problem, mainly due to large WiFi fluctuations. As shown in Figure 3, a “jump point” occurs when a pedestrian’s position is estimated. Each triangle represents the fingerprint matching position after WiFi fingerprint matching. The fourth triangle’s far distance from the other three triangles indicates an unreliable WiFi matching position.
A multidimensional fingerprint algorithm is proposed here to solve the jump point problem. By increasing the amount of historical fingerprint information and reducing the impact of single fingerprint matching, the fingerprint matching algorithm becomes more stable. In this case, n represents the number of WiFi access points collected simultaneously; the square represents the RSS of the access point; and k denotes the k t h time at which the WiFi fingerprint was collected; see Figure 4.
The received signal strength (RSS) of each WiFi access point is used as an element of a one-dimensional fingerprint. Multiple access points form a one-dimensional fingerprint at the same time. Multiple access points at different times constitute multi-dimensional WiFi fingerprints. Compared with a one-dimensional WiFi fingerprint, a multi-dimensional fingerprint can effectively reduce the occurrence of “jump points" in fingerprint matching results. The traditional Euclidean distance is only suitable for one-dimensional WiFi fingerprints. For multi-dimensional WiFi fingerprints, the traditional Euclidean distance needs to be modified. Considering the multi-dimensional attribute of WiFi fingerprint, the corresponding MED is proposed, which is calculated as follows:
d = i = k 3 k j = 1 n ( R S S ( i , j ) R S S d b ( i , j ) )
where R S S ( i , j ) denotes the j t h access point value at the i t h time in the online stage, and R S S d b ( i , j ) denotes the j t h access point value at the i t h time in the offline stage. After calculating the fingerprint distance, WKNN is used to estimate the WiFi fingerprint matching position. This process is described in detail in Reference [20].

4.3. The Adaptive Particle Filter for Pedestrian Localization

4.3.1. System Equation for the Adaptive Particle Filter

Different from the Kalman filter, the particle filter provides a nonlinear system state estimation technique [30]. Because particle filter technology is independent of the system model, this filter has been widely applied in various nonlinear and non-Gaussian system models. The state equation and observation equation of the particle filter are written as follows:
X k = f ( X k 1 ) + ω
Z k = h X k + ν
where f ( · ) and h ( · ) represent known processes and observation equations, respectively; X k and Z k represent the process state and the observed state at the k t h moment, respectively; and ω and ν represent the process noise and observation noise, respectively.
In DR, the step length, direction, and estimated position each contain a certain error. It is assumed that the step length noise, direction change noise, and pedestrian position noise obey the Gaussian distribution of zero mean. Based on DR, the process equation for the particle filter is defined as follows:
X k = f ( X k 1 ) + ω = L k 1 θ k 1 x k 1 y k 1 + Δ L Δ θ L k cos θ k L k sin θ k + ω
where L k 1 and θ k 1 represent the step length and direction at the ( k 1 ) t h time. ( x k 1 , y k 1 ) represents the pedestrian’s estimated position at ( k 1 ) t h time; and Δ L and Δ θ represent the pedestrian’s step length and direction change, respectively.
The WiFi positioning system can provide positioning results as a pedestrian walks. Combined with DR, the observation equation is written as follows:
Z k = h ( X k ) + ν = x D R y D R x W I F I y W I F I + ν
where x D R , y D R T represents the positioning result of DR and x W I F I , y W I F I T represents the positioning result of WiFi fingerprint matching.

4.3.2. Particle Weight Technique

In nonlinear systems, it is difficult to discern an analytical solution for a posteriori particle filter distribution. One feasible approach is to use the approximate solution instead of the analytical solution. A large number of particles are used to describe a posteriori distribution. A resampling technique has been introduced [31] to mitigate the sampling problem in a posteriori distribution:
q X 0 : k Z 1 : k = q X 0 : k 1 Z 1 : k 1 q X k X 0 : k 1 , Z 1 : k
The recursive formula for calculating the importance weight of each generation of particles is:
ω 1 k i = p X 0 : k Z 1 : k q X 0 : k Z 1 : k ω 1 k 1 i p Z k X k p X k X k 1 q X k X 0 : k 1 , Z 1 : k 1 ( 2 π ) m / 2 | R | 1 / 2 exp Z h X k , i T R 1 Z h X k , i 2
where Z represents the estimated observation; X k , i represents the priori estimated state vector; m represents the vector dimension; and R represents the observation noise.
In the improved particle filter, the weight of particles depends not only on the observation but also on the distance between the particles at the current moment and the historical moment. Considering that the pedestrian walking speed is usually 1 m/s to 1.5 m/s, the pedestrian position is constrained by the walking speed. The position of the previous moment is the center of the circle, and the distance between the position of the current moment and the position of the previous moment is the radius of the circle, forming a circle, as shown in Figure 5. As you can see from the figure, when the particles are in the circle, the weight of the particles should be higher. When the particles are outside the circle, the farther away the particles are, the lower the weight of the particles is. As such, an adaptive factor is proposed to calculate particles’ weight:
d i s t i = x e s t y e s t k i x ^ y ^
ω 2 k i = 1 1 + e d i s t i
where x e s t y e s t k i represents the i t h particle position at the k t h moment. x ^ y ^ represents the previous moment’s estimated particle position. · represents the norm. d i s t represents the distance between the position of the previous moment and the position of the current moment. ω 2 represents the particle weight.
Upon combining the two particle weight calculation methods, the new particle weight ω can be calculated as follows:
ω = ω 1 ω 2

4.3.3. Map Assistance

In the offline phase, floor structure map information is stored in the map database in advance. Newly generated particles need to be tested for effectiveness in the online phase. If a particle crosses the wall, then its weight is set to zero; if a particle does not cross the wall, then its original weight is used. The map assistance algorithm is described further in [22].

5. Experimental Results

5.1. Experimental Scene

The walking experiment was carried out in office buildings A and B. The test scene included metal, wood, and concrete structures. An adult male with a height of 1.7 m holds a smartphone to collect data and walks at a speed of 1 m/s to 1.4 m/s. The tester opens the software at the starting point and clicks the “Start Saving a Log File” button to start collecting data. Click the “Stop Saving” button at the endpoint to save the data. The mapper’s actual position was measured using a laser rangefinder. In the offline phase, the tester walked from the starting point to the end point while holding the smartphone while the smartphone’s WiFi chip collected the RSS value of AP. The WiFi fingerprint database was established based on the laser rangefinder and the corner of the used corridor. In the online phase, each test pedestrian held a smartphone which obtained the RSS value of AP at normal walking speed. The experimental walking distance in office buildings A and B was 123 m and 138 m, respectively. The real trajectory is shown in Figure 6. The circle represents the reference point. These reference points are used to calculate errors and evaluate the performance of the algorithm.

5.2. Acceleration and Gyroscope Data

The parameters of the smartphone are shown in Table 1, and the sampling frequency is set to 50Hz. Acceleration and angular velocity data obtained in office buildings A and B are depicted in Figure 7 and Figure 8, respectively. The acceleration was approximately periodic. The gait model was adopted to obtain pedestrians’ step length. Angular velocity clearly increased at the turning point.

5.3. WiFi Fingerprint Database

Limited by the size of the smartphone, the battery capacity is limited. To reduce battery consumption, smartphones scan WiFi relatively less frequently. Taking a Nexus 5X used to construct a fingerprint database as an example, the sampling frequency is 0.25 Hz. Spatial interpolation is an effective way to improve the spatial resolution of the WiFi fingerprint database. The spatial resolution of the fingerprint is improved to 0.1Hz by interpolation. The positioning errors of the original fingerprint database and the interpolated fingerprint database are shown in Table 2.

5.4. Multidimensional WiFi Fingerprint

Different values of WiFi fingerprint dimensions were simulated; the average error is listed in Table 3. The minimum position error was obtained via MED when using two-dimensional WiFi fingerprints. The error caused by abnormal fingerprints could be reduced by expanding the fingerprint dimensions.

5.5. Comparison between Multi-Dimensional Euclidean Distance and Euclidean Distance

Figure 9 shows the relationship between position error and cumulative distribution function (CDF). Compared with traditional ED, MED uses multidimensional fingerprints to effectively reduce the error caused by abnormal fingerprints.

5.6. Performance Analysis of an Adaptive Particle Filter

Figure 10 displays the position error of the traditional particle filter (PF) and adaptive PF. The APF positioning error tended to be lower than that of the traditional PF. APF uses map topology to constrain the particle range. In addition to being determined observationally, the particle weight is related to the distance between particles’ current and historical positions: the farther the distance, the lower the reliability.

5.7. Office Building A

Pedestrians walked on the predetermined trajectory in office building A with a Nexus 5 smartphone in hand. Figure 11 and Figure 12 show the positioning trajectories and cumulative distribution function (CDF) for DR, WiFi, PF, and MED+APF, respectively. As listed in Table 4, the average error for DR, WiFi, PF, and MED+APF was 8.03 m, 1.98 m, 3.45 m, and 1.51 m, respectively; the respective root mean square error was 10.02 m, 2.43 m, 4.82 m, and 1.92 m. The positioning trajectory was initially along the y-axis with a high positioning accuracy. As the pedestrians’ walking time lengthened, the positioning trajectory shifted well to the right, and the position error increased. DR reflected cumulative error in that the longer the pedestrian’s walking time, the larger the error. No cumulative error was found in WiFi fingerprint matching; however, fingerprint mismatching occurred. PF was thus adopted to integrate DR and WiFi. Aiming at the fingerprint mismatching caused by a “jump point” fingerprint, the multi-dimensional Euclidean distance algorithm introduces historical fingerprint information to reduce the position error. To solve the problem of particle degradation, the historical position information is introduced, and APF uses the adaptive factor to improve the weight of high trust particles and reduce the weight of low trust particles. These algorithms collectively improve the accuracy of pedestrian localization.

5.8. Office Building B

An adult man held a Nexus 5X smartphone that collected acceleration, angular velocity, and WiFi signals. Auxiliary value particle filter (AVPF) uses maps to determine particle weights [32]. If the particle crosses the wall, set its corresponding particle weight to zero. DR, WiFi, AVPF [32], and MED+APF positioning trajectories appear in Figure 13. the CDF of error is listed in Figure 14. DR exhibited an obvious cumulative error: the longer the running time, the greater the position error. The longer the running time, the greater the position error. The pedestrians’ position error was small when first walking, yet as their walking time increased, the position error deviated clearly from their actual position. The WiFi signal also fluctuated because fingerprint acquisition and matching occurred at different times, leading to mismatched WiFi fingerprint matching. Mismatching caused a particularly prominent error in the corridor corner. AVPF uses map assistance to detect particles’ validity and sets the particle weight to zero if the particle crosses the wall. Meanwhile, the map-matching algorithm further reduces position error. By adding dimension-related information from historical WiFi fingerprints, this work first employed MED to calculate the distance between WiFi online fingerprints and fingerprints in the fingerprint database. Then, considering the distance relationship between particles’ current and historical positions, an APF algorithm was proposed by introducing an adaptive factor.
The DR, WiFi, AVPF [32], and MED+APF position error appear in Table 5. Compared with DR, WiFi, and AVPF [32], the average error of MED+APF declined by 65.23%, 27.05%, and 13.17%, respectively; the root mean square error fell by 62.01%, 29.97%, and 26.37%, respectively. The best positioning algorithm was that proposed in this paper: MED+APF.

6. The Significance of the Proposed Method

This paper proposes a positioning algorithm that combines inertial sensors and WiFi based on existing WiFi access points. It is simple to update the software of the smart terminal, which is popular among consumers. Simultaneously, the multi-dimensional WiFi fingerprint algorithm is advantageous in reducing the occurrence of fingerprint mismatching and improving the accuracy of the fingerprint matching algorithm. Finally, the addition of DR historical position information alleviates the particle degradation problem.

7. Conclusions

The INS is less influenced by external interference and possesses high short-term positioning accuracy. However, DR error has a cumulative effect and larger long-term position error. Fingerprint mismatching occurred despite the lack of cumulative error, associated with WiFi fingerprint matching. This paper proposes an MED and an APF. MED uses multidimensional WiFi fingerprints to reduce fingerprint mismatching; APF uses an adaptive factor to increase the weight of highly trusted particles while reducing the weight of less trusted particles. These two methods can effectively reduce indoor position error.
Certain problems remain to be addressed in future work. First, the proposed algorithm must be applied in additional scenario tests to determine its robustness. Second, the particle filter requires extensive calculation; it is therefore necessary to consider how to reduce this computational burden. Third, more sensors can be integrated in the future to further reduce position error.

Author Contributions

Conceptualization, A.P.; methodology, A.P. and H.X.; software, Y.H. and B.T.; validation, B.T.; formal analysis, Y.H. and A.P.; investigation, Y.H. and A.P.; data curation, B.T.; writing—original draft preparation, Y.H.; writing—review and editing, H.X.; project administration, B.T.; funding acquisition, A.P. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the National Key Research and Development Program of China with Grant Number 2018YFB0505202, and XJZK201802.

Data Availability Statement

GitHub repository. Available online at: https://github.com/Localization-IMU.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
INSInertial navigation system
HDRHeuristic drift reduction
HDEHeuristic drift elimination
LDLinear dichroism
PFParticle filter
DRDead reckoning
APFAdaptive particle filter
MEDMulti-dimensional Euclidean distance
WKNNWeighted K nearest neighbor
CDFCumulative Distribution Function

References

  1. Martínez del Horno, M.; García-Varea, I.; Orozco Barbosa, L. Calibration of Wi-Fi-based indoor tracking systems for Android-based smartphones. Remote Sens. 2019, 11, 1072. [Google Scholar] [CrossRef] [Green Version]
  2. Sánchez-Rodríguez, D.; Quintana-Suárez, M.A.; Alonso-González, I.; Ley-Bosch, C.; Sánchez-Medina, J.J. Fusion of Channel State Information and Received Signal Strength for Indoor Localization Using a Single Access Point. Remote Sens. 2020, 12, 1995. [Google Scholar] [CrossRef]
  3. Ali, A.; El-Sheimy, N. Low-cost MEMS-based pedestrian navigation technique for GPS-denied areas. J. Sens. 2013, 2013, 1–11. [Google Scholar] [CrossRef] [Green Version]
  4. Borenstein, J.; Ojeda, L.; Kwanmuang, S. Heuristic Reduction of Gyro Drift. J. Navig. 2009, 62, 41–58. [Google Scholar] [CrossRef] [Green Version]
  5. Borenstein, J.; Ojeda, L. Heuristic drift elimination for personnel tracking systems. J. Navig. 2010, 63, 591–606. [Google Scholar] [CrossRef] [Green Version]
  6. Pinchin, J.; Hide, C.; Moore, T. A particle filter approach to indoor navigation using a foot mounted inertial navigation system and heuristic heading information. In Proceedings of the 2012 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Sydney, NSW, Australia, 13–15 November 2012; pp. 1–10. [Google Scholar]
  7. Zhao, W.; Gao, J.; Li, Z.; Yao, Y. An Indoor Positioning System Based on Map-Aided KF-PF Module. Geomat. Inf. Sci. Wuhan Univ. 2018, 43, 806–812. [Google Scholar]
  8. Zhuang, Y.; Li, Y.; Lan, H.; Syed, Z.; El-Sheimy, N. Wireless access point localization using nonlinear least squares and multi-level quality control. IEEE Wirel. Commun. Lett. 2015, 4, 693–696. [Google Scholar] [CrossRef]
  9. Li, Y.; Zhuang, Y.; Lan, H.; Zhang, P.; Niu, X.; El-Sheimy, N. WiFi-aided magnetic matching for indoor navigation with consumer portable devices. Micromachines 2015, 6, 747–764. [Google Scholar] [CrossRef] [Green Version]
  10. Li, Y.; Zhuang, Y.; Lan, H.; Niu, X.; El-Sheimy, N. A profile-matching method for wireless positioning. IEEE Commun. Lett. 2016, 20, 2514–2517. [Google Scholar] [CrossRef]
  11. Zhang, L.; Liu, Y.; Sun, J. A Hybrid Framework for Mitigating Heading Drift for a Wearable Pedestrian Navigation System through Adaptive Fusion of Inertial and Magnetic Measurements. Appl. Sci. 2021, 11, 1902. [Google Scholar] [CrossRef]
  12. Shi, S.; Gao, T.; Gao, D.; Ding, Z.; Zhang, Z. Inertial navigation aid indoor navigation based on the establishment of accurate magnetic reference map. J. Phys. Conf. Ser. 2021, 1802, 042022. [Google Scholar] [CrossRef]
  13. Qin, F.; Zuo, T.; Wang, X. CCpos: WiFi Fingerprint Indoor Positioning System Based on CDAE-CNN. Sensors 2021, 21, 1114. [Google Scholar] [CrossRef] [PubMed]
  14. Karkar, A.G.; Al-Maadeed, S.; Kunhoth, J. CamNav: A computer-vision indoor navigation system. J. Supercomput. 2021, 77, 7737–7756. [Google Scholar] [CrossRef]
  15. Bao, H.; Wong, W.-C. A Novel Map-Based Dead-Reckoning Algorithm for Indoor Localization. J. Sens. Actuator Netw. 2014, 3, 44–63. [Google Scholar] [CrossRef]
  16. Qian, J.; Ma, J.; Ying, R.; Liu, P.; Pei, L. An improved indoor localization method using smartphone inertial sensors. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Belfort, France, 28–31 October 2013; pp. 1–7. [Google Scholar]
  17. Tian, Q.; Salcic, Z.; Wang, K.I.K.; Pan, Y. A hybrid indoor localization and navigation system with map matching for pedestrians using smartphones. Sensors 2015, 15, 30759–30783. [Google Scholar] [CrossRef] [Green Version]
  18. Chen, P.; Kuang, Y.; Chen, X. A UWB/improved PDR integration algorithm applied to dynamic indoor positioning for pedestrians. Sensors 2017, 17, 2065. [Google Scholar] [CrossRef] [Green Version]
  19. Kang, W.; Han, Y. SmartPDR: Smartphone-based pedestrian dead reckoning for indoor localization. IEEE Sens. J. 2014, 15, 2906–2916. [Google Scholar] [CrossRef]
  20. Li, Y.; Zhuang, Y.; Lan, H.; Zhang, P.; Niu, X.; El-Sheimy, N. Self-contained indoor pedestrian navigation using smartphone sensors and magnetic features. IEEE Sens. J. 2016, 16, 7173–7182. [Google Scholar] [CrossRef]
  21. Wang, J.; Hu, A.; Li, X.; Wang, Y. An improved PDR/magnetometer/floor map integration algorithm for ubiquitous positioning using the adaptive unscented Kalman filter. ISPRS Int. J. Geo-Inf. 2015, 4, 2638–2659. [Google Scholar] [CrossRef] [Green Version]
  22. Yu, C.; El-Sheimy, N.; Lan, H.; Liu, Z. Map-based indoor pedestrian navigation using an auxiliary particle filter. Micromachines 2017, 8, 225. [Google Scholar] [CrossRef] [Green Version]
  23. Li, Z.; Liu, C.; Gao, J.; Li, X. An improved WiFi/PDR integrated system using an adaptive and robust filter for indoor localization. ISPRS Int. J. Geo-Inf. 2017, 5, 224. [Google Scholar] [CrossRef] [Green Version]
  24. Zhuang, Y.; El-Sheimy, N. Tightly-coupled integration of WiFi and MEMS sensors on handheld devices for indoor pedestrian navigation. IEEE Sens. J. 2015, 16, 224–234. [Google Scholar] [CrossRef]
  25. Li, Z.; Zhao, L.; Qin, C.; Wang, Y. WiFi/PDR integrated navigation with robustly constrained Kalman filter. Meas. Sci. Technol. 2020, 31, 084002. [Google Scholar] [CrossRef]
  26. Chen, J.; Ou, G.; Peng, A.; Zheng, L.; Shi, J. An INS/WiFi indoor localization system based on the Weighted Least Squares. Sensors 2018, 18, 1458. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  27. Deng, Z.A.; Wang, G.F.; Hu, Y.; Wu, D. Heading estimation for indoor pedestrian navigation using a smartphone in the pocket. Sensors 2015, 15, 21518–21536. [Google Scholar] [CrossRef]
  28. Brajdic, A.; Harle, R. Walk detection and step counting on unconstrained smartphones. In Proceedings of the 2013 ACM International Joint Conference on Pervasive and Ubiquitous Computing, New York, NY, USA, 28–31 October 2013; pp. 225–234. [Google Scholar]
  29. Zheng, L.; Wu, Z.; Zhou, W.; Weng, S.; Zheng, H. A smartphone based hand-held indoor positioning system. In Frontier Computing; Springer International Publishing: Cham, Switzerland, 2016; pp. 639–650. [Google Scholar]
  30. Moghaddasi, S.S.; Faraji, N. A hybrid algorithm based on particle filter and genetic algorithm for target tracking. Expert Syst. Appl. 2020, 147, 113188. [Google Scholar] [CrossRef]
  31. Chen, J.; Ou, G.; Peng, A.; Zheng, L.; Shi, J. An INS/floor-plan indoor localization system using the firefly particle filter. ISPRS Int. J. Geo-Inf. 2018, 7, 324. [Google Scholar] [CrossRef] [Green Version]
  32. Yu, C.; Lan, H.; Gu, F.; Yu, F.; El-Sheimy, N. A map/INS/Wi-Fi integrated system for indoor location-based service applications. Sensors 2017, 17, 1272. [Google Scholar] [CrossRef]
Figure 1. Algorithm framework of MED and APF.
Figure 1. Algorithm framework of MED and APF.
Sensors 21 08228 g001
Figure 2. Pedestrian walking posture.
Figure 2. Pedestrian walking posture.
Sensors 21 08228 g002
Figure 3. A “jump point” for WiFi fingerprint matching.
Figure 3. A “jump point” for WiFi fingerprint matching.
Sensors 21 08228 g003
Figure 4. The multi-dimensional WiFi fingerprint matching.
Figure 4. The multi-dimensional WiFi fingerprint matching.
Sensors 21 08228 g004
Figure 5. Schematic diagram of pedestrian walking relationship.
Figure 5. Schematic diagram of pedestrian walking relationship.
Sensors 21 08228 g005
Figure 6. The real trajectories in the office building A and B. (a) The office building A; (b) The office building B.
Figure 6. The real trajectories in the office building A and B. (a) The office building A; (b) The office building B.
Sensors 21 08228 g006
Figure 7. Acceleration in the office building A and B. (a) The office building A; (b) The office building B.
Figure 7. Acceleration in the office building A and B. (a) The office building A; (b) The office building B.
Sensors 21 08228 g007
Figure 8. Angular velocity in the office building A and B. (a) Office building A; (b) Office building B.
Figure 8. Angular velocity in the office building A and B. (a) Office building A; (b) Office building B.
Sensors 21 08228 g008
Figure 9. CDF of errors.
Figure 9. CDF of errors.
Sensors 21 08228 g009
Figure 10. Position errors.
Figure 10. Position errors.
Sensors 21 08228 g010
Figure 11. Positioning trajectories with different strategies. (a) DR; (b) WiFi; (c) PF; (d) MED+APF.
Figure 11. Positioning trajectories with different strategies. (a) DR; (b) WiFi; (c) PF; (d) MED+APF.
Sensors 21 08228 g011
Figure 12. CDF of errors.
Figure 12. CDF of errors.
Sensors 21 08228 g012
Figure 13. Positioning trajectories with different strategies. (a) DR; (b) WiFi; (c) AVPF [32]; (d) MED+APF.
Figure 13. Positioning trajectories with different strategies. (a) DR; (b) WiFi; (c) AVPF [32]; (d) MED+APF.
Sensors 21 08228 g013
Figure 14. CDF of errors.
Figure 14. CDF of errors.
Sensors 21 08228 g014
Table 1. The Parameters of Sensor.
Table 1. The Parameters of Sensor.
SensorModelResolutionMaxRange
AccelerationBMl1600.0023942017 m/s 2 78.4532 m/s 2
GyroscopeBMl1600.0010652645 rad/s34.906586 rad/s
Table 2. Position errors (m).
Table 2. Position errors (m).
Average Error
The original fingerprint database5.77
The interpolated fingerprint database1.98
Table 3. Position errors (m).
Table 3. Position errors (m).
WiFi Fingerprint Dimension1234
Average error2.432.282.292.41
Table 4. Position errors of DR, WiFi, PF, and MED+APF (m).
Table 4. Position errors of DR, WiFi, PF, and MED+APF (m).
Position ErrorAverage ErrorRoot Mean Square Error
DR8.0310.02
WiFi1.982.43
AVPF3.454.82
MDE+APF1.511.92
Table 5. Position errors of DR, WiFi, AVPF [32], and MED+APF (m).
Table 5. Position errors of DR, WiFi, AVPF [32], and MED+APF (m).
Position ErrorAverage ErrorRoot Mean Square Error
DR5.125.66
WiFi2.443.07
AVPF2.052.92
MED+APF1.782.15
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hu, Y.; Peng, A.; Tang, B.; Xu, H. An Indoor Navigation Algorithm Using Multi-Dimensional Euclidean Distance and an Adaptive Particle Filter. Sensors 2021, 21, 8228. https://doi.org/10.3390/s21248228

AMA Style

Hu Y, Peng A, Tang B, Xu H. An Indoor Navigation Algorithm Using Multi-Dimensional Euclidean Distance and an Adaptive Particle Filter. Sensors. 2021; 21(24):8228. https://doi.org/10.3390/s21248228

Chicago/Turabian Style

Hu, Yunbing, Ao Peng, Biyu Tang, and Hongying Xu. 2021. "An Indoor Navigation Algorithm Using Multi-Dimensional Euclidean Distance and an Adaptive Particle Filter" Sensors 21, no. 24: 8228. https://doi.org/10.3390/s21248228

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop