Literature DB >> 30261595

Bio-Inspired Neural Adaptive Control of a Small Unmanned Aerial Vehicle Based on Airflow Sensors.

Zijun Ren1, Wenxing Fu2, Supeng Zhu3, Binbin Yan4, Jie Yan5.   

Abstract

Inspired by the exceptional flight ability of birds and insects, a bio-inspired neural adaptive flight control structure of a small unmanned aerial vehicle was presented. Eight pressure sensors were elaborately installed in the leading-edge area of the forward wing. A back propagation neural network was trained to predict the aerodynamic moment based on pressure measurements. The network model was trained, validated, and tested. An adaptive controller was designed based on a radial basis function neural network. The new adaptive laws guaranteed the boundedness of the adaptive parameters. The closed-loop stability was analyzed via Lyapunov theory. The simulation results demonstrated the robustness of the bio-inspired flight control system when subjected to measurement noise, parametric uncertainties, and external disturbance.

Entities:  

Keywords:  UAV; bio-inspired flight control; neural network; pressure sensor

Year:  2018        PMID: 30261595      PMCID: PMC6210018          DOI: 10.3390/s18103233

Source DB:  PubMed          Journal:  Sensors (Basel)        ISSN: 1424-8220            Impact factor:   3.576


1. Introduction

With the development of science and technology, unmanned aerial vehicles (UAVs) are becoming increasingly popular in business and daily life. Although small unmanned aerial vehicles (SUAVs) provide a new perspective of social life in areas such as agriculture [1], industry [2], public security [3], package delivery [4,5], as well as entertainment and media [6], as a multipurpose tool its potentiality has not been fully tapped—the flight safety of SUAVs being one of the main constraints. The complexity of the aerodynamics of the atmospheric boundary layer increases rapidly with decreasing altitude. The flow field changes frequently because of changeable weather conditions and complex interactions between ground objects. Turbulence intensities near the ground can reach >40% and >15% in suburban and urban environments, respectively [7,8,9]. Severe turbulence can degrade the flight safety of SUAVs particularly in complex urban environments, which leads to their limited application. Traditional attitude control systems of SUAVs based on the low-cost and rough IMUs (inertial measurement units) and actuators can barely maintain flight stability. However, birds and insects found commonly in everyday life demonstrate excellent flight skills. SUAVs, birds, and insects largely fly at low Reynolds number, where nonlinearity and separation occur [10]. It seems that problems caused by low Reynolds numbers do not bring a great deal of distress to flying animals. Previous research has revealed that flying living beings have the ability to sense the flow information around them [11,12,13,14]. Feathers in the wings of birds have a sensing mechanism to measure airspeed and to detect stall and separation [12]. The mechanosensory feather system of a bird can greatly reduce reaction time, and is advantageous for rapid maneuvering. It is still unknown how the avian brain processes signals generated from thousands of mechanoreceptors [13]. Inspired by the mechanism, interesting studies have been published which try to use flow information to enhance flight safety. Sergio et al. modified two SUAV platforms, one equipped with 12 strain gauge sensors and the other with an array of pressure sensors. Experimental results verified that force sensing and flow sensing offered advantages beyond IMUs [15]. Shen et al. proposed an algorithm to estimate the aerodynamic forces based on airflow measurement and designed a robust sliding mode controller. The simulation results demonstrated an enhanced performance of the control framework [16]. Mohamed et al. took a closer look at the interrelation between atmospheric turbulence and wing surface pressure variations. Wind tunnel experiments revealed that a high correlation appeared in the wing leading-edge region, making this a better choice of where to place pressure sensors [17]. Pressure sensors were also used to augment roll motion stability [18]. In order to enhance the flight stability of flying vehicles under parametric uncertainties and external disturbances, scholars and researchers have proposed numerous model-based control strategies [19,20]. Adaptive control and robust control are popular tools to deal with uncertainties [21,22], among which the global approximation attribute of the neural network (NN) is attracting scholars’ interest [23,24,25,26]. Zeghlache et al. [24] designed a fault-tolerant NN controller based on a faulty octorotor aerial vehicle model, which showed perfect tracking performance despite a rotor failure. The radial basis function neural network (RBF NN) was exploited to estimate external disturbances [23] and uncertain terms [26]. In [25], the authors incorporated a higher-order NN in a discrete backstepping scheme. In this paper, a bio-inspired flight control framework is studied, where pressure sensors are integrated into the framework. The rest of the paper is organized as follows: in Section 2, the configuration of the pressure sensors of the test-model SUAV is presented, a back propagation neural network (BP NN) model is trained, validated, and tested, and a modified control-oriented model is proposed. The neural adaptive controller design and stability analysis are presented in Section 3. Finally, the simulation results and conclusions are shown in Section 4 and Section 5, respectively.

