1. Introduction
Sliding Mode Control (SMC) is a well-known control theory owing to its outstanding robustness properties against to parametric uncertainties and external disturbances [
1]. Sliding mode observer (SMO) is a high performance state estimator well suited for nonlinear uncertain systems [
2,
3] with only output information available.
Sliding mode observers (SMOs) have been successfully implemented in real control engineering for state estimations. In [
4], SMOs are designed for flux estimation of induction motors. For motion control systems subject to nonlienar frictions, a SMO is applied to estimation friction state information for achieving friction compensation purpose [
5]. To get better control performance, recently a SMO [
6] and an extended type SMO [
7] are employed to estimate unknown external disturbances as well as modeling uncertainties in finite time. Building on the work [
8], a SMO is applied to control aero-elastic response of flapped wing for the suppression of external excitation [
9]. For nominal systems, high gain observer is also a good candidate for state estimation. However as pointed out in [
10], estimation performance will be degraded for systems in the presence of uncertainties and disturbances. Therefore, the use of SMO is capable of enhancing estimation precision.
For many different control problems, searching the solutions of constrained equations may not be an easy task. A better way is to replace these equations by inequalities and the design problem can then be effectively solved by using linear matrix inequalities (LMIs) [
11,
12]. In this decade, multi-object LMI techniques have been widely applied for the existence problem of robust continuous/discrete time observer designs [
13,
14]. For SMO design, the work [
8] provides a standard method based on coordinate transformation. A necessary and sufficient condition is derived for the switching surface determination. The designs were further refined and solved by LMIs [
15]. When applying the SMO presented in [
16], the system input-out matrix must satisfy an algebra equality, which can be taken as a minimization issue and was recently resolved via LMIs [
17].
In recent years, SMO design has been widely investigated not only for state estimation [
18,
19], but for recovery of uncertainties as well [
20,
21]. Building on the equivalent control in ideal sliding modes [
1], the core concept of model-based unknown input/faults reconstructions in control systems is the generation of residual signals which act as indicators of external input. The idea behind the use of the observer for disturbance recovery is to estimate the outputs of the system from the measurements by using a class of SMO [
20,
21].
As a consequence, the first part of this paper concerns the structure of the SMO presented in [
8,
21] and the fault reconstruction ideas [
20] to develop a SMO design for achieving state estimation as well as unknown input recovery. Existence of the SMO scheme is formulated in the form of LMIs such that all the observer gains involved in the SMO can be efficiently determined. However, estimate precision of SMO counts on the realization of infinite fast discontinuous control, which might be difficult to achieve ideally. Therefore, a second part of the work presents a proportional-integral type observer (PIO). The stability criterion of the PIO design is derived by the way of Lyapunov stability and the choice of observer gains applied in the PIO is resorted to solve a specific LMI. Inspired by and compare to the recent work [
22], the proposed method is capable of reconstructing smooth as well as abrupt unknown inputs in an asymptotic level even though the 
L2 condition is not satisfied.
Finally, simulations of a mechanical system subject to continuous and discontinuous unknown inputs are both addressed. Comparison studies are carried out and the estimation properties of the SMO and the PIO are also discussed.
  2. Observer Design for Nonlinear Disturbed System
Consider the following nonlinear control system
      
      where the matrices 
, 
, 
 and 
 are known. The last term 
 is denoted as a lumped perturbation term containing system nonlinearities and unknown input signals. In this paper, we focus on the observer design for disturbance reconstruction as well as state estimation. Thus, system models are assumed to be known. In addition without loss of generality, the input/perturbation distribution matrices are of full rank. The following assumptions are imposed in this paper.
Assumption 1. The matrices  and  satisfy that .
 Assumption 2. The system is observable and the dimensions  and  are considered.
 Assumption 3. The nonlinear term is bounded by a known constant ; that is .
 Applying a state transformation 
 in which 
 and 
, gives
      
      where 
 denotes as null space 
 and 
.
Based on Assumptions 1 and 2, apply a coordinate transformation matrix 
 similar to [
20] as follows
      
      where 
 is an orthogonal matrix satisfying 
.
Let 
 and then the system (2) in a new coordinate space can be further represented by
      
      where 
, 
, 
, 
, 
 and 
.
By using the coordinate transformations, the control systems are going to be represented by a canonical form and hence the robust SMO design can be easily carried out.
For system (4), firstly apply the following observer
      
      where 
. 
, 
 and 
 are observer gain matrices and 
 denotes as an observer control input. The SMO structure consists of switching terms added to a Luenberger observer [
23].
From (2) and (5), it leads to the following error dynamics
      
Equation (6) can be represented as the following compact form
      
