A Fuzzy Track-Keeping Autopilot For Ship Steering PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/233497068

A fuzzy track-keeping autopilot for ship steering

Article  in  Proceedings of the Institute of Marine Engineering, Science, and Technology. Part A, Journal of marine engineering and technology · March 2003
DOI: 10.1080/20464177.2003.11020163

CITATIONS READS

13 369

3 authors, including:

Edin Omerdic Zoran Vukić


University of Limerick University of Zagreb
88 PUBLICATIONS   559 CITATIONS    128 PUBLICATIONS   701 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Bumpt-In-The-wire (BITW) security solution for IoTs suing FPGA View project

CADDY - Cognitive Autonomous Diving Buddy View project

All content following this page was uploaded by Zoran Vukić on 20 November 2014.

The user has requested enhancement of the downloaded file.


A fuzzy track-keeping autopilot for ship steering

A fuzzy track-keeping autopilot for


ship steering

E Omerdic and GN Roberts, University of Wales College, New-


port, UK, and Z Vukic, University of Zagreb, Faculty of Electrical
Engineering and Computing, Zagreb, Croatia

In this paper a non-linear fuzzy autopilot for ship track-keeping is presented. The proposed
autopilot has four inputs (actual and desired heading, rate of change of heading and offset
from the desired path) and one output (command rudder angle). The track-keeping
problem is decomposed into two subtasks: (i) follow the desired heading, and (ii) bring the
ship onto the desired path and keep tracking. Internally, the autopilot consists of two
autopilots that fulfil these tasks simultaneously. The proposed control scheme has been
verified using a non-linear model of a Mariner-class vessel and steering mechanism under
the influence of wave and current disturbances. Results presented show how such a control
strategy enables improved tracking performance.

INTRODUCTION

T
he pioneering work of Sperry1 and Minorski2 is consid-
AUTHORS' BIOGRAPHIES
ered as the important milestones in the development of
Edin Omerdic graduated from the University of Zagreb, Faculty
automatic steering for ships. Although the early autopilots
of Electrical Engineering and Computing, Croatia in 1997, and
were very simple devices, in which heading error pro-
received the MS degree in electrical engineering (automatic
duced a corrective signal for the steering mechanism (ie propor-
control) from the same university in 2001. He is currently a full-
tional control), experience with such devices indicated that due
time research student in the Mechatronics Research Centre, at
to the ship’s enhanced course-keeping qualities there was a
the University of Wales College, Newport. UK. His thesis concerns
reduction in propulsion losses and a consequent saving in fuel
the development of fault detection and data handling systems for
costs. Further developments included the addition of derivative
underwater vehicles. This research programme is being undertaken
of heading error to improve transient response, and integral of
as part of the EPSRC IMPROVES project.

Geoff Roberts is Professor of Mechatronics and Head of the


Mechatronics Research Centre at the University of Wales College, Zoran Vukic is Professor of Control Engineering at the University
Newport. UK. He has been active in the area of marine control of Zagreb, Faculty of Electrical Engineering and Computing.
systems for many years and has contributed to the development Between 1992 and 1996 he was Head of the Department of
of control strategies for ship steering, rudder roll stabilisation, Control and Computer Engineering in Automation, University of
integrated rudder/fin roll stabilisation and guidance and control of Zagreb. His specific interests have been adaptive control, robust
underwater vehicles. He is presently working on fault detection control, identification, non-linear control, fault tolerant control
and data handling for underwater vehicles, parallel multi mode and reconfigurable control. He is currently working in the area of
controllers for ship stabilisation, and applications of intelligent intelligent and fault tolerant control for marine and underwater
control for guidance and control of land and marine vehicles. He vehicles. He is a Chapter Chair of IEEE Control Systems/Robotics
is immediate past chairman of the IFAC Technical Committee on and Automation Society in Croatia, a member of IEEE Control
Marine Systems and a member of the IFAC Technical Committee Systems society and Oceanic engineering society, and a member
on Mechatronic Systems. of several IFAC Technical Committees.

23
No. A2 Journal of Marine Engineering and Technology
A fuzzy track-keeping autopilot for ship steering

