APP下载

Scaling parameters selection principle for the scaled unscented Kalman filter

2018-06-29NIEYongfangandZHANGTao

NIE Yongfang and ZHANG Tao

1.Department of Automation,Tsinghua University,Beijing 100084,China;

2.Department of Strategic Missile and Underwater Weapon,Naval Submarine Academy,Qingdao 266071,China

1.Introduction

The unscented transformation(UT)was first proposed by Julier and Uhlman[1,2].It can propagate mean and covariance through nonlinear transformation.On the basis of UT,a new filter named the unscented Kalman filter(UKF)is yielded.The UKF is widely used in many fields to solve nonlinear state estimators,such as control models[3],state estimation[4]and signal processing[5].In the UT algorithm,the first two momentsof the prior distribution are estimated by a set of deterministically selected sigma points with designated weights.The estimate performance of the UT depends on the number of sigma points and the corresponding weights.Therefore,the sigma point selection principle is important to ensure the good performance of UKF,which is always a challenge for some strong nonlinear systems,such as exponents and trigonometric functions.

Julier derived a symmetrically distributed set of 2n+1 sigma points whose mean and covariance match the prior distribution[1].Then,Julier discussed the minimal skew set of simplex points that minimize the magnitude of the third order moments[6]to reduce the computational costs,and proved that,for an n-dimensional state,only n+1 points are required to represent the mean and covariance fully.Thereafter,Julier pioneered the spherical simplex UT[7]that requires n+2 points for n dimensions to solve the weights numerical problem in the minimal skew.

However,the radius of the sphere that bounds the above sigma point sets will increase as the dimension increases.Julier developed the scaled UT[8]to solve this question.

The scaled sigma point selection principle is widely used in UKF applications.Although several basic recommendations on choice of the scaling parameters have been provided,they are independent of the nonlinear system or only depend on the dimension of the system.Thus,the parameters are chosen prior to the estimation nonlinear system and remain constant during the entire filtering.If the parameters of the sigma points are inappropriate to the given nonlinear system,the UKF may not achieve the ideal performance,and lack robustness[9].

Minimal attention has focus on the appropriate selection of the parameters.An of fline approach is proposed using the discriminative learning method(maximizing the likelihood function)and the training set of data[10].However,the of fline approach is unsuitable for dynamical systems because the change of the working point requires a new training procedure.Adaptive algorithms are discussed based on maximizing the different performance criteria with respect to the scaling parameter at each time instant in[11–13],such as the mean squared error(MSE),the maximize likelihood(ML)and the maximize a posteriori probability(MAP).However,these algorithms all suffer from yielding extra computational cost,the amount of which depends on the number of possible values of scaling parameters.The algorithms in[11–13]were summarized and refined in[14]to reduce the computational cost,but the pre-sented numerical results showed that this UKF is still significantly slower than the regular UKF.Recently,two complete off-line tuning algorithms for the UKF were proposed in[15],namely,a new stochastic tuning algorithm and a standard model-based optimizer.The off line processes do notimpose extra computational cost to the filter at runtime.Whereas the model-based optimizer that needs to select the goal function and the good stochastic tuning algorithm relies on the assumption that the goal function shows some degree of smoothness.The performance of the tuned UKF is dependent on the goal function.Therefore,the objective of this paper is to highlight the scaling parameter selection principle and proposes an effective algorithm for the scaled UKF,which is easy to understand and implement in engineering.

This paper is an extended version of the conference paper[16],where we only analyze the drawback of the constant scaling parameters for the scaled UKF with one example and propose an adaptive scaling parameter algorithm for α.In this paper,we discuss the problems caused by the constant scaling parameters in depth and propose a more perfect selection principle of the scaling parameters for the scaled UKF.

The rest of this paper is organized as follows.Section 2 reviews the main UKF variants and the basic recommendations of scaling parameters.Section 3 points out several problems in the literature caused by the constant scaling parameters.Section 4 proposes a new scaled UKF with self-adaptive scaling parameters selection principle.Section 5 presents two typical examples to demonstrate the effectiveness of the proposed principle and algorithm.Conclusions are drawn in Section 6.

2.Problem statements

2.1 Symmetrical UKF