2. Airflow Sensor System and Modeling

2.1. Pressure Sensor Configuration

Flying animals such as birds and insects have abundant mechanoreceptors in the wings and head to perceive airflow information around their bodies [12,27]. The anatomical features of pigeons demonstrate that about 70% of all the Herbst corpuscles are situated in the leading-edge region of the alula, and 30% are around the caudal band, yet there are few in the middle [11]. The density distribution of the Herbst corpuscles indicates where to measure the airflow information [13]. In order to obtain the flow field information around the SUAV, pressure sensors were selected and embedded in the front of the main wing. Previous research was also inclined to detect the airflow in the leading-edge area [15,17,18]. A tandem-wing SUAV prototype named XZD-I was chosen as the model plane with which to conduct the experiments. Its wingspan was 1.2 m, its gross mass was 4 kg, and the designed trim velocity was 25 m/s (shown in Figure 1). Considering the sensor wiring and dimensional limitation, only eight sensors were installed in the front wing. Nos. 1–4 were in the middle of the left wing, Nos. 5–8 in the middle of right wing, symmetrically. Nos. 1–2 and 5–6 were placed on the upper wing surface, while Nos. 3–4 and 7–8 were on the lower wing surface (refer to Table 1 and Figure 1).
Figure 1

Small unmanned aerial vehicle (SUAV) model and pressure sensor configuration: (a) the XZD-I SUAV; (b) positions of the center of gravity (c.g.) and aerodynamic center (a.c.); (c) top view of the SUAV; (d) site of the sensors in the airfoil section.

Table 1

Pressure sensor location in the front wing.

Pressure SensorChordwise (x/Chord)Spanwise (y/Span)
P1, P50.051/4, 3/4
P2, P60.351/4, 3/4
P3, P70.11/4, 3/4
P4, P80.351/4, 3/4

2.2. Pitching Moment Prediction

Inspired by young birds learning to fly, a BP NN was introduced to build the complicated relationship between the pressure sensor measurements and the aerodynamic moment.

2.2.1. BP NN Modeling

A BP NN usually contains an input layer, an output layer, and one or more hidden layers. A BP NN of one hidden layer with enough neuron nodes can approximate any nonlinear function. The number of input and output layer nodes of the BP NN is related to the practical application. In this work, a BP NN with a three-layer structure was adopted. The input layer had eight nodes and the output layer had one node. The number of hidden nodes was calculated according to: , where is the number of hidden layer nodes, is the number of input layer nodes, is the number of output layer nodes, and is a constant between 1 and 10. After several rounds of training experiments, it was better to increase the number of hidden layer nodes to ten. The BP NN was built and trained in MATLAB® software. The tansig transfer function was assigned to the hidden layer, and the purelin function to the output layer. The network is shown in Figure 2. Eight pressure sensors’ outputs (P1–P8) were inputted to the eight input layer nodes. was the pitching moment estimation output, and was defined as the NN prediction error.
Figure 2

The back propagation neural network (BP NN) structure.

2.2.2. Sample Preparation

In order to train the network, training and testing samples were constructed using the basic computational data of the SUAV model. The basic aerodynamic data were calculated in a widely used CFD code—CFL3D. The range of the attack angle α was chosen as −6° to 12°, which was an acceptable attitude envelope. Table 2 shows a representative aerodynamic data with a sampling rate of 2°. Because of the symmetry of the SUAV, the computational pressure outputs of sensors P5–P8 were nearly equal to P1–P4, respectively. Therefore, columns P5–P8 in the table were omitted for conciseness. Each line in Table 2 was a sample. α was the sample index. P1–P8 were the eight network inputs. M was the target.
Table 2

Computational aerodynamic data samples: sampling rate of 2°.

