Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

Received September 4, 2019, accepted October 3, 2019, date of publication October 11, 2019, date of current version October

24, 2019.
Digital Object Identifier 10.1109/ACCESS.2019.2946609

Combined Quaternion-Based Error State Kalman


Filtering and Smooth Variable Structure
Filtering for Robust Attitude Estimation
WONKEUN YOUN , (Member, IEEE), AND
STEPHEN ANDREW GADSDEN , (Senior Member, IEEE)
1 UAV System Division, Aeronautics Research and Development Head Office, Korea Aerospace Research Institute, Daejeon 34133, South Korea
2 College of Engineering and Physical Sciences, University of Guelph, Guelph, ON N1G 2W1, Canada
Corresponding author: Stephen Andrew Gadsden (gadsden@uoguelph.ca)
This work was supported in part by the Research and Development Project Funded by the Korea Aerospace Research Institute (KARI)
under Grant FR19116, and in part by the Natural Sciences and Engineering Research Council of Canada (NSERC) Discovery Grant.

ABSTRACT This paper presents a novel robust quaternion-based error state Kalman filter (ESKF) for
coping with modeling uncertainty in inertial measurement unit (IMU)-based attitude estimation. The smooth
variable structure filter (SVSF) has recently been proposed and proven to be robust to modeling uncertainty.
In an effort to combine the accuracy of an ESKF with the robustness of the SVSF, the ESKF and SVSF
algorithms have been merged to create the ESKF-SVSF algorithm. In particular, a comprehensive fault
detection strategy has been proposed to combine the optimality of the ESKF and the robustness of the SVSF.
The proposed ESKF-SVSF algorithm was validated on experimental data collected from a small unmanned
aerial vehicle (UAV) in the presence of faulty gyroscope signals. In the experiment, four faulty test cases were
considered, involving the injection of two types of faults into the raw gyroscope signals to simulate modeling
uncertainty. Although the proposed ESKF-SVSF algorithm incurs a slightly increased computational load,
the experimental results demonstrate that the proposed algorithm yields more accurate attitude estimates
than the conventional approach does in the presence of modeling uncertainty.

INDEX TERMS Attitude estimation, error state Kalman filter, inertial measurement units, modeling
uncertainty, quaternion, smooth variable structure filter.

I. INTRODUCTION and low cost [9]. Additionally, these low-cost IMUs have
Accurate and reliable attitude estimation is crucial for the safe recently enabled related advances in industrial applications
navigation and control of aerial vehicles [1], ground vehicles of small unmanned aerial vehicles (UAVs). However, unlike
[2], underwater vehicles [3], and satellites [4]–[6]. However, in commercial aircraft, redundant IMUs cannot be installed
sensor and actuator faults may cause critical issues threaten- in a small, low-cost UAV due to its limited payload and size
ing the overall safety of such a vehicle; thus, there is an urgent to ensure a fault-tolerant system of IMUs.
need for immediate fault identification and isolation [7]. For The well-known Kalman filtering technique has been
instance, commercial aircraft are equipped with at least three widely implemented for attitude estimation using IMUs [10].
redundant inertial measurement units (IMUs) to cope with This technique requires a complete mathematical descrip-
various IMU fault situations [8]. tion of the system and measurement models along with
Recently, microelectromechanical system (MEMS)-based their noise statistics. However, accurate modeling with low-
IMUs, which typically consist of a 3-axis accelerometer, a cost IMUs requires a complex, time-consuming process, and
3-axis gyroscope, and a 3-axis magnetometer, have become the obtained model is inevitably susceptible to an unknown
popular for attitude estimation in various applications due constant bias or a time-varying random bias when an IMU
to their light weight, compact size, low power consumption, fault occurs. Such malfunctioning of IMUs can cause the
estimation performance of the Kalman filter to severely
The associate editor coordinating the review of this manuscript and deteriorate or can even cause the filter to diverge. Thus, an
approving it for publication was Lubin Chang . appropriate mitigation algorithm for suppressing the effect

This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see http://creativecommons.org/licenses/by/4.0/
VOLUME 7, 2019 148989
W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

of IMU faults is strongly required in the Kalman filtering readily obtained. Thus, an augmented-state-based approach
scheme [11]. is not considered in this paper.
In most Kalman filtering approaches for attitude estima- As an alternative approach, the smooth variable structure
tion, the attitude is first propagated by integrating the angular filter (SVSF), introduced in 2007, has been proven to be
rate from the gyroscope to serve as the input signal [12]. robust to modeling uncertainty. An extended Kalman filter
The attitude is then updated using the information from the (EKF) [24], an unscented Kalman filter (UKF) [24], and a
accelerometer and magnetometer. In static or low-dynamics cubature Kalman filter (CKF) [25] have all been merged with
conditions, the accelerometer measures the Earth’s gravity the SVSF to address modeling uncertainty, and the simulation
and provides information on the roll and pitch, while the results demonstrate improved robustness and accuracy of esti-
magnetometer primarily provides yaw information by mea- mation. In contrast to the augmented-state-based approach,
suring the earth’s magnetic field [13]. Since the inclination the SVSF is relatively easy to implement and incurs only a
angle of the magnetic field is nonzero except on the Earth’s slight increase in computational complexity [25]. Simulation
equator, the magnetometer also provides some information results obtained using the SVSF have been presented in many
on the pitch and roll. Thus, an information fusion procedure previous papers [24]–[26], but few results obtained based on
using both accelerometer and magnetometer measurements real-world data have been reported.
can be used as the measurement update procedure in the To the best of our knowledge, several studies have verified
Kalman filtering scheme. robust attitude estimation algorithms for cases of accelerom-
However, such an accelerometer-based measurement eter/magnetometer measurement faults, whereas very few
update procedure is very sensitive to the excessive vibration studies have investigated the feasibility of attitude algorithms
and external acceleration experienced when a UAV accel- that are robust to faults in the angular rate estimates obtained
erates [14]. In addition, magnetometer measurements can from gyroscope data. The main motivation of this paper is
be easily interfered by external magnetic disturbances due to propose a new robust attitude estimation algorithm called
to the rotation of the motor or nearby steel bodies [15]. the ESKF-SVSF algorithm, which effectively combines the
To address the aforementioned cases, several methods, such accuracy of an error state Kalman filter (ESKF) with the
as covariance adaptation [16], adaptive Kalman filtering robustness of the SVSF. In particular, a comprehensive fault
[17] and an adaptive cost function [18], have been suc- detection strategy has been proposed to effectively switch
cessfully proposed. The basic principle underlying these between the ESKF and SVSF according to the fault diagnosis.
filtering schemes is to adaptively compute the relative The proposed ESKF-SVSF algorithm has been validated on
weights of the information obtained from the gyroscope- an IMU dataset collected from a UAV in the presence of faults
based predictions and the measurement update of the in the angular rate signals from the gyroscope.
accelerometer/magnetometer by adjusting the measurement This paper is organized as follows. The ESKF for attitude
covariance. estimation, including sensor modeling and system kinemat-
However, the aforementioned approach often requires a ics, is presented in Section II. In Section III, the SVSF
large number of data samples for detecting disturbances [19], formulation is presented. In Section IV, the proposed com-
thus leading to slow response times and large estimation prehensive fault detection strategy is presented. In Section V,
errors. In addition, these algorithms focus only on the case the experimental results and discussion are presented. Con-
of accelerometer/magnetometer measurement faults and do clusions and future work are presented in Section VI.
not consider the possibility of a faulty input gyroscope signal.
Thus, only gyroscope faults, such as system modeling uncer- II. ERROR STATE KALMAN FILTER FOR QUATERNION
tainty, are considered in this paper, whereas acceleration and KINEMATICS FOR ATTITUDE ESTIMATION
magnetic disturbances are beyond the current scope. An arbitrary orientation can be represented by a unit quater-
Various approaches have been proposed for handling sen- nion as follows:
sor faults in UAV navigation [20]. Many studies have uti-  
lized an aerodynamic model of an aircraft as the system   cos(θ/2)
qw  ex sin(θ/2) 
model for Kalman filtering [21]. However, the identification q = qw + qx i + qy j + qz k = =  (1)
of aerodynamic forces and moments is often a complex and qυ  ey sin(θ/2) 
time-consuming process and may also be subject to high ez sin(θ/2)
uncertainty. A kinematic-model-based two-stage Kalman fil-
where qw is referred to as the real part of the quaternion and
ter has been implemented to simultaneously estimate IMU
qυ = qx i + qy j + qz k is the vector part. θ is the rotation
faults as augmented states [22]. However, for a system with T
angle, and ē = ex , ey , ez is the axis of rotation. Note