Since only  is available, design of an output based sliding surface  should depend on  (or ) only. For example when  is selected, by applying  in which , then  is attained in finite time. Therefore  is now replaced by the so-called equivalent control denoted by .
During the sliding motions, the equivalent control effort can be represented by
      
It is clear that the reconstruction of fault signals lies in the application of the equivalent output injection concept [
8,
15,
18]. Therefore, it is necessary to maintain an ideal sliding motion.
On the other hand, the reduced order dynamics in the sliding mode is dominated by
      
By using preceding coordinate transformation, it can be clearly observed from (9) that the pair  is observable, it follows that the pair  is observable as well. Let , it is obviously that can be achieved by appropriate choices of . Nevertheless, the reduced order dynamics is going to be perturbed by the perturbation term  through the observer gain matrix . The asymptotic estimation level can be reached by applying  as long as  is naturally satisfied. Nevertheless, this achievement depends on the property of , which may not always be the case. As a consequence, the following task is dedicated to design an appropriate control structure for (9) so that exponential estimation level could be obtained. If  could be attained, it follows that .
To this aim, further apply a coordinate transformation to system (7) by 
 in which
      
Then, (7) can be represented by
      
      where the matrices are given by 
, 
, 
, 
, 
 and 
.
Designing the following gain matrices
      
      and applying to (11) follows
      
      where 
 is also a decision variable needs to be determined. Equation (13) shows that the estimation precision might be deteriorated by 
. Fortunately, owing to the property 
, there exists a design degree of freedom on the selection of the gain matrix 
 such that the error dynamics (9) is insensitive to 
. Therefore, the control object is to consider a structural constrain imposing on an observer gain matrices and solve them through LMIs.
By assigning the specific structure 
, where 
 and 
, one can easily get
      
      where 
 and 
.
Therefore, the design object turns into a feasibility problem on the selection of  such that .
Based on (14), let 
 and 
, consider a system partition
      
      where the matrices are defined by
      
Then system (13) turns into
      
Consider the linear part of (17) and a positive definite symmetric matrix 
, the nominal closed-loop dynamics is said to be quadratic stable if the inequality
      
      is attained.
The left-hand-side of (18) can be rewritten in detail as follows
      
Consider Shur complement, the quadratic stability is achieved if and only if following inequalities are simultaneously guaranteed.
      
It can be easily found that to achieve the quadratic stability, one has to firstly determine  and  to satisfy  and . In addition, one must finally check whether  is also guaranteed. Therefore, it leads to a two steps design. The following is going to propose a convenient way to resolve the preceding issues simultaneously via a LMI design, where the specific structure of  needs to be considered.
Proposition 1. For the observer error dynamics (17), by applying the following sliding controllerandwhere  is a given value, then the prescribed sliding motions are eventually fulfilled as long as the following inequality is feasiblewhere  and  are both control variables requiring to be determined. Moreover, the high gain feedback is avoidable by further considering the following minimization process: The matrices applied in (21)–(24) are going to be addressed in the following proof.
 Proof of the quadratic stability. Select as a Lyapunov function 
 in which 
. Taking the time derivative leads to
      
      where 
. As a consequence, the quadratic stability is available if 
 is fulfilled. The design object can be achieved if the following inequality holds
      
      where 
 provides a guaranteed convergence speed of observer error. Providing (26) is feasible, the exponential stability with a prescribed decay speed is guaranteed; that is 
.
Based on the definition 
 and 
, (26) is equivalent to
      
Due to the structure of the observer gain, the auxiliary control variables 
 and 
 are respectively imposed to be with the following specific configuration
      
      where the symbol “*” stands for undetermined nonzero sub-matrices and the solutions are going to be carried out via LMI solver.
To avoid high gain feedback, let 
 and consider 
, where 
 is going to be minimized. The minimization problem can be characterized as the following LMI:
      
Note that provided (27) and (29) are feasible, it can be concluded that the inequalities
      
      are guaranteed as well. ☐
 Proof of the existence of sliding motions. For sliding dynamics, apply a Lyapunov function as follows
      
Based on (30), taking the time derivative of (31) gives
      
Since only system outputs are available, the norm bound 
 is not available. Therefore, prescribed sliding motions might not be attained immediately for an arbitrary given 
. It is well known that a large value of 
 is capable of realizing approaching phase immediately but unavoidably brings about serious control chattering. Examine again the Lyapunov function presented in (25). Owing to the properties of the quadratic stability, the observer system trajectories will eventually enter the sliding domain and therefore the prescribed sliding modes can be fulfilled in finite time. In other words, there must exist positive constants 
 and 
 such that the condition 
 could be eventually satisfied. Under this circumstance, (32) reduces to
      
      where 
 is utilized in (33). 
