A Novel Design of a Neural Network-Based Fractional PID Controller for Mobile Robots Using Hybridized Fruit Fly and Particle Swarm Optimization

,


Introduction
Mobile robots serve platforms with huge versatility within their environment; they are not limited to one location because they can be pushed autonomously in their own circumference. In other words, it has the capability of implementing tasks without assistance from external operators [1]. Mobile robots are unique to move freely in a predefined workplace to accomplish the preferred objectives.
is skill of mobility makes the mobile robots appropriate for vast application fields in unstructured and structured surroundings. e ground mobile robot can be categorized into a wheeled mobile robot (WMR) and legged mobile robot (LMR).
e WMRs are prevalent because they are tailored to particular applications with reasonably small mechanical complexities and power drain [2].
Within the last decades, many different control structures were introduced into industrial societies to handle the restrictions of the classical controllers. e PID controller which has been dominated by the industrial organizations has been changed using the concept of differentiators and integrators of fractional power. It was shown that a combination of further degrees of freedom with differentiators and integrators of fractional power provided a greater degree of flexibility and performance that would otherwise be hard (even impossible) to come by the conventional PID controllers [3,4]. e fractional-order PID (FOPID) controllers are the generalization of widely applicable PID controllers; in recent years, they have drawn much attention from both academics and industry [3][4][5]. Fractional controls are less sensitive to parameter changes in a controlled system. A fractional control unit can easily achieve the isodamping property. On the other hand, incorporating an integral action in the feedback loop has the advantage of eliminating steady-state errors on account of reducing relative stability of the system. It can be concluded that by designing more general controller laws in the form (1/s n ), (s n ), n ∈ R + , the feedback system with more favorable solutions between undesirable and constructive consequences of the above scenario could be attained and by combining these control actions.
Tuning of a fractional PID controller is difficult as five parameters have to be tuned, which means two more parameters compared to a traditional PID controller [3][4][5]. Some methods were proposed for the proper choice of the parameters' values of the PID controller. e method of Ziegler-Nichols tuning strategy was acquainted in 1942 for the parameters regulation of the PID controller coefficients; this tuning technique is utilized if the model of the system is a first order plus dead time.
In recent years, methods of optimization which are theoretically different from classical optimization have been invented. ey depend on specific properties and behavior of organic herd of birds and nature-inspired and neurobiological systems. ese metaheuristic procedures have been developed in the last decade and are evolving as common methods for solving numerical optimization and intricate industrial case studies. Particle swarm optimization (PSO) is a metaheuristic optimization method which depends on the motion and intellect of bird's colony behavior or fish bevy schooling. Kennedy and Eberhart initially suggested particle swarm optimization (PSO) technique in 1995 [6]. Advantages of PSO are as follows: (1) it does not need the derivative of the cost function, (2) it can be parallelized, and (3) it has fast convergence behavior.
On the other hand, the fruit fly optimization (FFO) swarm technique is one of the state-of-the-art evolutionary computation techniques based on the foraging behavior of fruit flies which was pointed out by Pan [7]. e olfactory organ of a fruit fly can collect different smells from the air and even locate the source of the food from a distance of 40 km. Subsequently, the fruit flies travel to the source of the food and use their acute visionary system to locate the food destination (minimum or maximum of the function) where their companions form a swarm and then travel in that direction.
e FFO algorithm seems to be an excellent optimization algorithm; it has numerous benefits such as speed to acquire solutions, the simplicity of its structure, and ease of implementation. So, FFO was effectively used and applied in a diverse class of applications [7][8][9].
However, FFO algorithm suffers from some shortcomings. Firstly, there is inadequacy in the FFO algorithm concerning the searching policy, a necessary step to yield new solutions of the FFO algorithm using random information of the previous solutions. Moreover, the FFO algorithm has weak exploration ability, low convergence precision, and jumps out of the local minimum. Finally, the candidate solutions cannot be generated in a uniform manner in the domain. On the other hand, PSO experiences the premature convergence, a common phenomenon in the evolutionary methods in very sophisticated applications such as path planning and motion control of mobile robots. Also, it relies on user experience to find the optimum values of some parameters like the inertia weights and social and cognitive coefficients. Moreover, standard swarm optimization algorithms do not find the optimum solutions in a rational time [9]. erefore, the structure of the FFO and PSO algorithms requires further improvements for attaining the optimum solutions to the real-world applications. e motivation for the hybridization between the MAPSO and EFFO algorithms is an attempt to combine the beneficial features of MAPSO and EFFO algorithms and conduct a sequential operation for these two optimization algorithms over the progression of the process. Moreover, the hybridization between MAPSO and EFFO algorithms will overcome the limitations of the individual MAPSO and EFFO algorithms mentioned above. is hybridization will be accomplished as described later in this paper.
Many researchers have conducted research studies on motion control problem of DDMR under nonholonomic constraints, and so various kinds of controllers were demonstrated in the literature for the mobile robots to track specific trajectories. Trajectory tracking of wheeled mobile robots using hybrid visual servo equipped with onboard vision systems is described in [10]. In [11], the authors addressed the output feedback trajectory tracking problem for a nonholonomic wheeled mobile robot in the presence of parameter uncertainty, exogenous disturbances, and without 2 Complexity velocity measurements using fuzzy logic techniques. e work in [12] focused on the localization, kinematics, and closed-loop motion control for a DDMR. e authors of [13] developed an online nonlinear optimal tracking control method for unmanned ground systems by firstly establishing the nonlinear tracking error model for unmanned ground systems (UGSs), and then the tracking control problem for UGS was converted to a continuous nonlinear optimal control problem with the help of a symplectic pseudospectral method based on the third kind of generation function. In [14], the authors proposed a kinematic-based neural network controller for nonlinear control of the DDMR with nonholonomic constraints. In [15], an iterative learning control over a wireless network for a class of unicycle type mobile robot systems is proposed, and the study included the channel noise effect and the robustness analysis of the proposed system. In [16], a sliding mode-based asymptotically stabilizing controller law has been proposed for a mobile robot. A dynamic prediction-based model predictive control method is offered in [17] for wheeled mobile robots taking into account the tire sideslip. Fuzzy based controllers for autonomous mobile robots have been argued in [18,19], where the work in [19] dealt with unstructured environments. e work in [20] proposed a disturbance observer based on biologically inspired integral sliding mode control for trajectory tracking of mobile robots. A time-optimal velocity tracking controller for DDMR is presented in [21]. e authors in [22,23] investigated a model predictive control (MPC) for differential drive mobile robots. Backstepping nonlinear control has been investigated on DDMR in [24]. Recently, researchers are applying a new control paradigm named active disturbance rejection control (ADRC) [25][26][27][28][29][30] on a wide range of applications [31,32] and particularly on DDMR [33]. e authors in the literature proposed many algorithms for tuning parameters of the FOPID controller with different applications, where [34,35] used the genetic algorithms and [36][37][38][39] utilized PSO algorithm. Others like Rajasekhar et al. [40] applied the gravitational search optimization technique based on the Cauchy and Gaussian mutation, and El-Khazali [41] exploited the artificial bee colony algorithm. Frequency-domain methods for the design of the FOPID controllers can be found in [42]. Finally, other algorithms like GA can be used to tune the FOPID controller and more complex controllers like [43]. e contributions in this research work lie in twofold: (1) Development of a MAPSO-EFFO algorithm: developing a modified adaptive particle swarm optimization (MAPSO) algorithm by adding an initial run phase with a massive number of particles. At the end of this initial running point, the smaller group of these fitness particles will be selected to continue with an adaptive PSO (APSO) algorithm. Moreover, the conventional fruit fly optimization (FFO) algorithm has been modified by increasing the randomness in the initialization values of the algorithm to cover wider searching space and then implementing a variable searching radius during the update phase by starting with a large radius which decreases gradually during the searching phase. Finally, adopting a hybridized MAPSO-EFFO algorithm by the serial blending of the MAPSO algorithm with EFFO one, i.e., the input to the EFFO algorithm is the output of the MAPSO. e hybridized MAPSO-EFFO technique is used for the evaluation of the parameters of the NNFOPID.
(2) New nonlinear fractional control structure: a new NNFOPID controller is proposed in this paper which employs the structure of the neural networks (NNs). With suitable arrangements of the hidden layer neurons using sigmoid nonlinear activation and linear functions in the hidden and output layers, respectively, and with appropriate connection weights between different neurons in different layers, a new class of nonlinear neural FOPID controller is obtained by approximating the fractional derivative and integral actions of the FOPID controller. e outputs of the neural networks are the control actions used to drive the motors of the DDMR. e paper is organized in the following structure. Section 2 gives the motivation and problem statement. Section 3 presents the fractional calculus and the theoretical background of the fractional PID controllers. e kinematic model of the DDMR is introduced in Section 4. e proposed nonlinear neural conventional and fractional PID controllers for the trajectory tracking of the DDMR are explained in Section 5. Section 6 discusses the results and simulations of the designed motion controllers for the DDMR based on different trajectories. Finally, the conclusions are given in Section 7.

