Preprint
Article

This version is not peer-reviewed.

Ship Heading Controller Design Based on Neural Networks

Submitted:

16 December 2024

Posted:

16 December 2024

You are already at the latest version

Abstract

The ship steering control to yaw motions of the marine vessels is a very frustrating assignment. Thus, this article presents the design of ship heading control system based on radial basis function neural (RBFNN) networks. The controller employs error signal and respective derivative as inputs to the RBFNN. Backward difference approximation techniques are employed to compute the error signal. Simulation results demonstrate how the control system regulates the ship heading and shows the response characteristics of the controller. The results obtained prove that the controller can perform well compared to other methods.

Keywords: 
;  ;  ;  

1. Introduction

Currently, control of ship heading has gained substantial awareness. Prodigious efforts have been dedicated to this area and remarkable outcomes have been achieved in ship autopilot design using numerous control approaches such as model reference and feedback linearization, backstepping control, fuzzy logic, sliding mode control, artificial neural networks, optimal control, adaptive control techniques and many more.
In 1911, the first vessel with automatic steering system was presented by Sperry [1]; this was followed by the proportional integral derivative (PID) based ship autopilot system proposed by Minorski in 1922 [2]. The objective of the designed autopilot systems was for course-keeping control of marine vessels. Gyoungwoo and others proposed algorithms to control a moving ship during harbor entrance [3].
A nonlinear controller design for ship autopilot based on the sliding mode control technique was proposed by Tomera [4]. The study in [4] showed that the sliding mode controller tracks better the ship’s heading irrespective of the existence of waves than the proportional derivative (PD) controller. Many dissimilar ship steering controllers have been researched basing on modern control concepts to improve the heading control.
For instance, the blend of backstepping and genetic algorithms has been applied in the design of adaptive controller for ship heading control [5]. In 2013, Perera and Soares presented an input/output linearization method by using Lyapunov and Hurwitz technique for of marine vessel steering system [6].
However, the shortcoming of a model-based technique was that the explicit knowledge dynamics are essential to be acknowledged. In recent times, to overthrow the shortcoming, Liu and others in [7] proposed adaptive fuzzy logic controller to recompense the ship navigation problems with uncertain ship’s dynamics.
Owing to the robust approximation ability, fuzzy logic system was employed to estimate unidentified nonlinear uncertainties and stimulated the advancement in ship motion control systems.
In this regard, Yang and others designed novel robust adaptive fuzzy control algorithms basing on small – gain and backstepping method [8]. Moreover, minimal learning parameter (MLP) methodology was used to lower learning parameters and computational load, which is suitable to be used in applications [9].
The backstepping technique has been used in the design of controllers for nonlinear systems from the time when it was first presented. Further in recent times, adaptive backstepping controller using dynamic surface control (DSC) has been proposed [10]. Nonetheless, the proposed controllers could not take into account the errors that emerged from filters. Providentially, a novel command filtered method was developed by Farrell and others [11].
The usage of artificial neural network in ship’s course control systems was also studied by Le [12]. In his paper, Le proposed two-multilayered feed-forward neural network ship’s course control system. The first layer plays the role of ship forward dynamics estimator and the second layer acts as a course controller. Both neural network layers are trained based on quasi-online rule using training data achieved from system’s functional process to handle the varying ship’s dynamics.
The problem for ship navigation control system with the speed loss has been presented 13]. In [13], two approaches are recommended to deal with unknown bounded disturbances for sliding mode controller employed to the surface ship heading control system. In the paper [13], the system uncertainties initiated by speed vicissitudes are treated as internal disturbances, whereas wave moments are treated as external disturbances.
Moreover, many studies have been carried out on this subject topic. Among others few literatures about heading control of ship can be obtained from [14,15,16,17,18,19,20,21,22,23,24]. Motivated by the above studies, a radial basis function neural (RBFNN) networks based controller is proposed for ship heading control. Therefore this paper aims to: presents controller design for the radial basis function neural network and examine response characteristics. Simulations are presented show how RBFNN controller regulates the ship heading. Moreover, this paper is divided into four sections: section one gives background information and literature reviews. Section two presents mathematical model of a ship heading. Section three presents the controller design. Simulations and analysis of the results are given in section four. Lastly, conclusion is given in section five.

2. Mathematical Model of the Ship

