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

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

net/publication/371900388

Towards the Testing and Validation of Autonomous Ships: Design of a Variable


Stability Ship Control System

Article in Journal of Marine Science and Engineering · June 2023


DOI: 10.3390/jmse11071274

CITATIONS READS

3 149

4 authors, including:

Jialun Liu Xinjue Hu


Wuhan University of Technology Wuhan University of Technology
112 PUBLICATIONS 930 CITATIONS 21 PUBLICATIONS 98 CITATIONS

SEE PROFILE SEE PROFILE

All content following this page was uploaded by Jialun Liu on 16 September 2023.

The user has requested enhancement of the downloaded file.


Journal of
Marine Science
and Engineering

Article
Towards the Testing and Validation of Autonomous Ships:
Design of a Variable Stability Ship Control System
Shijie Li 1,2 , Ziqian Xu 2 , Jialun Liu 1,3,4,5, * and Xinjue Hu 1,3,4

1 State Key Laboratory of Maritime Technology and Safety, Wuhan University of Technology,
Wuhan 430063, China; lishijie@whut.edu.cn (S.L.); huxinjue@whut.edu.cn (X.H.)
2 School of Transportation and Logistics Engineering, Wuhan University of Technology, Wuhan 430063, China;
263751@whut.edu.cn
3 Intelligent Transportation Systems Research Center, Wuhan University of Technology, Wuhan 430063, China
4 National Engineering Research Center for Water Transport Safety, Wuhan 430063, China
5 Academician Workstation of China COSCO Shipping Co., Ltd., Shanghai 200135, China
* Correspondence: jialunliu@whut.edu.cn

Abstract: Maritime autonomous surface ships (MASSs) have received increased attention in both
academic research and industrial applications in the global shipping and shipbuilding industry
in recent years. According to its definition, a MASS can independently operate without human
interaction. This brings the problem of how to test and evaluate the capabilities of the autonomous
navigation control system developed for MASS. This paper proposes the novel concept of a variable
stability ship and the design of its control system. A variable stability ship consists of a model-scaled
ship, a model-following controller, and a hardware and software platform to implement its functions.
The variable stability ship can replicate the dynamic responses of different reference ships despite
their dissimilarities in physical parameters and hydrodynamic characteristics with the design of the
model-following controller. Therefore, it can be used to test the performance of different control
strategies on various ship types such that the R&D costs of physical model-based tests can be reduced,
as well as shortening the time spent in developing physical ship models. Preliminary simulations are
carried out to show its effectiveness and applicability.

Keywords: autonomous ships; variable stability ship; testing and validation; sliding mode control

Citation: Li, S.; Xu, Z.; Liu, J.; Hu, X.


Towards the Testing and Validation
of Autonomous Ships: Design of a 1. Introduction
Variable Stability Ship Control
The rapid development of global trade in recent years has put higher requirements
System. J. Mar. Sci. Eng. 2023, 11,
on energy saving, environmental protection, and the efficiency of existing transportation
1274. https://doi.org/10.3390/
modes. According to [1], 80% of global trade is transported by sea each year. Ships
jmse11071274
deploy sensors and AI systems to improve safety, increase efficiency, reduce environmental
Received: 18 May 2023 impacts, and avoid collision avoidance [2]. The International Maritime Organization (IMO)
Revised: 9 June 2023 proposed the concept of a maritime autonomous surface ship (MASS) in 2017 and defines
Accepted: 21 June 2023 it as a ship that can operate independently of human interaction. A MASS could integrate
Published: 23 June 2023 perception, decision making, and control functions to implement autonomous navigation
in complicated environments. With the advantages of high efficiency and autonomy, it has
received increased attention in both academic research and industrial application in the
global shipping and shipbuilding industry.
Copyright: © 2023 by the authors.
In 2018, the Maritime Safety Committee (MSC) in IMO completed a regulatory scoping
Licensee MDPI, Basel, Switzerland.
This article is an open access article
exercise on MASS that was designed to assess existing IMO instruments to see how they
distributed under the terms and
might apply to ships with varying degrees of automation. In 2019, they approved Interim
conditions of the Creative Commons Guidelines for MASS trials to ensure that the trials of autonomous ships are “conducted
Attribution (CC BY) license (https:// safely, securely and with due regard for the protection of the environment.” However, these
creativecommons.org/licenses/by/ guidelines are general without going further into details. The lack of specific standards
4.0/). and technical means for the trials and tests of MASS has restricted the progress of related

J. Mar. Sci. Eng. 2023, 11, 1274. https://doi.org/10.3390/jmse11071274 https://www.mdpi.com/journal/jmse


J. Mar. Sci. Eng. 2023, 11, 1274 2 of 17

products and practical applications. To promote autonomous navigation, functional testing