Problem Statement
Given a nonholonomic differential drive mobile robot (DDMR) following a particular path, the tracking error occurs because of many factors like noise, disturbances, slippage, and the errors measured from sensors due to both interior and exterior causes. ese issues also make the mobile robot has the difficulty to turn left or right by direction set or by using various sensors. erefore, the DDMR kinematic model has been employed in this paper to synthesize neural network fractional-order PID (NNFOPID) controllers to regulate its speed so that it would track the required path in the plane as fast as possible with minimum mean square tracking error; this is called trajectory tracking problem.
ree FOPID controllers will be designed to control the position (x and y) of the DDMR in the 2D plane and its orientation θ. Moreover, the aim of the proposed tracking FOPID controllers is reducing the energy consumed by the left and right motors of the DDMR. Given a reference path that needs to be followed by the DDMR, which consists of a set of positions in the 2D plane together with the orientation, i.e., xr, yr, and θr, the actual path consists of a set of positions x, y, and θ. en, it is required to design a NNFOPID controller to generate the control velocities of the kinematic model of the DDMR such that the mean square error between xr and x, yr and y, and θr and θ Complexity 3 is minimum with minimum peak of the left and right velocities of the DDMR. In contrast to the FOPID controller, the NNFOPID controller has more capability to capture the nonlinearity of the DDMR model due to the nature of the neural network structure employed in the design where nonlinear activation functions are used with hidden layer that has adaptable parameters (NNFOPID controller parameters).