Julier proposed the UKF based on the UT to improve the flaws of the extended Kalman filter(EKF)[1].

Consider the nonlinear filtering system:

where ξk∈ Rnis the state vector,uk∈ Rmis the control input vector and ζk∈ Rpis the measurement output vector.ψ(.)and ρ(.)are nonlinear known functions.τk−1and μkare independent process and measurement white Gaussian noise with zero means and covariance Γk−1and Rk,respectively.

A set of N sigma points and weightsare chosen to satisfy the following conditions[2]:

Many UKF variants,which differ from each other depending on how sigma point sets are selected,have been presented in the literature.(See details in Table I of[17]).Among them,the symmetrically distributed sigma point setis the most frequently used[1].

where κ is the scaling parameter for the UKF.

The symmetrical UKF keepsthe structure of the Kalman filter for linear systems,which has two steps,namely,time update and measurement update.

Time update:

Step 1Given ξ0and P0,form the sigma points setaccording to(4).

Step 2Propagate the sigma points through the process model(1),compute the predict mean and covariance as follows:

Measurement update:

Step 3Form the sigma pointsaccording to(4).

Step 4Propagate the sigma points through the measurement model(2),and compute the predicted mean,covariance and the cross-covariance as follows:

Step 5Compute the filter gain,the update state mean and covariance:

2.2 Scaled UT

whereα,β,κ are the scaling parameters of the scaled UKF.Some basic recommendations on the selection of scaling parameters are provided.Generally,κ ≥ 0(κ =3−n or κ=0)is selected to guarantee positive semi-definiteness of the covariance matrix[8].α ∈ [10−4,1]is a small number to avoid sampling non-local effects when the nonlinearities are strong.β is used to incorporate prior knowledge of the higher order moments of the distribution.For Gaussian distribution,β=2 is optimal[8].

3.Several problems caused by the constant scaling parameters

In most UKF applications,scaling parameters are predetermined and remain constant during the entire experiment.Sometimes,the estimation performance of the UKF with constant scaling parameters is not as good as that of other filters,such as EKF[9],EKF2[18],Gaussian Hermite filter(GHF)[19]or cubature Kalman filter(CKF)[20].Examples are given below to point out several problems caused by the predefined constant scaling parameters for the UKF.

3.1 Problem 1

It is not the case that α should be selected arbitrarily small to minimize higher order effects.

Consider a nonlinear model called univariate nonstationary growth model(UNGM).It is particularly interesting and challenging for nonlinear filtering because of its highly nonlinear and bimodal.It is widely used in the literature to show the estimate performance of the proposed nonlinear filtering,such as[9,21,22].

The dynamic state space model for UNGM[9]can be written as follows:

whereand

In[9],using a set of constant parameters α =0.5,β =2,κ=2,the authors pointed out that the simulation result was very poor and even worse than that of the EKF.However,the authors only saw the superficial question and did not discuss the underlying reasons.Fig.1 shows the poor result of[9].

Fig.1 UKF result with constant scaling parameters α=0.5,β=2,κ=2

The main reason for the poor result is that the scaling parameters of the sigma points are inappropriate,such that they do not actually capture the higher moments.In this model,when the other set of constant scaling parameters α =1,β =2,κ =2 are used,Fig.2 illustrates a better performance than Fig.1.

In this example,the authors select κ =3−n=2 according to the recommendation.The poor result shown in Fig.1 indicates that the ideal result cannot be obtained through the recommended scaling parameters when using the scaled UKF for a strong nonlinear system.Comparing the results shown in Fig.1 with Fig.2,it can be seen that a smaller value of α does not mean an improved performance.

Fig.2 UKF result with constant scaling parameters α = 1,β =2,κ=2

3.2 Problem 2

κ is critical and should not be selected just according to recommendations.

Gustafsson demonstrated a counter-example to show that the scaled UKF cannot give the correct second order moments,even for the quadratic function that has an analytical solution[18],which was referenced in[17]and[19]asan example to show the same question of the scaled UKF for arbitrary nonlinearities.

A typical chi-square distribution has the meanand covariance P=2n.For this nonlinear system,the authors use EKF,EKF2,UKF1,UKF2 and CKF filters and compare their performances with the true mean and covariance[18].For the completeness of the paper,some results of[18]are referenced and listed in Table 1.

