Next Article in Journal
Development of a Knee Actuated Exoskeletal Gait Orthosis for Paraplegic Patients with Incomplete Spinal Cord Injury: A Single Case Study
Next Article in Special Issue
Coarse Return Prediction in a Cement Industry’s Closed Grinding Circuit System through a Fully Connected Deep Neural Network (FCDNN) Model
Previous Article in Journal
Gasification Char and Used Foundry Sand as Alternative Fillers to Graphene Nanoplatelets for Electrically Conductive Mortars with and without Virgin/Recycled Carbon Fibres
Previous Article in Special Issue
Fault Diagnosis for a Class of Robotic Systems with Application to 2-DOF Helicopter
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Data-Driven Approach of Takagi-Sugeno Fuzzy Control of Unknown Nonlinear Systems

School of Mechanical Engineering, Purdue University, West Lafayette, IN 47906, USA
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(1), 62; https://doi.org/10.3390/app11010062
Submission received: 1 November 2020 / Revised: 16 December 2020 / Accepted: 20 December 2020 / Published: 23 December 2020
(This article belongs to the Special Issue Control and Soft Computing)

Abstract

:
A novel approach to build a Takagi-Sugeno (T-S) fuzzy model of an unknown nonlinear system from experimental data is presented in the paper. The neuro-fuzzy models or, more specifically, fuzzy basis function networks (FBFNs) are trained from input–output data to approximate the nonlinear systems for which analytical mathematical models are not available. Then, the T-S fuzzy models are derived from the direct linearization of the neuro-fuzzy models. The operating points for linearization are chosen using the evolutionary strategy to minimize the global approximation error so that the T-S fuzzy models can closely approximate the original unknown nonlinear system with a reduced number of linearizations. Based on T-S fuzzy models, optimal controllers are designed and implemented for a nonlinear two-link flexible joint robot, which demonstrates the possibility of implementing the well-established model-based optimal control method onto unknown nonlinear dynamic systems.

1. Introduction

The Takagi-Sugeno (T-S) fuzzy model is a powerful and practical engineering tool for modeling and control of complex nonlinear systems. It proves to be a universal function approximator that can approximate any smooth nonlinear functions to any degree of accuracy [1,2] and is less sensitive to the curse of dimensionality than other fuzzy models [3]. The concept of T-S fuzzy model is similar to the piecewise linear approximation approaches in nonlinear control, which linearizes a system at a set of selected operating points and designs a local linear feedback controller for each linear model. However, since the overall control action is switching among the local linear controllers according to system states and thus there is only one local controller active at a certain time in such approaches, it can only ensure the stability and performance of the control system at the neighborhood of selected operating points [4], In contrast, the T-S fuzzy model approximates the entire nonlinear system by fuzzy inference among local linear models so that the overall control action can be generated by aggregation of local linear control laws [5]. Therefore, it empowers a paradigm of designing controllers for local linear models while analyzing stability for the global nonlinear system [6]. The T-S fuzzy-model-based control that blends feedback controllers from local models is referred to as Parallel Distributed Compensation (PDC) scheme, in which the stability of the overall control system is assessed through Lyapunov stability analysis, especially by the Linear Matrix Inequality (LMI) technique [7,8,9,10,11,12].
To take advantage of T-S fuzzy-model-based control, the identification of T-S fuzzy model has attracted great research interest. There are two kinds of methods for establishing T-S fuzzy models. One is linearizing the original system at a series of operating points when an analytical model of the system is available. The other is the consecutive structure and parameter identification from the data generated by the unknown system [6], which is more of interest to us. The structure identification refers to the selection of locations of fuzzy rules based on clustering [13,14]. With the determined antecedent structural parameters, the T-S fuzzy model transforms into a set of linear models, of which the parameters are obtained by the recursive least square method [15,16], genetic algorithm [17] or particle swarm optimization [18]. The objective of data-driven approaches is to minimize the global prediction error of a T-S fuzzy model. However, they may result in constituent linear models significantly different from the local linearization of nonlinear systems, though they may offer good global performance [19]. Hence, the T-S models obtained by these methods might not be satisfactory for the controller design in the Parallel Distributed Compensation (PDC) scheme, since the local compensators need to be designed based on local linear models.
The authors in [2] studied various identification algorithms and concluded that the constrained and regularized identification method can improve the interpretability of constituent local models as local linearization, and the locally weighted least square technique may facilitate the compromise between the local and global accuracy of T-S models. However, the effectiveness and practicality of this method were demonstrated only by very simple examples. When considering more complicated higher-order and multivariate problems, the issues related to interpretability and identifiability will be more pronounced and difficult to address.
An alternative method to circumvent these difficulties is presented in this paper. A neuro-fuzzy model referred to as fuzzy basis function networks (FBFN) is adopted to approximate the unknown nonlinear systems [20]. The Stone–Weierstrass theorem proves that this kind of neuro-fuzzy model could approximate any real continuous function on a compact domain arbitrarily well [21]. Then, the T-S fuzzy model is derived from the linearization of the neuro-fuzzy model at a series of operating points. Therefore, each local model is close to the local linearization of the original system and, thus, suitable for local compensator design. In addition, the positions of operating points for linearization are optimized by the evolutionary strategy to minimize global approximation error so that the entire T-S fuzzy model is a good global approximation of the original system. A fuzzy control scheme can be applied to the consequent T-S fuzzy model in which a local optimal compensator is designed for each of the local affine models and the overall control action is derived from the fuzzy inferencing of local control actions. The contribution of this paper is that it presents a practical way to build T-S fuzzy models with both good local and global approximations by deriving the direct linearization of FBFN models and introducing the evolutionary strategy for fuzzy rule location selection. Compared with the existing methods, the method proposed in this paper is less involved compared with nonlinear controllers while the performance is not compromised and, thus, it is particularly suitable for controller design of complex unmodeled nonlinear systems in practice.
This paper is organized as follows: Section 2 presents the structure of the T-S fuzzy model; Section 3 elaborates the proposed T-S fuzzy model identification approach; Section 4 explains the design of fuzzy optimal controller; Section 5 demonstrates an example of T-S model identification and optimal control of a robotic system; Section 6 concludes the paper.

