Next Article in Journal
Improved Resnet Model Based on Positive Traffic Flow for IoT Anomalous Traffic Detection
Previous Article in Journal
A Flexible Solid-State Marx Modulator Module Based on Discrete Magnetic Coupling Drivers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Factor Graph with Local Constraints: A Magnetic Field/Pedestrian Dead Reckoning Integrated Navigation Method Based on a Constrained Factor Graph

1
College of Telecommunication Engineering, Hangzhou Dianzi University, Hangzhou 310018, China
2
National Astronomical Observatories of Chinese Academy of Sciences, Beijing 100012, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Electronics 2023, 12(18), 3832; https://doi.org/10.3390/electronics12183832
Submission received: 2 August 2023 / Revised: 1 September 2023 / Accepted: 8 September 2023 / Published: 10 September 2023
(This article belongs to the Topic Electric Vehicles Energy Management)

Abstract

:
The method of multi-sensor integrated navigation improves navigation accuracy by fusing various sensor data. However, when a sensor is disturbed or malfunctions, incorrect measurement information will seriously affect the estimation of the trajectory, which will lead to a decrease in accuracy. Existing factor graph models based on weights can neither fully resist the influence of disturbances nor guarantee the local rationality of estimated trajectories. In this paper, a factor graph with local constraints model that fuses the magnetic field and pedestrian dead reckoning data is proposed to navigate complex curved trajectories. First, adding local constraints to the pedestrian dead reckoning measurement converts the navigation solution problem into a hard-constrained nonlinear least squares problem. Then, a mapping model is constructed to reconstruct the variable space and the Adam gradient algorithm is used to realize a fast calculation. The navigation accuracy of this algorithm is better than that of the state-of-the-art method in real-world experiments, with an average accuracy of 0.83 m.

1. Introduction

1.1. Magnetic Navigation

Magnetic fields can be used for navigation and positioning [1]. In environments where satellite signal propagation is blocked, such as indoors, underwater, or urban areas [2], navigation methods that do not rely on the GNSS (Global Navigation Satellite System) for autonomous navigation have become a research hotspot. When navigating based on IMUs (inertial measurement units), a cumulative error of the heading angle will be generated due to the offset of the gyroscope. The emergence of multi-source fusion positioning methods effectively suppresses the cumulative error propagation of IMUs. Among them, magnetic fields have become a very important source due to their relatively stable nature.
Nowadays, many researchers still use the Geomagnetic North Pole direction to calibrate the heading for navigation, which is also the research prototype of magnetic field/INS (Inertial Navigation System)-integrated navigation. Hu G et al. [3] used magnets to correct the course angle of the INS, and achieved an error performance of 1.17 m through combined navigation with the Kalman filter method in an urban area navigation experiment. Relying solely on the direction of the magnetic needle provides highly limited information. Some researchers have extracted more useful information from the magnetic field and developed more complex magnetic features for navigation. Among them, the features represented by magnetic vectors and magnetic gradients have been widely studied, and positioning methods based on fingerprints have also been introduced into research on magnetic navigation. Geomagnetic vectors and an inertial navigation system were combined by Storms W et al. [4] with a Kalman filter, and decimeter-level navigation was realized indoors to predict trajectories with the help of map information constraints. Chen Z et al. [5] integrated geomagnetic vectors with pitch and roll angles to further calculate the gradient information of the magnetic field for trajectory matching, for which the error was at the level of 100 m. The Magneto-Inductive method was used by Wahlström J et al. [6] to assist inertial navigation. Li et al. [7] used magnetic fingerprint matching and heading angle correction for fusion navigation.
Advancements in data fusion technologies have played a significant role. Kauffman K et al. [8] used a particle filter to combine INS and magnetic fingerprints to realize a navigation mode in which the front car collects fingerprint information in real time and the rear car tracks, navigates and locates. Hu F et al. [9] proposed an adaptive error correction extended Kalman (EKF) algorithm to build a multi-sensor navigation and positioning system, which has been applied to a swarm of drones. The combination of the EKF algorithm and a particle filter was used to fuse the magnetic field gradient and inertial navigation information by Gao D et al. [10]. The “plug and play” feature based on a factor graph helps deal with the challenge of multi-sensor asynchrony [11]. A composite positioning inertial/geomagnetic/lidar technology based on graph optimization was proposed by Zhao Y N et al. [12].

1.2. Error Type and Integrity Monitoring

Sensor measurement errors, which are the difference between the measured value and the true value, come from two parts: one part is caused by the sensor’s precision and is always present; the other part of the error, which is abnormal, is caused by possible external interference or sensor failure. The second type of error is often sudden and unpredictable. Unfortunately, few of the above algorithms have considered the impact of this second type of error; their shortcomings are also obvious. Research in the field of integrity monitoring and navigation can improve the detection of the second type of error, especially by using various algorithms applied in the data preprocessing stage. In addition, different sensor combinations may also cause conflicts between sensors due to the first type of error. This is because erroneous measurements often contradict some known conclusions, causing integrity problems.
There have been extensive advancements in developing integrity monitoring algorithms for GNSS and navigation in general [13]. Wang C et al. [14] used a signal quality monitor (SQM) as an important component to address the potential risks caused by satellite-induced signal anomalies. Wang L et al. [15] developed a new denoising algorithm for thunderstorm-induced vibration data to separate the low-frequency disturbance from GNSS displacement time series. The Advanced Receiver Autonomous Integrity Monitoring (ARAIM) framework was used by Yang S et al. [16] in order to enhance the user-level integrity of GNSS positioning. Meng Q et al. [17] took full advantage of the multi-constellation GNSS by using ARAIM. Integrity monitoring research of applied and integrated navigation has also made a lot of progress. Meng Q et al. [18] proposed an integrity monitoring strategy for all source navigation based on the least square form of the EKF and solution separation with sensor exclusion in case of detected faults. Joerger M et al. [19] proposed a method for isolating faulty systems and to reconstitute the Kalman state after excluding the fault to maintain the availability of the integrity solution. Arana G et al. [20] presented a new methodology to quantify robot localization safety by evaluating integrity risk when combining LIDAR and IMU.

1.3. Factor Graph Methods

