1. Introduction
Process and measurement noise estimation is a task worthy of attention, and it has wide applications in many fields, such as battery condition estimation, multifrequency signal estimation, oil seismic exploration, and image processing [
1,
2,
3,
4,
5]. Based on error covariance-matrix information, the process white noise estimator was proposed by theKF approach [
4]. G. Z. Dai and J. Mendel pioneered the study of white noise estimation with application in oil exploration [
6]. For the linear discrete time-varying stochastic system (multi-model and multi-sensor), the optimal weight fusion Kalman estimator and white noise deconvolution were given, respectively [
7]. A unified white noise estimate theory based on a modern time series analysis approach was presented, which included a process and measurement white noise estimator design, and proposed a new approach for steady-state optimal state estimation [
8]. For linear discrete-time non-Gaussian systems, according to the polynomial filtering theory, a solution to the quadratic estimation problem of non-Gaussian noise was given in [
9]. H. Zhao and Z. Li presented a novel Kalman-like nonlinear non-Gaussian noise estimation method based on the packet dropout probability distribution and polynomial filtering technique [
10]. W. Liu and Z. Deng solved the design problem of robust white noise deconvolution estimators for a class of uncertain systems with missing measurements, uncertain noise variances, and linearly correlated white noises [
11]. The innovation method for the linear least squares estimation problem was extended by T. Kailath to deal with nonstationary continuous time processes on the finite time domain [
12]. The nonlinear system is approximated to the linear system by real-time linear Taylor approximation; EKF is designed based on KF. This is the idea of the EKF, which was originally proposed by Stanley Schmidt, so that the Kalman filter could be applied to nonlinear spacecraft navigation problems [
13]. It can be seen from the above discussion that the research on white noise estimation of linear systems has been relatively mature, but there are few studies on the white noise estimation of nonlinear systems; reports on the white noise estimation of continuous discrete hybrid nonlinear systems are even less.
In recent years, state estimator designs for nonlinear system have been actively researched [
14,
15], and the second-order EKF was better than the first-order EKF in this area [
16,
17]. D. Simon presented the continuous-discrete system EKF (also called hybrid system EKF) [
18]. M. De la Sen and N. Luo dealt with the design of linear observers for a class of linear hybrid systems. Moreover, such systems were composed of continuous-time and digital substates [
19]. In order to solve the estimation problem of continuous-discrete linear systems with parametric uncertainties, V. Shin, D. Y. Kim et al. proposed a novel suboptimal filter by summing the local KF with weights, depending only on time instants [
20]. For nonlinear hybrid stochastic systems, G.Y. Kulikov and M.V. Kulikova Gennady proposed a novel square root algorithm in order to solve the lack of square root implementation within the high-degree cubature KF [
21]. In [
22], the authors presented the derivation of the dynamical equations of a second-order filter, which estimated the states of the nonlinear system on the base of discrete noisy measurements. For the state of charge estimation of the lithium-ion battery in the linear hybrid systems, the authors of [
23] proved that the second-order EKF could improve the estimation effect compared with the first-order EKF. Y. Wang and H. Zhang proposed the accurate Gaussian sum-smoothing method, which was derived by extended-cubature Kalman filters to approximate the non-Gaussian estimation densities as a finite number of weighted sums of Gaussian densities [
24].
To the authors’ knowledge, the study of white noise estimation based on second-order EKF for hybrid systems has not been reported. Thus, we discuss the second-order EKF-based white noise estimation problem for a nonlinear hybrid system in this paper. The estimation problem is aimed to minimize a symmetric loss function (mean square error). By the second-order Taylor series expansion approximation, the function that makes the second-order term approximately equivalent to the estimation error variance and projection formula, and the second-order EKF formula, are derived. The Lemmas of expectation for quadratic and quartic product traces of random vectors are proved in detail by using the knowledge of probabilistic property analysis. Then, the continuous process white noise estimator and the discrete measurement white noise estimator are calculated by the Riccati equation, respectively. The main contributions of this paper are as follows: (i) to the best of our knowledge, the process and measurement white noise estimators of second-order EKF for continuous-discrete systems are presented, for the first time. (ii) The results of this paper enrich the traditional theory of white noise estimation and could directly extend to discrete nonlinear systems or continuous nonlinear systems. (iii) The white noise estimation algorithm for hybrid systems, proposed in this paper, is actually a symmetric solution to the fault estimation problem of such systems, under the assumption that the fault signal is white noise. Therefore, the proposed algorithm can be used for fault estimation of hybrid systems under the assumption that the fault signal is white noise.
The rest of this paper is organized as follows. 
Section 2 introduces some preparations of the second order Taylor expansion approximate for nonlinear hybrid systems, and presents the problem description. 
Section 3 presents the state estimation of the second-order EKF for systems, with continuous-time system dynamics and discrete-time measurements, and proposes the process and measurement white noise estimator by projection formula. 
Section 4 compares the performances of white noise estimations for first-order and second-order EKFs, using an example. Finally, we summarize the research results.
Notation 1.  The superscripts ‘−1’ and ‘’ stand for the inverse and transpose of a matrix, respectively.denotes the expectation operator.is the Kronecker delta function,forand.denotes the-dimensional Euclidean space. For a real matrix,(, respectively) means thatis symmetric and positive (negative, respectively) definite.is an integer ceiling function, which is the largest integer not exceeding t.denotes the covariance ofand.
   2. Materials and Methods
Let us consider the hybrid system with continuous-time system dynamics and discrete-time measurements:
      where 
 and 
 are nonlinear functions, 
 is the continuous-time index, 
 is a finite interval on the real line. 
 is the unknown system state, 
 is the system measurement, the process noise 
 is continuous-time white noise, and the measurements noise 
 is discrete-time white noise.
Assumption 1.  The variablesandare sequences of Gaussian random vectors with zero-means and covariance matrices, as followsit is assumed thatandare positive definite, and thatandare uncorrelated.  Assumption 2.  The initial stateis unknown and uncorrelated toandthat satisfies  Then, we consider only the expansion around a nominal 
. The second-order Taylor expansion around 
 versus 
 is:
      where 
 is the dimension of the state vector, 
 is the 
th element of 
, and the 
 vector is defined as an 
 vector with all zeros, except for a one in the 
th element.
The quadratic term in Education (2) can be written as
      
Assumption 3.  If we replace the value ofin the Equation (3) with its expected value, we obtainwhereis the variance of the estimation error as.
  Evaluate Equation (2) at 
, and substitute Equations (4) and (2) into (1), the time-update equation of 
 is obtained as
      
      the time-update equation of 
 remains the same as in the standard hybrid EKF as shown the following:
      where 
 and 
 are the first partial of 
 and 
 at 
.
Problem 1.  In this paper, the problem is to find the linear minimum variance estimation of the process and measurement noise of a class of continuous-discrete systems. Throughout this paper, we denoteandas a linear function based on measurement sequenceandthat minimize the mean-squared estimation error.
 Remark 1.  Similar to the KF case, the second-order EKF-based process white noise estimatoris a filter whenand a smoother when. In the same way, the second-order EKF based measurement white noise estimatoris a filter whenand a smoother when.
   3. Numerical Analysis Results
In this section, we design the white noise estimator based on the second-order approximation of the hybrid nonlinear system.
Suppose that the filtering update equation for the state estimate is given as
      
      where 
 is the filtering gain, which is chose to minimize the trace estimation of variance. Moreover, 
 is a correction term, so that the estimate 
 unbiased.
We define the state estimation errors as follows
      
We can see from Equations (1) and (7) that
      
Now, the second-order Taylor series expansion of 
 around the nominal point 
 is performed to obtain
      
      where 
 is defined as 
, 
 is the dimension of the measurement vector, 
 is the 
th element of 
, and 
 is defined as an 
 matrix, whose elements are all zero, except for a one in the 
th element. Substituting Equation (9) into (8), then we have the filtering estimate error 
 as
      
      where 
 is defined as
      
Taking the expected value of both sides of Equation (10), and assuming that 
, we can see that, in order to satisfy
, we must let
      
Define the filtering variance matrix 
 as
      
      and using the Equation (8), it can be derived by using the following Lemma 1.
      
      where the matrix 
 is defined as
      
Let us give a useful probability Lemma.
Lemma 1.  Suppose we have the n-element random vector, then  Further, we define a cost function 
 that minimize as a weighted sum of estimation errors:
The 
 that minimizes this cost function can be computed as
      
From the projection theorem and Equation (7), we derive the following formulas:
By substituting (17) into (11), we have
      
We rewrite 
 as the double summation
      
      where the element in the 
th row and 
th column of 
 is given by
      
To calculate (19), we introduce the following Lemma.
Lemma 2.  Suppose we have the n-element random vector, then  According to Lemma 2 and Equation (19), we have
      
  3.1. The Process White Noise Estimator of Hybrid Nonlinear System
Theorem 1.  Given system (1) with Assumptions 1–3, and Problem 1, the process white noise estimator r is calculated bywhereis the integer ceiling function of, and,is given as  Proof of Theorem 1.  Let 
 is the projection of 
 onto set 
 that minimizes the mean-square error 
, where 
 is the measurement. If we consider the discrete-time measurements, we can replace 
, 
 by 
. In order to calculate 
 using the projection formula, an innovation sequence is introduced and 
 is given as
        
        where 
 is the projection of 
 onto the linear space 
.
Further, in view of Equations (1) and (9), it follows from (23) that
        
Note that 
 is the projection of 
 onto the linear space 
 by using projection formula, 
 is given by
        
Let us think about the first part to the right of the equal sign of Equation (25), using Equation (24), we obtain
        
        where
        
        by considering (2), (5), and (10), it follows that
        
Noting  is uncorrelated with , the term  can be derived from Equation (13) in Lemma 1 and taking differential on both sides of (22) with , Equation (22) follows directly from the definition of  and (27).
That is all the proof. □
   3.2. The Measurement White Noise Estimator of Hybrid Nonlinear System
Theorem 2.  Given system (1) with Assumption 1, Assumption 2, Assumption 3, and Problem 1, the measurement white noise estimatoris given by the following formula.whereis the difference of white noise estimation by EKF, andis given as  Proof of Theorem 2.   is the projection of 
 onto the linear space 
 where 
 is the measurement. In order to calculate 
 using the projection formula, let us calculate 
 first.
        
        since 
 is uncorrelated with the innovation 
 for 
, and combining Equation (13) in Lemma 1, we obtain
        
Note that 
 is the projection of 
 onto the linear space 
 by using projection formula and Equation (30), 
 is given by
        
        where
        
Further, the recurrence formula for 
 is derived
        
That is all the proof. □
 According to the theoretical derivation of Theorem 1 and Theorem 2, we can use a flowchart to represent the white noise estimation algorithm in the following 
Figure 1, where 
 represent time, smoothing step of process noise, smoothing step of measurement noise, and end time, respectively.
Remark 2.  The algorithm flow inFigure 1can be described as follows: Step 1:Set,,,,and.
Step 2:If, go to Step 3; If, exit.
Step 3:Calculateby Taylor expansion.
Step 4:Calculateby Taylor expansionand (19).
Step 5:Integrate (5) and (6) from timeto time, obtain theand.
Step 6:Calculateby (17), then compute ,using (16), (18).
Step 7:If, calculateby (21).
Step 8:If, calculateby (28).
Step 9:Set, then go to Step 2.
   4. Numerical Simulation
In this section, the first-order EKF and second-order EKF white noise estimators are compared by a numerical simulation; the advantages of the proposed algorithm is verified. Suppose the nonlinear continuous-discrete system (1) is as follows:
      where the process noise vector 
 and measurement noise 
 are uncorrelated zero-mean Gaussian white noises with variances 
, and 
.
In this numerical simulation, we compare our algorithm with first-order EKF white noise estimators by setting that 
, 
 and the sampling period is 0.01s. We take 50 sampling periods to draw 
Figure 2, 
Figure 3, 
Figure 4 and 
Figure 5. According to Theorem 1, the filtering algorithm cannot achieve the process noise estimate. Therefore, in 
Figure 2, we use one-step smoothing algorithm to estimate the process noise. 
Figure 2 shows the true value of process white noise 
and its one-step smoothing of two methods. 
Figure 3 shows the true value of process white noise 
 and its three-step smoothing of two methods. 
Figure 4 shows the true value of measurement white noise 
 and its filtering of two methods. 
Figure 5 shows the true value of measurement white noise 
 and its three-step smoothing of two methods. From 
Figure 2 to 
Figure 5, it is shown that the white noise estimators based on the first-order EKF fluctuates greatly, while the estimator based on second-order EKF have higher estimation accuracy. In other words, the second-order EKF white noise estimators are better than the first-order EKF white noise estimators. Moreover, it can be seen that the process noise estimation is affected by the discrete observation equation, and loses some information. Therefore, the estimation effect is not as good as the measurement noise estimation. The measurement noise estimation will gradually approach the real curve with the update of time. Moreover, we take 50 sampling periods to calculate the error loss value of two different methods. Taking the mean square error (MSE) as the evaluation index, the loss value is shown in 
Table 1.