Abstract
In this work, state vector estimation by means of the Fuzzy Kalman Filter (FKF) is used to generate a control signal that stabilizes an unmanned quadrotor aircraft. The framework for fuzzy Kalman Filter methodology has been successfully developed, and in this sense, the FKF is implemented and compared with Kalman Filter (KF) and extended Kalman Filter (EKF). It will be proved that the fuzzy version gives some advantages such as a smaller processing time and a smaller Mean Squared Error (MSE). Finally, these results are shown in graphics and tables.
Introduction
The are some interesting investigations about filters [1–4]. From the mentioned methodologies, the Kalman Filter (KF) has become one of the most useful techniques for estimating the unmeasured variables even in presence of noise. An extension of KF was developed for nonlinear systems and was named Extended Kalman Filter (EKF) which is frequently called the optimal observer. It is used in a number of estimation and tracking applications as satellite navigation, robotics, missile trajectory estimation, radar control or spacecraft stabilization [5, 6]. KF and EKF have been also successfully applied in the context of evolving fuzzy systems (for updating consequent parameters over the time through the closely related to the real-beam forward-looking weighted least squares “RFWLS” algorithm) [7, 8]. Its methodology framework has been widely studied, developed and validated by many researchers over the years.
In [9, 10], the called argument Kalman filter is introduced in order to reduce the processing time of the extended Kalman filter for the learning of a neural network where the contribution was based on the substitution of the Jacobian by its argument.
There is an issue with the above mentioned filters for the reduction of the processing time, it is that their designs are rarely focused on applications, i.e., in most of the cases, the filters are employed in synthetic examples. Then, there is a necessity to design novel filters for the reduction of the processing time and to be focused on applications.
In this work, a new version of Kalman Filter called Fuzzy Kalman Filter (FKF) is presented based on Kalman Filter and Takagi-Sugeno Fuzzy models. It is an optimal fuzzy state estimator recursive algorithm for nonlinear systems. Developed with the goal to reduce the mean square error and also the processing time, the results show better performance compared to classic algorithms used for estimating the unmeasurable state of dynamical systems, yielding a reduction of the processing time.
In present work, FKF is used to estimate the state vector in an optimal way to generate a control signal to achieve the stabilization of an unmanned aerial vehicle (UAV) by means of measurement signals with white noise. The UAV refers to a quadrotor that is a four-axis multirotor aircraft whose elevation is generated by four rotors oriented vertically. Quadrotors have been highly researched and actually there exist many applications approaches, models and control systems as in [5, 12].
Sensors used in a quadrotor such as gyroscopes and accelerometers provide signals for control altitude process and these signals are regularly added with noise, in greater proportion in gyroscopes. This represents a complication for the control algorithm because it causes the data to have precision errors or bad response and the algorithm takes more processing time in real flights, in which the sampling speed matters. This is why the Kalman Filter is a tool widely used in UAV’s control algorithms.
Fuzzy Kalman filter
Basically, the mathematics involved in the Kalman Filter is derived based on the least squares criterion with an optimal gain and consists of a set of equations statically optimal with respect to some quadratic function of estimation error, while the measurement noise is decreased [13].
Kalman filter
Given a linear discrete-time system with additive noise
The Kalman Filter algorithm has two processes stages: the state estimation and update, where it is defined by the next set of linear equations:
Where K
k
is the optimal Kalman gain that guarantees the zero convergence of the error,
Most of the dynamic systems are nonlinear, then the need to extend the results obtained with the Kalman filter to the nonlinear region, then the Extended Kalman Filter (EKF) is developed. So, a nonlinear discrete-time system with perturbations is considered
With w
k
and v
k
, as above. It is assumed that the functions f (x
k
, u
k
) and g (x
k
) are twice continuously differentiable, so they can be approximated by a Taylor Series expansion about
Where
Just as in the KF, the EKF is a recursive algorithm, but in this case, it is necessary to linearizing by calculate the Jacobian matrix for each iteration.
A new methodology of Kalman Filter based on the TS fuzzy modeling is developed in this work and named Fuzzy Kalman Filter which use the advantages of linear models in nonlinear systems as an alternative to the classic algorithms.
Fuzzy Kalman Filter algorithm is developed based on the assumption that is possible to describe the nonlinear model as a set of local linear models and its input-output TS fuzzy discrete-time model is described by
Plant rule i
If z1 (k) is Mi1 and ... z
p
(k) is M
ip
Where, as before, x k , u k , and y k are the state, input, and output vectors, respectively. Besides, M ip are the corresponding fuzzy sets that weighs each subsystem, [z i (k) , …, z p (k)] are the measurable premise variables or output state vector, i is the number of subsystems and matrices A i , B i , C i , are obtained by linearizing the nonlinear system around some suitable operation point [14].
The complete fuzzy model is obtained by a singleton fuzzifier, product interference and center gravity defuzzifier [14], and adding the noises. Thus, any given f (x
k
, u
k
) is then defined by the next fuzzy system
Where each subsystem corresponds to linearization around some operation points, the factor h
i
is the normalized weight for each rule calculated from the membership value of z
i
(k) in M
ip
, which satisfies
A nonlinear dynamic system in discrete time with disturbances is described by
Fuzzy Kalman Filter for nonlinear system described by TS Fuzzy modeling as a good approximation of nonlinear system uses the next approximation.
This allows writing the fuzzy filter system matrices as follows
Consequently, the TS fuzzy model (17)–(18) can be rewritten as
The so-called discrete-time Fuzzy Kalman Filter is written as one original filter in two stages, prediction and updating, and it is defined by the following.
As in the original formulation of linear KF, it is assumed that the initial state vector is Gaussian with mean
Notice that the process is very similar to the classical KF, but the filter is now working on a nonlinear system described by a TS fuzzy model. Besides, the proposed methodology does not require linearization for each iteration unlike the EKF. Instead, the matrices are obtained at any instant by (24)–(26). This advantage will be illustrated in a later section.
Several mathematical models of the quadrotor have been developed in previous works because of the mechanical simplicity and due to assumption that it is a rigid body [11, 15].
In this section, a model of quadrotor previously developed is presented. Reference systems, as well as all mathematics and modeling strategies, are given in [5], where the goal was the sinusoidal reference tracking in height generated by an exosystem within an ideal noise-free situation and in [16], to compare EKF and KF with an estimator named James-Stein State Estimator.
The mathematical model described below is the one developed in [5], with six degrees of freedom and two frameworks, inertial frame of reference (ground) and a non-inertial frame reference (body) which moves with the quadrotor, it is assumed that is a rigid body in order to be described using Newton-Euler equations and proper to the aircraft with “x” type flight configuration [11, 17].
The aircraft coordinate frame axes are described relative to the inertial frame of reference (E), the general position vector ξ is defined as
Where Γ E is the linear position vector and Θ E is the angular position vector of the vehicle with ϕ, θ, ψ, the roll, pitch, and yaw angles with respect to the inertial frame.
On the other hand, on a non-inertial frame (B), the linear velocity (V
B
) of the body is defined with components (u v w), and (p q r) represents the components of angular velocity vector (ω
B
), then the general velocity is given by
The generalized matrix of rotation and translation coordinates that describes the dynamics of aircraft relative to ground is
Where, C is a rotation matrix and T
Θ
is a translation matrix. Consequently, the kinematics of a rigid body with six degree of freedom is given by equation
Based on the axioms of Euler and the second law of Newton the equations in matrix form result
Where
Where O B is the gyroscopic propeller matrix, Ω the full velocity of rotors and E B is the movement matrix. This equation describes the movement of the system with respect to the non-inertial reference.
In order to get a description with respect to inertial reference (ground), using transformations matrices between both reference and introducing the forces and moments defined in (3), the dynamics of the vehicle are described by the following equations
This group of equations includes the transformation of axes between reference frames through a matrix of rotations and defines the displacements (x, y, z) and angular (ϕ, θ, ψ) positions of the aircraft referenced to the ground system, Ω is the velocity vector [5, 13].
The full velocity vector Ω (rad/s) is represented by the algebraic sum of each of the speeds of the rotors
The group of control inputs is described in function of velocity of rotors by
The physical characteristics for the quadrotor used in this work are presented below
Where b is the push factor, d is the drag factor, l is the distance between the center of gravity of the quadcopter and the center of the rotors, m is the mass of quadrotor, and J tp is the moment of inertia of the engines.
Based on the linear model, linearized by Jacobian at the equilibrium point x
e
, it was verified that the system is controllable and with this result it is possible to obtain a feedback gain by Robust Pole Placement technique [5, 18] where is used to stabilize the drone in attitude and the feedback controller results
Where x
op
is the altitude operation point vector, that was placed as altitude equal to 30 meters and with other position, rotations, velocities and accelerations values equal to zero [5]. ϒ is the state-feedback gain matrix obtained considering the desired eigenvalues
In order to compare the efficiency of the proposed methodology, three versions of Kalman Filter are used, Kalman Filter (KF), Extended Kalman Filter (EKF), and Fuzzy Kalman Filter (FKF), with the purpose of comparing efficiency in the altitude stabilization of the aircraft, each filter applied to obtain the state vector x k that allows calculating the control signal with (43).
Consider the dynamic quadrotor model described in previous section to be stabilized, for this, it is possible to write it as a state vector [5, 16, 18]
A discrete-time approximation is needed and is obtained by considering the first-order derivative, [5, 16], which is approximated by the following expression
Where T is the sampling time, which is chosen sufficiently small and reordering terms
Then, following the Euler’s methodology, an approximation of the system in discrete-time is obtained
The nonlinear system with dynamic and measurement noise is described as follows
Where f is the quadrotor function described by the equations in (40) and
Plant rule i:
If x1 (k) is Mi1 and ... x12 (k) is Mi2
With x
k
, u
k
, y
k
, x
k
, w
k
, and v
k
as above, where the matrices considered to define the two-rule fuzzy system are computed as follows:
Where
Then C1 = C2 = 11 ×12, where 11 ×12 is a vector with 1 in all the components, A1 and A2 are upper matrices with ones in the main diagonal and zero in the other components, except the following ones
For the matrix A1:
And for the matrix A2:
While matrices B1 and B2 turn out to be
It is assumed that dynamic noise is very small for all process, and in order to test the filter’s ability to estimate states from noisy signals, two measures of standard deviation of the measurement noise are proposed as
In order to clarify, the Fig. 1 is a representative measurement signal with noise for the altitude state (x5) that is obtained from the quadrotor through the communication signal and is with which the filter works to estimate the states.