Consider a surface ship moving forward along x direction at the speed u and heading angle of ψ, and rudder input angle of δ. Let ψr be the desired heading of the ship which is specified by the pilot. The key objective is to design a controller which guarantees that ψ tracks the heading angle ψr. It is essential to ensure that best heading regulation for the ship is attained since it decreases fuel consumption. Steering performance of the ship is affected by variety of variables. It is well well-known that the ship can navigate at different speeds. At very low speed the rudder becomes less operative. Generally, a ship weighs differently on dissimilar journeys such that weighty ships turn lower. When the ship’s side is hit by wind its heading control can be affected. Similarly, ocean currents affect ship steering and hence the ship steering sensor provides the noisy measurement. Therefore, the rudder will only move between –80 and +80 degrees and this can affect the capability to steer the ship. The ship heading control problem is shown in Figure 1 below.
In order to understudy performance of a control system, a computer installed with relevant software is used to simulate the controller. To accomplish this, MATLAB codes are developed using nonlinear ship model. Usually, ship’s dynamics are derived using Newton’s laws of motion to the vessel. For very large ships, the motion in a vertical plane is disregarded for the reason that the bouncing effects of ship are minimal. Therefore the motion of ship at sea is described using coordinates fixed to the ship [25] as presented in Figure 1 above. Hence, the simplest mathematical model of the ship’s motion at sea is provided as:
ψ ( t ) = 1 τ 1 + 1 τ 2 ψ ¨ ( t ) + 1 τ 1 τ 2 ψ ˙ ( t ) = K τ 1 τ 2 τ 3 δ ˙ ( t ) + δ ( t )
where ψ and δ are the heading and rudder angles respectively. If initial conditions are set to zero, (1) becomes:
ψ ( s ) δ ( s ) = K s τ 3 + 1 s s τ 1 + 1 s τ 2 + 1
where τ1, τ2, τ3 and K are elements based on the vessel’s constant forward velocity u and length l. Principally:
K = K 0 u l
τ i = τ i 0 l u ; i = 1 , 2 , 3
Thus, for a heavy ship, τ10 = −16.91, τ20 = 0.45, τ30 = 1.43, K0 = 5.88 and l = 350m [25]. For a light ship, τ10 = −2.88, τ20 = 0.38, τ30 = 1.07, K0 = 0.83. In this paper, we use ballast conditions to simulate the ship’s performance. Similarly, we put an assumption that nominally the ship is cruising in x direction at velocity u = 5 m/s.
Normally in navigation, the vessel often creates very slight deviation from straight-line track. Hence, the (1) was derived by linearization of the equations of motion about δ = 0. Thus, the rudder angle must not surpass about 5°; or else the model will become imprecise. In this paper, we employ a model suitable for rudder angles greater than 5°; henceforth, this paper applies the model presented in [26]. The protracted model is given as:
ψ ( t ) = 1 τ 1 + 1 τ 2 ψ ¨ ( t ) + 1 τ 1 τ 2 H ( ψ ˙ ( t ) ) = K τ 1 τ 2 τ 3 δ ˙ ( t ) + δ ( t )
where H ( ψ ˙ ) is a function of ψ ˙ ( t ) . The value of H ( ψ ˙ ) is established from the correlation between δ and ψ ˙ such that ψ = ψ ¨ = δ ˙ = 0 . According the spiral test experiment H ( ψ ˙ ) is estimated is as:
H ( ψ ˙ ) = a ¯ ψ ˙ 3 + b ¯ ψ ˙
where a ¯ and b ¯ are constants and the value of a ¯ > 0 . Then, we select a ¯ = b ¯ = 1 . Similarly, it is considered that the highest aberration of the rudder angle is 80° or 80π/180 radians.

3. Design of Radial Basis Function Neural Networks Controller