Fractional Control Analysis
Fractional calculus is a part of the mathematical analysis, which demonstrates the likelihood of the differential operator orders to be the complex or real number for the differentiation and integration. Generally, the form of the fractional-order operation represented by a D α b is called as differintegral operator. e sign of α controls the action of differintegral ( a D α b ) whether to be an identity operator, an integrator, or a differentiator. e fractional integral and derivative using Grünwald-Letnikov (GL) definition follow the same procedures based on the multiderivative integer calculus. e general GL definition is stated as [42,44] where ((b − a)/h) refers to the integer part, a and b are the start and final limit values, and h is the sampling time. e utilization of GL of (1) in the computation of the output response of any fractional-order system can be illustrated as follows. Given any fractional system expressed by the fractional-order linear constant coefficients differential equation as [44], a n D ∝ n y(t) + a n− 1 D ∝ n− 1 y(t) + · · · + a 0 D ∝ 0 y(t) ., m) are constant and ∝ n (i � 0, . . . , n) and δ i (i � 0, . . . , m) are real numbers. Without loss of generality, the parameters ∝ 's and δ's might be ∝ n > ∝ n− 1 > · · · > ∝ 0 , and δ m > δ m− 1 > · · · > δ 0 . Consider (2) with its right-hand side equal to u (t) such that Recall GL definition in (1); then, by substituting (1) into (3), the numerical solution of (3) can be evaluated as [44] and w α j can be evaluated in recursive manner as follows: Now reconsider (2), where its right-hand side is equal tǒ u (t): us,ǔ (t) may be calculated firstly using (1), and then the output response due toǔ (t) is computed from the solution of (6) as e FOPID controller increases the efficiency and the possibility of better system performance because of its five parameters.
e differential equation of the FOPID controller with fractional power denoted as PI λ D α is described by Taking Laplace transform to (8), we have where k d , k p , and k i are derivative, proportional, and integral control parameters, respectively, λ is the order of the fractional integral, and α is the fractional derivative order. It is obvious that the FOPID controller has the three standard coefficients k d , k i , and k p in addition to parameters λ and α, which are fractional powers for derivative and integral actions, respectively. e values of α and λ are nonintegers with the restriction of being positive real numbers. Discretization methods of continuous-time fractional operators have been studied widely by many researchers [45,46]. e fundamental principle to discretize a continuous fractional-order operator s α (α ∈ R) is to define it by what is called as the generating function s � ω (z − 1 ). Examples of such transformations are Euler, Tustin, and Simpson transformations. A more recent transformation formula is found as a weighted interpolation between the Euler and Tustin [45]. Usually, the aforementioned transformation schemes lead to a nonrational polynomial in z. To get a rational polynomial, one may find the power series expansion (PSE) of s � ω (z − 1 ) and then truncate the zpolynomial function (in the form of finite impulse response (FIR) filters) to compute the final approximation. e Tustin method is applied since it is more accurate compared to other transforms such as backward and forward difference as given below: Based on the above analysis, the nonlinear control law that drives wheels of the DDMR will be derived in detail in the next sections. Before that, a concise review of DDMR modeling will be developed.

