- Original article
- Open access
- Published:

# Adaptive cubature Kalman filter based on the variance-covariance components estimation

*The Journal of Global Positioning Systems*
**volume 15**, Article number: 1 (2017)

## Abstract

Although the Kalman filter (KF) is widely used in practice, its estimated results are optimal only when the system model is linear and the noise characteristics of the system are already exactly known. However, it is extremely difficult to satisfy such requirement since the uncertainty caused by the inertial instrument and the external environment, for instance, in the aided inertial navigation. In practice almost all of the systems are nonlinear. So the nonlinear filter and the adaptive filter should be considered together. To improve the filter accuracy, a novel adaptive filter based on the nonlinear Cubature Kalman filter (CKF) and the Variance-Covariance Components Estimation (VCE) was proposed in this paper. Here, the CKF was used to solve the nonlinear issue while the VCE method was used for the noise covariance matrix of the nonlinear system real-time estimation. The simulation and experiment results showed that better estimated states can be obtained with this proposed adaptive filter based on the CKF.

## Introduction

In modern navigation and data fusion, the Kalman filter (KF) has become one of the most widely used estimation methods due to its advantages of being more simple and useful (Chen 2012; Han & Wang 2012; Feng et al. 2013; Santos 2015). However, the KF method still has some limitations (Tang et al. 2014; Wang et al. 2010; Wang 2009). For example, it has been developed on the base of linear systems while almost all of the systems are nonlinear actually. So if the KF is applied in practice, the nonlinearity may lead to large errors or even to the filter divergence. Thus, the nonlinear filters have been a hot area of the state estimation.

In practical engineering, two nonlinear methods named the extended Kalman filter (EKF) and the unscented Kalman filter (UKF) are most widely used (Gao et al. 2014; Dini et al. 2011; Vaccarella et al. 2013; Masazade et al. 2012). In the EKF, the nonlinear system can be linearized utilizing the Taylor series expansion for variance propagation while the prediction of the state vector and measurement vector are conducted using the nonlinear system (Gao et al. 2014; Arasaratnam & Haykin 2009). Although this method is used in many nonlinear systems for its simplicity, the precision is limited in the systems with strong nonlinearity and the fussy Jacobian matrix should be calculated which will inevitably increase the computational load. With the Unscented Transformation (UT), the UKF method can approximate the mean and the variance of the Gaussian state distribution using the nonlinear function to avoid the local linearization and the calculation of the Jacobian matrix effectively (Gao et al. 2014; Dini et al. 2011). However, the covariance matrix sometimes is easy non-positive in high-dimensional systems which will lead to filtering divergence.

To solve the above mentioned problems, Arasaratnam et al. proposed the Cubature Kalman filter (CKF) method based on the Cubature Transform to conduct the prediction using the Cubature points which have the same weight (Arasaratnam & Haykin 2009; Arasaratnam & Haykin 2010; Zhang et al. 2015). Similar with UKF, CKF avoids linearization to the nonlinear system by utilizing point sets to predict state vectors and covariance matrix. However, CKF has strictly theoretical derivation based on Bayesian and Spherical-Radial Cubature principles while UKF does not. In addition, the point set in CKF is acquired by integration and all weights are positive values and equal while the weights in UKF are negative values easily in high dimensional systems, which will reduce the filtering accuracy and stability. So the CKF is more widely used in practical to solve the nonlinear problem.

In above filters, the estimations are the optimal only when the mathematic model is exactly known and the system process and measurement noises are the White Gaussian Noise. However, this cannot easily be satisfied in practical aided inertial navigation applications, for example, because of the drift errors of the inertial components, the dynamic errors caused by the carrier’s maneuver, and the existence of the uncertainty in the external environment (Wang et al. 2010; Jin et al. 2014; Von Chong & Caballero 2014). The system model and its associated statistical characteristics of the noises are obtained based on the priori knowledge, which definitely have some errors compared with the true values. So the adaptive filter should be considered to improve the estimated accuracy.

The adaptive filter can estimate and correct the model parameters and the noise characteristics at the same time to continually reduce the errors of the state estimation. Then the estimated accuracy can be improved availably (Hu et al. 2003; Chang & Liu 2015; Mundla et al. 2012).

At present, there are various adaptive filters. One of the outstanding adaptive filters named the Sage-Husa adaptive filter can estimate variance matrix of the process noise or the one of the observation noise in real-time when the variance matrix of the observation noise or the one of the process noise is known (Mundla et al. 2012). In other words, if we want to estimate the process (or observation) noise variance matrix with the Sage-Husa adaptive filter, variance matrix of the observation noise (or the process noise) should be already known. Thus, these two variance matrices cannot be estimated simultaneously. It has limitations when the process and observation noises are both unknown.

