• No results found

2.1 The Classic Approach

N/A
N/A
Protected

Academic year: 2021

Share "2.1 The Classic Approach"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

Aerodynamic Identication using Neural Networks

M. Larssony, P. De Raedt

Department of Electrical Engineering, Linkoping University

S-581 83 Linkoping, Sweden phone: +32 2 7672993, +46 13 284058

fax: +46 13 282622

magnusl@isy.liu.se

M. Hedlund, M. Sc. Flight Dynamics Saab Military Aircraft

S-581 83 Linkoping, Sweden phone: +46 8 59088030

mats.hedlund@ohlins.se

Abstract

The use of neural networks and ecient identication algorithms in aerodynamic modeling could substantially reduce the time and work eort in going from wind tun- nel and ight test data to model. The model is globally dierentiable and can be inspected in any way desired.

A number of structured and black box sigmoid type neural net models have been identied for mainly the Cz aerodynamic coecient in the region 0  60 , where the aerodynamic coecients behave highly non- linear. The estimation data has been directly extracted from an existing aerodatabase for a generic ghter air- craft, that also has been used for validation. All available data has been used for estimation and the data is con- sidered noiseless, so only the approximation properties of the dierent models are tested.

Somewhat surprisingly, it is found that pure black box models with the same number of parameters as structured models utilizing physical insight, often perform better.

Keywords:Aerospace, Neural Nets, Modeling

1 Introduction

The normal practice in aerodynamic identication, i.e.

the identication of the aerodynamic coecients, is to use semi-analytical semi-tabular models. Often, for ex- ample, the model is basically linear, but the values of the coecients are to be looked up in a table. Their struc- ture is simplied, using physical insight, to meet concerns of simulation speed, the interpolation of the tabular sub- models being relatively slow. The identication of the tables is performed manually, by inspection, using infor- mation from wind tunnel and small perturbation ight tests. The identication is hard to perform in highly non- linear regions of the ight envelope, e.g. for high alpha.

Since the model is partially linear it is not globally dier-

Thiswork has been supportedbythe Swedish NFFPinthe

projectNFFP-3.88.

y

Correspondencetothisauthor.

entiable, which often is necessary for the use of nonlinear control techniques.

Neural networks are exible nonlinear models for which identication algorithms exist, and it is possible to more or less automatically identify an aerodynamic model from wind tunnel and ight test data. This would give a sub- stantial time gain compared to the more manual methods used today. The model is globally dierentiable and can be inspected in any way desired.

As a step in the procedure to nd suitable model struc- tures, a number of structured and black box sigmoid type neural net models have been identied 1] for mainly the Cz aerodynamic coecient in the region 0  60 , where the aerodynamic behaves highly nonlinear. The es- timation data has been directly extracted from the aero- database for the GARTEUR High Incidence Research Model 2], an advanced simulation model of a generic

ghter aircraft. This is equivalent to using high quality data from windtunnel tests. Since all available data in the domain has been used for estimation, only the ap- proximation qualities of the models are considered.

The results are encouraging and it is found that pure black box models with the same number of parameters as structured models utilizing physical insight, often per- form better.

In section 2 we give a quick overview of aerodynamic identication and the problems we hope to solve by using neural nets as model structure. Sections 3 and 4 describes how the work was carried out and the results and section 5 contains the conclusions.

A more complete presentation of how the work was carried out, can be found in the master thesis by Pieter De Raedt 1].

2 Aerodynamic Identication

The aerodynamic forces and torques, in our case always given in the body xed reference frame, are a result of the airow around the aircraft. They are normalized with respect to some reference lengths, areas and the dynamic pressure, and thereafter called aerodynamic coecients

(2)

(denoted byC). The aerodynamic force coecients are dened as:

Cx = ; Fx

1

2V2S Cy = + Fy

1

2V2S Cz = ; Fz

1

2V2S and the aerodynamic torque coecients as:

Cl = L

b 12V2S

Cm = M

c 12V2S

Cn = N

b 12V2S

where (FxFyFz) and (LMN) represent the aerody- namic forces and torques in the body xed reference frame. S is the wing planform area, b is the span and c the mean aerodynamic chord, see 3]. The term 12V2 is called the dynamic air pressure.