and validation technologies on MASS are required. The development of testing and
validation methods of MASS is still in the initial stage, and relevant research is scarce. A set
of recommendations for the digital testing of autonomous navigation capabilities before
actual sea trials is developed in [3], which takes into account the need for an accurate
representation of the actual MASS vessel being built and verification of the autonomous
navigation algorithm’s capabilities to safety control the vessel in real-world scenarios.
The autonomous navigation system (ANS) is one of the key elements of a MASS.
It is important to ensure its safe deployment and avoid causing accidents. This means
a qualification process is necessary, for which the testing of the navigational system is
required. Real-life testing alone is not feasible, as it is time and cost consuming; therefore,
large-scale, systematic simulation-based testing is also needed. The authors in [4] propose
the virtual–real interaction test scheme for the functional testing of MASS. A prototype of
a test system developed for ANS is presented in [5]; the main components of the system
include a scenario manager to generate dynamic test scenarios, an operating environment
that defines the features of the test scenario, the digital twin of a ship to simulate its
behavior, and a test evaluation system to assess how well the ANS performs on COLREGs
safety rules and regulations. Collision avoidance is another important feature of a MASS.
A scenario-based testing method is proposed in [6], in which an AI-based scenario search
and production algorithm is used to create scenarios to validate the collision avoidance
system. In [7], a navigation situation clustering model is developed to create test scenarios to
assess the collision avoidance system of a MASS. It makes use of the automatic identification
system data to extract the ship’s trajectory and to cluster the data according to navigation
situations to develop a collision avoidance test environment for MASS. A verification
method is proposed in [8] to test safe trajectory planning algorithms implemented in the
ANS, in which head-on, crossing, encounter situation, and sudden change of opponent
ship scenarios are considered with no objective scenario design basis. In [9], a test platform
for different control strategies for MASS is implemented based on a model-scaled ship.
It can simulate the process of the control system autonomously, selecting an appropriate
controller according to the ship’s motion state and navigation scenarios.
Autonomous control is one of the key function of the MASS, and this functional
test can be carried out by simulation calculations, physical model-based tests, real ship-
based tests, and other hybrid methods. Simulation tests have the merits of low costs,
high efficiency, and being risk-free, and are not restricted by environmental conditions.
Nevertheless, it is difficult to guarantee the authenticity of testing scenarios due to the
limitations on the accuracy of simulation model and computation capacity. Physical model-
based tests are more intuitive than simulations, as well as safer and lower cost compared
with real ship-based tests. Therefore, they are commonly used in the analysis of ship
performance, the development of new ship types, and the design of high-performance
ships. In practice, most model-scaled ships are distorted models, which are not perfectly
geometrically similar to their prototypes, which leads to differences in their dynamic
responses. Meanwhile, building the physical models for all prototype ships is unrealistic,
as it is both time consuming and increases costs.
Variable stability aircraft [10], also known as air flight simulation test aircraft, is
a platform for testing the functional performance of new aircraft. It has the capability
of changing the dynamic response of an aircraft in-flight without changing its physical
properties, allowing adjustments of response characteristics and handling qualities [11].
Variable stability aircraft have been used to design control systems for various flight
situations, in which they can simulate the dynamic responses of different aircraft without
changing their physical configurations. Inspired by variable stability aircraft, this paper
extends this idea to the test of MASSs and proposes the concept of a variable stability ship.
A variable stability ship consists of a model-scaled ship, a model-following controller,
and a hardware and software platform to implement its functions. The model-following
controller is designed for the model-scaled ship to accomplish the control task, which is to
J. Mar. Sci. Eng. 2023, 11, 1274 3 of 17

ensure that the variable stability ship follows the states of different reference ships. In other
words, the sailing states and trajectories of the variable stability ship and the reference ship
need to be the same despite their dissimilarities in physical parameters and hydrodynamic
characteristics. This enables the variable stability ship to have the capability to simulate the
maneuverability and dynamic responses of reference ships. Therefore, the variable stability
ship can be used to verify and evaluate the accuracy of different virtual ship models on a
physical model-scaled ship, as well as evaluating the tested control strategies applied on
different virtual ships in an actual environment.
The core function of a variable stability ship is accomplished by the design of the
model-following controller, also referred to as the variable stability controller. The control
task that a variable stability ship needs to complete can be considered a special type of
formation control, whose purpose is to make its output follow the output of a reference
ship that exhibits the desired characteristics. Sliding mode control (SMC) is based on
variable structure systems composed of independent structures of different properties. It
can adapt to system disturbances and model uncertainties [12], and has been successfully
employed in the formation control of both autonomous surface and underwater vehicles
due to its strong robustness and simplicity [12,13]. To pursue faster convergence of tracking
error, SMC with finite-time reachability was investigated [14,15]. This paper combines
finite-time control (FTC) with SMC to construct the variable stability controller to guarantee
its fixed-time stability and adapt to parameter changes and disturbances.
This paper proposes the design of a variable stability ship control system for the testing
and validation of MASSs, which involves the functional design and implementation of its
hardware and software, and the construction of variable stability controller based on SMC
and FTC. It can be used to test the performance of different control strategies on various
ship types so as to reduce the R&D costs of physical model-based tests, as well as shorten
the time spent in developing different physical models. Simulations are carried out to
demonstrate the stability and quality of the variable stability controller, and to investigate
its model-following performance to different reference ships.
The main contribution of this paper is twofold:
• The novel concept of variable stability ship is proposed, which provides new solutions
to the testing and validation of navigational control system of MASSs, especially
in situations with limited experimental conditions. As far as the authors are aware, no
similar published work exists for supporting the functional test problem of MASSs.
• As the most important function of the variable stability ship control system, a variable
stability controller is designed combining FTC and SMC based on model-following
principles.
The rest of the paper is organized as follows. The principles of the variable stability
ship are described in Section 2. Section 3 introduces the design and implementation of the
variable stability ship control system. In Section 4, the steps for constructing a variable
stability controller based on sliding mode control are given. The simulation results are
presented in Section 5. Conclusions and future work are given in Section 6.