Table 1 Calculation results with typical filters[18]

Obviously,only EKF2 works perfectly.The results show that UKF1 yields a negative covariance,whereas UKF2 overestimates the covariance.In fact,these incorrect results are due to the predefined constant scaling parameters.

Theorem 1For the specific nonlinear system(18),its meanand covariance Pζζ= κn with the symmetrical UKF.

ProofUsing(4)to obtain,then substituting them into(6)– (8),we can calculate the meanand covariance Pζζas follows:

where eiis the unit vector in Rnwith the i th element being 1. □

Therefore,when κ=2,the symmetrical UKF can give the correct mean and covariance for the chi-square distribution.To satisfy the condition in(3),the sigma point setof the symmetrical UKF and the sigma point setof the scaled UKF should fulfill(15)and the following equation[8]:

In fact,when the mean and covariance of a given nonlinear system are known,the optimal value of κ is a constant which cannot be randomly selected just according to recommendations.The value of κ is critical,which determines the weight of the center point.Therefore,κ should be properly selected first according to the properties of the specific nonlinear dynamical system,thereafter α can be arbitrarily selected to solve the non-local effect to satisfy(3),(15)and(19).A bearing-only tracking example was given in[11]to demonstrate that the recommendations of κ do not lead to the best results.

3.3 Problem 3

It should not be in doubt that the scaled UT(15)and(19)can preserve the first two moments for any set of sigma points.

The scaled UT(15)and(19)highlight that it allows any set of sigma points to be scaled by an arbitrary scaling factor and preserves the first two moments of the set[8].The authors gave two examples to query this ability[17].One example is an arbitrary set of sigma points as follows:

Supposeand P=I2.The previous set of sigma points is

In fact,the authors obtained these incorrect results because they misunderstood the meaning ofin(15).Julier pointed out thatis the mean of the previous sigma point[8],whereas the authors thoughtwas the first sigma pointsee details in Table II of[17]).There we only give the mean calculation to show their mistake.

ProofThe incorrect result in[17]is

In fact,the mean of the true scaled sigma set is[0]2×1,which can hold for arbitrary α:

The other example was given in[17]to show the scaled UT cannot preserve the covariance of the nonlinear system(18)by using the UT algorithm proposed in[23]:

whereis the weight of the center point,which controls how the other sigma points will be repositioned.The symmetrical UKF is a special case of the UT(20),where

The authors give the transformed results3α2− 8 directly without proof(we cannot know how this result was derived).Pζζis not equal to the true covariance(P=2n=6)of 3D chi-square distribution.The authors pointed out that this result showed two problems.First,the transformed covariance for this scaled UT is not matched up to the second order,but only to the first order.Second,the scaling factor modifies the covariance even for second order polynomial approximation.We will give the detail proof to show that Pζζcan obtain the true covariance with the scaled UKF ifand α are properly selected.

Theorem 2For the specific nonlinear system(18),its meanand covariancewith the UT(20),while the covariance iswith the UT(20)transformed by the scaled UT.

ProofFor any givenusing(20)to obtainthen substituting them into(6)–(8),we can calculate meanand covariance Pζζas follows:

Likely,for any given α,using(15)and(19)to obtain the transformedthen substituting them into(6)– (8),we can obtainand

Therefore,when n=3,we can get the right covariance of the nonlinear system(18)if weThen α=1 can also give the right covariance of the transformed sigma points.

3.4 Conclusions of the problems

From the above problems,we can draw two conclusions.First,the scaled UKF can preserve the first two moments for any set of sigma points as Julier declared.However,the “arbitrariness”of α must be conditioned on the appropriate selection of κ or.Second,for a given nonlinear dynamical system,it is not reasonable to predefine a set of constant scaling parameters during the entire UKF filtering process without considering particular system description,especially for the strong nonlinear systems.

4.Scaling parameters selection principle for the scaled UKF

The results shown in Table 1 indicate that,if κ is inappropriately selected first,then regardless of how small the value of α is,the correct covariance cannot be obtained.Therefore,deriving a self-adaptive scaling parameter α for a specific nonlinear system conditioned on the appropriate κ is better.The optimal value of α should be time-varying according to the time-varying covariance.β has only two choices,namely,β =0 or β =2,depending on whether the distribution is Gaussian or not.We propose a scaling parameter selection principle by the following procedures.