a high-dimensional state space, this approach may incur an
additional computational load due to the augmented states, that Hamilton’s quaternion convention, rather than the JPL
thus making it unsuitable for real-time application, and may quaternion convention, is used in this paper.
lead to a loss of numerical stability, particularly for ill- The quaternion must satisfy the following norm constraint:
conditioned systems [23]. In addition, a system model with q q
an unknown time-varying bias due to IMU faults cannot be |q| = qT q = qTw + qTx + qTy + qTz = 1 (2)

148990 VOLUME 7, 2019


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

The successive quaternion product operation is defined as where ⊕ denotes the typical addition operation for all state
pw qw − pυ T qυ variables ∈ R3 except for the quaternion state. For the quater-
 
p⊗q = (3) nion state, the error state is defined in the local frame as
pw qυ + qw pυ + pυ × qυ
follows:
q−1 = [qw , −qυ ]T (4)
qt = q ⊗ δq (10)
q ⊗ q−1 = [1, 0, 0, 0]T (5)
where ⊗ denotes quaternion multiplication and q−1 is the where δq = [1, δθ/2] denotes the attitude error [33].
T

inverse quaternion of q. In the following subsections, the states of the ESKF for
The reference frame of the strap-down IMU is referred to as attitude estimation are defined in terms of a 10-element true-
the body-fixed frame {b}. The navigation frame is denoted by state vector (xt ), a 10-element nominal-state vector (x), and a
{n}. In this paper, the local north-east-down (NED) frame is 9-element error-state vector (δx), as follows:
used as the navigation frame. An arbitrary 3-dimensional vec- xt = [qt ωbt abt ]T ∈ R10 (11a)
tor in the body-fixed frame, vb , can be transformed into the x = [q ωb ab ]T ∈ R10 (11b)
corresponding vector in the navigation frame, vn , as follows:
δx = [δθ δωb δab ]T ∈ R9 (11c)
vn = Rnb (q)vb (6)
where {qw , qx , qy , qz } ∈ qt , {ωbx , ωby , ωbz } ∈ ωbt ,
where rotation matrix Rnb (q) ∈ SO(3) represents the relative and {abx , aby , abz } ∈ abt represent the true quaternion
orientation with respect to the navigation frame as follows: expressed in the navigation frame, the true gyroscope bias,
 2
qw + qx 2 − qy 2 − qz 2 2(qx · qy − qw · qz ) and the accelerometer bias expressed in the body-fixed frame,
n
Rb (q) =  2(qx · qy + qw · qz ) qw 2 − qx 2 + qy 2 − qz 2 respectively.
2(qx · qz − qw · qy ) 2(qy · qz + qw · qx ) The conversion between Euler angle [φ, θ, ψ]T and the
2(qx · qz − qw · qy )
 corresponding quaternion can be summarized as follows:
2(qy · qz − qw · qx )  . (7) q
qw 2 − qx 2 − qy 2 − qz 2
 
cos(φ/2)cos(θ/2)cos(ψ/2)+sin(φ/2)sin(θ/2)sin(ψ/2)
sin(φ/2)cos(θ/2)cos(ψ/2)−cos(φ/2)sin(θ/2)sin(ψ/2)
A. PROBLEM FORMULATION = 
cos(φ/2)sin(θ/2)cos(ψ/2)+sin(φ/2)cos(θ/2)sin(ψ/2)
Consider the following discrete nonlinear system and mea- cos(φ/2)cos(θ/2)sin(ψ/2)−sin(φ/2)sin(θ/2)cos(ψ/2)
surement models:  !
2(qw qx + qy qz )
xk = f (xk−1 , uk , wk )   atan2
φ 1 − 2(q2x + q2y ) 


zk = h(xk , vk ) (8)  θ  =  asin 2(qw qy − qz qx )  .
  
ψ
 !
where k is the time index, xk is the state, uk is the input,  2(qw qz + qx qy ) 
atan2
 
and zk is the measurement. f and h are the system and mea- 1 − 2(q2y + q2z )
surement models, respectively. The nonlinear system noise
and measurement noise are typically assumed to be white B. SENSOR MODELING
Gaussian noise, such that vP k ∼ N (0, Qk ) and vk ∼ N (0, Rk ), A typical IMU measures 3-axis accelerations, 3-axis angu-
respectively, where N (µ, ) denotesP a normal distribution lar rates, and 3-axis magnetic fields with respect to the
with a mean of µ and a covariance of . body-fixed frame. The measurements obtained from an IMU
In comparison to a direct quaternion-based Kalman filter, are typically corrupted by white Gaussian noise and slowly
the ESKF approach has several distinctive advantages. First, varying bias terms. The following model represents the rela-
the error state system is always relatively small and lies near tionship between the measured IMU signals and the true ones.
the origin, thus preventing possible singularities and gimbal It should be noted that the effects of misalignment and scale
lock issues while ensuring the validity of linearization at all factor errors of the IMU are ignored, under the assumption
times [30]. Moreover, the ESKF approach ensures numeri- that the effects of these parameters can be reduced through
cal stability and allows the quaternion to be handled in its proper calibration.
minimal representation [31]. Thus, in the algorithm proposed
in this paper, an ESKF is used as the base filter, and the 1) GYROSCOPE
robustness of the SVSF is integrated into the measurement The three-axis gyroscope measures the angular rate about
update of the ESKF to mitigate the modeling uncertainty. each of three axes, as follows:
The basic working principle of an ESKF is to treat the true
state (xt ) as a combination of the nominal state (x) and an ωm = ωt + ωbt + ωn (12)
error state (δx), where the error state represents the difference where ωm ∈ R3 is the measured angular rate signal, ωt ∈ R3 is
between the nominal state and the true state, thus yielding the the true angular rate signal, ωbt ∈ R3 is a slowly varying bias
following relationship [32]: term for the gyroscope, and ωn ∈ R3 is zero-mean Gaussian
xt = x ⊕ δx (9) noise.

VOLUME 7, 2019 148991


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

2) ACCELEROMETER ω̇b = 0 (16b)


The accelerometer measures gravity minus acceleration. ȧb = 0 (16c)
However, in static or low-dynamics conditions, the dominant
factor affecting the accelerometer measurement is gravity, The linearized dynamics of the error-state kinematics can
and thus, the measurement can be approximated as fol- be obtained by reformulating the true-state equations given in
lows [17]: (15) as the corresponding combination of the nominal state as
expressed in (16) with an error state and simplifying up to all
am = Rnb (q)T (at − g) + abt + an second-order infinitesimals as follows:
 
0
≈ Rnb (q)T ·  0  + abt + an δ θ̇ = −[ωm − ωb ]× δθ − δωb − ωn (17a)
−g0 δ ω̇b = ωω (17b)
δ ȧb = aω
 