2. Takagi-Sugeno Fuzzy Model

T-S fuzzy models represent complicated multi-input-multi-output (MIMO) systems with fuzzy inference rules and local linear models as follows:
R k :   IF   z 1   is   F 1 k ,   ,   z v is   F v k ,   THEN   x ˙ = A k x ( t ) + B k u ( t ) + d k ,
where Rk denotes the kth fuzzy rule, k ∈ {1, 2, ⋯, p}, p is the number of fuzzy rules, Fjk (j = 1, 2, ⋯, v) are the input fuzzy sets, x(t) Rn is the state variable vector, u(t) Rm is the input variable vector, z(t): = [z1, z2, ⋯, zv] are a subset of measurable or observable variables in the state and input vectors that are used for fuzzification, and (Ak, Bk, dk) are the matrices of the kth local model [6]. If the constant bias vector is not null, dk0, for some fuzzy inference rules, the corresponding local models are affine models instead of linear models.
By using the product fuzzy inference, singleton output membership functions, and centroid defuzzifier, a T-S fuzzy model in continuous-time state-space form can be organized as:
x ˙ = A ( μ ) x ( t ) + B ( μ ) u ( t ) + d ( μ ) ,
where A ( μ ) = k = 1 p μ k A k , B ( μ ) = k = 1 p μ k B k , d ( μ ) = k = 1 p μ k d k and µk denotes the normalized fuzzy membership function μ k = ξ k ( z ) / k = 1 p ξ k ( z ) with ξ k ( z ) = i = 1 v Φ i k ( z i ) . Φ i k ( z i ) represents the i-th membership function in fuzzy set Fik of the k-th fuzzy rule. Due to the fact that the membership functions are nonlinear (e.g., triangular or Gaussian), the model in Equation (1), as an aggregation of local linear or affine models, is also a nonlinear model in nature.

3. Identification of Takagi-Sugeno Fuzzy Model

