1. Introduction
The most common models in fuzzy control, the Mamdani model [
1] and Takagi–Sugeno (T-S) model [
2], are traditionally used to model non-linear systems. The main difference lies in the consequent part of the fuzzy rules. Mamdani fuzzy systems use fuzzy sets as the consequents of the rules, while T-S fuzzy systems use affine functions of the input variables as the consequents of the rules. From a linguistic perspective, Mamdani-type fuzzy systems are understandable since fuzzy linguistic variables are used in both premises and consequents [
3]. On the other hand, in the T-S model, the number of free parameters is restricted by a suitable structure of the consequent functions, and the antecedent of each rule defines a validity region for the corresponding affine consequent model. It can be considered an optimization problem [
4,
5]. This work deals with the dynamic analysis of non-linear systems rather than control design. Therefore, the Mamdani model would be the appropriate choice.
The structure of the fuzzy model using the product-sum-gravity method was used [
6,
7] to obtain a flat surface in the inference map and then modify the membership functions with linguistic operators. The min-max-gravity method [
8] does not obtain a flat surface in the inference map due to the non-linearity of these operators.
Knowledge of a system is essential for applying fuzzy logic. Combining it with linguistic information (by experts) and numerical data improves the ability to represent complex non-linear functions with simple local linear models [
9]. Although these linguistic descriptions are not precise, they provide essential information about the system. A human operator can determine a set of successful control rules based solely on the linguistic descriptions of the process. This is based on Mamdani Fuzzy Inference Systems in linguistic synthesis [
10]. In recent work, in [
11], the authors develop the “Linguistic Compositional Variable” to represent mole fractions of components of each phase as a fuzzy variable. As a result, the number of rules is significantly reduced. In [
12], the authors use the cloud model to represent the linguistic variables. Instead, [
13] uses a Mamdani Fuzzy Inference Network (MFIN) with an advanced optimization technique. The study of evaluative linguistic expressions has crossed the field of theoretical linguistics and has attracted interest in very different research areas, such as artificial intelligence, psychology, or cognitive linguistics [
14].
Applying a simple arithmetic operation on the fuzzy sets will modify them. It tends to consider the adverb “very” interpretation as the result of squaring a membership function, which causes the membership function to take smaller values, concentrating on the larger ones. Zadeh [
15] called this concentration. The opposite effect is dilation, which would correspond to the interpretation of the adverb “more or less”, which would be implemented as the square root of the membership function. These are linguistic variables used to describe overly complex or ill-defined phenomena typical of non-linear systems. These modifiers have been used for interpretable context adaptation [
16,
17]. In [
18], an extended fuzzy hedge set is used to create a more detailed classification of client sentiments, achieving better performance than without them. In some approaches, they are used to create more compact rules, such as [
19].
The basic first-order system is described with a single real root, while the underdamped second-order system has a single pair of complex roots. Many devices and processes are practically well-modelled by either of these two classes, and complex systems can be considered a combination of several first-order and/or second-order forms [
20].
In previous work, the authors have studied the transient response of feedback systems [
21], using the Takagi–Sugeno fuzzy model for system identification [
22,
23,
24] or applying fuzzy logic to improve Kalman filtering [
25,
26]. In this work, the analysis of the transient response of fuzzy systems is proposed using the Mamdani model, a new approach that has not been previously performed.
The literature on fuzzy model identification has not adequately addressed issues such as efficient experiment design, model class, modelling error, target control specifications, etc. Very few publications address the dynamic properties of fuzzy models [
27]. Today, the dynamic analysis of fuzzy systems tends to demonstrate system stability, which is an important problem for controller designs [
28,
29,
30,
31]. To guarantee stability, a mathematical model of the plant is needed. There are many works on fuzzy control analysis using phase plane methods [
32,
33,
34]. However, these works focus on control and not on dynamic analysis.
This work proposes an analysis of the dynamical behaviour of first and second-order fuzzy systems and to be able to predict or approximate parameter values, such as their settling time and overshoot. To predict the dynamical behaviour of a first or second-order system, we will propose the following steps: (1) use triangular membership functions to identify the system, and then fit the model by applying the concentration or dilation linguistic operator or using known membership functions to fit the model; (2) calculate the corresponding time characteristics with the obtained results; (3) estimate how much the real dynamic characteristics deviate from the previous ones through the plots we propose experimentally.
The main aim of this work is to provide a dynamic analysis of fuzzy systems. The paper is organized as follows: Section provides a review of fuzzy systems for dynamic modelling. The Fuzzy Mamdani-type model is explained in
Section 2. The settling time for first-order fuzzy systems is calculated in
Section 3. The performance of fuzzy second-order dynamical systems is presented in
Section 4. In
Section 5, the proposed methods are applied to tank and simple pendulum systems.
2. Mamdani Model
In a general case, the dynamics of the non-linear system are described by the following equation:
being
and
f a continuous or discrete non-linear function [
35]. The main aim is to build non-linear models capable of reflecting the dynamics of
f. System modelling helps to visualise the behaviour and basic structure of processes. Let us suppose that
are the fuzzy sets for input
,
.
is the number of fuzzy sets for
, and
are the corresponding membership functions; see
Figure 1.
Consider the fuzzy sets
of the output
,
, with the corresponding membership functions
, (see
Figure 2). Where
are their centres of gravity, and all their areas
are the same. Then, each rule
of the Mamdani model can be defined using the centres of gravity instead of the fuzzy sets for each consequent [
36,
37]:
Therefore, as more sets are used in the measurable variable, the output looks as follows:
where
3. Dynamic Analysis of Non-Linear Fuzzy Systems: First-Order Model
The first-order model, according to [
35], is expressed as:
In the continuos case,
. It is assumed that
is a fuzzy set for input
.
is the number of fuzzy sets for
, and
are the corresponding membership functions (see
Figure 1), which are overlapped by pairs. This means,
For the continuous case and for a first-order model,
With zero initial conditions. Rewriting the differential equation as follows:
Which can be written as follows:
3.1. First-Order Model
A fuzzy dynamic model equivalent to the linear first-order dynamic model can be obtained by using the following logical operators in the fuzzy inference process; the product for conjunction, the product for implication, the sum for aggregation and the centroid for defuzzification [
6,
37].
Since the membership functions for
u and
x are:
The output of the system can also be computed by applying (
3)
where:
Which matches Equation (
10).
Input and output scaling factors [
38] will facilitate model fitting by modifying
. Thus, the universe of discourse will be normalised within the interval [−1, 1], as shown in
Figure 3.
The number of sets used in the input can be modified by applying scaling factors. For example, from 2 to 3 fuzzy sets, as shown in the output inference map in
Figure 4 below.
The scaling factors will be as follows for the input
, at the output
(see
Figure 5).
After obtaining an equivalent first-order fuzzy model, it is possible to modify the triangular function with linguistic hedges and thus adjust the obtained model. Usually, the model is adjusted by replacing the triangular membership functions with existing membership functions.
3.2. Linguistic Hedges in Model
A linguistic variable carries with it the concept of fuzzy set qualifiers, called hedges. The linguistic variables describe phenomena that are too complex or poorly defined to be described in quantitative terms.
Traditionally, modifiers of fuzzy sets have been used, which are called linguistic labels, which in natural language, are equivalent to adverbs. Interpreting these statements in the fuzzy model requires the composition of the membership function with a simple arithmetic operation [
15].
As a special case of
when
, the operation of concentration (very) can be described as follows:
It is common to consider the interpretation of the adverb “very” as the square of the original membership function, i.e., “The system is very fast” would be interpreted as:
The opposite case of
when
, is the dilation (more-or-less) expressed by
The interpretation of the adverb “more-or-less” would be implemented as the square root of the membership function. It would be interpreted as:
3.3. First-Order Fuzzy Model with Linguistic Hedges
A model with triangular membership functions is developed, which will now be modified with the linguistic hedges type mentioned above, such as dilation and concentration. We will use a non-linear model that is represented in this way:
, in a fuzzy system [
39]. It will be a concentration operation
, and it is shown in
Figure 6. If the model is
[
37], this represents a dilation
(see
Figure 7). The linguistic hedges used for the concentration at input x will be
,
,
. The dilation of x is expressed by linguistic hedges
,
,
.
The resultant Mamdani model:
The scaling factors for the concentration and dilation will be as follows for the input
valid for
, at the output
(see
Figure 5).
The response of a unit step using linguistic operators, concentration and dilation are compared to a first-order linear system in
Figure 8. This graph indicates that the settling time (
) is less than that of the first-order linear system in concentration, which implies that it is faster than the first-order linear system. On the contrary, the
in dilation is higher than that of the first-order linear system. Therefore, the system is slower compared to the first-order system. This is valid only for the first 10 s. After that, it is observed that the dilation is faster than the concentration.
3.4. Dynamic Characteristics of a First-Order Fuzzy System
Once the model has been adjusted, a dynamic analysis is performed on this first-order system for input
u, and there are two fuzzy sets for
,
,
, as shown in
Figure 9.
The input of a step starts from a reference point to another , remaining at a final value of . To reach the steady-state regime, it is theoretically required that . However, it is important to determine a practical value of the time at which the system reaches its final value.
It is assumed that the system is initially in equilibrium, i.e.,
and
. Then, according to [
35], the settling time of
when
becomes
will have the following dynamics:
To calculate the settling time, we will use the criterion of 95% of the final value so that the response reaches its final value as performed in (
15). There are
fuzzy sets, as shown in
Figure 1. This can be calculated as the response to a step input where the system response is part of a reference point
to another
, remaining in a final value
.
t = 0 is defined to be the beginning of the response to the step input and ends at
to obtain the settling time. The limits of the integral will be,
When a system has a delay, the dynamics of the system will have the same behaviour in the transient response. It will also be settled at the same steady-state value. The only change is that the system will have a time delay
responding once the input signal is applied to the system. In this case, a step input is defined as
when the response to the step input begins and ends at
to calculate the settling time. The limits of the integral will be,
4. Dynamic Analysis of Non-Linear Fuzzy Systems: Second-Order Model
This section aims to provide a fuzzy dynamic system analysis. This work will be extended to the technique of fuzzy non-linear analysis. Theoretical analysis is often the most efficient way to explore the characteristics of a system. A continuous system can be represented by differential equations using the values of the input and output variables. For the second-order case of three input variables and one output variable, such an equation will be obtained as follows:
System variables are defined as follows:
Often, the input u is zero because the system is stationary or time-invariant.
Reviewing the literature, one of the graphical methods used is phase-plane analysis. This plane is two-dimensional and is helpful for second-order systems.
Although the simulation is important for non-linear control, it must be supported by theoretical analysis. Blind simulation of non-linear systems is likely to yield few or erroneous results. This is especially true because of the different behaviours that non-linear systems can exhibit.
With zero initial conditions. As with first-order systems, a standard form has been established. Rewriting the differential equation as follows:
Two parameters can be used to describe the characteristics of the second-order transient response in the same way that the time constant of the first-order system is determined. The two quantities are known as the natural frequency and the relative damping factor. The resultant transfer function becomes:
4.1. Second-Order Approach
A fuzzy dynamic model equivalent to the linear second-order dynamic model can be obtained by using the following logical operators in the fuzzy inference process; the product for conjunction, the product for implication, the sum for aggregation and the centroid for defuzzification. These operators are used so that the output of the fuzzy system is linear. In the second-order model, we obtain that , , , , and can be approximated. Another important thing to consider is the universe of discourse, which can be obtained from the phase plane.
These rules proved that the fuzzy system is equivalent to a linear system.
Since the membership functions for
x and
are:
The output of the system can be computed as follows:
by applying
where:
Which matches the polynomial in Equation ((
23))
To allow the adjustments of
and
, input and output scaling factors will be used. For this purpose, the universe of discourse will be left normalised to the interval [−1, 1] (see
Figure 10). For the output, the centre of gravity will be
and will be multiplied by the maximum value of the output. In this case, it becomes
. The input variable
x, which is within the interval [−2K, 2K], will be normalised to
, and then the variable
will be normalised to
. Next,
u will be normalised to
.
The number of sets used in the input can be modified by applying scaling factors. For example, from 2 to 3 fuzzy sets, as shown in the output inference map in
Figure 11 below.
The scaling factors will be as follows for the inputs
,
and
at the output
(see
Figure 12).
It is possible to modify the triangular function with linguistic hedges and thus adjust the obtained model. Most models are adjusted by replacing triangular membership functions with existing membership functions.
4.2. Second-Order Fuzzy Model with Linguistic Hedges
A model with triangular membership functions was developed, which will now be modified with the linguistic hedges type mentioned above, such as dilation and concentration. We will use a non-linear model that is represented in this way:
, in a fuzzy system. It will be a concentration operation
, and it is shown in
Figure 13. If the model is
, this represents a dilation
(see
Figure 14). The linguistic hedges used for the concentration at input x will be
,
,
. The dilation of x is expressed by linguistic hedges
,
,
.
The resultant Mamdani model:
The scaling factors for the concentration will be as follows for the inputs , and , at the output .
The scaling factors for the dilation will be as follows for the inputs , and , at the output .
The response of a unit step using linguistic operators, concentration and dilation is compared to a second-order linear system in
Figure 15. This graph indicates that the peak time (tp) is less than that of the second-order linear system in concentration, which implies that it is faster than the second-order linear system. On the contrary, the tp value is higher in dilation than that of the second-order linear system. Therefore, the system is slower compared to the second-order linear system. This is valid only for the first 20 s. After that, it is observed that the dilation is faster than the concentration.
4.3. Performance of Fuzzy Second-Order Dynamical Systems
Standard performance measures are usually defined in terms of the step response of a system, as shown in
Figure 15. The speed response depends on the peak time (tp). The similarity between the transient response and the step input is measured by the per cent of overshoot (Mp). The transient response of the system can be described by two factors: the speed of the response and the peak time. The closeness of the response to the desired one is represented by the overshoot and settling time [
40].
In this case, explicit dynamic specification, as Mp and tp, cannot be obtained as in the first-order case. A significant number of simulations to obtain the relationship between Mp, tp and
are performed. This will be applied to concentration and dilation, as seen previously. In
Figure 16 and
Figure 17, the per cent overshoot is shown as a function of the relative damping ratio,
. In addition,
Figure 16 and
Figure 17 present the per cent overshoot and peak time as a function of the relative damping ratio. The dotted line indicates the performance of the second-order linear system, while the solid one corresponds to the non-linear system. As shown in
Figure 16, the segmented line shows the concentration of a fuzzy system, while in
Figure 17, the dilation of a fuzzy system is shown. This analysis is valid for dynamical systems; undamped, underdamped and critically damped. In the case of overdamped, it has no peak time and per cent overshoot.
6. Conclusions
In this article, a dynamic analysis of first-order and second-order systems was performed. First, a non-linear first-order dynamic system is modelled, and the settling time is determined using the Mamdani fuzzy model. It is deduced that the higher the slope, as the derivative approaches zero, the shorter the settling time, and the lower the slope, the longer the settling time is. Furthermore, it has been shown that the settling time is accurately obtained by switching from a triangular membership function formulation to linguistic variables for non-linear models.
Secondly, the specifications of the time-domain features, such as overshoot percentage and peak time, were graphed and compared with the second-order model features. The percentage of Mp was determined to reach zero when the damping ratio is equal to or greater than one. The percentage of Mp reaches zero when the damping ratio is similar to or greater than one. In both cases, this occurs due to the linguistic hedge of concentration in response to a step input and dilation in response to a step-down input. In these cases, one is shorter than the peak time in second-order linear systems.
Furthermore, when the percentage of Mp reaches zero and the damping ratio is less than one, the linguistic hedge of concentration is in response to a step-down and dilation in response to a step. In the applications section, examples of tank and pendulum models were tested in which the settling time was determined. The performance of different models was compared, and it was demonstrated that the fuzzy model is the best.