heading error to counteract constant yaw disturbances such as observation of his/her actions, the fuzzy rules may be formulated
crosswinds and tide. from an understanding of the system’s dynamical behaviour. This
Because of their simplicity, reliability and low cost, PID process illustrates the fundamental difference of fuzzy controller
(proportional, integral and derivative) autopilots of this type have design compared with more traditional model-based controller
remained in use for many years. This is despite the widely held designs. Whereas the latter is concerned with designs to meet
view that the steering characteristics of a PID controller were performance specifications, ie damping, speed of response, steady-
unsatisfactory, mainly due to the necessity for ‘user adjustment’ state error, etc, fuzzy controller design is focused on predicting
to accommodate changes in ship loading conditions and the system behaviour in response to specific inputs, as postulated by
operating environment. The huge increase in world fuel costs in Sperry1 and Minorski2 following their observations of the helms-
the early 70s, however, led to the development and application of man. What this means is that, often, fuzzy approaches are
more advanced control methods to meet the urgent need to application specific and the final fuzzy controller is often arrived
minimise transportation costs. The majority of researchers at that at after considerable ‘trial and error’ where the distribution and
time favoured an optimal control approach and a number of shape of the fuzzy sets used are ‘tuned’ in order to achieve the
solutions were proposed, eg Broom and Lambert3, Clarke4, and desired performance. However it should be noted that fuzzy
Kabeti and Byrne5. Although using these approaches it was controllers are intrinsically robust, in the sense that through the
possible to optimise performance to meet specific objectives, their generalisation property they can accommodate new situations (ie
main failing was that – like their PID counterparts – they were small changes in system parameters). They are also non-linear, in
largely unable to cope with the significant non-linearities encoun- that they incorporate (map) the functional relationship between
tered. Other approaches, which gained some limited popularity input and output, which is a non-linear relationship.
at the same time, were autopilots based upon adaptive methods It was this analysis, together with the increased activity in
such as model-reference6 and self-tuning.7 More recently, re- intelligent systems, which led to the work described in this paper
searchers have attempted to combine the attributes of adaptive being undertaken. The remainder of the paper is organised as
and optimal control, designing ‘robust’ autopilots using the H∞ follows: the evolution of the proposed autopilot from the initial
methodology.8 However, despite the attractiveness of these more research is briefly described before the mathematical model is
rigorous approaches very few designs have resulted in actual introduced. Then the course-keeping and track-keeping prob-
implementation. lems are addressed. Finally, simulation results are presented,
This lack of real success led many researchers to consider followed by some conclusions.
whether the use of intelligent paradigms such as fuzzy logic and
artificial neural networks would be suitable for design or as the Evolution of the fuzzy autopilot
implemented technology for ship’s autopilots. In this respect Initially the research described herein concentrated on the design
fuzzy logic, with its origins in human reasoning, was considered of a simple course-keeping system where a fuzzy autopilot with
as a most suitable candidate having the potential to replicate two inputs (heading error and rate of change of heading) was used
experienced helmsmen thereby producing a robust and non- to find control action (command rudder angle). Every input had
linear autopilot. seven membership functions and the total number of rules was 72,
The first autopilot designed with fuzzy set theory was pre- ie 49. The control surface of the proposed fuzzy autopilot was a
sented by Amerongen et al.9 The proposed autopilot used two non-linear function of the two input variables, symmetrical to a
different inputs with five linguistic variables and a fixed rule base. non-principal diagonal of the rule table. The proposed control
It was shown that compared to a PID controller, the proposed scheme gave better performance compared to PID autopilot, and
fuzzy autopilot gave a significantly enhanced performance in a command signals generated by fuzzy autopilot were similar to
noisy environment with fewer rudder calls. However, the tuning commands generated by an experience helmsman. This latter
of the fuzzy controller parameters was based on an extended trial point is important because it demonstrated how the fuzzy control-
and error procedure. This pioneering work was quickly followed lers encapsulate and replicate the actions of skilled operators,
by complementary investigations. A different application of fuzzy which in this application is the helmsman.
set theory was pursued by Sutton10 where fuzzy logic was used to The next stage of the research used this system as a basic
design a cognitive model of a helmsman, and it was suggested that building block for developing the track-keeping system. In Vukic
the fuzzy model so produced could be used in the design of et al15, the first version of fuzzy autopilot for track-keeping was
intelligent autopilots based on fuzzy set theory. However, in order proposed. The track-keeping problem, defined as tracking the
to guarantee acceptable performances in different operating con- path specified by way points, has been simplified to course-
ditions, the proposed controller needed further adjustment. The tracking problem using appropriate transformation. In this way
manual setting of the controller parameters was enhanced with the track-keeping problem was solved using the fuzzy course-
the introduction of automatic adaptation and learning mecha- keeping autopilot. This solution had a good performance if sea
nisms. One of the first examples in this direction was the self- current disturbance did not act on the ship during manoeuvres.
organising fuzzy autopilot proposed in Sutton and Jess.11 The first It was found that, in the presence of the current disturbance, the
commercially available fuzzy autopilot, designed with the latter ship would follow the desired course with some offset from the
approach, was presented by Polkinghorne et al.12,13,14 desired path, depending on the direction and intensity of current.
One of the main advantages of fuzzy logic autopilots is that the One of the possibilities for improving the performance sug-
rules may be formulated without a precise definition of the ship’s gested in Vukic et al15 was introducing an additional input (offset
dynamics. The control actions are normally decided such that the from the desired path) to enhance the information presented to
required rudder demand is determined from knowledge of the the autopilot. In Vukic et al16 an improved fuzzy autopilot for
expected ship’s response to the input. Although this process is track-keeping was proposed, which uses three inputs (heading
best achieved through consultation with the helmsman or by error, rate of change of heading and offset from the desired path)

24 Journal of Marine Engineering and Technology No. A2


A fuzzy track-keeping autopilot for ship steering