The T-S fuzzy model is expected to attain a good approximation of not only the local dynamics of the underlying system to facilitate local compensator design, but also the global dynamics to guarantee the overall control performance. However, considering them together is difficult because building constituent local linear models from input-output data is not always straightforward and the tradeoff between the local and global accuracy should be carefully addressed [2].
In this paper, a novel approach that utilizes the neuro-fuzzy model to obtain a T-S fuzzy model is proposed. The neuro-fuzzy models are based on the fusion of fuzzy inference systems and neural networks. Among diverse neuro-fuzzy models, the one proposed by Wang and Mendel [20], which is also known as fuzzy basis function network (FBFN), has gained much attention as it has a similar structure to radial basis function networks (RBFNs) and thus can adopt the training methods that are already established for the RBFN. It has been proved that the FBFNs can uniformly approximate any real continuous nonlinear functions on a compact set to arbitrary accuracy [21].
First, from the input-output data, a set of multi-input-single-output FBFNs with product fuzzy inference, Gaussian membership functions (MFs), and centroid defuzzifier are trained by the least square algorithm [22] to approximate the nonlinear system whose analytical mathematical model is not available. Each FBFN can be represented as a fuzzy system in layered network form (see Figure 1), and is used to approximate the dynamics of one state variable. For example, the FBFN for the p-th state variable is constructed using fuzzy rules as:
R p l :   IF   x 1   is   A 1 p l ,   ,   x n is   A n p l   and   u 1   is   B 1 p l ,   ,   u m   is   B m p l ,   THEN x ˙ p = w p l ,
where l ∈ {1, 2, ⋯, Mp}, and Mp is the number of fuzzy rules for the p-th FBFN. Through fuzzy inference and defuzzification, the FBFN based on the above fuzzy rules can be written as:
x ˙ p = f p ( x , u ) = l = 1 M p w p l i = 1 n e 1 2 ( x i x i p l σ i p l ) 2 j = 1 m e 1 2 ( u j u j p l σ u j p l ) 2 l = 1 M p i = 1 n e 1 2 ( x i x i p l σ i p l ) 2 j = 1 m e 1 2 ( u j u j p l σ u j p l ) 2 p = 1 , 2 , , n ,
where x: = [x1, x2, ⋯, xn] is the state variable vector, u: = [u1, u2, ⋯, um] is the input vector, and wpl is the weighting factor. The xipl and σipl are the centers and widths of Gaussian MFs e 1 2 ( x i x i p l σ i p l ) 2 in fuzzy set Aipl, and the uipl and σuipl are the centers and widths of Gaussian MFs e 1 2 ( x i x i p l σ i p l ) 2 in fuzzy set Bipl.
Next, the T-S fuzzy model is derived from the neuro-fuzzy model by linearizing Equation (2). Linearization about an operating point (xk, uk) results in
x ˙ = A k ( x x k ) + B k ( u u k ) + f ( x k , u k ) + H . O . T ,
where H.O.T denotes the higher order terms in the local model, which will be neglected in the following analysis, f ( x k , u k ) = [ f 1 ( x k , u k ) , , f n ( x k , u k ) ] T , and
A k = [ f 1 ( x , u ) x 1 f 1 ( x , u ) x n f n ( x , u ) x 1 f n ( x , u ) x n ] x = x k , u = u k ,
By taking the partial derivative of Equation (2) with respect to xq, one can get
f p ( x , u ) x q = l = 1 M p w p l a p l l = 1 M p a p l q p l l = 1 M p a p l l = 1 M p w p l a p l q p l ( l = 1 M p a p l ) 2 ,
where
a p l = i = 1 n e 1 2 ( x i ( k ) x i p l σ i p l ) 2 j = 1 m e 1 2 ( u j ( k ) u j p l σ u j p l ) 2 q p l = x q ( k ) x q p l ( σ q p l ) 2
Similarly,
B k = [ f 1 ( x , u ) u 1 f 1 ( x , u ) u m f n ( x , u ) u 1 f n ( x , u ) u m ] x = x k , u = u k ,
where f p ( x , u ) / u q has the same expression as Equation (5) except that:
q p l = u q ( k ) u q p l ( σ u q p l ) 2
For simplicity, and also by neglecting the higher-order terms, Equation (3) can be rewritten as
x ˙ = A k x + B k u + d k ,
where
d k = f ( x k , u k ) A k x k B k u k .
The affine term dk is non-null, i.e., dk0 in general even if the operating point is an equilibrium point other than the origin [23]. Including the affine terms will offer a more accurate local approximation of the system’s dynamics around the operating points.
Then, the operating points used for linearization need to be chosen carefully to achieve a good global approximation of the original system. Meanwhile, it is desirable to minimize the number of linearization so that the number of fuzzy rules in the T-S fuzzy model can be reduced and the fuzzy controller synthesized in the following section will be more computationally efficient. To reduce the number of linearization points, it is necessary to know which variables among z = [z1, z2, ⋯, zv] in fuzzy inference are the major sources of nonlinearity. These variables should be assigned more positions while the variables that are minor sources can be assigned fewer positions. A measure to roughly recognize the source of nonlinearity by inspecting the variation of linearized A-matrix is presented in Section 5. If the i-th variable zi is to be assigned pi positions {zi,1, , zi,pi}, then by combination of the i = 1 v p i positions, there will be p = i = 1 v p i operating points in total, i.e., (xk, uk) (k = 1, 2, ⋯, p).
After the number of design positions pi for each zi is selected, their optimal positions can be searched by the Evolutionary Strategy (ES) [24] inside the operating range to produce the p optimal operating points to build the T-S fuzzy model:
Find   ( x 1 , u 1 ) ,   ( x 2 , u 2 ) ,   ,   ( x p , u p )   produced   by   { z i , j } i = 1 , v , 1 , , p i to   minimize   N D E I = i = 1 n j = 1 N [ x ˙ i , T S [ k ] x ˙ i , M [ k ] ] j = 1 N [ x ˙ i , M [ k ] x ˙ ¯ i , M ] .
The non-dimensional error index (NDEI) between the responses predicted by the T-S fuzzy model x ˙ i , T S [ k ] and the measurement data x ˙ i , M [ k ] is a reliable criterion of the quality of global approximation and can be used as the objective function to be minimized. The input-output data pairs used for validation of the neuro-fuzzy model can be reused here so that no extra experiments need to be conducted. N is the number of pairs in the validation data set, n is the number of state variables and x ˙ ¯ i , M is the mean value of x ˙ i , M [ k ] .
The ES optimization is controlled by three parameters: the maximum number of generations t, the parent population µ, and the offspring population λ. The optimization starts with initializing a parent pool with µ individuals. Then, in each generation, a pair of parents is randomly selected to produce an offspring via recombination and mutation, as explained in [24], until λ offspring have been generated. Each offspring is used to build a T-S model at the operating point associated with it and the NDEI of this model is recorded. The best µ offspring will form the parent pool for the next generation. If the optimized set of operating points after t generations doesn’t yield a T-S fuzzy model with satisfactory global approximation, the number of operating points p will be increased, and the optimization will be repeated, as illustrated in Figure 2.

4. Controller Synthesis for the T-S Fuzzy Model

