the Creative Commons Attribution 4.0 License.
the Creative Commons Attribution 4.0 License.
On co-estimation and validation of vehicle driving states by a UKF-based approach
Peng Wang
Hui Pang
Zijun Xu
Jiamin Jin
It is necessary to acquire the accurate information of vehicle driving states for the implementation of automobile active safety control. To this end, this paper proposes an effective co-estimation method based on an unscented Kalman filter (UKF) algorithm to accurately predict the sideslip angle, yaw rate, and longitudinal speed of a ground vehicle. First, a 3 degrees-of-freedom (DOFs) nonlinear vehicle dynamics model is established as the nominal control plant. Then, based on CarSim software, the simulation results of the front steer angle and longitudinal and lateral acceleration are obtained under a variety of working conditions, which are regarded as the pseudo-measured values. Finally, the joint simulation of vehicle state estimation is realized in the MATLAB/Simulink environment by using the pseudo-measured values and UKF algorithm concurrently. The results show that the proposed UKF-based vehicle driving state estimation method is effective and more accurate in different working scenarios compared with the EKF-based estimation method.
- Article
(2812 KB) - Full-text XML
- BibTeX
- EndNote
As we all know, a variety of vehicles has become a popular and common device in people's daily lives; meanwhile, an active safety system (ASC) of a ground vehicle plays an important role in avoiding traffic accidents as a means of guaranteeing passenger safety. However, the effective operation of ASC systems is inseparable from the accurate acquisition of vehicle driving states (Zhang et al., 2019). In general, most vehicle state information is obtained by onboard sensors. However, due to the limitation of cost and measurement methods, it is difficult for some vehicle state signals to be measured directly by sensors, which makes the estimation of vehicle states a hot topic in the field of vehicle ASCs.
Among the vehicle state signals, the sideslip angle, yaw rate, and longitudinal speed are important input variables for the vehicle ASC systems, such as the Electronic Stabilization Program (ESP), Adaptive Cruise Control (ACC), and Lane Keeping Assist (LKA), as well as the state signals that often need to be estimated (Li et al., 2020).
Currently, the common vehicle state estimation methods are usually divided into kinematics methods and dynamics methods (Selmanaj et al., 2017). Based on the relationship between the known state and the unknown state, the kinematics model-based methods calculate the unknown states by directly integrating the kinematics equation (Yamamoto et al., 1995). Generally, these methods have good accuracy for vehicle parameters, road adhesion coefficient, and driving operation. Under the condition of accurate sensor signals, these methods have high estimation accuracy for the sideslip angle in both linear and nonlinear regions (Li et al., 2014). However, the accuracy of these estimation methods is heavily dependent on the measurement accuracy of sensors, which will directly affect the estimation result of the kinematics method. What is more, due to the error accumulations in the integral process, the estimation error caused by measurement noise will increase gradually, and this will still result in the deviation of the estimated value of kinematics from its corresponding values (Piyabongkarn et al., 2009; Kim et al., 2020).
Based on the vehicle dynamics model and tire model, the dynamics methods use modern observation technology to estimate the unknown state, which can reduce the dependence on the sensor precision. The Kalman filter (KF) algorithm family are the common dynamics model-based methods, and lots of scholars have conducted extensive research on the Kalman filter family-based state estimation method. Based on an extended Kalman filter (EKF), Zong et al. (2009) established an information fusion algorithm, which gave out fusion results of vehicle state at minimum square error, and an offline simulation with real vehicle site test data in the MATLAB/Simulink environment was carried out. In Naets et al. (2017)'s research, a nonlinear least square tire parameter estimator was designed to estimate the sideslip angle and the side force of the tire based on the EKF approach, and the covariance caused by the model changes and the variation of driving conditions were also considered. Besides, Katriniok and Abel (2016) proposed an EKF-based estimator to estimate the dynamic parameters of electric vehicles, such as the longitudinal and lateral speeds, along with the yaw rate. Meanwhile, the effectiveness of this EKF-based estimator was validated through MATLAB/Simulink. Moreover, a model-based state observer (Reina et al., 2017) was developed to estimate the key motion states and the vehicle mass online; based on this, a type of vehicle parameter estimation approach was proposed by integrating with the EKF algorithm, and a comparative study between the proposed method and the KF approach was also conducted. Considering that the steering torque signal has faster and more direct response characteristics than the steering angle signal, Ma et al. (2018) proposed an EKF estimation method for the sideslip angle based on the steering torque and verified the accuracy of this method by real vehicle tests.
Like the study above, Liu et al. (2016) proposed a state estimation method for four-wheel drive vehicles based on the minimum model error (MME) criterion by combing with the EKF algorithm. It should be noticed that this method can effectively find out the dynamic tire force errors and then update the system model parameters, which improves the estimation accuracy of the vehicle state.
It is worth pointing out that the EKF algorithm is usually used to estimate the weak-nonlinear systems and simple systems. When the system is strongly nonlinear, the EKF estimation results may lead to large errors or even diverge. In addition, when the estimated system is too complex, the computational load of the EKF algorithm will increase dramatically, which may cause no solution of the Jacobian matrix (Zhou et al., 2019; Strano and Terzo, 2018). Fortunately, compared with the EKF algorithm, the unscented Kalman filter (UKF) algorithm approximates linearization by sampling instead of calculating the Jacobian matrix, which can avoid the above-mentioned problems.
In recent years, some scholars have used the UKF algorithm to estimate the driving states of vehicles. Heidfeld et al. (2019) proposed a state estimation method for all-wheel drive electric vehicles based on the UKF algorithm, which realized the comprehensive estimation of longitudinal and lateral speed, tire slip angle, and tire friction coefficient on each wheel. Based on the UKF algorithm, Song et al. (2020) designed a state observer to realize the joint estimation of vehicle states and parameters and carried out the simulation verification on the Simulink/Carsim platform. The results showed that the joint observer could effectively estimate and identify the relevant vehicle states and parameters and had a good convergence effect.
Inspired by these studies, in this paper, an effective estimation method is conducted based on the UKF algorithm in order to accurately estimate the driving states of vehicles.
This paper is organized as follows: 3 degrees-of-freedom (DOFs) vehicle dynamics modeling and problem formulation of vehicle state estimation are provided in Sect. 2, and Sect. 3 synthesizes the proposed UKF-based vehicle driving state estimation method. Besides, in Sect. 4, the validity of this UKF-based vehicle state estimation is verified by the joint simulation of CarSim and MATLAB/Simulink. Finally, Sect. 5 summarizes the conclusions and future works along this research direction.
In this paper, the 3-DOFs nonlinear vehicle dynamics model is selected as the nominal model for vehicle state estimation. Based on the 2-DOFs linear vehicle dynamics model (Li et al., 2017), a dynamic model including longitudinal, lateral, and yaw motion is established, as demonstrated in Fig. 1.
The 3-DOFs vehicle dynamics model can be described as follows:
where a and b are the distances between the vehicle center of mass and the front axle and rear axle, respectively; k1 and k2 are equivalent cornering stiffness of the front and rear axles, respectively; m and Iz are the mass and the rotational inertia of the vehicle, respectively; vx is the longitudinal velocity; r is the vehicle yaw rate; β is the vehicle sideslip angle; δ is the front steer angle; ay is the lateral acceleration.
It is noted that we aim to estimate β, r, and vx in real time by using the measured ax and ay as well as δ (obtained indirectly by measuring the steering wheel angle).
The system state vector x is defined as
the system input vector u is defined as
and the system output vector z (the measurement vector) is defined as
Combining Eqs. (1)–(7), the vehicle dynamics model is expressed in the form of a state-space equation as
where the state matrices A, B, C, and D are described in Appendix A.
Based on the 3-DOFs vehicle dynamics model established above in Eq. (8), the UKF algorithm is applied to estimate the key driving states with the measured inputs acquired by the vehicle onboard sensors.
3.1 Unscented transformation (UT)
UT is the key of the UKF algorithm, which is a method to approximate Gaussian distribution by using a fixed number of parameter branches (Kim and Park, 2010). The UT approach can realize the linearization process of a nonlinear system by the sampling method, and it can also avoid the complicated calculation of the Jacobian matrix. The flowchart of UT is demonstrated in Fig. 2.
The detailed procedure of the UT is illustrated as follows.
-
Constructing the Sigma points
According to a certain sampling strategy, a series of sampling points χi () are sampled from the vehicle state variables at the previous moment, which are called Sigma points. 2n is the number of sampling points, and the weights of the mean and covariance are and , which represent the weighted coefficients of the first-order and second-order statistical properties, respectively.
-
Nonlinear transformation
After the nonlinear transformation of χi, can be obtained, which can approximately represent the distribution of the prediction function or measurement function in Eq. (8).
-
Calculating the weighted sample mean and covariance
By calculating the weighted sum of , the prior distribution of vehicle states can be approximated; that is, the mean value and covariance of the state vector x in Eq. (5) can be calculated. The crucial issue of UT is to determine the sampling strategy of Sigma points, that is, to determine the number, position, and corresponding weight of each Sigma point (Kim and Park, 2010).
3.2 UKF algorithm
When the one-step prediction equation of the standard KF algorithm uses UT to realize the nonlinear transformation of the mean and covariance matrix, the UKF algorithm is then constructed. The steps of the UKF algorithm are as follows.
-
Setting the initial values:
wherein x(0) is the initial state value in Eq. (5).
-
Update the timescale states.
- a.
Sampling the Sigma points
Based on the symmetric sampling strategy, the Sigma points and the weights of Sigma points, together with the corresponding covariance, are calculated by using the estimated state and the corresponding covariance Px(k−1) of Eq. (5) at k−1 sampling time. The Sigma points ξi are constructed as
where n is the dimension of the state vector to be estimated; is the proportionality coefficient, which is used to adjust the distance between and Sigma points. The constant α determines the degree of dispersion of Sigma points which usually takes a small positive value. The constant kp is the second scale parameter, which is usually set as 0 or 3−n. is the jth column of the covariance matrix square root where .
The weights of each Sigma point and the covariance matrix, i.e., and , are determined by
where γ is the state distribution parameter, which is used to describe the distribution information of . In the case of Gaussian distribution, the optimal value is 2.
When k>1, a Sigma point set containing 2n+1 sample points is constructed according to Eq. (10), which can be represented by
where ; .
- b.
Calculating the sample points of the predicted values
The prediction function in Eq. (8) is used to perform the nonlinear transformation on each Sigma point to obtain the predicted value of each point, as shown in Eq. (14):
- c.
Calculating the prior state estimate and covariance
By using the weight of Sigma points and corresponding covariance obtained from Eqs. (11) and (12), the weighted sum of the predicted sample points and covariance can be calculated; that is, the prior state and covariance can be given by
wherein Qk is the covariance matrix of system noise.
In fact, the essence of steps (a) to (c) is to perform a UT on and Px(k−1) using the prediction function in Eq. (8).
- d.
Calculating the prior measurement
Return to step (a) and use the measurement function in Eq. (8) to carry out the second UT on and to obtain the prior measurement values , where the weight of each Sigma point is the same as step (a). The reconstructed Sigma point and the corresponding sampling points of prior measurement values are represented by χi(k) and , respectively. Simultaneously, the self-covariance Pz(k) of and the cross-covariance of and can be calculated. The relevant calculation formulas are as follows:
where ; , and are as follows:
wherein Rk is the covariance matrix of measured noise.
- a.
-
Update the posterior estimation with measured values.
By comparing the actual measured value and the estimated measured value in Eq. (19), the Kalman gain is used to update the prior state and covariance, and we can obtain the updated value of the posterior state and covariance by using Eq. (22).
By synthesizing the above derivations, the estimation flowchart of vehicle states based on the UKF approach is provided in Fig. 3.
In order to validate the accuracy and feasibility of the proposed UKF-based vehicle states estimation approach, a co-simulation and verification in CarSim and MATLAB/Simulink is performed. First, the response curves of δ, β, r, and vx as well as ax and ay are obtained in the CarSim environment under sine and fishhook maneuvers. Then, based on MATLAB/Simulink, the UKF and EKF algorithms are used to estimate β, r, and vx, wherein δ and ax are regarded as the input values and ay is regarded as the measurement. Finally, the estimation results of UKF and EKF are compared with those of CarSim to judge the accuracy of the estimation of vehicle driving states by the UKF algorithm.
In this work, the initial value of the state covariance matrix of the UKF algorithm is set as , and the system process noise Qk and the measured noise Rk are given as and Rk=0.005, respectively. The related vehicle parameters used in the simulation model are shown in Table 1 (Li et al., 2017), and the structure of the simulator based on the UKF algorithm is shown in Fig. 4.
4.1 Sine manoeuver test
The sine manoeuver test is first carried out in the CarSim environment, and the simulation results of δ and ax are shown in Fig. 5. Taking these estimates as pseudo-measured values and input values, we use the proposed UKF-based estimation method to estimate the required states. Simultaneously, the comparison curves of β, r, vx, and ay, along with their corresponding absolute and relative error curves, are provided in Figs. 6, 7, and 8, respectively.
In terms of the results in Figs. 6, 7, and 8, the estimated values of UKF on β, r, vx, and ay are basically consistent with the measured values gotten by CarSim software and have smaller absolute errors than EKF. Among them, the relative errors of UKF on β, r, vx, and ay are basically kept below 3 %; only when the steering wheel angle reaches its maximum will the fluctuation of the relative errors be a little larger. In general, the relative errors of UKF are lower than EKF. Obviously, UKF has better estimation ability than EKF.
4.2 Fishhook manoeuver test
4.2.1 Case I
The similar simulations are conducted under the fishhook manoeuver test I scenario using CarSim software, and the obtained δ and ax are shown in Fig. 9. Meanwhile, the comparison curves of β, r, vx, and ay, along with their corresponding absolute and relative error curves, are provided Figs. 10, 11, and 12, respectively.
In terms of Figs. 10, 11, and 12, there is also a high consistency in UKF between the estimated and measured values of β, r, vx, and ay under fishhook manoeuver test I. Especially the absolute error of vx with UKF is far lower than that with EKF. Under the circumstance that the absolute error of EKF presents an increasing trend, the error curve of UKF is still relatively flat. Meanwhile, the relative errors of UKF on vx and ay are always kept below 3 %; only the relative errors of β and r are relatively high at 0 and 2 s, respectively, and later they also decrease to below 3 %, which indicates that the estimation results of the proposed UKF-based driving states estimation method have higher accuracy.
4.2.2 Case II
Similar to the simulation in Case I, the related simulations are carried out under fishhook manoeuver test II. The obtained results of δ and ax are displayed in Fig. 13, which are used as the inputs to the UKF-based simulation model in the MATLAB/Simulink environment. Thus, the comparison curves of β, r, vx, and ay, along with their corresponding error curves, are displayed in Figs. 14, 15, and 16, respectively.
Like the situations in Case I, the proposed UKF-based vehicle estimation method still maintains a higher accuracy than EKF in Case II, and only the error of β and r at 2 and 10 s is relatively large. It is noted that the vehicle will be unstable at these two moments when steering quickly at a high speed. In other words, the working area of the tire is shifted, which weakens the axle cornering characteristic and changes the steering characteristic of the vehicle (Zhang et al., 2014), resulting in a larger error.
To further demonstrate the accuracy of the proposed UKF-based vehicle states estimation method, the mean absolute percentage error (MAPE) (Ma et al., 2016), a statistical index which can express the estimation error as a percentage, is given as below:
where x∗(k) is the exact value of the vehicle state at moment k, which is the state value estimated by CarSim software in this paper; is the estimated value of UKF at moment k, that is, the posterior state value obtained by Eq. (22); N is the number of state values of the vehicle.
The MAPE of UKF and EKF on β, r, vx, and ay under the sine manoeuver test, Case I, and Case II are shown in Table 2, and the average errors of the proposed UKF-based method and traditional EKF are displayed in Fig. 17.
As shown in Table 2, the MAPEs of UKF on β, r, and vx are all around 1 % and lower than that of EKF under the three kinds of conditions, while the MAPE of ay is so small that it can be ignored. In addition, the average error of the proposed UKF-based estimation method displayed in Fig. 17 was lower far from these of the EKF, which implies that the proposed UKF-based estimation method can keep a better overall accuracy than EKF when estimating the driving states of vehicles.
In this paper, we proposed a type of UKF-based vehicle driving state estimation method with higher accuracy. First, a 3-DOFs vehicle dynamics model is established, and then a vehicle driving state estimation method is designed based on the UKF algorithm. Finally, by using CarSim and MATLAB/Simulink software, the co-simulation and validation are carried out to validate the accuracy of the proposed estimation method under the sinusoidal and fishhook conditions. Several highlights of this work are given below.
-
A complete UKF-based co-estimation method is proposed to predict the values of β, r, vx, and ay for a ground vehicle by combining CarSim and MATLAB/Simulink software.
-
Through the co-simulation and validation, we obtain that the average errors of β, r, vx, and ay with our proposed UKF-based estimation approach are, respectively, reduced by about 94 %, 92 %, 67 %, and 97 % in comparison with those with the EKF-based approach. The simulation results validate that the proposed co-estimation method can well predict the driving states of vehicles with higher accuracy.
In the future works, we would like to focus on the research of the adaptive UKF-based estimation method and try to use the adaptive algorithm to reduce the impacts of noise covariance on the accuracy of the desirable estimation method.
The state matrices of state-space Eq. (8):
All the data used in this paper can be obtained from the corresponding author upon request.
PW was responsible for the conceptualization, methodology and writing of the original draft. HP was responsible for supervision and writing, review and editing. ZX and JJ performed investigation and data curation.
The authors declare that they have no conflict of interest.
This article is part of the special issue “Robotics and advanced manufacturing”. It is not associated with a conference.
This research has been supported by the National Natural Science Foundation of China (grant nos. 51675423 and 51305342) and the Primary Research & Development Plan of Shaanxi Province (grant no. 2017GY-029).
This paper was edited by Haiyang Li and reviewed by two anonymous referees.
Heidfeld, H., Schünemann, M., and Kasper, R.: Experimental Validation of a GPS-Aided Model-Based UKF Vehicle State Estimator, 2019 IEEE International Conference on Mechatronics (ICM), Ilmenau, Germany, 537–543, https://doi.org/10.1109/ICMECH.2019.8722942, 2019.
Katriniok, A. and Abel, D.: Adaptive EKF-Based Vehicle State Estimation With Online Assessment of Local Observability, IEEE T. Contr. Syst. T, 24, 1368–1381, https://doi.org/10.1109/TCST.2015.2488597, 2016.
Kim, D., Min, K., Kim, H., and Huh, K.: Vehicle sideslip angle estimation using deep ensemble-based adaptive Kalman filter, Mech. Syst. Signal Pr., 144, 106862, https://doi.org/10.1016/j.ymssp.2020.106862, 2020.
Kim, K. and Park, C. G.: Non-symmetric unscented transformation with application to in-flight alignment, Int. J. Control Autom., 8, 776–781, https://doi.org/10.1007/s12555-010-0409-z, 2010.
Li, J., Zhang, J. X., Zhang, Y. H., and Chen, L. J.: Estimation of vehicle state and parameter based on strong tracking CDKF, Journal of Jilin University (Engineering and Technology Edition), 47, 1329–1335, https://doi.org/10.13229/j.cnki.jdxbgxb201705001, 2017 (in Chinese).
Li, L., Jia, G., Ran, X., Song, J., and Wu, K.: A variable structure extended Kalman filter for vehicle sideslip angle estimation on a low friction road, Vehicle Syst. Dyn., 52, 280–308, https://doi.org/10.1080/00423114.2013.877148, 2014.
Li, X. Y., Xu, N., and Guo, K. H.: Vehicle Sideslip Angle Estimation Based on Fusion of Kinematic Method and Kinematic-geometry Method, J. Mech. Eng., 56, 121–129, https://doi.org/10.3901/JME.2020.02.121, 2020 (in Chinese).
Liu, W., He, H. W., and Sun, F. C.: Vehicle state estimation based on Minimum Model Error criterion combining with Extended Kalman Filter, J. Frankl. Inst., 353, 834–856, https://doi.org/10.1016/j.jfranklin.2016.01.005, 2016.
Ma, B., Liu, Y., Gao, Y., Yang, Y., Ji, X., and Bo, Y.: Estimation of vehicle sideslip angle based on steering torque, Int. J. Adv. Manuf. Tech., 94, 3229–3237, https://doi.org/10.1007/s00170-016-9426-2, 2018.
Ma, Z. Y., Ji, X. W., Zhang, Y. Q., and Yang, J. Z.: State estimation in roll dynamics for commercial vehicles, Vehicle Syst. Dynam., 55, 1–25, https://doi.org/10.1080/00423114.2016.1262049, 2016.
Naets, F., Van Aalst, S., Boulkroune, B., Ghouti, N. E., and Desmet, W.: Design and Experimental Validation of a Stable Two-Stage Estimator for Automotive Sideslip Angle and Tire Parameters, IEEE T. Veh. Technol., 66, 9727–9742, https://doi.org/10.1109/TVT.2017.2742665, 2017.
Piyabongkarn, D., Rajamani, R., Grogg, J. A., and Lew, J. Y.: Development and Experimental Evaluation of a Slip Angle Estimator for Vehicle Stability Control, IEEE T. Contr. Syst. T., 17, 78–88, https://doi.org/10.1109/TCST.2008.922503, 2009.
Reina, G., Paiano, M., and Blanco-Claraco, J. L.: Vehicle parameter estimation using a model-based estimator, Mech. Syst. Signal Pr., 87, 227–241, https://doi.org/10.1016/j.ymssp.2016.06.038, 2017.
Selmanaj, D., Corno, M., Panzani, G., and Savaresi, S.: Vehicle sideslip estimation: A kinematic based approach, Control Eng. Pract., 67, 1–12, https://doi.org/10.1016/j.conengprac.2017.06.013, 2017.
Song, Y., Shu, H., Chen, X., Jing, C., and Guo, C.: State and Parameters Estimation for Distributed Drive Electric Vehicle Based on Unscented Kalman Filter, J. Mech. Eng., 56, 204–213, https://doi.org/10.3901/JME.2020.16.204, 2020 (in Chinese).
Strano, S. and Terzo, M.: Constrained nonlinear filter for vehicle sideslip angle estimation with no a priori knowledge of tyre characteristics, Control Eng. Pract., 71, 10–17, https://doi.org/10.1016/j.conengprac.2017.10.004, 2018.
Yamamoto, M., Koibuchi, K., Fukada, Y., and Inagaki, S.: Vehicle stability control in limit cornering by active brake, JSAE Rev., 16, 323, https://doi.org/10.1016/0389-4304(95)95150-S, 1995.
Zhang, X. L., Chen, B., Song, J., and Wang, Q. Y.: Test Method Research on Vehicle's tire sideslip angle in extreme driving condition, Chinese Society of Agricultural Machinery, 45, 31–36, https://doi.org/10.6041/j.issn.1000-1298.2014.09.006, 2014 (in Chinese).
Zhang, Z. Y., Zhang, S. Z., Huang, C. X., Zhang, L. Z., and Li, B. H.: State Estimation of Distributed Drive Electric Vehicle Based on Adaptive Extended Kalman Filter, J. Mech. Eng., 55, 156–165, https://doi.org/10.3901/JME.2019.06.156, 2019 (in Chinese).
Zhou, W. Q., Qi, X., Chen, L., and Xu, X.: Vehicle State Estimation Based on the Combination of Unscented Kalman Filtering and Genetic Algorithm, Automot. Eng., 41, 198–205, https://doi.org/10.19562/j.chinasae.qcgc.2019.02.012, 2019 (in Chinese).
Zong, C. F., Pan, Z., Hu, D., Zheng, H. Y., Xu, Y., and Dong, Y. L.: Information Fusion Algorithm for Vehicle State Estimation Based on Extended Kalman Filtering, J. Mech. Eng., 45, 272–277, https://doi.org/10.3901/JME.2009.10.272, 2009 (in Chinese).
- Abstract
- Introduction
- 3-DOFs vehicle dynamics modeling
- State estimation of vehicles based on UKF
- Co-estimation and validation based on CarSim and MATLAB/Simulink
- Conclusions and future work
- Appendix A
- Data availability
- Author contributions
- Competing interests
- Special issue statement
- Financial support
- Review statement
- References
- Abstract
- Introduction
- 3-DOFs vehicle dynamics modeling
- State estimation of vehicles based on UKF
- Co-estimation and validation based on CarSim and MATLAB/Simulink
- Conclusions and future work
- Appendix A
- Data availability
- Author contributions
- Competing interests
- Special issue statement
- Financial support
- Review statement
- References