Next Article in Journal
Indoor Pedestrian Self-Positioning Based on Image Acoustic Source Impulse Using a Sensor-Rich Smartphone
Next Article in Special Issue
Lightweight Workload Fingerprinting Localization Using Affinity Propagation Clustering and Gaussian Process Regression
Previous Article in Journal
A High Compressibility Pressure—Sensitive Structure Based on CB@PU Yarn Network
Previous Article in Special Issue
A Fast ML-Based Single-Step Localization Method Using EM Algorithm Based on Time Delay and Doppler Shift for a Far-Field Scenario
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Indoor Positioning Based on Pedestrian Dead Reckoning and Magnetic Field Matching for Smartphones

1
GNSS Research Center, Wuhan University, No. 129 Luoyu Road, Wuhan 430079, China
2
Collaborative Innovation Center of Geospatial Technology, Wuhan University, No. 129 Luoyu Road, Wuhan 430079, China
3
State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University, No. 129 Luoyu Road, Wuhan 430079, China
*
Author to whom correspondence should be addressed.
Sensors 2018, 18(12), 4142; https://doi.org/10.3390/s18124142
Submission received: 8 September 2018 / Revised: 15 November 2018 / Accepted: 23 November 2018 / Published: 26 November 2018
(This article belongs to the Collection Positioning and Navigation)

Abstract

:
This paper presents an ambient magnetic field map-based matching (MM) positioning algorithm for smartphones in an indoor environment. To improve the low distinguishability of a magnetic field fingerprint at a single point, a magnetic field sequence (MFS) combined with the measured trajectory contour coming from pedestrian dead-reckoning (PDR) is used for MM. Based on the fast approximation of magnetic field gradient, a Gauss-Newton iterative (GNI) method is used to find a rigid transformation that optimally aligns the measured MFS with a reference MFS coming from the magnetic field map. Then, the position of the reference MFS is used to control the position drift error of the inertial navigation system (INS) based PDR by an extended Kalman filter (EKF) and to further improve the accuracy of the trajectory contour. Finally, we conduct several experiments to evaluate the navigation performance of the proposed MM algorithm. The test results show that the position estimation error of the MM algorithm is 0.64 m (RMS) in an office building environment, 1.87 m (RMS) in a typical lobby environment, and 2.34 m (RMS) in a shopping mall environment.

1. Introduction

Global navigation satellite systems (GNSSs) can provide accurate location service for pedestrians in open-sky outdoor scenarios, but GNSSs are hindered by signal attenuation and blockage in certain environments (e.g., indoor environments). Therefore, to provide ubiquitous location service, a number of technologies have been developed for indoor positioning, such as pseudo-satellites [1], ZigBee [2], ultra-wideband (UWB) [3], radio frequency identification (RFID) [4], infrared [5], ultrasonic [5], iBeacon [6]. These methods are all capable of providing a high-precision positioning service for pedestrians over a long time scale in an indoor environment. However, specialized provisioning and regular maintenance are necessary in order to sustain the performance of the system. Their costs are therefore always very high for a wide coverage area.
Smartphone-based Wi-Fi fingerprint localization technology has become the most popular indoor positioning method due to the worldwide availability of Wi-Fi access points (APs) and the unprecedented growth of smartphones with built-in Wi-Fi receivers. Unfortunately, it is still expensive to maintain a robust Wi-Fi-based localization system due to the unexpected changes in the position and working status of Wi-Fi APs [7,8].
Recently, many researchers have found that precise indoor positioning based on magnetic fingerprints will become possible due to the intense magnetic field interference and anomalies caused by the metal structure of the building [9]. Subbu et al. [10] analyzes the feasibility of indoor magnetic field-based positioning method from the aspects of building structure, smartphone types, the placement of a smartphone, the presence of a furniture and the presence of personal metallic objects. Compared with Wi-Fi fingerprints, magnetic field fingerprint-based positioning has many advantages: (a) magnetic fields are available everywhere and there is no deployment requirement for extra specialized infrastructure; (b) the distribution of the magnetic field is quite steady over a given time scale of several months [11,12,13,14], and the number of people in spaces have little effect on the magnetic field [15,16]; (c) magnetic field fingerprint-based positioning has better positioning performance than Wi-Fi fingerprints [17,18].
There have been increasing efforts in exploiting ambient magnetic-based indoor positioning methods for pedestrians using a smartphone [19]. Magnetic field sequence-based dynamic time warping (DTW) and single point magnetic field-based particle filter (PF) are the two typical methods. Subbu and Riehle et al. [20,21] describe the basic process of using DTW to calculate the similarity between the measured MFS and the candidate MFS coming from the magnetic field map. The follow-up research can be divided into three categories: (a) to eliminate the influence of device heterogeneity, the differential values of the measured and candidate MFS are used to do a comparison [22]; (b) based on the fact that the distribution of magnetic field varies with the spatial scale, these systems perform the DTW after resampling the raw magnetic field measurement according to the user’s moving distance given by a PDR [10]; (c) for the magnetic field fingerprint is not unique over a wide range of region [11,15], many other methods are used to reduce the search scope, such as Wi-Fi fingerprints [8], building structures (e.g., doors and corners) [13], and the pre-planned reference track when navigating [22]. The basic principle of DTW-based MM is revisiting the historical trajectory stored in the magnetic field map during the positioning phase. Thus, this algorithm will perform poorly in open indoor areas because the user’s walking trajectories cannot be predicted well during the magnetic field map training phase.
Different from DTW, PF keeps the basic framework of the filtering idea that individually processing a single point magnetic field measurement, and recursively re-samples a set of particles according to the results of comparing the measured magnetic fingerprint and the reference magnetic fingerprint to converge to the true position. Experiments in [23] show that the single point magnetic field-based particle filter has the ability to converge to the real position in a straight corridor environment. Grand et al. [16] presents an online particle filter that achieved localization accuracy of 0.7 m in a square room. Putta et al. [24] uses gradient descent algorithm to improve users’ heading estimation, and utilizes magnetic field maps and indoor maps to improve the particles weight estimation. Test results show that the system achieves a mean localization accuracy of 0.75 m. Kim et al. [25,26] propose magnetic gradient sequence based technique to mitigate the influence of the bias of magnetometer, which has much more adaptable to different user devices than the conventional PF. Xie et al. [27] applied an adaptive step length estimation algorithm, magnetic field gradient sequence and a heuristic particle resampling algorithm to PF, and the results showed that this system has an excellent robustness, convergence speed and positioning accuracy performance. As reported in [16,17,23,24,25,26,27,28,29,30], PF performs well in robustness, positioning accuracy, and ease of implementation. However, improper setting of motion estimation, particle weight update and resampling may lead to slow convergence and less robustness to external signal noise. Moreover, to ensure the positioning performance, the number of particles cannot be too small, so its large computational load is still not suitable for smartphones.
Inspired by the traditional magnetic field matching algorithms, we use magnetic field sequences combined with the trajectory contour to improve the positioning performance of a smartphone. The traditional algorithms mainly include the terrain contour matching (TERCOM) and the iterative closest contour point (ICCP). TERCOM holds on the idea that the measured trajectory from an inertial navigation system (i.e., INS) has an error in the initial position [31]. Thus, only the position translation is considered when calculating the similarity of the observed MFS and the reference MFS in the magnetic field map. In contrast to TERCOM, ICCP based on the idea that the initial position error and heading error have the same influence on the similarity calculation [32].
Due to the fact smartphones’ built-in micro-electromechanical-system (MEMS) IMU (consisting of a tri-gyroscope and a tri-accelerometer) are generally of poor quality, different from TERCOM and ICCP, we use a pedestrian dead reckoning (PDR) method instead of the pure strap down inertial navigation algorithm to generate the contour feature of a magnetic field sequence. The pedestrian-gait-model-based (i.e., gait-based) and inertial-navigation-system-based (i.e., INS-based) are the two typical PDR methods [33]. Gait-based PDR determines pedestrians’ position following four basic modules: step event detection, step length estimation, moving direction estimation and two-dimensional (2D) position calculation [34,35]. INS-based PDR propagates the users’ position by integrating the angular rate and specific force coming from the tri-gyroscope and tri-accelerometer, respectively [33,36,37,38]. This strategy uses the estimated step length to produce a moving velocity update and position increment update to improve the PDR navigation performance. Based on the test results of [33], INS-based PDR will be more suitable for providing the contour feature than gait-based since its higher output data rate and more robust navigation performance.
In this paper, we present an ambient magnetic field-based positioning method for smartphones indoors. To improve the low distinguishability of the magnetic field fingerprint at a single point, an MFS combined with the measured trajectory contour coming from an INS-based PDR is used for MM instead. Based on the fast approximation of magnetic field gradient, we employ a GNI method to find the reference sequence with the highest similarity to the measured sequence in the magnetic field map. Then, the position of the MM is used to control the navigation error accumulation of the INS by an extended Kalman filter (EKF) and improve the accuracy of the trajectory contour. Finally, we describe several experiments conducted to evaluate the positioning performance of the proposed algorithm.
This paper makes the following three main contributions:
  • We employ a strap-down INS-based PDR to provide the relative trajectory contour for a MFS, which can improve the low distinguishability of the magnetic field fingerprint at a single point.
  • We devise a novel online magnetic-field-fingerprint-based matching positioning method (e.g., Gauss-Newton iterative method). The proposed algorithm is suitable for smartphone because of its high positioning accuracy and low computational load.
  • We implement the proposed method on Android smartphones and evaluate it in three buildings with 2 participants. The position errors are 0.64 m (RMS) in an office building environment, 1.87 m (RMS) in a typical lobby environment, and 2.34 m (RMS) in a shopping mall environment.