Equation (33) shows that the system trajectories hit the sliding manifold in finite time 
 described as follows
      
      where 
 stands for a time instant in which the approaching condition is attained. ☐
 Remark 1. The requirements of quadratic stability and fulfillment of sliding motions can be formulated as a feasibility problem of a single LMI subject to a specific matrix configuration. By using the preceding LMIs (23) and (24), the gain pair  can be simultaneously determined without inducing high gain phenomenon and the resulting observer error dynamics is with a guaranteed convergence speed.
   3. Robust Proportional-Integral Type Observer Design
In the preceding section, a sliding observer with systematic control gain generation is developed. However, the robustness of the SMO relies on the realization of infinite fast control switching and thereby estimate precision depends on computation speed. It has been pointed out that in the ideal sliding motions, the discontinuous control stands for the necessary input effort to main the systems in sliding modes and compensate unknown perturbations [
20]. Therefore, the external unknown signals should be recovered by filtering the control signals or by using boundary layer techniques. However, the estimation precision will be unavoidable deteriorated. To avoid the discontinuous control effort applied in observer and simultaneously reconstruct external unknown inputs, the following work is to inherit the previous SMO design framework and integrate the ideas presented in [
24,
25] for smooth multivariable robust observer design.
Referring to (12), the pair 
 is now designed by
      
Considering (14) together with (35), one can represent the observer error dynamics (13) by
      
      where 
 is already Hurwitz.
Proposition 2. Suppose that there exists a known function  such that  for . For the transformed system (36), the estimation error dynamics is asymptotic stable by applying the following proportional-integral controlwhere , 
, 
 and  with .
 The control gains applied in (37) satisfywhere , 
, 
, 
, and the matrices are with the following specific structuresand Note that  is non-negative diagonal matrix.
 Proof.  Substituting (37) into (36) yields
      
To address the stability of the observer error dynamics, let 
 and then (41) can be represented by an augmented system described as follows
      
Define an augmented state variable by 
 and represent (42) in the compact form
      
      in which
      
Note that the extended system (43) is only used for stability analysis and control gain determination purposes. No extra state information needs to be involved for the observer implementation.
By applying 
, the closed-loop observer dynamics can be governed by the following auxiliary system
      
      where 
, 
, 
 and 
.
For (45), the following Lyapunov candidate is proposed
      
      where 
 and 
 stands for the 
i-th diagonal element in the 
 and the 
i-th element in the 
, respectively. In addition, 
 and it is with the following specific structures
      
Note that the sub-matrices utilized in  have to meet the following two conditions: (i) the sub-matrices are all of diagonal forms and (ii) all the elements among them are positive.
Based on conditions (i) and (ii), for (46), one can derive that
      
As a consequence, the quadratic stability is attained if  and  are positive. These stability conditions can be interpreted as a feasibility problem of a LMI described as follows.
Consider the following system representation
      
      where the system matrices 
, 
 and 
 are defined in (39).
The control gain matrix  used in  is directly applied from the solution of (23). The rest control object is to determine  such that  is achieved.
In a similar manner, the control object can be reached by considering
      
      which is equivalent to 
. Pre- and post multiplying 
 results in
      
      where 
 is applied.  
 Moreover, control gain minimization can be achieved by imposing the following minimization process further
      
Ramark 2. By using the similar concept of the equivalent control injection, since it has been proven that the estimation errors approach to zero asymptotically, from system (36) it reveals that . In other words, the perturbation term can be reconstructed by measuring the control signals (37) and thus the disturbance can be easily recovered.
 Remark 3. When applying SMO, low pass filters (LPFs) should be used for disturbance recovery. As point out in [1], the time constant applied in the LPFs needs to be sufficiently small to pass the slow component of the equivalent effort but is large enough to eliminate the high frequency component [26]. In other words, the cut-off frequency needs to be sufficient larger than the frequency of external disturbance so as to reach good estimation precision. The other way to reconstruct the unknown perturbation is to applied boundary layer technique [20,21,27] and the estimation precision depends on the size of the boundary layer. For the proposed PIO, the disturbance can be observed without incorporating extra LPFs and the resulting estimation precision can reach asymptotic level. Moreover, since the control algorithm used in the PIO is continuous, it is suitable for practical computer implementations as demonstrated in the previous works [24,25].    4. Numerical Example
In this section, a single link robot arm is considered for the SMO designed. The resulting estimation performance will be later compared with the one by PIO. Some advantages of the PIO are going to be carried out. The dynamics of a disturbed single link robot arm with a revolute elastic joint rotating in a vertical plane is described as follows [
28]:
      
      where the state vector is given by 
. The states 
, 
, 
 and 
 are the link displacement, the link velocity, the rotor displacement and the rotor angular velocity. The rest of system parameters are summarized in 