2(qx · qz − qw · qy ) (17c)
=  2(qy · qz + qw · qx )  + abt + an (13)
qw 2 − qx 2 − qy 2 − qz 2 where
 
0 −az ay
where am ∈ R3 is the measured acceleration signal, abt ∈ R3
[a]× =  az 0 −ax  (18)
is the true acceleration, an ∼ N (0, σa ) is zero-mean Gaussian
−ay ax 0
noise, abt ∈ R3 is a slowly varying accelerometer bias term,
and g0 = [0, 0, 1]T is the true normalized gravitational accel-
D. ERROR STATE KALMAN FILTER FORMULATION
eration in the navigation frame, serving as the unit vector.
The nominal state does not include the noise terms in (15)
and is propagated by integrating the nominal kinematics
3) MAGNETOMETER
expressed in (16) as follows:
The 3-axis magnetometer provides measurements of the mag-
k−1 = f (x̂k−1 , uk−1 , 0)
x̂+
netic field as follows: −
(19)
mm = Rnb (q)T
· H̄ + mn where the superscripts + and − denote a posteriori and a
 
H cos(ϕinc ) cos(ϕdec ) priori estimates, respectively. The corresponding 10-element
= Rnb (q)T ·  H cos(ϕinc ) sin(ϕdec )  + mn (14) nominal-state vector kinematics (in terms of q, ωb , and ab ) is
H sin(ϕinc ) represented as follows:
where mm ∈ R3 is the measured magnetic field, k = q̂k−1 ⊗ q {(ωm − ωb )1t}
q̂− +
(20a)
mn ∼ N (0, σm ) is zero-mean Gaussian noise, H̄ is the Earth’s
ω̂− +
b,k = ω̂b,k−1 (20b)
magnetic field vector expressed in the navigation frame, H
is the magnitude of the magnetic flux density, ϕdec is the â− +
b,k = âb,k−1 (20c)
declination angle, and ϕinc is the inclination angle of the
where 1t denotes the sampling time corresponding to the
Earth’s magnetic field [34]. The last three parameters (H,
IMU publishing rate and has an almost constant value of
ϕdec , and ϕinc ) vary with the geodetic location and time and
approximately 250 Hz. Linear evolution of ω during 1t is
can be obtained from the World Magnetic Model (WMM)
assumed. Thus, the first-order quaternion integrator can be
database.
implemented as follows [31]:
C. SYSTEM KINEMATICS 1t 2
  
0
q̂− = q̂ +
⊗ q(ω̄1t) + (21)
In the ESKF formulation, the true-state, nominal-state, and k k−1 24 ωk−1 × ωk
error-state kinematics are addressed. The true-state kinemat-
ics, including noise, can be represented as follows [35]: where ω̄ = 0.5(ωk+1 + ωk ) is the average angular rate.
The error-state kinematics expressed in (17) can be inte-
q̇t = 21 qt ⊗ (ωm − ωbt − ωn ) (15a) grated as follows:
ω̇bt = ωω (15b)
δ x̂−
k = FN ,k−1 δ x̂k−1
+
(22)
ȧbt = aω (15c)
Generally, the step of predicting the error state δ x̂k as
where ωω and aω represent the bias driving noise for the expressed in (22) can be neglected because the value of δ x̂k is
gyroscope and accelerometer, respectively, corresponding to initially set to zero and returns to zero. The a priori covariance
the process noise. P−k is updated as follows:
The nominal-state kinematics represents the system
dynamics without noise or perturbations and can be expressed P− + T T
k = FN ,k−1 Pk−1 FN ,k−1 + Fi Qi Fi (23)
as follows:
1 where FN is the transition matrix and can be obtained via
q̇ = q ⊗ (ωm − ωb ) (16a) Euler integration of (17) with respect to the error state δx.
2
148992 VOLUME 7, 2019
W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

 
Fi is the perturbation Jacobian of (17) with respect to the 1
∂ 1

∂([q]L δq) δθ

perturbation vector i, as follows: = 2



−I3×3 03×3 03×3
 ∂δq
q ∂δθ
Fi = ∂f (x, · ) ∂ω =  03×3 −I3×3 03×3   δ θ̂ =0


03×3 03×3 I3×3 0 0 0
1 1 0 0
where Qi is the covariance matrix of the perturbation = [q]L  
2 0 1 0

impulses, given by
0 0 1
2i 03×3 03×3
 
The Jacobian Hx with respect to the nominal state can be
Qi = 03×3 i 03×3 
obtained as follows for the acceleration and magnetic field,
03×3 03×3 Ai
respectively:
with
Rbn (q) (1 : 3, 3)
 
h i
2i = n 1t 2 = σω2n 1t 2 I3×3 rad2(24a) Hx = −g0 03×3 I3×3 (26)
∂q
" #
∂ Rbn (q) H̄
h i 
i = ω 1t = σω2ω 1tI3×3 rad2 /s2 (24b)
Hx = 03×3 03×3 (27)
h i ∂q
Ai = Aω 1t = σa2ω 1tI3×3 m2 /s4 (24c)
√ √ The a posteriori estimate of the error state δ x̂+
k and the a
where σω2n [rad/s], σω2ω [rad/s/ s], and σa2ω [m/s2 / s] can be posteriori covariance P+ are updated as follows:
k
determined from the information given in the IMU’s specifi-
cation sheets or through Allen variance analysis [36]. δ x̂+ −
k = Kk (zk − h(x̂k )) (28)
Continuous differential equations of the form ẋ = f (x, u) P+ −
k = (I − Kk Hk )Pk (29)
can be integrated by taking the exponential Taylor series, as
follows: After the completion of the ESKF measurement update, the
<∞
NX
nominal state (x) must be updated through appropriate com-
1 n n bination with the a posteriori error state (δ xˆk + ), as follows:
FN = A 1t
n!
k ← x̂k ⊕ δ x̂k
x̂+ − +
n=0 (30)
1 1
= I + A1t + A2 1t 2 + · · · + AN 1t N The update of the corresponding 10-element nominal-state
2 N

= I + A1t vector with the a posteriori error state can be expressed as
follows:
where FN is approximated only by the first-order term since
k = q̂k ⊗ q{δ θ̂k }
q̂+ − +
the sampling time 1t is extremely short. (31a)

2 −I3×3 03×3
 ω̂+b,k = ω̂−
b,k + δ ω̂k+ (31b)
A = ∂f (x, ·) ∂δx =  03×3 03×3 03×3  â+ −
+ δ â+

b,k = âb,k k (31c)
03×3 03×3 03×3
After the nominal state has been updated with the error
where state, the mean of the error state δ x̂+
k becomes zero. To
2 = −[ωm − ωb ]× complete the ESKF measurement update, the a posteriori
covariance must be updated with this modification:
The measurement update of the ESKF will be executed
whenever valid acceleration and magnetometer measure- P+ + T
k = Gk Pk Gk (32)
ments are available. The Kalman gain of the ESKF, Kk , is where
calculated as follows: " h +
i #
∂g I − 21 δ θˆk

0
Kk = P− T − T −1 Gk = = .
k Hk (Hk Pk Hk + Rk ) (25) ×
∂δx δ x̂+ 0 I6×6
with
Notably, the operation expressed in (31a) in particular
∂h ∂h ∂xt

Hk = = = Hx Xδx may induce the violation of the quaternion normalization
∂δx x ∂xt x ∂δx x constraint given in (2) as a result of linearization and arith-
where metic errors. To avoid such a case, a brute-force quaternion
normalization operation must be performed if the discrepancy
 
Qδθ 0
Xδx = with respect to the unit quaternion is greater than some small
0 I14×15
proportion of the noise level (say 10−7 ) [37].
and, in turn,
∂(q ⊗ δq) ∂(q ⊗ δq) ∂δq
q̂+
Qδθ = = q̂+
k = k
(33)
q̂+