These coecients are of course functions of everything that eects the ow around the aircraft, and are usually modeled as functions of the states of the aircraft, i.e. the relative wind speedV, the angle of attack , the sideslip angle , the angular ratesp,q,rand of the control surface deections as given by a number of angles . See also table 1.

A very common approximation in practice, that we also have used in this work, is that the aerodynamic is static, i.e. that the aerodynamic coecients depend momentar- ily on the states and rudder deections.

2.1 The Classic Approach

The normal practice in aerodynamic identication, i.e.

the identication of the aerodynamic coecients as func- tions of the abovementioned variables, is to use semi- analytical semi-tabular models. Often the model is ba- sically linear, but the values of the parameters, the so called aerodynamic derivatives, vary with the operating point and are stored in tables, the so called aerodatabase.

Since interpolation in tables is relatively slow, with three or four dimensions as the practical limit, the struc- ture must be simplied, using physical insight and expe- rience, to meet e.g. simulation speed requirements.

Flight tests for aerodynamic identication are then per- formed as small perturbation tests around an operating point, and the aerodynamic derivatives are estimated to- gether with the rest of the states (, , etc.) from mea- surement data. The tables (i.e. the aerodatabase) are then more or less manually updated, often point by point, depending on how much faith is put in the new data.

Needless to say, this is a slow and painstaking process

and if it to some extent could be automated, a lot could be won.

2.2 Neural Networks in Aerodynamic Identication

From a system identication point of view, the classic ap- proach means the use of a semi-analytical, semi-tabular (i.e. partially linear) model set, with a structure deter- mined by physical insight, and for which no identication algorithm of practical use exists.

Neural networks are analytical models for which ap- proximation theorems and identication algorithms exist 4]. The use of neural nets and eective identication al- gorithms in aerodynamic modeling would substantially reduce the time and work eort in getting a working model from data compared to the classic approach.

