Naveed Ahmad Khan1, Muhammad Sulaiman1, Carlos Andrés Tavera Romero2, Ghaylen Laouini3, Fahad Sameer Alshammari4. 1. Department of Mathematics, Abdul Wali Khan University, Mardan 23200, Pakistan. 2. COMBA R&D Laboratory, Faculty of Engineering, Universidad Santiago de Cali, Cali 76001, Colombia. 3. College of Engineering and Technology, American University of the Middle East, Egaila 54200, Kuwait. 4. Department of Mathematics, College of Science and Humanities in Alkharj, Prince Sattam bin Abdulaziz University, Al-Kharj 11942, Saudi Arabia.
Abstract
In this paper, a mathematical model for the rolling motion of ships in random beam seas has been investigated. The ships' steady-state rolling motion with a nonlinear restoring moment and damping effect is modeled by the nonlinear second-order differential equation. Furthermore, an artificial neural network (NN)-based, backpropagated Levenberg-Marquardt (LM) algorithm is utilized to interpret a numerical solution for the roll angle (x(t)), velocity (x'(t)), and acceleration (x''(t)) of the ship in random beam seas. A reference data set based on numerical examples of the mathematical model for a rolling ship for the LM-NN algorithm is generated by the numerical solver Runge-Kutta method of order 4 (RK-4). The LM-NN algorithm further uses the created data set for the validation, testing, and training of approximate solutions. The outcomes of the design paradigm are compared with those of the homotopy perturbation method (HPM), optimal homotopy analysis method (OHAM), and RK-4. Statistical analyses of the mean square error (MSE), regression, error histograms, proportional performance, and computational complexity further validate the worth of the LM-NN algorithm.
In this paper, a mathematical model for the rolling motion of ships in random beam seas has been investigated. The ships' steady-state rolling motion with a nonlinear restoring moment and damping effect is modeled by the nonlinear second-order differential equation. Furthermore, an artificial neural network (NN)-based, backpropagated Levenberg-Marquardt (LM) algorithm is utilized to interpret a numerical solution for the roll angle (x(t)), velocity (x'(t)), and acceleration (x''(t)) of the ship in random beam seas. A reference data set based on numerical examples of the mathematical model for a rolling ship for the LM-NN algorithm is generated by the numerical solver Runge-Kutta method of order 4 (RK-4). The LM-NN algorithm further uses the created data set for the validation, testing, and training of approximate solutions. The outcomes of the design paradigm are compared with those of the homotopy perturbation method (HPM), optimal homotopy analysis method (OHAM), and RK-4. Statistical analyses of the mean square error (MSE), regression, error histograms, proportional performance, and computational complexity further validate the worth of the LM-NN algorithm.
Entities:
Keywords:
Levenberg-Marquardt algorithm; artificial neural networks; nonlinear damping; random beam seas; soft computing; steady-state roll motion
In general, ships experience different motions, including angular and displacement motions, categorized as yaw, pitch, roll, heave, drift, and surge. Figure 1 represents the schematic directions of all six motions. The stabilization of a ship depends on two methods, namely roll reduction and the modeling or evaluation method of roll performance. In the later part of the mid-18th century, Froude studied a ship’s rolling motion for the first time. Later on, Norio Tanaka [1] introduced the empirical and semi-empirical roll damping coefficient for dynamic equations. A simple method was proposed by Himeno [2] for the prediction of the roll damping of ships at forwarding speed. In 2004, Ikeda [3] presented the modified model of roll damping with a steady drift motion.
Figure 1
Schematic diagram of ship showing six directions of motion.
In sea studies, roll damping is one of the important topics of discussion for most researchers. However, the complexity of problems and the potential flaws in traditional techniques make the solving of roll motion problems difficult. Scientists have adopted various strategies, including empirical formulas, advanced experimental processes, computational fluid dynamics (CDF), an analysis method for roll dumping, a finite differential model, and a higher polynomial roll dumping model. Yeung [4] implemented a method based on CDF that had been used for local phenomena of vortex shedding around bilge keels. An experimental analysis on the local flow visualization of roll damping are given in [5,6,7].Researchers have recently focused on studying the mathematical modeling of the roll damping of ships. It has been noticed that external forces significantly affect ship stability, which causes complexity in mathematical models. The strong nonlinear terms arising in the mathematical model make it possible to study the behavior of forecasting stability changes in operations [8]. Oliveira and Fernandes [9] used the hyperbola or bilinear fitting method, and Agarwal [10], in 2015, used a fractional differential equation model to investigate the roll damping phenomena of ships. The ship’s rolling motion in terms of a second-order nonlinear differential equation is of great significance to the research community. Finding a closed-form solution (exact solution) to such a model is difficult. Various numerical and perturbation techniques have been implemented to find the approximate solutions. Some well-established techniques for obtaining analytical expressions for roll angle, velocity, and acceleration are the finite element method (FEM) [11], differential transformation method (DTM) [12], homotopy analysis method (HAM) [13,14,15], variational iteration method (VIM) [16,17], homotopy perturbation method (HPM) [18], modified homotopy perturbation method [19], Green function-based method (GFM) [20], series method (SM) [21], and the ultraspherical wavelets-based method (UWM) [19]. Although these methods have advantages, especially over non-typical appendages in size and shape and newer hull designs, most of the methods are gradient-based techniques and depend on traditional deterministic approaches that have not been validated.In recent times, stochastic optimization techniques based on artificial neural networks have been adopted to find numerical solutions to various complex and stiff problems. Recently, such soft computing techniques have been applied to study the wire coating phenomena [22], diabetic retinopathy classification using fundus images [23], imbibition phenomena [24], heat transfer in porous fins [25,26,27], wire coating dynamics [22], beam-column designs by varying axial load [28], absorption of carbon dioxide into solutions of phenyl glycidyl ether [29], mathematical models of CBSC over wireless channels [30], Michaelis–Menten kinetics in a micro-disk biosensor [31], a mathematical model for eye surgery [32], and electrohydrodynamic flow in a circular cylindrical conduit [33]. The techniques mentioned above have motivated the authors of this study to numerically solve the mathematical model of the ship’s rolling motion by using a stochastic Levenberg-Marquardt (LM) algorithm based on neural networks that have never been applied to such a model. The potential outcomes of the presented work are summarized as follows:The formulation of a mathematical model for the rolling motion of ships in random beam seas will have been investigated;The novel, integrated design of a computing paradigm based on the two-layer structure of the Levenberg-Marquardt (LM) algorithm and neural networks (LM-NNs) is presented to examine the rolling motions;The model is briefly analyzed by considering certain examples depending on variations in angular frequency , damping coefficient , frequency , amplitude , and strength of nonlinearity coefficient ;A merit function based on the mean square error is effectively developed for the computational analysis of LM-NNs by taking reference solutions of different examples generated by the RK-4 method;The training, testing, and validation process of LM-NNs are utilized to study the performance of approximate solutions by graphically illustrating regressions, absolute errors, and error histograms. The results of LM-NNs are compared with those of the HPM and RK-4 methods, which shows the dominance of the technique;An advantage of the proposed design is that it does not require any initial parameter settings. Its implementation is simple and smooth, with exhaustive applicability and stability.
2. Problem Formulation
In 1981, Cardo [34] formulated the mathematical equation for the rolling motion of a ship without any influence from oscillation, which is given as follows:Equation (1) represents the general equation of the roll motion of ships in the absolute heeling angle, where , , and denote the roll angle, velocity, and acceleration, respectively. The moment of inertia is denoted by I, D denotes the moment of forces, is amplitude, is the righting moment, and is the angular frequency. Here, the nonlinear damping term is taken into consideration as the angular dependence of the linear term, which is given by the following equation:
its normalized form of the righting moment can be expressed as:
establishing dimensionless parameters by introducing the time and angle scales as follows:
using the above parameters and rearranging the term gives the nonlinear equation of the cubic damping moment [34]:
where , , , and denote the strength of nonlinearity, damping coefficient, amplitude, and angular frequency, respectively. and are viscous damping coefficients.
3. Proposed Methodology and Performance Indices
3.1. Structure of Artificial Neural Networks
Artificial neural networks (ANNs) are intelligent computational systems that mimic the biological nervous system. ANNs have been successfully applied by a number of researchers to study the complex problems such as pattern identification, recognition, classification [35], electrical energy consumption forecasting [36], and induction motor drive in pumping [37].The fundamental structure of ANNs comprises of interconnected neurons and nodes that receives the input, combines them in a specific way, and performs some nonlinear operation to generate the output. Figure 2 depicts the architecture of ANNs that consists of input, weight, threshold, summing junction, and output. For the basic model of ANNs, the input is multiplied by the connection weights, and the bias or threshold is further applied to convert the inputs into the desired results. The net input is calculated as follows: In order to generate the output , an activation function such as Log-Sigmoid is used, which is given as:
where N is the number of inputs.
Figure 2
Basic structure of a simple artificial neuron.
3.2. Learning Procedure
In this section, the learning procedure of the designed weights in the ANN structure is discussed. The implementation of the novel design of the Levenberg-Marquardt neural network approach is based on two steps. In the first step, a mathematical model for the rolling motion of the ship is evaluated by the Runge–Kutta method of order 4 using “NDSolve”, the built in function of Mathematica to generate the reference solution of 301 data points, with a 0.1 step size from 0 to 30. In the second step, the Levenberg-Marquardt technique, which is an efficient technique in the field of soft computing, is implemented using the “nftool” routine on MATLAB for the proper training, validation, and testing of the problem. The work flow and parameter settings in terms of training, validation, and testing for the LM-NN algorithm is shown in Figure 3. The computational model with a double neural network for the design scheme has been plotted through Figure 4.
Figure 3
Architecture of the proposed methodology of the mathematical model for the rolling motion of ships in random beam seas.
Figure 4
Structure of the supervised neural network [38].
The performance of the designed scheme is measured through the performance indicators in terms of the mean square error (MSE) of the fitness function of the model, regression , error histograms, and absolute errors (AE). The mathematical formulation of the MSE, , and AE are given as follows:
and
where , , and denote the reference, approximate, and mean of the solution at the jth input, and k is the number of mesh points. The desired value for the MSE and AE for perfect fitting is equal to zero, while the value of is one.
4. Numerical Experimentation
In this section, we considered certain examples of the rolling motion of ships in random beam seas by varying certain parameters. Figure 5 shows the flow chart of the problems discussed in this paper.
Figure 5
An overview of different examples and cases studied in this paper.
In this example, a nonlinear differential equation for the rolling motion of ships is considered [
subjected toExperimental values of the parameters involved in Equation (10) are , , , , and .In this example, a nonlinear IVP of the cubic damping moment of the rolling motion is considered [
with the initial conditionsFurthermore, to briefly study the model, the following three cases are considered, depending on variations in the dimensionless damping coefficient and the strength of the nonlinearity coefficient. Case I: , , , , , and . Case II: , , , , , and . Case III: , , , , , and .In this example, we considered the cubic damping moment of the nonlinear roll motion [
withTwo cases of Equation (14) are considered. Case I: , , and . Case II: , , and .
Chaos Phenomena of Ship Nonlinear Rolling Motion
When a ship is sailing, the motion of the ship is extremely complex. However, the large restoring and nonlinear torques cannot be ignored. AH Nayfeh [40], in 1990, took nonlinear damping and restoring torques into consideration and investigated the complexity and stability of the dynamics in the rolling motion of ships under the influence of different slopes and wave surfaces. The mathematical model for the nonlinear motion of ships subjected to the regular waves can be written as follows [41,42]:
where represents the wave disturbance torque, and denotes the slope or gradient of the wave surfaces and is defined as:
here, is the maximum slope. The chaotic phenomena are extremely sensitive, particulary to the external disturbances, therefore the can be given as follows:
where and are the restoring and damping disturbance torques. Equation (17) is reduced to the following equation:
and can be given as:
here, and are linear and cubic damping coefficients of torque. Moreover, , are constants and is the linear restoring coefficient of torque. is constant, and its value can be calculated as follows:
where represents the heeling angle. Using Equations (20)–(22) in Equation (19) will result in the following:The mathematical model is simplified by introducing dimensionless parameters such as:Equation (23) can be given as follows:Values of the parameters involved in Equation (25) are given in Table 1. One of the primary characteristics of a chaotic system is that there is great sensitivity to the initial values. The traces formed by the small difference between the two initial values will disperse in the usual way as time goes on [43]. Equation (25) is similar to duffing equations, which are strongly nonlinear and are commonly used for detecting the weak signals in the chaotic systems. Furthermore, to study the chaos phenomena in ships, Equation (25) is reduced to the system of differential equations by letting , and :
with the initial conditions
Table 1
Values of parameters involved in the mathematical model for the rolling of ships given in Equation (25).
Parameters
n1
n2
n3
m1
m2
A1
A2
Values
3.24
−4.525
0.878
0.35
0.0222
0.504
−4.6656
5. Results and Discussion
In this section, the implementation of the proposed LM-NN algorithm to solve the mathematical model for the rolling motion of ships in random beam seas is discussed. Numerical and graphical results are illustrated for all three mathematical examples with different cases. An approximate solution for each example obtained by the LM-NNs is compared with those of the homotopy perturbation method (HPM) [19], the Runge–Kutta method (RK-4), and the optimal homotopy analysis method (OHAM) [39], as shown in Figure 6. Table 2 and Table 3 represent the statistics of the obtained values for the rolling angle, velocity, and acceleration. The behaviour of variations in different parameters on and are shown in Figure 7. Figure 8 illustrates rolling decay curves that show the impact of time on the rolling angle. Furthermore, to study the chaotic behaviour of the rolling motion of ships, Equation (26) is solved by the LM-NNs to study the influence of variation on maximum slope . Figure 9a shows the frequency spectrum diagram of the motion. It can be observed that increasing the value of causes an increase in the rolling angle of the ship. The system’s dispersion phenomena become obvious, and the rolling angle of the ship’s motion increases correspondingly. Figure 9a analyzes the chaotic behaviour of the rolling motion of ships.
Figure 6
Comparison of approximate solutions with the numerical solver (RK-4), HPM, and OHAM for different examples of the rolling motion of ships.
Table 2
Approximate solutions obtained by the LM-NN algorithm for different examples of the rolling motion of ships in random beam seas.
Example 1
Example 2
Example 3
Case I
Case II
Case III
Case I
Case II
t
MHPM
Anaytical
LM-NN’s
OHAM
LM-NN’s
0
0.2
0.2
0.2
0.2
0.2
0.2
0.2
1
1
3
−0.166120
−0.191740
−0.191730
0.176480
0.176568
0.109021
0.118817
−0.338480
−0.334040
6
0.184868
0.174917
0.174914
−0.142790
−0.136060
−0.075050
−0.061160
−0.941280
−0.945690
9
−0.144550
−0.150800
−0.150820
−0.205370
−0.209320
−0.196250
−0.189810
0.775350
0.737937
12
0.157559
0.120891
0.120810
−0.191980
−0.190840
−0.137690
−0.163790
0.798647
0.767593
15
−0.112290
−0.086840
−0.086850
0.097787
0.091824
0.050338
−0.003150
−0.931210
−0.932550
18
0.121196
0.050406
0.050406
0.210881
0.210487
0.188166
0.160140
−0.398350
−0.395290
21
−0.072730
−0.013330
−0.013320
0.202523
0.207454
0.160958
0.191669
0.999319
0.999335
24
0.079358
−0.022720
−0.022720
−0.050090
−0.050840
−0.027350
0.067115
−0.27570
−0.267520
27
−0.029550
0.056298
0.056296
−0.210560
−0.203030
−0.179030
−0.113730
−0.950850
−0.957320
30
0.035768
−0.086160
−0.086160
−0.211550
−0.221450
−0.175970
−0.199900
0.749124
0.705858
Table 3
Results of velocity and acceleration for different examples of the rolling motion of ships.
Example 1
Example 2
Example 3
Case I
Case II
Case III
Case I
Case II
t
x˙(t)
x¨(t)
x˙(t)
x¨(t)
x˙(t)
x¨(t)
x˙(t)
x¨(t)
x˙(t)
x¨(t)
x˙(t)
x¨(t)
3
−0.04120
0.17996
−0.05802
−0.05804
−0.05705
−0.05641
−0.04287
−0.00438
−0.05052
−0.01202
−0.78374
0.79843
9
−0.11206
0.14617
0.00643
−0.00788
0.00253
−0.00484
0.02417
0.02742
−0.01958
0.01839
0.37855
−0.36528
18
0.17082
−0.05193
−0.00528
−0.00236
0.00324
−0.00228
−0.03384
−0.02131
0.03741
−0.01583
0.72057
0.74845
27
−0.16067
−0.05433
−0.00085
0.01201
−0.00809
0.00652
0.02764
0.01857
−0.05169
0.01152
0.13380
0.80846
Figure 7
Plots of velocity and acceleration for different cases of the cubic damping motion of ships in random beam seas.
Figure 8
Roll angle decay curves for each example.
Figure 9
(a) Demonstrates the influence of variations in on the rolling motion of ships. (b) Phase-space diagram of against for different values of the maximum slope.
The design scheme is exploited to determine the fitting of approximate solutions, with the reference date set generated from the numerical solver using the RK-4 method. Curve fitting of the obtained solutions by LM-NNs for each example, with reference data of 301 points from 0 to 30, is shown in Figure 10. The performance of the objective function in terms of MSE to obtain best fitting is depicted in Figure 11. The best validated performance of MSE for different examples are , , , , , and , respectively. Figure 12 represents the absolute errors between the reference solution and the approximated solution by the LM-NN algorithm. It can be seen that the AE for different examples lies at around to , to , to , to , to , and to , respectively. These plots show the convergence, precision, and accuracy of LM-NNs for obtaining solutions to the mathematical model for the cubic damping of the rolling motion of ships.
Figure 10
Analysis of the fitness plot by the LM-NN algorithm for different examples.
Figure 11
Studies based on the performance of MSE by the design scheme, for multiple examples.
Figure 12
Error histograms, representing absolute errors between the reference solution and the approximated solution for different examples of the rolling motion of ships in random beam seas.
Regression values for each example are illustrated in Figure 13 and Figure 14. The correlation investigation was applied to study the regression analysis. The figures and Table 4 demonstrate that the value of “R” lies close to one, which reflects the perfect modeling of the solutions by the LM-NN algorithm. Figure 15 shows that values of the gradient and step size of mu for each example lies at around 9.9599 , 9.5875 , , , , and , with , , , , , and , respectively. Finally, all calculations and evaluations for this research were performed on an HP laptop EliteBook 840 G2 with intel(R) Core (TM) i5-5300 CPU @ 2.30 GHz, 8.00 GB RAM, 64 bit operating in Microsoft Windows 10 Education edition, running an R2018a version of MATLAB. The time taken by the CPU to solve such complex problems by the LM-NN algorithm are shown in Table 4.
Figure 13
Regression analysis of Examples 1 and 2.
Figure 14
Regression analysis of Example 3.
Table 4
Statistical analysis of the performance measures, including MSE, Gradient, mu, number of iterations, and time taken by the system to calculate the results.
Mean Square Error
Example
Case
Hidden Neurons
Training
Testing
Validation
Gradient
Mu
Epochs
Regression
Time (s)
1
30
3.98×10−9
1.66×10−8
4.22×10−9
9.96×10−8
1.00×10−10
103
1
<1 s
2
I
30
1.49×10−9
4.48×10−9
4.07×10−9
9.59×10−8
1.00×10−11
102
1
<1 s
2
II
30
1.56×10−9
2.95×10−9
3.54×10−9
9.69×10−8
1.00×10−11
142
1
<1 s
2
III
30
9.15×10−10
1.04×10−9
2.42×10−9
9.99×10−8
1.00×10−11
66
1
<1 s
3
I
30
1.02×10−10
5.80×10−10
6.57×10−11
9.16×10−8
1.00×10−12
70
1
<1 s
3
II
30
9.08×10−9
1.10×10−8
1.42×10−8
6.35×10−7
1.00×10−9
1000
1
1 s
Figure 15
Training state of the design scheme for all examples of the rolling motion.
6. Conclusions
This paper analyzes a mathematical model of the rolling motion of ships with nonlinear damping in random beam seas. To study the roll motion of ships under the effect of various forces and parameters, including angular frequency, strength of the nonlinearity coefficient, damping coefficient, viscous damping coefficients, and amplitude, we developed an intelligent soft computing technique based on artificial neural networks. A novel computing paradigm with a two-layer structure, the Levenberg-Marquardt (LM) algorithm and neural networks were utilized to calculate the approximate solution to the mathematical model by using a data set generated by numerical solvers such as the Runge–Kutta method or Adam’s method. Reference solutions of 70%, 15%, and 15% were utilized by the LM-NNs for the training, validation, and testing of the numerical examples. The results obtained by the proposed LM-NN algorithm were compared with those of the homotopy perturbation method (HPM), the Runge–Kutta method (RK-4), and the optimal homotopy analysis method (OHAM). Furthermore, to study the chaotic behavior of the rolling motion of ships, the mathematical model was solved by the LM-NNs to study the influence of variation on maximum slope . The results demonstrate that increasing the value of causes an increase in the rolling angle of the ship. The system’s dispersion phenomena become apparent, and the rolling angle of the ship’s motion increases correspondingly. The technique’s performance is disclosed in terms of mean square error (MSE), regression , error histograms, and performance evaluation. Extensive graphical and statistical results show the technique’s accuracy, precision, and robustness.In the future, the designed scheme can be used to implement the solving of partial and fractional differential equations representing real-world problems.