in order to find the appropriate command rudder angle. The main and direction of sea current. The outputs are yaw angle, yaw
idea was in shifting the control surface of the previously developed velocity and position in x and y directions.
two-input fuzzy autopilot out of a non-principal diagonal depend-
ing on the value and sign of the offset. This means that if the ship Steering Mechanism
is already on the desired path, the offset is zero and there is no The steering mechanism considered is the ‘two-loop’ electro-
shifting, the standard control surface is optimal and the ship hydraulic steering subsystem, common on many ships. A concep-
would track the desired course specified by the way points. If the tual and equivalent block diagram of the steering mechanism is
ship is not on the desired path, the offset is not zero and the shown in Fig 1. This type of steering mechanism consists of an
control surface is shifted out of the non-principal diagonal, electro-hydraulic servo subsystem with a telemotor and a rudder
proportional to the size and sign of offset. The advantage of this subsystem. It can be seen that the system has two feedback loops:
approach was rejection of the influence of the current disturbance one from the cylinders of the telemotor, and the other from the
on the tracking performance, whilst disadvantages were a loss of hydraulic amplifier. The first loop includes a non-linear element
the transparency of the control decision process and an increase of type ‘relay with dead zone and hysteresis’ (to reduce rudder
in the autopilot’s complexity (number of membership functions activity in the presence of a high frequency component in the
per input was seven, seven and five, so total number of rules was command signal). The second loop contains a non-linear element
245). of type ‘speed limiter’ (to limit rapid changes of rudder motion).
In order to decrease complexity and to make a decision The presence of these non-linear elements makes the design of the
process more understandable, the track-keeping problem is de- autopilot more difficult (see Fig 1).
composed into two subtasks: (i) following the desired heading, Typical values of parameters shown in Fig 1 (b) are:
and (ii) bringing the ship onto desired path and tracking. There- DB = 1° , H = 0.8° , K = 4° / s , PB = 7° and N = 5° / s .
fore, the autopilot for track-keeping, proposed in this paper,
consists internally of two autopilots that fulfil these tasks simul- Disturbances
taneously. Each of these autopilots has a simple structure and There are several disturbances with various effects on the vessel
operates similar to human reasoning. dynamics to be taken into account.15,20 Three classes of distur-
bances can be distinguished:
MATHEMATICAL MODELS • Disturbances which affect the dynamics of the system, eg
Experimenting with a real ship is time-consuming and expensive, the depth of water.
so a dynamic model is essential for simulation purposes and for • Disturbances which cause additional signals in the sys-
investigation of different control algorithms. In order to investi- tem, eg waves.
gate different approaches for design of track-keeping control • Disturbances that corrupt the measurements, eg noise in
systems it is necessary to use a realistic model of the vessel and the position measurements.
disturbances. In this paper the models of a Mariner-class vessel, In this paper the disturbances considered are wind-generated
steering mechanism, wave/current disturbances and Notch filter waves and sea currents.
as in Fossen17, Vukic et al16 and Omerdic18 are used.
Wind-generated waves
Ship dynamics Pierson and Moskowitz21 developed the standard wave spectra
The hydro- and aerodynamics laboratory in Lyngby, Denmark, (PM-spectrum) analysing the wave spectra in the North Atlantic
has performed both planar motion mechanism (PMM) tests and Ocean, (Fossen17, pages 63-65). In order to simulate wave
full-scale steering and manoeuvring predictions for a Mariner- disturbance, it is necessary to approximate the PM-spectrum.
class vessel. The main data and dimensions of the Mariner-class Linear wave model approximations are usually preferred by ship
vessel are given in Table 1, Chislett and Strøm-Tejsen.19 control system engineers, owing to their simplicity. Linear ap-
proximation is obtained by passing of white noise through a linear
Table 1: The main data for the Mariner-class vessel . filter.
The second-order wave transfer function approximation of the
Length overall (Loa) 171.80m PM-spectrum is used in this paper (Fossen17, pages 70-71). This
Length between perpendiculars (Lpp) 160.93m model is written as
()
Kω s
Maximum beam (B) 23.17m h s =
. (1)
2 2
s + 2 ξω 0 s + ω 0
Design draught (T) 8.23m
A linear state-space model can be obtained by transforming
Design displacement (∇) 18 541m3 this expression to the time-domain by:
Design speed (u0) 15 knots = 7.72m/s 2
d y dy dω h
. (2)
2
2
+ 2 ξω 0 + ω 0 y = Kω
dt dt dt
Using results from PMM tests, Fossen has built a non-linear dx
mathematical model for this vessel in MATLAB. The model is Defining 1 = x2 and x 2 = y , the state-space model can
dt
given in Fossen17, Appendix E.1.1, and describes the dynamic be written as:
motion of the ship in a horizontal plane. For the work described
in this paper, the original model was transformed to Simulink S- ⎡ dx1 ⎤
function and augmented with the ability to investigate the influ- ⎢ dt ⎥ ⎡ 0 1 ⎤ ⎡ x1 ⎤ ⎡ 0 ⎤ , (3)
⎢ dx ⎥ = ⎢ 2 ⎥⎢ ⎥ + ⎢ ⎥ω h
ence of external disturbances, for example, sea currents. The
⎢ 2 ⎥ ⎣−ω 0 −2 ξω 0 ⎦ ⎣ x 2 ⎦ ⎣ Kω ⎦
inputs to the model are commanded rudder angle, average speed ⎣ dt ⎦