Kinematic Modeling of
Nonholonomic DDMR e position of the DDMR in the world coordinates axis {o, x, y} is illustrated in Figure 1.
e kinematics model of the DDMR as shown in the figure consists of a castor wheel in the head of the cart and two driving wheels attached on one axis located at the back. e motion and the orientation of DDMR are achieved via two DC motors which form the actuators of the right and left wheels. Table 1 lists the parameters that have been used in the derivation of the DDMR kinematics. e motion of the DDMR can be determined by the linear velocities of the right and left wheels, V right and V left . e angular and linear velocities of the DDMR, V A and V Li , can be described by V left (t) and V right (t) as follows [2]: e kinematics equation of the DDMR in the world frame is derived as Substituting (11) and (12) in (13)- (15), and integrating them, we get the solutions, x(t), y(t), and θ(t). Moreover, considering a sample interval Δt and a zero-order hold , we get the discrete representation of x(t), y(t), and θ(t) as follows [38]: where x(k), y(k), θ(k) are the position components at the kth step of the motion and Δt is the interval between two adjacent samples. Equations (16)- (18) are used in the design of the NNFOPID controller. It should be remembered that the coordinates of the DDMR given in Figure 1 are in the global frame (world frame) and can be transformed into the local coordinate by the rotation matrix given below: e configuration error signals are acquired by this matrix to transform the DDMR from local coordinate to the global one.

Assumption (H1).
e DDMR moves to any location in the free workplace assuming that the wheels of DDMR are ideally set up such that they have no slipping with ideal rolling.

The Proposed Swarm-Based Nonlinear
Neural FOPID (NNFOPID) Trajectory Controller for DDMR e two main objectives of DDMR Trajectory controller are to establish a control strategy that prevents the DDMR from drifting out of the desired track and keep its movement smoothly within a minimum error with stability. e proposed configuration of the DDMR motion control in this research consists of two main parts as explained in the next sections. Figure 2 illustrates the structure of the NNFOPID-based kinematic trajectory controller for the DDMR. e suggested trajectory tracking control for the DDMR in this work is the NNFOPID. Mathematically, it can be derived as follows. Inspired by the work in [47] and starting from (10) and assuming ω � z − 1 , the PSE of the right-hand side of (10) is given as

