<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>An Application of Speed Gradient Method to Neural Network Control for Underwater Robot</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Alexander A. Dyda</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dmitry A. Oskin</string-name>
          <email>daoskin@mail.ru</email>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pavel A. Dyda</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          ,
          <addr-line>Verhneportovaya str., Vladivostok</addr-line>
          ,
          <country country="RU">Russia</country>
          ,
          <institution>690003 Department of Automatic and Information Systems</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Far Eastern Federal University</institution>
          ,
          <addr-line>8, Sukhanova str., Vladivostok</addr-line>
          ,
          <country country="RU">Russia</country>
          ,
          <institution>690950 Dept. of Information Control Systems</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Maritime State University</institution>
          ,
          <addr-line>50</addr-line>
        </aff>
      </contrib-group>
      <fpage>689</fpage>
      <lpage>700</lpage>
      <abstract>
        <p>in this paper the speed gradient method is applied to design an adjustment algorithm for parameters of neural network controller. Local quadratic criterion expresses generalized error of desired trajectory tracking. Continuous adjustment laws for neural network parameters and their discrete analogies are derived on base of speed gradient method. To illustrate an approach, the mathematical model of underwater robot is taken. Numerical experiments had confirmed.</p>
      </abstract>
      <kwd-group>
        <kwd>speed gradient method</kwd>
        <kwd>multilayer neural network</kwd>
        <kwd>adjustment law</kwd>
        <kwd>control</kwd>
        <kwd>underwater robot</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>This paper is devoted to an application of speed gradient method to derive
parameter adjustment (adaptation, learning) laws for multilayer neural network (NN) which is
used to implement underwater robot (UR) control.</p>
      <p>
        Underwater robots (UR) promise great perspectives and have a widest scope of
applications in the area of ocean exploration and exploitation. To provide exact
movement along prescribed space trajectory, UR needs a high quality control system. It is
well known that UR can be considered as multi-dimensional nonlinear and uncertain
controllable object. Hence, the design procedure of UR control laws is difficult and
complex problem [
        <xref ref-type="bibr" rid="ref10 ref4">4, 10</xref>
        ].
      </p>
      <p>
        Modern control theory has derived a lot of methods and approaches to solve
appropriate synthesis problems such as nonlinear feedback linearization, adaptive control,
robust control, variable structure systems etc [
        <xref ref-type="bibr" rid="ref1 ref5 ref6">1, 5, 6</xref>
        ]. However, most of mentioned
methods of control systems synthesis essentially use information about structure of the
UR mathematical model. The nature of interaction of a robot with water environment
is so complicated that it is hardly possible to get exact detailed equations of UR
movement. Possible way to overcome control laws synthesis problems can be found in
the class of artificial intelligence systems, in particular, based on multi-layer neural
networks (NN) [
        <xref ref-type="bibr" rid="ref1 ref2 ref7">1, 2, 7</xref>
        ].
      </p>
      <p>Copyright © by the paper's authors. Copying permitted for private and academic purposes.</p>
      <p>In: A. Kononov et al. (eds.): DOOR 2016, Vladivostok, Russia, published at http://ceur-ws.org
2
ics</p>
      <p>and dynamics</p>
      <p>
        Recently a lot of publications were devoted to the problems of NN identification