4.1 Estimating κ and β in the MMSE and the minimum distribution interval senses with Monte Carlo simulation

The state is estimated using the scaled UKF with α=1,β =0,κ =0:1:3n and α =1,β =2,κ =0:1:3n.The maximum value of κ is set to 3n because κ determines the weight of the center point.When κ=3n,is 0.75,and the sum of the weights of the other 2n sigma points is only 0.25.The filter performance is measured in the mean square error(MSE)sense with M=106Monte Carlo simulations[24],i.e.,

whereare the true and the estimated state vectors at time k in the i th Monte Carlo simulation.Nkis the number of sampling.In the case of two or more equal(or similar)MSEs,how do we select the appropriate κ?To solve this problem,suppose an MSE from one Monte Carlo simulation is a random variable.We define the covariance of the MSE to depict its distribution interval.From this point of view,MMSE is the mean of MSE variables.Therefore,we can select a set of scaling parameters α =1,β = βcand κ = κc(where βcand κcare known constants),which yield the MMSE.If there are two or more equal(or similar)MSEs,then we select κcwhich yields the minimum distribution interval.

4.2 Estimating the time-varying parameter αk

The distance between the meanand the transformed sigma pointis calculated as follows:

For a given nonlinear system,its dimension n is fixed,and the value of δ is determined by the values of α and P.At each prediction and measurement update step,P is time varying.Therefore,if α keeps constant,δ gets larger as P gets larger.Sometimes the larger δ does not satisfy the necessary condition of the Taylor series expansion,which results in the sampling non-local effects.Therefore,the scaling parameter α should be changed with the time-varying P at each step to keep the distance δ in a small neighborhood of the center point.Otherwise,the chosen sample points may not capture the posterior higher moments and introduce large errors.

At each k−1 step,the sigma points are calculated with the current scaling parameters α = αk−1,β = βc,and κ= κc.When the updated covariance Pkis obtained,by means of Jiang’s idea,we can calculateand αkfor the scaled UKF as follows:

where Ω refers to all the sigma points.

4.3 Scaled UKF algorithm with the proposed scaling parameters selection principle

We name the scaled UKF algorithm with the proposed scaling parameters selection principle as UKF G,and that with constant scaling parameters α =1, β = βcand κ= κcas the default UKF.UKF G can be computed as follows:

Step 1Initialize the meanand the covariance P=P0.

Step 2Estimate a set of scaling parameters α=1,β = βcand κ = κcaccording to(16)and(21).

Step 3Calculate the sigma pointsat step k.

Step 4Calculate the updated state mean ξkand covariance Pkaccording to(6)–(14).

Step 5Calculate αkaccording to(23)– (25).

Step 6Let k=k+1,repeat Step 3–Step 6.

Step 7Compare the estimated covariance with that of the default UKF,select the smaller covariance and keep the associated mean as the final result.

5.Example and simulation results

5.1 UNGM example

Reconsider the UNGM example.Using Step 2,we can obtain the corresponding results from 106Monte Carlo simulations,which are given in Table 2.

Table 2 MSE of different κ and β

Obviously,α =1,β =0 and κ =1 yield the MMSE.Therefore,we select the set of scaling parameters α=1,βc=0 and κc=1,and use them to estimate the state with UKF G.

The default UKF simulation result is given in Fig.3.Although Fig.3 illustrates a better performance than Fig.2,at steps 67–74,80–83,the default UKF still has difficulties in following the correct model,even giving the incorrect,reversed estimated state.

Fig.3 Default UKF result with constant scaling parameters α=1,βc=0,κc=1

The simulation result of UKF G is given in Fig.4.UKF G can track the correct state at almost every step and exhibits a better performance than the default UKF.The superiority of UKF G is shown clearly in steps 67–74 and 80–83 which change the incorrect,reversed estimated state to the nearly right states.

Fig.4 UKF G result