The traditional factor graph model does not have an effective integrity monitoring mechanism, so researchers have tried to restructure the factor graph model to avoid the effects from external interference or sensor failure. Wei X et al. [21] proposed an improved factor graph algorithm. After introducing a weight function to adjust the credibility of each factor, the weight factor will be reduced to a very low level at the mutation position. Xu C et al. [22] developed a method that can actively monitor and adjust factor weights where errors occur. Limiting the offset of observations by constructing a piecewise limit function has shown some anti-interference performance [23]. However, such limitations from weighted factor graphs are not strict enough. Measurements that are anomalous under more extreme circumstances can still cause sensor conflicts.
The constrained factor graph (CFG) is a factor graph model with hard constraints, and is often used in the field of robotics to model hard-constrained problems. Ta D N et al. [24] extended the modeling capabilities of factor graphs to represent nonlinear dynamics using constraint factors in the quad-copter UAV obstacle avoidance task. These efforts effectively improved the robustness of the system. Sodhi P et al. [25] used the CFG to describe equality constraints like object contact and inequality constraints like collision avoidance. Yang S et al. [26] presented a novel factor-graph-based approach to solve the discrete-time finite-horizon Linear Quadratic Regulator problem subject to auxiliary linear equality constraints within and across time steps. In addition, the robot cluster distributed communication problem also has many constraints. Cunningham A et al. [27] proposed a novel approach to multi-robot SLAM, introduced the CFG as an extended graphical model and formulated Sequential Quadratic Programming (SQP) to solve this new model. Huang Y et al. [28] proposed a two-stage global and local optimization strategy designed for robust compatibility with the smoothing and mapping optimizer.
Constrained factor graphs have powerful modeling capabilities, but an objective function with hard constraints is not easy to optimize. Nashed S B et al. [29] were concerned that a certain combination of linear environmental features such as line segments, planes and sensors will generate rank deficit constraints, and proposed the robust rank deficient SLAM model. For CFGs, the domains of states and landmark variables are not vector spaces but Lie group manifolds [24]. Sodhi P et al. [25] further pointed out that the new optimality conditions introduced by the hard constraints break the matrix structure needed for incremental factorization in these incremental optimization methods. Qadri M et al. [30] incrementally updated the CFG by maintaining subgraphs on nodes using a Bayes tree instead of maintaining a complete matrix.

1.4. Contributions

Aiming at the problem that the existing factor graph model ignores abnormal measurements of local sensors, the error propagation of potentially anomalous sensor measurements is limited by the modeling constraints of stable sensor measurements. A factor graph with local constraints (FGLC) is proposed in this paper, which integrates magnetic and PDR information for navigation based on a CFG. Aiming at the problem that the variable space of the constraint factor graph is no longer a vector space, a mapping relationship is constructed to project the variables into the vector space for calculation. In the field experiment, the FGLC achieved an average error of 0.83 m for indoor navigation of complex trajectories. Analysis of the standard deviation of the predicted trajectory explains the principle of the algorithm. In addition, a simulation platform is independently built to test the navigation performance of the algorithm in an environment with strong magnetic field interference.
The main contributions of this paper are as follows:
1.
A CFG is used to combine magnetic and PDR information for navigation and positioning, so that the integrated navigation problem is transformed into a constrained problem, through which the system gains the ability to resist sensor conflicts.
2.
A new vector space projection method is constructed to convert the navigation state variables into error variables, and all derived formulas are given for solving the hard constraint optimization problem of the CFG.
3.
Comparison with the navigation accuracy of various other sensor fusion algorithms, especially with the state of the art, is shown through a field experiment. The principle of the FGLC is given to explain why it is more accurate and reliable. Time complexity and space complexity analyses were also performed.
4.
A simulation experiment is designed to verify the anti-interference ability of the model.
Figure 1 shows an overview of the schematic diagram of the FGLC algorithm modularly. First, a magnetic fingerprint database is set up offline to provide an interface. Original collected data are transformed into magnetic measurements, step measurements and differential heading measurements, respectively. Then, an estimated trajectory is generated with both step and differential heading constraints. The estimated trajectory is used to calculate magnetic estimation, step estimation and differential heading estimation through the interface of the magnetic database. Finally, the measurements and estimations are combined by the CFG model, which decides how to update the next estimated trajectory.

2. Factor Graph for Indoor Magnetic Field/PDR Integrated Navigation

2.1. Factor Graph Principle

At time i, the true position state of the trajectory is expressed as X i = [ x i , y i ] T . x i is the coordinate in the x direction and y i is the coordinate in the y direction. The measurement of the state is expressed as Z i = h ( X i ) + v i n o i s e , where h ( · ) stands for the measurement function and v i n o i s e is measurement noise. A factor-graph-based sensor fusion approach uses all state measurements to estimate the states for solving the maximum a posteriori estimation of the joint probability distribution function.
X M A P = arg max X p ( X | Z )
where p ( X | Z ) is the posterior probability density function of the states X. Each factor node in the graph can represent an independent term:
p ( X | Z ) f i ( X i )
Factor nodes are represented as the measurement errors of specific sensors [31]. The function of the node of the factor graph can be expressed as an exponential function.
f i ( X i ) = exp ( 1 2 h ( X i ) Z i Σ 2 )
where · stands for the Mahalanobis distance and Σ stands for the covariance matrix. Therefore, Equation (1) can be transformed into a least squares form.
X M A P = arg min X i h ( X i ) Z i Σ 2

2.2. PDR Factor

The accelerometer and gyroscope output the stable three-axis acceleration and the angular velocity.
Z I M U = [ a x , a y , a z , ω x , ω y , ω z ] T
where Z I M U stands for inertial measurement, a x , a y , a z are the acceleration measurement values of the three axes and ω x , ω y , ω z are the angular velocity measurement values of the three axes. According to the step detection algorithm [32], the pedestrian’s step length can be estimated from the three-axis acceleration.
s t e p l e n i = β log ( a p p , i s t e p ) + γ
where s t e p l e n i represents the measurement step length at time i, β is the coefficient and γ is the bias. a p p s t e p is the acceleration range during a single step.
Since pedestrians are always walking on a horizontal plane, only the z-axis angular velocity is used to estimate the heading angle when calculating the attitude.
θ i = θ 1 + j i ω z , j × Δ t
where θ i is the heading angle measurement at time i and Δ t is the time interval between two adjacent measurements. It is believed that the measured values of angular velocity are subject to error, which would eventually lead to cumulative errors in heading angles.
ω z , j = ω z , j r e a l + v j
θ i = θ 1 + j i ω z , j r e a l × Δ t + j i v j × Δ t
where ω z , j r e a l is the real z-axis angular velocity at time j and v j is the measurement error. It is clear that the variance of the error component in the heading angle increases over time, which is the main cause of cumulative errors. It is believed that calibration of the IMU before an experiment is necessary to avoid large zero bias in v j .
Performing differential operations on adjacent measured values of the heading angle and replacing them with the differential heading angle can help avoid introducing errors with larger variances.
Δ θ i = θ i + 1 θ i = ω z , i + 1 r e a l × Δ t + v i + 1 × Δ t
where Δ θ i is the differential heading angle measurement, whose error is only related to v i + 1 . Therefore, compared to the heading angle, each differential heading angle is more independent and additionally easy to estimate.
Under the assumption that the single-step completion time is consistent, the error of the single-step differential heading angle conforms to the same probability distribution. The factors of the differential heading angle can be expressed as:
f i h e a d = exp ( 1 2 h D a n g l e ( X i , X i + 1 , X i + 2 ) Δ θ i Σ D a n g l e 2 )
h D a n g l e ( X i , X i + 1 , X i + 2 ) = h a n g l e d i f ( h a n g l e ( X i + 1 , X i + 2 ) , h a n g l e ( X i , X i + 1 ) )
h a n g l e ( X i 1 , X i ) = a r c t a n ( y i y i 1 x i x i 1 ) + π if y i y i 1 0 a n d x i x i 1 < 0 , a r c t a n ( y i y i 1 x i x i 1 ) π if y i y i 1 < 0 a n d x i x i 1 < 0 , a r c t a n ( y i y i 1 x i x i 1 ) other .
h a n g l e d i f ( α 1 , α 2 ) = d if d < π , 2 π d if d π .
d = | ( α 1 mod 2 π ) ( α 2 mod 2 π ) |
where h D a n g l e ( · ) stands for the differential heading angle measurement function. Σ D a n g l e is the covariance matrix of the differential heading angle. h a n g l e ( · ) is the heading angle measurement function. h a n g l e d i f ( · ) is the function to calculate theh angle difference. Similarly, the factors of the step length can be expressed as:
f i s t e p = exp ( 1 2 h s t e p ( X i , X i + 1 ) s t e p l e n i Σ s t e p 2 )
h s t e p ( X i , X i + 1 ) = ( x i x i + 1 ) 2 + ( y i y i + 1 ) 2
where h s t e p ( · ) stands for the step-length measurement function. s t e p l e n i stands for the step length measurement. Σ s t e p is the covariance matrix of the step length.