Nonlinear Neural FOPID (NNFOPID) Kinematic Trajectory Controller Structure.
Right wheel linear velocity (m/sec) θ Orientation of the mobile robot from the x-axis It is mapped inside the unit circle in the z-plane, with region of convergence (ROC) |z| > 1, i.e., g(α)'s coefficients are calculated from the following equation: e integral term s − λ of (9) can be treated as follows: Applying Tustin transformation of (10) on (23), we get where g(1 − λ) can be calculated using (22). Now, substituting (21) and (24) into (9) yields the general discretetype PID controller with a long memory: where K P � k p , K D � (2/T) α k d , and K I � (2/T) − λ k i . e upper limit in the of the sum in (25) cannot be considered for practical limitations. So, we calculate the sum up to L; then, Multiplying both sides of (26) by (1 − z − 1 ) and remembering that U(z) � C(z) · E(z), en, the general difference equation relating e(k) to U(k) looks like Equation (28) describes the control signal for the discrete-time FOPID controller. en, the suggested feedback control law of the NNFOPID trajectory tracking controller for the DDMR is given as where V right (k − 1) and V left (k − 1) are the delayed signals of the control signals V right (k) and V left (k). e signals O x (k), O y (k), and O θ (k) correspond to the neural network's outputs of the hidden layer neurons with the sigmoid signal as an activation function and are described as for δ � x, y, and θ, and net δ (k) is given as for δ � x, y, and θ. Figure 3 portrays the proposed NNFO-PID controller for the DDMR used in the block diagram of Figure 2. e proposed NN structure is a multilayer perceptron (MLP) which consists of three layers. e first layer is the input layer which sums the error input signals and its past values. e second layer is the hidden layer; it consists of three neurons with nonlinear activation function; they are there to implement the three FOPID controllers needed for the x, y, and θ subsystems of the mobile robot. e x r (k) Figure 2: e NNFOPID-based trajectory tracking controller for DDMR.
6 Complexity connection weights for this hidden layer are the coefficients of the FOPID controllers, i.e., K P δ , K I δ , and K D δ , and δ � x, y, and θ. Finally, the third layer is the output layer; it consists of a single neuron with linear activation function; it adds up the three outputs of the hidden layer. e fractional derivatives are translated into a weighted sum of the past and current values of the input error signal e δ (k) for δ � x, y, and θ as indicated by (31). So, the tuning input vector of the NNFOPID controller consists of e δ (k), e δ (k − 1), e δ (k − 2), . . . , e δ (k − L − 1), for δ � x, y, and θ. e activation function of the output layer in Figure 3 is linear. Its proposed structure is different from the NN-based FOPID controllers proposed in [48,49], where in these works, the outputs of the neural networks are the parameters of the FOPID controller themselves, while in the proposed scheme, the structure of the neural network itself has been used as a nonlinear fractional-order PID controller where the coefficients of the fractional-order PID controller themselves are the connection weights of the NN structure, and the output of the neural networks are the control actions used to drive the motors of the DDMR. e NNFOPID neural controller parameters K D , K I , K P , α, and λ are adjusted using the proposed MAPSO-EFFO described next.

Hybridized MAPSO-EFFO-Based Tuning Algorithm.
PSO and FFO algorithms are the metaheuristic procedures which have been invented in the last decade and are evolving as common procedures for solving numerical optimization and industrial case studies. ey require only function evaluations (and not the integral or derivative values). e next section presents the modified PSO and FFO algorithms, Complexity namely, the MAPSO and EFFO and the hybridization between them to produce a hybridized algorithm with fast convergence behavior. is is to overcome the limitations of the individual PSO and FFO algorithms like premature convergence, user dependence on setting parameter values, and exploration ability. In the following section, the individual algorithms used in this work are discussed, and then the hybridization between them is introduced.

Modified Adaptive PSO (MAPSO) Algorithm.
In this work, improvement is added to increase the speed and efficiency of the algorithm where the optimal solutions are found by spreading a large amount of population size (from 6M to 10M, where M is the standard population size and lies between 20 and 30 particles) in the search space. en, choosing the best (20-30 particles) from all these populations as initial populations, the best particles are the ones that have the minimum of the following fitness function: where Q is the maximum number of samples, k is the current sample, xr, yr, and θr are reference values, and U 1 and U 2 are the control signals. Moreover, the social and cognitive parameters c 1 and c 2 are considered variable through the iterative process, in contrast to being constant in the standard PSO. Figure 4 illustrates this modification. e pseudocode for the calculations of the values of the optimal coefficients of the NNFOPID controller using the MAPSO is listed in Algorithm 1.

Enhanced Fruit Fly Optimization (EFFO) Algorithm.
e process of finding food by fruit fly can be explained as follows. First, fruit flies smell the food location using the organ osphresis and then fly towards the food source. When fruit flies become in the neighboring of the food source, they use the visual sense to locate the food and the next location for the fruit flies swarm. Finally, it flies towards the food direction. e standard FFO has been explained in detail in the literature [7], and some improvements have been added in this paper to the standard EFFO as follows: (a) Assign a range of values as an upper and lower limits for the initialization of the decision variables. (b) A dynamic change of the search radius with some iteration has been proposed for the standard FFO algorithm to improve its performance and exclude the drawbacks of the fixed value searching radius (see Figure 5). e modification to the standard FFOA is proposed by adding an inertia weight as follows: where w is the weight of the inertia used to adjust the radius of spread and δ � x, y, and θ. e pseudocode for the calculation of the optimal values of the NNFOPID controller's coefficients using the EFFO algorithm is listed in Algorithm 2.

