SMC Anfis
SMC Anfis
https://www.acadlore.com/journals/JISC
Department of Engineering Physics, Sepuluh Nopember Institute of Technology (ITS), Surabaya, 60111 East
Java, Indonesia
*
Correspondence: Purwadi Agus Darwito ([email protected])
Citation: P. A. Darwito and N. Indayu, “Adaptive Neuro-Fuzzy Inference System based on Sliding Mode Control
for quadcopter trajectory tracking with the presence of external disturbance,” J. Intell Syst. Control, vol. 2, no. 1,
pp. 33-46, 2023. https://doi.org/10.56578/jisc020104.
© 2023 by the author(s). Published by Acadlore Publishing Services Limited, Hong Kong. This article is available for free
download and can be reused and cited, provided that the original published version is credited, under the CC BY 4.0 license.
Abstract: Objective of this study is to develop a novel, effective, and robust Sliding Mode Control (SMC) method
for quadcopters (also called quadrotors) based on Adaptive Neuro-Fuzzy Inference System (ANFIS) for the
purposes of enhancing trajectory tracking performance and realizing safe and reliable flight. In the paper, the
ANFIS was combined with SMC technology to propose a scheme of adaptive robust controller, which is composed
of three sub-controllers, x position controller, y position controller, and z position (altitude) controller. The
proposed method can realize position tracking control of quadcopters in the presence of external disturbances.
With the help of ANFIS, an adjustable gain rather than a fixed gain was established for the SMC controller, the
optimal output could be attained based on a set of rules, and the position control gain was updated by ANFIS,
enabling the SMC to adapt to environmental changes. Through modelling, simulation and comparison,
experimental data verified that the proposed ANFIS-SMC controller outperformed conventional SMC controller
in terms of convergence speed, robustness, accuracy, and stability with a maximum mean error of 0.125 meters in
trajectory tracking. Research findings of this paper could contribute to the development of robust and responsive
control strategies for Unmanned aerial vehicles (UAVs) trajectory tracking by providing valuable insights into the
design of more effective and efficient control systems for UAVs, particularly in the context of dynamic
environmental conditions.
Keywords: Quadcopter (Quadrotor); Adaptive Neuro-Fuzzy Inference System (ANFIS); Sliding Mode Control
(SMC); Unmanned Aerial Vehicle (UAV); trajectory tracking; external disturbance
1. Introduction
Unmanned aerial vehicles (UAVs) have received extensive attention from the engineering community due to
their promising potential in military and civilian applications, such as disaster rescue [1, 2], intelligent surveillance
[3, 4], smart agriculture [5-8], aerial photography [9, 10], mapping [11], industry inspection [12, 13] logistics [14-
16], forest fire-fighting [16], and crop disease monitoring [17-19], etc.. Numerous types of UAVs have been
fabricated and developed as research platforms, among which the quadcopters (also called quadrotors) are the most
popular type because of their considerable merits including autonomous flight, easy construction, simple
maintenance, low cost, onboard vision, vertical take-off and landing [20], hovering ability, and manoeuvrability.
The use of quadcopters is expected to grow rapidly in the future owing to their potentiality to transform many
industries, increase efficiency, reduce costs, and improve safety. Moreover, the evolution of cutting-edge
technologies such as artificial intelligence, machine learning, and computer vision has enhanced the capabilities
of quadcopters, for example, once equipped with sensors and cameras [7, 9, 12], quadcopters can autonomously
collect and analyze data, identify objects and anomalies, and conduct missions without human intervention. As a
result, no doubt quadcopters are indispensable in many industries in the future, to fully exert their many advantages,
it’s a necessary work to design and develop advanced control systems for quadcopters, however, such work is
quite challenging since the highly nonlinear systems [21], underactuated [22] and strongly coupled dynamics make
https://doi.org/10.56578/jisc020104
33
it very difficult to design tracking control for quadcopters in the presence of various uncertainties such
environmental disturbances and unknown loads.
2. Literature Review
World field scholars have designed various controllers for UAVs, classical methods including Proportional
Integral Derivative (PID), Linear Quadratic Regulator (LQR), Backstepping controller, and Sliding Mode Control
(SMC) have been widely used in quadcopters, but each type has its pros and cons, for instance, PID controller can
stabilize the position of quadcopters and successfully eliminate errors in steady state [23], but in cases with
disturbance, its lengthy adjustment time, big overshoot, and large steady-state error are non-negligible
disadvantages [24]. Compared with PID, LQR owns a better robustness in controlling UAV’s position and
orientation coordinates but its response is slower [25]. Backstepping controller has excellent tracking performance,
rapid adjustment, good adaptability in handling underactuation problem with rigid negative feedback form [26],
but its performance is inferior to SMC as it has difficulties in estimating variations in uncertainties and external
disturbances [27]. SMC has become the most popular controller for UAVs thanks to its fast convergence, high
adaptability, and robust to external disturbances and parameter uncertainties, but still, its system stability can be
undermined by chattering issues caused by high-frequency switching [28].
In order to enhance the performance of SMC, researchers have integrated many techniques, for example, Razmi
and Afshinfar [29] introduced Neural Network(NN) adaptive scheme into SMC and proposed a NN-based SMC
controller for position and attitude tracking control of quadcopters in the presence of parameter uncertainties and
external disturbances, which gave a good performance in terms of settling time, maximum overshoot, and steady
state error. Zhao and Jin [30] proposed a SMC algorithm based on Radial Basis Function Neural Network (RBFNN)
to eliminate the effects of model uncertainties and exogenous disturbances on the path tracking controller of
agricultural quadcopter with variable payload, and verified the efficacy and more accurate path tracking
performance of the proposed controller by comparing it experimentally with other classic SMC methods. Darwito
and Wahyuadnyana [31] combined SMC with Back Propagation Neural Network (BPNN) for trajectory tracking
of quadcopters and simulated its effect, their results proved that the proposed scheme could control the quadcopter
in absence and presence of time-varying external disturbances. Zare et al. [32] integrated SMC with fuzzy logic
based on Lyapunov function and optimized it using an intelligent fuzzy-genetic algorithm and applied it to
quadcopter slung load position and attitude control, the proposed method exhibited good stability, robustness, and
tracking performance in case of transient and steady states with external disturbances, and effectively reduced the
chattering phenomenon. Xu and Lu [33] integrated fuzzy control and SMC for accurate trajectory tracking of
quadcopters under time-varying model uncertainties and external disturbances and proved the uniform stability of
the proposed system. Abro et al. [34] proposed a model-free based single-dimension fuzzy Sliding Mode Control
(MFSDF-SMC) scheme for controlling attitude and position of underactuated quadcopters, and compared it with
conventional SMC methods via simulation, results demonstrated that the proposed scheme exhibited robust
trajectory tracking performance. In terms of merging fuzzy control and neural networks, a technique known as
ANFIS (Adaptive Neuro-Fuzzy Inference System) can be used to solve this problem, which has been used in
trajectory tracking of UAVs both as a single control method [35, 36] and in combination with PID [37], and is
capable of minimizing tracking error, exhibiting greater stability in various flight conditions, and ensuring rapid
convergence. Zeghlache et al. [38] developed a hybrid technique for the control of coaxial octorotor UAV in the
presence of actuator faults that combines fuzzy logic, neural networks, and SMC, and verified that the proposed
scheme could significantly reduce the chattering effect and attain good tracking results.
After carefully reviewing existing studies, it’s found that previous scholars have done plenty works combining
conventional or latest methods, particularly SMC, with other techniques to attain better trajectory tracking results
of UAVs by eliminating chatter and developing adaptive SMC controllers with less errors, faster convergence
speed, higher adaptability, and stronger robustness to external disturbances and parameter uncertainties, however,
none of these works has attempted to combine SMC with ANFIS to solve the issue of quadcopter trajectory
tracking. To fill in this research blank, this paper aims to introduce ANFIS, an adaptive control method that can
automatically adjust control parameters, to optimize the SMC of quadcopters, and investigate the effectiveness of
the proposed ANFIS-SMC scheme in quadcopter trajectory tracking in the presence of external disturbances. In
the third chapter, this paper established a mathematical model for quadcopter; in the fourth chapter, the proposed
ANFIS-SMC scheme of quadcopter was introduced in detail; in the fifth chapter, simulation experiment was
performed and the results were given. Conclusions were drawn in the last part.
Main innovations and contributions of this paper are:
(1) This paper innovatively proposed to combine ANFIS with SMC for the quadcopter position control problem
in the presence of external disturbances and developed an novel controller which was divided into three sub-
controllers: x position controller, y position controller, and z position (altitude) controller. The sliding surface
coefficients in each of these controllers were adaptively tuned by the ANFIS method.
(2) An adaptive tuning sliding surface was considered for reducing the duration of the reaching phase, ensuring
34
less sensitivity to parameter variations and disturbances.
(3) The proposed ANFIS-SMC scheme of quadcopter controller was compared with the SMC method proposed
in [31] and its effectiveness and superiority were verified via simulation results.
3. Modelling
Consider a quadcopter system with four propellers, as illustrated in Figure 1, driven by motors positioned in
two orthogonal directions. The system is designed with the body frame denoted by 𝐵 = (𝑥𝑏 , 𝑦𝑏 , 𝑧𝑏 ) and the earth
frame denoted by 𝐸 = (𝑥𝑒 , 𝑦𝑒 , 𝑧𝑒 ).
A rotation matrix is defined to transform from the body frame to the earth frame as follows [39]:
Where, c 𝑥 = cos 𝑥 and s 𝑥 = sin 𝑥 (𝑥 = 𝜙, 𝜃, 𝜓); 𝜙, 𝜃, and 𝜓 are roll angle, pitch angle, and yaw angle,
respectively. Applying Newton-Euler equations, the dynamical equations governing the motion of the 6-DoF
(Degree of Freedom) and underactuated quadcopter are stated as follows [39]:
𝑈1
𝑥̈ = 𝑈𝑥 + 𝐷𝑥
𝑚
𝑈1
𝑦̈ = 𝑈𝑦 + 𝐷𝑦
𝑚
𝑈1
𝑧̈ = (cos 𝜙 cos 𝜃) − 𝑔 + 𝐷𝑧 (2)
𝑚
𝜙̈ = 𝑎1 𝜃̇𝜓̇ − 𝑏1 𝜃̇Ω𝑑 + 𝑐1 𝑈2 + 𝐷𝜙
𝜃̈ = 𝑎2 𝜃̇ 𝜓̇ + 𝑏2 𝜙̇Ω𝑑 + 𝑐2 𝑈3 + 𝐷𝜃
{ 𝜓̈ = 𝑎3 𝜙̇𝜃̇ + 𝑐3 𝑈3 + 𝐷𝜓
where, g denotes the acceleration of gravity, 𝑚 is the mass of the quadcopter, 𝐽𝑟 is the inertia of the rotor;
𝐼𝑥 , 𝐼𝑦 , and 𝐼𝑧 represent the inertia of the quadcopter in directions 𝑥, 𝑦, and 𝑧 respectively; 𝑙 represents the
distance between the rotor and the center of the quadcopter; the global position of the quadrotor is denoted as
𝑥, 𝑦, 𝑧; disturbances are denoted as 𝐷𝑥 , 𝐷𝑦 , 𝐷𝑧 , 𝐷𝜙 , 𝐷𝜃 , 𝐷𝜓 . 𝑈1 represents the overall drag of rotors; 𝑈2 , 𝑈3 , and
𝑈4 are the moments for pitch, roll and yaw, respectively; 𝑈𝑥 and 𝑈𝑦 respectively represent the input virtual
control for quadcopter position in 𝑥 and 𝑦 directions, which can be written as [39]:
35
𝑈𝑥 = (cos 𝜙 sin 𝜃 cos 𝜓 + sin 𝜙 sin 𝜓)
(3)
𝑈𝑦 = (cos 𝜙 sin 𝜃 sin 𝜓 − sin 𝜙 cos 𝜓)
where, Ω𝑑 = (−Ω1 + Ω2 − Ω3 + Ω4 ); Ω𝑖 (𝑖 = 1,2,3,4) is the speed of each rotor; 𝑏 and 𝑑 are the thrust and
drag factors, respectively.
4. Control Design
This chapter gave the design of adaptive SMC for quadcopter trajectory tracking. The ANFIS was applied to
update the gain of position control, allowing SMC to adjust according to environmental changes. The control
scheme is illustrated in Figure 2.
4.1 SMC
The control strategy adopted in this paper was a SMC method based on the backstepping approach [31, 39]. Let
the 𝑥𝑑 , 𝑦𝑑 , 𝑧𝑑 , and 𝜙𝑑 , 𝜃𝑑 , 𝜓𝑑 respectively represent the desired position of quadcopter in 𝑥, 𝑦, 𝑧 directions and
the desired attitude of quadcopter in 𝜙, 𝜃, 𝜓, directions; then the tracking error 𝑒𝑖 , 𝑖 (𝑖 = 𝑥, 𝑦, 𝑧, 𝜙, 𝜃, 𝜓), can be
defined as:
𝑒𝑖 = 𝑖𝑑 − 𝑖 (5)
𝑆𝑖 = 𝑒̇𝑖 + 𝜆𝑖 𝑒𝑖 (6)
1 2
𝑉𝑖 = 𝑆 (8)
2 𝑖
36
To ensure the stability of the system (𝑉𝑖̇ < 0), the sliding mode condition applied is as follows:
According to Eqns. (2) to (10), the control law can be derived as follows:
where, 𝐾1𝑖 , 𝐾2𝑖 , and 𝜆𝑖 are the gains of SMC controller. In this paper, only 𝐾1𝑖 was tuned by ANFIS. The error
and change rate of error were derived using the vectorial distance between the state trajectory and the manifold,
as shown in Eqns. (12) and (13), which are denoted by 𝐿𝑠𝑛 and 𝐿𝑜 [34]:
(𝑒̇𝑄 + 𝜆𝑖 𝑒𝑄 ) (12)
𝐿𝑠𝑛 =
√1 + 𝑘2
(13)
𝐿𝑜 = √𝑁 2 + 𝐿𝑠𝑛 2
4.2 ANFIS-SMC
Designing a fuzzy logic controller can be challenging, particularly for complex systems. Given a set of
input/output training data, ANFIS is a simple method for obtaining a properly tuned fuzzy logic controller [37].
The combined advantages of Fuzzy Inference System (FIS) and neural networks (NN) contribute to
the effectiveness of the ANFIS approach. The proposed neuro-fuzzy network is a five-layer architecture with fuzzy
Sugeno-type system components [36] presented in Figure 4:
Layer 1 (fuzzification): Adaptive nodes present in this layer. The outputs, which are the fuzzy degrees of
membership of the inputs, are determined as follows:
37
𝑂𝑖1 = 𝜇𝐴𝑖 (𝑥), 𝑖 = 1,2,
(14)
𝑂𝑗1 = 𝜇𝐵𝑗 (𝑦), 𝑗 = 1,2,
where, 𝜇𝐴𝑖 𝑎𝑛𝑑 𝜇𝐵𝑗 represent the membership degrees acquired from this layer.
Layer 2 (weighting of fuzzy rules): This layer contains fixed nodes. The membership values determined in the
fuzzification layer are used to figure out the firing strength 𝑤𝑘 in this layer, and the outputs are computed as
follows:
Layer 3 (normalization): All nodes in this layer are fixed nodes. Each node is normalized by computing the ratio
of the k-th rule's firing strength (true values) to the total firing strength of all rules. The output 𝑂𝑘3 at this stage is
as follows:
𝑤𝑘 𝑤𝑘
𝑂𝑘3 = ̅̅̅̅
𝑤𝑘 = = , 𝑘 = 1,2 (16)
∑ 𝑤𝑖 𝑤1 + 𝑤2
Layer 4 (defuzzification): Each node of this layer calculates the weighted consequent values of rules as indicated
in Eq. (17).
𝑂𝑘3 = ̅̅̅̅𝑓 𝑤𝑘 𝑘 𝑥 + 𝑞𝑘 𝑦 + 𝑟𝑘 ),
𝑤𝑘 𝑘 = ̅̅̅̅(𝑝 𝑘 = 1,2, (17)
where, 𝑤𝑘 represents the output of the third layer, and {𝑝𝑘 , 𝑞𝑘 , 𝑟𝑘 } are consequents.
Layer 5 (summation): The output of this layer is determined by summing the outputs of all incoming signals
from the defuzzification layer to produce the overall ANFIS output, as shown in Eq. (18):
2
∑21=1 𝑤𝑘 𝑓𝑘
𝑂5 = ∑ ̅̅̅̅𝑓
𝑤𝑘 𝑘 = (18)
𝑤1 + 𝑤2
𝑘=1
(a) (b)
38
(a) (b)
(a) (b)
The proposed ANFIS structure has two inputs, 𝐿𝑜 as input 1 and 𝐿𝑠𝑛 as input 2, and one output, 𝑘1 . Each
input was classified as either small (S), medium (M), or big (B). The position training data sets were obtained by
simulating the quadcopter with a backstepping-based SMC controller to obtain the paired input-output data. The
ANFIS-SMC controller was trained and designed using a neuro-fuzzy designer in MATLAB. The type of
membership function was chosen based on trial and error with the minimum RMSE during training and testing.
The best membership function type for input x and y positions was gaussian (gaussmf), while the best type for
input z position was trapezium (trapmf). Figures 5, 6, and 7 show the input membership functions acquired after
training for X, Y, and Z positions, respectively. Figure 8 illustrates the rule surface for each position.
Figure 8. Rule surfaces of the ANFIS-SMC controller (a) X Position; (b) Y Position; (c) Z position
The rule surface plots for ANFIS shown in Figure 8 are 3D representations showing the decision boundaries
created by fuzzy rules. The rules were generated through a combination of fuzzy reasoning and neural network
learning. The x and y axes in plots represent the two input features of the classification task, which are input 1 as
𝐿𝑜 for the x axis and input 2 as 𝐿𝑠𝑛 for the y axis, while the z-axis represents the predicted class label, which is 𝐾1 .
Each point in the plots corresponds to a specific combination of input values, and the color of the point indicates
the predicted class label.
In this section, the dynamics of a quadrotor were simulated to evaluate the performance of the proposed
controller in trajectory tracking. The ANFIS-SMC scheme was compared with conventional SMC controller.
Simulations were executed in two case scenarios. There was no external disturbance in the first scenario, while in
the second scenario, there were external disturbances. All simulation results were computed in MATLAB and
Simulink software (version R2022b). The values of the quadcopter model and controller parameters are
summarized in Tables 1 and 2, respectively. The initial state of position was chosen as 𝑃0 = [0 0 0]𝑇 . The
desired trajectory is shown in Table 3.
39
Table 1. Quadcopter parameter [39]
Parameter Value
𝜆𝑥 , 𝜆𝑦 , 𝜆𝑧 3
𝑘1𝑥 , 𝑘1𝑦 , 𝑘1𝑧 5
𝑘2 𝑥 , 𝑘2 𝑦 , 𝑘2 𝑧 1𝐸 − 7
t (s) 𝒙𝒅 𝒚𝒅 𝒛𝒅 𝝍𝒅
𝑡
0-2000 0 0 0
100
𝑡 𝜋 𝑡 𝜋
2000-3000 ( − 20) ∗ cos ( ) ( − 20) ∗ cos ( ) 20 0
100 45 100 45
𝑡 𝑡 𝑡
3000-4500 10 + cos 11 + sin 0−( − 30) 0
100 100 100
10 + cos 45 𝑡
4500-5000 11 + sin 45 0−( − 30) 0
100
5.1 CASE 1
In this scenario, the quadcopter was simulated under ideal conditions and no external disturbance. Subgraph
(a) of Figure 9 demonstrates the tracking performance of SMC and ANFIS-SMC in 3D trajectory. Subgraphs (b),
(c) and (d) of Figures 9 show the trajectory tracking performance of SMC and ANFIS-SMC in directions of x, y,
and z axes, respectively.
(b)
(a)
40
(c) (d)
Figure 9. The quadcopter dynamics response without external disturbance in (a) 3D Trajectory; (b) X position;
(c) Y Position; (d) Z position
Figure 10 shows the errors occurred when tracking the position of quadcopter. In light of Figures 9 and 10, it
seems that both controllers exhibited a satisfactory level of control. ANFIS-SMC can achieve convergence more
quickly and lower overshoot than SMC. However, it is known to generate extremely light chatter along the
trajectory. ANFIS-SMC converged more quickly owing to its parameter adaptation. The adaptation law modifies
the system's control parameters based on the system's current state and the desired performance. This adaptive
strategy enables the control system to adapt to varying circumstances and unpredictability, thereby accelerating
the convergence. Nevertheless, this adaptation may also result in extremely light chatter along the trajectory.
Chattering is a phenomenon that occurs in SMC when the control signal rapidly switches between different values,
resulting in oscillations with a high frequency. Due to the continuous adaptation of control parameters, ANFIS-
SMC can reduce chattering but cannot eliminate it entirely. The extremely light chatter occurring in ANFIS-SMC
is insignificant and has no impact on the system's stability. SMC, on the other hand, uses constant control
parameters throughout the control process, thus resulting in longer convergence times. Once convergence is
achieved, there is no chatter along the trajectory. This credit is given to the fixed and stable nature of control
parameters, which has eliminated the possibility of chattering. As a result of its adaptation law, ANFIS-SMC can
reach convergence faster, but it may generate extremely light chatter along the trajectory. This chatter can be
caused by the constant modification of control parameters. On the other hand, conventional SMC may take longer
to achieve convergence, but once it does, there is no chatter along the trajectory because the control parameters
are fixed and stable.
41
5.2 CASE 2
In this scenario, the system was simulated while external disturbances are present in the environment.
Alterations in the velocity of wind are one example of this phenomenon that may occur in real world. The following
equation is an expression of the high-level disturbance that has been selected for this situation [21]:
𝜋
𝑑𝑥 (𝑡) = 10 sin(0.1013t − 3.0403) + 7 sin (0.5𝑡 + )
2
𝑑𝑦 (𝑡) = 8 sin (0.5t − 1) + 6 cos(0.8𝑡) (16)
𝑑𝑧 (𝑡) = 8 cos (0.6t)
Considering Figures 11 and 12, the performance of the proposed ANFIS-SMC controller in the presence of
external disturbance was superior compared to that of the SMC controller. Under ideal conditions, as depicted in
Figures 9 and 10, both ANFIS-SMC and SMC showed similar robustness and satisfactory trajectory tracking
performance. Nonetheless, under the turbulent conditions depicted in Figures 11 and 12, the ANFIS–SMC
approach was more robust than SMC. External disturbances, such as gusts of wind, can cause changes in system
dynamics and present uncertainty, thereby introducing turbulent conditions. These disturbances can reduce the
robustness of the control system, particularly for control techniques with fixed parameters, such as SMC. The
adaptation law of ANFIS-SMC can adjust the control parameters in response to these changes, allowing the control
system to maintain robust and compensate for disturbances. SMC, on the other hand, employs fixed control
parameters that may not be optimal under these conditions, thus resulting in a less robust control performance.
(a) (b)
(c) (d)
Figure 11. The quadcopter dynamics response in the presence of external disturbances in
(a) 3D Trajectory; (b) X position; (c) Y Position; (d) Z position
42
Figure 12. Quadcopter position tracking errors in the presence of external disturbances
Three commonly used performance indicators were employed to give a quantitative comparison between the
proposed ANFIS-SMC controller and the SMC controller, namely the root mean square error (RMSE), the mean
square error (MSE), and the mean absolute error (MAE). A concise summary of the results obtained for each of
the indicators is given in Table 4.
CASE 1 CASE 2
SMC ANFIS-SMC SMC ANFIS-SMC
X 0.020 0.050 0.494 0.046
MAE Y 0.020 0.058 0.363 0.064
Z 0.020 0.041 0.339 0.044
X 0.020 0.010 0.353 0.009
MSE Y 0.020 0.014 0.202 0.016
Z 0.020 0.004 0.152 0.005
X 0.140 0.102 0.594 0.094
RMSE Y 0.140 0.119 0.449 0.125
Z 0.140 0.065 0.390 0.069
Mean errors of each controller are shown in Table 4. The lower mean errors indicated an improvement in the
performance of the controller. The data of Case 1 in the table suggest that the MSE and RMSE of the ANFIS-SMC
controller were smaller than those of the SMC controller; while the MAE values of ANFIS-SMC controller were
higher. This occurred because the errors produced by ANFIS-SMC were more dispersed at each point, despite
producing smaller values, whereas the errors produced by SMC controller tended to be at one point, forming a
peak with a higher value. Consequently, the ANFIS-SMC controller's mean errors were higher when calculated
using the MAE method. However, in Case 2, the mean errors of the ANFIS-SMC controller were lower than those
of the SMC controller, according to all methods. Therefore, this has demonstrated that the ANFIS-SMC controller
can reduce errors of trajectory tracking and improve accuracy.
6. Conclusions
In this paper, a SMC-based ANFIS was proposed to enhance the trajectory tracking performance of quadcopters.
The proposed ANFIS used an adjustable gain instead of a fixed gain for SMC, allowing for greater output in
accordance with a set of rules. The position control gain was tuned by a neuro-fuzzy adaptive inference system,
enabling the SMC to adjust adaptively according to variations in the environment. Then, to verify the effectiveness
of the proposed controller, the study compared the performance of the proposed ANFIS-SMC controller with the
conventional SMC controller under both ideal and non-ideal conditions. The results of analysis showed that the
ANFIS-SMC controller had a faster convergence speed and lower overshoot than the SMC controller, indicating
that the ANFIS-SMC controller can quickly adapt to changes in the system and converge to the desired trajectory
with high accuracy and stability. The study also demonstrated the effectiveness of the ANFIS-SMC controller by
43
evaluating its performance under different conditions. The proposed ANFIS-SMC controller was found to be more
robust and exhibited better trajectory tracking performance than the SMC controller under turbulent conditions,
where external disturbances can affect the system's dynamics. The ANFIS-SMC approach could adjust control
parameters in response to changes, allowing the control system to maintain robust and compensate for disturbances.
In contrast, the fixed control parameters of the SMC approach may not be optimal under these conditions, resulting
in less robust control performance. In summary, research findings of this paper indicate that the ANFIS-SMC
controller outperformed the SMC controller in terms of fast convergence, strong robustness, high accuracy, and
stability. The controller's adaptive mechanism allows it to quickly respond to changes in the system's dynamics
and maintain high accuracy and stability. These findings could contribute to the development of robust and
responsive control strategies for UAV trajectory tracking by providing valuable insights into the design of effective
control systems.
Data Availability
Not applicable.
Acknowledgements
Authors would like to express their appreciation to the team and parties involved with the Instrumentation,
Control, and Optimization Laboratory at Sepuluh Nopember Institute of Technology (ITS) for providing the
necessary hardware and software for this study.
Conflicts of Interest
References
[1] M. Zhang, W. Li, M. Wang, S. Li, and B. Li, “Helicopter–UAVs search and rescue task allocation considering
UAVs operating environment and performance,” Comput. Ind. Eng., vol. 167, no. 29, Article ID: 107994,
2022. https://doi.org/10.1016/j.cie.2022.107994
[2] M. Silvagni, A. Tonoli, E. Zenerino, and M. Chiaberge, "Multipurpose UAV for search and rescue operations
in mountain avalanche events," Geomatics Natural Hazards Risk, vol. 8, no. 1, pp. 18-33, 2017.
https://doi.org/10.1080/19475705.2016.1238852
[3] P. Garcia-Aunon, J. del Cerro, and A. Barrientos, “Behavior-Based Control for an Aerial Robotic Swarm in
Surveillance Missions,” Sensors, vol. 19, no. 20, Article ID: 4584, 2019. https://doi.org/10.3390/s19204584
[4] M. T. Nguyen, L. H. Truong, and T. T. H. Le, “Video Surveillance Processing Algorithms utilizing Artificial
Intelligent (AI) for Unmanned Autonomous Vehicles (UAVs),” MethodsX, vol. 8, Article ID: 101472, 2021.
https://doi.org/10.1016/j.mex.2021.101472
[5] A. D. Boursianis, M. S. Papadopoulou, P. Diamantoulakis, A. Liopa-Tsakalidi, P. Barouchas, G. Salahas, G.
Karagiannidis, S. Wan, and S. K. Goudos, “Internet of Things (IoT) and Agricultural Unmanned Aerial
Vehicles (UAVs) in smart farming: A comprehensive review,” Internet of Things, vol. 18, Article ID: 100187,
2022. https://doi.org/10.1016/j.iot.2020.100187
[6] S. Gokool, M. Mahomed, R. Kunz, A. Clulow, M. Sibanda, V. Naiken, K. Chetty, and T. Mabhaudhi, “Crop
Monitoring in Smallholder Farms Using Unmanned Aerial Vehicles to Facilitate Precision Agriculture
Practices: A Scoping Review and Bibliometric Analysis,” Sustainability, vol. 15, no. 4, Article ID: 3557,
2023. https://doi.org/10.3390/su15043557
[7] H. S. Lee, B. S. Shin, J. A. Thomasson, T. Wang, Z. Zhang, and X. Han, “Development of Multiple UAV
Collaborative Driving Systems for Improving Field Phenotyping,” Sensors, vol. 22, no. 4, Article ID: 1423,
2022. https://doi.org/10.3390/s22041423
[8] U. F. Ukaegbu, L. K. Tartibu, M. O. Okwu, and I. O. Olayode, “Development of a Light-Weight Unmanned
Aerial Vehicle for Precision Agriculture,” Sensors, vol. 21, no. 13, Article ID: 4417, 2021.
https://doi.org/10.3390/s21134417
[9] H. E. Mohamadi, N. Kara, and M. Lagha, “Heuristic-driven strategy for boosting aerial photography with
multi-UAV-aided Internet-of-Things platforms,” Eng. Appl. Artif. Intell., vol. 112, no. 104854, 2022.
https://doi.org/10.1016/j.engappai.2022.104854
[10] R. Evers and P. Masters, “The application of low-altitude near-infrared aerial photography for detecting
clandestine burials using a UAV and low-cost unmodified digital camera,” Forensic Sci. Int., vol. 289, pp.
408-418, 2018. https://doi.org/10.1016/j.forsciint.2018.06.020
[11] T. F. Olivatto, F. F. Inguaggiato, and F. N. Stanganini, “Urban mapping and impacts assessment in a Brazilian
44
irregular settlement using UAV-based imaging,” Remote Sens. Appl. Soc. Environ., vol. 29, Article ID:
100911, 2023. https://doi.org/10.1016/j.rsase.2022.100911
[12] R. Sato, K. Tanaka, H. Ishida, S. Koguchi, R. R. J. Pauline, H. Matsukura, and H. Ishida, “Detection of Gas
Drifting Near the Ground by Drone Hovering Over: Using Airflow Generated by Two Connected
Quadcopters,” Sensors, vol. 20, no. 5, Article ID: 1397, 2020. https://doi.org/10.3390/s20051397
[13] A. Corbett and B. Smith, “A Study of a Miniature TDLAS System Onboard Two Unmanned Aircraft to
Independently Quantify Methane Emissions from Oil and Gas Production Assets and Other Industrial
Emitters,” Atmosphere, vol. 13, no. 5, Article ID: 804, 2022. https://doi.org/10.3390/atmos13050804
[14] M. Sajid, H. Mittal, S. Pare, and M. Prasad, “Routing and scheduling optimization for UAV assisted delivery
system: A hybrid approach,” Appl. Soft Comput., vol. 126, Article ID: 109225, 2022.
https://doi.org/10.1016/j.asoc.2022.109225
[15] H. W. Lee, “Research on multi-functional logistics intelligent Unmanned Aerial Vehicle,” Eng. Appl. Artif.
Intell., vol. 116, Article ID: 105341, 2022. https://doi.org/10.1016/j.engappai.2022.105341
[16] P. F. Peña, A. R. Ragab, M. A. Luna, M. S. Ale Isaac, and P. Campoy, “WILD HOPPER: A heavy-duty UAV
for day and night firefighting operations,” Heliyon, vol. 8, no. 6, Article ID: e09588, 2022.
https://doi.org/10.1016/j.heliyon.2022.e09588
[17] S. Das, S. Chapman, J. Christopher, M. R. Choudhury, N. W. Menzies, A. Apan, and Y. P. Dang, “UAV-
thermal imaging: A technological breakthrough for monitoring and quantifying crop abiotic stress to help
sustain productivity on sodic soils-A case review on wheat,” Remote Sens. Appl. Soc. Environ., vol. 23,
Article ID: 100583, 2021. https://doi.org/10.1016/j.rsase.2021.100583
[18] G. Hu, P. Yao, M. Wan, W. Bao, and W. Zeng, “Detection and classification of diseased pine trees with
different levels of severity from UAV remote sensing images,” Ecol. Inform., vol. 72, Article ID: 101844,
2022. https://doi.org/10.1016/j.ecoinf.2022.101844
[19] N. Amarasingam, A. S. Ashan Salgadoe, K. Powell, L. F. Gonzalez, and S. Natarajan, “A review of UAV
platforms, sensors, and applications for monitoring of sugarcane crops,” Remote Sens. Appl. Soc. Environ.,
vol. 26, Article ID: 100712, 2022. https://doi.org/10.1016/j.rsase.2022.100712
[20] A. Gautam, M. Singh, P. B. Sujit, and S. Saripalli, “Autonomous Quadcopter Landing on a Moving Target,”
Sensors, vol. 22, no. 3, Article ID: 1116, 2022. https://doi.org/10.3390/s22031116
[21] Z. Qiao, K. Zhuang, T. Zhao, J. Xue, M. Zhang, S. Cui, and Y. Gao, “Simulation of a Quadrotor under Linear
Active Disturbance Rejection,” Appl. Sci., vol. 12, no. 23, 2022. https://doi.org/10.3390/app122312455
[22] Y. Song, L. He, D. Zhang, J. Qian, and J. Fu, “Neuroadaptive Fault-Tolerant Control of Quadrotor UAVs: A
More Affordable Solution,” IEEE Trans. Neural Networks Learn. Syst., vol. 30, no. 7, pp. 1975-983, 2019.
https://doi.org/10.1109/TNNLS.2018.2876130
[23] J. J. Castillo-Zamora, K. A. Camarillo-Gomez, G. I. Perez-Soto, and J. Rodriguez-Resendiz, “Comparison of
PD, PID and sliding-mode position controllers for v-tail quadcopter stability,” IEEE Access, vol. 6, pp.
38086-38096, 2018. https://doi.org/10.1109/ACCESS.2018.2851223
[24] Y. Jing, X. Wang, J. Heredia-Juesas, C. Fortner, C. Giacomo, R. Sipahi, and J. Martinez-Lorenzo, “PX4
Simulation Results of a Quadcopter with a Disturbance-Observer-Based and PSO-Optimized Sliding Mode
Surface Controller,” Drones, vol. 6, no. 9, 2022. https://doi.org/10.3390/drones6090261
[25] J. Velagic, N. Osmic, V. Klovo, and H. Lacevic, “Design of LQR Controller for 3D Trajectory Tracking of
Octocopter Unmanned Aerial Vehicle,” In 2022 8th International Conference on Control, Decision and
Information Technologies, Istanbul, Turkey, pp. 63-68, 2022.
https://doi.org/10.1109/CoDIT55151.2022.9803884
[26] B. Han, Y. Zhou, K. K. Deveerasetty, and C. Hu, “A Review of Control Algorithms for Quadrotor,” In 2018
IEEE International Conference on Information and Automation, Wuyishan, China, pp. 951-956, 2018.
https://doi.org/10.1109/ICInfA.2018.8812437
[27] M. Yang, Z. Zhou, and X. You, “Research on Trajectory Tracking Control of Inspection UAV Based on Real-
Time Sensor Data,” Sensors, vol. 22, no. 10, 2022. https://doi.org/10.3390/s22103648
[28] M. Idrissi, M. Salami, and F. Annaz, “A Review of Quadrotor Unmanned Aerial Vehicles: Applications,
Architectural Design and Control Algorithms,” J. Intell. Robot. Syst. Theory Appl., vol. 104, no. 2, 2022.
https://doi.org/10.1007/s10846-021-01527-7
[29] H. Razmi and S. Afshinfar, “Neural network-based adaptive sliding mode control design for position and
attitude control of a quadrotor UAV,” Aerosp. Sci. Technol., vol. 91, pp. 12-27, 2019.
https://doi.org/10.1016/j.ast.2019.04.055
[30] Z. Zhao and X. Jin, "Adaptive neural network-based sliding mode tracking control for agricultural quadrotor
with variable payload," Comput. Electr. Eng., vol. 103, Article ID: 108336, 2022.
https://doi.org/10.1016/j.compeleceng.2022.108336
[31] P. A. Darwito and K. D. Wahyuadnyana, “Performance Examinations of Quadrotor with Sliding Mode
Control-Neural Network on Various Trajectory and Conditions,” Math. Model. Eng. Probl., vol. 9, no. 3, pp.
707-714, 2022.
45
[32] M. Zare, F. Pazooki, and S. Etemadi Haghighi, "Hybrid controller of Lyapunov-based and nonlinear fuzzy-
sliding mode for a quadrotor slung load system," Eng. Sci. Technol. an Int. J., vol. 29, 2022.
https://doi.org/10.1016/j.jestch.2021.07.001
[33] B. Xu and X. Lu, “An Online Adaptive Control Strategy for Trajectory Tracking of Quadrotors Based on
Fuzzy Approximation and Robust Sliding Mode Algorithm,” IEEE Access, vol. 8, pp. 215327-215342, 2020.
https://doi.org/10.1109/ACCESS.2020.3039546
[34] G. E. M. Abro, S. A. B. M. Zulkifli, V. S. Asirvadam, and Z. A. Ali, "Model-Free-Based Single-Dimension
Fuzzy SMC Design for Underactuated Quadrotor UAV," Actuators, vol. 10, no. 8, 2021.
https://doi.org/10.3390/act10080191
[35] B. Selma, S. Chouraqui, and H. Abouaïssa, “Optimal trajectory tracking control of unmanned aerial vehicle
using ANFIS-IPSO system,” Int. J. Inf. Technol., vol. 12, no. 2, pp. 383-395, 2020.
https://doi.org/10.1007/s41870-020-00436-6
[36] B. Selma, S. Chouraqui, B. Selma, and H. Abouaïssa, “ANFIS controller design based on pigeon-inspired
optimization to control an UAV trajectory tracking task,” Iran J. Comput. Sci., vol. 4, no. 1, pp. 1-16, 2021.
https://doi.org/10.1007/s42044-020-00060-4
[37] M. Al-Fetyani, M. Hayajneh, and A. Alsharkawi, “Design of an Executable ANFIS-based Control System to
Improve the Attitude and Altitude Performances of a Quadcopter Drone,” Int. J. Autom. Comput., vol. 18, no.
1, pp. 124-140, 2021. https://doi.org/10.1007/s11633-020-1251-2
[38] S. Zeghlache, H. Mekki, A. Bouguerra, and A. Djerioui, “Actuator fault tolerant control using adaptive
RBFNN fuzzy sliding mode controller for coaxial octorotor UAV,” ISA Trans., vol. 80, pp. 267-278, 2018.
https://doi.org/10.1016/j.isatra.2018.06.003
[39] A. Eltayeb, M. F. ad Rahmat, M. A. M. Basri, M. A. M. Eltoum, and S. El-Ferik, "An Improved Design of an
Adaptive Sliding Mode Controller for Chattering Attenuation and Trajectory Tracking of the Quadcopter
UAV," IEEE Access, vol. 8, pp. 205968-205979, 2020. https://doi.org/10.1007/s13369-020-04569-5
[40] M. Wang, B. Chen, and C. Lin, "Fixed-time backstepping control of quadrotor trajectory tracking based on
neural network," IEEE Access, vol. 8, pp. 177092-177099, 2020.
https://doi.org/10.1109/ACCESS.2020.3027052
46