2.3. Magnetic Factor

The earth’s magnetic field forms an anomalous field inside steel structure buildings. Thus, the indoor magnetic field is no longer the original geomagnetic field. It should be measured additionally instead of applying classical geomagnetic models to obtain maps.
The magnetic field is a vector field, and the strengths and directions of vectors in the anomalous magnetic field can be measured by a three-axis magnetometer. When using the magnetic field intensity as the key feature of the fingerprint database for positioning, it is difficult for the magnetic field to provide enough information for independent positioning because of its low information dimension and low degree of distinction. This is because the same magnetic intensity value may appear in multiple locations, so it is difficult to determine its true location based on the magnetic field information alone.
m a g n i = m a g n d 1 , i 2 + m a g n d 2 , i 2 + m a g n d 3 , i 2
where m a g n i indicates the measured value of the magnetic intensity at time i. m a g n d 1 , i , m a g n d 2 , i , m a g n d 3 , i indicate the measured values from a magnetic sensor in three axes.
In the factor graph algorithm, the magnetic field information is fully utilized. Even if a single magnetic field source is not enough to directly meet the positioning requirements, it can help eliminate the cumulative error of the inertial navigation system. In this paper, a fingerprint library is constructed through offline magnetic field acquisition, which has a mapping relationship equation from the state to the magnetic field strength.
m a g n i e s t = h m a g ( X i ^ )
where m a g n i e s t indicates the estimated value of the magnetic field at time i. The position of the non-acquisition point can be interpolated with the help of the surrounding known points through a bi-cubic function. The main steps are shown in Figure 2.
1.
An input point is used by the floor function to determine the matching area. The matching area is a square with four vertices. They are p 1 = ( x i ^ , y i ^ ) , p 2 = ( x i ^ , y i ^ + 1 ) , p 3 = ( x i ^ + 1 , y i ^ ) , p 4 = ( x i ^ + 1 , y i ^ + 1 ) .
2.
Each vertex is a fingerprint point. g ( · ) shows the magnetic field intensity at these points. g x ( · ) = x g shows the partial derivative of the magnetic field intensity in the x-direction. g y ( · ) = y g shows the partial derivative in the y-direction. Furthermore, g x y ( · ) = 2 x y g shows the cross partial derivative.
3.
Calculate intermediate matrix A.
A = 1 0 0 0 0 0 1 0 3 3 2 1 2 2 1 1 g ( p 1 ) g ( p 2 ) g y ( p 1 ) g y ( p 2 ) g ( p 3 ) g ( p 4 ) g y ( p 3 ) g y ( p 4 ) g x ( p 1 ) g x ( p 2 ) g x y ( p 1 ) g x y ( p 2 ) g x ( p 3 ) g x ( p 4 ) g x y ( p 3 ) g x y ( p 4 ) 1 0 3 2 0 0 3 2 0 1 2 1 0 0 1 1
4.
Calculate the interpolated output of the magnetic field intensity, h m a g ( X i ^ ) .
h m a g ( X i ^ ) = 1 x i ^ x i ^ ( x i ^ x i ^ ) 2 ( x i ^ x i ^ ) 3 T A 1 y i ^ y i ^ ( y i ^ y i ^ ) 2 ( y i ^ y i ^ ) 3
The bi-cubic interpolation method guarantees the continuity of the first-order partial derivative of the interpolation surface, h m a g ( X i ^ ) , is differentiable with respect to X i ^ .
x i h m a g ( X i ^ ) = 0 1 2 ( x i ^ x i ^ ) 3 ( x i ^ x i ^ ) 2 T A 1 y i ^ y i ^ ( y i ^ y i ^ ) 2 ( y i ^ y i ^ ) 3
y i h m a g ( X i ^ ) = 1 x i ^ x i ^ ( x i ^ x i ^ ) 2 ( x i ^ x i ^ ) 3 T A 0 1 2 ( y i ^ y i ^ ) 3 ( y i ^ y i ^ ) 2
The factors of the magnetic field can be expressed as:
f i m a g = exp ( 1 2 h m a g ( X i ) m a g n i Σ m a g 2 )
where Σ m a g represents the covariance matrix of the magnetic measurement error.

3. Factor Graph with Local Constraints Model

Existing factor graph models only focus on the goal of maximizing the object function but pay little attention to the rationality of local information. When a certain sensor of the navigation system is severely disturbed or a huge error occurs at a certain moment, the existing factor graph models cannot identify such errors. Assume that there is a significant deviation in the system measurement at moment k, then the value of the corresponding factor f ( X k ) will approach 0. This will result in the equation f i ( X i ) approaching 0. In this case, the estimation of the states by the factor graph model must deviate from the real states.

3.1. Improved Factor Graph

The IFG (improved factor graph) [21] is currently the best unconstrained factor graph model for sensor fusion. A weight function is developed and introduced into the factor graph algorithm to realize the adaptive change in the measurement of each sensor.
X ^ = arg min i S ( r i ) · ( h ( X i ) Z i ) Σ 2
r i = | h ( X i ) Z i |
where S ( r i ) denotes the dynamic weight function and r i represents the residual of each measured and predicted value.
S ( r ) = 1 , 0 r < r b a s e 1 1 + e x p ( α ( r r b a s e ) ) , r r b a s e
where r b a s e is threshold. When the residual is larger than the threshold, the weighed function will be closer to zero, which indicates that the corresponding sensor measurement information is isolated.

3.2. Harder Constraints for the Model