Hybridized Swarm Optimization
Algorithm: e MAPSO-EFFO Algorithm. In this paper, a hybridization between MAPSO and EFFO is proposed. e first phase utilizes MAPSO algorithm, where a particle swarm spreads in different orientations and the global best solution is obtained. e second phase includes the EFFO for updating the preceding best locations of the swarm particles. By taking advantages of the MAPSO and EFFO, the hybridized MAPSO-EFFO algorithm is illustrated in the following pseudocode (Algorithm 3). e advantage of the proposed hybridized MAPSO-EFFO algorithm will overcome the limitations of the individual particle swarm optimization (PSO) and fruit fly optimization (FFO) algorithms like premature convergence, user dependence on setting parameter values, and exploration ability. e salient features of the hybridized MAPSO-EFFO algorithm are the simplicity of its structure and ease of implementation. Knowing that the hybridized MAPSO-EEFO algorithm does not need the derivative of the cost function and since the MAPSO and EFFO algorithms will run sequentially, the proposed hybridized MAPSO-EEFO algorithm can be parallelized, which results in fast convergence behavior. Finally, the proposed hybridized algorithm will not rely on user experience to find the optimum values of some parameters like the inertia weights and social and cognitive coefficients.

Simulation Results and Discussion
In this section, the simulation results of applying the NNFOPID as a kinematic controller to the DDMR given in (11)- (18) to track a certain trajectory will be presented.  Calculate the fitness function of the particle j, i.e., MSE(j) using (32) or (33) to each particle j, set local best cost � current MSE Local best position � current position End Set global best MSE � min (for all local best MSE) Calculate the MSE of (32) or (33) End End End (5) Set i � i + 1 and go to step 4 until either iteration i reaches i max or convergence is achieved.
ALGORITHM 1: Tuning of the optimal NNFOPID parameters for DDMR using MAPSO. Every individual searches about food in all directions randomly around the initial locations of the previous step using the osphresis organ to generate the next population.
e DDMR starts from the initial posture P (0) � [2.1, − 0.1, π/2]. e actual initial posture of the DDMR is P d (0) � [2, 0, π/2]. e effectiveness of the proposed NNFOPID and NNPID controllers is validated in the case of tracking an orbicular trajectory. e proposed controllers for the DDMR give an excellent trajectory tracking based on hybrid MAPSO-EFFO algorithm as shown in Figure 6. e results of the simulations prove the high efficiency of the offered NNFOPID controller based on hybrid MAPSO-EFFO algorithm to yield bounded and smooth left and right wheels' velocities. When both the proposed NNFOPID and NNPID controllers are tuned using the proposed hybrid MAPSO-EFFO algorithm, the proposed NNFO-PID controller presents a superior results by eliminating the overshoots in the wheel's velocities as compared to the NNPID one, this is evident from Figure 7. e plot in Figure 8 illustrates the left and right wheels' velocities of (control action) of DDMR with orbicular trajectory when 0.5 * MSE + 0.5 * (U12 + U22) performance index is used.
By comparing Figures 7 and 8, the difference between the two fulfillment indices (MSE and 0.5 * MSE + 0.5 * (U 1 2 + U 2 2 )) can be found. e mean velocity of the left wheel is 0.07729 and 0.07218 m/sec and the mean velocity of the right wheel is 0.1219 and 0.1165 m/sec for NNFOPID and NNPID, respectively. e maximum right and left wheels' velocities are 0.1463 m/sec and 0.08375 m/sec and 0.1983 m/ sec and 0.1783 m/sec with NNFOPID and NNPID, respectively. Obviously, by adding the control action term in the performance index, it decreases the velocity amplitude for both wheels. Figure 9 shows the convergence of the posture path and orientation motion MSEs for the DDMR model ( ex, ey, eθ) which in this case are (0.0000732, 0.00017, 0.000349), respectively, for the NNFOPID controller, while the MSE ( ex, ey, eθ) is (0.000226, 0.000371, 0.00019), respectively, for the NNPID controller.

Study Case 2 (Lemniscates Trajectory).
e required lemniscates trajectory is drawn using the following equations: (5) Vision searching process e fruit flies keep the best value of smell concentration and will use visionary sense to fly in the direction of that location according to the subsequent equations, End while End For End For ALGORITHM 2: Tuning of the optimal NNFOPID parameters for DDMR using EFFO.
(3) Obtain the G best position from the MAPSO for each of the NNFOPID controller parameters. e efficiency of the NNFOPID controller is verified to track a lemniscates trajectory. Compared with the same case study by using an NNPID controller, the DDMR trajectory tracking obtained by the NNFOPID proposed controllers is an excellent tracking based on crossbreed MAPSO-EFFO as shown in Figure 10(a). e corresponding results using an NNPID controller are shown in Figure 10(b). e simulation results demonstrate the high success of the offered NNFOPID controllers based on hybrid MAPSO-EFFO algorithm by showing its capability to give bounded and flat velocities for the left and right wheels. Also, it dismisses all the unexpected overshoots as compared to NNPID controller with the same optimization algorithm and the same trajectory (see Figure 11). Figure 12  12 Complexity (0.000072, 0.000051, 0.00016), respectively using the NNPID controller.