The remainder of the paper is organized as follows: Section 2 summarizes the indoor positioning solution process and gives a detailed description of each module, such as sensors calibration, INS mechanization, the designed EKF, measurement information updating, magnetic field map training, and the magnetic matching method; Section 3 investigates the positioning performance of the proposed magnetic matching method; Section 4 discusses the advantages and disadvantages of the proposed method; and Section 5 draws the conclusions.

2. Materials and Methods

Figure 1 shows our proposed indoor positioning method. The output of the IMU is utilized to set up the INS mechanization and detect the motion states (i.e., quasi-static and step detection). If the quasi-static state detection is successful, zero-velocity update technology (ZUPT) and a zero angular rate update (ZARU) are used as the velocity update and heading update, respectively, for the INS to control the velocity error and improve the heading estimation. However, if the quasi-static state detection fails and the step detection is successful, the step length estimation is executed to calculate the walking velocity of the pedestrians. The walking velocity functions as the velocity update for the INS to improve the velocity estimation. The tri-magnetometer measurements combine with the trajectory contour coming from INS are input into the data buffer to set up the MFS. If the buffered length of the magnetic field data exceeds the preset threshold, the raw MFS is resampled and a Gauss-Newton iterative method is used to find a reference sequence with the highest similarity to the measured sequence in the magnetic field map. If MM is successful, the position of the reference MFS functions as a position update for controlling the navigation error of the INS and improving the accuracy of the trajectory contour.

2.1. Sensors Calibration

Due to the inevitable presence of sensor error, the output of the tri-magnetometer will not reflect the real magnetic field of the surrounding environment. Therefore, it is necessary to perform the sensor calibration process before using a tri-magnetometer to perceive the magnetic field.
In general, the sensor error of a tri-magnetometer can be divided into hard iron and soft iron effects [39,40]. The hard iron effect is only an additional magnetic field generated by permanent magnets or electrical currents, and the soft iron effect is caused by a material that produces its own magnetic field in intensity and direction. These materials respond to and distort the underlying magnetic field [41]. As the effect of the soft iron effect is small and common, we calibrate only the hard iron effect to simplify the calibration process. Figure 2 shows the calibration result of the Huawei P10 built-in tri-magnetometer, and a detailed calibration algorithm can be found in [42]. In addition, the bias of tri-gyroscope and tri-accelerometer will not be calibrated separately, as we will estimate them in the online positioning phase by using the designed algorithm.

2.2. INS-Based Navigation

As the magnetic field fingerprint has a maximum of only three components at one point, we utilize a PDR method to produce a relative trajectory contour to improve the discrimination of the magnetic field fingerprint. As the gait-based PDR has a typical output rate of 1–2 Hz in position, we use an INS-based PDR with a higher frequency output (e.g., 50 Hz) to provide a relative trajectory contour alternative [33].

2.2.1. INS Mechanization

The basic idea of INS mechanization is that the position, velocity, and attitude of an object can be obtained by integrating the specific forces and angular rates provided by tri-accelerometers and the tri-gyroscope. Due to the low quality of smartphones’ built-in MEMS IMU, we have neglected certain small error correction terms (i.e., rotation of the Earth) of the INS mechanization for their slight improvement in navigation performance. Discrete INS mechanization algorithm equations can be presented in simplified form as follows [33]:
( r k n v k n C b , k n ) = ( r k 1 n + v k n Δ t v k 1 n + [ C b , k n ( f ˜ k b b a ) g n ] Δ t C b , k 1 n + C b , k 1 n Ω [ ( ω ˜ k b b g ) Δ t ] )
where r n represents the position vector in the navigation coordinate system frame (i.e., n-frame); v n is the velocity vector in the n-frame; C b n is the transformation matrix from the body coordinate system (i.e., b-frame) to the n-frame as a function of attitude components; g n = [ 0 0 g ] T and is the Earth gravity vector in the n-frame; f ˜ b and ω ˜ b are the acceleration and angle rate measurement vector, respectively; b a and b g are the bias vector of the tri-accelerometer and tri-gyroscope, respectively; Δ t = t k t k 1 is the time interval between the (k − 1)-th and k-th epochs; and Ω [ ] is the cross-product form of a vector.

2.2.2. Extended Kalman Filter Design