and control, beginning from the basic paper [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Many papers are associated, in
particular, with applications of NN to the problems of UR control [
        <xref ref-type="bibr" rid="ref1 ref2 ref8">1, 2, 8</xref>
        ].
      </p>
      <p>
        Conventional applications of multi-layer NN are based on preliminary network
learning. As a rule, this process is minimization of criterion that expresses summary
deviations of NN outputs from desirable values with given NN inputs. Network
learning results in NN weight coefficients adjustment. Such approach supposes the
knowledge of teaching input-output pairs [
        <xref ref-type="bibr" rid="ref7 ref9">7, 9</xref>
        ].
      </p>
      <p>
        The feature of NN application as a controller consists in the fact that desirable
control signal is unknown in advance. Desirable movement trajectory (program signal) can
be defined only for the whole control system [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ].
      </p>
      <p>So, application of multi-layer NN in control tasks demands a development of
approaches, which take into account dynamical nature of controllable objects.</p>
      <p>In the paper the intelligent NN based control system for UR is designed. New
learning algorithm for intelligent NN controller that uses speed gradient method is
proposed. Numerical experiments with control system containing designed NN
controller were carried out for cases of varying parameters and expressions for viscous
torques and forces. Results of modeling are discussed.</p>
      <p>Note that a choice of NN regulator is connected with principal orientation of neural
network approach to a priori uncertainty that characterizes UR. In fact, matrices of
inertia of UR rigid body are unknown exactly as well, as these of added water masses.
Forces and torques of viscous friction are of unknown functional structure and also
uncertain. Hence, UR can be considered as controllable object with partial parameter
and structure uncertainties.</p>
      <p>
        Underwater robot model
UR mathematical model traditionally consists of differential equations of
kinematq1  J (q1)q2
D(q1)q2  B(q1, q2 )q2  G(q1, q2 )  U
(1)
(2)
where J the kinematical matrix; q1, q2 the vectors of generalized coordinates and
body-fixed frame velocities of UR; U the control forces and torques vector; D the
inertia matrix taking into account added masses of water; B the Coriolis – centripetal term
matrix; G the vector of generalized gravity, buoyancy and nonlinear damping
forces/torques [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>Poor a priori knowledge of mathematical structure and parameters of matrices and
vectors of the UR model can be compensated by intensive experimental research. As a
rule, this way is expansive and takes a long time. One of perspective alternative
approach is connected with usage of intelligent NN control
3</p>
      <p>Intelligent NN controller and learning algorithm derivation
Our objective is synthesis of underwater robot NN controller to provide its
movement along prescribed trajectory qd1(t), qd2(t).</p>
      <p>First we consider the control task with respect to velocities qd(t). Define error
and introduce the local criterion (performance index) Q as measure of difference
between desirable and real trajectories:</p>
      <p>
        Further we use the speed gradient method developed by [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ]. The main idea of
speed gradient method consist in such adjustment of available controlled parameters
that time derivative of chosen local or integral criterion (or their
combinations)calculated along a system trajectory tends to negative value. If this is a case, a
criterion which expresses an aim of control is minimizing. According to the method,
compute time derivative of Q:
as
one has
      </p>
      <p>Q  e2T De2  1 e2T D e2</p>
      <p>2
q2  qd 2  e2</p>
      <p>D(q1)q2  D(q1)qd 2  D(q1)e2
Using expression of first term from dynamics equation, one can get the following:
and time derivative of function Q can be written in the form</p>
      <p>D(q1)e2  D(q1)qd 2  B(q1, q2 )qd 2 
 B(q1, q2 )e2  G(q1, q2 )  U
Q  e2T (D(q1)qd 2  B(q1, q2 )qd 2 
 B(q1, q2 )e2  G(q1, q2 )  U )  12 e2T D e2.</p>
      <p>After terms reorganization, one get
An Application of Speed Gradient Method 691
(3)
(4)
(5)
(6)
(7)
(8)
(9)
1
2
Q  e2T (D(q1)qd 2  (q1, q2 )qd 2  G(q1, q2 )  U ) 
 eT B(q1, q2 )e2 
2</p>
      <p>e2T D (q1)e2 
 e2T (D(q1)qd 2  B(q1, q2 )qd 2  G(q1, q2 )  U ) 
</p>
      <p>12 e2T (D (q1)  B(q1, q2 )e2 ).</p>
      <p>As known, the matrix in last term is skew-symmetric, hence, this term is equal to
zero and we have simplified expression:</p>
      <p>Q  e2T (D(q1)qd 2  B(q1, q2 )qd 2  G(q1, q2 ) U ).
(10)</p>
      <p>
        We plan to implement intelligent UR control [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] based on neural network. Without
losing of generality of the approach, choose two-layer NN (Fig. 1). Let hidden and
output layers have H and m neurons appropriately (m is equal to dimension of e2). For
the sake of simplicity, one supposes that only summing of weighted signals (without
nonlinear transformation) is realized in output layer. Input vector has N coordinates.
      </p>
      <p>X0=1</p>
      <p>X1
…
Xi
…</p>
      <p>Xn
i = 0…n</p>
      <p>Input layer
wij
1
f1
…
fj
…
fL
j = 1…L
Hidden layer</p>
      <p>Wkj

…

…
</p>
      <p>Y1
Yk</p>
      <p>Ym
k = 1…m</p>
      <p>Output layer</p>
      <p>Define wij as weight coefficient for i-th input of j-th neuron of hidden layer. So
these coefficients compose matrix
...
...
...</p>
      <p>w1N </p>
      <p>
w2 N 
... ... </p>
      <p>
... wHN </p>
      <p>(11)
An Application of Speed Gradient Method 693</p>
      <p>As result of nonlinear transformation f(), hidden layer output vector can be written
in the form
 f1 (w1T x) 
 
f (w, x)   ... </p>
      <p> f H (wHT x)
where wk denotes k-th raw of matrix w.</p>
      <p>By analogy, introduce matrix W which element Wli denotes weight coefficient
from i-th neuron of hidden l-th neuron of output layer.</p>
      <p>With defined NN parameters, the underwater robot control signal (NN output) is
computed as following:</p>
      <p>Substitution of this control let us to get</p>
      <p>U  y(W, w, x)  Wf (w, x)
Q  eT (D(q1 )qd 2  B(q1, q2 )qd 2 </p>
      <p>2
 G(q1, q2 )  Wf (w, x)).</p>
      <p>
        To derive NN learning algorithm, apply the speed gradient method [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ]. For this,
compute partial derivatives of function Q time derivative with respect to adjustable NN
parameters – matrices w and W.
      </p>
      <p>Direct differentiation gives
It is easy to demonstrate that choosing of all activation functions in the usual form
Q
W
 e2 f T (w, x).</p>
      <p> x
f  x   1/(1  e</p>
      <p>)
fi (wiT x)  fi (wiT x)[1  fi (wiT x)]x j
imply property</p>
      <p>
wij
Introduce additional functions
and matrix
Direct calculation gives</p>
      <p>i (wiT x)  fi (wiT x)[1  fi (wiT x)]
(w, x)  diag (1(w1T x)... H (wH</p>
      <p>T x))
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
As a final stage, we can write the NN learning algorithm in following form:

(21)
( is learning step, k is number of iteration).</p>
      <p>Now consider which components should be included in NN input vector. As NN
controller is oriented to compensate an influence of appropriate matrix and vector
functions, in common case the NN input vector must be composed of q1, q2, e2, qd2 and
its time derivative.</p>
      <p>The NN learning procedure leads to reducing of function Q, consequently in ideal
conditions, error e2 tends to zero and the UR movement follows to desirable trajectory
If UR trajectory is given by qd1(t), one can choose</p>
      <p>q2 (t)  qd 2 (t)
qd 2 (t)  J 1(q1)(qd1(t)  k(qd1(t)  q1(t))
(k is positive constant). As follows from kinematics equation,
and
where
q1(t)  qd1(t)  k(qd1(t)  q1(t))</p>
      <p>e1(t)  ke1(t)  0
e1(t)  qd1(t)  q1(t)
(20)
(22)
(23)
(24)
(25)
(26)</p>
      <p>Hence, UR follows to the planned trajectory qd1(t).
4</p>
      <p>Simulation results of intelligent NN controller</p>
      <p>
        To check the effectiveness of the approach, computer simulations have been
carried. The UR nominal model parameters were taken from [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Parameters of UR are:
D  DRB  DA , where DRB  [1000 0 200; 0 1000 0; 200 0 11000] - system inertia
matrix for the rigid body, DA  [1000 0 100; 0 1100 80; 100 80 9000] - matrix of
hydrodynamic added mass, B  [210 20 30; 25 200 70; 15 33 1500], G  [0; 0; 0].
      </p>
      <p>Let consider the nominal model (with added mass) and reduced one.</p>
      <p>Vector q2 consists of following components (linear and angular UR velocities):
An Application of Speed Gradient Method 695
q2  vx
vz</p>
      <p> y T
U  Fx</p>
      <p>Fz</p>
      <p>M y </p>
      <p>T</p>
      <p>Dimensions of NN input (q2 and e2) and output (control forces and torque) are
equal to 6 and 3.</p>
      <p>For the NN controller containing 10 neurons in the hidden layer, the simulation
results are given on Figs. 2 – 10. In the considered numerical experiments, the desired
trajectory was taken as follows:
(27)
(28)
 vxd  0.75m / sec,

 vzd  0.5m / sec,
 yd  0.15rad / sec,</p>
      <p>0  t  250 sec
 vxd  0.5m / sec,

 vzd  0.75m / sec, 250  t  500 sec
 yd  0.15rad / sec,
Transient processes and control for taken nominal model are shown on Fig. 2 - 4.
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1</p>
      <p>0
-0.1
-0.20
Vx, m/sec
Vz, m/sec
y, rad/sec
Vxd, m/sec
Vzd, m/sec
yd, rad/sec
250
200
150
100
50
0
-50
-100
-150
-200
-2500
12
10
8
6
4
2
00</p>
      <p>100 150 200 t,2s5e0c 300 350
Fig. 5. Transient processes (reduced model)
250
t, sec
50
100
150
200
300
350
400
450
500</p>
      <p>
        The exact description of hydrodynamic forces and torques is practically impossible.
In the nominal model [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] viscous friction was linear with respect to generalized
velocities. The effectiveness of the designed NN controller was also proved and confirmed
for quadratic (Fig. 8 - 10) function of viscous friction forces (torques).
0.8
0.7
0.6
0.5
0.4
      </p>
      <p>0
-0.1
-0.2
1.8
1.6
1.4
1.2</p>
      <p>1
0.8
0.6
0.4
0.2
00</p>
      <p>Vx, m/sec
Vz, m/sec
y, rad/sec
Vxd, m/sec
Vzd, m/sec
yd, rad/sec
0
50
100
150
200
300
350
400
450</p>
      <p>500
Fig. 8. Transient processes (quadratic viscous friction)</p>
      <p>An Application of Speed Gradient Method 699</p>
      <p>Fx, N
Fz, N
My, Nm</p>
      <p>Q
0
50
100
150
200
300
350
400
450</p>
      <p>500</p>
      <p>Computer experiments had demonstrated control system stability and high quality
of transient processes for different situations of parameters and partial structure
uncertainties of UR dynamics.
5</p>
    </sec>
    <sec id="sec-2">
      <title>Conclusion</title>
      <p>The approach based on speed gradient method is proposed and applied to design an
intelligent NN controller for underwater robot control system and to derive its learning
algorithm. The numerical experiments have shown that high quality processes can be
achieved with proposed intelligent NN control. The procedure of NN learning makes
possible for UR control system to overcome parameter and, partially, structural
uncertainties of dynamical object.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Dyda</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          (
          <year>2007</year>
          )
          <article-title>Adaptive and neural network control for complex dynamical objects</article-title>
          . - Vladivostok, Dalnauka. -
          <volume>149</volume>
          p.
          <article-title>(in Russian)</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Dyda</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Oskin</surname>
            ,
            <given-names>D.A.</given-names>
          </string-name>
          (
          <year>2004</year>
          )
          <article-title>Neural network control system for underwater robots</article-title>
          . // IFAC conference on
          <source>Control Application in Marine Systems “CAMS-</source>
          <year>2004</year>
          ”.
          <article-title>-</article-title>
          <string-name>
            <surname>Ancona</surname>
          </string-name>
          , Italy,
          <year>2004</year>
          ., p.
          <fpage>427</fpage>
          -
          <lpage>432</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Dmitry</given-names>
            <surname>Oskin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Alexander</given-names>
            <surname>Dyda</surname>
          </string-name>
          .
          <source>Underwater Robot Intelligent Control Based on Multilayer Neural Network. Proceeding of the 7th IEEE International Conference on Intelligent Data Acquisition and Advanced Computing Systems: Technology and Applications</source>
          (IDAACS'
          <year>2013</year>
          ), Berlin, Germany. Page(s):
          <fpage>921</fpage>
          -
          <lpage>924</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Fossen</surname>
            ,
            <given-names>T.I.</given-names>
          </string-name>
          (
          <year>2002</year>
          )
          <article-title>Marine Control Systems: Guidance, Navigation and Control of Ships, Rigs</article-title>
          and
          <string-name>
            <given-names>Underwater</given-names>
            <surname>Vehicles. Marine Cybernetics</surname>
          </string-name>
          <string-name>
            <surname>AS</surname>
          </string-name>
          , Trodheim, Norway
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Fradkov</surname>
            <given-names>A.L.</given-names>
          </string-name>
          (
          <year>1990</year>
          )
          <article-title>Adaptive control in large-scale systems</article-title>
          .- M.: Nauka., (in Russian).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Miroshnik</surname>
            <given-names>I.V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nikiforov</surname>
            <given-names>V.O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fradkov</surname>
            <given-names>A.L.</given-names>
          </string-name>
          <string-name>
            <surname>Nonlinear</surname>
          </string-name>
          and
          <article-title>Adaptive Control of Complex Dynamical Systems</article-title>
          , St.-Petersburg: Nauka,
          <year>2000</year>
          . -
          <fpage>549p</fpage>
          .
          <source>(Series «Analisis and Design of Nonlinear Systems»)</source>
          , (in Russian).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Narendra</surname>
            <given-names>K.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parthasaraty</surname>
            <given-names>K.</given-names>
          </string-name>
          (
          <year>1990</year>
          )
          <article-title>Identification and control of dynamical systems using neural networks // IEEE Identification and Control of Dynamical System</article-title>
          , Vol.
          <volume>1</volume>
          . № 1. 20, pp.
          <fpage>1475</fpage>
          -
          <lpage>1483</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Ross</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fossen</surname>
            <given-names>T.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Johansen</surname>
            <given-names>A.</given-names>
          </string-name>
          (
          <year>2004</year>
          )
          <article-title>Identification of underwater vehicle hydrodynamic coefficients using free decay tests //</article-title>
          <source>Preprints of Int.Conf.CAMS-</source>
          <year>2004</year>
          ,. Ancona, Italy,
          <year>2004</year>
          . - pp.
          <fpage>363</fpage>
          -
          <lpage>368</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Sutton</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          and Craven,
          <string-name>
            <surname>P.J.</surname>
          </string-name>
          (
          <year>2002</year>
          )
          <article-title>An on-line intelligent multi-input multi-output autopilot design study // Journal of Engineering for the Maritime Environment</article-title>
          , vol.
          <volume>216</volume>
          No.
          <issue>M2</issue>
          , pp.
          <fpage>117</fpage>
          -
          <lpage>131</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Yuh</surname>
            <given-names>Y.</given-names>
          </string-name>
          (
          <year>1990</year>
          )
          <article-title>Modelling and control of underwater vehicles IEEE J</article-title>
          .
          <source>of Trans. Syst</source>
          .,
          <string-name>
            <surname>Man</surname>
          </string-name>
          , Cybern., vol.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>