2. Principles of Variable Stability Ship


To design the variable stability ship control system, several terms need to be clarified.
This paper introduces relevant concepts and definitions as follows.

Definition 1 (variable stability). It means the ability of a system that can change its dynamic
response without changing its physical properties and allows for adjustments of its response charac-
teristics and maneuverability [10].

Definition 2 (variable stability ship). It refers to a ship that is capable of simulating the dynamic
responses of a range of reference ships via a model-following control strategy.
J. Mar. Sci. Eng. 2023, 11, 1274 4 of 17

Definition 3 (variable stability control). It refers to the control strategy which ensures that the
variable stability ship replicates the sailing states of a reference ship.

The principles of a variable stability ship (VSS) system are illustrated in Figure 1.
Firstly, according to the content of the test, a human operator gives input to the test settings
in the system to define the test scenario. Parameters of wind, current, waves, and system
uncertainties are set to calculate environmental forces based on empirical equations. Then,
the reference ship (RS) type is chosen, and its parameters and hydrodynamic coefficients
are determined. Different control functions, including heading control, path following,
and trajectory tracking, are included in the system. Depending on the control objective
of the test, the control strategy to be tested is applied to the reference ship to complete
its control task, and its output states of surge, sway, and yaw movements over time are
recorded in the system. The control objective of the VSS is to follow the RS output states.
Based on the models of RS and VSS, the error model for states tracking is built, upon which
the model-following controller calculates the control commands and sends them to the
model-scaled ship, which acts as the implemented VSS. In this way, the VSS simulates the
reference ship’s behavior under the tested control strategy in an actual environment so as
to evaluate its control performance.

Figure 1. The principles of a variable stability ship simulation system.

3. Design and Implementation of Variable Stability Control System


Figure 2 gives the functional design of the variable stability control system. The soft-
ware design of VSS consists of five main functions, including reference ship selection,
control test, variable stability control, virtual model simulation, and information display
and storage:
• Reference ship selection. The simulated ship type selection system is used to input
information about the simulated ship parameters and to select the control algorithm
to be verified.
J. Mar. Sci. Eng. 2023, 11, 1274 5 of 17

• Control test. The variable stability ship can perform traditional heading control, path
following, and trajectory tracking control itself. The testing control strategy is also
implemented in its control test function.
• Variable stability control. As the main function, it includes the variable stability control
algorithm that calculates control forces and moments of the VSS, and a control alloca-
tion module to transform the control commands into the actual propeller revolution
speed and rudder angle.
• Virtual model simulation. The models of reference ship and variable stability ship are
implemented, which are maneuvering models that are constructed based on integrated
CFD and empirical methods [16]. They are used to carry out numerical simulations of
ship motions and predict the evolution of ship states.
• Information display and storage. The sensing information includes environmental
forces and ship states. The current status of the VSS propeller and rudder is given,
as well as the control commands generated by the variable stability control function.
The changes in the virtual reference ship are also shown. Moreover, the generated
data in experiments are recorded.

Figure 2. Functional design of variable stability control system.

Figure 3 shows the workflow of the variable stability control system. Firstly, the human
tester selects the reference ship type, and inputs the scenario parameter. The RS and VSS states
are initialized. The tested control strategy is applied to the virtual RS, and the RS states are
updated in the VSS control system. Based on the current states of RS and VSS, the error model
is constructed. The variable stability control module calculates the control commands for VSS
to make it follow the RS states. The control commands are applied to the model-scaled ship so
that it simulates RS behavior. Then the RS, variable stability model-scaled ship, and the virtual
J. Mar. Sci. Eng. 2023, 11, 1274 6 of 17

VSS states are updated in the system. By checking whether the termination criteria are satisfied,
the human tester decides whether the procedure continues or finishes.

Figure 3. Workflow of variable stability control system.