Factors with significant errors depend on the information of other normal factors for correction, while the existing weight-based factor graph algorithms only serve as soft constraints to limit errors. In this paper, hard constraints are introduced for normal factor nodes to resist the adverse interference of factors with significant measurement errors in state estimation. Therefore, the new factor graph model is expressed in the form of a constraint factor graph.
X M A P = arg max X f i ( X i )
s . t . i h ( X i ) Z i σ 2 δ i
where δ i is the upper limit of the residual of the measured and predicted value at time i.
When the predicted value is very close to the real value, h ( X i ) Z i σ will be very close to the meaning of measurement deviation. The maximum measurement deviation can be calculated statistically based on the measurement error of the sensors.
In other words, since the measured values are invariant in one experiment, only the estimated values can change the residuals. The estimated values that make the residuals larger than the max measurement deviation are definitely not close to the real values. Therefore, these estimated values should be ignored during optimization. Thus, Equation (29) provides a reasonable way to limit the estimated values. However, existing models like EKF, FG and IFG do not have such an ability; unreasonable estimated values are still considered during optimization, which is the key difference to the FGLC. The FGLC navigation and positioning method model in this paper can be expressed as follows.
Q ( X ) = i h m a g ( X i ) m a g n i Σ m a g 2 + i h s t e p ( X i , X i + 1 ) s t e p l e n i Σ s t e p 2 + i h D a n g l e ( X i , X i + 1 , X i + 2 ) Δ θ i Σ D a n g l e 2
X M A P = arg min X Q
s . t . i | h s t e p ( X i , X i + 1 ) s t e p l e n i | δ i s t e p
| h D a n g l e ( X i , X i + 1 , X i + 2 ) Δ θ i | δ i D a n g l e
where δ i s t e p is the upper limit of differential heading angle deviation and δ i D a n g l e is the the upper limit of step length deviation. In this paper, we set δ i s t e p to be three times the standard deviation (STD) of the step length measurement and δ i D a n g l e to be three times the STD of the differential angle measurement, following the guidelines proposed by Raida.
The IMU relies entirely on its own accelerometer and gyroscope, making it less susceptible to external interference than magnetic sensors [33]. Therefore, there would be no particularly significant error in the measurement of the IMU. Firstly, the raw data of the IMU can be preprocessed, through which some outliers can be processed in advance. Secondly, it is believed that the probability of the IMU having sensor problems is far less than the probability of abnormalities in other sensors that require external signal inputs to work. Thirdly, the model should trust the IMU more than other sensors, at least when sensor conflict occurs. Fourthly, preprocessing IMU data is more convincing due to the higher correlation among IMU data.
Adding local constraints to the IMU-related factor nodes can play a role in constraining other factor nodes, thereby avoiding unreasonable deviations in the predicted trajectory. The PDR factor is a factor that only depends on inertial devices. Introducing local constraints to the PDR factor would make the system trust PDR measurements more when multi-sensor measurements conflict with each other. The predicted states beyond the constraints of Equations (32) and (33) can all be considered to be due to magnetic field anomalies. When these anomalies occur, the constraints ensure that the navigation system trusts the IMU measurements more.
The factor model of the FGLC navigation and positioning method in this paper is shown in Figure 3. The filled circles represent factors corresponding to different measurements. The triangles represent local constraints for corresponding factors, while existing factor graph models do not have such constraint nodes.

3.3. Sensor Conflict

Equations (32) and (33) define what a sensor conflict is in this paper, which occurs when measurements from the IMU and the magnetic sensor, respectively, exceed the constraints. At the same time, Equations (32) and (33) also clearly show that the system’s strategy is to trust the IMU more when a conflict occurs. At this time, the measurement of the magnetic sensor is considered abnormal. The magnetic sensor may be being disturbed or may have an error itself. Of course, even if the magnetic sensor is working properly, it may still cause a conflict.
Conflicts may also occur when the sensors are working properly. As shown in Figure 4, obtaining step size measurements from two sensors may not satisfy the constraints due to the large difference and cause sensor conflicts. This shows that the FGLC can detect more sensor conflicts than other algorithms. Thus, we believe that even under normal circumstances, better accuracy can be obtained by using the FGLC algorithm.

4. Model Solution

The FGLC transforms the navigation solution problem into a hard-constrained nonlinear least squares problem, and the algorithm used in the existing factor graph is no longer applicable.

4.1. Variable Space Mapping

Override the constraints in (32) and (33):
h s t e p ( X i , X i + 1 ) s t e p l e n i = 2 π arctan ( w i ) δ i s t e p
h D a n g l e ( X i , X i + 1 , X i + 2 ) Δ θ i = 2 π arctan ( v i ) δ i D a n g l e
where w i , v i R ; thus, 2 π arctan ( w i ) ( 1 , 1 ) and 2 π arctan ( v i ) ( 1 , 1 ) . It is easy to see Equations (34) and (35) are equal to Equations (32) and (33).
Make h s t e p ( X i , X i + 1 ) the step length estimation at time i as s t e p i ^ .
While h D a n g l e ( X i , X i + 1 , X i + 2 ) , the differential heading estimation is D a n g l e i ^ . There would be the following derivations.
s t e p i ^ = s t e p l e n i + 2 π arctan ( w i ) δ i s t e p
D a n g l e i ^ = Δ θ i + 2 π arctan ( v i ) δ i D a n g l e
θ i ^ = θ 1 + j i D a n g l e j ^
X i + 1 ^ = X i ^ + s t e p i ^ [ cos ( θ i ^ ) , sin ( θ i ^ ) ] T
where 2 π arctan ( w i ) δ i s t e p is the deviation of the step length measurement from the estimation and 2 π arctan ( v i ) δ i D a n g l e is the difference between the measured and estimated differential heading angle. It is easy to prove that the above two deviations always satisfy the constraints. θ i ^ is the estimation of heading angles and θ 1 is the starting heading angle. X i ^ is the estimation of the navigation states. It is not difficult to uniquely confirm a predicted trajectory through all w and v variables. The variable space of the problem is successfully mapped from a non-vector space to a vector space and it is surjective.

4.2. Gradient Algorithm Solution