The time-varying parameter αkdemonstrates the good performance of UKF G,as shown in Fig.5.Because the performance of the UT is analyzed based on the multidimensional Taylor series,the transformed meanand the non-transformed oneonly agree up to the second order ifhas an effect on the rest high order terms as follows[8,16].

Fig.5 Time-varying scaling parameter αk

The results shown in Fig.4 and Fig.5 indicate thatperfectly solves the non-local effects caused by the constant scaling parameters.In this example,αkhas only one time-varying value because the UNGM model is one dimensional.Thus,its time-varying property is not evident in this example.

5.2 Multi-dimensional strong nonlinear example

Consider a 3D strong nonlinear model as follows:

where τ=0.3,Γ =0.7,μ =0.5,R=1.The true and estimated initial states are ξ0=[−0.7,1,1]Tandwith P0=I3.This example includes trigonometric and exponent functions,whose higher-order derivatives cannot be ignored.Thus,the poorest results are likely produced in the worst cases.

The initial scaling parameters are estimated by Step 2 with 106Monte Carlo simulations(α=1),and the results are listed in Table 3.

Table 3 MSE of different κ and β

Two notable results are shown in Table 3.First,β=2 is better for this system.Second,κ =7 and κ =9 yield the similar MSE.We utilize 106MSE variables from the Monte Carlo simulations of κ=0:9.Their distributions are illustrated in Fig.6.As can be seen,κ=9 yields the MMSE distribution interval.Therefore,we select βc=2 and κc=9.The recommended κ =0 does not give the MMSE with either β =0 or β =2.

Fig.6 κ and the corresponding MMSE

The estimation quality of ξ with the default UKF and UKF G are compared in Fig.7.Obviously,UKF G exhibits a better performance than the default UKF.In particular,UKF G can track the true states of ξ2,kand ξ3,kat almost every step.The estimated quality of ξ1,kwith UKF G is not as perfect as those of ξ2,kand ξ3,k,but still produces a significantly improved performance than that with the default UKF.This example shows that UKF G can effectively estimate the strong nonlinear systems.

Fig.7 Simulation comparison results of ξ with the default UKF and UKF G

The time-varying parameter αkis demonstrated in Fig.8.Its time-varying property is more evident than in Fig.5.The results shown in Fig.7 and Fig.8 indicate that,for ξ2,k,the time-varying parameters α6=0.361,α34=0.315 6 and α35=0.49 correct the large errors of the default UKF at Steps 6,34 and 35,which demonstrate the superior function of the time-varying parameter.

Fig.8 Time-varying scaling parameter αk

5.3 Data comparison of the computational cost and estimated performance

Table 4 lists the MSE and computational cost of the abovementioned examples with 100 Monte Carlo simulations.

Table 4 Data comparison

Although the computational cost of UKF G is approximately two times of the default UKF because it needs to compute two UKF filtering procedures,the computation is worth doing to significantly improve the estimation performance in the MSE sense.Moreover,we can compute the estimated state with the default UKF,keep the results,and use the known default results to compute UKF G to reduce computational cost.Thus,UKF G will only cost slightly more time than the default UKF to compute the time-varying parameter αkat each step.From this point of view,UKF G is an effective nonlinear filter than the default UKF,which can realize on-line adjustment.

6.Conclusions

The widely used scaling parameters recommendations are discussed and several problems are highlighted in this paper.On the basis of analyses,a scaling parameter selection principle is proposed.A self-adaptive scaling parameter selection algorithm for the scaled UKF is derived according to the above principle,which is named UKF G.The performance of UKF G is demonstrated by two typical strong nonlinear models.Simulation results show that UKF G provides significantly higher quality in the MSE sense than UKF with constant parameters,which demonstrate its effectiveness.Experimental procedure also indicates that this algorithm is simple and understandable.The main objective of this paper is to propose an easily applicable and effective scaled UKF in engineering.Therefore,the proposed algorithm(UKF G)is not compared in terms of performance with other works[10–15]which are based on different performance criteria.

[1]JULIER S J,UHLMANN J K,DURRANT-WHYTE H F.A new approach for filtering nonlinear systems.Proc.of the IEEE American Control Conference,1995:1628–1632.

[2]JULIER S J,UHLMANN J K,DURRANT-WHYTE H F.A new method for the nonlinear transformation of means and covariances in filters and estimators.IEEE Trans.on Automatic Control,2000,45(3):477–482.