Study Case 3 (Line Trajectory
). e following equations give the required line trajectory: The  e actual initial posture of the DDMR is P d (0) � [0, 0, π/4]. A graphical comparison between the the proposed NNFOPID controller with the NNPID one is depicted in Figure 13 for the line trajectory; evidently, the proposed NNFOPID controller shows excellent performance in tracking the desired trajectory compared to the NNPID controller. Figure 14 illustrates the convergence curve of the MAPSO, EFFO, and MAPSO-EFFO algorithms for the line trajectory. As can be seen, the MAPSO-EFFO outperforms the two other remaining algorithms in terms of time and MSE.
is is also evident from Tables 2-4, where they summarize the hybridized MAPSO-EFFO, MAPSO, and EFFO algorithms, respectively, used to obtain the optimum controller's parameters after 100 iterations. ese tables show the MSE performance index for the NNPID controller which is higher than its corresponding index adopted by the NNFOPID controller in the three simulation case studies. Table 5 shows the MSE of the error of x and y coordinates and error of θ orientation for the NNPID and NNFOPID controllers. Table 6 tabulates the parameters of the NNFOPID controller for three case studies with the hybridized MAPSO-EFFO tuning algorithm.

Discussion.
e simulations results and a comparison analysis between the NNPID and NNFOPID showed that the NNFOPID is a perfect trajectory tracking kinematic controller because of its flexibility and capability that stem  controllers in the same time (one controller for each of x, y, and θ). (iv) e hybrid MAPSO-EFFO presents higher accuracy to give a minimum MSE, so it better tunes the control parameters of the NNPID and the NNFOPID controllers than other algorithms as noticed by the simulation results (see Tables 2-4). e reasons behind this improvement lie in two main points: firstly, instead of initializing the controllers' parameters within a space of particles of size 150, the MAPSO algorithm starts from a refined particles' space of size M which represents the best M particles of the original space. e second reason is that in the EFFO algorithm, two significant modifications have been added to the algorithm to speed up the convergence. e first modification is the inertia weight; the main advantage of the inertia weight is to accelerate the convergence rate of the fruit flies. e second modification is the initialization of the EFFO algorithm which starts from the best of the M best particles that the MAPSO has found and considers as the initial positions for the fruit flies.
(v) 0.5 * MSE + 0.5 * (U 1 2 + U 2 2 ) yields a less control energy for the DDMR by eliminating the upswings and overshoots of the velocity for the left and right wheels of the DDMR and limiting the values of these control signals.
is resulted in a significant advantage in reducing the energy necessary to drive the mobile robot to the required position. In addition, it avoids actuator saturation that protects the drives of the mobile robot from damage.

Conclusions
is paper presented a novel nonlinear fractional control structure based on neural networks. Two tuning optimization algorithms are also introduced in the work, namely, MAPSO and EFFO. Furthermore, a hybridization between MAPSO and EFFO algorithms has been proposed to produce a new algorithm, namely, MAPSO-EFFO algorithm. It is employed to optimize controllers' coefficients of the two proposed neural network-based nonlinear PID controllers. i.e., NNPID and NNFOPID controllers. A comprehensive demonstration and assessment between these two controllers through simulations on DDMR with different trajectories as study cases showed the effectiveness and robustness of the suggested NNFOPID controller tuned by MAPSO-EFFO algorithm, which has excellent trajectory tracking, and it has the ability to generate soft and satisfactory linear and angular velocities. It has excellent performance over the NNPID controller. Moreover, the hybridized MAPSO-EFFO results in convergence behavior and enhances the performance of the individual algorithms. It has better performance than the individual MAPSO and EFFO algorithms in tuning the parameters of the NNPID and NNFOPID controllers and avoids the premature convergence of the original MAPSO and EFFO algorithms.

Data Availability
No data were used to support this study.

Conflicts of Interest
e authors declare that they have no conflicts of interest.