Professional Documents
Culture Documents
Heyi Li
College of Automation,
Harbin Engineering University,
Harbin, 15001,China
E-mail: wangtian.miracle@qq.com
I.
II.
INTRODUCTION
839
III.
(1)
(2)
( )
f ( x, ) = x + b
(3)
{( x1 , y1 ),( x2 , y 2 ),,( xn , y n )}
Where xi X = R l , yi Y = R m
And n , l , m is the quantity of samples and the dimension
of the input and output.
Assuming
1 n
Remp ( ,b) = yi ( x) b
n i =1
(4)
(( ) )
(( ) )
w x +b y +
i
i
i
s.t . yi w xi +b +i
* 0,i =1,, n
,
i i
(5)
(6)
840
n
n
L( k ) , b , * , , * , ,C * , , * = (*k ) + ( k ) i ( k ) yi ( k ) ( k ) xi ( k ) b( k ) + ( k ) +i ( k )
i =1
i =1
n *
*
i ( k ) ( k ) xi ( k ) + b( k ) yi ( k ) + ( k ) +i ( k )
i =1
n
C(*k )
( k ) ( k ) i*( k )i*( k ) + i ( k )i ( k )
c
2 n(k )
i =1
(7)
The solution of the equation (7) requires complex
optimization, which could be switched to the parameter C to
T
1 n
*
xi ( k ) x j ( k ) a j ( k ) a*j ( k )
m 2 i ( k ) i ( k )
*
=
i
,
j
1
min , =
n
n
k =1
+ i ( k ) + i*( k ) yi ( k ) i ( k ) i*( k )
i =1
i =1
(
(
*
i ( k ) i ( k ) = 0
i =1
s .t .
*
0i ( k ) ,i ( k ) C( k ) ,i =1,,n ,k =1,,m
i ( k ) , i*( k )
)(
)
)(
(KKT).The
n
f( k ) ( x ) = i ( k ) +i*( k ) xi ( k ) x( k ) + b( k )
i =1
)(
) (
)(
(9)
( )
SVM
(15)
The kernel function parameter g > 0 , which could
approximate any non-liner relation easily.
(10)
IV.
(11)
Corresponding that
(
(
)(
)(
)(
A. Grid Search
The amount of support vectors, threshold b, NZLagrangian multipliers can be obtained through
identification. The penalty factor C and RBF parameter g
must be provided before identification. They are the key
factors of machine learning, predictive ability and
generalization ability.
This paper used grid search algorithm(GS). The GS is a
traditional digital plan method, its a kind of exhaustion
method. Theres no special requirement of objection
function, it has a good effect to solve constrained nonlinear
extreme value problems. The GS will mesh in the pre-set
range, the grid intersections are correspond to objective
function values. Then the optimal value of objective function
will be searched in the feasible intersections by rules, the
parameters correspond to this optimal point will be the
optimal.
The advantages of the grid search method is that it can
simultaneously search multiple coupling parameters. This
method is the search for parameter combinations, therefore it
avoids the coupling of multiple solution problems that may
arise between the multi-parameter. So the optimal evaluation
function value corresponds to the optimal combination of
parameters(C and g).
(12)
)
)
*
f(1) ( x ) = i (1) +i (1) K xi (1) i x(1) + b(1)
i =1
n
f ( x )=
i (2) +i*(2) K xi (2) i x(2) + b(2)
(2)
i
1
=
*
f ( m ) ( x ) = i ( m ) +i ( m ) K xi ( m ) i x( m ) + b( m )
i =1
(14)
2
K xi , x = exp g xi x
K x ,x
)(
1 l
bk = yk i* i K xi , xk + sgn(k* k )
l k =1
i =1
(8)
condition of Karush-Kuhn-tucker
regression estimation equation is
(13)
B. Optimization Routine
The MSE of SVM output and samples is used as
evaluation function. The optimal C and g can be
obtained when the MSE is minimum. Crossvalidation is used to verify the MSE.
841
EXPERIMENT
A. Experiment Environment
The parameters of experiment pool is 17.3m x2m
x1.7m(length x wide x deep). And the major purpose of
experiment is to obtain the attitude angles of the robot (pitch,
roll, yaw), moreover to obtain the offset of the adjusted
centroid mass, depth and the outputs of thrusters. The thrust
force was calculated by the driving voltage of pump and the
position of centroid adjusting mass was reckoned by the
steps of stepping motor after the power initialization. The
attitude angles were obtained by the AHRS (MTi, made by
Xsense, Holland) deployed in the robot. This refresh rate of
this AHRS is 120Hz, the accuracy of roll and pith <0.5, yaw
angle<1. The attitude data would be record in the computer.
The Fig. 3. below is the appearance of the robot
B. Data Acquisition
In the pool of the experiment, the robot is adjusted to
suspend in the water. The attitude of robot is detected at the
condition of changing thrust force and moving the mass
alternately. There are 7 inputs and 3 outputs which were
recorded at the sampling frequency of 5Hz.
The testing picture of the robot in the water is shown in
Fig.4.
TABLE I.
Method
842
MSE
r2
Time(s)
GE
0.007934
0.99154
1.5
GA
0.067721
0.29528
2.1
PSO
0.006326
0.99119
5.5
[2]
a) GS-SVM Contrast Figure
[3]
[4]
[5]
[6]
b) GA-SVM Contrast figure
[7]
[8]
[9]
[10]
c) PSO-SVM Contrast figure
Figure 6. Contrast figure of SVM1 fitting data
VI.
[11]
CONCLUSION
[12]
[13]
843