502
2015,27(4):502-512
DOI: 10.1016/S1001-6058(15)60510-8
System identification modelling of ship manoeuvring motion based on ε support vector regression* WANG Xue-gang (王雪刚)1,2, ZOU Zao-jian (邹早建)1,3, HOU Xian-rui (侯先瑞)1, XU Feng (徐锋)4 1. School of Naval Architecture, Ocean and Civil Engineering, Shanghai Jiao Tong University, Shanghai 200240, China 2. CCCC Fourth Harbor Engineering Institute Co., Ltd., Guangzhou 510230, China, E-mail:
[email protected] 3. State Key Laboratory of Ocean Engineering, Shanghai Jiao Tong University, Shanghai 200240, China 4. Wuhan Second Ship Design and Research Institute, Wuhan 430064, China (Received March 17, 2014, Revised October 31, 2014) Abstract: Based on the ε - support vector regression, three modelling methods for the ship manoeuvring motion, i.e., the white-box modelling, the grey-box modelling and the black-box modelling, are investigated. The 10o /10o , 20o / 20o zigzag tests and the
35o turning circle manoeuvre are simulated. Part of the simulation data for the 20o / 20o zigzag test are used to train the support vectors, and the trained support vector machine is used to predict the whole 20o / 20o zigzag test. Comparison between the simulated and predicted 20o / 20o zigzag test shows a good predictive ability of the three modelling methods. Then all mathematical models obtained by the modelling methods are used to predict the 10o /10o zigzag test and 35o turning circle manoeuvre, and the predicted results are compared with those of simulation tests to demonstrate the good generalization performance of the mathematical models. Finally, the modelling methods are analyzed and compared with each other in terms of the application conditions, the prediction accuracy and the computation speed. An appropriate modelling method can be chosen according to the intended use of the mathematical models and the available data for the system identification. Key words: ship manoeuvring, hydrodynamic coefficients, mathematical model, system identification, ε - support vector regression
Introduction The ship manoeuvrability is explicitly required in the Standards for Ship Manoeuvrability promulgated by the International Maritime Organization[1]. To predict the ship manoeuvrability at the ship design stage, some methods are available, including the database and/or empirical formula method, the free-running model test method, the numerical method and the computer simulation method based on mathematical 0F
* Project supported by the National Natural Science Foundation of China (Grant No. 51279106), the Special Research Fund for the Doctoral Program of Higher Education of China (Grant No. 20110073110009). Biography: WANG Xue-gang (1983-), Male, Ph. D. Corresponding author: ZOU Zao-jian, E-mail:
[email protected]
models. The last one is popular and effective to predict the ship manoeuvrability. To use this method, constructing accurately the mathematical model is a necessary precondition. The application of the system identification (SI) based on the free-running model tests or the full-scale trials plays an important role in modelling the ship manoeuvring motion. Various classical SI methods, e.g., the extended Kalman filter method[2,3], the maximum likelihood method[4], the recursive prediction error method[5] and the least squares method[6], were applied in modelling the ship manoeuvring motion and identifying the hydrodynamic coefficients. However, they have some inherent defects, such as the sensitivity to the initial values, the ill-conditioned solutions and the simultaneous drift. To eliminate these defects, some modern SI methods were proposed for estimating the hydrodynamic coefficients, including the frequency domain identification method[7,8], the neural network[9], the su-
503
pport vector machines (SVM)[10-13] and the genetic algorithm[14]. Among them, the neural network and the support vector machines, as two kinds of artificial intelligence algorithms, can not only be used for the parametric identification, but also, even more suitably, for the nonlinear regression. Rajesh and Bhattacharyya[15] adopted the artificial neural network to regress the nonlinear dynamic model of a large tanker. Moreira and Guedes Soares[16] applied the recursive neural network to simulate the ship manoeuvring motion. Compared with the neural network, the SVM is direct at finite samples and has better generalization performances and a global optimal extremum[17]. It is mainly used for pattern recognition and parameter identification. It is known as the support vector regression (SVR) when it is used for parameter identification. Luo and Zou[10, 11], Zhang and Zou[12] identified the hydrodynamic coefficients in the Abkowitz model of the ship manoeuvring motion by using the least squares support vector regression (LS-SVR) and the ε - support vector regression ( ε - SVR), respectively. The modelling method used in these two papers is only the white-box modelling, and to reduce the extent of parameter drift, a series of random signals is added into the training samples. However, the introduced random signal brings about another problem: the amplitude of the random signals is difficult to determine. Moreover, in order to obtain the hydrodynamic coefficients in the sway and yaw equations, it is necessary to solve a series of combined equations. In the present paper, three modelling methods for the ship manoeuvring motion using the ε - SVR, i.e., the white-box modelling, the grey-box modelling and the black-box modelling, are investigated. The whitebox modelling method is improved by reconstructing the identification formulas to avoid adding the random signals into the training samples and solving a series of combined equations. The grey-box modelling and the black-box modelling are clearly defined. The 10o /10o , 20o / 20o zigzag tests and the 35o turning circle manoeuvre are simulated by using the hydrodynamic coefficients obtained from the PMM test[18]. 5% of the simulation data of the 20o / 20o zigzag test are used to train the support vectors, and the trained support vector machines are used to predict the whole 20o / 20o zigzag test. The predicted results are compared with those of simulation tests to demonstrate the good predictive ability of the mathematical models obtained by the modelling methods. Then, the mathematical models are used to predict the 10o /10o zigzag test and the 35o turning circle manoeuvre, and the predicted results are compared with those of simulation tests to demonstrate the generalization performance of the mathematical models. The modelling methods are analyzed and compared with each other in
terms of the application conditions, the prediction accuracy and the computation speed. An appropriate modelling method can be chosen according to the intended use of the mathematical models and the available data for the system identification.
Fig.1 Coordinate systems
1. Mathematical model of ship manoeuvring motion As shown in Fig.1, two right-handed coordinate systems, the earth-fixed inertial frame (the global coordinate system) o0 - x0 y0 z0 and the body-fixed moving frame (the local coordinate system) o - xyz , are adopted, with the plane o0 - x0 y0 z0 on the undisturbed free surface and z0 - axis pointing downwards. At the initial instant, these two coordinate systems coincide with each other. Generally, the manoeuvring motion of a surface ship can be described by the equations of the surge, sway and yaw motions in the following form[18] m − X u 0 0
0 m − Yv mxG − N v
0 u f1 mxG − Yr v = f 2 I z − N r r f3
(1)
where f1 = X u ∆ u + X uu ∆ u 2 + X uuu ∆ u 3 + X vv v 2 + X rr r 2 + X rv rv + X δδ δ 2 + X uδδ ∆ uδ 2 + X vδ vδ + X uvδ ∆ uvδ ,
f 2 = Y0 + Yu ∆ u + Yuu ∆ u 2 + Yv v + Yr r + Yvvv v3 + Yvvr v 2 r + Yvu v ∆ u + Yru r ∆u + Yδ δ + Yδδδ δ 3 + Yuδ ∆uδ + Yuuδ ∆ u 2δ + Yvδδ vδ 2 + Yvvδ v 2δ , f3 = N 0 + N u ∆u + N uu ∆u 2 + N v v + N r r + N vvv v3 + N vvr v 2 r + N vu v ∆u + N ru r ∆u + Nδ δ + Nδδδ δ 3 + N uδ ∆ uδ + N uuδ ∆ u 2δ + N vδδ vδ 2 + N vvδ v 2δ ,
504
m is the mass of the ship, I z is the moment of ine-
rtia of the ship about z - axis and xG is the longitudinal coordinate of the ship gravity centre in the bodyfixed coordinate system, u , v and r are the surge speed, the sway speed and the yaw rate, respectively, δ is the rudder angle, ∆u is the disturbing quantity of the surge speed. X u , Yv , N r etc. are the hydrodynamic coefficients, Y0 and N 0 are the hydrodynamic force in the direction of y - axis and the yaw moment about z - axis during the straight forward motion with constant speed. Denoting the kinetic parameters at the state of the straight forward motion with constant speed by subscript 0, we have u0 = U 0 , ∆u = u − u0 , v0 = r0 = δ 0 = u0 = v0 = r0 = 0 . The resultant speed U = [(u0 + ∆u ) 2 + v 2 ]1/2 .
l
where C / l ∑ Lε ( yi , f ( xi )) is the empirical error, C i =1
is the penalty factor which determines the trade-off between the empirical error and the flatness of the model, ε is the insensitivity factor, Lε [ yi , f ( xi )] is 2
the insensitive loss function, 0.5 w measures the flatness of the function. Introducing the slack variables ξi and ξi∗ into Eqs.(3) and (4), they are transformed to form the dual optimization problem: l
minimize: R ( w, b, ξi , ξi* ) = 0.5 w + C ∑ (ξi + ξi* ), 2
i =1
yi − wΦ ( x) − b ≤ ε + xi
(5)
subject to: wΦ ( x) + b ≤ ε + xi , 2. ε - support vector regression Based on the statistical learning theory, the SVM is effective to improve the generalization performance and can be used to obtain the globally optimal and unique solution[17]. Initially, the SVM was applied in the area of pattern recognition, with the introduction of the insensitive loss function, the SVM was extended to solve non-linear regression estimations, known as the support vector regression (SVR). The main idea of the SVR is to map the input data into a high-dimensional feature space and to do linear regression in this space. The optimum regression function can be described as
ξi , ξi* ≤ 0 (i = 1, 2, l )
(6)
The slack variables ξi and ξi∗ determine the degree to which the samples with error larger than ε are penalized. In other words, for any error less than ε , ξi and ξi∗ are not required, and hence do not enter the objective function. The optimization problem (Eqs.(5) and (6)) can be expressed by Lagrangian multipliers as k
f ( x, α i , α i* ) = ∑ (α i − α i* )[Φ ( xi )Φ ( x j )] + b
(7)
i =1
y ( x) = wΦ ( x) + b ( x ∈ R l , y ∈ R n )
(2)
where x and y are the input and output vectors of the system, respectively, and they are defined in the high-dimensional feature space, Φ ( x) represents the high-dimensional feature space, which is nonlinearly mapped from the input space x , w is the weight matrix, b is the bias, R is the Euclidean space, l and n are the dimensions of the Euclidean space. The SVR aims to find a function that represents the deviation of ε from the actual output. The coefficients w and b are estimated by minimizing the regularized risk function: Rreg (C ) =
C l 1 2 Le ( yi , f ( xi )) + w ∑ l i =1 2
(3)
Lε ( yi , f ( xi )) = y − f ( x) − ε for y − f ( x) ≥ ε (4a) Lε ( yi , f ( xi )) = 0 otherwise
(4b)
where α i and α i∗ are the Lagrangian multipliers, and k is the number of support vectors. The training data with nonzero Lagrangian multipliers are called the support vectors. To avoid computing explicitly the mapping Φ ( x) , introducing K ( xi , x j ) = Φ ( xi )Φ ( x j ) in Eq.(7), K ( xi , x j ) is known as the kernel function, it follows
that k
y = ∑ (α i − α i* ) K ( xi , x j ) + b
(8)
i =1
Any function that satisfies the Mercer condition can be used as the kernel function. Some commonly used kernel functions are: (1) the linear kernel function, (2) the polynomial kernel function, (3) the RBF kernel function, (4) the sigmoid kernel function, and (5) the B-spline kernel function.
505
3. System identification modelling The SI combined with the free-running model tests or the full-scale trials is one of the effective methods for modelling the ship manoeuvring motion. There are three kinds of SI modelling, including the white-box modelling, the grey-box modelling and the black-box modelling. The white-box modelling is also known as the mechanism modelling. In the white-box modelling, the motion of the system is analyzed based on the structure of the system; and the mathematical model of the system is built. The black-box modelling is a modelling method that uses only the input-output data of the system, even if both the structure and the parameters of the system are unknown. It aims to obtain an appropriate approximation of the actual system. The grey-box modelling is a hybrid modelling method combining the white-box modelling and the black-box modelling for the system that is not fully known. 3.1 White-box modelling In the white-box modelling, the mathematical model structure of the objective ship, the principal parameters of the ship and the acceleration derivatives in the mathematical model are known. Firstly, the Lagrangian multipliers are trained by using the samples of the input and output to identify the hydrodynamic coefficients; secondly, the ship manoeuvring motion is predicted with the identified hydrodynamic coefficients and Eqs.(1)-(4). In the process of identification, the parameter drift happens inevitably. How to reduce the parameter drift is vital to the identification accuracy of the hydrodynamic coefficients. To reduce the extent of the parameter drift, Luo and Zou[10], Zhang and Zou[12] added a series of random signals into the training samples. However, the introduction of the random signals brings about another problem: the amplitude of the random signals is difficult to determine. Moreover, to obtain the hydrodynamic coefficients in the sway and yaw equations, it is necessary to solve a series of combined equations. In the present work, the identification formulas are reconstructed to avoid adding the random signals into the training samples and solving a series of combined equations. First of all, the continuous equation of motion is discretized using Euler’s stepping method as u (k ) =
∆ u (k +1) − ∆ u (k ) h
(9a)
v (k ) =
v (k +1) − v (k ) h
(9b)
r (k ) =
r (k +1) − r (k ) h
(9c)
where h is the sampling interval, k and k +1 are
the adjacent sampling time steps. Substituting Eq.(9) into Eq.(1), the reconstructed identification formulas are obtained as X w Aw = L (m′ − X u′ ) Yw Bw = L (m′ − Yv′)
∆ u (k +1) − ∆ u (k ) h
v (k +1) − v (k ) + h
L2 (m′xG′ − Yr′)
r (k +1) − r (k ) h
N wCw = L (m′xG′ − N v′ )
L2 ( I z′ − N r′ )
(10a)
(10b)
v (k +1) − v (k ) + h
r (k +1) − r (k ) h
(10c)
where L is the ship length, and the coefficient vectors and the variable vectors are ′ , X uuu ′ , X vv′ , X rr′ , X rv′ , X δδ′ , X u′δδ , X v′δ , X w = [ X u′ , X uu X uv′ δ ]1×10 ,
′ , Yvvr ′ , Yvu′ , Yru′ , Yδ′, Yδδδ ′ , Yu′δ , Yuu′ δ , Yw = [Y0′, Yu′, Yuu′ , Yv′, Yr′, Yvvv Yv′δδ , Yvv′ δ ]1×15 , ′ , N v′ , N r′ , N vvv ′ , N vvr ′ , N vu′ , N ru′ , Nδ′ , N w = [ N 0′ , N u′ , N uu ′ , N u′δ , N uu ′ δ , N v′δδ , N vv′ δ ]1×15 , Nδδδ
∆ u 3 (k ) 2 Aw = ∆ u (k )U (k ), ∆ u 2 (k ), , v (k ), r 2 (k ) L2 , U ( k ) v (k ) r (k ) L, δ 2 (k )U 2 (k ), ∆u (k )δ 2 (k )U (k ),
v (k )δ (k )U (k ), ∆u (k )v (k )δ (k )]1T×10 , Bw = Cw = [U 2 (k ), ∆ u (k )U (k ), ∆ u 2 (k ), v (k )U (k ), r (k )U (k ) L,
v3 (k ) v 2 (k ) r (k ) L , , v (k ) ∆ u (k ), U (k ) U (k )
r (k ) ∆ u (k ) L, δ (k )U 2 (k ), δ 3 (k )U 2 (k ), ∆ u (k )δ (k )U (k ), ∆ u 2 (k )δ (k ), v (k )δ 2 (k )U (k ), v 2 (k )δ (k )]1T×15
506
Note that in order to facilitate the identification, the motion state parameters ( U , u , v , r and δ ) maintain in the dimensional form in Eq.(10), while the hydrodynamic coefficients are written in the non-dimensional form[18]. The above coefficient vectors can be identified by using the ε - SVR. Here the linear kernel function K ( x, x′) = x x′ is selected and Eq.(8) is rewritten as k
y = ∑ (α i − α i* ) xi x + b
the grey-box modelling, the support vectors are firstly trained by using the samples of the input and output, and then the ship manoeuvring motion is predicted by using the trained support vectors, without using Eq.(1).
(11)
i =1
Comparing Eq.(10) with Eq.(11), if the ε - SVR can provide a good approximation of the objective function (which means that b is infinitely close to zero),
k
∑ (α i =1
i
− α i∗ ) xi are the identified hydrodynamic
coefficients. The detailed process of the white-box modelling and the prediction of the ship manoeuvring motion using the ε - SVR is depicted in Fig.2.
Fig.4 Process of black-box modelling using ε - SVR Table 1 Main particulars of mariner class vessel Parameter
Value
Length overall ( Loa )
171.8 m
Length between perpendiculars ( L pp )
160.93 m
Maximum beam ( B )
23.17 m
Design draft (T )
8.23 m
Design displacement (∇)
18 541 m3
Design speed (U 0 )
15.5 knots
Maximum rudder rate (δmax )
5o / s
Substituting Eq.(9) into Eq.(1), the output can be rearranged as: ∆u (k +1) − ∆u (k ) = a1∆u (k )U (k ) + a2 ∆u 2 (k ) +
Fig.2 Process of white-box modelling using ε - SVR
a3 ∆u 3 (k ) + a4 v 2 (k ) + a5 r 2 (k ) + a6 v(k )r (k ) + U (k )
a7δ 2 (k )U 2 (k ) + a8 ∆u (k )δ 2 (k )U (k ) + a9 v(k )δ (k )U (k ) + a10 ∆u (k )v(k )δ (k )
(12)
v(k +1) − v(k ) = b1U 2 (k ) + b2 ∆u (k )U (k ) + b3 ∆u 2 (k ) + Fig.3 Process of grey-box modelling using ε - SVR
3.2 Grey-box modelling If it is not necessay to know the hydrodynamic coefficients apart from the prediction of the ship manoeuvring motion, the grey-box modelling is a better choice. In this case, only the structures of the mathematical model are known, while other information, even the ship’s principal particulars, is unknown. In
b4 v(k )U (k ) + b5 r (k )U (k ) +
b6 v3 (k ) b7 v 2 (k )r (k ) + + U (k ) U (k )
b8 v(k )∆u (k ) + b9 r (k )∆u (k ) + b10δ (k )U 2 (k ) + b11δ 3 (k )U 2 (k ) + b12 ∆u (k )δ (k )U (k ) + b13 ∆u 2 (k )δ (k ) + b14 v(k )δ 2 (k )U (k ) + b15 v 2 (k )δ (k )
(13)
507
Table 2 Comparison of identified hydrodynamic coefficients (×10−5) with PMM test data
X - coefficient
PMM
Identified
Y - coefficient
PMM
Identified
N - coefficient
X u′
−184
−184
Y′
−1 160
−1 160
N v′
−264
−265
′ X uu
−110
−111
Y′
−499
−499
N r′
−166
−166
′ X uuu
−215
−217
′ Yvvv
−8 078
−7 950
′ N vvv
1 636
1 555
X vv′
−899
−900
′ Yvvr
15 413
′ N vvr
−5 483
−5 529
X rr′
18
18
Yvu′
−1 160
1 133
′ N vu
−264
−284
X δδ′
−95
−95
Yru′
−499
−485
N ru′
−166
−176
′u X δδ
−190
−190
Yδ′
278
278
Nδ′
−139
−139
X vr′
798
798
′ Yδδδ
′ Nδδδ
45
45
X v′δ
93
93
Yδ′u
556
562
Nδ′ u
−278
−282
X v′δ u
93
93
Yδ′uu
278
294
Nδ′ uu
−139
−149
N v′δδ
13
13
N vv′ δ
−489
−510
15 356
−90
Yv′δδ
−4
Yvv′ δ
1190
−3 1209
Identified
Y0′
−4
−3
N 0′
3
2
Yu′
−8
−10
′ N 0u
6
7
Yuu′
−4
−5
′ N 0uu
3
2
r (k +1) − r (k ) = c1U 2 (k ) + c2 ∆u (k )U (k ) + c3 ∆u 2 (k ) + c4 v(k )U (k ) + c5 r (k )U (k ) +
−93
PMM
c6 v3 (k ) c7 v 2 (k )r (k ) + + U (k ) U (k )
c8 v(k )∆u (k ) + c9 r (k )∆u (k ) + c10δ (k )U (k ) +
Yg = [b1 , b2 , b3 , b4 , b5 , b6 , b7 , b8 , b9 , b10 , b11 , b12 , b13 , b14 , b15 ]1×15 ,
N g = [c1 , c2 , c3 , c4 , c5 , c6 , c7 , c8 , c9 , c10 , c11 , c12 , c13 , c14 ,
2
c11δ (k )U (k ) + c12 ∆u (k )δ (k )U (k ) + c13u (k )δ (k ) + 3
2
2
c14 v(k )δ 2 (k )U (k ) + c15 v 2 (k )δ (k )
c15 ]1×15 ,
Ag = [∆u (k )U (k ), ∆u 2 (k ),
(14)
∆u 3 (k ) 2 , v (k ), r 2 (k ), U (k )
v(k )r (k ), δ 2 (k )U 2 (k ), ∆u (k )δ 2 (k )U (k ),
or rewritten as ∆ u (k +1) − ∆ u (k ) = X g Ag
(15a)
v (k +1) − v (k ) = Yg Bg
(15b)
r (k +1) − r (k ) = N g C g
(15c)
v(k )δ (k )U (k ), ∆u (k )v(k )δ (k )]1T×10 , Bg = C g = [U 2 (k ), ∆u (k )U (k ), ∆u 2 (k ), v(k )U (k ), r (k )U (k ),
v3 (k ) v 2 (k )r (k ) , , v(k )∆u (k ), r (k )∆u (k ), U (k ) U (k )
where the coefficient vectors and the variable vectors are
δ (k )U 2 (k ), δ 3 (k )U 2 (k ), ∆u (k )δ (k )U (k ),
X g = [a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9 , a10 ]1×10 ,
∆u 2 (k )δ (k ), v(k )δ 2 (k )U (k ), v 2 (k )δ (k )]1T×15
508
The process of the grey-box modelling and the prediction of the ship manoeuvring motion using the ε - SVR is depicted in Fig.3. 3.3 Black-box modelling When neither the ship’s principal parameters, nor the structures of the mathematical model are known, the black-box modelling is the only choice for modelling the ship manoeuvring motion. In the black-box modelling, only the motion state variables at the last time step are used to predict those at the next time step. From Eqs.(12)-(14), it can be seen that ∆u (k +1) , v(k +1) and r (k +1) are functions of U (k ) , ∆u (k ) , v(k ) , r (k ) and δ (k ) . These equations can be rewritten as ∆ u (k +1) = g1 (U (k ), ∆ u (k ), v (k ), r (k ), δ (k ))
(16a)
v (k +1) = g 2 (U (k ), ∆ u (k ), v (k ), r (k ), δ (k ))
(16b)
r (k +1) = g3 (U (k ), ∆u (k ), v (k ), r (k ), δ (k ))
(16c)
drodynamic coefficients. The white Gaussian noise is added to the simulation data of the surge speed, the sway speed, the yaw rate and the heading angle as the observation values, and then the data with noise are filtered with the wavelet denoising method. Figure 5 shows the comparison of the original simulation data, the simulation data with white Gaussian noise and the denoised data. The training sample couples are taken from the denoised simulation data of the 20o / 20o zigzag test every 4 s (5% of the denoised simulation data). The penalty factor C = 106 and the insensitivity factor ε = 10− 6 are chosen.
The process of the black-box modelling and the prediction of the ship manoeuvring motion using ε SVR is depicted in Fig.4. 4. Prediction and generalization verification 4.1 Prediction A Mariner Class Vessel[18] is taken as the study object. Table 1 gives the main particulars of the ship. The non-dimensional mass of the ship m′ = 7.98 × 10−3 , the non-dimensional moment of inertia of the ship about z - axis I z′ = 3.92 × 10−4 and the non-dimensional longitudinal coordinate of the ship’s centre of gravity xG′ = −2.3 × 10−2 . The 10o /10o , 20o / 20o zigzag tests and the 35o turning circle manoeuvre are simulated by using the hydrodynamic coefficients obtained from the PMM test[18], as given in Table 2. The zigzag tests are terminated after the rudder execution has repeated 5 times, for the turning circle manoeuvre, the rudder is deflected to the desired angle and maintains until the heading of the ship has changed by 540o . The time histories of the surge speed u , the sway speed v , the yaw rate r , the resultant speed U and the heading angle ψ are obtained from the simulation. The simulation sampling interval is 0.2 s. In the identification process, the simulation data of the 20o / 20o zigzag test are used to identify the hy-
Fig.5 Comparison of the 20o / 20o zigzag test data
In the white-box modelling, the training sample couples consist of input: { Aw , Bw , Cw }
509
Fig.6 Comparison of the predicted motions with simulation results, 20o / 20o zigzag test
Fig.7 Comparison of the predicted motions with simulation results, 10o /10o zigzag test
∆ u (k +1) − ∆ u (k ) output: L (m′ − X u′ ) , h L (m′ − Yv′)
v (k +1) − v (k ) + h
L2 (m′xG′ − Yr′)
r (k +1) − r (k ) , h
L(m′xG′ − N v′ )
v(k +1) − v(k ) + h
L2 ( I z′ − N r′ )
r (k +1) − r (k ) h
The hydrodynamic coefficients are identified by Eq.(11) and the results are given in Table 2 in comparison with the data obtained from the PMM test. Note that the acceleration derivatives are not identified and are treated as known constants during identification. It can be seen from Table 2, the identification results of the hydrodynamic coefficients are in good agreement with the PMM test data, which indicates that the white-box modelling using the ε - SVR is an effective method to identify the hydrodynamic coefficients. In the grey-box modelling, a linear kernel function is selected. The training sample couples consist of input: { Ag , Bg , Cg }
510
Fig.8 Comparison of the predicted motions with simulation results, 35o turning circle manoeuvre
output: {∆u (k +1) − ∆u (k ), v(k +1) − v(k ), r (k +1) − r (k )}
In the black-box modelling, the RBF kernel fun2 ction K ( x, x′) = exp(− x − x′ / 2σ 2 ) is selected, with the width parameter σ = 20 . The training sample couples consist of input: {U (k ), ∆u (k ), v(k ), r (k ), δ (k )} output: {∆u (k +1) − ∆u (k ), v(k +1) − v(k ), r (k +1) − r (k )}
Figure 6 shows the predicted motions of the 20o / 20o zigzag test using the mathematical models obtained by the white-box modelling, the grey-box modelling and the black-box modelling in comparison with those of simulation data with noise. A satisfactory agreement demonstrates the validity of the proposed identification modelling methods. 4.2 Generalization verification To verify the generalization performance of the modelling methods, the 10o /10o zigzag test and the 35o turning circle manoeuvre are predicted by using the support vectors trained with the denoised simulation data of the 20o / 20o zigzag test. The comparisons of the predicted motions with the simulation results are shown in Fig.7 and Fig.8. As it can be seen from these figures, good agreements are achieved, which demonstrates that the modelling methods have a good generalization capability.
4.3 Comparison The requirements of the known conditions and the output results of the three modelling methods are listed in Table 3. According to the intended use of the mathematical models and the available data needed for the system identification, an appropriate modelling method can be chosen. If the hydrodynamic coefficients are to be determined, the white-box modelling might be chosen, however, many known data are required in the white-box modelling. When only the structures of the mathematical models are known, the grey-box modelling is a better choice. When neither the ship’s principal parameters, nor the structures of the mathematical models are known, the black-box modelling is the only choice. Usually, the mean square error (MSE) and the correlation coefficient (CC) are two evaluation criteria used to measure the prediction accuracy. Taking the surge speed (u ) as an example, the MSE and the CC are defined as: 1 l [u p (k ) − us (k )]2 , ∑ l k =1
MSE =
l
CC =
∑ [u k =1
l
∑ [u k =1
p
(k ) − u p ][us (k ) − us ] l
p
(k ) − u p ]2 ∑ [us (k ) − us ]2 k =1
where the subscript p and s denote the prediction result and the simulation result, respectively, l is the number of the surge speed data, u p and us denote the average prediction result and the simulation result, respectively.
511
Table 3 Requirements of known conditions and output of the modelling methods Modelling method
Requirements of known conditions Mathematical model of ship motion principal ship parameters: m , L , xG etc.
White-box
Acceleration coefficients: X u′ , Yv′ , Yr′ , N v′ and N r′ Motion parameters: u ( k ) , v( k ) and r ( k )
Output
Hydrodynamic coefficients X u′ , Yv′ , N r′ etc. Motion parameters:
u (k +1) , v(k +1)
and
u (k +1) ,
v(k +1)
and
u (k +1) ,
v(k +1)
and
r (k +1)
Rudder angle: δ ( k ) Mathematical model of ship motion Motion parameters: u ( k ) , v( k ) and r ( k )
Grey-box
rudder angle: δ ( k )
Black-box
Motion parameters:
r (k +1)
Motion parameters: u ( k ) , v( k ) and r ( k )
Motion parameters:
Rudder angle: δ ( k )
r (k +1)
Table 4 Comparison of the prediction accuracy and computation speed Manoeuvres
Evaluation criterion
MSE
20o / 20o zigzag CC
White-box
10o /10o zigzag CC
v
4.1946×104
1.7574×10−4
7.1631×10−4
r
1.6117×10−7
7.5590×10−8
2.4281×10−7
u
0.9997
0.9998
0.9996
v
0.9994
0.9997
0.9989
r
0.9918
35o turning CC
5.2321×10−5
0.9996 −5
2.8997×10
0.9987 −4
4.9712×10−2
2.6629×10−5
8.4882×10−6
4.3178×10−4
v
3.5319×10-4
1.4636×10−5
1.0620×10−2
r
8.6398×10−9
5.5370×10−8
2.9353×10−6
u
0.9993
0.9998
0.9878
v
0.9999
0.9995
0.9674
r
0.9999 1.4952×10
0.9994 −5
2.8271×10
0.9658 −4
5.0291×10−2
u
2.4522×10−4
2.6297×10−4
1.5259×10−2
v
4.9642×10−5
3.4629×10−6
8.0185×10−4
r
1.3031×10−8
1.1120×10−7
3.6572×10−7
u
0.9999
0.9999
0.9971
v
0.9999
0.9998
0.9909
r
0.9994
Computation speed (s/step)
The MSE and the CC of u , v and r are listed in Table 4, where the computation speed is also shown. All predictions using the mathematical models obtained by the modelling methods are made under the same computation condition and software environment.
1.6588×10
1.7497×10
−5
u
Computation speed (s/step)
MSE
Black-box
4.7319×10
Computation speed (s/step) MSE
Grey-box
u
−5
1.3454×10
0.9996 −5
2.8952×10
0.9919 −4
5.0109×10−2
Table 4 demonstrates that all modelling methods have a high prediction accuracy. However, the accuracy of the white-box modelling and the grey-box modelling is significantly higher than that of the blackbox modelling. It is because the inputs of the whitebox modelling and the grey-box modelling are both
512
high-dimensional vectors and hence can better reflect the system characteristics; while the input of the black-box modelling is only one-dimensional vector. The white-box modelling and the grey-box modelling have a stronger nonlinear mapping ability than the black-box modelling, although the RBF kernel function is chosen in the black-box modelling. Table 4 also demonstrates that all modelling methods have a fast computation speed. However, the white-box modelling takes much less computation time than the grey-box modelling and the black-box modelling. In the white-box modelling, the ship manoeuvring motion is predicted with the identified hydrodynamic coefficients and the mathematical model (Eq.(1)), and hence is the fastest. In the grey-box modelling and the black-box modelling, the ship manoeuvring motion is predicted by using the trained support vectors, without the use of the mathematical model. The prediction based on the grey-box modelling involves a high dimensional nonlinear input, and hence takes a large amount of computation time. Although the input of the black-box modelling is very simple, the high-dimensional kernel function such as the RBF kernel function requires quite large memory and CPU time.
References
5. Conclusions Based on the ε - SVR, this paper studies three system identification modelling methods for the ship manoeuvring motion, i.e., the white-box modelling, the grey-box modelling and the black-box modelling. The conclusions can be summarized as follows: (1) Good predictive ability and generalization performance of the modelling methods are demonstrated by comparing the predicted results with those of simulation tests. (2) An appropriate modelling method can be chosen according to the intended use of the mathematical models and the available data for the system identification. When the hydrodynamic coefficients are to be determined, the white-box modelling might be chosen, when only the structures of the mathematical models are known, the gray-box modelling is a better choice, when neither the ship’s principal parameters, nor the structures of the mathematical models are known, the black-box modelling is the only choice. (3) By comparing the MSE and the CC between the predicted results and the simulation data, it is shown that the accuracy of the white-box modelling and the grey-box modelling is significantly higher than that of the black-box modelling. (4) It is shown that all modelling methods have a fast computation speed, because of the ε - SVR characteristics. In comparison, the white-box modelling requires much less computation time than the grey-box modelling and the black-box modelling.
[9]
[1] [2]
[3] [4] [5]
[6]
[7] [8]
[10] [11]
[12]
[13]
[14]
[15]
[16] [17] [18]
IMO. Standards for ship manoeuvrability[S]. Resolution MSC.137(76), International Maritime Organization (IMO), 2002. ABKOWITZ M. A. Measurement of hydrodynamic characteristic from ship maneuvering trials by system identification[J]. Transactions of Society of Naval Architects and Marine Engineers, 1980, 88: 283-318. HWANG W. Y. Application of system identification to ship maneuvering[D]. Doctoral Thesis, Boston, USA: Massachusetts Institute of Technology, 1980. ÅSTRÖM K. J., KÄLLSTRÖM C. G. Identification of ship steering dynamics[J]. Automatica, 1976, 12(1): 922. ZHOU W. W., BLANKE M. Identification of a class of nonlinear state-space models using RPE techniques[J]. IEEE Transactions on Automatic Control, 1989, 34(3): 312-316. RHEE K. P., LEE S. Y. and SUNG Y. J. Estimation of manoeuvring coefficients from PMM test by genetic algorithm[C]. Proceedings of International Symposium and Workshop on Force Acting on a Manoeuvring Vessel. Val de Reuil, France, 1998, 77-87. BHATTACHARYYA S. K., HADDARA M. R. Parametric identification for nonlinear ship manoeuvring[J]. Journal of Ship Research, 2006, 50(3): 197-207. PEREZ T., FOSSEN T. I. Practical aspects of frequencydomain identification of dynamic models of marine structures from hydrodynamic data[J]. Ocean Engineering, 2011, 38(2-3): 426-435. HADDARA M. R., WANG Y. Parametric identification of manoeuvring models for ships[J]. International Shipbuilding Progress, 1999, 46(445): 5-27. LUO W., ZOU Z. Parametric identification of ship maneuvering models by using support vector machines[J]. Journal of Ship Research, 2009, 53(1): 19-30. LUO Wei-lin, ZOU Zao-jian. Elimination of simultaneous drift and sensitivity analysis in the hydrodynamic modeling of ship manoeuvring[J]. Journal of Shanghai Jiaotong University, 2008, 42(8): 1358-1362(in Chinese). ZHANG Xin-guang, ZOU Zao-jian. Identification of Abkowitz model for ship manoeuvring motion using ε - support vector regression[J]. Journal of Hydrodynamics, 2011, 23(3): 353-360. XU Feng, ZOU Zao-jian and YIN Jian-chuan et al. Parametric identification and sensitivity analysis for autonomous underwater vehicles in diving plane[J]. Journal of Hydrodynamics, 2012, 24(5): 744-751. SUTULO S., GUEDES SOARES C. An algorithm for offline identification of ship manoeuvring mathematical models from free-running tests[J]. Ocean Engineering, 2014, 79: 10-25. RAJESH G., BHATTACHARYYA S. K. System identification for nonlinear maneuvering of large tankers using artificial neural network[J]. Applied Ocean Research, 2008, 30(4): 256-263. MOREIRA L., GUEDES SOARES C. Dynamic model of manoeuvrability using recursive neural networks[J]. Ocean Engineering, 2003, 30(13): 1669-1697. VAPNIK V. N. The nature of statistical learning theory[M]. New York, USA: Springer Verlag, 2000. FOSSEN T. I. Handbook of marine craft hydrodynamics and motion control[M]. New York, USA: John Wiley and Sons, 2011.