This section presents the design of the RBFNN controller for ship heading regulation. The radial basis function neural network model relies on biological systems. The Radial Basis Function Neural Networks (RBFNN) contains inputs x i , i = 1 , 2 , 3 , . . . , N and the output is y = F r b f n ( x ) where F r b f n ( x ) denotes the process by the entire RBFNN. Suppose that x = [ x 1 , x 2 , ... , x N ] T . The input to the i t h receptive field unit is x , and its output is represented by R i ( x ) . The receptive field unit has strength which is represented by b i . Suppose that there are N R receptive field units.
y = F r b f n ( x , θ ) = i = 1 N R b i R i ( x )
Equation (7) is the output of the RBFNN, and θ holds parameters of the b i and probably the receptive field units parameters. Also, there is another possibility how to calculate the output of the RBFNN. For example, rather than calculating the sum as in (7), thus the weighted average is calculated as follows:
y = F r b f n ( x , θ ) = i = 1 N R b i R i ( x ) i = 1 N R R i ( x )
The model for Radial basis function neural network is presented in Figure 2 below:
The error e and its derivative are used as input to the RBFNN. Therefore, we have:
e = ψ r ψ e ˙ = ψ ˙ r ψ ˙
Then, employing backward difference approximation c ( k T ) on (9) we have:
e ˙ = e ( k T ) e ( k T T ) T = c ( k T )
where T is the sampling period and k is the index for time step. Nonetheless, in this paper we employ k instead of k T as the argument for the signals. Now, the RBFNN for the ship is denoted as:
δ ( k ) = F r b f n ( e ( k ) , c ( k ) )
Thus, the RBFNN is constructed by using (10) with inputs n = 2 , and N R = 121 , therefore we choose 121 strengths b i , i = 1 , 2 , 3 , ... , 121 . For the R i ( e ( k ) ) , c ( k ) ) we utilize (7) below to create uniform grid for the c i centers, i = 1 , 2 , 3 , ... , 121 . To choose grid points, we make an assumption that e ( k ) lies between -90 and 90, i.e. e ( k ) 90 , 90 .
R i ( x ) = exp x c i 2 σ 2
where c i = c 1 i , c 2 i , ... , c n i T , σ i is the scalar value, and if z is a vector, then z = z T z . In case n = 1 , c 1 = c 1 1 = 2 , and σ 1 = 0.1 . Through simulation of the ship model, the turning rate of movement is always so that c ( k ) 0.01 , 0.01 . Thus we make use of the assumption to support the design selections. In designing of a RBFNN for ship steering problem, we require to select b i = 1 , 2 , 3 , ... , 121 parameters to form the mapping in the suitable way.

4. Simulation Study

In this section, simulation and analysis of response characteristics are presented. The simulations results indicates how the controller regulates the ship heading. To accomplish this, firstly the 3rd order nonlinear differential equations of the ship are converted into 1st order differential equations; thus, assuming
a = 1 τ 1 + 1 τ 2 , b = 1 τ 1 τ 2 , c = K τ 3 τ 1 τ 2 , d = K τ 1 τ 2
Hence, the ship model can be rewritten as:
x ˙ ( t ) = F ( x ( t ) , δ ( t ) ) y ( t ) = G ( x ( t ) , δ ( t ) )
where F = F 1 , F 2 , F 3 T and x ( t ) = x 1 ( t ) , x 2 ( t ) , x 3 ( t ) T are used in simulation codes. Then, x i is picked such that F i relies only on x i and δ for i = 1 , 2 , 3 . Thus;
ψ ( t ) = a ψ ¨ ( t ) b H ( ψ ˙ ( t ) ) = c δ ˙ ( t ) + d δ ( t )
Then choosing x ˙ 3 ( t ) = ψ ( t ) c δ ˙ ( t ) so that F 3 does not rely on c δ ˙ ( t ) and x 3 ( t ) = ψ ¨ ( t ) c δ ( t ) . Choosing x ˙ 2 ( t ) = ψ ¨ ( t ) such that x 2 ( t ) = ψ ˙ ( t ) . Lastly, we choose x 1 ( t ) = ψ which gives
x ˙ 1 ( t ) = x 2 ( t ) = F 1 ( x ( t ) , d δ ( t ) ) x ˙ 2 ( t ) = x 3 ( t ) + d δ ( t ) = F 2 ( x ( t ) , d δ ( t ) ) x ˙ 3 ( t ) = a ψ ¨ ( t ) b H ψ ˙ ( t ) + d δ ( t )
But ψ ¨ ( t ) = x 3 ( t ) + d δ ( t ) ) , ψ ˙ ( t ) = x 2 ( t ) , H ( x 2 ) = x 2 3 ( t ) + x 2 ( t ) thus
x ˙ 3 ( t ) = a ( x 3 ( t ) + d δ ( t ) ) b ( x 2 3 ( t ) + x 2 ( t ) ) + d δ ( t ) = F 3 ( x ( t ) , δ ( t ) ) Similarly, taking ψ = G ( x , ψ r ) = x 1 . It suggests appropriate equations for simulations. Subsequently, assuming that the initial conditions be set to ψ ( 0 ) = ψ ˙ ( 0 ) = ψ ¨ ( 0 ) = 0 . This suggests that x 1 ( 0 ) = x 2 ( 0 ) = 0 and x 3 ( 0 ) = ψ ¨ ( 0 ) c δ ( 0 ) or x 3 ( 0 ) = c δ ( 0 ) .For a vessel maneuvering problem, let us choose integration step size as w = 1 second and α = 10 so that T = αw = 10 seconds. The controller is simulated with a sampling period of T = 10 seconds such that a new plant input is computed every 10 seconds and used to the rudder.
If nominal conditions are used, for heavy ship, no sensor noise, no wind, and a speed maintained to 5m/s, a closed-loop responses presented in Figure 4 and Figure 5 are obtained. These results are based on the RBFNN proposed in Figure 3 of section three above. Thus, figure 4 shows that the ship’s heading ψ responds promptly, whereas some overshoots appears past the preferred value, then the response goes back to the appropriate value comparatively rapidly.
Subsequently, the effects of wind disturbances on the ship are considered. Based on this situation, the simulations result of response in figure 6 is obtained. From Figure 6, it has been noted that the wind affects the capability of the controller to attain the best steady-state regulation results of ship heading.
Subsequently, the influence of the speed change on capability to maneuver the ship is considered. If the speed is decreased to 3m/s, the response in Figure 7 is obtained. Figure 7, shows that the decrease in speed causes much more overshoots of the response because at this time the rudder is not effective to influence the heading of the ship.
Meanwhile, the noise sensor has small influence on the response. When change in weight occur and the ship is full, the response presented in Figure 8 is obtained. Note that there are more overshoot occurs than for nominal conditions. The reason being that, a non-heavy ship is easier to maneuver and thus the actions taken are excessively extreme and results into overshoot.