By adjusting or restraining the impacts of the current observations on the parameter estimation using the fading factor, an adaptive filter makes full use of the current observations to improve the filtering accuracy (Chang & Liu 2015). Nevertheless, it is difficult to obtain the optimal fading factor and the computational complexity will accordingly be increased as well. Furthermore, the weights of the a-priori reliable information would be decreased to a certain extent if the current observation is abnormal, and then the filtering accuracy would also be degraded.

To estimate the parameters of the system correctly, the weights of different observations should be known. Thus, the Variance-Covariance Components Estimation (VCE) was proposed (Wang et al. 2010; Moghtased-Azar et al. 2014). At present, various VCE methods have widely be used in statistics and geodesy. And one of the famous VCE methods is a posteriori VCE method after Helmert, in which the weights of different observations can be calculated by the adaptive iteration. Since the matrix will be negative sometimes during the calculation, some improved methods were proposed. Wang et al. proposed an adaptive Kalman filter (AKF) based on the VCE method, and verified its effectiveness using the actual experiments (Wang et al. 2010; Wang 2009; Wang et al. 2009). Although the adaptive filter based on the VCE has many advantages in the filter estimations, its application in nonlinear systems has rarely been studied.

Thus, by combining the CKF and the VCE method, an improved adaptive filter was proposed in this paper. Since the adaptive filter and the nonlinear filter were engaged at the same time, this novel method can not only estimate the statistical property of the system’s noise, but also be applied in various nonlinear systems. Hence, the accuracy and the applicability of the new filter can be further improved. The rest of this paper was organized as follows. The description of the CKF and the VCE method was presented in Basic Knowledge. An improved adaptive filter based on the CKF proposed the novel adaptive filter based on the CKF. Numerical examples and experiment along with specific analysis were given in Simulations and Experiments. Conclusions concluded this manuscript.

## Basic knowledge

### Adaptive filter based on the VCE method

The adaptive filter based on the VCE method can estimate the variance components of the process noise and the measurement noise vectors in real time using the residual vectors to decompose the system innovation vector (Wang et al. 2010; Wang 2009; Moghtased-Azar et al. 2014). On the basis of the estimated variance components, the weighting matrices of the process noise and the measurement noise vectors can be adjusted and then their effects on the state vector can be adjusted accordingly.

Now under the consideration of the standard system model, the state and measurement equations are:

where **x**(*k*) and **z**(*k*) are the state vector and the measurement vector, respectively; **Φ**(*k*, *k* − 1), **Γ**(*k*) and **H**(*k*) are the state-transition matrix, the coefficient matrix of the process noise vector and the design matrix, respectively; **w**(*k*) and **Δ**(*k*) denote the process noise vector and the measurement noise vector, respectively. Further, **w**(*k*) and **Δ**(*k*) are the zero mean Gaussian noises:

where **Q**(*k*) and **R**(*k*) are positive definite matrices.

Thus, the two-step update process of the Kalman filter is as follows:

The time update:

The measurement update:

where **G**(*k*) is the gain matrix and **d**(*k*) is the system innovation vector:

When **Q**(*k*) and **R**(*k*) are already known, the estimated state vector is optimal. However, in practice they cannot easily be obtained. So it would be great if they could be estimated in real time in the adaptive filter based on the VCE method.

There exist three groups of stochastic information that is associated with the estimation of the state vector: the observation noise vector **Δ**(*k*), the system process noise **w**(*k*) and the noise on the predicted state vector \( \widehat{\mathbf{x}}\left( k/ k-1\right) \) brought by \( \widehat{\mathbf{x}}\left( k\hbox{-} 1\right) \) though the propagation of {**Δ**(1), ⋯, **Δ**(*k* − 1)} and {**w**(1), ⋯, **w**(*k* ‐ 1)}. Thus, according to noise sources, we can define three independent (pseudo-)observation groups as follows (Wang 2009):

where l_{
x
}(*k*) is the pseudo-observation related to the predicted state vector, l_{
w
}(*k*) is the pseudo-observation related to the system process noise, and l_{z}(*k*) is the pseudo-observation related to the observation noise.

Using their residual equations, the system in Eq. (1) can be rewritten:

with their measurement variance matrices as follows:

So we can estimate the covariance matrix of the system as long as we calculate the covariance matrix of the residual vectors.

According to the steps of the Kalman filter, the estimations of the residual vectors can be calculated by the equation (9):

And then the corresponding variance matrices are as below:

Here the innovation vector is epochwise projected into three residual vectors associated with the three groups of the measurements. Hence, we can estimate the variance factors.

Assume that all components in **l**
_{
z
}(*k*) and **l**
_{
w
}(*k*) are uncorrelated, so both of the **R**(*k*) and **Q**(*k*) become diagonal. In this case, the redundancy index of each measurement noise factor is given by (Wang 2009)

Similarly, the redundancy index of each process noise factor is equal to

Furthermore, the individual group redundancy contributions, or the total group redundant indexes, are equal to (Wang et al. 2010; Wang 2009; Wang et al. 2009):

On the basis of the Herlmet VCE method, the individual group variance factors of unit weight are estimated by the residual vector and the corresponding redundant index as follows:

Thus, at time *k*, the individual variance factors of l_{
z
}(*k*) can be calculated by:

And the covariance matrix of the measurement noise is as follows:

Similarly, the variance factors of **l**
_{
w
}(*k*) and the variance matrix **Q**(*k*) can be calculated by the equations (17) and (18):

### CKF algorithm

Since the CKF is not only simple and easy to be implemented, but also high precise and convergent well, it is widely used in nonlinear estimations.

Let us consider a nonlinear state-space model:

where x_{
k
} and z_{
k
} are the state vector and the measurement vector, respectively, f(⋅) and h(⋅) are the nonlinear state and measurement vector functions; **w** ∼ N(0, Q) and **Δ** ∼ N(0, R) represent the process noise and the measurement noise vectors, respectively.

For this nonlinear system, 2*n* Cubature points which are equal of weight were selected to calculate the Gaussian distribution, and then the CKF can be implemented through the time and measurement updates. And the cubature points are set as:

where *n* is the dimension of the state vector.

And the estimation process is as below (Arasaratnam & Haykin 2009; Arasaratnam & Haykin 2010):

The time update:

The measurement update:

And the gain matrix is:

The estimation of the state vector can be obtained:

where d_{
k
} = z_{
k
} − ẑ_{
k|k − 1} is the system innovation vector of the nonlinear system.

The variance matrix of the estimated state vector is:

## Methods

### An improved adaptive filter based on the CKF

To solve the nonlinear problem and improve the stochastic model simultaneously, we here proposed a new improved adaptive filter by combining the CKF and the VCE adaptive method.

With the nonlinear system described in Eq. (19), three pseudo measurement groups are defined as follows:

The residual equation of the nonlinear system is:

According to the steps of the CKF, the equations (9) and (10) can be rewritten as:

The corresponding variance matrices are:

The individual group redundant indices are equal to:

Here, the covariance factors and the variance matrices for the nonlinear system can be calculated after the equations (15) ~ (18).

## Results and discussion

### Simulations and experiments

In order to show the advantages of the improved CKF, this section presents the solution comparison between the normal and the improved CKF methods through two nonlinear models: a bearing-only tracking model and a target tracking model, using the simulated data against their known reference solutions. A further experiment with the real data was also conducted and summarized.

### Bearing-only tracking method

In the bearing-only tracking model, there are two states. Its nonlinear model was set as below (Zhang et al. 2015; Julier & Uhlman 1997; Kotecha & Djuric 2003):

where the state vector is \( \mathbf{x}={\left[\begin{array}{cc}\hfill {x}_1\hfill & \hfill {x}_2\hfill \end{array}\right]}^T={\left[\begin{array}{cc}\hfill s\hfill & \hfill t\hfill \end{array}\right]}^T \), which are the position of a moving carrier in the 2D Cartesian coordinate system. The process noise is **w**
_{
k
} ~ *N*(**0**, **Q**) with

The observation sensor is an angle observer and its coordinate value is (cos(*k*), sin(*k*)) at *k* moment. And the measurement equation is as follows:

where the measurement noise is *v*
_{
k
} ~ N(0, *R*) with *R* = 0.005.

The initial state vector and its covariance matrix were given as:

The initial variance matrices for the process noise vector and the measurement noise vector were assigned to be 3 times and 4 times of their true values, respectively. The total time duration of the simulation is 500 s. To compare the performance, the results of the normal CKF were compared with the ones from the improved adaptive CKF filter. With 20 times of Monte Carlo simulations for this same 500-s long simulated data, the comparison of the mean square errors (MSE) of the estimated states from the normal CKF and the improved CKF were shown in Fig. 1. Figures 2 and 3 described the probability distribution function (PDF) of the estimated states with these two methods, respectively.