25
No. A2 Journal of Marine Engineering and Technology
A fuzzy track-keeping autopilot for ship steering

where ω h is a zero-mean white noise process. Due to its simplic- 2. Actual heading Ψ .
ity, this model is useful for control systems design. 3. The rate of change of heading r = dΨ / dt (measured by
The second order Notch filter is used to reject the wave- gyro rate sensor).
induced components from the heading signal. The transfer func- 4. Offset from the desired path d (this input is important for
tion of the Notch filter has a form (Fossen17, pages 226-227): the track-keeping problem; for the course-keeping prob-
2 2 lem this input is equal to zero).
s + 2ζω n s + ω n
hNO s =() ,
(s + ω ) (4) Generally, the command signal δ c , generated by the autopi-
2
n
lot, consists of two components:
where ω n is the natural frequency and ζ is the relative damping • dc1 , generated by two input controller ‘Fuzzy Autopilot
factor of the filter. Since most of the energy in the wave spectrum (Course)’.
is located around the modal frequency of the wave spectrum, the • dc2 , generated by one input controller ‘Autopilot (Off-
natural frequency of the Notch filter should be chosen equal to the set)’.
encounter frequency ω e , that is:
Δ Signal dc1 is intended for course-keeping. Signal dc2 is used for
ωn =ωe. (5) returning the ship to the desired path for the track-keeping
An estimate of the encounter frequency ω e can be computed problem.
from the relation
2
ω0 Fuzzy autopilot (Course)
ωe = ω 0 − U cos β , (6) The preprocessor performs signal conditioning (scaling and
g saturation) of inputs e and r onto standard interval [−3, 3] .
where ω 0 is wave modal frequency, g is the acceleration of After preprocessing, the signals e and r are internally marked
gravity, U is the total speed of ship and β is the angle between as linguistic variables error and errordot inside the autopilot,
the heading and the direction of the wave. The modal frequency and the output is marked as a linguistic variable y . For
ω 0 of the PM-spectrum can be estimated from example, signal e is scaled by gain Ke and then passed
through the saturation block with limits [−3, 3] . Hence, the
g g relationship between error (output of the saturation block)
w 0 = 0.88 = 0.40 (7) and e is
V Hs
where V is the speed of the wind at an elevation of 19.4m and ⎧3, Kee > 3

Hsis the significant wave height. error = ⎨K e e, Kee ≤ 3 . (10)
⎪−3, K e e < −3

Sea current
A two-dimensional current model is used (Fossen17, page 88). The postprocessor performs denormalisation and PI
The earth-fixed current components can be described by two transformation of output y . PI transformation is per-
parameters: average current speed Vc and direction of current γ c . The formed by generating proportional and (limited) integral
body-fixed components can be computed from: components inside the ‘Postprocessing’ block. Summing
( )
uc = Vc cos γ c − ψ these components gives the signal dc 1 , the command
signal for the rudder angle δc in the course-keeping
(8)
vc = Vc sin(γ c − ψ ). problem.
The average current velocity for computer simulations can be Membership functions for inputs error and errordot and
generated by using the first-order Gauss-Markov process (Fossen17, output y are shown in Fig 3(a) and (b), respectively. Fig 3(b)
page 89), described by the following differential equation: displays the control surface of the ‘Fuzzy autopilot (Course)’,
( ) + μ V (t) = ω (t),
dVc t
(9)
while the properties are shown in Table 2.
0 c G
dt Table 2: 'Fuzzy autopilot (Course)' properties.
where ωG t( ) is a zero mean Gaussian white noise sequence and FIS type Mamdani
μ 0 ≥ 0 is a constant. This process must be limited
(V min )
≤ Vc (t ) ≤ Vmax in order to simulate realistic sea currents. # Inputs
# Outputs
2
1
Course-keeping AND method min
A closed-loop control system with fuzzy autopilot for ship course- OR method max
keeping (Fig 2a) was successfully applied in Vukic et al16, and Implication min
Omerdic.18 This structure will serve as a basic scheme for building
Aggregation max
more complex control algorithms.
Defuzzification centroid
Fuzzy autopilot
A fuzzy autopilot has four inputs (see Fig 2(b)):
2
1. Desired heading Ψd (error signal e = Ψd − Ψ is gener- The fuzzy autopilot for course-keeping uses 7 = 49 rules.
ated internally). Table 3 shows these rules in a compact matrix form.

26 Journal of Marine Engineering and Technology No. A2


A fuzzy track-keeping autopilot for ship steering

Table 3: Rule base for the 'Fuzzy autopilot (Course)'