5. Conclusions

This article the design of ship heading control system based on radial basis function neural (RBFNN) networks has been presented. The error signal and respective derivative has been used as inputs to the RBFNN. Backward difference approximation techniques have been employed to compute the error signal. Simulations were carried out and the results obtained demonstrate how the control system regulates the ship heading and shows the response characteristics of the controller. The results obtained prove that the controller can perform well compared to other methods.

Author Contributions

W.E.N. and M.A.M. conceptualized, designed the RBFNN controller, ran the simulation, analyzed the results, and wrote the manuscript. P.T.N. visualized and validated the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

I would like to Specially Thank Dar es Salaam Maritime Institute for providing facilities to accomplish of this project.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Sperry, E.A. Automatic steering. Trans. Soc. Nav. Archit. Mar. Eng. 1992, 30, 53–61. [Google Scholar]
  2. Minorski, N. Directional stability of automatically steered bodies. J. Am. Soc. Nav. Eng. 1922, 34, 280–309. [Google Scholar] [CrossRef]
  3. Gyoungwoo, L.S. , Sang-Hyun, K. Algorithms to Control the Moving ship During Harbor Entry. Appl. Math. Mod. 2009, 33, 2474–2490. [Google Scholar]
  4. Tomera, M. Nonlinear Controller Design of a Ship Autopilot. Intl. J. Appl. Math. Comp. Sci. 2010, 20, 271–280. [Google Scholar] [CrossRef]
  5. Witkowska, A. , Tomera, M., Smierzchalski, R. A backstepping approach to ship heading control. Intl. J. Appl. Math. Comp. Sci., 2007, 17, 73–85. [Google Scholar] [CrossRef]
  6. Perera, L.P. , Soares, G. Lyapunov and Hurwitz Based Controls for Input-Output Linearization Applied to Nonlinear Vessel Steering. Ocean Eng. 2013, 66, 58–68. [Google Scholar] [CrossRef]
  7. Liu, C. , Li, T.S., Chen, N.X. Adaptive fuzzy control design of ship’s autopilot with rudder dynamics. ICIC Exp. Lett. 2011, 5, 767–773. [Google Scholar]
  8. Yang, Y. , Feng, G., Ren, J. A combined backstepping and small-gain approach to robust adaptive fuzzy control for strict-feedback nonlinear systems. IEEE Trans. Sys. Man. Cyber. Part A: Systems and Humans 2004, 34, 406–420. [Google Scholar] [CrossRef]
  9. Li, T. , Li, R., Li, J. Decentralized adaptive neural control of nonlinear interconnected large-scale systems with unknown time delays and input saturation. Neurocomputting 2011, 4, 2277–2283. [Google Scholar] [CrossRef]
  10. Li, T.S. , Wang, D. , Li, W. A novel adaptive NN control for a class of strict feedback nonlinear systems. In Proceedings of American Control Conference, St. Louis, MO, USA, 10-12 June 2009. [Google Scholar]
  11. Farrell, J.A. , Polycarpou, M. Sharma, M. Dong, W. Command filtered backstepping. IEEE Trans. Aut. Contr. 2009, 54, 1391–1395. [Google Scholar] [CrossRef]
  12. Le, T.T. Ship heading control system using neural network. J. Mar. Sci. Technol. 2021, 26, 963–972. [Google Scholar] [CrossRef]
  13. Liu, Z. , Lu, X., Gao, D. Ship Heading Control with Speed Keeping via a Nonlinear Disturbance Observer. The J. Nav. 2019, 72, 1–18. [Google Scholar]
  14. Liu, Y. , Liu, S., Wang, N. Fully-tuned fuzzy neural network based robust adaptive tracking control of unmanned underwater vehicle with thruster dynamics. Neurocomputting 2016, 196, 1–13. [Google Scholar] [CrossRef]
  15. Jia, F. , & Chen, M. (2019). Design of A Nonlinear Heading Control System for Ocean Going Ships Based on Backstepping Technique. J. Coastal Res. 2019, 94, 515–519. [Google Scholar]
  16. Guan, W. , Zhou, H., Zuozing, S. et al. Ship steering control based on quantum neural network. Hindawi Complexity.
  17. Wang, R. , Deng, H., Miao, K. et al. Backstepping based integral sliding mode control with neural network for ship steering control. MATEC Web Conf 2017.
  18. Wang, R. , Li, D., Miao, K. Optimized radial basis function neural network based intelligent control algorithm of unmanned surface vehicles. J. Mar. Sci Eng. 2020, 8, 210. [Google Scholar] [CrossRef]
  19. Haouari, F. , Gouri, R., Bali, N. et al. Performance optimization of ship course via artificial neural network and command filtered CDM-Backstepping controller. Technol. Eng. 2019, 16, 5–10. [Google Scholar]
  20. Zhang, G. , Chu, S., Zhang, W. Composite neural learning fault-tolerant control for underactuated vehicles with event-triggered input. IEEE Trans. Cybern. 2020, 51, 2327–2338. [Google Scholar] [CrossRef]
  21. Zhang, G. , Yao, M., Junhao, X., Zhang, W. Robust neural event-triggered control for dynamic positioning ships with actuator faults. Ocean Eng, 2020; 207. [Google Scholar]
  22. Wang, W. , Liu, C. An efficient ship autopilot design using observer based model predictive control. J. Eng. Mar. Environ. 2021, 235, 203–212. [Google Scholar]
  23. Wang, Y. , Chai, S., Nguyen, H.D. Experimental and numerical study of ship autopilot using Extended Kalman Filter trained neural networks for surface vessels. Int. J. Naval Arch. Ocean Eng. 2020, 12, 314–324. [Google Scholar] [CrossRef]
  24. Wang, Y. Intelligent control for surface vessels based on Kalman Filter trained Radian Basic Function Neural Networks, University of Tasmania.
  25. ˚Astrom, K.J., Wittenmark, B. Adaptive Control. Addison-Wesley, Reading, MA, 2008.
  26. Liu, Z. , Lu, X. , & Gao, D. Ship Heading Control with Speed Keeping via a Nonlinear Disturbance Observer. J. Nav. 2019, 72, 1035–1052. [Google Scholar]