α (°)P1 (Pa)P2 (Pa)P3 (Pa)P4 (Pa)P5–P8M (Nm)
−6101,539101,333100,734101,172−2.80
−4101,471101,297101,013101,195−2.78
−2101,382101,259101,105101,233−2.74
0101,275101,218101,191101,269−2.55
2101,154101,177101,273101,305−2.26
4101,018101,136101,348101,339−2.11
6100,870101,094101,417101,372−2.02
8100,714101,052101,478101,403−1.93
10100,557101,010101,531101,433−1.81
12100,414100,969101,578101,461−1.54
Figure 3 shows the computational sample data set. The computational sample set consisted of 37 groups of sampling data where the sample index α array was [−6 −5.5 −5 −4.5···11.5 12]. To improve the prediction accuracy of the network on noisy measurements, white noise was added to the computational data sample set. Ninety-nine noisy sample sets were randomly generated by adding normally distributed random numbers to the computational sample set. The random numbers were from a normal distribution with a mean of 0 and standard deviation 15, which simulated the measurement accuracy of ±15 Pa.
Figure 3

The computational data (sampling rate of 0.5°): (a) eight sensors’ measurements; (b) target data of pitching moments.

The 100 sample sets (1 computational sample set and 99 noisy sample sets) served as network training inputs. The first 1–60 sample sets were the training sets, the following 61–80 sets were the validation sets, and the last 81–100 sets were the test sets.

2.2.3. Training and Testing the BP NN

Once the network and the sample sets were ready, the MATLAB® Neural Network Toolbox was employed to train the network. The training function was the trainlm function. The maximal iteration times were 1000, the target error goal was , and the performance function was mean squared error (MSE). The remaining training parameters were the default values. The training results are shown in Figure 4. The best training performance was . It seems that the training performance failed to achieve the target error goal, but it was still good. The regressions of the training set, validation set, and test set were 0.99975, 0.99971, and 0.99967, respectively.
Figure 4

The BP NN training results: (a) the training errors of the training set, validation set, and test set; (b) regression of the training set; (c) regression of the validation set; (d) regression of the test set.

In order to test the prediction accuracy of the network, 36 samples of noisy data were chosen for the experiment. A new set of aerodynamic data between sampling intervals was recalculated in CFL3D to test the performance. Table 3 shows the index of the test samples.
Table 3

The index of 36 test samples.

α (1–10°) −5.58−5.10−4.98−4.39−3.56−3.16−2.69−2.10−1.61−1.43
α (11–20°) −0.55−0.010.120.931.161.642.272.693.073.74
α (21–30°) 4.404.785.275.626.466.887.087.738.318.54
α (31–36°) 9.119.6310.1310.7111.1311.94××××
The test results are shown in Figure 5. The prediction values and the measured values matched well. The prediction errors were between ±1.5%, which showed the high accuracy of the BP NN model for the pitching moment prediction.
Figure 5

The BP NN test results: (a) comparison of measurements and NN prediction; (b) the prediction error; (c) regression of test samples.

2.3. Control-Oriented Modeling

The longitudinal static instability of the XZD-I SUAV places greater demands on the attitude controller design. In this paper, the pitching channel stabilization was taken as the example to illustrate the bio-inspired control architecture. The typical method of modeling the pitching moment is to linearize as , where are aerodynamic coefficients, is the angle of attack, and is the elevator angular deflection. Nevertheless, the pitching moment of the SUAV is nonlinear about and , depicted in Figure 3. The typical model will cause a large modeling error, which results in a large control gain and a low stability margin. The flow field around the leading-edge area is less affected by the deflection of the trailing edge flap for a wing of infinite span [28]. It is reasonable that pressure sensors P1–P8 in the leading-edge domain can be exploited to estimate the basic aerodynamic forces (zero flap angle). In order to take full advantage of the airflow information, we present a modified model of the pitching moment. Modified pitching moment model The pitching moment is given as follows: where = can be estimated through pressure information, and is the modeling error. The longitudinal kinetic equations can be written as: where is the moment of inertia, is pitch angle, is pitch angular rate, is the pitching moment, and is the external disturbance torque. During the trim flight condition, an assumption is made on flight path angle that . Hence, the longitudinal angle equation becomes . The angle of attack can be replaced by the pitch angle for a short period during a trim flight. Define , . The longitudinal kinetic Equation (2) can be rewritten as a more general strict feedback form: where , , , , . , where is the BP NN output and is the estimation error. Considering the uncertainties and external perturbation, Equation (3) becomes: where , . There exist constantsandsuch that. External disturbance torqueis assumed to be bounded and change slowly. The control goal is to synthesize a bounded control signal to drive the actual pitch angle to the desired angular trajectory as closely as possible, in spite of model uncertainties and external disturbance.

3. Neural Adaptive Controller

3.1. RBF NN