error The distance (offset) d of point S from the desired path P1P2
NB NM NS ZE PS PM PB can be calculated from:
NB NB NB NB NB NM NS ZE
NM NB NB NB NM NS ZE PS [( )( ) (
d = sign x 2 − x1 ⋅ y0 − y1 − x 0 − x1 ⋅ y2 − y1 )( )] ⋅
errordot NS
ZE
NB
NB NM NS
NB NM NS
ZE
ZE
PS
PS PM
PM PB
(y 2 ) ( )
− y1 x 0 + x 2 − x1 y0 + x1 y2 − y1 x 2 (11)
.
(y − y ) + (x )
2 2
PS NM NS ZE PS PM PB PB − x1
2 1 2
PM NS ZE PS PM PB PB PB
PB ZE PS PM PB PB PB PB The sign of d is defined with an angle between vectors PS 1 and
Track-keeping PP
1 2
: if the ship is located on the left (right) side from PP
1 2
, sign is
A closed-loop control system with a fuzzy autopilot for ship track- a plus (minus). In (11) the sign is estimated with a sign function.
keeping is shown in Fig 4, which is the control scheme for course- Inside the fuzzy autopilot offset d is normalised with the ship
keeping, shown in Fig 2, augmented by an additional control-loop length L :
d
with position feedback. η= .
L (12)
Fuzzy autopilot The goal is to bring the ship back from point S and to track
The fuzzy autopilot consists of two autopilots: one is responsible the desired path.
for course-keeping (defined implicitly by way points) and the The difference between course-keeping and track-keeping is
other for minimising the offset from the desired path, ie the visible from Fig 5(b). It is assumed that at t = 0 the ship is located
autopilot is the same as in Fig 2(b), but in this case the fourth at point P1 = (0, 0) (moving with a constant speed in the x -
input d (distance between ship and nominal path) is not equal to direction, ie initial heading is 0o) and the desired course is
zero. This input plays an important role in control process. ψ d 2 = 30° for the course-keeping. The requirement is to change
Generally, the ship trajectory consists of n way points the ship course from the initial value 0° to the new value 30° . For
WP = {P1 , P2 ,..., Pn } with coordinates Pi = ( x i , yi ) . It is assumed track-keeping, it is assumed that the desired path is defined by
that the ship should move along a straight line between adjacent way points P1 = (0, 0) and
way points. In this paper the simplest trajectory, with only two P2 = (3000, −3000 ⋅ tan 30°) = (3000, −1732.1) . In order to
points P1 = ( x1 , y1 ) and P2 = ( x 2 , y2 ) , is considered (see Fig compare course-keeping and track-keeping, the same angle
5(a)). It is assumed that at time t the ship is located at point arg P1P2 = ψ d = ψ d was chosen. It is needed to bring the ship
S = ( x 0 , y0 ) . The desired path is a straight line from P to P2 .
1 2
back to the desired path, ie condition d ≈ 0 should be satisfied,
1

Table 4: Comparison between course-keeping and track-keeping


Course-keeping problems
Problem formulation: Change ship course from 0° to Ψd 2 = 30°
Control goal (
e = ψ d 2 − ψ ⎯t⎯ ⎯→0
→∞ )
Fuzzy autopilot (Course): Status: Active
Inputs: e = ψ d − ψ and r = ψ̇
Output: dc1
Fuzzy autopilot (Offset): Status: Not active
Input: d = 0
Output: dc2 = 0
Command signal: δc = dc1
Track-keeping problem
Problem formulation: Follow the desired path PP defined by way points P1 = (0, 0)
( )
1 2
and P2 = (2000, −1154.7) . ψ d1 = arg PP
1 2 = 30°
Control goal Tracking problem is decomposed in two subtasks:
(
e = ψ d1 − ψ ⎯⎯ ⎯→0,
t →∞ ) (i)
d = distance( Ship, PP 1 2 ) ⎯t⎯ ⎯→0
→∞
(ii)
Fuzzy autopilot (Course): Status: Active
Inputs: e = ψ d − ψ and r = ψ̇
Output: dc1
Fuzzy autopilot (Offset): Status: Active
Input: d
Output: dc2
Command signal: δc = dc1 + dc2

27
No. A2 Journal of Marine Engineering and Technology
A fuzzy track-keeping autopilot for ship steering