The objective function Q ( X ) in Equation (30) is differentiable with respect to w i and v i . Since there is no closed solution to the nonlinear least squares problem, variables must be updated iteratively. There are two main derivating steps as follows.
w k Q = j = k n 2 ( σ m a g ) 2 ( h m a g ( X j ^ ) m a g j ) · w k h m a g ( X j ^ ) + ( δ k s t e p σ s t e p ) 2 4 π arctan ( w k ) 2 π ( w k 2 + 1 )
w k h m a g ( X j ^ ) = x j h m a g ( X j ^ ) x j w k + y j h m a g ( X j ^ ) y j w k
x j w k = cos ( θ k ^ ) δ k s t e p 2 π ( w k 2 + 1 )
y j w k = sin ( θ k ^ ) δ k s t e p 2 π ( w k 2 + 1 )
where w k Q is the partial derivative in the w k direction.
v k Q = j = k n 2 ( σ m a g ) 2 ( h m a g ( X j ^ ) m a g j ) · v k h m a g ( X j ^ ) + ( δ k D a n g l e σ D a n g l e ) 2 4 π arctan ( v k ) 2 π ( v k 2 + 1 )
v k h m a g ( X j ^ ) = x j h m a g ( X j ^ ) x j v k + y j h m a g ( X j ^ ) y j v k
x j v k = 2 π ( v k 2 + 1 ) i = k j s t e p i ^ sin ( θ i ^ ) δ i D a n g l e
y j v k = 2 π ( v k 2 + 1 ) i = k j s t e p i ^ cos ( θ i ^ ) δ i D a n g l e
where v k Q is the partial derivative in the v k direction. The necessary condition for the minimum value of Q ( X ) is w k Q = v k Q = 0 . Then, the parameters are updated iteratively using the Adam gradient method [34]. Finally, a predicted trajectory is uniquely restored as the output of the algorithm.
When considering the zero deviation of the heading angle, v k Q can be expressed in the following form.
v k Q = j = k n 2 ( σ m a g ) 2 ( h m a g ( X j ^ ) m a g j ) · v k h m a g ( X j ^ ) + ( δ k s t e p σ s t e p ) 2 8 π 2 arctan ( v k ) + b i a ( v k 2 + 1 )
where b i a is the bias of the differential heading angle. When it is smaller than arctan ( v k ) , the bias has little effect.

4.3. Computational and Memory Complexity Analysis

Suppose the length of the trajectory is denoted as n. When solving the model, it requires a minimum of O(2n) additional memory space to store the temporary estimated value of the trajectory, as well as O(2n) memory space to store the temporary variables mapped to the W and V spaces. Furthermore, the model also needs to store the entire uninterpolated magnetic field map, and the memory size depends on the size of the map.
To update iteratively, a sliding window with a window size of w i n s i z e is used. The model needs to perform at least n × w i n s i z e cycles during the solving process. In each cycle, the model needs to iterate the variables to the local maximum and perform two variable space mappings. The time required for the model to iterate to the maximum value in each cycle depends on the convergence speed of the gradient optimization algorithm, with a time complexity of O(T), where T represents the average number of iterations. The time complexity of completing two variable space mappings is O(2n), and implementing caching becomes challenging in high dimensions.
Compared to existing factor graph algorithms, the FGLC has a higher time complexity when iterative methods are used for solving. The main cost gap lies in the variable space mapping.

5. Field Experiment and Demonstration

In order to verify the performance of the algorithm proposed in this paper, field experiments were conducted. In order to fully test the reliability and stability of the algorithm in this paper, the experimental test path is an irregular curve, rather than a regular one.

5.1. Offline Fingerprint Collection

The triaxial magnetic field intensities at the grid point positions were collected in the experimental area in advance. The fingerprint library interface was constructed using the bicubic interpolation algorithm. In the navigation solution stage, the estimated value and gradient of the magnetic field strength at the estimated position in the experimental area can be obtained immediately through this interface. The collected magnetic field fingerprint information is shown in Figure 5 after interpolation. The maximum length of the experimental area is 20 m and the maximum width is 10 m. The colored area is the intensity heat map obtained after interpolation of the magnetic field data collected offline. The color bar indicates the range of magnetic strength in the area.

5.2. Navigation Test

During the data collection phase, when the tester walked in the experimental area, another tester recorded the experiment with a handheld camera. In the data analysis stage, each frame of the video showing the tester’s steps was compared with the actual map and marked accordingly. The coordinates of the testers’ positions in the grid were recorded as a reference path. As shown in Figure 6, the footprints are considered as the actual positions. The pedestrian will swing from left to right when walking, so the reference path will be a little jerky.
A variety of combination algorithms were used for research. The PDR method was used as a baseline. The performances of the extended Kalman filter (EKF) [9]; the existing factor graph algorithm (FG) [11]; the improved factor graph (IFG) [21], which is the state-of-the-art method; and the factor graph with local constraints algorithm (FGLC) proposed in this paper were compared, respectively.

5.3. Solution Analysis

Figure 7 shows the comparison between the trajectories predicted by the above mentioned algorithms and the reference path. The trajectory predicted by the FGLC algorithm proposed in this paper is closest to the reference path. The existing factor graph models can also predict the trajectory relatively accurately, but there are relatively large errors in some areas.
Figure 8 shows the comparison of the absolute error performance between the trajectories predicted by the algorithms, Table 1 shows the types of errors and Figure 8 shows the cumulative probability distribution of the trajectories predicted by the algorithms. The errors of all the pace points of the FGLC are below 1.6 m, and the average error is 0.83 m. The average error of the EKF is 1.15 m; that of IFG is 1.10 m. The existing factor graph algorithm is worse, with an average error of 1.43 m. The maximum error of the EKF is 4.36 m. Compared with the IFG, the average error of the FGLC algorithm is reduced by 24.5%. The FGLC algorithm is the most time-consuming method and the EKF algorithm is the least time-consuming method. Since the fastest implementation of the IFG is unknown, only an estimated range is given.
Figure 9 shows the cumulative probability distribution plot of the absolute error at each step of the trajectories predicted by the algorithms. A total of 90% of the errors of the FGLC are distributed within an interval of less than 1.5 m. In the same interval, the IFG accounts for 85%, the EKF accounts for 70% and the FG accounts for less than 60%. The trajectory error predicted solely by the PDR algorithm is the largest, with a median of 3 m.
Figure 10 shows predicted the trajectories’ bias both in the x and y directions. The predicted trajectory of each algorithm exhibits a positive shift in the y direction and a negative shift in the x direction. This offset direction aligns with that of the PDR, suggesting that the trajectory error is influenced by the PDR offset. However, the offset is relatively small and it is primarily concentrated around zero.
Figure 11 and Figure 12 show the standard deviation analysis of the step length and differential heading angle in the predicted paths (EKF/FG/IFG/FGLC), which can be considered an integrity monitoring method. In Figure 11, the errors of the FGLC predicted trajectory step length are less than 3 times the standard deviation. However, the step length errors of EKF/FG are greater than three standard deviations at several positions. The result shows that there are strides larger than 2 m in the FG prediction trajectory, which is obviously against common sense. The step-length errors of the IFG stay below 3 times the standard deviation but are generally larger than that of the FGLC.
The FGLC inherently fully considers the local constraints on the step length, so its estimation of each step of the step lengths is within a reasonable range. A similar conclusion is shown in Figure 12. The ratios of the FGLC predicted trajectory differential heading angle error to the standard deviation are always maintained at a low level, while the ratios of the differential heading angle error of the FG-predicted trajectory fluctuated violently. It is clear that these fluctuations are statistically abnormal. The design of the FGLC using differential heading angle constraints makes the predicted trajectory smoother and more reasonable. In summary, the FGLC provides a guarantee and theoretical support for high-accuracy navigation.