In order to design a global stabilizing controller for the nonlinear system using the identified T-S fuzzy model, the parallel distributed compensation (PDC) framework is adopted [25]. Local feedback rule is designed as a compensator for each local model and a global fuzzy controller is constructed by the aggregation of local compensators using the same fuzzy inference system in the T-S fuzzy model [6]: Rk: IF z1 is F1k, ⋯, zv is Fvk, THEN u = uk, where k ∈ {1, 2, ⋯, p}. The fuzzy controller is aggregated as:
u = k = 1 p μ k u k ,
where µk is the normalized membership function same as in Equation (1).
Assume that the fuzzy controller is designed to minimize the performance index:
J = t 0 t f [ ( r x ) T Q ( r x ) + u T R u ] d t ,
where r is the command input vector to be tracked, x is the state vector, u is the input vector, t0 is the initial time, tf is the final time and Q and R are symmetric positive definite matrices to be determined by the designer, then for each local controller, the optimal control action uk can be derived as [26]:
u k = K k ( r x ) + ( B k T B k ) 1 B k T d k ,
where Kk is given by
K k = R 1 B k T P k
Pk is found by solving the Continuous Algebra Riccati Equation:
A k T P k + P k A k P k B k R 1 B k T P k = Q .
The stability condition of an affine T-S fuzzy control system based on a quadratic Lyapunov function is given in [27]. The equilibrium point (x = xk, u = uk) of the control system is asymptotically stable in large if there exists a common positive definite matrix P = PT > 0 and scalars τijq ≥ 0 such that:
G i , j T P + P G i , j < 0   for   fuzzy   rules   i , j { k | μ k ( 0 ) 0 } ( G i , j T P + P G i , j q = 1 n τ i j q T i j q P η i , j q = 1 n τ i j q u i j q η i , j T P q = 1 n τ i j q u i j q T q = 1 n τ i j q v i j q ) < 0   for   other   fuzzy   rules
where the G i , j , η i , j , T i j q , u i j q and v i j q are defined as:
G i , j = { A i B i K j } + { A j B j K i } 2 η i , j = { d i B i σ j } + { d j B j σ i } 2 σ j = ( B j T B j ) 1 B j T d j x T T i j q x + 2 u i j q T x + v i j q 0
Equation (16) belongs to bilinear matrix inequalities (BMIs) and can be solved in an iterative LMI manner. The details of the iterative linear matrix inequality (ILMI) algorithm can be found in [27]. The stability condition in Equation (16) can be integrated into the ES optimization procedure shown in Figure 2 as a constraint so that the fuzzy control system designed based on the optimized operating point set is guaranteed to be stable.
The fuzzy controller is implemented in a full state-feedback manner. If some state variables are not measurable during operation, then an observer needs to be designed for each local model and the fuzzy observer is constructed by aggregation of local observers with a fuzzy inference system. In [28], it has been proved that the separation principle for linear systems also holds for T-S fuzzy systems, and thus the fuzzy controller and fuzzy observer can be designed independently.

5. Application Example