In order to evaluate the performance of the improved CKF, the PDFs of the estimated state errors resulted from the simulation data were calculated (Figs. 2 and 3), which showed that the PDF with the improved CKF much better fits the normal distribution which tells that the estimated states were more close to the true states than the once from the normal CKF. So the proposed novel method can estimate the stochastic model more accurately. By the way, from the results shown in Fig. 1, the MSEs of estimated states with the normal CKF and the improved CKF are not that different, but the results from the improved CKF method behaved better, although one should not expect to have the smaller variances if the errors are distributed more reasonably in general.

### Target tracking method

In this 2D tracking model, there are five states with the nonlinear model below (Arasaratnam & Haykin 2009):

where the state vector is \( \operatorname{x}={\left[\begin{array}{ccccc}\hfill x\hfill & \hfill \overset{.}{x}\hfill & \hfill y\hfill & \hfill \overset{.}{y}\hfill & \hfill \Omega \hfill \end{array}\right]}^T \), in which (*x*, *y*), \( \left(\overset{.}{x},\overset{.}{y}\right) \) and Ω are the position, the velocity and the angular velocity of the carrier, respectively, and *T*
_{
Δ
} represents the sampling interval. The process noise is r_{
k
} ∼ N(0, Q) with

The carrier was observed in real time, and the observations include the distance s_{
k
} and the azimuth *θ*
_{
k
} from the observation system to the carrier. So, the observation equation is:

where v_{
k
} is the observation noise vector, v_{
k
} ∼ *N*(0, R) with \( \operatorname{R}= diag\left(\left[\begin{array}{cc}\hfill {\sigma}_r^2\hfill & \hfill {\sigma}_{\theta}^2\hfill \end{array}\right]\right) \).

In this subsection, the simulation parameters are set as in Table 1.

The initial state

and the associated covariance

The root mean square error (RMSE) was used here as the evaluation criteria. So the RMSEs of the position, the velocity and the angular velocity of the carrier can be calculated after equation (44).

where *n*
_{exp} is the times of the Monte Carlo simulations.

The comparison between the RMSE of the estimated position, velocity and angular rate with normal CKF and the improved CKF were shown in Fig. 4. Figures 5 and 6 described the PDF of the estimated position, velocity and angular rate with these two methods, respectively.

From above, the RMSEs are almost the same with these two methods. And the PDFs with the improved CKF are much more fits the standardized normal distribution curve too, which is similar with Bearing-only tracking method. Thus, the feasibility and the superiority of the improved adaptive filter based on the CKF can be verified.

### Experiment and analysis

To verify the effectiveness of the novel adaptive filter based on CKF and VCE, an experiment with real data from practice was carried out. The experiment was taken in Zhanjiang area, China (shown in Fig. 7). And this ship sails directly with niform velocity fristly, then turns back (the heading changes 180 deg), then sails directly with niform velocity again, then turns back again, and then sails like this repeatedly. One Inertial Measurement Unit (IMU) developed by our own lab, which is composed of three Fiber Optic Gyroscopes (FOG) and three quartz flexible accelerometers, was used to acquire the ship’s inertial information. The performance parameter of the FOG and the accelerometer are listed in Tables 2 and 3, respectively. And the IMU was installed on the right side of the ship’s deck, shown as Fig. 8. The sampling frequency and total time of this experiment are 100Hz and 900 s, respectively.

With the proposed algorithm, the comparison of the estimated trajectory is as follows. In Fig. 9, the red solid line is the estimated trajectory from the improved CKF based on the VCE while the blue dash-dot line is the estimated trajectories with the normal CKF, respectively. And the celeste diamond indicates the initial position.

From the above figure, we can see that the trajectory can be both estimated availably with the improved CKF and normal CKF. Since we don’t have the true trajectory, the PDFs cannot provide here. It still can verify the feasibility of the improved adaptive filter based on CKF.

## Conclusions

This paper proposed a novel adaptive filter based on the VCE adaptive method and the nonlinear CKF method to improve the stochastic model due to the unknown system noises in the nonlinear system. By utilizing the frame structure of the nonlinear CKF, this proposed method can estimate the variances of the process noises and the measurement noises through variance component estimations in real time, describing the system more accurately. And the simulation and experiment results and the comparisons showed that the noise’s characteristics can be estimated effectively with the improved adaptive filter based on the CKF and VCE. Therefore, the effectiveness and superiority of the improved adaptive filter can be proved.

## References

Arasaratnam I, Haykin S (2009) Cubature Kalman filter. IEEE Trans Autom Control 54(6):1254–1269

Arasaratnam I, Haykin S (2010) Cubature Kalman filtering for continuous-dicrete systems: theory and simulations. IEEE Trans Signal Process 58(10):4977–4993