6. Simulation Experiment

Due to the limited area of the indoor test environment, it was not convenient to carry out large-scale tests. Therefore, a test platform was built independently to simulate the performance of the algorithms under a wide range of long-term test conditions. The algorithms’ anti-interference performances, denoting their capacity to mitigate environmental interference, were assessed through the introduction of intense magnetic interference at random locations while monitoring the resultant decline in accuracy. As stated in the introduction, measurement errors are inevitably influenced by environmental interference.

6.1. Test Parameters

The simulated indoor magnetic field has a rectangular area of 300 m × 300 m. The number of test steps was 500, and the test trajectory was randomly generated. The starting point is the position with coordinates is (150,150). The standard deviation of the single-step drift error of the gyroscope heading angle is 1 degree, the standard deviation of the single-step measurement error of the step length is 0.1 m, the standard deviation of the magnetic measurement error is 5 μT and the standard deviation of the magnetic field interference noise is 30 μT.
When generating the simulated magnetic field map, the maximum and minimum values of the regional magnetic field were set as 50 μT and 20 μT, respectively. Additionally, the number of magnetic field extreme positions within the same area was adjusted to match the real magnetic field, with an approximate density of four extreme values per 200 square meters. Considering the inherent uncertainty of indoor magnetic fields, the positions of these extreme points were randomly distributed. The simulated magnetic map in the experiment is shown in Figure 13.

6.2. Simulation Experiment and Analysis

As shown in Figure 14 and Figure 15, only relying on the PDR to predict the trajectory will produce serious cumulative errors, and the predicted trajectory deviates from the real trajectory. However, the FGLC uses the information of the magnetic field to correct the cumulative error of the PDR, so that the absolute errors of the predicted trajectory are always kept in a stable and low error range. Meanwhile, the absolute error will not increase with time.
It is worth mentioning that the EKF, FG and IFG algorithms cannot always predict accurate trajectories in this simulation experiment because their predicted trajectories often deviate from the reference a lot, as shown in Figure 16. Thus, the above-mentioned algorithms will not be considered in the following discussions.
Figure 17 shows that the trajectories predicted in the four experiments are affected by interference in the environment. The green areas represent locations in the trajectory that are strongly disturbed. It can be seen that the influence of interference on the predicted trajectories is very limited, and the predicted trajectories always fit the real trajectory regardless of where the interference occurs. Figure 18 shows the errors of the trajectory corresponding to the four experiments in Figure 17. The red transparent area is the trajectory position directly affected by strong interference. All the errors are generally maintained below 2 m. The errors increase at locations with strong interference, but the maximum error does not exceed 4 m and none of the errors propagate to further locations.
The reason why none of the errors propagate to further locations is that the FGLC relies on the local constraint mechanism, which allows the FGLC to lock the estimated interval of the predicted positions. Outliers beyond the feasible range due to strong magnetic interference were excluded. The simulation experiment shows that the FGLC can predict the trajectory with low error even in the face of very strong magnetic field interference.

7. Conclusions

In this paper, a factor graph with local constraints is proposed, which is a magnetic field/PDR integrated navigation method based on a constraint factor graph. The factor graph nodes are reconstructed by constraints, so that the navigation problem is transformed into a hard-constrained optimization problem. Aiming at the problem that there is no closed solution for hard-constrained nonlinear least squares, a new variable space mapping relationship is developed according to the particularity of the problem so that the problem can be solved using gradient algorithms. Due to this, the solution speed of the algorithm is guaranteed. Through a complexity analysis, it is determined that the model requires more computing time to complete the variable space mapping than the existing factor graph algorithm.
The experimental findings demonstrate that the FGLC algorithm exhibits a superior positioning accuracy, as evidenced by an RMSE of 0.91m. The principle of the FGLC algorithm is explained by analyzing the trajectories predicted by different algorithms. The FGLC only relies on magnetic and PDR information in a wide indoor plane area when performing navigation experiments on complex curved trajectories. Simulation experiments with a complex and long-term trajectory with strong interference were conducted; these verified that the FGLC algorithm has reliable anti-interference ability.
There are several further research opportunities: Firstly, the FGLC can be continually used as a sensor-combining model to solve navigation problems with more kinds of sensors. Secondly, it is claimed in this paper that the FGLC trusts the IMU sensor more when conflicting with the magnetic sensor. Therefore, in future work, the priority between different sensors can be adjusted accordingly. Thirdly, sensors (a magnetic sensor in this paper) that cannot be used for positioning alone can also be used to assist positioning and navigation.

Author Contributions

