This application is based upon and claims priority to Chinese Patent Application No. 202310268376.X, filed on Mar. 17, 2023, the entire contents of which are incorporated herein by reference.
The present invention belongs to the technical field of vehicle signal filtering and state estimation, and relates to a filtering framework for signal restoration.
With the ever-improving intelligence and the electric degree of the vehicle system, the noise reduction method for the vehicle data is the concerns of more and more scholars. The traditional method for processing the vehicle data mainly includes low-pass filtering, high-pass filtering, band-pass filtering and the like, all of which can play a very significant role in data noise reduction. However, peak information of the data is usually lost while the smoothness of the data is improved.
Due to the driving characteristics of the vehicle and the road characteristics, the vehicle data shows certain sparsity, and the effect of the above filtering methods on the sparse data needs to be improved. Total variation denoising (TVD) is a filtering method developed for sparse data, which converts filtering into an optimization problem by establishing an objective function, thereby implementing filtering of sparse data. The current vehicle data filtering methods mainly have the following problems:
(1) The traditional filtering method is difficult to retain the peak information of the data while improving the data smoothness and denoising, but the peak information of the data plays very important roles in determining the safety threshold of the vehicle and identifying the vehicle state; and
(2) The TVD filtering method is very suitable for noise reduction processing of sparse data, but because the signal intensity and the noise level of the data change in real time in the process of data generation, and particularly, the data characteristics under an extreme working condition have a large difference with the general working condition, how to evaluate the difference of the working condition and the method for achieving adaptive filtering for the local characteristics of the vehicle system data are generally lacked in the current filtering methods.
The method of the present invention is mainly based on the global noise level characteristic and the local intensity change characteristic of the vehicle system state data, and adaptive filtering of parameters is achieved by means of a total variation denoising (TVD) filtering method. The method is characterized in that a Teager-Kaiser energy evaluation method is used to evaluate the noise level of a signal, noise reduction processing is performed on the signal by setting a noise index threshold & and an arithmetic mean filter mode, and the case that the signal has a good noise level when an energy-based adaptive parameter is solved is guaranteed. Then, the energy-based adaptive parameter of the signal is solved, and in combination with a noise-based adaptive parameter, an optimization problem is constructed. The optimization problem is solved to obtain a filtered signal, the signal is denoised to the maximum extent, peak information of the signal is retained while the data smoothness is maintained, and then the signal is used for vehicle state estimation, working condition identification and the like.
Provided is a vehicle state estimation method based on adaptive total variation denoising (TVD) filtering, which includes the following steps:
firstly, for a typical working condition of a vehicle test, collecting, by using sensors, a vehicle speed, an acceleration, a wheel speed, a yaw rate, a motor torque data, etc. of the vehicle, meanwhile, solving a first-order difference ƒ1 of a signal p, wherein a solving formula is ƒ1(n)=|p(n)−(n−1)|, and providing a data source for the subsequent steps 2, 3 and 4;
calculating a second-order difference ƒ2 of the signal according to the first-order difference ƒ1 of the signal in the step 1, wherein a calculation formula is ƒ2(n)=|ƒ1(n)−ƒ(n−1)|, performing noise level evaluation on the signal based on the second-order difference ƒ2 of the signal, wherein an evaluation formula is
acquiring a noise-based adaptive parameter Ke(n), and providing a weight coefficient for a smoothness constraint term in the optimization problem in the step 4; and
according to the second-order difference 12 of the signal in the step 2.1, solving In=AVG(|ƒ2|) to obtain a noise index In; setting a threshold ε, when the noise index In of the signal is greater than the threshold ε, performing arithmetic mean filter on the signal, and then re-executing the step 2.1; and if the noise index of the signal is smaller than the threshold ε, directly entering the step 3;
according to the signal subjected to the noise level evaluation in the step 2 and having the noise threshold ε, comprehensively evaluating an amplitude effect and an instantaneous frequency of the signal by using a Teager-Kaiser energy evaluation method, constructing an energy-based adaptive parameter
according to a Teager-Kaiser energy value TKE(ƒ1), and also providing the weight parameter for the signal smoothness constraint term in the optimization problem in the step 4;
constructing the optimization problem according to the first-order difference ƒ1 of the signal in the step 1, the noise-based adaptive parameter K, in the step 2 and the energy-based adaptive parameter Ke(n) in the step 3, and solving the optimization problem to obtain the filtered signal:
wherein y is the filtered signal; K is a regularization parameter; a first term of the formula is a signal fidelity penalty, a second term is a signal smoothness penalty, and the regularization parameter K is used for achieving the balance between signal fidelity and signal smoothness;
wherein the steps 1-4 are key innovation points of the present invention; and
Specifically, the step 5 is described with the application example of estimating the road slope angle:
Firstly, a state vector x is constructed based on a vehicle state signal y and the original signal of the vehicle required by a vehicle keyboard in the step 1, and parameter initialization setting of a Kalman model is completed.
The model state is predicted according to a state equation of the vehicle system, wherein the state equation is as follows:
wherein {circumflex over (x)}k−1 is an optimal estimation of the system state at moment k−1; {tilde over (x)}k is a system parameter predicted value at moment k; A is a process matrix; uk−1 is a control variable at moment k−1, B is a control matrix; wk−1 is process noise and is usually set as white Gaussian noise for a variance Q.
A covariance matrix
wherein Pk−1 is a covariance for the optimal state estimation at moment k−1.
A Kalman gain is calculated, and the calculation formula is as follows:
wherein H is a measurement matrix; R is a variance for measuring white noise vk−1.
The state {circumflex over (x)}k is updated, and the calculation formula is as follows:
wherein zk represents a measurement variable.
A covariance matrix Pk of the measurement process is updated, and the update formula is as follows:
The vehicle state {circumflex over (x)}k is output to complete the vehicle state estimation process, and meanwhile, the vehicle state {circumflex over (x)}k and the covariance matrix Pk are output to the step 5.2 for cyclic execution.
The technical solutions provided in the present application will be further described with reference to the following specific examples and the accompanying drawings. The advantages and characteristics of the present application will become more apparent in light of the following description.
Practical mass production vehicles are limited by considerations such as cost, reliability of sensor performance, and the like, with limited numbers and types of sensors. And because of the special configurations of the sprung mass, the suspension and the unsprung mass of the vehicle, the states of a plurality of vehicles cannot be directly measured, and in this case, the state parameters need to be indirectly estimated according to reliable vehicle dynamics parameters through a vehicle dynamics model.
In the present invention, it is assumed that the intrinsic parameters (mass, dimensional parameters, etc.) of the vehicle are known, and the input of the vehicle dynamics parameters by the sensors is relatively complete, so it is necessary to estimate the road slope angle based on the acceleration of the vehicle. The reliability of the acceleration is of vital importance, and if the noise caused by the acceleration is too large, the accuracy and the reliability of the estimation of the slope angle are directly influenced, and the actual control performance of the vehicle is further influenced.
The method specifically includes the following steps:
Firstly, the gravity G and the mass m of the vehicle and a sampling duration for the signal Δt are measured and recorded.
During the road slope angle estimation, the input vehicle measurement parameters are the vehicle longitudinal acceleration ax and the longitudinal speed νx. The longitudinal speed νx signal is relatively stable, and only simple filtering operation is needed; the longitudinal acceleration ax sensor has relatively large noise, is a typical piecewise constant signal, and is very suitable to be filtered by using a total variation method, and the accuracy of the value has great influence on the effectiveness of the vehicle dynamics model. Therefore, the longitudinal acceleration ax is selected as a filtering object, and the first-order difference ƒ1 thereof is obtained by solving, so as to complete the preprocessing process, providing a data source for the filtering processes in the steps 2, 3 and 4.
A second-order difference ƒ2 of the signal is solved according to the first-order difference ƒ1 of the signal in the step 1.
Noise level evaluation is performed on the signal based on the second-order difference of the signal to obtain a noise-based adaptive parameter Kn, providing a weight coefficient for a smoothness constraint term in the optimization problem in the step 4.
A noise index In is solved according to the second-order difference ƒ2 of the signal obtained from the noise level evaluation in the step 2.1.
wherein AVG represents an averaging function.
To ensure that the noise level of the signal is within an acceptable range for further operation, a noise index threshold ε is set. If the noise index exceeds the threshold range, arithmetic mean filter is required to be performed on the signal until the noise index is smaller than the threshold, and then the step 2.1 is re-executed. When the noise index meets the threshold range, it is indicated that the noise evaluation step is completed, and then the step 3 and subsequent operations can be executed.
Compared with the traditional signal energy evaluation method, Teager-Kaiser energy evaluation can comprehensively evaluate the amplitude effect and the frequency characteristic of the signal. The Teager-Kaiser energy is solved according to the first-order difference ƒ1 of the longitudinal acceleration ay obtained in the step 1:
wherein TKE(*) represents a Teager-Kaiser operator.
The Teager-Kaiser energy of the signal is solved in the step 3.1, and an energy-based adaptive parameter is constructed in the step.
In practical application, in order to prevent the situation of no solutions in the calculation process, a minimum constant δ is added at the position of the denominator of the above formula, then
According to the original vehicle longitudinal acceleration signal ax obtained in the step 1, wherein it is assumed that x=ax, the noise-based adaptive parameter
obtained in the step 2, and the energy-based adaptive parameter
obtained in the step 3, the optimization problem can be constructed based on a TVD process:
wherein y is the filtered signal; K is a regularization parameter; the first term of the formula is a signal fidelity penalty, the second term is a signal smoothness penalty, and the regularization parameter K is used for achieving the balance between signal fidelity and signal smoothness.
The filtered signal y in the step 4 is taken as an input of “estimating the road slope angle”, and the estimation of the slope angle is performed by using a kalman method, which is considered as an example application in the vehicle state estimation.
The method specifically includes the following steps:
According to the signal y obtained in the steps 1-4 after the vehicle longitudinal acceleration ax filtering is performed, the selected longitudinal speed νx of the vehicle and a sine value sinα of the road slope angle, a state vector is constructed as follows:
According to the vehicle intrinsic parameters in the step 1, based on the vehicle dynamics principle, the relationship between the longitudinal acceleration ax, the road slope angle value α and the derivative νx of the longitudinal speed as measured by the sensors can be obtained as follows:
Then for the sampling duration Δt of the signal, the state transition equation for the system can be written as follows:
wherein w1(k−1), w2(k−1) and w3(k−1) are process noise for three state vectors, respectively, and can be set as white Gaussian noise.
wherein the process matrix is set as
the process noise matrix is represented as
wherein Q is a covariance matrix for the process noise.
In the example, a measurement vector zk is constructed mainly for the longitudinal acceleration ax and the longitudinal speed νx of the vehicle, so an observation equation can be written as follows:
wherein νk is a measurement noise matrix, and can be set as white Gaussian noise;
is a measurement matrix.
(1) A Kalman gain is calculated, and the calculation formula is as follows:
wherein H is the measurement matrix; R is a covariance matrix for the measurement noise νk.
(2) The state {circumflex over (x)}k is updated, and the calculation formula is as follows:
wherein zk represents a measurement variable.
(3) A covariance matrix Pk of the measurement process is updated, and the update formula is as follows:
The vehicle state {circumflex over (x)}k=[{circumflex over (ν)}x(k)âx(k) sin{circumflex over (α)}(k)] is output, including an estimated value {circumflex over (α)} of the road slope angle, so as to complete the estimation of the road slope angle, and meanwhile, the vehicle state {circumflex over (x)}k and the covariance matrix Pk are output to the step 5.2 for cyclic execution.
The above description is only illustrative of the preferred examples of the present application and is not intended to limit the scope of the present application in any way. Any changes or modifications of the technical contents disclosed above by those of ordinary skills in the art should be considered as equivalent effective examples, and all of the changes or modifications should fall within the protection scope of the technical solutions of the present application.
Number | Date | Country | Kind |
---|---|---|---|
202310268376.X | Mar 2023 | CN | national |