The NARMAX Model For A DC Motor Using ML PDF
The NARMAX Model For A DC Motor Using ML PDF
2. NARMAX Model
Accurate model is required in order to have a successfully
system identification. Leontaritis and Billings [6] proposed
a NARMAX structure as a general parametric form for
nonlinear systems. This structure describes both the
stochastic and deterministic component of a system. The
NARMAX model is a generalization of the linear ARMAX
model and the SISO case. NARMAX structures models the
Figure 1 - MLP Architecture
The overall equation for figure above can be derives as: choosing to determine the proper lag space structure before
identifying a model of a dynamic system without estimating
⎛ q
⎞
yˆ i (w , W ) = Fi ⎜⎜ ∑ Wij h j (w ) + Wi 0 ⎟⎟ (2) the values of the parameters of the model. Unfortunately
⎝ j =1 ⎠ the Lipschitz method is very sensitive to the noise in the
data [16].
Only one network with one hidden layer are considered in
the present study because the results of Billings et al. [11] The main idea of the method is to estimate the maximum
and Taib et al. [12] show that this is sufficient to gradient of an unknown mapping from the given input-
approximate all continuous functions. The activation output data or in other words it can estimate the smoothness
function for output layer is selected to be linear and for an unknown mapping [17]. While smooth mapping (less
hidden layer is selected to be hyperbolic tangent. maximal gradient) is a desirable feature of a model, it can
be determine the order the model to create the smoothness
Previously, several variants of ANN were employed for DC mapping between the input and the output data.
motor modeling and control. Minkova et al. [10] used a
feed-forward ANN and Mohamed et al. [9] used a NARX 5. Modeling Process
model via a three layer feed-forward network. These efforts
attested to the viability of using ANN for motor modeling For the modeling process (see Figure 2), input-output data
and control. for a DC motor drive system were collected. Then, the
Lipschitz analysis was performed on the data to gauge the
3.1 Levenberg-Marquardt Algorithm (LMA) maximum lag of the data. Subsequently, NARMAX model
A Levenberg-Marquardt algorithm (LMA) is the standard structure and fitting using MLP network was carried out.
method for minimization of mean-square error criterion, The process is adjusted until the prediction output satisfied
due to its rapid convergence properties and robustness. A a model validation test.
version of this method described in Fletcher [13], Ljung
[14] and Nørgaard et al. [15]. Data Collection
This work uses prediction error approach, which is based
on the introduction of a measure of closeness in terms of
mean square error criterion as defined as: Selecting Model
Structure
( )
N
∑ ε(t , θ)ε (t , θ)
1 (3)
V N θ, Z N = T
2N t =1
θ y ε (τ ) = E[( y 2 (t − τ ) − y 2 (t ))ε (t )] = 0, ∀τ
Maximum Iteration (Epochs) 500
(9)
λ =1
2
Lambda
θ y ε (τ ) = E[( y 2 (t − τ ) − y 2 (t ))ε 2 (t )] = 0, ∀τ
2 2
(10) Stopping Criterion 1 × 10 −5
θε (εy ) (τ ) = E [(ε (t )ε (t − 1 − τ ) y (t − 1 − τ ))] = 0,τ ≥ 0 (11) The predicted output after training (Figure 4) show the
[( )]
NARMAX approach can identify the data. The predicted
2 )(
θ ( yε )ε (τ ) = E yε (t ) − yε (t ) ε 2 (t − τ ) − ε 2 (t ) = k ε δ (τ ) (12) and actual outputs do not differ significantly. The OSA
prediction model shows high fitting accuracy of 98.70%.
θ ( yε )u 2 (τ ) = E [(yε (t ) − yε (t ))(u (t − τ ) − u (t ))] = 0, ∀τ
2 2 (13) The validation data (Figure 5) show the NARMAX
approach can also identify the data. The predicted and
ε (τ ) is a residual between the measured output and actual outputs do not differ significantly. It proves that,
prediction output. although the validation data is not same like the training
data the system can identify the model.
Meanwhile, NSSE is produced at each training steps and
can be calculated as equation (3). Figures 6 show the correlation tests. It can be observed that
all tests falls within the 95% confidence limit.
7. Results and Discussions The NSSE iteration plot at Figure 7 demonstrates the speed
Four thousand input-output data pairs were used in of convergence for the network training using the
modeling the DC motor. The data were divided into two prediction error method. This show that the MLP neural
sets, one for training and remaining for validation. The network is able to convergence at a high speed and the
NNSYSID tool [18] was use to analyze the input-output predicted output can be accepted.
data.
The Lipschitz analysis in Figure 3 shows that the maximum
lag space required is two. Hence, it is not unreasonable to
assume that the system can be modeled by a second order
since the slope of the curve decreases for the model orders
>= 2 (refer to figure 2).This information was used to define
the NARMAX structure (see Equation (14)) for
identification using the MLP network. Then the MLP
network was trained using LMA and a network with two
hidden layer neurons was found to be sufficient.
References
[1] K. Sedghisigarchi, A. Hasanovic, A. Feliachi and A.
Davari, Evaluation of Three Algorithm for Nonlinear
Control of a DC Shunt Motor, IEEE Proceeding of
the 33rd Southeastern Symposium on System Theory,
March 2001, pp. 407-411.
[2] J. Chiasson and M. Bodson, Nonlinear Control of a
Shunt DC Motor, IEEE Transactions on Automatic
Figure 5 - Prediction output with residual validation data Control, Vol. 38, No. 11, November 1993, pp. 1662-
1666.
[3] M.D. Minkova, D. Minkov, J.L. Rodgerson and R.G.
Harley, Adaptive Neural Speed Controller of a DC
Motor, Electric Power Systems Research, 1998, pp.
123-132.
[4] S. Mehta and J. Chiasson, Nonlinear Control of a
Series DC Motor: Theory and Experiment, IEEE
Transactions on Industrial Electronics, Vol. 45, No.
1, February 1998, pp. 134-141.
[5] J. Zhou, Y. Wang and R. Zhou, Global Speed
Control of Separately Excited DC Motor, IEEE
Power Engineering Society Winter Meeting, Vol. 3,
2001, pp. 1425-1430.
[6] I.J. Leontaritis and S.A. Billings, Input-Output
Parametric Models for Nonlinear Systems Part I:
deterministic nonlinear systems, International journal
of Control, 1985, 41(2), pp. 303-328.
[7] J.J. Liu, I.C. Kung and H.C. Chao, Speed Estimation
of Induction Motor Using a Nonlinear Identification
Technique, Proceedings Natl. Dci. Counc. ROC (A),
Vol. 25, No. 2, 2001, pp. 107-114.
[8] N. Chiras, C. Evans and D. Rees, Nonlinear Gas
Figure 6 - Correlation test Turbine Modeling Using NARMAX Sructures, IEEE
Transaction on Instrumentation and Measurement,
Vol. 50, No. 4, 4 August 2001, pp. 893-898.
[9] H.A.F. Mohamed, S. Yaacob and M.N. Taib,
Induction Motor Identification using Artificial Neural
Network, Australasian Universities Power
Engineering Conference, October 1997, pp. 217-221.
[10] M.D. Minkova, D. Minkov, J.L. Rodgerson and R.G.
Harley, Adaptive Neural Speed Controller of a DC
Motor, Electric Power Systems Research, Vol. 47,
1998, pp. 123-132.
[11] S.A. Billings, H.B. Jamaluddin and Chen, S., A
Comparison of the Backpropagation and Recursive
Prediction Error Algorithm for Training Neural
Networks, Mechanical Systems and Signal
Processing, 1991,5(3), pp. 233-255.
Figure 7 - NSSE Iteration
[12] M.N. Taib, R. Andres and R. Narayanaswamy, [16] N. Chiras, Linear and Nonlinear Modeling of Gas
Extending the Response Range of an Optical Fibre Turbine Engines, Thesis Dissertation, PhD, The
pH Sensor using an Artificial Neural Network, University of Glamorgan, 2002.
Analytica Chimica Acta 330, 1996, pp. 31-40. [17] X. He and H. Asada, A New Method for Identifying
[13] R. Fletcher, Practical Methods of Optimization, Orders of Input-Output Models for Nonlinear
Wiley, 1987. Dynamic Systems, Proceeding of the American
[14] L. Ljung, System Identification- Theory for the User, Control Conference, San Francisco, California, June
Prentice Hall, Eaglewood Cliffs, New Jersey, 1987 1993,pp. 2520-2523.
[15] M. Nørgaard, O, Ravn, N.K., Poulsen, and L.K., [18] M. Nørgaard, Neural Network Based System
Hansen, Neural Network for Modelling and Control Identification Toolbox, Technical Report, 00-E-891,
of Dynamic Systems, Springer-Verlag, London, 2000. Department of Automation, Technical University of
Denmark, 2000.