and to track the desired path to point P2 , following the desired that the fuzzy autopilot generates signals similar to an experienced
course ψ d1 . Therefore, for the course-keeping problem, the helmsman.
decision about the size of command rudder signal δ c is made Fig 8 displays time response of heading and rudder signals for
using an error signal e = ψd − ψ and a signal r = ψ̇ . However, for two different cases: Ψd = 10° (left) and Ψd = 30° (right). Fig 8 (1)
the track-keeping problem, the decision process is more complex, shows the time responses for the no-disturbances case. It can be
because in addition to signals e and r , another signal d (offset seen that the performance of the proposed autopilot is very good,
from the desired path) plays an important role. A comparison of heading response is without overshoot and command rudder
course-keeping and track-keeping problems is given in Table 4. signals are very similar to those produced by an experienced
Therefore, for track-keeping, the goal is to track the desired course helmsman. The influence of the waves with the modal frequency
ψ d1 (Condition (i)) and to minimise d at the same time (Condition ω 0 = 1 rad / s and the encounter angle β = 30° is demonstrated in
(ii)). In order to satisfy these conditions, signals dc1 (realisation of Fig 8 (2). Here the heading signal, obtained by gyrocompass, is
Condition (i)) and dc2 (realisation of Condition (ii)) are added so that contaminated with wave components and the Notch filter was not
the composite signal dc = dc1 + dc2 should achieve both conditions used to reject them. Control effort is much higher than in the no-
simultaneously. Signal dc1 is already known from course-keeping disturbance case. Filtering of the heading signal Fig 8 (3) gives good
problem. Hence, the problem can be formulated as a question: What performance with acceptable control effort. Although the Notch
is the mathematical form of unknown relationship dc2 = dc2 (η) ? filter introduces some delay into the control loop, demands on
actuator are less than without filtering. Analysing responses in Fig
Autopilot (Offset) 8 and other cases (not shown here) it is concluded that the
This section describes a structure of the Autopilot (Offset). This proposed fuzzy autopilot with fixed parameters has good perform-
autopilot has input d and output dc2 . Analysing Fig 5(b) it can ance over all range of the possible heading demands, ie it is not
be concluded that the sign of signal dc2 depends on the ship needed to tune any of its parameters if desired heading is changed.
position in relation to the desired path: This is not case for the PID autopilot. Experiments similar to those
• If the ship is located on the left side, then d > 0 . It can be shown in Fig 8 were conducted with PID autopilot. PID tuned for
easily verified that a positive command signal produces a positive the case Ψd = 10° could not give good performance for the case
course change. Hence, signal dc2 should have a positive sign, Ψd = 30° and vice versa. Beside that, the best-tuned PID was
because it will produce an increase of the command signal and the inferior to the fuzzy autopilot for the same input reference and the
ship will have a course greater than that desired for some time (for command signals generated by the PID controller were not similar
example, at point A is ψ A > ψ d1 ). In this way the ship will to those produced by an experienced helmsman.
approach the desired path and offset d will decrease. Fig 9(a) shows time responses for track-keeping without
• Because of symmetry, it is easy to draw the conclusion disturbances. It is assumed that at t = 0 the ship is located at point
that, if the ship is located on the right side, then signal dc2 should P1 = (0, 0) and moves with a constant speed in x -direction. The
have negative sign. desired path is defined by way points P1 = (0, 0) and
• If the ship is located on the desired track, ie if d ≈ 0 , then P2 = (3000, −3000 ⋅ tan 30°) = (3000, −1732.1) . The ship’s trajec-
signal dc2 should be equal to zero, ie dc2 ≈ 0 . tory, way points and the desired path are shown on the same plot.
Therefore, the unknown function dc2 = dc2 (η) is a continuous At the beginning of the simulation the ship moves in x -direction
odd function, defined in the first and third quadrant and which and its distance from the desired path temporally increases. The
satisfies condition dc2 (0) = 0 . fuzzy autopilot (Offset) responds to this by generating high signal
()
The unknown odd function dc2 = dc2 η is selected from the dc2 in order to return the ship back to the desired path. Soon the
family of functions F distance achieves maximum and decreases rapidly. At the same
time, the fuzzy autopilot (Course) generates signal dc1 trying to
(
dc2 = K eta tanh sf ⋅ η , ) (13) force the ship to follow the desired heading. When the ship is
returned to the path, signal dc2 vanishes and signal dc1 begins
where K eta > 0 and sf > 0 are scaling factors. Function defined to dominate. Simulations with way points located in all four
by equation (13) satisfies all required conditions. Family F is quadrants were performed and good performance has been
chosen because many different shapes of functions can be gener- achieved in all cases. Influence of the wave disturbances on the
ated with appropriate selection of scaling factors (Fig 6(a) and performance of track-keeping is demonstrated in Fig 9(b). In this
(b)). Optimal values for K eta and sf were obtained by undertak- case the Notch filter was not used to reject wave components in
ing a number of simulations ( K eta = 20 and sf = 4.3 ). the heading signal and control demand on rudder is much higher
than in the no-disturbance case. Better performance and better
SIMULATION RESULTS response is achieved by filtering the heading signal (Fig 9(c)).
The proposed control architecture has been implemented in Control effort is lower and at the same time accuracy is better. The
SIMULINK. Simulations were performed using the non-linear influence of the sea currents is shown in Fig 10(a). In this case,
model of a Mariner-class vessel and the steering mechanism, after the ship reaches the desired path, there is a small offset on
described earlier. In order to demonstrate robustness of the the right side of the path, but soon the ship is returned to the path
proposed autopilot for course-keeping, two different desired and continues sailing with very small tracking error, despite the
headings were chosen – one with a small deviation from the initial presence of the strong sea currents. Fig 10 (b) presents time
heading ( Ψd = 10° ) and the other with a large deviation ( Ψd = 30° ). responses in the case of waves and sea currents. The heading
A course-changing manoeuvre, performed by an expert ship signal, contaminated by the wave components, is not filtered and,
operator (experienced helmsman), is shown in Fig 7 (Amerongen22) simultaneously, strong sea currents act on the ship as is indicated
and can be used for comparison purposes. Later it will be shown on the plot. Similar to the previous case, there is a small overshoot

28 Journal of Marine Engineering and Technology No. A2