Low-grade MEMS IMUs always have large acceleration and gyroscope biases, which will cause a rapid accumulation of positioning errors for a MEMS–IMU-based positioning system. To fix this issue, an EKF is usually used to fuse multi-source observations to improve the system availability and positioning accuracy. The state variables in the proposed method are defined as follows [33]:
δ x = [ ( δ r n ) 1 × 3 ( δ v n ) 1 × 3 ψ 1 × 3 ( b g ) 1 × 3 ( b a ) 1 × 3 ] T
where δ r n represents the position error vector in the n-frame, δ v n the velocity error vector in the n-frame, and ψ the attitude error vector in the n-frame. b g , b a are the bias error vectors of the tri-gyroscope and tri-accelerometer, respectively. The discrete linearization of the system error model can be expressed as follows:
{ δ x k | k 1 = Φ k 1 δ x k 1 | k 1 + w k δ z k = H k δ x k | k 1 + v k
where the subscripts k − 1 and k represent the epoch, δ z represents the measurement misclosure vector, H the design matrix, w the process noise, v the measurement noise, Φ the 15 × 15 state transition matrix can be found in the reference [33].

2.2.3. Measurement Information Update

Abundant constraint information can be used as measurement information for improving the navigation performance of the INS, such as the gravity vector, quasi-static magnetic field vector, zero-velocity update technology (ZUPT), zero angular rate update (ZARU), and gait-model based velocity vector. The proposed algorithm considers that the basic pattern of human motion performs a stationary state in the absence of movement or repeated walking [43]. Thus, ZUPT and gait-model based velocity vector will be available.
To separate the “static” state and the “walking” state, the raw output of the tri-accelerometer and tri-gyroscope is employed to detect the stationary state period:
1 W k = 1 W ( ω k b 2 σ ω 2 + 1 σ f 2 f k b g n f ¯ b f ¯ b ) < ε
where W represents the window length of the stationary state detection, ω k b and f k b are the vectors of the angular rate and the specific force at epoch k, respectively; f ¯ b is the mean value vector of the specific force, σ ω and σ f are the sensor noises of the gyros and accelerometer, respectively; and ε is the threshold of the stationary state determination. If the pedestrian is detected as the “static” state, the velocity should be zero. A velocity observation equation in the n-frame for ZUPT is given by:
δ z v = v ^ i n s n [ 0 0 0 ] T = δ v n + n v
where v ^ i n s n represents the velocity vector coming from the INS mechanization in the n-frame and n v is the measurement noise. Moreover, the change in heading should be zero. A heading observation equation in the n-frame for ZARU is given by:
δ z ψ = ψ ^ i n s ψ s t o r e = [ ψ ϕ x ψ ϕ y ψ ϕ z ] ϕ + n ψ
where ψ ^ i n s represents the heading coming from the INS mechanization, ψ s t o r e is the stored heading at the first epoch of the stationary state period, and n ψ the measurement noise. [ ψ ϕ x ψ ϕ y ψ ϕ z ] represents the heading design matrix, the detailed equation of which can be found in reference [44].
In the “walking” state, we can reasonably assume that there is speed only in the forward direction, while the velocity is zero in the lateral and vertical directions. The peak detection algorithm is employed to detect a step event for its lower computation, and the Weinberg model is utilized to estimate the step length due to less-estimated parameters [33]. After the step estimation is completed, the velocity vector in the b-frame can be expressed as follows:
v ˜ b = [ S L / Δ t 0 0 ] T
where S L represents the step length. The computed velocity between the adjacent two steps in the b-frame can be expressed as:
v ^ b C ^ n b v ^ n v b + C n b δ v n C n b ( v n × ) ψ
and the velocity observation equation in the b-frame is given by:
δ z v = v ^ b v ˜ b = C n b δ v n C n b ( v n × ) ψ + n v

2.3. Magnetic Field Matching Positioning

Magnetic field contour matching positioning mainly includes two phases: an offline training phase and an online positioning phase. In the offline training phase, a one-to-one correspondence between the geographic coordinates and the magnetic field fingerprints is established (i.e., a magnetic field map). In the online positioning phase, a sequence coming from the magnetic field map with the highest similarity to the measured sequence will be determined (i.e., matching positioning).

2.3.1. Offline Training Phase

Although a magnetic field fingerprint has a maximum of three components at one point, only two components are available because the absolute heading is often unknown or inaccurate. We use the roll and pitch arising from INS mechanization to obtain the horizontal and vertical components of the magnetic field strength. The vertical magnetic intensity can be calculated as follows [8]:
m v = sin θ m x + sin ϕ cos θ m y + cos ϕ cos θ m z
where m x , m y , m z represent the raw measurement of tri-magnetometer, ϕ , θ are the roll and pitch, respectively; and m v is the vertical component of the magnetic intensity. The horizontal component of the magnetic intensity can be obtained as m h = m 2 m v 2 , where m = m x 2 + m y 2 + m z 2 represents the total magnetic intensity. Thus, the magnetic field fingerprint can be expressed as M = [ m h , m v ] at one point.
To ensure the positioning accuracy of MM, a high-precision magnetic field map is necessary. The coordinates of the reference points (RPs) and the observations of the magnetic field at the RPs are the two main factors affecting the accuracy of the magnetic field map. As per the description of Section 2.1, the error of the magnetic field observations from the tri-magnetometer can be ignored after the bias calibration process. Thus, the key is determining how to obtain accurate coordinates of the RPs to generate a high-precision magnetic field map.
Various methods have been designed for measuring the coordinates of RPs indoors. Standing still at each RP to measure the magnetic field strength is a typical method for generating a magnetic field map. First, the interested area is equally divided into a number of grids, and a survey method (e.g., total station) is used to measure the coordinates of the grids (i.e., the coordinates of the RPs). Second, the surveyors will stand at each RP for a few seconds to collect the magnetic field data. It is obvious that standing still at each RP cannot meet the need to produce a magnetic field map for a wide area due to its complex procedure and low efficiency. To fix this issue, the walking survey (WS) inspired by the method of standing still at each RP and PDR is proposed to improve the work efficiency of building a magnetic field map. The basic idea is to use the planning trajectories (consisting of many straight lines) to ensure the surveying density of the RPs. And to obtain high precision coordinates of the RPs, the sparse waypoints (i.e., points with known coordinates) and the constant walk velocity constraint are necessary [45].
In addition, an automatic robot with a tri-magnetometer can be utilized to train the magnetic field map [16]. As the robot uses the simultaneous localization and mapping (i.e., SLAM) to determine its own position without prior knowledge of the test environment and assistance from the other survey methods [46], it has excellent performance in providing the high-precision coordinates of the RPs. However, an automatic robot will cost approximately 20 times the price of a smartphone; thus, the cost of this method will grow dramatically when a large area must be covered at the same time. Furthermore, the electromagnetic field caused by the robot’s motor will distort the underlying magnetic field.
In this paper, we choose WS method to build a magnetic field map considering balancing of the mapping accuracy, efficiency and labor costs. Concretely, we first select a number of waypoints (e.g., a corner or a pillar), considering the actual spatial structure of the interested area, data collection efficiency, and data sampling density, and we get the coordinates of all the waypoints referring to the existing digital plane map. Second, the surveyors walk along a straight line at a constant speed from one waypoint to the next waypoint and mark the time when passing by each waypoint. Finally, the coordinates of the RPs between the adjacent waypoints are calculated by linear interpolation of time. Figure 3 shows the procedure of training the magnetic map using WS method. The symbol “ L i ” represents a waypoint, “ R P i ” represents an RP, and F M i = { P i , M i } represents the magnetic field fingerprint of an RP. The coordinates of R P i between “ L 1 ” and “ L 2 ” can be calculated as follows:
P R P i = P L 1 + T R P i T L 1 T L 2 T L 1 ( P L 2 P L 1 )
where T represents the time of passing a waypoint.
To generate a magnetic field map with evenly distributed RPs, we collect the magnetic field data along the lines parallel to the x-axis of the room or along lines parallel to the y-axis, as shown in Figure 4. Finally, a linear interpolation method introduced by [16] is used to produce a grid magnetic field map with a resolution of 0.1 m.

2.3.2. Online Positioning Phase

Unlike for a Wi-Fi fingerprint that has high data dimensionality for matching, a maximum of three components is far from enough to achieve accurate matching positioning for a magnetic field fingerprint. Thus, we use the historical magnetic field data and corresponding relative coordinates to construct an MFS with contour features (i.e., spatial topological relationship composed of the relative coordinates), as shown in the following equation:
S e q i = { P i k + 1 M i k + 1 P i 1 M i 1 P i M i }
where k represents the length of magnetic field data and i is the epoch of an MFS. Next, we will describe how to use the Gauss-Newton iteration method to perform magnetic field contour matching positioning. As per the description in Section 2.3.1, a grid magnetic field map is composed of many discrete RPs, which limits the precision of obtaining a reference magnetic field strength value. Thus, a bilinear interpolation is employed to obtain a more precise reference magnetic field strength value from the grid magnetic field map.
Given the coordinates P k of an observation point, the corresponding reference magnetic field strength vector M ( P k ) , and the gradient vectors M ( P k ) x and M ( P k ) y can be approximated using the coordinates of the four closest RPs ( P 00 , P 01 , P 10 , P 11 ) , as depicted in Figure 5. A linear interpolation along the x-axis and y-axis then yields [46]:
M ( P k ) y y 0 ( x 1 x 0 ) ( y 1 y 0 ) [ ( x x 0 ) M ( P 11 ) + ( x 1 x ) M ( P 01 ) ] + y 1 y ( x 1 x 0 ) ( y 1 y 0 ) [ ( x x 0 ) M ( P 10 ) + ( x 1 x ) M ( P 00 ) ]
The derivatives can be expressed as follows:
M ( P k ) x y y 0 ( x 1 x 0 ) ( y 1 y 0 ) ( M ( P 11 ) M ( P 01 ) ) + y 1 y ( x 1 x 0 ) ( y 1 y 0 ) ( M ( P 10 ) M ( P 00 ) )
M ( P k ) y x x 0 ( x 1 x 0 ) ( y 1 y 0 ) ( M ( P 11 ) M ( P 10 ) ) + x 1 x ( x 1 x 0 ) ( y 1 y 0 ) ( M ( P 01 ) M ( P 00 ) )
The basic principle of MM is to find a rigid transformation so that the measured MFS is optimally aligned with a reference MFS coming from the magnetic field map. The proposed MM method uses the GNI algorithm inspired by the work in Lidar 2D SLAM [46] to find this rigid transformation. The GNI algorithm can help us quickly find the optimal transformation parameters based on the magnetic field gradient instead of traversing a fixed area in the magnetic field map.
We assume the rigid transformation as:
ξ = [ p x 0 , p y 0 , Δ φ ] T
where ( p x 0 , p y 0 ) and Δ φ represent the shift scale and rotation scale for the measured MFS, respectively. Our aim is to find a rigid transformation ξ to minimize:
ξ = arg min ξ k = 1 n i = 1 2 ( M k , i M i ( P k ( ξ ) ) ) 2
where M k , i represents the measured MFS of the tri-magnetometer, M i ( P k ( ξ ) ) is the reference MFS coming from the magnetic field map. k represents the measurement epoch, i is the element of a magnetic field fingerprint vector, and P k ( ξ ) is a function of ξ , as per the following equation:
P k ( ξ ) = ( cos ( Δ φ ) sin ( Δ φ ) sin ( Δ φ ) cos ( Δ φ ) ) ( p x , k p y , k ) + ( p x 0 p y 0 )
where ( p x , k , p y , k ) represents the estimated coordinates of the measured sequence coming from the INS mechanization. Given the starting estimated ξ , we want to estimate Δ ξ , which optimizes the measure error according to:
k = 1 n i = 1 2 ( M k , i M i ( P k ( ξ + Δ ξ ) ) ) 2 0
Based on the first order Taylor expansion of M i ( P k ( ξ + Δ ξ ) ) , we obtain:
k = 1 n i = 1 2 ( M k , i M i ( P k ( ξ ) ) M i ( P k ( ξ ) ) P k ( ξ ) ξ Δ ξ ) 2 0
This equation is minimized by setting the partial derivative with respect to Δ ξ to zero:
2 k = 1 n i = 1 2 [ M i ( P k ( ξ ) ) P k ( ξ ) ξ ] T [ M k , i M i ( P k ( ξ ) ) M i ( P k ( ξ ) ) P k ( ξ ) ξ Δ ξ ] = 0
Solving for Δ ξ yields the Gauss-Newton equation for the minimization problem:
Δ ξ = H 1 k = 1 n i = 1 2 [ M i ( P k ( ξ ) ) P k ( ξ ) ξ ] T [ M k , i M i ( P k ( ξ ) ) ]
where:
H = [ M i ( P k ( ξ ) ) P k ( ξ ) ξ ] T [ M i ( P k ( ξ ) ) P k ( ξ ) ξ ]
An approximation for the magnetic field gradient M i ( P k ( ξ ) ) can be found in Equations (14) and (15). From Equation (16), we obtain:
P k ( ξ ) ξ = ( 1 0 sin ( Δ φ ) p x , k cos ( Δ φ ) p y , k 0 1 cos ( Δ φ ) p x , k sin ( Δ φ ) p y , k )
Thus, the Gauss-Newton Equation (19) can now be evaluated, yielding a step closer to the minimum. It is important to note that the algorithm works on non-smooth linear approximations of the magnetic field gradient, meaning that the local quadratic convergence towards a minimum cannot be guaranteed. Nevertheless, the algorithm works with sufficient accuracy in practice.

2.4. INS/MM Integrated Navigation Solution

INS-based navigation is a relative positioning method, and its position errors are proportional to the distance traveled, and the magnetic field contour matching positioning is greatly affected by trajectory accuracy. To further improve the navigation performance, the positioning result of MM is also used to control the position drift of the INS-based PDR in the integrated system. The misclosure of the positioning result of MM in the n-frame is given by:
δ z p = p ^ I N S n p ˜ M M n
where p ^ I N S n represents the position vector calculated by INS in the n-frame, and p ˜ M M n is the position error vector of MM. The observation equation is formulated as:
δ z r = H M M δ x + n M M
where n M M represents the white noise of the MM position and H M M , the corresponding design matrix, can be expressed as:
H M M = [ I 3 × 3 0 3 × 12 ]

3. Results

To evaluate the performance of the proposed indoor positioning algorithm, several experiments were performed by three pedestrians following two different trajectories. As shown in Figure 6, the first trajectory is in building A (approximately 300 m2), which is a typical indoor office building environment with a narrow corridor. The second trajectory is in building B (approximately 800 m2), which is a typical lobby in an indoor environment. The third trajectory is in building C (approximately 3800 m2), which is a typical shopping mall indoor environment. Two different smartphones (e.g., Google Pixel 2 and Huawei P10) with built-in tri-gyroscopes, tri-accelerometers, and tri-magnetometers were used to collect the experimental data. To eliminate the effects of hard iron, the bias calibration process of the tri-magnetometers was implemented before experimental data collection and navigation performance evaluation. An Android app developed by the authors is used for data collection in the sensors calibration phase, offline training phase and online positioning phase.
In the online positioning phase, a participant hold a smartphone in hand and keep the smartphone about 1.2 m from the ground. There is no significant position change between the smartphone and the participant’s body and no large angle difference (e.g., less than 10 degree) between the heading of the smartphone and the walking direction of the participant.

3.1. Step Detection Failure for INS-Based PDR

In this section, we evaluate the influence of step detection failure for INS-based DPR. We know that any step detection failure will cause a significant damage to the navigation performance of the gait-based PDR. But the INS-based PDR has the ability to maintain its navigation performance when the step detection failure only occurs for several seconds.
We set up an experiment in which the pedestrian walks a total of 340 steps and randomly five steps detection failure (about 3 s) for a total of eight times. Figure 7 shows the position estimation performance of gait-based PDR and INS-based PDR in the presence of step detection failure. In Figure 7, INS-based PDR exhibits a slight decrease in position accuracy when missing a small number of steps. However, the position result calculated by gait-based PDR is highly sensitive the step detection failure. According to the average step length of 0.65 m, five steps will bring a position error of 3.25 m to the gait-based PDR.

3.2. Magnetic Field Map

After data collection, a low-pass filter was used to reduce the effects of sensor noise and human motion, and the linear interpolation method described above was used to generate the magnetic field map, as shown in Figure 8. From the magnetic field map of building A, B and C, although the magnetic field data acquisition followed many sparse lines, the high-frequency information of the magnetic field fingerprint was still retained.
We can see that the magnetic field strength is the same in multiple places, which can easily lead to the mismatching of a single point in the magnetic field fingerprint based on the matching positioning. Fortunately, there is a sharp fluctuation of the indoor magnetic field strength in a small area. Based on this phenomenon, we constructed a new magnetic field feature by using the magnetic field sequence combined with the trajectory in order to achieve better magnetic field matching. As Figure 8 shows, the variation in the magnetic field strength at a distance of 0.1 m is small and can be ignored.
The smartphone’s built-in tri-magnetometer always has a high sampling rate (e.g., more than 20 Hz), and the normal walking velocity of a pedestrian is usually approximately 1.2 m/s. Therefore, it is necessary to generate a sparse MFS (i.e., one sampling point at intervals of 0.1 m) by resampling the collected magnetic field data for a low computational cost on the online positioning phase. In this paper, we use an MFS with a length of 7 m to perform the position estimation.

3.3. Position Estimation Performance Analysis

In this section, we analyze the navigation performance of the INS (i.e., the INS-based navigation as described in Section 2.2), MM and MM/INS integrated method. MM and MM/INS integrated method are both using the trajectory contour coming from INS-based PDR to improve the distinguishing of a MFS, and MM/INS integrated method will use the integrated navigation solution described in Section 2.4 compare with MM.
We present a total of four tests, each of which were configured differently for the used phone and the tested trajectory. A “Google Pixel” smartphone was used in trajectory I for Test I, a “Huawei P10” smartphone was used in trajectory I for Test II, a “Google Pixel” smartphone was used in trajectory II for Test III, and a “Google Pixel” smartphone was used in trajectory III for Test IV. The position estimation results and cumulative error percentages (CEPs) of the INS, MM, and MM/INS integrated solutions are presented in Figure 9, Figure 10, Figure 11 and Figure 12. In the trajectory figures, the red, blue, cyan, and black solid lines represent the reference trajectory, position estimation of the INS, MM, and MM/INS, respectively. For the CEP figures, the blue, cyan, black lines represent the CEP of INS, MM, and MM/INS, respectively.
As Figure 9 and Figure 10 show, the proposed MM algorithm can achieve a high precision position estimation in the corridor environment. And the position estimation performance is still consistent when 2 participants hold 2 different smartphones. Figure 11 shows the position estimation performance of the proposed MM algorithm when the participant walks freely in a complex manner in the lobby environment. We can also learn that the proposed method has the ability to meet large-scale indoor positioning requirements for its good positioning estimation performance, as shown in Figure 12.
The position errors of the INS, MM, MM/INS integrated methods for the four tests are illustrated in Table 1. The MEMS–IMU-based INS solution has a root mean square (RMS) position error of 2.75 m, 2.14 m, 3.81 m and 9.59 m for the four tests, respectively. The proposed MM solution based on the magnetic field fingerprint has an RMS position error of 0.64 m, 0.60 m, 1.87 m and 2.34 m for the four tests and a matching success rate of 94.69%, 95.57%, 90.24% and 88.01% for the four tests, respectively. The “matching success rate” represents the total number of successful matches divided by the total number of matches. The MM/INS solution has an RMS position error of 0.64 m, 0.60 m, 1.45 m and 2.27 m for the four tests, respectively.
The proposed MM algorithm has an excellent position estimation performance and high matching success rate from the results of Test I and Test II in building A. We know that the estimated trajectory coming from the INS-based navigation method has the ability to improve the distinguishability of the magnetic field fingerprint. Compared with the results of Test I and Test II, Test III and Test IV had a worse navigation performance in the position estimation and matching success rate because the frequent turning movements reduced the accuracy of the step model, decreasing the accuracy of the estimated trajectory. And the underlying magnetic field of building B and building C have a gentler gradient than that of building A.
We also found that the MM/INS integrated solution does not have higher positioning accuracy than MM in the four tests. The reason is that the positioning accuracy of the MM/INS integrated navigation scheme is determined by MM, and the INS can provide only a continuous position estimation and enhance the system’s ability to resist gross errors.
Table 2 summarizes the current algorithm presented in other papers which used magnetic field fingerprint-based matching method and inertial sensors. In Table 2, we compare the results shown in other papers with similar test setup against results achieved in this paper. It shows that the proposed algorithm has better positioning accuracy when compare with the DTW based research [8,10,22,47,48]. Though the study in [22] has reported its positioning accuracy of 2 m in the corridor environment, the positioning accuracy of our proposed algorithm in the similar test scenario is 0.6 m. We also notice that the proposed algorithm has slightly worse positioning accuracy than the PF-based research [17,24,27,49]. However, the studies of [24,49] only reported the positioning accuracy in a simple magnetic field environment (e.g., corridor and bookshelves in the library), which cannot represent their positioning accuracy in a more complex environment. The research reported in [17,27] had a very excellent positioning performance in typical indoor environments (e.g., hall, conference room, corridor and bookshelves in the library), but it will cause a lot of power consumption of the smartphone for its large computational load.

4. Discussion

As described in Section 3, the proposed algorithm has significant differences in its positioning performance in the three buildings because the accuracy of the magnetic fingerprint-based positioning method is highly determined by the distribution of the underlying magnetic field. The experimental results show that the proposed algorithm provides similar positioning accuracy compared to the existing algorithms.
However, the advantages of the proposed algorithm are still obvious. Compared with the DTW algorithm [8,10,13,20,22,48,50,51], the proposed algorithm uses a grid magnetic field map, so the size of the magnetic field map is only related to the size of the actual environment rather than the number of predicted trajectories. More importantly, the DTW algorithm must be able to predict the user’s trajectory well on the training phase for achieving better positioning performance, which is essentially a one-dimensional matching algorithm. The proposed algorithm has a more excellent performance in positioning accuracy and robustness for the Insensitivity to user walking trajectories and the higher distinguishability of a magnetic field fingerprint combine with the trajectory contour (from PDR). The particle filter [16,17,23,24,25,26,27,28,29,30] overcomes the shortcomings of the DTW algorithm, and is a promising magnetic fingerprint algorithm that provides high precision and high stability, but it is still computationally intensive for a smart phone. The Gauss-Newton iterative method converges along the direction of the fastest drop of the magnetic field gradient, and has the characteristics of low computational complexity and fast convergence. So the proposed algorithm is more suitable for smartphones because of the lightweight computational load.
The proposed magnetic matching algorithm has the following limitations that needs to be handled in the future. Due to the initial navigation state (i.e., initial position and initial heading) plays an important role in the proposed MM method, it rely on other methods to do navigation state initialization [52]. In addition, the user poses of using smartphones vary widely, and it is a very challenging task to use MEMS-IMU to provide reliable high-precision relative trajectories.

5. Conclusions

In this paper, we present an ambient magnetic field-based positioning method for smartphones in an indoor environment. To improve the position estimation accuracy of magnetic field matching positioning, we analyze the underlying magnetic field of three typical indoor environments (i.e., a corridor, an open area and a shopping mall). Then, we use the magnetic field sequence combined with the estimated trajectory coming from the INS-based PDR, which improve the distinguishability of the magnetic field fingerprint and design a Gauss-Newton iteration method to perform magnetic field contour matching positioning. To evaluate the navigation performance of the proposed MM algorithm, we conduct experiments in the three typical indoor environments. The test results show that the position estimation error of MM is 0.64 m (RMS) in the office building environment, 1.87 m (RMS) in a typical lobby environment and 2.34 m (RMS) in a shopping mall environment.
In our future works, we will use the WiFi-based distance intersection method to determine a small area and then the initial position is determined by traversing the entire area, and use the tri-magnetometer to calculate the initial heading. Furthermore, in order to adapt to the user’s behavior, we will test the positioning performance of the proposed MM method in the four typical smartphone poses, i.e., handheld, calling, swinging in the hand, and in pants pocket.

Author Contributions

Conceptualization, J.K. and X.N.; Data curation, J.K. and X.C.; Formal analysis, J.K.; Funding acquisition, X.N.; Investigation, J.K. and P.Z.; Methodology, J.K.; Project administration, X.N.; Software, J.K., P.Z. and X.C.; Supervision, X.N.; Validation, J.K. and X.C.; Writing—original draft, J.K.; Writing—review & editing, J.K., X.N., P.Z. and X.C.

Funding

This research was funded by the National Key Research of China grant number [2016YFB0502202 and 2016YFB0501803], the High Technology Open Research Fund of 54th Institute [KX152600025], and the China Postdoctoral Science Foundation [212-211000033].

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kuusniemi, H.; Bhuiyan, M.Z.H.; Ström, M.; Söderholm, S.; Jokitalo, T.; Chen, L.; Chen, R. Utilizing pulsed pseudolites and high-sensitivity GNSS for ubiquitous outdoor/indoor satellite navigation. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Sydney, NSW, Australia, 13–15 November 2012; pp. 1–7. [Google Scholar]
  2. Noh, S.I.; Lee, W.J.; Ye, J.Y. Comparison of the Mechanisms of the Zigbee’s Indoor Localization Algorithm. In Proceedings of the ACIS International Conference on Software Engineering, Artificial Intelligence, Networking, and Parallel/distributed Computing, Phuket, Thailand, 6–8 August 2008; pp. 13–18. [Google Scholar]
  3. Yan, J. Algorithms for Indoor Positioning Systems Using Ultra-Wideband Signals. Ph.D. Dissertation, Delft University of Technology, Delft, The Netherlands, 2010. [Google Scholar]
  4. Bekkali, A.; Sanson, H.; Matsumoto, M. RFID Indoor Positioning Based on Probabilistic RFID Map and Kalman Filtering. In Proceedings of the Third IEEE International Conference on Wireless and Mobile Computing, Networking and Communications (WiMob 2007), White Plains, NY, USA, 8–10 October 2007; p. 21. [Google Scholar]
  5. Yucel, H.; Edizkan, R.; Ozkir, T.; Yazici, A. Development of indoor positioning system with ultrasonic and infrared signals. In Proceedings of the International Symposium on Innovations in Intelligent Systems and Applications, Trabzon, Turkey, 2–4 July 2012; pp. 1–4. [Google Scholar]
  6. Yang, J.; Wang, Z.; Zhang, X. An iBeacon-based indoor positioning systems for hospitals. Int. J. Smart Home 2015, 9, 161–168. [Google Scholar] [CrossRef]
  7. Ganti, R.K.; Ye, F.; Lei, H. Mobile crowdsensing: Current state and future challenges. IEEE Commun. Mag. 2011, 49, 32–39. [Google Scholar] [CrossRef]
  8. 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]
  9. Haverinen, J.; Kemppainen, A. Global Indoor Self-Localization Based on the Ambient magnetic Field; North-Holland Publishing Co.: Amsterdam, The Netherlands, 2009; pp. 1028–1035. [Google Scholar]
  10. Subbu, K.P.; Gozick, B.; Dantu, R. LocateMe-Magnetic Fields Based Indoor Localization Using Smartphones. ACM Trans. Intell. Syst. Technol. 2013, 4, 1–27. [Google Scholar] [CrossRef]
  11. Angermann, M.; Frassl, M.; Doniec, M.; Julian, B.J. Characterization of the indoor magnetic field for applications in Localization and Mapping. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Sydney, NSW, Australia, 13–15 November 2012; pp. 1–9. [Google Scholar]
  12. Gozick, B.; Subbu, K.P.; Dantu, R.; Maeshiro, T. Magnetic Maps for Indoor Navigation. IEEE Trans. Instrum. Meas. 2011, 60, 3883–3891. [Google Scholar] [CrossRef]
  13. Fan, X.; Wu, J.; Long, C.; Zhu, Y. Accurate and Low-cost Mobile Indoor Localization with 2-D Magnetic Fingerprints. In Proceedings of the First ACM Workshop on Mobile Crowdsensing Systems and Applications, Delft, The Netherlands, 6–8 November 2017; pp. 13–18. [Google Scholar]
  14. Lee, S.; Chon, Y.; Cha, H. Smartphone-Based Indoor Pedestrian Tracking Using Geo-magnetic Observations. Mob. Inf. Syst. 2013, 9, 123–137. [Google Scholar]
  15. Chung, J.; Donahoe, M.; Schmandt, C.; Kim, I.J.; Razavai, P.; Wiseman, M. Indoor location sensing using geo-magnetism. In Proceedings of the International Conference on Mobile Systems, Applications, and Services, Bethesda, MD, USA, 28 June–1 July 2011; pp. 141–154. [Google Scholar]
  16. Grand, E.L.; Thrun, S. 3-Axis magnetic field mapping and fusion for indoor localization. In Proceedings of the Multisensor Fusion and Integration for Intelligent Systems, Hamburg, Germany, 13–15 September 2012; pp. 358–364. [Google Scholar]
  17. Xie, H.; Gu, T.; Tao, X.; Ye, H.; Lu, J. A Reliability-Augmented Particle Filter for Magnetic Fingerprinting Based Indoor Localization on Smartphone. IEEE Trans. Mobile Comput. 2016, 15, 1877–1892. [Google Scholar] [CrossRef]
  18. Chan, S.H.G.; Chan, S.H.G.; Chan, S.H.G. Efficient Sequence Matching and Path Construction for Geomagnetic Indoor Localization. In Proceedings of the International Conference on Embedded Wireless Systems and Networks, Uppsala, Sweden, 20–22 February 2017; pp. 156–167. [Google Scholar]
  19. He, S.; Kang, G.S. Geomagnetism for Smartphone-Based Indoor Localization: Challenges, Advances, and Comparisons. ACM Comput. Surv. 2017, 50, 1–37. [Google Scholar] [CrossRef]
  20. Subbu, K.P.; Gozick, B.; Dantu, R. Indoor localization through dynamic time warping. In Proceedings of the IEEE International Conference on Systems, Man, and Cybernetics, Anchorage, AK, USA, 9–12 October 2011; pp. 1639–1644. [Google Scholar]
  21. Riehle, T.H.; Anderson, S.M.; Lichter, P.A.; Condon, J.P.; Sheikh, S.I.; Hedin, D.S. Indoor Waypoint Navigation via Magnetic Anomalies. In Proceedings of the IEEE Engineering in Medicine and Biology Society, Boston, MA, USA, 30 August–3 September 2011; pp. 5315–5318. [Google Scholar]
  22. Shu, Y.; Kang, G.S.; He, T.; Chen, J. Last-Mile Navigation Using Smartphones. In Proceedings of the International Conference on Mobile Computing and Networking, Paris, France, 7–11 September 2015; pp. 512–524. [Google Scholar]
  23. Haverinen, J.; Kemppainen, A. A global self-localization technique utilizing local anomalies of the ambient magnetic field. In Proceedings of the IEEE International Conference on Robotics and Automation, Kobe, Japan, 12–17 May 2009; pp. 3142–3147. [Google Scholar]
  24. Putta, R.; Misra, M.; Kapoor, D. Smartphone based indoor tracking using magnetic and indoor maps. In Proceedings of the IEEE Tenth International Conference on Intelligent Sensors, Sensor Networks and Information Processing, Singapore, 7–9 April 2015; pp. 1–6. [Google Scholar]
  25. Kim, B.; Kong, S. Indoor Positioning based on Bayesian Filter using Magnetometer Measurement Difference. In Proceedings of the IEEE Vehicular Technology Conference Proceedings, Glasgow, UK, 11–14 May 2015. [Google Scholar]
  26. Kim, B.; Kong, S.H. A Novel Indoor Positioning Technique Using Magnetic Fingerprint Difference. IEEE Trans. Instrum. Meas. 2016, 65, 2035–2045. [Google Scholar] [CrossRef]
  27. Xie, H.; Gu, T.; Tao, X.; Ye, H.; Lv, J. MaLoc: A practical magnetic fingerprinting approach to indoor localization using smartphones. In Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing, Seattle, WA, USA, 13–17 September 2014; pp. 243–253. [Google Scholar]
  28. Vandermeulen, D.; Vercauteren, C.; Weyn, M.; Vandermeulen, D. Indoor localization Using a Magnetic Flux Density Map of a Building. In Proceedings of the International Conference on Ambient, Porto, Portugal, 29 September–3 October 2013. [Google Scholar]
  29. Akai, N.; Ozaki, K. Gaussian processes for magnetic map-based localization in large-scale indoor environments. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems, Hamburg, Germany, 28 September–2 October 2015; pp. 4459–4464. [Google Scholar]
  30. Bilke, A.; Sieck, J. Using the Magnetic Field for Indoor Localisation on a Mobile Phone; Springer: Berlin/Heidelberg, Germany, 2013; pp. 195–208. [Google Scholar]
  31. Wiener, T.F. Terrain Contour Matching (TERCOM): A Cruise Missile Guidance Aid. In Proceedings of the Technical Symposium, San Diego, CA, USA, 23 December 1980; pp. 10–18. [Google Scholar]
  32. Kamgarparsi, B. Vehicle localization on gravity maps. Proc. SPIE 1999, 3693. [Google Scholar] [CrossRef]
  33. Kuang, J.; Niu, X.; Chen, X. Robust Pedestrian Dead Reckoning Based on MEMS-IMU for Smartphones. Sensors 2018, 18, 1391. [Google Scholar] [CrossRef] [PubMed]
  34. Jimenez, A.R.; Seco, F.; Prieto, C.; Guevara, J. A comparison of Pedestrian Dead-Reckoning algorithms using a low-cost MEMS IMU. In Proceedings of the IEEE International Symposium on Intelligent Signal Processing, Budapest, Hungary, 26–28 August 2009; pp. 37–42. [Google Scholar]
  35. Levi, R.W.; Judd, T. Dead Reckoning Navigational System Using Accelerometer to Measure Foot Impacts. U.S. Patent 5,583,776, 10 December 1996. [Google Scholar]
  36. Lin, T.; Li, L.; Lachapelle, G. Multiple sensors integration for pedestrian indoor navigation. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Banff, AB, Canada, 13–16 October 2015; pp. 1–9. [Google Scholar]
  37. Zhuang, Y.; Lan, H.; Li, Y.; El-Sheimy, N. PDR/INS/WiFi Integration Based on Handheld Devices for Indoor Pedestrian Navigation. Micromachines 2015, 6, 793–812. [Google Scholar] [CrossRef] [Green Version]
  38. Lan, H. Multiple Systems Integration for Pedestrian Indoor Navigation. Ph.D. Dissertation, University of Calgary, Calgary, AB, Canada, 2016. [Google Scholar]
  39. Wahdan, A.; Georgy, J.; Noureldin, A. Three-Dimensional Magnetometer Calibration with Small Space Coverage for Pedestrians. IEEE Sens. J. 2015, 15, 598–609. [Google Scholar] [CrossRef]
  40. Bonnet, S.; Bassompierre, C.; Godin, C.; Lesecq, S.; Barraud, A. Calibration methods for inertial and magnetic sensors. Sens. Actuators A Phys. 2009, 156, 302–311. [Google Scholar] [CrossRef]
  41. Zhang, B.; Wu, Y.; Fan, H. On Calibration of Three-axis Magnetometer. IEEE Sens. J. 2015, 15, 6424–6431. [Google Scholar]
  42. Tabatabaei, S.; Gluhak, A.; Tafazolli, R. A Fast Calibration Method for Triaxial Magnetometers. IEEE Trans. Instrum. Meas. 2013, 62, 2929–2937. [Google Scholar] [CrossRef]
  43. Brajdic, A.; Harle, R. Walk detection and step counting on unconstrained smartphones. In Proceedings of the ACM International Joint Conference on Pervasive and Ubiquitous Computing, Zurich, Switzerland, 8–12 September 2013; pp. 225–234. [Google Scholar]
  44. Shin, E.-H. Estimation Techniques for Low-Cost Inertial Navigation; University of Calgary: Calgary, AB, Canada, 2005. [Google Scholar]
  45. Li, Y. Integration of MEMS Sensors, WiFi, and Magnetic Features for Indoor Pedestrian Navigation with Consumer Portable Devices. Ph.D. Dissertation, University of Calgary, Calgary, AB, Canada, 2016. [Google Scholar]
  46. Kohlbrecher, S.; Von Stryk, O.; Meyer, J.; Klingauf, U. A flexible and scalable SLAM system with full 3D motion estimation. In Proceedings of the IEEE International Symposium on Safety, Security, and Rescue Robotics, Kyoto, Japan, 1–5 November 2011; pp. 155–160. [Google Scholar]
  47. Zhang, C.; Subbu, K.P.; Luo, J.; Wu, J. GROPING: Geomagnetism and cROwdsensing Powered Indoor NaviGation. IEEE Trans. Mobile Comput. 2015, 14, 387–400. [Google Scholar] [CrossRef] [Green Version]
  48. Shu, Y.; Bo, C.; Shen, G.; Zhao, C.; Li, L.; Zhao, F. Magicol: Indoor Localization Using Pervasive Magnetic Field and Opportunistic WiFi Sensing. IEEE J. Sel. Area Commun. 2015, 33, 1443–1457. [Google Scholar] [CrossRef]
  49. Kim, S.E.; Yong, K.; Yoon, J.; Kim, E.S. Indoor positioning system using geomagnetic anomalies for smartphones. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Sydney, NSW, Australia, 13–15 November 2012; pp. 1–5. [Google Scholar]
  50. Riehle, T.H.; Anderson, S.M.; Lichter, P.A.; Giudice, N.A.; Sheikh, S.I.; Knuesel, R.J.; Kollmann, D.T.; Hedin, D.S. Indoor Magnetic Navigation for the Blind. In Proceedings of the IEEE Engineering in Medicine and Biology Society Conference Proceedings, San Diego, CA, USA, 28 August–1 September 2012; pp. 1972–1975. [Google Scholar]
  51. Salvador, S.; Chan, P. Toward accurate dynamic time warping in linear time and space. Intell. Data Anal. 2007, 11, 561–580. [Google Scholar] [CrossRef]
  52. Bai, Y.B.; Gu, T.; Hu, A. Integrating Wi-Fi and magnetic field for fingerprinting based indoor positioning system. In Proceedings of the International Conference on Indoor Positioning and Indoor Navigation, Alcala de Henares, Spain, 4–7 October 2016; pp. 1–6. [Google Scholar]