To achieve the control goal, neural network and adaptive approximation approaches were applied. It was proved that RBF NN has the ability of universal approximation [29,30]. A commonly used Gaussian function RBF NN is simply described as [20]: where is weight vector, is the number of hidden layer nodes, and is the basis function vector. The Gaussian function has the form: where is the ith center vector of the receptive field, and is the ith width of the Gaussian function.

3.2. Controller Design

The synthetic controller was designed via a backstepping structure. Define the tracking error as: Following the backstepping design schemes, select Lyapunov function as: The derivative of along the trajectories of system (4) is: Taking as the virtual control to stabilize the subsystem (where , ), an alternative desired virtual control value is selected as: where is the control gain of the first subsystem. Defining and substituting into Equation (9), yields: If follows the track of closely, indicating that , will exponentially decay. Define a Lyapunov function as: In view of Equations (4), (11), and (12), the derivative of is: Since and are unknown, the task is to design an adaptive controller and update laws and , satisfying . We design the adaptive control law: where and are the estimations of and , respectively. is the control gain of the second subsystem. The update law has the form: where , is a small positive value, and is the nominal value of . is the projection modification defined as follows: Note that the projection process ensures , provided that , which guarantees non-singularity of the control law over the considered flight envelope. The composite uncertainty is approximated by RBF NN: where is the ideal approximation of RBF NN with a finite number of hidden layer nodes, is the ideal output layer weights vector (, is a positive constant [20]), is the output vector of the hidden layer, is the updated estimation, is the updated output layer weights vector, and is the approximation error (, denotes the supremum of the approximation error [20,31]). The adaptive law of is designed as: where and are designed positive parameters. The desired pitch signalis filtered by a second-order pre-filter (refer to ,, andare generated by the pre-filter. The parameters of the pre-filter were chosen asand.

3.3. Stability Analysis

Define Lyapunov function candidates and : where and . Define , thus the derivative of along the trajectory of the system (4) is: Substituting (15), (16), and (18) into (20), can be rewritten as: Step 1: Considering the second term on the right-hand side of Equation (21), we have: Step 2: As to the third term, the following inequation can be obtained: Step 3: The fourth term is a piecewise function of three segments (Case-I, -II, -III). For Case-III, we have: For Case-I: if and , we know the following inequations: For Case-II, it is similar to that of Case-I. It is easy to prove that Inequation (25) still holds. Note that if , is guaranteed by the projection operator [20]. Step 4: Case-III Combining (21), (22), (23), and (24), we have: If , Equation (26) can be reduced to: According to LaSalle’s invariance principle, is bounded. If and are bounded, and are bounded. If , Equation (26) can be rewritten as the following form: where Therefore, converges exponentially until [32]. Case-I and Case-II: Combining (21), (22), (23), and (25), we have: Similar to Case-III, the boundedness of all closed-loop signals and errors could still hold. Conclusion: Considering the system (4), control law (14), and adaptive laws (15) and (18) under Assumption 1, all signals of the closed-loop system ((4), (14), (15), and (18)) are bounded. The steady state tracking errorcan be arbitrarily small by increasing the control gainand elaborately choosing the design value of,,,, and[.

4. Simulation and Discussion

In this section, the derived bio-inspired neural adaptive control (BNAC) structure was tested by simulation in MATLAB®. Figure 7 shows the block diagram of the system. In order to verify its performance and effectiveness, the closed-loop system—while suffering external disturbance, measurement noise, and parametric uncertainties—was simulated to track a pre-filtered 5° step command. Four representative simulation cases were presented. The initial states were set as: = 25 m/s, = 0°. The number of RBF NN hidden layer nodes was chosen as five. The design parameters were designed as: , , , , , and , respectively. The actuator was modeled as a second-order system with a damping ratio of 0.8 and a natural frequency of 72. The external disturbance torque with an amplitude of 0.5 Nm was assumed to occur at 10 s. The gyro outputs were assumed to be polluted by white noise with mean of 0 and 0, and standard deviation of 0.21 °/s and 0.62 °/s2, respectively. The pressure sensors were selected with 95% accuracy of±15 Pa. Pressure measurements were filtered by low-pass filters with a time constant of 0.08 s.
Figure 7

Block diagram of the bio-inspired control system. RBF: radial basis function.

For demonstrative purposes, the BNAC was compared with the basic backstepping controller and a widely used cascaded PID controller. The control gains and of the compared basic backstepping controller were the same as BNAC. The PID controller had a classical structure of two loops—a pitching rate inner loop and a pitch angle outer loop. On the basis of the frequency response of the SUAV and the actuator, the inner-loop system was tuned to a cut-off frequency of 15 and a phase margin of 60°. The outer loop was tuned to a cut-off frequency of 10 and a phase margin of 83°. The PID parameters are shown in Table 4.
Table 4

The PID controller parameters.

Inner Loop PIDOuter Loop PID
Kp Ki Kd Kp Ki Kd
0.121.10.00346.09.40.47
Figure 8 shows the control performance of the nominal model when no measurement noise was assumed. From time = 0 s to time = 10 s, the transient responses of the basic backstepping controller and BNAC were satisfactory. The PID controller overshot by about 10%. The pitch angles soon became stable. The tracking error of BNAC quickly converged to zero, while the PID required 2 s. There was a steady state error of the backstepping controller. To test the disturbance rejection performance of the controllers, the external disturbance torque was injected into the model between 10 and 20 s. BNAC could still maintain a good tracking performance when the external disturbance occurred. Because of the integrator, the PID controller withstood the disturbance and the output finally approached the command signal. It can be concluded that the BNAC performed better than the backstepping and PID controller under external disturbances, as shown in Figure 8b.
Figure 8

Step signal tracking results under external disturbance: (a) pitch angle trajectory; (b) tracking error; (c) elevator deflection; (d) RBF NN weights. BNAC: bio-inspired neural adaptive control. (BNAC: bio-inspired neural adaptive control, PID: proportion integration differentiation)

The tracking performances with respect to measurement noise are shown in Figure 9. The backstepping controller had the worst robustness and anti-noise ability. The PID controller had a good anti-noise performance but the worst transient performance, although the PID controller had the advantage of being cheaper and easier to implement.
Figure 9

Step signal tracking results under external disturbance and noise: (a) pitch angle trajectory; (b) tracking error; (c) elevator deflection; (d) RBF NN weights.

Figure 10 and Figure 11 demonstrate the robustness with respect to parametric uncertainties. For the sake of performance comparison, only three kinds of uncertain parameters were considered: reference area , moment of inertia , and air density . The maximum values of the additive uncertainties were taken as follows:
Figure 10

Step signal tracking results under external disturbance and parametric uncertainties: (a) pitch angle trajectory; (b) tracking error; (c) elevator deflection; (d) RBF NN weights.

Figure 11

Step signal tracking results under external disturbance, measurement noise, and parametric uncertainties: (a) pitch angle trajectory; (b) tracking error; (c) elevator deflection; (d) RBF NN weights.

Figure 10 clearly shows that the BNAC structure had a good performance and exhibited robustness when subjected to parametric uncertainties and external disturbance. Figure 11 demonstrates the exceptional quality of the proposed BNAC system to accurately track command when measurement noise, parametric uncertainties, and external disturbances occurred.

5. Conclusions

This paper proposes a bio-inspired neural adaptive SUAV control system. Pressure sensors were embedded in the forward wing surface to sense the airflow around the vehicle. The sensor locations elaborately designed. A BP NN was used to estimate the aerodynamic moment based on the pressure information. The SUAV’s aerodynamic model was modified to match the control system. To make full use of the estimation, a robust neural adaptive controller was proposed, based on a RBF NN. The closed-loop stability was analyzed via Lyapunov theory. The derived robust adaptive controller was tested by simulation. The simulation results showed a good performance of the proposed SUAV control system to accurately track command when measurement noise, parametric uncertainties, and external disturbance occurred. Future works will focus on: (1) improving the estimator performance, (2) expanding the controller to 3-axis attitude, and (3) implementing flight experiments.
  3 in total

1.  Actuator fault tolerant control using adaptive RBFNN fuzzy sliding mode controller for coaxial octorotor UAV.

Authors:  Samir Zeghlache; Hemza Mekki; Abderrahmen Bouguerra; Ali Djerioui
Journal:  ISA Trans       Date:  2018-06-07       Impact factor: 5.468

2.  Composite neural dynamic surface control of a class of uncertain nonlinear systems in strict-feedback form.

Authors:  Bin Xu; Zhongke Shi; Chenguang Yang; Fuchun Sun
Journal:  IEEE Trans Cybern       Date:  2014-04-04       Impact factor: 11.448

3.  Unmanned aerial systems-based remote sensing for monitoring sorghum growth and development.

Authors:  Sanaz Shafian; Nithya Rajan; Ronnie Schnell; Muthukumar Bagavathiannan; John Valasek; Yeyin Shi; Jeff Olsenholler
Journal:  PLoS One       Date:  2018-05-01       Impact factor: 3.240

  3 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.