1. Introduction
Automatic berthing control presents a ship maneuvering and positioning challenge within confined waters. In practice, to achieve the automatic shift berthing, many practical challenges must be overcome, such as precise attitude control, environmental disturbance compensation, trajectory planning and tracking, actuator constraint optimization, berthing contact force control, model uncertainty handling, communication reliability, and so on. However, for automatic berthing control design, the core contradiction for the automatic berthing of ships lies in the confrontation between “high-precision attitude control” and “strong environmental disturbances/model uncertainties” [
1], which is also one of the fundamental motivations for this work.
In practical berthing operations, ships often require external propulsion or tug assistance to provide lateral forces/moments for arrival at designated berths [
2]. However, most current intelligent ships are underactuated—equipped only with propellers and rudders without dedicated lateral thrusters—making them inherently susceptible to drifting motion [
3]. Traditional manual berthing, heavily reliant on the captains’ experience and piloting skills, struggles to mitigate these risks effectively. Relying on tug collaboration is also impractical for autonomous ship berthing [
4]. Collectively, these factors render automatic berthing control for underactuated ships highly challenging. Thus, developing advanced techniques for automatic underactuated ship berthing is crucial and urgent. The goal of automatic berthing control is for ships to autonomously reach target berthing positions with zero final velocity and acceleration, achieving desired positions and headings without overshooting. Three primary berthing strategies exist: pre-berth stabilization [
5], the direct approach [
6], and stabilize-then-align [
7]. Ref. [
5] indicates that 1.5 times the ship’s length (LBP) is the minimum distance required for safe berthing initiation; stabilization at this point defines the pre-berth stabilization method. Ref. [
6] describes the direct approach, using coordinated propeller and bow thruster actions to move the ship directly toward the berth. Conversely, ref. [
7] details the stabilize-then-align strategy: employing rudder, propeller, and bow/stern thrusters, the ship first stabilizes position and heading at a transition point outside the berth, aligns parallel to the berth, and finally moves laterally toward it. For underactuated ships lacking lateral thrusters, executing a direct parallel approach is difficult, making stabilize-then-align the generally preferred method.
Currently, most operational vessels are underactuated—lacking dedicated lateral thrusters—and represent typical second-order nonholonomic systems. This inherent underactuation significantly increases system complexity, rendering controllers designed for fully actuated ships largely unsuitable. To address this, Zhang et al. proposed a three-degrees-of-freedom (DOF) berthing control strategy for underactuated ships using simplified backstepping [
8]. However, this approach does not account for dynamic uncertainties or environmental disturbances. Subsequently, Liu et al. incorporated neural networks and a minimal learning parameter technique to approximate these unknown dynamics and disturbances, allowing for effective underactuated berthing control of the ship [
9]. Furthermore, to mitigate underactuation challenges, References [
8,
9] employed diffeomorphic transformations to simplify the ship model, effectively eliminating sway velocity influence. The additional control (AC) method [
10] is another technique frequently applied to address control design difficulties in the automatic berthing of underactuated ships. While prior research predominantly focuses on control performance issues arising from underactuation and uncertainties, less attention has been paid to challenges caused by abnormal variations in heading and its rate of change during berthing. In practice, complex berthing operations impose stringent requirements on both heading and speed control [
11]. Wave-induced disturbances can cause significant heading and speed deviations during berthing, degrading control performance, destabilizing the ship, and potentially causing collisions with the dock or shore [
12]. Consequently, constraining ships’ heading and yaw rate is practically essential. For this purpose, the Barrier Lyapunov function (BLF) [
13] and prescribed performance control (PPC) [
14] have emerged as widely adopted and effective tools. For instance, Liu and Guo et al. successfully applied BLF to constrain heading deviation and achieve automatic berthing control for underactuated vessels [
15,
16]. Compared to BLF, PPC generally offers a more flexible design process and broader applicability, evidenced by its extensive use across domains. However, its application to automatic berthing control remains relatively unexplored. A key reason is that—from the perspective of relative positioning between an underactuated vessel and the berth—ships must dynamically adjust their approach, potentially compromising standard PPC design effectiveness and indicating that direct application may be infeasible. Notably, all aforementioned control algorithms assume ideal signal transmission conditions. Such ideal communication environments are rarely achievable in practice, inevitably introducing complications like network resource constraints and cyberattacks.
Within established networked environments, automatic berthing control systems inherently rely on shared networks and face significant threats from malicious cyberattacks. While network communication offers advantages, its inherent openness and passive defenses facilitate increasingly stealthy attacks that are difficult to prevent. This poses a serious challenge to the stable operation of automatic berthing systems, particularly in busy ports where attack vectors are growing in sophistication [
17]. Common attack types include Denial-of-Service (DoS) [
18], replay attacks [
19], and False Data Injection (FDI) attacks [
20]. Among these, FDI attacks pose a greater threat to ship motion control due to their prevalence, enhanced stealth (making detection by anomaly detectors difficult), targeted and disruptive impact, and the inherent difficulty in compensating for them within ship control designs. Consequently, designing secure control schemes to specifically counter FDI attacks for underactuated ship automatic berthing systems is critically important. To address control design challenges under FDI attacks, methods like resilient control [
21], adaptive control [
22], and sliding mode control (SMC) [
23] have been widely applied. He et al. investigated a resilient predictive control strategy for defending against FDI attacks [
21]. Yang et al. proposed an adaptive control scheme under FDI attacks, incorporating a novel feedback sigmoid function [
22]. Subsequently, Xue et al. developed an adaptive sliding mode controller to handle FDI attack behavior [
23]. However, the approaches in Refs. [
21,
22,
23] assume fully known system models, making them unsuitable for complex underactuated ship systems. Addressing this, Ren et al. introduced fuzzy logic systems, proposing a fuzzy adaptive resilient control scheme to tackle FDI attacks in cyber–physical systems (CPSs) with unknown nonlinear dynamics [
24]. Zhang and Fan et al. explored adaptive neural network control for CPSs suffering from unknown nonlinearities and FDI attacks, utilizing novel Nussbaum functions to handle the unknown time-varying state feedback gains caused by the attacks [
25,
26]. These methods have subsequently been extended and applied in various control domains such as trajectory/path following, heading control, cooperative control, and dynamic positioning. For instance, Wu and Chen et al. addressed trajectory and path following control for unmanned surface vessels (USVs) under FDI attacks [
27,
28]. Zhu et al. designed a defense strategy for distributed networked USV formation control under FDI attacks targeting hybrid communication channels [
29]. Zhang et al. studied heading control for USVs under FDI attacks, achieving satisfactory performance [
30]. Notably, these studies primarily focus on fully actuated ships and assume attacks are injected solely into the controller–actuator (C-A) channel. In reality, the automatic berthing control relies heavily on sensor data (position, heading, speed), which are also prime targets for attacks. Therefore, researching FDI attacks targeting the sensor–controller (S-C) channel is equally vital. Such attacks in the S-C channel generally manifest in two forms: targeting position/attitude or velocity. From a control design perspective, FDI attacks on position/attitude states introduce significant uncertainty that cannot be directly compensated for within the controller. The concept of event-triggered control (ETC) has garnered significant attention as a potential solution [
31]. ETC ensures sampling occurs only when predefined conditions are met, effectively preventing corrupted position sensor signals from entering the control loop and thereby enhancing overall berthing performance. Ref. [
31] further proposed a bidirectional event-triggering protocol, achieving path-following control for underactuated USVs in the horizontal plane. For FDI attacks targeting velocity states, observer-based control methods are prominent. Their key advantage lies in estimating or reconstructing accurate velocity information to ensure proper system operation [
32,
33]. Zhang et al. designed an extended state observer to estimate unmeasured velocities, enabling trajectory tracking and stabilization control for USVs [
32]. Further advancing this, Deng et al. [
33] proposed a neural network-based adaptive observer control method that not only recovers unmeasured velocities for USVs but also compensates for internal uncertainties. Critically, however, the observers in Refs. [
32,
33] are specifically tailored for fully actuated ships. Therefore, ensuring the berthing safety and stability of underactuated vessel control systems under malicious FDI attacks remains a pressing challenge.
As for the analysis above, this work investigates an automatic berthing control method for underactuated ships under FDI attacks in the S-C channel. To address controller design infeasibility caused by abrupt signal corruption from FDI-induced position/heading measurement jumps, one establishes a dynamic transmission mechanism between S-C position channels. This mechanism incorporates a non-periodic event sampling mechanism driven by ship position and heading measurement errors, simultaneously reducing network traffic and blocking attack signals from entering the closed-loop system. Concurrently, to compensate for compromised velocity signals, we design a novel adaptive neural network state observer for velocity reconstruction. Furthermore, a dual-channel event-triggered protocol integrating sensing, control, and actuation is implemented to minimize network transmission resources and alleviate bandwidth constraints. The synthesized event-triggered berthing control scheme enables underactuated ships to autonomously complete berthing operations while advancing networked control paradigms for autonomous berthing systems. The main contributions of this work are summarized as follows:
A new adaptive neural network state observer is proposed, which achieves decoupling design with the controller and only relies on the sampled signals of the position and heading information of ships.
For the automatic control system under FDI attack, an event-sampled berthing control scheme is developed for the first time, which only relies on the ship’s position and heading data.
4. Simulation and Analysis
To verify the effectiveness of the control strategies mentioned above, the “Cyber ship I” model ship is still selected for the starboard berthing simulation test, and the specific parameters of the model ship can be found in [
34]. In the simulation, the initial value of berthing is taken as
, with L being the length of the ship,
= 60°, and
. The target berth is
and the target heading is
. In addition, to meet the actual berthing requirements, the heading angle and yaw rate of ships are, respectively, limited to between 10° and
rad/s. The design constants of the ontroller are taken as
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
, and
.
In the simulation, the external environmental disturbance is set as , and the attack signal is set as .
To further highlight the superiority of the event-sampled control scheme designed in this work, we propose conductinga comparative experiment between it and the continuous control algorithm (ANNC) in [
15] under an ideal signal transmission environment. To ensure the fairness and rationality of the simulation results, the initial state and related simulation parameters of the ship system model are the same as those shown in
Figure 2. The simulation results are shown in
Figure 3,
Figure 4,
Figure 5,
Figure 6,
Figure 7,
Figure 8,
Figure 9,
Figure 10,
Figure 11 and
Figure 12.
Figure 3 and
Figure 4 compare the actual position and speed of the ship. The results show that there is no significant difference in berthing time between the ship positions
under the two schemes. Both reach the target point within about 10s and remain stable throughout the subsequent period. However, under the ESM scheme, the heading stabilizes to 0 at 8 s, while under the ANNC scheme, it tends to 0 at 10 s. In contrast, the yaw angle
under the ESM control scheme converges more rapidly in the X-Y direction and tends to be more stable within the specified time. Furthermore, the speed change processes under the two schemes are similar; that is, both the speed and the sum show a trend of first increasing and then decreasing. Under the ESM scheme,
u rapidly reaches the maximum value of 5.1 m/s at the beginning and drops to the expected value of 0 m/s at 10 s, then
v reaches the maximum value of 1.1 m/s at 3 s, and drops to 0 m/s at 15 s. Meanwhile, the yaw speed curves under the two schemes show a trend of first decreasing and then increasing, and the one under the ESM scheme tends to zero in around 8 s. In contrast, under the ANNC scheme, the overshoot of the surge, sway, and yaw rate is too large.
Figure 6 shows the time history curves of the actual control inputs
and
. The results indicate that the control inputs under the control laws Equations (
46) and (
61), as well as the ETM Equation (5), are bounded and reasonable. Meanwhile, although the longitudinal thrust
and the moment
under the ANNC scheme are greater than those under the ESM scheme, both can converge to 0 and are also bounded and reasonable. In summary, combined with
Figure 3,
Figure 4 and
Figure 5, it can be seen that the ESM scheme proposed in this chapter for when the S-C channel is subject to FDI attacks does not show a significant difference in berthing effect compared with the ANNC scheme in an ideal environment. Therefore, it further verifies the superiority of the proposed control strategy.
Figure 6 presents a comparison chart of the actual position of the ship, the sampling position, and the estimated position of the observer.
Figure 7 shows a comparison chart of the real speeds of ships. As can be seen from the figure, they are all bounded and reasonable.
Figure 9 presents the diachronic curve of the velocity estimation error
. The results show that the error between the estimated speed and the actual speed gradually approaches zero and eventually stabilizes around the zero value.
Figure 8 shows the curve graph of the adaptive parameter estimates
and
, which are bounded.
Figure 9 shows the norm values of the weight vectors of the state observer neural network. It can be seen that the norms of estimation values
,
, and
all converge to a value tending towards 0, which indicates the boundedness of the adaptive update law.
Figure 10 presents the diachronic curves of the error between the heading and yaw rate r of ships and their expected values. The results show that the heading
and velocity
r of the ship can be maintained within the prescribed constraint area. Therefore, the FDI attack signal solution proposed in this work can ensure the berthing tasks of underactuated vessels.
Figure 11 compares the signal trigger times of and under ESM and continuous control schemes, and implies that the number of transmissions is significantly reduced, effectively lowering the update frequency of control signals and alleviating the network.
Figure 12 shows the update time intervals of control commands
and
under the ETM scheme. The results show that the trigger time interval of
and
is bounded, which can prevent the occurrence of Zeno behavior.
According to the simulation results in
Figure 3,
Figure 4,
Figure 5,
Figure 6,
Figure 7,
Figure 8,
Figure 9,
Figure 10,
Figure 11 and
Figure 12, it can be known that the output feedback berthing control scheme based on event sampling proposed in this paper has strong robustness and adaptive ability for the uncertainties inside and outside the ship. It can effectively suppress the interference of FDI attacks in the S-C channel to the system, reduce the waste of network resources, and achieve a satisfactory berthing effect.
5. Conclusions
This work developed an ESM automatic berthing control strategy for the berthing control issue of underactuated ships under FDI attack. To minimize the deterioration of control performance by FDI attack signals entering the closed-loop system, an event-sampled adaptive neural network state observer is designed, where a non-periodic event-sampling in the position channel is implemented, and mitigates stability degradation from position FDI attacks. By means of differential homeomorphic transformation, an equivalent motion model of underactuated ships considering FDI attack is established. On this basis, by using the designed observer, adaptive neural network technology, and the preset performance control method under the backstepping design framework, a new nonlinear error transformation is proposed to constrain the bow direction and yaw rate of the ship, and an automatic berthing control solution with offline predefined performance is developed. Meanwhile, to further reduce the network resource consumption and load caused by the transmission of control signals, an ETM in the C-A channel is established. The entire design implements integrated S-C and C-A dual-channel triggering, which alleviates network bandwidth constraints. Lyapunov-based stability analysis proves that the uniform ultimate boundedness of all closed-loop signals is ensured. The simulation test also proved that this scheme is effective, and the results imply that the developed control scheme can force underactuated ships to complete berthing operations and reduce the impact of FDI attacks on berthing tasks in practical engineering applications, and has good control performance.
It should be pointed out that, to avoid the FDI attack signals from entering the closed-loop system through the sensor–controller channel and worsening the berthing control performance as much as possible, the event-sampled mechanism is used to sample the position and heading data. In this context, some position and heading data must inevitably be lost, which could lead to the degradation of control performance. To improve control performance, further work is needed to develop a novel algorithm to compensate for the signal loss caused by the event-sampled mechanism.