The hardware of VSS includes its sensing system, shore-based monitoring system,
model-scaled ship design, and VSS controller. A model-scaled ship is designed and built
as the VSS prototype in an actual environment. The sensing system is implemented
with a global navigation satellite system (GNSS) antenna, anemometer, camera, Lidar,
long-range radio (LoRa), ultra-wideband (UWB), and inertial measurement unit (IMU).
The shore-based monitoring system is designed to obtain a more accurate positioning of
the model-scaled ship from the shore-end real-time kinematics (RTK). The VSS controller
receives information regarding the RS and VSS from the sensing system and applies the
control commands output from the variable stability control system to the model-scaled
ship to simulate the behavior of RS.

3.1. Hardware Implementation


Figure 4 illustrates the hardware implementation of the variable stability control sys-
tem. The testing control strategy is applied to the virtual RS model to run simulations.
The RS states are updated in the simulation, and the VSS states obtained from the sens-
ing system installed on the model-scaled ship are sent to the variable stability controller.
The controller determines the control forces and moments required for the VSS to follow the
RS states. Then these control inputs are transformed into propeller speed and rudder angle
commands and are sent to the model-scaled ship via TCP/IP communication. In other
J. Mar. Sci. Eng. 2023, 11, 1274 7 of 17

words, the variable stability controller is implemented in a shore-end laptop and communi-
cates with the ship-end data acquisition board PLC. The PLC controls the motor, and the
driver compares the error between the feedback motor signal from the encoder with the
PLC command and performs closed-loop control of the motor. In this way, the motor drives
the propeller and rudder to execute control commands.

Figure 4. The hardware implementation of variable stability control system.

Figure 5 shows the composition of the shore-based monitoring system. It is equipped


with a communication unit including routers, a POE signal switch, a server, a differential
base station, and a laptop used to remotely control the model-scaled ship. The ship-end
system communicates with the shore-side monitoring workstation via the Modbus protocol.
The model-scaled ship is a 64 TEU twin-propeller and twin-rudder container model ship,
and the scale ratio with the prototype is 1:18. It is installed with sensors, batteries, signal
amplifier, control cabinet, motors, and drivers. The shore-end laptop inputs RS information
and the testing control strategy and sends control commands to the shore-end system.
The model-scaled ship information regarding its position, velocity and course is collected
from the shore-end system and uploaded to the data acquisition board in the control cabinet.
The ship-end system receives and executes control commands.

Figure 5. The shore-based monitoring of model-scaled ship.


J. Mar. Sci. Eng. 2023, 11, 1274 8 of 17

3.2. Software Design


This paper designs the interface based on the Python language and PyQt5 framework.
The whole software control platform runs on a microcomputer configured with Core i7-
10750 CPU, 2.6 GHz with 16 GB RAM, and is designed in Python language. The VSS control
interface is shown in Figure 6. It consists of six main functions, including a control panel,
switch control, map display, ship parameters display, and monitoring of VSS and RS states.
The control panel provides the RS/VSS selection, the testing control type (free run-
ning, heading control, and path following), target heading angle and reference path points,
as well as the testing control strategies (PID and sliding mode control). Before the test
procedure starts, the RS and VSS need to be initialized, which means RS and VSS types,
the applied control strategies and the corresponding control parameters need to be deter-
mined. The information of RS and VSS is shown in the ship parameters display part, and
their information during tests is given in the state display part and monitoring part. When
the test procedure initiates, the start button is clicked, the ship end hardware equipment is
powered on and waits for the shore-end control command. The shore-end system receives
the status information of the ship-end equipment and performs related control operations.
The PC controller calculates the control command and sends it to the ship-end PLC through
Modbus protocol, and the PLC drives the actuator to complete the ship control. The whole
control program is divided into multiple threads, one main thread circulates to calculate
the control command, and two sub-threads realize data receiving and sending, respectively.

Figure 6. The interface of variable stability control system.


J. Mar. Sci. Eng. 2023, 11, 1274 9 of 17

4. Variable Stability Controller Design


This section introduces the ship model and the controller design steps to implement
variable stability control.

4.1. Mathematical Model of the Ship


Figure 7 shows the ship coordinate system used in this paper: the space-fixed coor-
dinate system O0 − x0 y0 z0 and the moving ship-fixed coordinate system o − xyz, where
o is taken on the midship of the ship, with x, y and z axes that point towards the ship’s
bow, towards the starboard and vertically downwards, respectively. Heading angle ψ is
defined as the angle between the x0 and x axes, variable δ represents the rudder angle, and
r represents the yaw rate. Variables u and v denote the surge and sway velocity in the x
and y directions, respectively.

x0
x

O r
v y
φ δ

o 0
y0
Figure 7. Ship coordinate system.