∂δθ ∂δq q ∂δθ δ θ̂=0 k

VOLUME 7, 2019 148993


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

Algorithm 1 Proposed ESKF-SVSF Algorithm


Input: ωm
Measurements: am , mm
Initialization: q̂0 , ω̂b,0 , âb,0
Time update:
1. Propagate the nominal state
k+1 = f (x̂k , uk−1 , 0)
x̂− +

2. Propagate the error state


δ x̂−
k+1 = FN , k δ x̂k
+

3. Compute the a priori error covariance


P− + T
k+1 = FN , k Pk FN , k + Fi Qi Fi
T

Measurement update:
4. Run the chi-square fault detection via (50) - (51)
5. Run the SPRT fault detection
via (52) - (56)
6. Run the estimate difference fault detection
via (57) - (58)
7. Run the comprehensive fault detection strategy
FIGURE 1. Concept of SVSF estimation [24]. via Table 1
if diagnosis = F then
TABLE 1. Comprehensive fault detection strategy. 8. Compute the SVSFh gain 
Kk+1 = Hk+1 diag e−
+
γ
+
+

z,k+1 ez,k
 −1 i  −1
◦ sat ψ e− z,k+1 diag e− z,k+1
9. Compute the a posteriori error state
δ x̂+
k+1 = Kk+1 (zk+1 − h( x̂k+1 ))

10. Update the a posteriori nominal state with the


a posteriori error state
x ← x ⊕ δ x̂+ k+1
11. Renormalize the quaternion
+

q̂+ k
k = q̂+
k
12. Compute the a posteriori error covariance
Pk+1 = (I − Kk+1 Hk+1 ) P−
+
k+1 (I − Kk+1 Hk+1 )
T

+Kk+1 Rk+1 KTk+1


13. Update the a posteriori error covariance
P+ +
k+1 = Gk+1 Pk+1 Gk+1
T

14. Compute the a posteriori innovation


e+z,k+1 = zk+1 − ẑk+1
+

III. SMOOTH VARIABLE STRUCTURE FILTER else if diagnosis = N


The basic formulation of the SVSF, which has a predictor- 15. Compute the Kalman gain
corrector structure, was first introduced in 2007 [38] [39] and Kk+1 = P− T −
k+1 Hk+1 (Hk+1 Pk+1 Hk+1 + Rk+1 )
T −1

is inspired by sliding mode control and observer techniques. 16. Run steps 9 - 13
The SVSF ensures that the estimated state remains in the
so-called existing subspace around the true-state trajectory
where
by means of a discontinuous gain, as shown in Fig. 1. The
∂f