Chang G, Liu M (2015) An adaptive fading Kalman filter based on Mahalanobis distance. J Aerosp Eng 229(6):1114–1123

Chen SY (2012) Kalman filter for robot vision: a survey. IEEE Trans Ind Electron 59(11):4409–4420

Dini DH, Mandic DP, Julier SJ (2011) A widely linear complex unscented Kalman filter. IEEE Signal Processing Letters 18(11):623–626

Feng J, Wang Z, Zeng M (2013) Distributed weighted robust Kalman filter fusion for uncertain systems with autocorrelated and cross-correlated noises. Information Fusin 4(1):78–86

Gao W, Zhang Y, Wang J (2014) A straapdown inertial navigation system/beidou/doppler velocity Log integrated navigation algorithm based on a cubature Kalman filter. Sensors 14(1):1511–1527

Han S, Wang J (2012) Integrated GPS/INS navigation system with dual-rate Kaman filter. GPS Solutions 16(3):389–404

Hu C, Wu C, Chen Y, Liu D (2003) Adaptive Kalman filter for vejicle navigation. J Global Position System 2(1):42–47

Jin M, Zhao J, Jin J, Yu G, Li W (2014) The adaptive Kalman filter based on fuzzy logic for inertial motion capture system. Measurement 49:196–204

Julier SJ, Uhlman JK (1997) A New extension of the Kalman filter to nonlinear systems. Proceedings of the Society of Photo-Optical Instrumentation Engineers 3068:182–193

Kotecha JH, Djuric PA (2003) Gaussian particle filtering. IEEE Trans Signal Process 51(10):2592–2601

Masazade E, Fardad M, Varshney PK (2012) Sparsity-promoting extended Kalman filtering for target tracking in wireless sensor networks. IEEE Signal Processing Letters 19(12):845–848

Moghtased-Azar K, Tehranchi R, Amiri-Simkooei AR (2014) An alternative method for Non-negative estimation of variance components. J Geod 88(5):47–439

Mundla N, Rangababu P, Samrat L et al (2012) A modified sage-husa adaptive Kalman filter for denoising fiber optical gyroscope signal. In Proceedings of the 2012 Annual IEEE India Conference (INDICON), Kochi, pp 1266–1271

Santos MCP (2015) Estimating and Controlling UAV Position using RGB-D/IMU data Fusion with Decentralized Information/Kalman Filter. Proceedings in the 2015th IEEE International Conference on Industrial Technology (ICIT), Seville, pp 22–239

Tang C, Ao Z, Zhang K, Wang Y (2014) A multi-sensor data fusion algorithm based on improved Kalman filter. Mechatronics and Automatic Control Systems 237:219–229

Vaccarella A, de Momi E, Enquobahrie A, Ferrigno G (2013) Unscented Kalman filter based sensor fusion for robust optical and electromagnetic tracking in surgical navigation. IEEE Trans Instrum Meas 62(7):2067–2081

Von Chong A, Caballero R (2014) Adaptive Kalman filtering for the estimation of orientation and displacement in submarine systems. Proceedings of the 2014 IEEE Central America and Panama Convention (CONCAPAN XXXIV), Panama city, pp 1–6

Wang J (2009) Reliability analysis in Kalman filtering. J Global Positioning Systems 8(1):101–111

Wang J, Gopaul N, Scherzinger B (2009) Simplified algorithms of variance component estimation for static and kinematic GPS single point positioning. J Global Positioning Systems 8(1):43–52

Wang J, Gopaul SN, Guo J (2010) Adaptive Kalman filtering based on posteriori variance-covariance components estimation. CPGPS 2010 Technical Forum, Shanghai, pp 1–11

Zhang C, Zhao M, Yu X, Cui M, Zhou Y, Wang X (2015) Cubature Kalman filter based on strong tracking. The Proceedings of the Third International Conference on Communications, Signal Processing, and Systems 322:131–138

### Competing interests

The authors declare that they have no competing interests.

### Authors’ contribution

YZ wrote this paper and analyzed the results of the experiments; JW proposed the initial idea and revised this manuscript; QS carried out the simulations and revised this manuscript; WG conceived of the experiments. All authors read and approved the final manuscript.

## Author information

### Authors and Affiliations

### Corresponding author

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## About this article

### Cite this article

Zhang, Y., Wang, J., Sun, Q. *et al.* Adaptive cubature Kalman filter based on the variance-covariance components estimation.
*J. Glob. Position. Syst.* **15**, 1 (2017). https://doi.org/10.1186/s41445-017-0006-z

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s41445-017-0006-z