As the multiple degrees of freedom (DOF) model need more control inputs, the surface
ship can be simplified to 3 DOFs. According to [17], it can be described as
(
η̇ = J (ψ)v
(1)
M v̇ = −C (v)v − D (v)v + τ,

where η = [ x, y, ψ]> indicates the position vector ( x, y) and heading angle ψ of the
ship in the earth-fixed coordinate, and v = [u, v, r ]> indicates the velocity vectors (u, v)
and yaw rate r in the body-fixed coordinate. τ = [τu , τv , τr ]> denotes the control in-
puts, which are the surge, sway forces and yaw moments. J (ψ) is a simplified rota-
tion matrix between earth-fixed and body-fixed coordinates, which can be expressed as
 
cos ψ − sin ψ 0
J (ψ) =  sin ψ cos ψ 0 .
0 0 1
It has the property of J > (ψ) J (ψ) = I, J̇ (ψ) = J (ψ)Λ(r ), and that J > (ψ)Λ(r ) J (ψ) =
 
0 −r 0
Λ(r ), in which Λ(r ) =  r 0 0 .
0 0 0
J. Mar. Sci. Eng. 2023, 11, 1274 10 of 17

Matrices M, C (v), and D (v) represent the ship inertia coefficients, the Coriolis and
centripetal matrix, and the damping matrix, separately. To simplify the dynamics of the
ship, these matrices can be determined according to the surge-decoupled system:
 
m11 0 0
M= 0 m22 m23 ,
0 m32 m33
 
0 0 c13 (v)
C (v) =  0 0 c23 (v) , (2)
c31 (v) c32 (v) 0
 
d11 (v) 0 0
D (v) =  0 d22 (v) d23 (v) ,
0 d32 (v) d33 (v)

in which m11 = m − Xu̇ , m22 = m − Yv̇ , m23 = m32 = m − Yṙ , m33 = Iz − Nṙ . It is noted
that m represents ship mass, and Iz represents the moment of inertia around the z-axis.
Parameters Xu̇ , Yṙ and Nṙ are the hydrodynamic coefficients.
Matrix C (v) can be simplified as



 c13 (v) = −m22 v − m23 r

c (v) = m u
23 11
(3)
c31 (v) = −c13 (v)



 c ( v ) = − c ( v ),
32 23

and D (v) is determined by




 d11 (v) = − Xu − X|u|u| |u| − Xuuu u2

 22 (v)
d = −Yv − Y|v|v |v| − Y|r|v |r | − Yvvv v2



d23 (v) = −Yr − Y|v|r |v| − Y|r|r| |r | (4)

d32 (v) = − Nv − N|v|v |v| − N|r|v |r |





d33 (v) = − Nr − N|v|r |v| − N|r|r |r | − Nrrr r2 .

4.2. Controller Design Based on SMC-FTC


The main function of the VSS control system is to simulate the dynamic response of
another ship with a variable stability control strategy. It is essentially a model-following
problem that is similar to formation control and trajectory tracking control. It can be seen as
a formation control problem, in which the leadership and the followership track the same
trajectory, or a trajectory tracking problem, in which the variable stability ship follows the
states of a reference ship instead of its trajectory.
To construct the VSS controller, auxiliary variables x = J (ψ)v and h( x) are introduced
to reformulate model (1) as follows:
(
η̇ = x
(5)
ẋ = h( x) + J (ψ) M −1 τ.

Consequently,

x = − J (ψ) M −1 (C ( J > (ψ) x)) + D ( J > (ψ) x) J > (ψ) x + Λ(r ) x. (6)

The variable stability control objective is to ensure that the position vectors of both RS
and VSS stay the same. The position error ηe between VSS and RS can be expressed as

ηe = ηV − ηR (7)
J. Mar. Sci. Eng. 2023, 11, 1274 11 of 17

in which ηV and ηR represent the position vectors of VSS and RS, respectively. The deriva-
tives of the error model are obtained as



 η̇e = xe

 x = J (ψ )v − J (ψ )v
e V V R R
−1
(8)


 ẋ e = J ( ψV ) M V τ V + Γ(ηV , xV , ηR , x R )
Γ(η , x , η , x ) = h( x ) − Λ(r ) x − J (ψ ) M −1 (−C (v )v − D (v )v + τ ).

V V R R V R R R R R R R R R

This paper designs the VSS controller based on sliding mode control. Based on the
error model (8), the sliding surface is defined:
Z t
S0 ( t ) = x e + se (µ)dµ (9)
0
se (·) = k1 sigβ1 (ηe ) + k2 sigβ2 ( xe ) (10)

in which se (•) is a function of errors of position and motion vectors defined as integral slid-
ing mode term, 0 < β 1 < 1, β 2 = 2β 1 /(1 + β 1 ), and that sigβ j (•) = Sgn(•)| • | β j (j = 1, 2),

1, a > 0

k1 > 0, k2 > 0. It is noted that the sign function is represented as Sgn( a) = 0, a = 0

−1, a < 0.

The time derivative of (9) is obtained:
−1
Ṡ0 = J (ψV ) M V τ V + Γ(ηV , xV , ηR , x R ) + k1 sigβ1 (ηe ) + k2 sigβ2 ( xe ). (11)

Therefore, to make Ṡ0 = 0, the control forces of VSS are determined:


 
2− p/q p/q
τ V = − M V J (ψ1 )> (Γ ηV , xV , ηR , x R ) + se (•) + λ0 S0 + λ1 S0 + λ2 S0 , (12)

in which λ0 > 0, λ1 > 0, λ2 > 0; p and q are odd integers that satisfy 0 < p < q.

Lemma 1. If there exists a system that satisfies

ẏ = −αy2− plq − βy p/q , y(0) = y0 (13)

in which y represents the system state, y0 represents the initial system state, α > 0, β > 0, and p
and q are two positive odd numbers. When p < q is satisfied, the system can converge to stability in
a finite time, and the upper bound on the convergence time T has the following properties:

T ≤ Tmax = p (14)
2 αβ(q − p)

Lemma 2. Consider a second-order system described by ẋ1 = x2 , ẋ2 = g( x1 , x2 ), where x1


and x2 are the state variables and the control input is g( x1 , x2 ). If the control input is chosen as
g( x1 , x2 ) = −ρ1 Sgn( x1 ) − ρ2 Sgn( x2 ) (ρ1 > ρ2 > 0), the unique equilibrium point x1 = x2 = 0
is globally finite-time stable. For the proof of Lemmas 1 and 2, we refer the readers to [18] for
further details.

The proof of finite-time convergence and the stability of the controller (12)) is given
as follows.

Proof. Define the Lyapunov function:

1 >
V1 = S S0 (15)
2 0
J. Mar. Sci. Eng. 2023, 11, 1274 12 of 17

The time derivative is presented:


 
V̇ 1 =S0> ẋe + k1 sigβ1 (ηe ) + k2 sigβ2 ( xe ) (16)
2− p/q p/q
=S0> (−λ0 S0 − λ1 S0 − λ2 S0 ) (17)
  3− p/q   1+ p/q
3− p/q 1 2 2 1+ p/q 1 2 2
= − λ0 S0 2 − λ1 2 2 S0 − λ2 2 2 S0 (18)
2 2
3− p/q 3− p/q 1+ p/q 1+ p/q
≤ λ1 2 2 (V 1 ) 2 − λ2 2 2 (V 1 ) 2 (19)

According to Lemma 1, the system under (12) converges to stability with time:

T1 = √ (20)
2 a1 a2 ( n1 − m1 )
3q− p p−q
where a1 = λ1 2 2q , a2 = λ2 2 2q and m1 = p + q, n1 = 2q, and m1 < n1 is satisfied.

Moreover, when the control law (12) reaches the sliding surface with time T1 , condi-
0
tions S(t) ≡ 0 and Ṡ (t) ≡ 0 hold. According to Lemma 2, it can be proved that the system
has finite time stability.

5. Simulation Results
This section presents the simulation results of the proposed VSS control strategy,
and the implementation results on a model-scaled ship.

5.1. Simulation Settings


To verify the effectiveness of the VSS controller proposed, simulations are carried out,
in which the model-scaled ship simulates the behavior of two reference ships, including a
marine engineering ship [19] and a double-ended ferry [20], which are referred to as Ship
A and Ship B, respectively. The parameters of the VSS and RSs are given in Appendix
Table A1. The VSS is a 1:18 scale replica of a 64TEU container ship. It is noted that as the
RS and VSS vary in size, the scaling factors are considered in simulations. A basic PID
control law is applied to the RS such that it follows the reference paths. Then the designed
SMC-FTC controller is applied to the VSS such that it follows the RS states.
The states of reference Ship A are initialized as η A = [18, 18, 45◦ , 1, 0, 0], v A = [1, 0, 0],
and the states of reference Ship B are initialized as ηB = [15, 15, 45◦ , 1, 0, 0], v B = [1, 0, 0].
The VSS states are initialized as ηV = [10, 10, 69◦ ] and vV = [1, 0, 0]. The VSS control
parameters are given as k1 = 0.06, k2 = 0.06, β 1 = 0.01, β 2 = 0.02, λ0 = 0.01, λ1 = 0.02,
λ2 = 0.01, and p = 0.1, q = 0.5.

5.2. Performance Evaluation


Figures 8 and 9 give the simulated results of the VSS following the states of reference
Ship A and Ship B. It can be seen that VSS is able to track the 3-DOF states of reference ships.
The position errors concerning x, y and ψ between VSS and RSs over time are also given. It
shows that while the VSS and RSs start from different initial states, the VSS can successfully
follow the position states of the RSs. When the VSS follows reference Ship A, the position
errors ex , ey and eψ converge and stabilize after 40 s, 60 s and 200 s, respectively. When
the VSS follows reference Ship B, position errors ex , ey and eψ converge and stabilize after
30 s, 30 s and 120 s, respectively. Figures 10 and 11 give the control forces and moments of
the VSS and reference ships. It is noted that the reference ships follow randomly selected
paths with fixed surge forces τu and relative small yaw moments τr . The control forces
and moments are transformed into rudder angle and propeller speed commands via thrust
allocation algorithms and sent to the VSS.
J. Mar. Sci. Eng. 2023, 11, 1274 13 of 17

5.3. Future Prospects of Variable Stability Ship


The proposed design of the variable stability ship and its control system can be used
in the testing and validation of MASS in several directions. Firstly, the proposed VSS
integrates physical and simulation tests, in which the model-scaled ship can simulate the
dynamic responses of the virtual RS under different testing control strategies. In other
words, the testing control strategies developed for MASS are applied to different virtual RSs,
and the simulated RSs states are duplicated on the physical VSS in the real environment,
which makes the control performance more visible. In this way, the developed MASS
control strategy can be tested on various types of ships, using only one physical model-
scaled ship. This provides solutions for situations in which full-scale physical tests are
unable to be carried out.
Meanwhile, the variable stability ship itself is a physical model, which can be used
to validate and adjust the developed virtual ship models in the simulation test systems.
According to its principle, the VSS should replicate the RS motion states in an actual
environment with a designed VSS controller. If deviations exist between the virtual RS
states and the actual VSS states, it may be caused by model uncertainties of the RS model.
By measuring these states’ differences, the virtual RS model can be adjusted.

Figure 8. Trajectories of VSS and reference Ship A.


J. Mar. Sci. Eng. 2023, 11, 1274 14 of 17

Figure 9. Trajectories of VSS and reference Ship B.

Figure 10. Control inputs of VSS and reference Ship A.


J. Mar. Sci. Eng. 2023, 11, 1274 15 of 17

Figure 11. Control inputs of VSS and reference Ship B.

6. Conclusions and Future Work


To test the performance of the navigational control system developed for autonomous
ships, this paper proposes the concept of a variable stability ship and gives the func-
tional requirements, hardware implementation and software design of its control system.
The variable stability controller is constructed based on finite-time sliding mode control
following the model-following control principle. Preliminary results are given to show its
effectiveness and potential in future applications.
For future work, this research will be extended in several directions. Firstly, experi-
mental tests will be carried out, in which the VSS controller is implemented on a utilized
model-scaled ship to simulate the dynamic responses of different virtual ships. This will
further validate the practicability of the proposed method. Secondly, the VSS controller
proposed in this paper did not explicitly consider external disturbances and model certain-
ties. This will be studied in our future work by adding state observers and introducing
robust strategies. In addition, various testing control strategies will be applied to the RS to
generate different reference states; it is worth investigating how the VSS performs when
following the RS states under different control tasks. Moreover, the proposed VSS controller
relies on completely known and accurate ship dynamics, while in practice, the deviations
between the given ship mathematical model and true ship dynamics always exist. This
will affect the performance of the VSS controller. Therefore, model-free or learning-based
control strategies can be introduced to further improve the VSS control performance.

Author Contributions: Conceptualization, S.L. and J.L.; methodology, Z.X.; validation, J.L. and X.H.;
writing—original draft preparation, Z.X.; writing—review and editing, S.L.; visualization, X.H.;
supervision, S.L.; project administration, J.L.; funding acquisition, J.L. All authors have read and
agreed to the published version of the manuscript.
Funding: This research was supported by National Key R&D Program of China (2022YFB4301402),
National Natural Science Foundation of China (62003250, 52272425)
Institutional Review Board Statement: Not applicable.
Informed Consent Statement: Not applicable.
J. Mar. Sci. Eng. 2023, 11, 1274 16 of 17

Data Availability Statement: Data available on request due to restrictions eg privacy or ethical.
Conflicts of Interest: The authors declare no conflict of interest.

Appendix A

Table A1. Applied parameters for simulations of VSS and RSs.

Main particulars of reference ship A. Source: [19]


L PP 76.2 m11 6,764,400 m21 0 m31 0
m12 0 m22 11,341,200 m32 −34,015,680
m13 0 m23 −34,015,680 m33 4,452,378,192
d11 77,031.76 d21 0 d31 0
d12 0 d22 254,549.08 d32 −672,241.98
d13 0 d23 −2,033,122.09 d33 384,810,985.54
Main particulars of reference ship B. Source: [20].
L PP 5.0 m11 2389.17 m21 27.14 m31 112.96
BW L 2.8 m12 −12.54 m22 2530.60 m32 −0.61
m13 39.77 m23 −20.61 m33 5068.8
Xu −27.41 Nu 41.79 X| u | u −107.55 Y|v|r 546.70
Xv 39.398 Nv 16.46 Y|v|v −84.89 N|r|v 320.14
Xr 104.568 Nr −120.48 Y|r|r −60.85 N|v|r −271.95
Yu −45.037 Xuuu −14.87 N|v|v −18.00
Yv −61.93 Yvvv −45.39 N|r|r −870.05
Yr 35.53 Nrrr 0.00 Y|r|v −1475.115
Main particulars of variable stability ship
L PP 3.6 m11 343.08 m21 0 m31 0
BW L 0.7 m12 0 m22 371.62 m32 24.8698
m13 0 m23 82.89 m33 8694.365
d11 −10.53 d21 0 d31 0
d12 0 d22 0.25 d32 −0.004
d13 0 d23 −342.8 d33 −0.002

References
1. UNCTAD. Review of Maritime Transport; United Nations Conference on Trade and Development: Geneva, Switzerland, 2022.
2. Negenborn, R.R.; Goerlandt, F.; Johansen, T.A.; Slaets, P.; Banda, O.A.V.; Vanelslander, T.; Ventikos, N.P. Autonomous ships are
on the horizon: Here’s what we need to know. Nature 2023, 615, 30–33. [CrossRef] [PubMed]
3. Chua, K.H.; Coutinho, S.; Norahim, A.; Konovessis, D. Development of Recommendations for Digital Testing of MASS Navigation
Safety prior to Sea Trials. J. Phys. Conf. Ser. 2022, 2311, 012025.
4. Yang, F.; Liu, J.; Li, S.; Ma, F. Virtual-Real Interaction Tests for Functional Testing of Smart Ships. In Proceedings of the 30th (2020)
International Ocean and Polar Engineering Conference, ISOPE-I-20-4265, Shanghai, China, 11–16 October 2020
5. Pedersen, T.A.; Glomsrud, J.A.; Ruud, E.L.; Simonsen, A.; Sandrib, J.; Eriksen, B.O.H. Towards simulation-based verification of
autonomous navigation systems. Saf. Sci. 2020, 129, 104799.
6. Porres, I.; Azimi, S.; Lilius, J. Scenario-based Testing of a Ship Collision Avoidance System. In Proceedings of the 2020 46th Euromicro
Conference on Software Engineering and Advanced Applications (SEAA), Portorož, Slovenia, 26–28 August 2020; pp. 545–552.
7. Hwang, T.; Youn, I.H. Navigation Situation Clustering Model of Human-Operated Ships for Maritime Autonomous Surface Ship
Collision Avoidance Tests. J. Mar. Sci. Eng. 2021, 9, 1458. [CrossRef]
8. Lazarowska, A. Verification of a Deterministic Ship’s Safe Trajectory Planning Algorithm from Different Ships’ Perspectives and
with Changing Strategies of Target Ships. TransNav Int. J. Mar. Navig. Saf. Sea Transp. 2021, 15, 623–628.
9. Wang, L.; Li, S.; Liu, J.; Hu, Y.; Wu, Q. Design and implementation of a testing platform for ship control: A case study on the
optimal switching controller for ship motion. Adv. Eng. Softw. 2023, 178, 103427.
10. Park, S.; Ko, J.S. Design of a Variable Stability Flight Control System. Int. J. Aeronaut. Space Sci. 2008, 9, 162–168. [CrossRef]
11. Scholten, P.; Van Paassen, M.M.; Chu, Q.; Mulder, M. Variable Stability In-Flight Simulation System Based on Existing Autopilot
Hardware. J. Guid. Control. Dyn. 2020, 43, 1–14. [CrossRef]
12. Wang, J.; Wang, C.; Wei, Y.; Zhang, C. Sliding mode based neural adaptive formation control of underactuated AUVs with
leader-follower strategy. Appl. Ocean Res. 2020, 94, 101971.
13. You, X.; Yan, X.; Liu, J.; Li, S.; Negenborn, R.R. Adaptive neural sliding mode control for heterogeneous ship formation keeping
considering uncertain dynamics and disturbances. Ocean Eng. 2022, 263, 112268.
J. Mar. Sci. Eng. 2023, 11, 1274 17 of 17

14. Wang, N.; Deng, Z. Finite-Time Fault Estimator Based Fault-Tolerance Control for a Surface Vehicle With Input Saturations. IEEE
Trans. Ind. Inform. 2020, 16, 1172–1181. [CrossRef]
15. Wang, N.; Li, H. Leader–follower formation control of surface vehicles: A fixed-time control approach. ISA Trans. 2022, 124, 356–364.
[PubMed]
16. Lu, S.; Cheng, X.; Liu, J.; Li, S.; Yasukawa, H. Maneuvering modeling of a twin-propeller twin-rudder inland container vessel
based on integrated CFD and empirical methods. Appl. Ocean Res. 2022, 126, 103261.
17. Fossen, T.I. Handbook of Marine Craft Hydrodynamics and Motion Control; John Wiley & Sons: Hoboken, NJ, USA, 2011.
18. Abooee, A.; Mehrizi, M.H.; Arefi, M.M.; Yin, S. Finite-time sliding mode control for a 3-DOF fully actuated autonomous surface
vehicle. Trans. Inst. Meas. Control 2021, 43, 371–389.
19. Fossen, T.; Sagatun, S.; Sørensen, A. Identification of dynamically positioned ships. Control Eng. Pract. 1996, 4, 369–376. [CrossRef]
20. Pedersen, A.A. Optimization based System Identification for the milliAmpere Ferry. Ph.D. Thesis, Norwegian University of
Science and Technology, Trondheim, Norway, 2019.

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.

View publication stats

You might also like