Representative Measurement noise signal.
First, the nonlinear nature of the system suggest the use of the Extended Kalman Filter, then this algorithm is applied by taken the standard deviation of measurement noise is equal to r = 0.15 and its results are shown in Fig. 2, and in order to provide more information, some numerical results are shown in Table 1.

Numerical results for EKF.
Numerical results for EKF, it r = 0.15
In this case, during the stabilization problem, only about 15 percent of the tests were successful, in the other cases, the system cannot be well approximate by the Extended Kalman Filter, because of the nature of the nonlinear model. So, the MSE average sown in Table 2 is the MSE average of available cases.
Numerical results for KF, it r = 0.15
The next step is applying the KF. The same standard deviation of measurement noise is used. In this case, during the process, the approximation was possible in all tests. The stabilization by means of the KF is not quite well as shown in Fig. 3, so the MSE average obtained is greater than applying the EKF as shown in Table 2.

Numerical results for KF.
Now, with the same parameters the Fuzzy Kalman Filter is applied during the stabilization process. As in the previous case, the approximation was successful in all tests, besides FKF provides a lower MSE and processing time than applying KF and EKF as shown in Table 3. The states and estimate signals are presented in Fig. 4.
Numerical results for FKF, it r = 0.15

Numerical results for FKF.
Now, a smaller standard deviation of measurement noise, equal to r = 0.01 is considered on the same aircraft system model. First, after using the EKF for estimation state vector it results are given in Fig. 5.