SVSF approach has been proven to be reliable and robust Fk = (36)
against system modeling and noise uncertainties [40] [41] ∂x x̂− ,uk
k
and [42]. Essentially, the SVSF approach can be applied to
any model-based differential linear and/or nonlinear equa- An a priori innovation e−
z,k+1 can be calculated from the
tions. The SVSF strategy consists of recursive prediction and corresponding predicted measurement ẑ−
k+1 as follows:
update stages, similar to the Kalman filtering approach, and ẑ− −
can be summarized as follows [26]: k+1 = h(x̂k+1 ) (37)
e−
z,k+1 = zk+1 − ẑ−
k+1 (38)
x̂−
k+1 = k , uk )
f (x̂+ (34) The distinctive difference between the Kalman and SVSF
P−k+1 = Fk P+ T
k Fk + Qk (35) approaches is how the gain is formulated. The SVSF gain can

148994 VOLUME 7, 2019


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

FIGURE 3. The proposed ESKF-SVSF algorithm concept. The reference


vectors g0 and H̄ are the true normalized gravitational acceleration and
geomagnetic vectors, respectively, in the navigation frame. ωm , am and
mm are the measured angular rate from the gyroscope, the measured
acceleration from the accelerometer, and the measured magnetic field
from the magnetometer, respectively. Artificial faults were injected into
the raw angular rate signal.

FIGURE 2. UAV system used in the experiment.


TABLE 2. Detailed sensor data specifications for the measurement noise.

be expressed as a function of the a priori and a posteriori


innovations e− +
z,k+1 and ez,k , the smoothing boundary layer
width ψ, and the SVSF convergence rate γ , as follows:
h 
Kk+1 = H+ γ
− +
k+1 diag ez,k+1 + ez,k
 −1 i  −1 e+ +
z,k+1 = zk+1 − ẑk+1 (45)
◦ sat ψ e− z,k+1 diag e −
z,k+1 (39)
Note that the estimation performance of the SVSF
Here, ◦ and the superscript + denote Schur multiplication and approach under the normal condition is not optimal, although
−1
the pseudoinverse of a matrix, respectively. ψ is a diagonal the SVSF exhibits robustness in the presence of a system
matrix constructed from the smoothing boundary layer width fault [24]. Therefore, it is beneficial to combine both the
ψ and is defined as follows: optimality of ESKF and the robustness of SVSF. To address
 1  the above issues, the concept of the varying smoothing bound-
ψ1 0 0
ary layer (VBL) has recently been proposed, yielding the
−1 .
ψ =  0 .. 0 
 
 (40) new SVSF-VBL algorithm [24]. Specifically, under normal
1 operating conditions when no system fault is detected, the
0 0 ψ
m
SVSF-VBL algorithm utilizes standard KF gains. Conversely,
The measurement Jacobian Hk+1 in (39) is defined as fol- in the presence of a system fault, the SVSF-VBL utilizes the
lows: robust SVSF gain in (39).
∂h

Hk+1 = (41) The VBL can be obtained by minimizing the trace of the a
∂x x̂− , uk posteriori covariance with respect to the smoothing boundary
k+1
layer term ψ as follows [24]:
The saturation function in (39) is expressed as shown in the
δ trace[P+

following equation: k+1 ]
=0 (46)
δψ
 −1 
sat ψ e− z,k+1
 Then, the VBL solution can be obtained by
1,
 e−z,k+1 /ψ i ≥ 1  −1
= ez,k+1 /ψ i , −1 < e− ψ = Ā−1 Hk+1 P− T −1
k+1 Hk+1 Sk+1 (47)
z,k+1 /ψ i ≤ 1

(42)
ez,k+1 /ψ i ≤ −1


−1,

where
Then, the a posteriori error covariance P+
k+1 can be com-
Sk = Hk+1 P− T
k+1 Hk+1 + Rk+1 (48)
puted as follows:
and
k+1 = (I − KKk+1 Hk+1 ) Pk+1 (I − Kk+1 Hk+1 )
P+ − T  
A = e− γ
+
+ (49)

z,k+1 ez,k
+ Kk+1 Rk+1 KTk+1 (43)
The SVSF-VBL algorithm results in a better estimation
For utilization in later iterations when calculating the result since the VBL can provide a continuous indication of
SVSF gain given in (39), the updated measurement estimate the detected system fault. Thus, the SVSF-VBL algorithm
ẑ+ +
k+1 and the a posteriori innovation ez,k+1 are computed switches to the conventional Kalman filter when ψ exceeds
as follows: a certain threshold, meaning that there is a system fault.
ẑ+ +
k+1 = h(x̂k+1 ) (44) However, it has been reported that the SVSF-VBL algorithm

VOLUME 7, 2019 148995


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

TABLE 3. Detailed sensor data specifications obtained using the Allen variance for the process noise.

FIGURE 4. (a) Raw acceleration signals. (b) Raw angular rate signals. (c) Raw magnetic field signals.

may not be applicable to all engineering applications [44]. In TABLE 4. Four faulty test cases.
certain applications, the VBL cannot present a reliable indica-
tion of system faults; thus, the SVSV-VBL algorithm cannot
switch to the robust SVSF gain in the presence of a system
fault. Without appropriately switching to the robust SVSF
gain, the SVSF-VBL eventually fail to track the accurate state
under a system fault.
The multiple model adaptive estimator (MMAE)-based
fault detection algorithm has recently been proposed to iden-
tify system faults [44]. However, the MMAE runs in a parallel Thus, our strategy is to utilize the output of the ESKF in the
filter, introducing computational burden. In addition, select- absence of a system fault and the SVSF in the presence of a
ing the appropriate subfilter model to detect system faults system fault, which may result in a better estimation result. To
is unrealistic in practical engineering applications. Alterna- achieve the aforementioned strategy, accurate fault detection
tively, the interacting multiple model (IMM) filter can be is highly required.
utilized to address the aforementioned issue, but the IMM
filter, which consists of a number of subfilters corresponding A. CHI-SQUARE-BASED FAULT DETECTION
to different fault models, incurs a substantial computational The statistical parameter for measurement fault detection can
burden [43]. Therefore, to address the aforementioned prob- be defined as follows [27], [28]:
lem, we propose an alternative algorithm for the SVSF-VBL
based on a comprehensive fault detection strategy. ε̄k = ν Tk P−1
zz,k ν k (50)

IV. FAULT DETECTION ALGORITHM where ν k = zk − h( x̂− − T


k ) and Pzz,k = Hk Pk Hk + Rk are the
Note that the estimation performance of the ESKF will sur- innovation sequence and innovation covariance, respectively.
pass that of the SVSF when there is no modeling uncertainty. The hypothesis test for evaluating system failure based on the

148996 VOLUME 7, 2019


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

FIGURE 5. Comparison between the raw and faulty angular rate signals in FIGURE 6. Comparison between the raw and faulty angular rate signals in
the experiment (Faulty Case 1, Scenario 1): (a) x-axis, (b) y-axis, and the experiment (Faulty Case 2, Scenario 1): (a) x-axis, (b) y-axis, and
(c) z-axis. (c) z-axis.

chi-square fault detection is as follows [29]: Then, the likelihood ratio according to the maximum pos-
( teriori probability can be obtained by
H0 : ε̄k < λ Normal k
(51) p(ν1 , · · · , νk |H1 ) Y p(νj |H1 )
H1 : ε̄k ≥ λ Fault Lk = = (53)
p(ν1 , · · · , νk |H0 ) p(νj |H0 )
where λ can be determined based on a desired confidence j=1

level of the chi-square distribution. In this paper, a 95% confi- Performing the logarithmic transformation on (53), a log-
dence level was utilized. The chi-square-based fault detection arithmic likelihood ratio can be obtained in the recursive
is suitable for detecting sudden system errors, but it is not formulation as follows:
adequate for detecting a slowly increasing or constant-level
 
k
Y p(νj |H1 )
system fault. 3k = ln [Lk ] = ln  
p(νj |H0 )
j=1
B. SPRT-BASED FAULT DETECTION 
k−1

 
Y p(νj |H1 )
In contrast to the chi-square fault detection, the SPRT-based = ln   + ln p(νk |H1 ) = 3k−1 + 13k .
fault detection is the statistical hypothesis test for sequential p(νj |H0 ) p(νk |H0 )
j=1
datasets and can identify slowly increasing or constant-level
(54)
system faults [27]. Utilizing the sequential dataset of the
innovation sequence, the binary hypothesis test for evaluating According to the Wald method [45], the threshold value
system failure can be expressed as follows: Tsprt can be determined by
 h i !
 H0 : p(ν j |H0 ) = n/21 1/2 exp −0.5ν Tj P−1
zz,j νj Tsprt = ln
1 − pm
(55)
2π Pzz,j


 pf
H1 : p(ν j |H1 )h = (52)
where pm and pf denote the missed and false alarm rates,
 i
1
exp −0.5(ν − µ) P (ν − µ )
T −1


 1/2 j j zz,j j j
2π n/2 Pzz,j respectively.

VOLUME 7, 2019 148997


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

FIGURE 7. Comparison between the raw and faulty angular rate signals in FIGURE 8. Comparison between the raw and faulty angular rate signals in
the experiment (Faulty Case 3, Scenario 2): (a) x-axis, (b) y-axis, and the experiment (Faulty Case 4, Scenario 2): (a) x-axis, (b) y-axis, and
(c) z-axis. (c) z-axis.

Then, the hypothesis test for evaluating system failure denotes the
threshold for the angle difference. Note that the
αk − α̂k parameter may have no statistical significance, but

based on the SPRT-based fault detection is as follows:
( it can be utilized as one of the parameters to detect system
H0 : 3k < Tsprt Normal faults.
(56)
H1 : 3k ≥ Tsprt Fault
To prevent unwanted accumulated values beyond the D. COMPREHENSIVE FAULT DETECTION STRATEGY
threshold, the feedback reset algorithm is implemented to As discussed above, the chi-square-, SPRT-, and angle-
reset 3k to zero after the detected fault ceases [27]. deviation-based fault detection strategies have their advan-
tages and disadvantages; thus, it is important to combine
C. ANGLE-DEVIATION-BASED FAULT DETECTION these different methods to accurately find system faults. By
The angle deviation obtained by the ESKF and SVSF can be combining the shortcomings and advantages of these three
used to detect the modeling uncertainty because the ESKF methods, an integrated fault detection diagnosis strategy can
only yields a stable estimation result in the absence of a be summarized as shown in Table 1. The proposed approach
system fault, while the SVSF always yields a stable estima- effectively merges the ESKF and SVSF estimation methods,
tion, although it is not the optimal solution in the absence yielding the novel ESKF-SVSF algorithm, as summarized in
of a system fault. The absolute difference of the Euler angle Algorithm 1. In summary, the novel ESKF-SVSF algorithm
estimation can be expressed as follows: switches to the SVSF when a fault is detected, and vice versa.
 
αk − α̂k = (φk + θk + ψk ) − φ̂k + θ̂k + ψ̂k (57)

V. EXPERIMENT
(
H0 : αk − α̂k < Test Normal
To validate the proposed ESKF-SVSF algorithm, an exper-
(58) iment was conducted using a small UAV platform with a
H1 : αk − α̂k ≥ Test Fault

MEMS-based IMU, as shown in Fig. 2. The IMU con-
where αk and α̂k denote the summation of the Euler angle sists of an LSM303D integrated accelerometer/magnetometer
estimate obtained by the ESKF and SVSF, respectively. Test unit and an L3GD20 gyroscope. The update rates of the

148998 VOLUME 7, 2019


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

TABLE 5. Performance comparison between the ESKF, ESKF-SVSF, and ESKF-SVSF (proposed) algorithms for the normal case and the four faulty cases (all
values expressed in units of degrees).

FIGURE 9. Attitude estimation results for the normal case: (a) roll, FIGURE 10. Attitude estimation results for Faulty Case 1 (Scenario 1):
(b) pitch, and (c) yaw. (a) roll, (b) pitch, and (c) yaw.

accelerometer and magnetometer are 250 Hz and 10 Hz, different faulty test cases, involving fault injection with a
respectively. A one-hour static experiment was conducted to short time duration (Scenario 1) and with a long time duration
analyze the Allan variance, and the measurement noise and (Scenario 2), were investigated, as summarized in Table 4.
process noise of the sensors are summarized in Tables 2 and 3, The use of the IMU signals in the ESKF-SVSF algorithm
respectively. is illustrated in Fig. 3. In each scenario, two types of faults,
The full states of the GPS/INS Kalman filter, including the namely, constant and random gyroscope faults, were injected
position, velocity, attitude, angular rate bias, and acceleration into the raw gyroscope data from the experiment to simu-
bias, were obtained on the same experimental data and used late modeling uncertainty. Figs. 5 and 6 show the raw and
as our best estimates of the true attitude [35]. Fig. 4(a), (b), faulty gyroscope signals for Cases 1 and 2, respectively,
and (c) show the raw gyroscope, accelerometer, and magne- corresponding to Scenario 1. The fault occurrence times
tometer outputs, respectively, during the experiment. are 124 s, 136 s, and 148 s, each with a time duration of
To demonstrate the validity of the proposed ESKF-SVSF 0.5 s. Figs. 7 and 8 show the raw and faulty gyroscope
algorithm in the presence of modeling uncertainty, four signals for Cases 3 and 4, respectively, corresponding to

VOLUME 7, 2019 148999


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

FIGURE 11. Attitude estimation results for Faulty Case 2 (Scenario 1): FIGURE 12. Attitude estimation results for Faulty Case 3 (Scenario 2):
(a) roll, (b) pitch, and (c) yaw. (a) roll, (b) pitch, and (c) yaw.

Scenario 2. Here, the time interval for fault injection is


132–141 s.
The filters were programmed and implemented using
MATLAB 2017b on a PC with an Intel Core i7-6500U CPU
operating at 2.50 GHz. The root mean square errors (RMSEs),
averaged absolute values of bias (AAVBs), and maximum
absolute errors (MAEs) of attitude estimation are presented
to evaluate the performance of the proposed algorithm. The
AAVB metric is generally used to analyze the bias of state
estimates [46]. That is, a smaller AAVB indicates a higher
probability that the state estimates will be unbiased.
r
1 XT
RMSE = (xk − x̂k )2 (59)
T k=1
1 X T
x(k) − x̂(k)

AAVB = (60)
T k=1

MAE = max( x(k) − x̂(k) ) (61)
k

The constant smoothing boundary layer widths for the


SVSF were set to ψ = [0.1, 0.1, 0.08]T and ψ =
[0.2, 0.2, 0.1]T for the accelerometer and magnetometer
measurements, respectively. The SVSF convergence rate
γ was set to 0.1. These parameters were chosen empiri- FIGURE 13. Attitude estimation results for Faulty Case 4 (Scenario 2):
cally to minimize the estimation error based on the sys- (a) roll, (b) pitch, and (c) yaw.
tem/measurement noise statistics.
The RMSEs, AAVBs, and MAEs of the roll, pitch, and yaw
angles obtained by the ESKF and ESKF-SVSF algorithms in the normal case, i.e., without fault injection. It can be seen
for the normal case and the four faulty test cases are sum- from Fig. 9 that the ESKF estimation results are closer to the
marized in Table 5. Fig. 9(a), (b), and (c) show the attitude true attitude than the ESKF-SVSF results are. This finding
estimation results of the ESKF and ESKF-SVSF algorithms confirms the optimality of the ESKF when the system and

149000 VOLUME 7, 2019


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

FIGURE 14. Fault detection result for Faulty Case 1 (Scenario 1): (a) true FIGURE 15. Fault detection result for Faulty Case 2 (Scenario 1): (a) true
fault, (b) chi-square fault detection, (c) SPRT fault detection, and (d) angle fault, (b) chi-square fault detection, (c) SPRT fault detection, and (d) angle
deviation fault detection. deviation fault detection.

measurement models are accurate, with no modeling error and 4 (Scenario 2), the estimation errors under the ESKF-
[47]. However, the proposed ESKF-SVSF yields the same SVSF algorithm are also much smaller, resulting in improved
estimation result as the ESKF since it can switch to the ESKF robustness. Thus, it can be concluded that although the esti-
when no system fault is detected. Specifically, as shown in mation solution of the SVSF is not optimal, as shown in Fig. 9
Table 5, the estimation performance of the proposed ESKF for the case in which there is no system modeling discrepancy,
is the same as that of the ESKF, which is better than that of it is apparently robust to modeling uncertainty.
the ESKF-SVSF without the comprehensive fault detection In particular, the estimated yaw obtained via the ESKF
strategy for the normal case. severely deviates from the true yaw during times of fault
By contrast, Figs. 10 and 11 depict the attitude estimation injection, as shown in Figs. 10 and 11, whereas the estimated
results in Faulty Cases 1 and 2 (Scenario 1). The ESKF- yaw obtained via the ESKF-SVSF algorithm closely follows
SVSF algorithm yields better attitude estimation results, the true yaw during these intervals. This severe yaw deviation
while the attitude estimates obtained with the ESKF signif- might be due to the accumulation of roll and pitch angle
icantly deviate from the true values during the fault injection error since the roll and pitch error will contribute to the
time intervals at 124 s, 136 s, and 148 s. It can similarly calculation described in (14), thus yielding incorrect yaw
be observed from Figs. 12 and 13 that in Faulty Cases 3 predictions.

VOLUME 7, 2019 149001


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

FIGURE 16. Fault detection result for Faulty Case 3 (Scenario 2): (a) true FIGURE 17. Fault detection result for Faulty Case 4 (Scenario 2): (a) true
fault, (b) chi-square fault detection, (c) SPRT fault detection, and (d) angle fault, (b) chi-square fault detection, (c) SPRT fault detection, and (d) angle
deviation fault detection. deviation fault detection.

In addition, as shown in Figs. 10–13, the proposed ESKF algorithm can accurately identify system faults in most cases,
outperforms the ESKF and the ESKF-SVSF without the com- as shown in Figs. 14(a), 15(a), 16(a), and 17(a), although
prehensive fault detection strategy for all four fault scenar- complete system fault detection is not always achievable.
ios. This performance improvement of the proposed ESKF- Based on the fault diagnosis result, the proposed ESKF-SVSF
SVSF can be attributed to the comprehensive fault detection can switch to the ESKF for guaranteeing optimality when
scheme of accurate detection of system faults. Specifically, no fault is detected and to the SVSF for ensuring robustness
Figs. 14–17 show the fault diagnosis result, combining the when a fault is detected, resulting in a better estimation result.
fault detection of the chi-square, SPRT, and angle devia- Although the proposed ESKF-SVSF algorithm is robust
tion based on Table 1. As shown in Figs. 14–15, the chi- to system modeling uncertainty, it also has a few disadvan-
square-based fault detection is sufficient for detecting the tages, as follows [24]: its computational complexity is slightly
fast-growing fault in a short time, belonging to fault scenario increased due to the introduction of the calculation of the
1. However, the chi-square fault detection is not suitable for SVSF gain, as shown in Table 6; a priori or application-
detecting the constant-level fault in a relatively long time, specific information is needed to determine an appropriate
but the SPRT can accurately detect such a fault, as shown in fixed smoothing boundary layer width ψ (based on the noise
Figs. 16–17. Therefore, overall, the proposed fault detection statistics); and numerical errors may occur if the innovation

149002 VOLUME 7, 2019


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

TABLE 6. Computation times for the ESKF, ESKF-SVSF, and proposed [3] M. T. Sabet, H. M. Daniali, A. Fathi, and E. Alizadeh, ‘‘A low-cost dead
algorithms. reckoning navigation system for an AUV using a robust AHRS: Design and
experimental analysis,’’ IEEE J. Ocean. Eng., vol. 43, no. 4, pp. 927–939,
Oct. 2018.
[4] L. Cao, D. Qiao, H. Lei, and G. Wang, ‘‘Strong tracking sigma point
predictive variable structure filter for attitude synchronisation estimation,’’
J. Navigat., vol. 71, no. 3, pp. 607–624, May 2018.
[5] L. Cao, Y. Chen, Z. Zhang, H. Li, and A. K. Misra, ‘‘Predictive smooth
variable structure filter for attitude synchronization estimation during satel-
lite formation flying,’’ IEEE Trans. Aerosp. Electron. Syst., vol. 53, no. 3,
pp. 1375–1383, Jun. 2017.
[6] L. Cao and H. Li, ‘‘Unscented predictive variable structure filter for
satellite attitude estimation with model errors when using low precision
ez,k is exceedingly small and is not corrected (leading to sensors,’’ Acta Astron., vol. 127, no. 3, pp. 505–513, Oct./Nov. 2016.
division by zero when computing the SVSF gain as given in [7] P. Lu, E. van Kampen, C. C. de Visser, and Q. P. Chu, ‘‘Framework for
simultaneous sensor and actuator fault-tolerant flight control,’’ J. Guid.,
(39)). Note that the estimation result of the SVSF-VBL [24] Control, Dyn., vol. 40, no. 8, pp. 2133–2136, Jun. 2017.
is not presented in this paper since the computation of ψ in [8] P. Lu, E.-J. van Kampen, C. de Visser, and Q. Chu, ‘‘Nonlinear aircraft
(47) often leads to numerical error due to the division by zero. sensor fault reconstruction in the presence of disturbances validated by real
flight data,’’ Control Eng. Pract., vol. 49, pp. 112–128, Apr. 2016.
VI. CONCLUSION [9] J. Wu, Z. Zhou, B. Gao, R. Li, Y. Cheng, and H. Fourati, ‘‘Fast linear
Attitude estimation that is robust to modeling uncertainty is quaternion attitude estimator using vector observations,’’ IEEE Trans.
Automat. Sci. Eng., vol. 15, no. 1, pp. 307–319, Jan. 2018.
crucial for the safe and reliable navigation of UAVs. This [10] J. Wu, Z. Zhou, J. Chen, H. Fourati, and R. Li, ‘‘Fast complementary filter
paper proposes a novel robust attitude estimation algorithm for attitude estimation using low-cost MARG sensors,’’ IEEE Sensors J.,
based on the ESKF and SVSF algorithms. The accuracy of vol. 16, no. 18, pp. 6997–7007, Sep. 2016.
[11] R. Costanzi, F. Fanelli, N. Monni, A. Ridolfi, and B. Allotta, ‘‘An attitude
an ESKF and the robustness of the SVSF are effectively estimation algorithm for mobile robots under unknown magnetic distur-
combined to achieve improved attitude estimation, resulting bances,’’ IEEE/ASME Trans. Mechatronics, vol. 21, no. 4, pp. 1900–1911,
in a novel robust attitude estimation algorithm called the Aug. 2016.
ESKF-SVSF algorithm. [12] J. K. Lee, E. J. Park, and S. N. Robinovitch, ‘‘Estimation of attitude
and external acceleration using inertial sensor measurement during var-
The proposed ESKF-SVSF algorithm has been validated ious dynamic conditions,’’ IEEE Trans. Instrum. Meas., vol. 61, no. 8,
on experimental data collected from a small UAV in the pres- pp. 2262–2273, Aug. 2012.
ence of modeling uncertainty, and its performance has been [13] H. Zhao and Z. Wang, ‘‘Motion measurement using inertial sensors, ultra-
sonic sensors, and magnetometers with extended Kalman filter for data
compared with that of the ESKF approach. In this experiment, fusion,’’ IEEE Sensors J., vol. 12, no. 5, pp. 943–953, May 2012.
two types of fault bias signals were intentionally injected into [14] Y. S. Suh, ‘‘Orientation estimation using a quaternion-based indirect
the raw gyroscope signals to simulate modeling uncertainty. Kalman filter with adaptive estimation of external acceleration,’’ IEEE
Trans. Instrum. Meas., vol. 59, no. 12, pp. 3296–3305, Dec. 2010.
Fault bias often occurs when a UAV experiences excessive
[15] D. Titterton, J. L. Weston, and J. Weston, Strapdown Inertial Navigation
vibration or in the case of a faulty IMU and causes the filter Technology, vol. 17. Stevenage, U.K.: IET, 2004.
results to diverge from the actual operation state. [16] A. M. Sabatini, ‘‘Quaternion-based extended Kalman filter for determining
The experimental results demonstrate that the proposed orientation by inertial and magnetic sensing,’’ IEEE Trans. Biomed. Eng.,
vol. 53, no. 7, pp. 1346–1356, Jul. 2006.
ESKF-SVSF algorithm greatly improves the accuracy of state [17] W. Li and J. Wang, ‘‘Effective adaptive Kalman filter for MEMS-
estimation in the presence of a small bias compared with IMU/magnetometers integrated attitude and heading reference systems,’’
the conventional ESKF algorithm when modeling error arises J. Navigat., vol. 66, no. 1, pp. 99–113, 2013.
[18] N. Yadav and C. Bleakley, ‘‘Accurate orientation estimation using AHRS
due to IMU faults. In particular, the proposed comprehensive
under conditions of magnetic distortion,’’ Sensors, vol. 14, no. 11,
fault detection scheme combining different methods was able pp. 20008–20024, Jan. 2014.
to accurately detect the system fault. Based on the fault [19] C. W. Kang, H. J. Kim, and C. G. Park, ‘‘A human motion tracking
diagnosis, the proposed ESKF-SVSF not only guarantees algorithm using adaptive EKF based on Markov chain,’’ IEEE Sensors J.,
vol. 16, no. 24, pp. 8953–8962, Dec. 2016.
the optimality of the ESKF but also the robustness of the [20] J. Marzat, H. Piet-Lahanier, F. Damongeot, and E. Walter, ‘‘Model-based
SVSF. Future work will focus on combining the results of fault diagnosis for aerospace systems: A survey,’’ Proc. Inst. Mech. Eng.,
the ESKF and ESKF-SVSF algorithms using multimodel fil- G, J. Aerosp. Eng., vol. 226, no. 10, pp. 1329–1360, 2012.
[21] H. Alwi and C. Edwards, ‘‘Robust fault reconstruction for linear parameter
tering approaches. This will allow the optimality of the ESKF varying systems using sliding mode observers,’’ Int. J. Robust Nonlinear
to be maintained during fault-free operation while preserving Control, vol. 24, no. 14, pp. 1947–1968, Sep. 2014.
the robustness of the ESKF-SVSF algorithm in the case of [22] P. Lu and E.-J. Van Kampen, ‘‘Aircraft inertial measurement unit fault
fault occurrence. identification with application to real flight data,’’ in Proc. AIAA Guid.,
Navigat., Control Conf., Kissimmee, FL, USA, 2015, p. 0859.
[23] K. H. Kim, J. G. Lee, and C. G. Park, ‘‘Adaptive two-stage extended
REFERENCES Kalman filter for a fault-tolerant INS-GPS loosely coupled system,’’ IEEE
[1] H. No, A. Cho, and C. Kee, ‘‘Attitude estimation method for small Trans. Aerosp. Electron. Syst., vol. 45, no. 1, pp. 125–137, Jan. 2009.
UAV under accelerative environment,’’ GPS Solutions, vol. 19, no. 3, [24] S. A. Gadsden, S. Habibi, and T. Kirubarajan, ‘‘Kalman and smooth vari-
pp. 343–355, Jul. 2015. able structure filters for robust estimation,’’ IEEE Trans. Aerosp. Electron.
[2] Z. Wu, M. Yao, H. Ma, W. Jia, and F. Tian, ‘‘Low-cost antenna attitude Syst., vol. 50, no. 2, pp. 1038–1050, Apr. 2014.
estimation by fusing inertial sensing and two-antenna GPS for vehicle- [25] S. A. Gadsden, M. Al-Shabi, I. Arasaratnam, and S. R. Habibi, ‘‘Combined
mounted satcom-on-the-move,’’ IEEE Trans. Veh. Technol., vol. 62, no. 3, cubature Kalman and smooth variable structure filtering: A robust nonlin-
pp. 1084–1096, Mar. 2013. ear estimation strategy,’’ Signal Process., vol. 96, pp. 290–299, Mar. 2014.

VOLUME 7, 2019 149003


W. Youn, S. A. Gadsden: Combined Quaternion-Based Error State Kalman Filtering and Smooth Variable Structure Filtering

[26] S. A. Gadsden, Y. Song, and S. R. Habibi, ‘‘Novel model-based estimators [44] J. M. Goodman, S. A. Wilkerson, C. Eggleton, and S. A. Gadsden, ‘‘A mul-
for the purposes of fault detection and diagnosis,’’ IEEE/ASME Trans. tiple model adaptive SVSF-KF estimation strategy,’’ Proc. SPIE, vol. 50,
Mechatronics, vol. 18, no. 4, pp. 1237–1249, Aug. 2013. no. 2, pp. 11018–11030, May 2019.
[27] R. Wang, Z. Xiong, J. Liu, J. Xu, and L. Shi, ‘‘Chi-square and SPRT [45] W. W. Piegorsch and W. J. Padgett, ‘‘Sequential probability ratio test,’’ in
combined fault detection for multisensor navigation,’’ IEEE Trans. Aerosp. International Encyclopedia of Statistical Science, M. Lovric, Ed. Berlin,
Electron. Syst., vol. 52, no. 3, pp. 1352–1365, Jun. 2016. Germany: Springer, May 2014, pp. 1305–1308.
[28] C. Yang, A. Mohammadi, and Q.-W. Chen, ‘‘Multi-sensor fusion with [46] Y. Huang, Y. Zhang, P. Shi, Z. Wu, J. Qian, and J. A. Chambers, ‘‘Robust
interaction multiple model and chi-square test tolerant filter,’’ Sensors, Kalman filters based on Gaussian scale mixture distributions with appli-
vol. 16, no. 11, p. 1835, Nov. 2016. cation to target tracking,’’ IEEE Trans. Syst., Man, Cybern. Syst., vol. 49,
[29] T. S. Bruggemann, D. G. Greer, and R. A. Walker, ‘‘GPS fault detection no. 10, pp. 2082–2096, Oct. 2019. doi: 10.1109/TSMC.2017.2778269.
with IMU and aircraft dynamics,’’ IEEE Trans. Aerosp. Electron. Syst., [47] S. A. Gadsden, ‘‘Smooth variable structure filtering: Theory and applica-
vol. 47, no. 1, pp. 305–316, Jan. 2011. tions,’’ Ph.D. dissertation, Dept. Mech. Eng., McMaster Univ., Hamilton,
[30] V. Madyastha, V. Ravindra, S. Mallikarjunan, and A. Goyal, ‘‘Extended ON, Canada, 2011.
Kalman filter vs. error state Kalman filter for aircraft attitude estimation,’’
in Proc. AIAA Guid., Navigat., Control Conf., Portland, OR, USA, 2011,
p. 6615.
[31] N. Trawny and S. I. Roumeliotis, ‘‘Indirect Kalman filter for 3D attitude WONKEUN YOUN received the B.S. degree from
estimation,’’ Dept. Comp. Sci. Eng., Univ. Minnesota, Tech. Rep. 2005- Handong Global University, Pohang, South Korea,
002, 2005. in 2008, and the M.S. degree from the Korea
[32] A. Santamaria-Navarro, G. Loianno, J. Solà, V. Kumar, and Advanced Institute of Science and Technology
J. Andrade-Cetto, ‘‘Autonomous navigation of micro aerial vehicles (KAIST), Daejeon, South Korea, in 2010, where
using high-rate and low-cost sensors,’’ Auton. Robots, vol. 42, no. 6, he is currently pursuing the Ph.D. degree with the
pp. 1263–1280, Aug. 2018. Department of Robotics.
[33] F. L. Markley, ‘‘Attitude error representations for Kalman filtering,’’ He has been a Senior Researcher with the UAV
J. Guid., Control, Dyn., vol. 26, no. 2, pp. 311–317, Mar. 2003. System Division of the Korea Aerospace Research
[34] A. Makni, H. Fourati, and A. Y. Kibangou, ‘‘Energy-aware adaptive
Institute (KARI), since 2011. His current research
attitude estimation under external acceleration for pedestrian naviga-
tion,’’ IEEE/ASME Trans. Mechatronics, vol. 21, no. 3, pp. 1366–1375,
interests include multisensor fusion, Bayesian estimation theory, multimodal
Jun. 2016. target tracking, and GPS/INS-based UAV navigation.
[35] S. Weiss, M. W. Achtelik, S. Lynen, M. C. Achtelik, L. Kneip, M. Chli, and
R. Siegwart, ‘‘Monocular vision for long-term micro aerial vehicle state
estimation: A compendium,’’ J. Field Robot., vol. 30, no. 5, pp. 803–831,
Aug. 2013. STEPHEN ANDREW GADSDEN (M’09–SM’19)
[36] G. Zhang and L.-T. Hsu, ‘‘Intelligent GNSS/INS integrated navigation received the Ph.D. degree in state and parame-
system for a commercial UAV flight control system,’’ Aerosp. Sci. Technol., ter estimation theory from McMaster University,
vol. 80, pp. 368–380, Sep. 2018. Hamilton, ON, Canada, in 2011.
[37] J. L. Crassidis and J. L. Junkins, Optimal Estimation of Dynamic Systems. He was an Assistant Professor with the Depart-
Boca Raton, FL, USA: Chapman & Hall, 2004. ment of Mechanical Engineering, University of
[38] S. Habibi, ‘‘The smooth variable structure filter,’’ Proc. IEEE, vol. 95, Maryland, Baltimore, MD, USA, from 2014 to
no. 5, pp. 1026–1059, May 2007. 2016. He is currently an Associate Professor with
[39] L. Cao, J. Li, L. Han, and H. Li, ‘‘Adaptive predictive variable structure the College of Engineering and Physical Sciences,
filter for attitude synchronization estimation,’’ J. Navigat., vol. 70, no. 1, University of Guelph, Guelph, ON, Canada. His
pp. 205–223, Jan. 2017. work involves the optimal realization and further advancement of robust fil-
[40] L. Cao, D. Ran, X. Chen, X. Li, and B. Xiao, ‘‘Huber second-order variable tering strategies with applications in mechatronics and aerospace technology.
structure predictive filter for satellites attitude estimation,’’ Int. J. Control, He has a broad research background that includes the consideration of state
Automat. Syst., vol. 17, no. 7, pp. 1781–1792, Jul. 2019.
and parameter estimation strategies, variable structure theory, fault detection
[41] S. A. Gadsden and A. S. Lee, ‘‘Advances of the smooth variable structure
filter: Square-root and two-pass formulations,’’ J. Appl. Remote Sens.,
and diagnosis, mechatronics, target tracking, cognitive systems, and artificial
vol. 11, no. 1, Mar. 2017, Art. no. 015018. intelligence.
[42] M. A. Al-Shabi, ‘‘The general toeplitz/observability smooth variable He is an elected Fellow of ASME, and a Professional Engineer of Ontario.
structure filter,’’ Ph.D. dissertation, Dept. Mech. Eng., McMaster Univ., He is a 2019 SPIE Rising Researcher award winner based on his work in
Hamilton, ON, Canada, 2011. intelligent estimation theory and is also a 2018 Ontario Early Researcher
[43] W. Youn and H. Myung, ‘‘Robust interacting multiple model with mod- (ERA) award winner based on his work in intelligent condition monitoring
eling uncertainties for maneuvering target tracking,’’ IEEE Access, vol. 7, strategies.
no. 1, pp. 65427–65443, 2019.

149004 VOLUME 7, 2019

You might also like