Figure 1. Ship maneuvering problem.
Figure 1. Ship maneuvering problem.
Preprints 143062 g001
Figure 2. Model for radial basis function neural network.
Figure 2. Model for radial basis function neural network.
Preprints 143062 g002
Figure 3. Radial Bias Function Neural Network Controller.
Figure 3. Radial Bias Function Neural Network Controller.
Preprints 143062 g003
Figure 4. A closed-loop response of the RBFNN for ship steering in absence of environmental disturbances.
Figure 4. A closed-loop response of the RBFNN for ship steering in absence of environmental disturbances.
Preprints 143062 g004
Figure 5. A closed-loop response of the RBFNN for ship heading error steering in absence of environmental disturbances.
Figure 5. A closed-loop response of the RBFNN for ship heading error steering in absence of environmental disturbances.
Preprints 143062 g005
Figure 6. A closed-loop response of the RBFNN for ship steering in presence of wind disturbance.
Figure 6. A closed-loop response of the RBFNN for ship steering in presence of wind disturbance.
Preprints 143062 g006
Figure 7. A closed-loop response of RBFNN for ship steering at a speed of 3m/s.
Figure 7. A closed-loop response of RBFNN for ship steering at a speed of 3m/s.
Preprints 143062 g007
Figure 8. A closed-loop response of RBFNN for the ship steering at full rather than ballast conditions.
Figure 8. A closed-loop response of RBFNN for the ship steering at full rather than ballast conditions.
Preprints 143062 g008
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2025 MDPI (Basel, Switzerland) unless otherwise stated