A fuzzy track-keeping autopilot for ship steering

on the right side of the path but, in this case, control demands on 6. Amerongen, JV, and Udink Ten Cate, AJ, (1975). Model
the rudder are very high. Better performance and acceptable reference adaptive autopilots for ships, Automatica, Vol.11, pp. 441-
control effort can be obtained by filtering the heading signal, as it 449.
is shown in Fig 10(c). In this case the same disturbances (waves 7. Mort, N, (1983). Autopilot design for surface ship steering
and currents) act on the ship during the manoeuvre, but the fuzzy using self-tuning controller algorithms. PhD Thesis, University of
autopilot performs its task in a satisfactory manner, command Sheffield, UK.
signals are in the acceptable bounds and tracking error is small. 8. Grimble, MJ, Zhang, Y, and Katebi, MR, (1993). H•-based
autopilot design. 10th Ship Control Systems Symposium, Ottawa.
CONCLUSION pp. 2.51-2.56.
This paper described a new fuzzy autopilot for ship track-keeping. 9. Amerongen, JV, Naute Lenke, HR, and Veen der Van, JCT,
The proposed autopilot has four inputs (actual and desired (1977). An autopilot for ships designed by with fuzzy sets. Proc. IFAC
heading, rate of change of heading and offset from the desired Conference on Digital Computer Applications to Process Con-
path) and one output (command rudder angle). Track-keeping trol. The Hague. pp 479-487.
problem is decomposed into two subtasks: (i) follow the desired 10. Sutton, R, (1987). Fuzzy set models of the helmsman steering
heading, and (ii) bring the ship onto desired path and keep a ship in course-keeping and course-changing modes. PhD thesis,
tracking. Internally, the autopilot consists of two autopilots that University of Wales Institute of Science and Technology.
fulfilled these tasks simultaneously. Each of the autopilots has a 11. Sutton, R, and Jess, IM, (1991). A design study of a self-
simple internal structure, designed by copying the reasoning and organising fuzzy autopilot for ship control. Proceedings I, Institution
behaviour of the experienced helmsman. The process of generat- of Mechanical Engineers. 205, pp 35-47.
ing the action signals is transparent and understandable. Satura- 12. Polkinhorne, MN, Roberts, GN, Burns, RS, and Winwood,
tion of the actuator (steering mechanism) is avoided and com- D, (1995). The implementation of fixed rulebase fuzzy logic to the
mand signals, produced by fuzzy autopilot and experienced control of small surface ships. Control Engineering Practice, 3 (3),
helmsman, are very similar. pp 321-328.
The proposed control scheme has been successfully verified 13. Polkinhorne, MN, Roberts, GN, and Burns, RS, (1997a).
using a non-linear model of the Mariner-class vessel and steering Consideration of performance assessment criteria required for a self-
mechanism under the influence of wave and current distur- organising fuzzy-logic autopilot. Proc. 11th. Ship Control Systems
bances. Performance of the proposed control scheme has been Symposium:, Southampton. Vol.1. pp. 151-159.
investigated under different conditions. In the case when the 14. Polkinhorne, MN, Roberts, GN, and Burns, RS, (1997b).
waves and sea currents act on the ship, the unavoidable loss in Intelligent ship control with online learning ability. Computing and
control performance and control effort was found to be acceptable Control Engineering Journal, 8 (5), pp 196-200.
if a Notch filter is used to reject wave components from the 15. Vukic, Z, Omerdic, E, and Kuljaca, LJ, (1997). Fuzzy
heading signal. Hence, in order to reduce the effects of the wave Autopilot for Ships Experiencing Shallow Water Effect in Maneuvering,
disturbance on the tracking performance, the recommendation is 4th IFAC (International Federation of Automatic Control) Con-
to use a Notch filter with a natural frequency equal to the ference on Maneuvering and Control of Marine Craft, 10-12
encounter frequency according to equations (5)-(7). September, Brijuni, Croatia.
Further improvement of the proposed control scheme could 16. Vukic, Z, Omerdic, E, and Kuljaca, LJ, (1998). Improved
be achieved by replacing Autopilot (Offset) with an equivalent Fuzzy Autopilot for Track-Keeping. IFAC Conference CAMS’98,
Adaptive Neuro-Fuzzy Inference System (ANFIS, Jang et al23) Fukuoka, Japan, 27-30 October 1998.
network. ANFIS belongs to the family of adaptive networks and 17. Fossen, TI, (1994). Guidance and Control of Ocean Vehicles,
has ability and flexibility for on-line fine-tuning. The starting point John Wiley&Sons, Chichester.
for tuning could be the approximation of the function y = tanh( χ . ) 18. Omerdic, E, (2001). Reconfigurable control system for ship
The local shape of this function could be tuned using the on-line track-keeping. Master Thesis, University of Zagreb, Faculty of
training capabilities of ANFIS. Electrical Engineering and Computing, Croatia.
19. Chislett, S, and Strøm-Tejsen, J, (1965). Planar Motion
Mechanism Tests and Full-Scale Steering and Manoeuvring Predic-
REFERENCES tions for a Mariner Class Vessel, Hydro and aerodynamics Labora-
1. Sperry, EA, (1922). Automatic Steering, Trans. Society of tory, Lyngby, Denmark, Report No. Hy-6, April 1965.
Naval Architects and Marine Engineers pp 53-61. 20. Amerongen, JV, (1979). An adaptive autopilot for track-
2. Minorski, N, (1922). Directional stability of automatically keeping. Ship Operation Automation, III. Proceedings of the 3th IFIP/
steered bodies, Journal of American Society of Naval Engineers, IFAC Symp., Tokyo, pp. 105-114.
Vol.34 pp 280-309. 21 Pierson, JP, and Moskowitz, L. 1964. A proposed spectral
3. Broom, DR, and Lambert, TM, (1978). An optimising form for fully-developed wind seas based on the Similarity Theory of SA
function for adaptive ship’s autopilot. Fifth Ship Control Sympo- Kitaigorodskii. Journal of Geophysical Research, Vol 69 No 24.
sium, Bethesda. Vol. 3. 22. Amerongen, JV, (1980). Model Reference Adaptive Control
4. Clarke, D, (1980). Development of a cost function for autopi- Applied to Steering of Ships. Methods and Applications in Adaptive
lot design, Ship steering and Automatic Control, Genoa. pp. 59- Control, Proceedings of an Int. Symp., Bochum, Germany, March
77. 20-21, 1980, pp. 199-208.
5. Katebi, MR, and Byrne, JC, (1988). LQG adaptive ship 23. Jang, J-SR, Sun, C-T, and Mizutani, E, (1997). Neuro-Fuzzy
autopilot, Institute of Measurement and Control Transactions, and Soft Computing: A Computational Approach to Learning and Machine
Vol.10, No.4, pp 187-197. Intelligence, Prentice Hall, Upper Saddle River, NJ 07458.