Conceptualization, Z.L. and J.S.; methodology, H.S. and J.S.; software, Z.L.; validation, J.S., Z.L. and H.S.; formal analysis, Z.L.; investigation, J.S.; resources, J.S. and H.S.; data curation, Z.L.; writing—original draft preparation, Z.L.; writing—review and editing, J.S. and H.S.; visualization, Z.L.; supervision, J.S.; project administration, J.S.; funding acquisition, J.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Natural Science Foundation of China project (Grant No. 61701481); Scientific Research Fund of Zhejiang Provincial Education Department (Grant No. Y202044275); Zhejiang Province Commonweal Projects (Grant No. LGG18F010010); and Jiangsu Province Policy Guidance Program International Science and Technology Cooperation Project (Grant No. BZ2019006).

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bennett, J.S.; Vyhnalek, B.E.; Greenall, H.; Bridge, E.M.; Gotardo, F.; Forstner, S.; Harris, G.I.; Miranda, F.A.; Bowen, W.P. Precision magnetometers for aerospace applications: A review. Sensors 2021, 21, 5568. [Google Scholar]
  2. Iliev, T.B.; Stoyanov, I.S.; Sokolov, S.A.; Beloev, I.H. The Influence of Multipath Propagation of the Signal on the Accuracy of the GNSS Receiver. In Proceedings of the 2020 43rd International Convention on Information, Communication and Electronic Technology (MIPRO), Opatija, Croatia, 28 September–2 October 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 508–511. [Google Scholar]
  3. Hu, G.; Zhang, W.; Wan, H.; Li, X. Improving the heading accuracy in indoor pedestrian navigation based on a decision tree and Kalman filter. Sensors 2020, 20, 1578. [Google Scholar] [CrossRef]
  4. Storms, W.; Shockley, J.; Raquet, J. Magnetic field navigation in an indoor environment. In Proceedings of the 2010 Ubiquitous Positioning Indoor Navigation and Location Based Service, Kirkkonummi, Finland, 14–15 October 2010; IEEE: Piscataway, NJ, USA, 2010; pp. 1–10. [Google Scholar]
  5. Chen, Z.; Liu, Z.; Zhang, Q.; Chen, D.; Pan, M.; Hu, J.; Xu, Y.; Wang, Z.; Wang, Z. An Improved Geomagnetic Navigation Method Based on Two-Component Gradient Weighting. IEEE Geosci. Remote. Sens. Lett. 2022, 19, 8030005. [Google Scholar] [CrossRef]
  6. Wahlström, J.; Kok, M.; de Gusmao, P.P.B.; Abrudan, T.E.; Trigoni, N.; Markham, A. Sensor fusion for magneto-inductive navigation. IEEE Sens. J. 2019, 20, 386–396. [Google Scholar] [CrossRef]
  7. Li, S.; Cai, C.; Wang, Y.; Qiu, Y.; Huang, Y. A Fusion Method for PDR and Magnetic Fingerprinting Based Indoor Localization on Smartphone. Chin. J. Sens. Actuators 2018, 31, 36–42. [Google Scholar]
  8. Kauffman, K.; Raquet, J. Navigation via H-field signature map correlation and INS integration. In Proceedings of the 2014 IEEE Radar Conference, Cincinnati, OH, USA, 19–23 May 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 1390–1395. [Google Scholar]
  9. Hu, F.; Wu, G. Distributed error correction of EKF algorithm in multi-sensor fusion localization model. IEEE Access 2020, 8, 93211–93218. [Google Scholar] [CrossRef]
  10. Gao, D.; Zzhu, M.; Han, P. A geomagnetic/inertial depth fusion navigation method. J. Chin. Inert. Technol. 2022, 30, 437–444. [Google Scholar] [CrossRef]
  11. Ma, X.; Liu, X.; Li, C.L.; Che, S. Multi-source information fusion based on factor graph in autonomous underwater vehicles navigation systems. Assem. Autom. 2021, 41, 536–545. [Google Scholar] [CrossRef]
  12. Zhao, Y.; Ji, Y.; Guo, Y.; Li, A.; Zhao, H. Research on Inertial/Geomagnetic/LiDAR Integrated Positioning Technology Based on Graph Optimation. Navig. Position. Timing 2022, 9, 64–69. [Google Scholar] [CrossRef]
  13. de Oliveira, F.A.C.; Torres, F.S.; García-Ortiz, A. Recent advances in sensor integrity monitoring methods—A review. IEEE Sens. J. 2022, 22, 10256–10279. [Google Scholar] [CrossRef]
  14. Wang, X.; Cui, X.; Liu, G.; Lu, M. Designing the Signal Quality Monitoring Algorithm Based on Chip Domain Observables for BDS B1C/B2a Signals under the Requirements of DFMC SBAS. Remote Sens. 2023, 15, 1008. [Google Scholar] [CrossRef]
  15. Wang, J.; Liu, X.; Liu, F.; Chen, C.; Tang, Y. An Integrated GNSS/MEMS Accelerometer System for Dynamic Structural Response Monitoring under Thunder Loading. Remote Sens. 2023, 15, 1166. [Google Scholar] [CrossRef]
  16. Yang, L.; Sun, N.; Rizos, C.; Jiang, Y. ARAIM Stochastic Model Refinements for GNSS Positioning Applications in Support of Critical Vehicle Applications. Sensors 2022, 22, 9797. [Google Scholar] [CrossRef]
  17. Meng, Q.; Zhuang, Y.; Li, S. Implementation and Performance Analysis of Constellation Dynamic Selection in Multi-Constellation RAIM. Micromachines 2022, 13, 1455. [Google Scholar] [CrossRef]
  18. Meng, Q.; Hsu, L.T. Integrity monitoring for all-source navigation enhanced by Kalman filter-based solution separation. IEEE Sens. J. 2020, 21, 15469–15484. [Google Scholar] [CrossRef]
  19. Joerger, M.; Pervan, B. Kalman filter-based integrity monitoring against sensor faults. J. Guid. Control Dyn. 2013, 36, 349–361. [Google Scholar] [CrossRef]
  20. Arana, G.D.; Hafez, O.A.; Joerger, M.; Spenko, M. Recursive integrity monitoring for mobile robot localization safety. In Proceedings of the 2019 International Conference on Robotics and Automation (ICRA), Montreal, QC, Canada, 20–24 May 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 305–311. [Google Scholar]
  21. Wei, X.; Li, J.; Zhang, D.; Feng, K. An improved integrated navigation method with enhanced robustness based on factor graph. Mech. Syst. Signal Process. 2021, 155, 107565. [Google Scholar] [CrossRef]
  22. Xu, C.; Xu, C.; Wu, C.; Qu, D.; Liu, J.; Wang, Y.; Shao, G. A novel self-adapting filter based navigation algorithm for autonomous underwater vehicles. Ocean Eng. 2019, 187, 106146. [Google Scholar] [CrossRef]
  23. Barfoot, T.D. State Estimation for Robotics; Cambridge University Press: Cambridge, UK, 2017. [Google Scholar]
  24. Ta, D.N.; Kobilarov, M.; Dellaert, F. A factor graph approach to estimation and model predictive control on unmanned aerial vehicles. In Proceedings of the 2014 International Conference on Unmanned Aircraft Systems (ICUAS), Orlando, FL, USA, 27–30 May 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 181–188. [Google Scholar]
  25. Sodhi, P.; Choudhury, S.; Mangelson, J.G.; Kaess, M. ICS: Incremental constrained smoothing for state estimation. In Proceedings of the 2020 IEEE International Conference on Robotics and Automation (ICRA), Paris, France, 31 May–31 August 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 279–285. [Google Scholar]
  26. Yang, S.; Chen, G.; Zhang, Y.; Choset, H.; Dellaert, F. Equality constrained linear optimal control with factor graphs. In Proceedings of the 2021 IEEE International Conference on Robotics and Automation (ICRA), Xi’an, China, 30 May–5 June 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 9717–9723. [Google Scholar]
  27. Cunningham, A.; Paluri, M.; Dellaert, F. DDF-SAM: Fully distributed SLAM using constrained factor graphs. In Proceedings of the 2010 IEEE/RSJ International Conference on Intelligent Robots and Systems, Taipei, Taiwan, 18–22 October 2010; IEEE: Piscataway, NJ, USA, 2010; pp. 3025–3030. [Google Scholar]
  28. Huang, Y.; Shan, T.; Chen, F.; Englot, B. DiSCo-SLAM: Distributed scan context-enabled multi-robot lidar slam with two-stage global-local graph optimization. IEEE Robot. Autom. Lett. 2021, 7, 1150–1157. [Google Scholar] [CrossRef]
  29. Nashed, S.B.; Park, J.J.; Webster, R.; Durham, J.W. Robust rank deficient slam. In Proceedings of the 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Prague, Czech Republic, 27 September–1 October 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 6603–6608. [Google Scholar]
  30. Qadri, M.; Sodhi, P.; Mangelson, J.G.; Dellaert, F.; Kaess, M. InCOpt: Incremental Constrained Optimization using the Bayes Tree. In Proceedings of the 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Kyoto, Japan, 23–27 October 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 6381–6388. [Google Scholar]
  31. Carlone, L.; Kira, Z.; Beall, C.; Indelman, V.; Dellaert, F. Eliminating conditionally independent sets in factor graphs: A unifying perspective based on smart factors. In Proceedings of the 2014 IEEE International Conference on Robotics and Automation (ICRA), Hong Kong, China, 31 May–7 June 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 4290–4297. [Google Scholar]
  32. Yao, Z.; Shang, J.; Sun, J.; Xiao, J.; Wang, Y. A Muti-Source Fusion Indoor and Outdoor Seamless Positioning Method. Chin. J. Sens. Actuators 2022, 35, 72–83. [Google Scholar]
  33. Yao, L.; Wu, Y.W.A.; Yao, L.; Liao, Z.Z. An integrated IMU and UWB sensor based indoor positioning system. In Proceedings of the 2017 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Sapporo, Japan, 18–21 September 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 1–8. [Google Scholar]
  34. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