[3]JAYASIRI A,NANDAN A,IMTIAZ S,et al.Dynamic positioning of vessels using a UKF-based observer and an NMPC-based controller.IEEE Trans.on Automation Science and Engineering,2017,14(4):1778–1785.

[4]KANDEPU R,FOSS B,IMSLAND L.Applying the unscented Kalman filter for nonlinear state estimation.Journal of Process Control,2008,18(7):753–768.

[5]QIAN H,LIU K,LI L,et al.Widely linear UKF constant modulus algorithm for blind adaptive beam forming.Journal of Systems Engineering and Electronics,2017,28(3):413–423.

[6]JULIER S J,UHLMANN J K.Reduced sigma point filters for propagation of means and covariances through nonlinear transformations.Proc.of the American Control Conference,2002:887–892.

[7]JULIER S J.The spherical simplex unscented transformation.Proc.of the American Control Conference,2003:2430–2434.

[8]JULIER S J,UHLMANN J K.The scaled unscented transformation(author’s comments).IEEE Trans.on Automatic Control,2002,47:1408–1409.

[9]HARTIKAINEN J,SOLIN A,SARKKA S.Optimal filtering with Kalman filters and smoothers–a manual for the matlab toolbox EKF/UKF.Greater Helsinki Finland:Aato University,2011.

[10]SAKAI A,KURODA Y.Discriminative parameter training of unscented Kalman filter.IFAC Proceedings Volumes,2010,43(18):677–682.

[11]DUNIK J,SIMANDL M,STRAKA O.Adaptive choice of scaling parameter in derivative-free local filters.IEEE Information Fusion,2010:1–8.

[12]DUNIK J,SIMANDL M,STRAKA O.Unscented Kalman filter:aspects and adaptive setting of scaling parameter.IEEE Trans.on Automatic Control,2012,57(9):2411–2416.

[13]STRAKA O,DUNIK J,SIMANDL M.Scaling parameter in unscented transform:analysis and specification.Proc.of the American Control Conference,2012:5550–5555.

[14]STRAKA O,DUNIK J,SIMANDL M.Unscented Kalman filter with advanced adaptation of scaling parameter.Automatica,2014,50(10):2657–2664.

[15]SCARDUA L A,CRUZ J J D.Complete of fline tuning of the unscented Kalman filter.Automatica,2017,80:54–61.

[16]NIE Y,ZHANG T.A self-adaptive scaling parameter selection algorithm for the unscented Kalman filter.Proc.of the Chinese Automation Congress,2016:86–90.

[17]MENEGAZ H M T,ISHIHARA J Y,BORGES G A,et al.A systematization of the unscented Kalman filter theory.IEEE Trans.on Automatic Control,2015,60(10):2583–2598.

[18]GUSTAFSSON F,HENDEBY G.Some relations between extended and unscented Kalman filters.IEEE Trans.on Signal Processing,2012,60(2):545–555.

[19]ROTH M,HENDEBY G,GUSTAFSSON F.Nonlinear Kalman filters explained:a tutorial on moment computations and sigma point methods.Journal of Advances in Information Fusion,2016,11(1):47–70.

[20]JIA B,XIN M,CHENG Y.High-degree cubature Kalman filter.Automatica,2013,49(2):510–518.

[21]SARKKA S,HARTIKAINEN J,SVENSSON L.On the relation between Gaussian process quadratures and sigma-point methods.Statistics,2015:arXiv:1504.05994.

[22]LIU Y,YU A X,ZHU J B,et al.Unscented Kalman filtering in the additive noise case.Science China Technological Sciences,2010,53(4):929–941.

[23]JULIER S J,UHLMANN J K.Unscented filtering and nonlinear estimation.Proceeding of the IEEE,2004,92(3):401–422.

[24]SIMANDL M,DUN´IK J.Derivative-free estimation methods:new results and performance analysis.Automatica,2009,45(7):1749–1757.

[25]WANG J.Self-adaptive selecting method for scaling factor of scaled unscented transformation.Chinese Space Science&Technology,2008,28(3):1–6,28.(in Chinese)


登录APP查看全文