Figure 1. Detailed indoor positioning solution process.
Figure 1. Detailed indoor positioning solution process.
Sensors 18 04142 g001
Figure 2. Magnetometer bias calibration.
Figure 2. Magnetometer bias calibration.
Sensors 18 04142 g002
Figure 3. The procedure of training the magnetic map via a walking survey.
Figure 3. The procedure of training the magnetic map via a walking survey.
Sensors 18 04142 g003
Figure 4. The designed trajectories for building a magnetic field map.
Figure 4. The designed trajectories for building a magnetic field map.
Sensors 18 04142 g004
Figure 5. The reference magnetic field strength value from bilinear interpolation at P k .
Figure 5. The reference magnetic field strength value from bilinear interpolation at P k .
Sensors 18 04142 g005
Figure 6. Trajectories of the experiments. (a) The trajectory in building A; (b) experimental environment of building A; (c) the trajectory in building B; (d) experimental environment of building B (e) the trajectory in building C; (f) experimental environment of building C.
Figure 6. Trajectories of the experiments. (a) The trajectory in building A; (b) experimental environment of building A; (c) the trajectory in building B; (d) experimental environment of building B (e) the trajectory in building C; (f) experimental environment of building C.
Sensors 18 04142 g006aSensors 18 04142 g006b
Figure 7. Trajectories of reference, gait-based PDR and INS-based PDR.
Figure 7. Trajectories of reference, gait-based PDR and INS-based PDR.
Sensors 18 04142 g007
Figure 8. The magnetic field strength map. (a) Building A; (b) building B; (c) building C.
Figure 8. The magnetic field strength map. (a) Building A; (b) building B; (c) building C.
Sensors 18 04142 g008aSensors 18 04142 g008b
Figure 9. Navigation results of the INS, MM, and MM/INS integrated solutions in building A (Test I: Pedestrian I, Trajectory I, Google Pixel 2). (a) Trajectories; (b) cumulative error percentages.
Figure 9. Navigation results of the INS, MM, and MM/INS integrated solutions in building A (Test I: Pedestrian I, Trajectory I, Google Pixel 2). (a) Trajectories; (b) cumulative error percentages.
Sensors 18 04142 g009
Figure 10. Navigation results of the INS, MM, and MM/INS solutions in building A. (Test II: Pedestrian II, Trajectory I, Huawei P10). (a) Trajectories; (b) cumulative error percentages.
Figure 10. Navigation results of the INS, MM, and MM/INS solutions in building A. (Test II: Pedestrian II, Trajectory I, Huawei P10). (a) Trajectories; (b) cumulative error percentages.
Sensors 18 04142 g010
Figure 11. Navigation results of the INS, MM, and MM/INS solutions in building B (Test III: Pedestrian III, Trajectory II, Google Pixel 2). (a) Trajectories; (b) cumulative error percentages.
Figure 11. Navigation results of the INS, MM, and MM/INS solutions in building B (Test III: Pedestrian III, Trajectory II, Google Pixel 2). (a) Trajectories; (b) cumulative error percentages.
Sensors 18 04142 g011
Figure 12. Navigation results of the INS, MM, and MM/INS solutions in building C (Test IV: Pedestrian III, Trajectory III, Google Pixel 2). (a) Trajectories; (b) cumulative error percentages.
Figure 12. Navigation results of the INS, MM, and MM/INS solutions in building C (Test IV: Pedestrian III, Trajectory III, Google Pixel 2). (a) Trajectories; (b) cumulative error percentages.
Sensors 18 04142 g012
Table 1. Position errors of the INS, MM, MM/INS integrated methods for the four tests (units of m).
Table 1. Position errors of the INS, MM, MM/INS integrated methods for the four tests (units of m).
Test ITest IITest IIITest IV
MaxMeanRMSMaxMeanRMSMaxMeanRMSMaxMeanRMS
INS4.522.552.753.831.882.146.623.523.8119.348.399.59
MM1.800.500.641.620.490.605.771.591.875.052.102.34
MM/INS Integrated1.610.520.641.520.490.603.031.291.454.112.062.27
Table 2. Performance comparison of the proposed method with the current methods.
Table 2. Performance comparison of the proposed method with the current methods.
SchemeTechniquesTest ScenariosPositioning AccuracyComputational Load
[47]DTW/BayesianShopping mall<5 mMedium
[8]DTW, Wi-FiCorridor4 mLow
[48]DTWCorridor, UPL, Supermarket<4 mHigh
[10]DTWCorridor3.5 mLow
The Proposed SchemeGNCorridor, Hall, Shopping mall<2.5 mLow
[22]DTWCorridor<2 mMedium
[17,27]PFHall, Conference Room, Corridor, Book shelf<2 mMedium
[49]PFCorridor1 mHigh
[24]PF, IMBook shelf0.75 mMedium
DTW—Dynamic Time Warp, PF—Particle Filter, GN—Gauss-Newton, HMM–Hidden Markov Model, IM—Indoor Map, UPL—Underground Parking Lot.

Share and Cite

MDPI and ACS Style

Kuang, J.; Niu, X.; Zhang, P.; Chen, X. Indoor Positioning Based on Pedestrian Dead Reckoning and Magnetic Field Matching for Smartphones. Sensors 2018, 18, 4142. https://doi.org/10.3390/s18124142

AMA Style

Kuang J, Niu X, Zhang P, Chen X. Indoor Positioning Based on Pedestrian Dead Reckoning and Magnetic Field Matching for Smartphones. Sensors. 2018; 18(12):4142. https://doi.org/10.3390/s18124142

Chicago/Turabian Style

Kuang, Jian, Xiaoji Niu, Peng Zhang, and Xingeng Chen. 2018. "Indoor Positioning Based on Pedestrian Dead Reckoning and Magnetic Field Matching for Smartphones" Sensors 18, no. 12: 4142. https://doi.org/10.3390/s18124142

APA Style

Kuang, J., Niu, X., Zhang, P., & Chen, X. (2018). Indoor Positioning Based on Pedestrian Dead Reckoning and Magnetic Field Matching for Smartphones. Sensors, 18(12), 4142. https://doi.org/10.3390/s18124142

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