Figure 1. Magnetic field/PDR indoor integrated navigation system based on the FGLC schematic diagram.
Figure 1. Magnetic field/PDR indoor integrated navigation system based on the FGLC schematic diagram.
Electronics 12 03832 g001
Figure 2. Schematic diagram of magnetic field database matching interpolation.
Figure 2. Schematic diagram of magnetic field database matching interpolation.
Electronics 12 03832 g002
Figure 3. The FGLC graph model schematic diagram.
Figure 3. The FGLC graph model schematic diagram.
Electronics 12 03832 g003
Figure 4. Sensors working properly to measure step length.
Figure 4. Sensors working properly to measure step length.
Electronics 12 03832 g004
Figure 5. Real world experimental environment.
Figure 5. Real world experimental environment.
Electronics 12 03832 g005
Figure 6. Illustration of the experimental data collection and recording process.
Figure 6. Illustration of the experimental data collection and recording process.
Electronics 12 03832 g006
Figure 7. Comparison of the trajectories predicted by the algorithms with the real trajectory. Each trajectory contains more than 80 steps in total; the starting point is the position corresponding to the coordinates (1,1) and the starting heading angle is the positive direction of the x-axis.
Figure 7. Comparison of the trajectories predicted by the algorithms with the real trajectory. Each trajectory contains more than 80 steps in total; the starting point is the position corresponding to the coordinates (1,1) and the starting heading angle is the positive direction of the x-axis.
Electronics 12 03832 g007
Figure 8. Schematic diagram of the absolute errors between the predicted position of the predicted trajectories of different algorithms and the corresponding position of the real trajectory.
Figure 8. Schematic diagram of the absolute errors between the predicted position of the predicted trajectories of different algorithms and the corresponding position of the real trajectory.
Electronics 12 03832 g008
Figure 9. The cumulative probability distribution plot of the absolute error at each step of the trajectories predicted by different algorithms.
Figure 9. The cumulative probability distribution plot of the absolute error at each step of the trajectories predicted by different algorithms.
Electronics 12 03832 g009
Figure 10. Bias in both x and y directions at each step of the trajectories predicted by different algorithms.
Figure 10. Bias in both x and y directions at each step of the trajectories predicted by different algorithms.
Electronics 12 03832 g010
Figure 11. The ratios of the trajectories step-length predicted by different algorithms to the standard deviation of the true setp-length. The standard deviation of the true setp-length is an empirical value.
Figure 11. The ratios of the trajectories step-length predicted by different algorithms to the standard deviation of the true setp-length. The standard deviation of the true setp-length is an empirical value.
Electronics 12 03832 g011
Figure 12. The ratios of the trajectory differential heading angle predicted by different algorithms to the standard deviation of the true differential heading angle.
Figure 12. The ratios of the trajectory differential heading angle predicted by different algorithms to the standard deviation of the true differential heading angle.
Electronics 12 03832 g012
Figure 13. The simulated magnetic field map.
Figure 13. The simulated magnetic field map.
Electronics 12 03832 g013
Figure 14. Schematic diagram of the error comparison between FGLC and PDR.
Figure 14. Schematic diagram of the error comparison between FGLC and PDR.
Electronics 12 03832 g014
Figure 15. Comparison of the absolute error of each step between the FGLC-predicted trajectory and the PDR-predicted trajectory.
Figure 15. Comparison of the absolute error of each step between the FGLC-predicted trajectory and the PDR-predicted trajectory.
Electronics 12 03832 g015
Figure 16. Trajectories predicted by the FG and the IFG.
Figure 16. Trajectories predicted by the FG and the IFG.
Electronics 12 03832 g016
Figure 17. The influence of strong magnetic field interference on the predicted trajectory of the FGLC. (ad) show predicted trajectories when different positions are disturbed. All other parameters were kept the same.
Figure 17. The influence of strong magnetic field interference on the predicted trajectory of the FGLC. (ad) show predicted trajectories when different positions are disturbed. All other parameters were kept the same.
Electronics 12 03832 g017
Figure 18. The influence of strong magnetic field interference on the error. (ad), respectively, correspond to each situation in Figure 17.
Figure 18. The influence of strong magnetic field interference on the error. (ad), respectively, correspond to each situation in Figure 17.
Electronics 12 03832 g018
Table 1. Statistical analysis of trajectory errors predicted by different algorithms.
Table 1. Statistical analysis of trajectory errors predicted by different algorithms.
AlgorithmMean Error (m)RMSE (m)Max Error (m)Mean y Bias (m)Mean x Bias (m)Time Consumed (s)
PDR2.923.335.402.39−1.35<0.02
EKF1.151.454.360.390.280.02
FG1.431.623.560.42−0.421.60
IFG1.101.172.070.36−0.31>2
FGLC0.830.911.500.30−0.265
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, Z.; Shang, J.; Shi, H. Factor Graph with Local Constraints: A Magnetic Field/Pedestrian Dead Reckoning Integrated Navigation Method Based on a Constrained Factor Graph. Electronics 2023, 12, 3832. https://doi.org/10.3390/electronics12183832

AMA Style

Li Z, Shang J, Shi H. Factor Graph with Local Constraints: A Magnetic Field/Pedestrian Dead Reckoning Integrated Navigation Method Based on a Constrained Factor Graph. Electronics. 2023; 12(18):3832. https://doi.org/10.3390/electronics12183832

Chicago/Turabian Style

Li, Zehua, Junna Shang, and Huli Shi. 2023. "Factor Graph with Local Constraints: A Magnetic Field/Pedestrian Dead Reckoning Integrated Navigation Method Based on a Constrained Factor Graph" Electronics 12, no. 18: 3832. https://doi.org/10.3390/electronics12183832

APA Style

Li, Z., Shang, J., & Shi, H. (2023). Factor Graph with Local Constraints: A Magnetic Field/Pedestrian Dead Reckoning Integrated Navigation Method Based on a Constrained Factor Graph. Electronics, 12(18), 3832. https://doi.org/10.3390/electronics12183832

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