It is possible to gradually improve a model, when more and perhaps more reliable data becomes available by in- cluding the new data, possibly weighted, in the estima- tion data set and simply continue the estimation. The old model then serves as initialization. Wind tunnel data, that usually is avaliable in larger quantities and over larger domains of the ight envelope than ight test data, can also be used to `ll up the holes' where ight test data is missing. This is an area of further research.

The advantage of having an analytical model for simu- lation is obvious: no interpolations have to be performed.

This means that one can expect a signicant increase in simulation speed.

Another advantage is that the algorithms for identify- ing the neural net does not require small perturbation test data exciting the system is all that matters. With the classic approaches it is often hard to obtain satisfy- ing accuracy in highly nonlinear regions of the aerody- namics, e.g high alpha. Directly identifying a nonlinear model from data instead of going over the aerodynamic derivatives in an operating point could be expected to be advantageous 5].

In modern controller design problems one needs, if not the complete analytical expression, at least some values of the derivatives of the aerodynamic coecients (for example w.r.t. the control surface deections). For semi-analytical semi-tabular models, this again imposes numerical techniques and problems with discontinuities.

Neural networks are globally dierentiable, analytical models built up using several instances of a single nonlin- ear function, in our case the well-known sigmoid function

1

1+e;x. It is thus very easy to obtain analytical expres- sions for the derivatives. So again there is an advantage for neural network models if one wants to use methods such as gain scheduling and nonlinear control.

(3)

2.3 The Estimation Before Modeling Method

To test dierent model structures for the aerodynamics, we need to estimate the aerodynamic forces from ight test data, without imposing a parameterized model as is done in the classic approach. In the so called EBM- method, see e.g. 5], 6], 7], 8], this is done by modeling the forces and torques as colored noise and estimate them together with the other states in an extended kalman

lter. Then we can choose any model we like for the aerodynamics.

3 The Data

The data used in this work comes from the GARTEUR High Incidence Research Model (HIRM) 2], an advanced nonlinear simulation model of a generic ghter aircraft.

The aerodatabase is constructed from wind tunnel and drop tests of a scale model. The HIRM was origi- nally designed to investigate ight at high alpha, and the aerodatabase therefore spans over a very wide range of angle of attack and sideslip angle ( 2 ;50 120 ] and  2 ;50 50 ]). In the HIRM aerodatabase, the six aerodynamic coecients are modeled (tabulated) as static functions of the eleven variables in table 1. The

 the state variables V true airspeed

angle of attack

 sideslip angle proll rate qpitch rate ryaw rate

 the control variables

tssymmetrical aileron deection

cssymmetrical canard deection

tddierential aileron deection

cddierential canard deection

rrudder deection

Table 1: All possible inputs to the HIRM aerodynamic models.

HIRM model for e.g. theCz coecient is:

Cz(tscs qc2V) =

Cz0(ts) +Czcs(ts)cs+Czq(cs) qc 2V

So for this coecient, there are three look-up tables : Cz0(ts),Czcs(ts) andCzq(cs). For simplicity, qqcalone will henceforth denote the normalized pitch rate

2V.

For the identication of the aerodynamic models pre- sented in this paper, only data extracted directly from the aerodatabase has been used, in order to test the per- formance of dierent model structures.

4 Modeling

The possible outputs are Cx, Cy, Cz, Cl, Cm and Cn. We will try multi output modeling of the longitudinal coecients (Cx,Cz,Cm) and of the lateral coecients (Cy,Cl,Cn) in section 4.2, but we will concentrate on the single output modeling ofCz, section 4.3.

We have chosen the domain 0  60 , because it contains enough complexity to study the possibility of identifying global models.

Estimation data extracted from the HIRM aero- database in the domain 0  60 were used. We used as much information as possible, i.e. all the data points in the HIRM tables in this domain, see gure 1, so the error is due to the approximation properties of the models and possible problems with local minima. In the case of theCzcoecient, there were 1575 data points in the range;0:5/Cz /2:5.

0 20 40 60

−40

−20 0 20

0 20 40 60

−40

−20 0 20

0 20 40 60

−0.02 0 0.02

−40 −20 0 20

−40

−20 0 20

−0.02 −0.01 0 0.01 0.02

−40

−20 0 20

−0.02 −0.01 0 0.01 0.02

−40

−20 0 20

ts

cs

q

ts

cs

ts

q

cs

q

Figure 1: The estimation data used forCz. Visualization of the data spread in the four regressors (tscsq).

Every table is a projection of the whole regressor space.

4.1 The Neural Net Toolbox

A MATLAB toolbox for nonlinear system identication developed by Dr. Jonas Sjoberg has been used for all models. The toolbox, hereafter referred to as NNT, al- lows you to dene a large variety of dierent parameter- ized model structures and to estimate the parameters - or

(4)

subsets of them. The numerical method used is a second order Levenberg-Marquardt algorithm. NNT is described in detail in 9].

4.2 The dierent structures for com- bined modeling

In the aerodynamic identication problem there are six coecients, which can be modeled separately. However, there might be some common behavior for some of these coecients. In that case it could be interesting to model these coecients together, that is, to identify one model that has these coecients as outputs. In that way, the pa- rameters modeling the common behavior could be shared.

We tried multi output modeling of the longitudinal co- ecients, and of the lateral coecients since that is a very natural grouping of the coecients and on visual inspection of the aerodatabase, they do share common behavior. They also share the same input variables in the aerodatabase.

For the longitudinal coecients, we used all the regres- sors that are used in the corresponding HIRM models, i.e., the set of regressorstscsq.

For the lateral coecients we have only used the re- gressors,,cs,ts,r(ve out of a possible ten), because the identication is very computationally demanding for multi output models. We have chosen these regressors because they seemed to be the most important ones.

For the MIMO models, we have tried black box models consisting of a two-layer sigmoid neural net.

The computational burden computing the parameters in the models was extremely high and, as a consequence, only a few dierent initializations were tried out for each model. We could therefore expect problems with local minima, and visualizing the obtained best model showed that the few obtained results were bad.

4.3 The dierent structures for

Cz

For theCz coecient, all neural nets are single layer sig- moid type.

To minimize the inuence of local minima, we tried out many (more than ten) dierent random initializations for each model set, and retained only the one with the best characteristics (measured by the RMS t and the maximum error).

In the following,  stands for model parameters.

The following model structures were implemented forCz (see gure 2):

1. The black box model:

g(tscsq j) =g1(tscsqj 1) 2. The most linearized model structure:

g(tscsq j ) =g1(ts j1)+

g2(tsj 2)cs+g3(cs j3)q

3. The intermediate structure containing no product re- lations:

g(tscsq j) =g1(ts j 1)+

g4(g2(ts j2)csj4) +g5(g3(cs j3)q j5)



ts

C

NN z



q



cs

Black Box



ts



ts



cs



cs

q

C

z

NN NN NN







Most linearized



ts



ts



cs

C

z

NN NN NN







NN



cs

NN

q

Intermediate

Figure 2: The three structures used for modelingCz. The structures, especially the intermediate structure, will be further explained below.

Notice that for the most linearized structure, the sub- models g1(ts j 1), g2(ts j 2) and g3(cs j 3) correspond to the terms Cz0(ts), Czcs(ts) and Czq(cs) in the HIRM model for Cz. The tables can be extracted from the HIRM aerodatabase, thus making it possible to randomly initialize the submodels over the correct domain.

(5)

The black box model. In NNT, a single layer sigmoid neural net withminputs,poutputs andnh units in the hidden layer contains the following amount of parame- ters:

(m+ 1)nh + (nh+ 1)p:

Our models for Cz, with m = 4 and p = 1, will thus contain 6nh+ 1 parameters.

The most linearized model structure. The neural

net blocks for the submodelsg1(ts j1),g2(tsj2) andg3(cs j3), contains the following amount of pa- rameters:

4(nh1+nh2+nh3) + 3

where nh1, nh2 and nh3 are the number of neurons in the respective blocks.

The intermediate model structure. A four-neuron single layer neural net (i.e. 17 parameters) was identied to mimic an algebraic product, which can be done with very high accuracy (see 1]). That is, we have a neural net with the property:

p(xyjp)xy

The most linearized model structure could then be im- plemented in the following way:

g(tscsq j ) =g1(ts j1)+

p(g2(ts j2)csj p) +p(g3(cs j3)q jp) where the product(-performing) blocks are kept xed while identifying the other blocks of the structure. The

nal completely identied model should then normally have the same kind of performance as the most linearized model structure using algebraic product relations. How- ever, one could think of releasing the 17 parameters con- tained in each product block. The previous model struc- ture is then turned into:

g(tscsq j) =g1(ts j1)+

g4(g2(ts j2)cs j4) +g5(g3(csj3)q j5) with a total of 4(nh1+nh2+nh3)+37 parameters. There are two possible advantages of doing this:

- the model set is more complex it can model nonlin- earities incsandq

- keeping the parameters p xed at rst may be a good way to avoid local minima for such complex models

In other words, there are possible improvements of the approximation properties and for identiability.

The results are presented in table 2. The rst column contains the name of the model. The name indicates the

layout of the model: if it contains ve numbers (model m44444), the model has the intermediate structure. The

ve numbers correspond to the number of neurons in the

ve blocks. If the name contains three numbers (models m211 tom666), the model has the most linearized struc- ture, and the three numbers correspond to the number of neurons in the three blocks. Else (models m3 to m14), the model has the black box structure, and the number indicates the number of neurons contained in the single block (three to fourteen). The second and third columns in the table indicate the number of neurons and param- eters contained in the model, respectively. The two last columns contain the RMS t and the maximum predic- tion error on the estimation data set.

NAME NEURONS #PAR RMS MAX ERR

m3 3 19 0,084 0,349

m5 5 31 0,076 0,309

m8 8 49 0,058 0,258

m12 12 73 0,053 0,250

m14 14 85 0,041 0,162

m211 4 19 0,105 0,442

m322 7 31 0,085 0,371

m444 12 51 0,059 0,238

m666 18 75 0,050 0,271

m44444 20 85 0,049 0,222

Table 2: Ten models for Cz, identied in the domain

0  60 .

In gure 3, the results obtained with structured mod- els are directly compared to the results obtained with black box models. In both plots it can be seen that the black-box models perform better or equally well as the structured models with the same amount of parameters.

This is somewhat surprising, since we used structures identical to those of the HIRM model (i.e. the system).

In general, one can say that the more structured a model is, the less freedom it has in nding the best way of using the available parameters to reduce the RMS t. This might explain why the best results were obtained with black box models.

5 Conclusions

The use of neural networks and ecient identication algorithms in aerodynamic modeling could substantially reduce the time and work eort in going from wind tun- nel and ight test data to model. The model is globally dierentiable and can be inspected in any way desired.

A study has been made on the ability for neural nets to capture the nonlinearities characteristic for the aero- dynamic coecients. The estimation data was directly extracted from an existing aerodatabase, that also was used for validation. All available data was used for es-

(6)

10 20 30 40 50 60 70 80 90 0.04

0.05 0.06 0.07 0.08 0.09 0.1 0.11

Number of parameters RMS t for theCz models

10 20 30 40 50 60 70 80 90

0.15 0.2 0.25 0.3 0.35 0.4 0.45

Number of parameters Max error for theCz models

Figure 3: RMS t and maximum prediction errors for the dierent model structures (black box models: dash- dotted line structured models: dashed line).

timation, so the error is due only to the approximation properties of the models and possible numerical problems like local minima.

A number of structured and black box sigmoid type neural net models was identied for mainly theCzaero- dynamic coecient and the results were encouraging.

We strongly recommend the use of single output mod- els in order to reduce the computational burden of the identication and to reduce problems with local minima.

In general, the system is unknown, and model struc- tures are chosen using physical insight. In our case, the system (i.e. the HIRM aerodatabase) was known, and we used structures based directly on this knowledge. Even so, the results for black box models were better. This may indicate that the simplied model structures used for the classic approach are not the best suited to describe the data, and that the extra exibility of black box models could be advantageous. In the case of structured mod- els when the size, i.e. the total number of parameters,

have been determined, we still have to decide where in the model the parameters should go (cf. gure 2). This is a combinatorical problem where the number of possibili- ties grow rapidly. In a black box structure as exible as a neural net, the algorithm decides where the parameters are most useful.

References

1] P. De Raedt. Aerodynamic identication using neural network models. Master's thesis LiTH-ISY-EX-1733, Department of Electrical Engineering, Linkoping Uni- versity, Linkoping, Sweden, July 1996.

2] FM(AG08). Robust Flight Control Design Challenge Problem Formulation and Manual - The High Inci- dence Research Model (HIRM). GARTEUR (Group for Aerotechnical Research and Technology in Eu- rope), 1 edition, August 1995. GARTEUR/TP-088-4.

3] B. L. Stevens and F. L. Lewis. Aircraft Control and Simulation. Wiley, 1992.

4] J. Sjoberg. Non-Linear System Identication with Neural Networks. Phd thesis 381, Department of Elec- trical Engineering, Linkoping University, Linkoping, Sweden, 1995.

5] M. Sri-Jayhanta and R.F. Stengel. Determina- tion of nonlinear aerodynamic coecients using the estimation-before-modeling method. Journal of Air- craft, 25(9):796{809, September 1988.

6] M. Sri-Jayhanta. Data Acquisition and Aerodynamic Coecient Estimation at High Angles of Attack.

Phd thesis 1624-T, Department of Mechanical and Aerospace Engineering, Princeton University, Prince- ton, New Jersey, August 1983.

7] D.J. Linse and R.F. Stengel. Identication of aero- dynamic coecients using computational neural net- works. AIAA 92-0172, 6-9 January 1992.

8] M. Lundberg. Tillst!andsskattning fr!an ygprovdata med extended kalman-lter och smoothing. Master's thesis LiTH-ISY-EX-1637, Department of Electrical Engineering, Linkoping University, Linkoping, Swe- den, December 1995. In swedish.

9] P. De Raedt J. Sjoberg. Nonlinear system identica- tion: a software concept and examples. In Proceedings of the 11th IFAC Symposium on System Identica- tion, Kitakyushu, Fukuoka, Japan, July 1997.

References

Related documents

We illustrate the power of combining semi-physical and neural network modeling in an application example.. It is argued that some of the problems related to the use of neural

The dual-Youla method Before turning to the joint input-output methods we remark that the dual-Youla method 10 applied with a xed noise model H gives the following expression for

Thus, the larger noise variance or the smaller number of data or the larger con dence level, the smaller model order should be used.. In the almost noise free case, the full

We conclude that the least squares identication step used in the iterative H 2 identication and control schemes approximates the Gauss Newton step in the direct minimization

Table 5.8: Approximation of the nonlinear function by a second order polynomial model, for the second simulation set In Figures 5.15, 5.16, 5.17, 5.18 are plotted the output

Förskolans institutionella profil som åskådliggörs visar att föreställningarna om barnens lärande på förskolan har förändrats, från att inte ha varit i fokus har nu

The dimensions are in the following section named Resources needed to build a sound working life – focusing on working conditions and workers rights, Possibilities for negotiation and

To perform human activity recognition on accelerometer data, the classifier models used were recurrent and non-recurrent neural networks with a varying number of layers and