In this section, the data-driven T-S fuzzy model identification and control are implemented on a flexible two-link joint robot to demonstrate the effectiveness of the proposed approach.
Flexible robot manipulators possess various advantages over the rigid ones: they require less material, allow higher manipulation speed while consume less power, and are safer to operate due to reduced inertia. However, controlling flexible robot manipulators for precise positioning could a challenging task because of the high precision required for positioning, oscillation due to flexibility, highly nonlinear and distributed dynamics of the system, as well as the difficulty in establishing an accurate model [29]. The picture and the schematic of the two-link flexible-joint robot manipulator to be dealt with in this paper are shown in Figure 3.
The robot is described by 8 state variables: θ1, angle of the 1st link; θ2, angle of the 2nd link; θ3, angle of the 1st motor; θ4, angle of the 2nd motor; and the four angular velocities. There are two input variables: T1, the torque of the 1st motor and T2, the torque of the 2nd motor. The state vector and input vector of this system are defined as:
θ = [ θ 1 θ 2 θ 3 θ 4 ] T x = [ θ T θ ˙ T ] T u = [ T 1 T 2 ] T .
The nonlinear equation of motion of this robot can be expressed as [30]:
M ( θ ) θ ¨ + V ( θ , θ ˙ ) + C θ ˙ + D ( θ ˙ ) + K θ = T ,
where M ( θ ) is the inertia matrix, V ( θ , θ ˙ ) is the vector of Coriolis and centrifugal functions, C is the viscous damping coefficient matrix, D ( θ ˙ ) is the Coulombic friction vector, K is the stiffness coefficient matrix, and T is the input torque vector. The inertia matrix is given by:
M ( θ ) = [ M 1 ( θ ) M 12 M 21 M 2 ] M 12 = M 21 T = [ 0 J 4 + J 6 r 0 0 ] M 2 = [ J 3 + J 5 r 2 0 0 J 4 + J 6 r 2 ] M 1 ( θ ) = [ p 1 + ( m 2 a 2 2 + J 2 ) + 2 ( l 1 m 2 a 2 ) cos ( θ 2 ) ( m 2 a 2 2 + J 2 ) + ( l 1 m 2 a 2 ) cos ( θ 2 ) ( m 2 a 2 2 + J 2 ) + ( l 1 m 2 a 2 ) cos ( θ 2 ) ( m 2 a 2 2 + J 2 ) ]
where mi is the lumped mass of components, Ji is the moment of inertia of components, li is the length of links, and a1 and a2 denote the offset from the center of gravity of the first and second link to the first and second joint, respectively. In addition, b1 is the distance between the second motor and the first joint, and r is the gear ratio of the chain drives.
The vector of the Coriolis and centrifugal functions is
V ( θ , θ ˙ ) = [ ( l 1 m 2 a 2 ) ( 2 θ ˙ 1 θ ˙ 2 + θ ˙ 2 2 ) sin ( θ 2 ) ( l 1 m 2 a 2 ) θ ˙ 1 2 sin ( θ 2 ) 0 0 ] ,
and the viscous damping matrix can be written as
C = [ c 1 + c 5 c 5 r c 2 + c 6 c 6 r c 5 r c 3 + c 5 r 2 c 6 r c 4 + c 6 r 2 ] ,
where ci is the viscous friction coefficients. The vector of Coulombic friction is given by
D ( θ ˙ ) = [ d 1 sign ( θ ˙ 1 ) d 2 sign ( θ ˙ 2 ) d 3 sign ( θ ˙ 3 ) d 4 sign ( θ ˙ 4 ) ] ,
where di is the friction torque at each joint. The matrix of stiffness coefficients is given by
K = [ k 5 k 5 r k 6 k 6 r k 5 r k 5 r 2 k 6 r k 6 r 2 ] ,
where ki denotes the coefficients of the torsional springs at the flexible joints. The torque vector is
T = [ 0 0 T 1 T 2 ] T .
Table 1 lists the estimated values of the robot’s physical parameters. However, deriving the mathematical model and obtaining an accurate estimation of each parameter is quite difficult and time-consuming. The purpose of this paper is to develop a methodology of T-S model construction and controller design when the analytical mathematical model detailed above is not available. Hence, the Equations (18)–(24) and the parameters in Table 1 are only used to validate the fuzzy controller via simulation.
In experiments, four encoders are mounted to measure the four arm and motor angles, and the angular velocities and accelerations are obtained from the angular position signals by the central finite difference method:
θ ˙ i = θ i [ k + 1 ] θ i [ k ] Δ T θ ¨ i = θ i [ k + 1 ] 2 θ i [ k ] + θ i [ k 1 ] Δ T 2 ,
where θi[k], k = 1, 2, ⋯ are the values of discrete angular position measurements and ∆T = 0.001 s is the sampling time. To reduce noises in the velocity and acceleration signals that mainly originate from the quantization of the position signal, a zero-phase low-pass Butterworth filter with 150 Hz cutoff frequency was applied to the position signals. To avoid the transient effect from filtering in both directions when initializing the filter states, experiments were started with a 0.5 s rest period. This period and the last 0.5 s of the experiment were removed from the data set.
To obtain the neuro-fuzzy model of the robot, the motors were excited by sine sweep torques. A combination of a 5-s 1 Hz sine wave and a subsequent 5-s sine sweep signal with an initial frequency of 1 Hz and a final frequency of 5 Hz was used to excite the shoulder motor and elbow motor, as shown in Figure 4. Then, 2000 training data are evenly drawn from the collected input-output pairs and used to train the neuro-fuzzy model. 500 testing data that are different from the training data are used to test the accuracy of the neuro-fuzzy model and the subsequent T-S fuzzy models. The T-S fuzzy models in this paper are all constructed with triangular membership functions due to their simplicity.
To determine the proper number of operating points for linearization, the grade of the nonlinearity of each state variable is evaluated as follows: first, the system is linearized at the equilibrium point x = 0, where the result is Ax=0. Then by randomly changing one state variable xi in the operating range and fix all the other state variables, a series of matrices Axi are obtained. They are compared to Ax=0 in terms of the 2-norm of difference. The results are summarized in Table 2. The idea is that if the state variable xi is linear or affine in the system, then identical A matrices should be obtained at different positions of xi. Otherwise, xi should be regarded as nonlinear. From Table 2, it can be seen that the variables θ 2 , θ ˙ 1 and θ ˙ 2 are sources of nonlinearity around the origin, among which θ2 is the most significant one. The other variables can be treated as linear.
Two sets of operating points are selected for comparison: the first set consists of 27 points based on the combination of uniformly chosen positions θ2 = [−0.7, 0, 0.7] (rad), θ ˙ 1 = [−1.0, 0, 1.0] (rad/s) and θ ˙ 2 = [−1.0, 0, 1.0] (rad/s); the second set consists of only 12 points, the positions are chosen by the ES optimization: θ2 = [−0.9575, −0.0181, 0.9479] (rad), θ ˙ 1 = [−0.9034, 0.5891] (rad/s) and θ ˙ 2 = [−1.5, 1.5] (rad/s). θ2 is assigned three positions while the other two are assigned only two positions as θ2 is the most significant source of nonlinearity according to Table 2.
In Figure 5, it can be seen that the outputs predicted by the T-S fuzzy models are very close to the testing experimental data. The NDEIs of the neuro-fuzzy model and the two T-S fuzzy models, which are used as the criteria of global approximation, are listed in Table 3. It can be seen that the T-S fuzzy models derived from the neuro-fuzzy model can provide an accurate approximation of the original nonlinear system. The 12 points T-S fuzzy model with optimized operating points gives an even better approximation than the 27 points one with uniformly distributed operating points.
To test the controller performance, the reference commands to be tracked are given by
r θ 1 = r θ 2 = { 0.4 t 2 t 0.4 0.064 + 0.32 ( t 0.4 ) 0.4 < t 1.875 0.6 0.4 ( t 2.275 ) 2 1.875 < t 2.275 0.6 t > 2.275 .
Because the gear ratio is 5, the command inputs for θ3 and θ4 are given by
r θ 3 = 5 r θ 1 r θ 4 = 5 r θ 2 .
The command inputs for the angular velocities are
r θ ˙ 1 = r θ ˙ 2 = { 0.8 t t 0.4 0.32 0.4 < t 1.875 0.8 ( t 2.275 ) 1.875 < t 2.275 0 t > 2.275 r θ ˙ 3 = 5 r θ ˙ 1 r θ ˙ 4 = 5 r θ ˙ 2
The performance index is defined as:
J = 0 4 { 10,000 [ ( θ 1 r θ 1 ) 2 + ( θ 2 r θ 2 ) 2 ] + [ ( θ 3 r θ 3 ) 2 + ( θ 4 r θ 4 ) 2 ] + 1000 [ ( θ ˙ 1 r θ ˙ 1 ) 2 + ( θ ˙ 2 r θ ˙ 2 ) 2 ] + [ ( θ ˙ 3 r θ ˙ 3 ) 2 + ( θ ˙ 4 r θ ˙ 4 ) 2 ] + 0.1 T 1 2 + 0.1 T 2 2 } d t
The fuzzy optimal control systems derived from the T-S fuzzy models with 27 and 12 points were simulated using the mathematical model in MATLAB with initial condition x = 0. To obtain an assessment of the proposed control algorithm, it is necessary to compare this paradigm to alternative control techniques. Therefore, a PID controller was also designed:
[ T 1 T 2 ] = [ 0.4 e 1 + 0.1 e ˙ 1 + 0.1 e 1 d t 0.4 e 2 + 0.1 e ˙ 2 + e 2 d t ] ,
where e1 and e2 are tracking error of θ1 and θ2. The PID gains were based on [32], in which a PID controller was designed for this robot manipulator. Figure 6 shows the simulated responses of the flexible robot system with the fuzzy controllers and PID controller, while the mean square errors (MSEs) of command tracking are compared in Table 4. The performances of the fuzzy controllers are evidently better than that of the PID controller. The PID responses exhibit larger overshoot and longer settling time, which leads to larger MSE. The results of the 12 points T-S fuzzy model are almost the same as the results of the 27 points one, as the non-significant difference of modeling errors may only yield trivial effect on the control system. Since the number of linearization is reduced, the 12 points T-S fuzzy model is more computationally efficient.
The fuzzy optimal controllers were then implemented on the robot. The experimental results are shown in Figure 7. The achieved tracking performances are good and close to the simulation results, except for some lags and oscillations along the trajectories. These oscillations are caused by the flexible joints of the robot, which are very difficult to completely eliminate.

6. Conclusions

An explicit procedure of establishing the T-S fuzzy models of unknown nonlinear systems from experimental data is presented: (1) the local constituent models are obtained by direct linearization of neuro-fuzzy models trained from data so that they are close approximations to the local linearization of the original nonlinear systems; (2) The operating points for linearization are optimized using the evolutionary strategy to achieve good global approximation with a reduced number of linearization. The controller design based on T-S fuzzy model has also been discussed. The derived fuzzy optimal controller was applied to a nonlinear flexible-joint robot system and compared with the alternative control technique, which demonstrated the effectiveness of the proposed method for controlling nonlinear dynamic systems whose analytical models are not available. Compared with the existing T-S model methods, the proposed method could more effectively address the tradeoff between local and global approximation for complex systems. Moreover, since the computational methods of the proposed method are based on a set of well-developed tools (e.g., FBFN training, ES optimization), it can be readily used for data-driven system identification and controller design in realistic applications. The future work might include studying the effect of uncertainty in data and the modeling errors of the neuro-fuzzy and T-S fuzzy models, such that the robustness of the T-S fuzzy control scheme can be more explicitly addressed.

Author Contributions

Conceptualization, B.Z. and Y.C.S.; methodology, B.Z. and Y.C.S.; software, B.Z.; validation, B.Z.; formal analysis, B.Z.; investigation, B.Z.; resources, Y.C.S.; data curation, B.Z.; writing—original draft preparation, B.Z.; writing—review and editing, Y.C.S.; visualization, B.Z.; supervision, Y.C.S.; project administration, Y.C.S.; funding acquisition, Y.C.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are available on request from the corresponding author, Upon reasonable request, and the code used during the study proprietary.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Fantuzzi, C.; Rovatti, R. On the approximation capabilities of the homogeneous Takagi-Sugeno model. In Proceedings of the Fifth IEEE International Conference on Fuzzy Systems, New Orleans, LA, USA, 11 September 1996; pp. 1067–1072. [Google Scholar]
  2. Johansen, T.A.; Shorten, R.; Murray, S. On the interpretation and identification of dynamic Takagi–Sugeno models. IEEE Trans. Fuzzy Syst. 2000, 8, 297–313. [Google Scholar] [CrossRef] [Green Version]
  3. Sugeno, M. On stability of fuzzy systems expressed by fuzzy rules with singleton consequents. IEEE Trans. Fuzzy Syst. 1999, 7, 201–224. [Google Scholar] [CrossRef]
  4. Khalil, H.K.; Grizzle, J.W. Nonlinear Systems, 3rd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2002. [Google Scholar]
  5. Takagi, T.; Sugeno, M. Fuzzy identification of systems and its applications to modeling and control. IEEE Trans. Syst. Man Cybern. 1985, 15, 116–132. [Google Scholar] [CrossRef]
  6. Feng, G. A Survey on Analysis and Design of Model-Based Fuzzy Control Systems. IEEE Trans. Fuzzy Syst. 2006, 14, 676–697. [Google Scholar] [CrossRef] [Green Version]
  7. Sala, A.; Arino, C. Asymptotically necessary and sufficient conditions for stability and performance in fuzzy control: Applications of Polya’s theorem. Fuzzy Sets Syst. 2007, 158, 2671–2686. [Google Scholar] [CrossRef]
  8. Chen, C.W. Application of fuzzy-model-based control to nonlinear structural systems with time delay: An LMI method. J. Vib. Control 2010, 16, 1651–1672. [Google Scholar] [CrossRef]
  9. Lam, H.K. LMI-Based Stability Analysis for Fuzzy-Model-Based Control Systems Using Artificial T–S Fuzzy Model. IEEE Trans. Fuzzy Syst. 2011, 19, 505–513. [Google Scholar] [CrossRef]
  10. Lam, H.K.; Lauber, J. Membership-function-dependent stability analysis of fuzzy model based control systems using fuzzy Lyapunov functions. Inf. Sci. 2013, 232, 253–266. [Google Scholar] [CrossRef]
  11. Li, P.W.; Zhang, W. Towards a unified stability analysis of continuous-time TS model-based fuzzy control systems. Int. J. Model. Identif. Control 2019, 31, 113–123. [Google Scholar] [CrossRef]
  12. Zhao, T.; Huang, M.B.; Dian, S.Y. Robust stability and stabilization conditions for nonlinear networked control systems with network-induced delay via TS fuzzy model. IEEE Trans. Fuzzy Syst. 2019. [Google Scholar] [CrossRef]
  13. Li, C.; Zhou, J.; Fu, B.; Kou, P.; Xiao, J. T–S fuzzy model identification with a gravitational search-based hyperplane clustering algorithm. IEEE Trans. Fuzzy Syst. 2011, 20, 305–317. [Google Scholar] [CrossRef]
  14. Zou, W.; Li, C.; Zhang, N. A T–S fuzzy model identification approach based on a modified inter type-2 FRCM algorithm. IEEE Trans. Fuzzy Syst. 2017, 26, 1104–1113. [Google Scholar] [CrossRef]
  15. Stefan, J.; Christoph, H.; Nikolaus, K. Total least squares in fuzzy system identification: An application to an industrial engine. Eng. Appl. Artif. Intell. 2008, 21, 1277–1288. [Google Scholar]
  16. Li, L.Q.; Wang, X.L.; Xie, W.X.; Liu, Z.X. A novel recursive TS fuzzy semantic modeling approach for discrete state-space systems. Neurocomputing 2019, 340, 222–232. [Google Scholar] [CrossRef]
  17. Roy, A.; Briczinski, S.J.; Doherty, J.F.; Mathews, J.D. Genetic algorithm based parameter estimation technique for fragmenting radar meteor head echoes. IEEE Geosci. Remote Sens. Lett. 2009, 6, 363–367. [Google Scholar] [CrossRef]
  18. Lin, G.H.; Zhao, K.Y.; Wan, Q. Takagi-Sugeno fuzzy model identification using coevolution particle swarm optimization with multi-strategy. Appl. Intell. 2016, 45, 187–197. [Google Scholar] [CrossRef]
  19. Yen, J.; Wang, L.; Gillespie, C.W. Improving the interpretability of TSK fuzzy models by combining global learning and local learning. IEEE Trans. Fuzzy Syst. 1998, 6, 530–537. [Google Scholar] [CrossRef]
  20. Wang, L.X.; Mendel, J.M. Fuzzy basis functions, universal approximation, and orthogonal least Squares learning. IEEE Trans. Neural Netw. 1992, 3, 807–814. [Google Scholar] [CrossRef] [Green Version]
  21. Kosko, B. Fuzzy systems as universal approximators. IEEE Trans. Comput. 1994, 43, 1329–1333. [Google Scholar] [CrossRef]
  22. Lee, C.W.; Shin, Y.C. Construction of fuzzy systems using least-squares method and genetic algorithm. Fuzzy Sets Syst. 2003, 137, 297–323. [Google Scholar] [CrossRef]
  23. Teixeira, M.; Żak, S.H. Stabilizing controller design for uncertain nonlinear systems using fuzzy models. IEEE Trans. Fuzzy Syst. 1999, 7, 133–142. [Google Scholar] [CrossRef]
  24. Lee, C.W.; Shin, Y.C. Evolutionary modelling and optimization of grinding processes. Int. J. Prod. Res. 2000, 38, 2787–2813. [Google Scholar] [CrossRef]
  25. Ho, W.H.; Chen, S.H.; Chen, I.T.; Chou, J.H.; Shu, C.C. Design of stable and quadratic-optimal static output feedback controllers for TS fuzzy-model-based control systems: An integrative computational approach. Int. J. Innov. Comput. Inf. Control 2012, 8, 403–418. [Google Scholar]
  26. Kirk, D.E. Optimal Control Theory; Prentice Hall: Englewood Cliffs, NJ, USA, 1970. [Google Scholar]
  27. Kim, E.; Kim, S. Stability analysis and synthesis for an affine fuzzy control system via LMI and ILMI: A continuous case. IEEE Trans. Fuzzy Syst. 2002, 10, 391–400. [Google Scholar]
  28. Ma, X.J.; Sun, Z.Q.; He, Y.Y. Analysis and design of fuzzy controller and fuzzy observer. IEEE Trans. Fuzzy Syst. 1998, 6, 41–51. [Google Scholar]
  29. Mohamed, Z.; Tokhi, M.O. Command shaping techniques for vibration control of a flexible robot manipulator. Mechatronics 2004, 14, 69–90. [Google Scholar] [CrossRef] [Green Version]
  30. Nho, H.C. An Experimental and Theoretical Study of Various Control Approaches to Flexible-Joint Robot Manipulator Undergoing Payload Changes. Ph.D. Thesis, Purdue University, West Lafayette, IN, USA, 2004. [Google Scholar]
  31. Chatlatanagulchai, W. Backstepping Intelligent Control Applied to a Flexible-Joint Robot Manipulator. Ph.D. Thesis, Purdue University, West Lafayette, IN, USA, 2006. [Google Scholar]
  32. Chatlatanagulchai, W.; Meckl, P.H. Model-independent control of a flexible-joint robot manipulator. J. Dyn. Syst. Meas. Control 2009, 131, 041003. [Google Scholar] [CrossRef]
Figure 1. Structure of the FBFN.
Figure 1. Structure of the FBFN.
Applsci 11 00062 g001
Figure 2. Evolutionary Strategy for selecting the operating points of linearization.
Figure 2. Evolutionary Strategy for selecting the operating points of linearization.
Applsci 11 00062 g002
Figure 3. The two-link flexible-joint robot manipulator: physical photograph (left), top-view schematic diagram (right).
Figure 3. The two-link flexible-joint robot manipulator: physical photograph (left), top-view schematic diagram (right).
Applsci 11 00062 g003
Figure 4. Sine sweep signals to motors.
Figure 4. Sine sweep signals to motors.
Applsci 11 00062 g004
Figure 5. Experimental data and predicted outputs from the T-S fuzzy models.
Figure 5. Experimental data and predicted outputs from the T-S fuzzy models.
Applsci 11 00062 g005
Figure 6. Simulation results of the fuzzy optimal controllers for the flexible robot.
Figure 6. Simulation results of the fuzzy optimal controllers for the flexible robot.
Applsci 11 00062 g006
Figure 7. Experimental results of the fuzzy optimal controllers for the flexible robot.
Figure 7. Experimental results of the fuzzy optimal controllers for the flexible robot.
Applsci 11 00062 g007
Table 1. Estimated Values of the Robot’s Physical Parameters [31].
Table 1. Estimated Values of the Robot’s Physical Parameters [31].
ParameterValueParameterValue
p10.1402 kgm2/radc41.4975 × 10−3 Nms/rad
m2a22 + J20.01962 kgm2/radc50.005 Nms/rad
l1m2a20.02338 kgm2/radc68.128 × 10−3 Nms/rad
J34.1751 × 10−5 kgm2/radk52.848 Nm/rad
J47.5429 × 10−4 kgm2/radk62.848 Nm/rad
J50.025 kgm2/radd10.01987 Nm
J60.025 kgm2/radd20.0323 Nm
c10.04 Nms/radd30.0053 Nm
c20.02143 Nms/radd40.0271Nm
c31.8937 × 10−4 Nms/radr5
Table 2. Inspection of the source of nonlinearity.
Table 2. Inspection of the source of nonlinearity.
xiθ1θ2θ3θ4θ1dotθ2dotθ3dotθ4dot
mean A x i A x = 0 085.89003.679.1300
Table 3. NDEIs of the neuro-fuzzy model and T-S fuzzy models.
Table 3. NDEIs of the neuro-fuzzy model and T-S fuzzy models.
Neuro-Fuzzy ModelT-S Fuzzy Model with Uniformly Distributed 27 PointsT-S Fuzzy Model with Optimized 12 Points
NDEI0.02670.06970.0477
Table 4. MSEs of command tracking with the designed controllers.
Table 4. MSEs of command tracking with the designed controllers.
T-S Fuzzy Model with 27 PointsT-S Fuzzy Model with 12 PointsPID
θ12.95 × 1042.98 × 1041.20 × 103
θ27.31 × 1048.06 × 1041.22 × 103
θ30.01690.01700.0744
θ40.00840.00970.0268
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhang, B.; Shin, Y.C. A Data-Driven Approach of Takagi-Sugeno Fuzzy Control of Unknown Nonlinear Systems. Appl. Sci. 2021, 11, 62. https://doi.org/10.3390/app11010062

AMA Style

Zhang B, Shin YC. A Data-Driven Approach of Takagi-Sugeno Fuzzy Control of Unknown Nonlinear Systems. Applied Sciences. 2021; 11(1):62. https://doi.org/10.3390/app11010062

Chicago/Turabian Style

Zhang, Bin, and Yung C. Shin. 2021. "A Data-Driven Approach of Takagi-Sugeno Fuzzy Control of Unknown Nonlinear Systems" Applied Sciences 11, no. 1: 62. https://doi.org/10.3390/app11010062

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop