Abstract
This paper aims to develop a continuousdiscrete finite memory observer (CDFMO) for a class of nonlinear dynamical systems modeled by ordinary differential equations (ODEs) with discrete measurements. The nonlinear systems under consideration are at least locally Lipschitz, which guarantees the existence and uniqueness of solution at each time instant. The proposed nonlinear observer uses a finite number of collected measurements to estimate the system state in the presence of measurement noise. Besides, a onestep prediction algorithm incorporated with an iterativeupdate scheme is performed to solve the integral problem caused by system nonlinearity, and an analysis of the numerical integration approximation error is given. The properties of estimation performance have been further proved in deterministic case and been analyzed by Monte Carlo simulation in stochastic cases. It is worth noting that the presented method has a finitetime convergence, while most nonlinear observers are usually asymptotically convergent. Another advantage of CDFMO is that it has no initial value problem. For the application purpose, residuals are generated to implement fault detection cooperated with Cumulative Sum (CUSUM) control charts, while a bank of CDFMOs is adopted to realize fault isolation for different sensor and actuator faults of the considered nonlinear robotic arm. The robustness and effectiveness of the proposed approach are illustrated via the simulation results.
1. Introduction
Over past decades, it was noticed that state estimation, especially observer, plays an important role in the modern control theory and practice [1–3]. As the real engineering systems became more and more complex, the corresponding growing demand of observer design for complex nonlinear systems have gained increasing consideration. The pioneer works can be traced to [4, 5], which represents the major pseudolinear techniques nowadays. However, in order to well ensure the existence of the coordinate transformation in these approaches, the established conditions are extremely difficult to satisfy in practice [6]. In the meantime, numerous system nonlinearities can be regarded as globally Lipschitz or at least locally [7]. Hence, there also exist several methods which focus on developing the observers directly based on the original nonlinear Lipschitz systems by solving linear matrix inequalities (LMIs) under certain assumptions or using the high gain observer [6–9]. As we knew that the dynamics of most engineering systems are naturally continuous [10], e.g., trajectories of vehicles and flow of electric current, it is more convenient and accurate to model the physical processes in continuous time with nonlinear differential equations. Meanwhile, observations are usually taken at discrete time instants when using digital sensors. For this reason, there is a significant amount of observer designs that has been investigated in the literature based on continuousdiscrete modeling [3, 8, 11, 12].
Observerbased method has also been widely used in fault detection and isolation (FDI) of many fields such as PEM fuel cell and heatexchanger/reactor system [13–15]. As examined in [16, 17], that modelbased diagnosis method will be affected with divergence due to the accumulation of modeling uncertainties. Furthermore, state estimation based on infinite memory (i.e., all the process history) may result in the insensitivity to recent measurements which might have the clues of a fault in incipient stage [18]. Thus, the corresponding researches like fading filter [19] and finite memory observer are naturally explored. Finite memory observer (FMO) was first proposed by Medvedev [20] for linear system in the deterministic framework, which indicates that this observer is extremely efficient for state estimation. Afterwards, the robustness and sensitivity of this approach were addressed by Nuninger and Graton [18, 21]. Kratz et al. have then synthesized this observer in fault diagnosis of linear system [22] and hybrid system [23]. All these previous researches reveal that finite memory observer provides a great potential in state estimation as well as in fault diagnosis.
Therefore, the main contribution of this paper is that we develop a nonlinear continuousdiscrete finite memory observer (CDFMO) for a class of nonlinear Lipschitz system. It has been proven that the designed observer has a finitetime convergence and good robustness against measurement noise. Moreover, we also perform a rapid fault detection and an accurate fault isolation to a singlelink robotic arm by using the proposed nonlinear CDFMO in the presence of measurement noise.
The work of this paper is organized as follows: Section 2 introduces the statements of problem with considered continuousdiscrete nonlinear system. In Section 3, we present the construction of the proposed nonlinear CDFMO together with an iterativeupdate algorithm for numerically approximating integration due to the nonlinearity of system. In addition, we also give a detailed demonstration of the finitetime convergence. The criteria of how to choose the window length is also stated in this section. In Section 4, we apply our approach to a nonlinear statespace model of a singlelink robotic arm. A detailed analysis is provided with respect to selection of window length, estimation performance, numerical integration error analysis, and robustness analysis, respectively. In terms of application in fault diagnosis, different sensor faults and actuator fault, which are the two typical faults in actual physical system, have been illustrated in Section 5. Conclusions and the perspectives of future works are summarized in Section 6.
2. Problem Statement
We consider a class of continuousdiscrete nonlinear systems described by the following statespace equation:where , , and are continuous state vector, discrete measurement vector, and continuous input vector, respectively. is the sampling period of measurement (i.e., ). , , , and are known matrices. The nonlinearity is a nonlinear function with respect to state . is at least locally Lipschitz; that is,where Lipschitz constant . Vectors and represent Gaussian measurement noise and Gaussian process noise, respectively. And and are independent with the following properties:where is Dirac delta function and is Kronecker delta function. It should be noted that the continuousdiscrete systems like (1a) naturally exist when continuous process are measured via digital sensors. Without loss of generality, we are going to present a nonlinear observer design where the estimation instant is synchronized with the measurements instant since it is exactly what is needed under the background of diagnosis. The proposed CDFMO will be detailed in the next section.
3. ContinuousDiscrete Finite Memory Observer
In this section, the construction of the proposed continuousdiscrete finite memory observer for nonlinear systems (1a) is illustrated. Then the finitetime convergence has been proved theoretically. The selection of window length is stated at the end of this section. Before we start, we introduce the following remark first.
Remark 1. The authors in [24] have proven that the observability of a nonlinear dynamic system is a necessary condition and that there exists a finitetime observer for the system.
We are able to conclude from this remark that if we can build a finitetime observer for a nonlinear system, then this nonlinear system is observable.
3.1. Formulation of CDFMO
Suppose that at each frozen time instant , the discrete measurements are collected in the most recent time interval , where and . Here, is called window length. By using the square matrix exponential as a factor and integrating (1a), we can give the relation between the states in two different time instants and as follows:
Then, premultiplying (4) by the matrix and taking into account the measurement equation (1a) at time instant , we obtainwith
Applying (5) for each measurement in the time window , a finite number of augmented measurements can be expressed in terms of system state as in the following linear equation:where
It is straightforward that the noise component has zero mean; that is, . The variance matrix is block symmetric matrix in the following form:where the block elements with are calculated by
Now, the state estimation at time instant , that is, the solution of (7), can be obtained as follows in the sense of least squares:with
Let , and it can be seen that the existence condition of in (11) is given by the existence of matrix . This condition is then given by the rank of matrix ; that is, , which is guaranteed by the following hypothesis.
Hypothesis 1. (H1). The pair is observable.
According to (11) and (12a), we obtain the analytical form of state estimation for considered nonlinear systems (1a). The calculation of two integral terms and in (12a) is then detailed as follows.
3.1.1. Analytical Calculation of the Term
It is obvious to see from (6a) that all the elements contained inside the integral are known and it is easy to have an analytical solution by some useful software with symbolic computation such as Maple and Mathematica. If the mathematical expression of input is unknown, we can still get the solution by putting the element as a factor of integral under the assumption that is sampled as zeroorder hold and thus remains to be constant between two consecutive sampling instants, which is usually true since most controllers of actual systems are digital computers in practice.
3.1.2. Iterative Algorithm for Solving the Term
In order to compute , we might also note that it is impossible to have an exact analytical solution. Since we can explicitly see from (12b) that there is the term “” in the integral, in order to analytically calculate , we must know the exact trajectory of “” between instant and , which unfortunately is what we seek to know (via the estimation in (11)). Hence, in this paper, a onestep prediction together with iterativeupdate algorithm is designed to obtain the approximate solution of by NewtonCotes formulas [25].
In each time window , we define the measurement set and estimation set . It should be noted here that there is no case since all the elements in are obtained by previous window and is exactly what we aim to estimate by current window. Therefore, a onestep prediction of state at instant , noted as , has been performed by using the tangent slope with a small time interval as follows:
is then iteratively updated by (11) and (12a), which makes the finial estimation after all iterations. The termination condition of the iteration here is given in (14), which is either a threshold defined a priori for the error between two iterations or a threshold for the number of iterations :
Furthermore, the firstorder NewtonCotes formula, which yields trapezoidal rule, is employed in this paper to numerically approximate the integral term in (12a). For the purpose of reducing the massive computing burden in each iteration, we notice from (12b) that can be divided as follows:with
Letand we know that the previous estimation set is unchanged during each iteration of updating , which leads to by (17) unchanged. As a consequence, by (16a) also remains the same at each iteration. Therefore, as it is shown in Figure 1, we only need to recalculate the term in (15) at each iteration. In this way, the unnecessary calculation burden caused by iteration can be dramatically reduced when using NewtonCotes formulas to calculate the numerical integration.
For the sake of overall understanding, the summarized algorithm of the proposed nonlinear observer CDFMO is shown in Algorithm 1.

3.2. Estimation Property of the Presented CDFMO
Theorem 1. If nonlinear system (1a) satisfies the hypothesis H1, in the case of noisefree and faultfree, the property of estimation by presented CDFMO are unbiased as follows:
Proof. In the case of noisefree and faultfree, according to (1)–(7), the proposed CDFMO (11) can be rewritten for the deterministic case as follows:withand then, as stated in (5) and regardless of noise term , can be given asand by replacing the term in (19) by (21) and taking into account (20), we haveIn order to prove Theorem 1, we know that the following equivalence can be obtained directly:and from (22), together with the properties of matrix norm [26], the norm of can be therefore expressed as follows:According to (6b) and (12b) and hypothesis H1, (24) can be further derived asand then the Gronwall inequality [27] yieldsand hence,The proof is completed.
Remark 2. We can see from Theorem 1 that is always true when ; that is to say, we have the following conclusion:(1)The proposed CDFMO is a deadbeat observer in the case of noisefree and faultfree; the finitetime convergence is (one windowsize).(2)There is no estimation when . In other words, there is no initial value problem (IVP) for the presented nonlinear observer, which gives us another advantage for application in physics or other sciences.
3.3. Analytical Choice of the Window Length
As it is shown in (11) and (12a), at each time instant , the state estimation is related to the window length . Thus, it is necessary to interpret how to select an appropriate window length . Here, we are going to explain this by defining the “minimal length ” and “maximal length ”, as it has been shown in [18].
3.3.1. Minimal Length
The minimal window length is chosen to assure the existence of the proposed CDFMO by (11). As we have already discussed in subsection A of Section 3, this condition is then given by the rank of matrix ; that is, , which is already guaranteed by hypothesis H1. However, is just used to valid the hypothesis H1; it is definitely not the optimal window length, as shown in the latter section.
3.3.2. Maximal Length
Here it should be noticed that, theoretically speaking, there is no maximum window length for CDFMO. The greater the length , the better the estimation , which is reasonable since the amount of measurement information augments as the window length increases. However, after a certain size, the contribution of additional information by increasing window length is not significant enough to decrease estimation error. Therefore, in this paper, we take “the maximum eigenvalue of covariance matrix ” of estimation error as an indicator to select maximum window length . Given a selected threshold of estimation error tolerance , is defined as follows:which is the smallest window length when the largest eigenvalue of is smaller than error tolerance threshold . This part will be further analyzed in the next section with an illustrative example.
4. Illustrative Example: A SingleLink Robot
In this section, we consider a nonlinear singlelink robotic arm, which has an elastic joint rotating in a vertical plane [28]. The nonlinear statespace model is described here aswith . Here, components and are the displacement of link and rotor, respectively, while components and represent the velocity. The measurement noise and the process noise . The input control , which is the torque provided by the motor. All the other related matrices are given as follows:
The simulation scenario is performed according to the following parameters: elastic constant ; viscous friction coefficient , ; link mass ; the rotor inertia of motor and the link inertia ; mass center ; is gravity constant. The sampling period . The Lipschitz constant of the considered system is . The initial conditions for the robotic arm system is
4.1. Selection of Window Length
As shown in (28), we take “” as an indicator to select . It can be seen from Figure 2 that the maximum eigenvalue of is asymptotically convergent as window length increases, which indicates that the estimation performance provided by the presented CDFMO well improves while the window length augments. After window length , the decrease of the curve is much less significant, which is normal since few additional information can be provided by increasing the window length. This is also why the proposed observer is called “finite memory.” Nevertheless, starting from , the curve shows a slight trend of going up, which is a normal phenomenon because the approximation error of NewtonCotes formulas (used in (12a) for integral term ) will also get bigger as increases. In order to get a better diagnosis performance, we choose for all the analysis and diagnosis later in this paper, which is well between and .
4.2. Numerical Integration Approximation Error Analysis
In order to perform state estimate via (11), we choose trapezoidal rule to approximate the integral term in (12a), so it is necessary to give the approximation error bound. We recall the following lemma.
Lemma 1. Given a definite integral , the approximation error of trapezoidal rule is [25]
We can have the following expression of by rewriting (11) as follows:and together with (12b) and (17), we extract the integral term related to and noted asand we can see from that the calculation of approximation error by using trapezoidal rule can be divided into two steps:(i)Step 1: Calculate the upper approximation error bound with (ii)Step 2: Calculate cumulative error bound as varies in the summation
For Step 1, according to Lemma 1, the bound of approximation error can be described as follows:
And from expression (17), we can get the first and second derivatives of as follows:and we omit the details of how to calculate each item in in this paper. By calculating the norm of together with the parameters defined at the beginning of this section, we have
For Step 2, we can directly get the cumulative error bound as varies in the summation as follows:and meanwhile, the maximum element of standard deviation (SD) of measurement noise, noted as , is given by
It is obvious that , which means that the approximation error for numerical integration is drowned in measurement noise. As a result, we can conclude that our estimation is correct with window length .
4.3. State Estimation Performance
It can be clearly seen from Figure 3 that fourdimensional system state is reconstructed correctly under the presence of measurement noise and the proposed CDFMO provides great performance of state estimation. Besides, Figure 3 also depicts how the accuracy of state estimation gets much better as window length gets longer, which is another consistent result with respect to Figure 2.
(a)
(b)
(c)
(d)
4.3.1. Unbiased Estimation Property Analysis in Stochastic Case
As has been proved in Theorem 1 for the deterministic case, the unbiased estimation property of presented nonlinear observer under the presence of measurement noise,is evaluated by rootmeansquare error (RMSE) criteria together with Monte Carlo (MC) simulation, where RMSE is defined as and represents MC simulation times. The state estimation by running multiple MC simulation is therefore defined in the average sense: .
Let take the values 100 and 500, respectively. By taking the component as an example, it can be seen from Figure 4 that, during the MC simulations, the estimation upper and lower bounds of are quiet small, which means that the state estimation by proposed CDFMO varies within a small range around real state in the presence of measurement noise. Moreover, the estimation obtained by is closer to true value than the one by , which is logical since MC simulation performed a series of repeated random sampling of Gaussian measurement noise; the larger the sampling size is, the closer the mean value of noise is to zero.
The unbiased estimation property has also been examined by the RMSE with different in Figure 5. We can see that the RMSEs are close to zero; meanwhile, the RMSE of is smoother than the one . This means that the results obtained by two criteria are consistent.
(a)
(b)
(c)
(d)
To summarize what has been mentioned above, we have established by Monte Carlo simulation that state estimation given by the presented nonlinear observer CDFMO in the stochastic case is also unbiased; that is, . This property provides a good precondition for the fault diagnosis afterstep.
4.3.2. Robustness Analysis with respect to Measurement Noise
We are going to analyze the robustness of CDFMO against measurement noise through three scenarios shown in Table 1. Measurement noise varies from to and (), respectively, while the parameter setting of observer does not change, which means that the proposed observer (11) has an inconsistency between in (12a) and noise parameter for observer.
By taking as an example, it can be seen from Figure 6(a) that the state estimations can still well follow the trajectory of true state even if the measurement noise has variations, which shows the robustness of CDFMO visavis measurement noise. In addition, we can see from the RMSEs in Figure 6(b) that state estimation of Scenario 1 is better than Scenario 2. It is logical because of the following reason: we have chosen for the considered robotic arm system. In fact, CDFMO with in Scenario 2 has already performed a little role of “filter” for this nonlinear system. As shown in Figure 2, when , , while the minimum noise level in this case (minimum nonzero value of ) is 0.02; that is, . The fact of means that the largest dispersion of estimation is still smaller than the minimum noise level, which is the performance of a filter. Accordingly, when we use the same window length for an even lower noise level, that is, Scenario 1, the presented CDFMO will still perform as a filter and maybe even more. That is why we get a better estimation even when CDFMO “overestimate” the real noise level.
(a)
(b)
5. Application to Fault Diagnosis
In this section, we are going to apply the proposed CDFMO to perform the fault diagnosis of the considered nonlinear singlelink robotic arm system. In order to deal with all faults in the same simulation launch, we suppose that each fault only occurs during certain period ; therefore, we use the following function to characterize the fault duration:where is Heaviside step function. In this paper, we injected two kinds of typical faults as follows:(1)Sensor bias: a sudden bias is one of the abrupt sensor faults, which is modeled as A bias on (F1): , , fault period . A bias on (F2): , , fault period . A bias on (F3): , , fault period .(2)Actuator fault: we modelize the actuator fault as where describes control loss level. means there is no actuator fault, whereas signifies that the control is completely lost. Actuator fault (F4): , .
5.1. Fault Detection
In this paper, residuals are chosen as fault indicators, and it is defined as follows:with , which checks the consistency of real measurements of system and measurements estimated by the proposed CDFMO. We use both residual and the Cumulative Sum (CUSUM) control charts of for the reason that CUSUM control chart is wellknown as the efficiency of detecting small change in the mean of a sequence. As introduced in [29], the upper CUSUM and lower CUSUM of residuals sequences (with mean and SD ) are defined as follows:with the starting value . The detection criterion is as follows:and in order to quickly detect the small shift in mean, the parameters of CUSUM control chart is set as and .
In the presence of measurement noise, CUSUM control chart can improve the performance of diagnosis. For example, in Figure 7(a), the change of residual is not very obvious during fault F3 occurs, but it can be clearly seen from the CUSUM chart of in Figure 7(b). CUSUM chart can also help to detect the incipient fault such as F4 more quickly, as shown in Figures 7(a) and 7(b). Fault signature of residual and fault detection instant with respect to different faults are therefore given in Table 2. These results reveal that the proposed CDFMO has a good and effective performance in both sensor and actuator fault detection for the singlelink robotic arm.
(a)
(b)
(c)
(d)
(e)
(f)
5.2. Fault Isolation
It can be obviously seen from Table 2 that fault F2 is isolable as it has a unique fault signature . On the other hand, the remaining three faults F1, F3, and F4 cannot be isolated because of the identical fault signature . Hence, in this subsection, we aim to solve this problem by using generalized observer scheme (GOS) [30] with another additional observer (CDFMO 2), while CDFMO 1 is the same as the previous part. The structure of a bank of CDFMO is illustrated in Figure 8(a). In this paper, CDFMO 2 is constructed by choosing subset measurements and ; then the corresponding model parameter changes from to , where is composed by the first and third rows of . Here, state estimation provided by CDFMO 2 is noted as ; therefore, the residual in this case is
(a)
(b)
(c)
(d)
The results of are shown in Figures 8(b)–8(d), respectively. It shows that all the faults can be detected by residual , while F1 and F3 are also detected by and .
By comparing the fault signature obtained by CDFMO 1 and CDFMO 2 in Table 3, we can obviously see that the three indistinguishable faults F1, F3, and F4, which have identical fault signature by CDFMO 1, become isolable with , , and by CDFMO 2. It means that by applying the GOS structure, the presented CDFMO can also accomplish the objective of fault isolation effectively.
6. Conclusion
In this paper, a nonlinear observer has been proposed to perform state estimation and fault diagnosis for a class of continuousdiscrete nonlinear dynamical systems. The performance of state estimation is great and can be significantly improved by choosing a larger window length. Also the presented approach has a finitetime convergence, which is a great advantage from the perspective of FDI. Simulations have illustrated that the proposed method provides a quite effective fault detection for sensor and actuator faults, which can also show the robustness of this nonlinear observer against the measurement noise. Meanwhile, by using the bank of observers, we are able to deal with the isolation of faults with identical fault signature. It is worth noting that the proposed observer structure can also be apply to the following cases: (1) estimation instant is not synchronized with measurement instant; that is, we are able to obtain the state estimation with . (2) The sampling period of measurement is not a constant; that is, . One perspective of the presented CDFMO is to take the modeling uncertainties into consideration, which are the usual disturbances in practical engineering systems. The other perspective is to give a theoretical sensitivity analysis for different types of faults, which might give more decisionmaking basis for fault detection as the first step of fault diagnosis.
Data Availability
The code used to support the findings of this study is available from the corresponding author upon request.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
The authors would like to gratefully acknowledge the financial support of the China Scholarship Council (CSC) via the project UTINSA.