Table 1.
Before the controlling, a practical condition is imposed to the control problem. That is, only two sensors are available. One is an encoder used to measure angular position and the other is a tachometer used to measure angular velocity. This is important to equip the sensors at proper places. For example, suppose that the encoder and the tachometer are used to measure angular position and angular velocity of the link, respectively. It leads to an output matrix .
Applying coordinate transformation gives
      
It is evident that the pair  is not observable, but the system contains two stable invariant zeros  located at . Note that since the invariant zeros are located in the left-half-plane, the SMO and PIO designs remain applicable through the coordinate transformation technique. However, since the unmovable zeros are close to the imaginary axis, it leads to a slow observation speed.
In contrast, when the encoder is used for motor position measurement, it results in the output matrix as the one shown in (53). Applying coordinate transformation gives the system as described in (4), where the resulting system matrices are
      
It can be observed that the pair  is now fully observable and therefore the observation performance can be improved.
For the SMO, consider 
 and then the control matrices returned by the M
atlab LMI-toolbox are
      
Based on the given system parameters listed in 
Table 1, the nonlinearity satisfies 
.
For the PIO, the control matrices generated by the M
atlab LMI toolbox are given as follows:
      
      where 
 is applied to achieve a desired decay speed.
For the lumped perturbation term 
, there exists a positive constant 
 such that 
 and thereby the robust gains 
 are considered. To compare with the method [
22], in the following simulations, two types of external unknown inputs are considered to simulate 
. One is a continuous sine wave and the other is a discontinuous saw-tooth-like wave. The continuous unknown input is generated by 
 and the discontinuous one is generated by (using a M
atlab script) 
. It is clear that the time derivative of the discontinuous one does not satisfy 
 condition. However, the SMO can still recovery its profile accurately.
In the following simulations, the discontinuous control applied in the SMO is replaced by a sigmoid function [
20,
27]. The unknown input is estimated by considering the approximation: 
 , where 
 and 
 are used which lead to in 
.
Figure 1 shows that the observer states approach to the real system states by using the SMO. The corresponding estimation errors are depicted in 
Figure 2. Note that the values of 
 are obviously larger than other state estimation errors. This is because that the unknown input directly affects in the direction of 
 and the sigmoid-function-based control applied in the SMO cannot completely eliminate the unknown input.
 Examining the sliding trajectories as illustrated in 
Figure 3. It is obvious that the approaching phase does not occur immediately, but remains being realized in finite time under the approaching condition (33). Put it clearly, since the closed-loop observation error dynamics is exponentially stable, it follows that the circumstance 
 is eventually achieved such that the approaching condition (33) is finally fulfilled. 
Figure 4 demonstrates the unknown disturbance reconstruction by the way of equivalent control injection.
Figure 5, 
Figure 6 and 
Figure 7 are the results by using the proposed PIO. Different to 
Figure 2, the estimation performance can be further improved by using the proposed PIO. 
Figure 6 illustrates the main advantage of the PIO; that is, the perturbations are successfully eliminated. The disturbance recovery property is demonstrated in 
Figure 7. Detail comparison will be discussed later.
 Figure 8, 
Figure 9, 
Figure 10 and 
Figure 11 are used to demonstrate the main difference between the SMO and the PIO for discontinuous unknown input reconstruction. Since the SMO is a class of discontinuous control strategy, it is able to reconstruct the non-smooth unknown input rapidly. 
Figure 8 and 
Figure 9 clearly show the fast recovery property of the SMO.
 Figure 10 and 
Figure 11 illustrate that the control signals generated by PIO deviate from the true value of the unknown input at 2 s, 4 s, 6 s and 8 s. This because that the magnitude at these points changes with infinite fast speed, that is 
. There is no continuous compensator can compensate such the critical situation. However, after these critical points, the time derivatives of the disturbance turn into finite and therefore the unknown input reconstruction can be successfully obtained.
 To make quantitative comparison, the simulation results are summarized in 
Table 2. 
Table 2 contains two categories: the first one is the estimation precision comparison for system subject to continuous unknown input and the second one is for system suffering the discontinuous one. For system with continuous disturbance 
, simulation results show that the estimation conducted by applying the PIO is better than those obtained by using the SMO. In contrast, when system is subject to discontinuous disturbance 
, SMO can still reach fast estimation even though the disturbance is not differentiable and the 
 condition for the signal time derivative is not satisfied [
22]. Therefore, the input reconstruction performance by SMO is better than those by PIO in the sense of maximum estimate errors. However, it is argued that most of disturbances in the real world are continuous and no continuous control effort is capable of precisely eliminating discontinuous disturbances. As a result, under this circumstance the resulting estimation performances conducted by the PIO will be better than those conducted by the SMO. Additionally, since no discontinuous control component is directly applied in the PIO, the robust integral type observer will be an adequate choice for bandwidth limited hardware realizations.