29
No. A2 Journal of Marine Engineering and Technology
A fuzzy track-keeping autopilot for ship steering

NOMENCLATURE
L oa , L Length Overall DB Switch on point (steering mechanism)

L pp Length between perpendiculars H Hysteresis width (steering mechanism)


K Gain in the telemotor-loop (steering
B Maximum beam mechanism)
T Design draft PB Limit point in the amplifier-loop (steering
mechanism)
∇ Design displacement N Limit value in the amplifier-loop (steering
mechanism)
u0 Design speed ωh zero-mean white noise process
ωn Natural frequency of the Notch filter ωe Encounter frequency

ζ Relative damping factor of the Notch β Angle between the heading and the direction
filter of the wave
g Acceleration of gravity Hs Significant wave height
ω0 Modal frequency of the PM- U Total speed of ship
spectrum
Vc Average current speed γc Direction of current
uc , vc The body-fixed components of μ0 constant ( ≥ 0 )
current
Ψd Desired heading Ψ Actual heading
r = Ψ̇ Rate of change of heading d Distance between ship and desired path
dc1 Output of the fuzzy autopilot dc2 Output of the fuzzy autopilot (Offset)
(Course)
δc Command rudder angle δ Actual rudder angle

}
error,
η Normalised distance d
errordot , Internal normalised variables of the fuzzy
autopilot (Course)
y

(X ,Y ) Ship co-ordinates obtained from (Xi ,Yi ) Way points


GPS
Keta Gain sf Scaling factor
ω0 Modal frequency of the PM-
spectrum Hs Significant wave height

FIGURES (a)

(b)

Fig 1: (a) Steering mechanism; (b) Block diagram

30 Journal of Marine Engineering and Technology No. A2


A fuzzy track-keeping autopilot for ship steering

(a)

(b)

Fig 2: (a) Control system for course-


keeping; (b) Internal structure of the
fuzzy autopilot

Fig 3: (a) Membership functions for inputs (error


and errordot) and output (y); (b) Control surface
of the 'Fuzzy autopilot (Course)'.

Fig 4: Control system for track-keeping

31
No. A2 Journal of Marine Engineering and Technology
A fuzzy track-keeping autopilot for ship steering

(a) (b)

Fig 5: (a) Definition of the offset from the desired path d, (b) Comparison between course-keeping and track-keeping

(a) (b)

Fig 6: Different shapes of functions in F: (a) fixed Keta , (b) fixed sf

Fig 7: Course changing manoeuvre, performed by an


experienced helmsman

32 Journal of Marine Engineering and Technology No. A2


A fuzzy track-keeping autopilot for ship steering

Fig 8: Course-changing for desired heading 10° (LHS) and 30° (RHS): (1) without waves and filter,
(2) with waves, (3) with waves and filter

33
No. A2 Journal of Marine Engineering and Technology
A fuzzy track-keeping autopilot for ship steering

Fig 9: Track-keeping: (a) without disturbances, (b) with waves, (c) with
waves and filter

34 Journal of Marine Engineering and Technology No. A2


A fuzzy track-keeping autopilot for ship steering

Fig 10: Track-keeping: (a) with currents, (b) with waves and currents, (c) with waves, filter and currents

35
No. A2 Journal of Marine Engineering and Technology

View publication stats

You might also like