Numerical results for EKF.
Again, the Kalman filter works in 30 percent of the cases, although the performance with a lower standard deviation of measurement noise improved, but cannot be obtained well approximate by the Extended Kalman Filter. Once again, the MSE average shown in Table 4 is for the successful cases.
Numerical results for EKF, it r = 0.01
Now, the KF is applied under the same conditions. Again, the approximation was possible in all tests.
In this case we can notice that the stabilization is still not correct, even with less measurement noise as shown in Fig. 6 and in the numerical of the Table 5, this is because KF is a linear filter and the system is nonlinear.

Numerical results for KF.
Numerical results for KF, it r = 0.01
Finally, the FKF is applied to the process with all the same parameters as in EKF and KF. As we can see in Table 6, the MSE average is quite small compared with EKF that provides a good approximation. The processing time has been also reduced due to the fact that during the estimation process it is not necessary to use linearization. The stabilization graph is presented in Fig. 7, which that the stabilization is well achieved.
Numerical results for FKF, it r = 0.01

Numerical results for FKF.
In this work, the Fuzzy Kalman Filter (FKF) has been proposed to stabilize a vertical component quadrotor. EKF presents complications for the estimation of states in most cases due to the nature of the system. Instead, using the FKF working with nonlinear systems, a good approximation is achieved as well as compared to standard KF, besides, a quite small processing time for the FKF. It would be interesting to apply the methodology directly on a real unmanned aircraft, and to record the results giving continuity to the investigation.
Footnotes
Acknowledgments
Authors want to express their deepest thank to CONACyT and Instituto Politécnico Nacional for the scholarships granted and research projects.
