1. Introduction
Ship docking is a critical operation in ship repair, maintenance, and construction, during which large vessels are maneuvered at low speeds into confined dock chambers with limited clearance from the dock walls and end structures [
1,
2,
3,
4]. In this study, docking refers specifically to the low-speed entry of a ship into a dry-dock chamber rather than conventional berthing alongside a quay. Compared with open-water navigation, ship motion during docking is more strongly affected by shallow water, blockage, and hull–boundary interactions. Even small deviations in ship position or heading may lead to contact with the surrounding structures, causing structural damage, operational delays, and economic losses. Accurate short-term motion prediction and timely collision-risk warning are therefore essential for improving the safety of ship docking operations.
Automatic berthing and docking have been extensively investigated as important components of autonomous ship operation. Early studies generally formulated berthing as a nonlinear control or optimal maneuvering problem and determined the rudder, propeller, and thruster commands required to reach a prescribed terminal position and heading. Artificial neural networks were subsequently introduced to approximate nonlinear berthing control laws and improve real-time implementation [
5,
6,
7]. Recent reviews have shown that automatic berthing research has progressively expanded to path planning, path following, direct optimal control, model predictive control, supervised learning, reinforcement learning, and collision-free trajectory generation [
8,
9,
10,
11,
12,
13,
14,
15,
16]. These methods have considerably improved trajectory tracking, disturbance rejection, terminal-state accuracy, and control adaptability. However, their primary objective is generally to determine how a ship should be controlled to reach a target berth, while the underlying ship-motion model is commonly treated as a known or previously identified component. The accuracy of hydrodynamic-force prediction in highly confined dock chambers has received comparatively less attention.
Accurate prediction of low-speed ship motion is a prerequisite for both automatic docking control and collision-risk assessment. Classical ship maneuvering models include the Nomoto, Abkowitz, and MMG formulations [
17,
18,
19,
20]. Among them, the MMG model has been widely adopted because it provides a physically interpretable and modular representation of the forces generated by the hull, propeller, and rudder. Empirical hydrodynamic derivatives and maneuverability prediction methods have also been developed for general, shallow-water, and restricted-water conditions [
21,
22,
23,
24]. These physics-based models are computationally efficient and suitable for real-time simulation. Nevertheless, their hydrodynamic coefficients are commonly derived from empirical formulas, captive model tests, or regression relationships. Their prediction accuracy may deteriorate inside dock chambers, where shallow-water effects, dock–wall interaction, and blockage occur simultaneously and produce strongly coupled nonlinear hydrodynamic forces.
High-fidelity computational fluid dynamics provide an effective approach for resolving nonlinear ship–flow interactions and has increasingly been used to calculate maneuvering forces, construct hydrodynamic databases, and support reduced-order or data-driven modeling [
25,
26]. However, the computational cost of CFD generally prevents its direct application to real-time docking prediction. Machine-learning methods, including support vector regression (SVR), can instead establish efficient nonlinear mappings between ship states and hydrodynamic responses [
27]. More broadly, physics-based learning, physics-informed modeling, and hybrid physics–data architectures have attracted increasing attention because they combine the interpretability and physical consistency of mechanistic models with the nonlinear approximation capability of data-driven methods [
28,
29,
30,
31]. In particular, residual-learning strategies use numerical or experimental data to estimate the discrepancy between a baseline physical model and high-fidelity results, thereby improving prediction accuracy without completely replacing the physical model. Nevertheless, such hybrid approaches have rarely been applied to hydrodynamic-force correction and short-term motion prediction for ships operating inside highly confined dock chambers.
Collision-risk assessment and early warning have also been widely studied for conventional and autonomous navigation. Existing methods include AIS-based risk identification, ship-domain models, velocity-obstacle methods, time-varying collision-risk measures, and regional risk-monitoring approaches [
32,
33,
34,
35,
36,
37]. Most of these methods address ship–ship encounters in open waters or traffic waterways, where risk is determined from the relative motion between the own ship and one or more target ships. Ship docking presents a substantially different warning problem. The potential collision objects are fixed dock walls and the dock end, the available clearances are much smaller, and collision risk depends on the future position and orientation of the complete hull rather than only on the trajectory of the ship center. Moreover, low-speed hydrodynamic interactions may cause the actual motion to deviate considerably from constant-velocity extrapolation. Conventional closest-point-of-approach and ship-domain methods are therefore not directly applicable to docking-oriented boundary warning without reformulating the collision geometry and motion-prediction model.
Recent collision-risk studies nevertheless provide useful concepts for docking-assistance systems. Namgung and Kim [
38] linked collision-risk levels with response distance, collision-risk indices, and avoidance timing, highlighting that risk assessment should describe not only spatial severity but also the time available for operational response. Namgung [
39] further connected risk inference with local collision-risk planning through ship-domain constraints and the velocity-obstacle method. Lee et al. [
40] proposed a collision-case-based framework for constructing representative validation scenarios from accident trajectories and operating conditions. A recent review by Namgung et al. [
41] classified autonomous-ship path-planning and collision-risk methods according to their algorithmic characteristics, explainability, computational cost, and implementation requirements. Although these studies mainly concern ship–ship encounters, they demonstrate the importance of connecting motion prediction, spatial safety constraints, temporal urgency, representative testing scenarios, and subsequent decision support.
Despite this progress, an integrated framework for ship docking motion prediction and early warning remains insufficiently developed. Automatic-berthing studies mainly emphasize planning and control, whereas conventional maneuvering models may not reproduce the complex restricted-water effects inside a dock chamber with sufficient accuracy. CFD and data-driven surrogates can improve hydrodynamic prediction, but their integration with docking-specific motion prediction and warning remains limited. Existing navigation-warning methods also primarily address ship–ship encounters rather than future clearances between the complete hull envelope and fixed dock boundaries. Moreover, docking-oriented approaches rarely combine predicted spatial clearance with the time remaining before a safety threshold is reached. A unified framework is therefore needed to link restricted-water hydrodynamic correction, short-term trajectory prediction, hull-envelope reconstruction, and graded spatiotemporal warning.
To address these gaps, this study develops a shore-based docking-assistance framework that integrates an MMG-based 3-DOF bare-hull physical model, CFD-assisted SVR residual correction, short-term trajectory prediction, and hull-to-boundary risk evaluation. Three SVR models are used to learn the component-wise discrepancies between the CFD results and the baseline predictions of longitudinal force, lateral force, and yaw moment. The corrected loads are propagated through the equations of motion to predict the future ship trajectory, from which the hull envelope, minimum lateral and longitudinal clearances, and times to safety-threshold crossing are evaluated. Rather than replacing the physical model with a black-box surrogate, the proposed approach retains the maneuvering equations and uses CFD as an offline source of residual data. The hydrodynamic prediction is assessed using three condition-level CFD holdout cases, while warning timing and computational efficiency are examined separately through proof-of-concept cases. The framework provides graded warning information for shore-based docking assistance but does not directly generate corrective trajectories or actuator commands.
3. Construction of the CFD-Based Correction-Force Database for Ship Docking
To train the SVR-based error correction model described in
Section 2.4, a CFD-based correction-force database is constructed in this section. The purpose of the database is to provide the residual force and moment components between the high-fidelity CFD results and the baseline physical-model predictions under representative ship docking conditions. These residuals are then used as the target outputs for training the SVR models.
The construction of the database consists of three steps. First, the CFD method is validated using an available benchmark case involving ship motion in a restricted waterway. Second, a series of representative docking conditions are designed by varying the ship geometry and docking state parameters. Third, the longitudinal force, lateral force, and yaw moment obtained from CFD simulations are compared with the corresponding baseline physical-model predictions, and the correction terms are extracted according to Equation (24).
3.1. CFD Validation for a Benchmark Restricted-Water Case
Before constructing the correction-force database, the reliability of the CFD method for predicting ship hydrodynamic forces in restricted waters is examined. Since the publicly available benchmark data for ship motion in dry docks are limited, the open model-test case of a 12,000 TEU container ship entering the Panama Canal lock [
4] is selected for CFD validation. The lock-entry and dry-dock-entry configurations share several important hydrodynamic characteristics, including low-speed ship motion, shallow-water effects, high blockage, and strong interaction between the hull and nearby side walls. Therefore, the lock-entry case provides a useful benchmark for assessing the capability of the numerical method to predict the principal hydrodynamic forces and moments associated with ship motion in restricted waters.
Nevertheless, the two configurations are not identical. Lock entry is primarily a passage-like maneuver through a confined channel or chamber, whereas dry-dock docking includes the progressive approach to the dock end, a continuously decreasing longitudinal clearance, and a final stopping and positioning stage. Consequently, the relative importance of side-wall interaction, end-boundary effects, longitudinal flow restriction, and ship-control inputs may differ between the two operations. The present benchmark is therefore used to validate the general restricted-water CFD methodology rather than to provide direct validation of all dry-dock-specific hydrodynamic effects.
The model scale ratio of the 12,000 TEU container ship is 1:80, and the main particulars of the ship model are listed in
Table 1.
The computational domain and boundary conditions are shown in
Figure 2. The CFD simulations are performed using STAR-CCM+. The overset mesh technique is adopted to describe the ship motion. The aft and top boundaries of the computational domain are set as pressure outlets, while the remaining boundaries are treated as no-slip walls. The realizable k-ε turbulence model is used, and the volume of fluid (VOF) method is employed to capture the free surface. The near-wall region is treated using the two-layer all y+ wall treatment, with (30 < y+ < 300). The maximum number of inner iterations is set to 10, and the time step is 0.02 s. The realizable
k–
ε model was selected because it provides a robust compromise between accuracy and computational cost for separated, rotational, and free-surface ship flows and is compatible with the two-layer all-
y+ treatment over the present near-wall resolution. This balance is important because the CFD calculations are used to generate a multi-condition correction-force database rather than a single validation case.
A mesh-sensitivity analysis was performed for the representative lock-entry validation condition using coarse, medium, and fine meshes containing approximately 4.5 million, 6.0 million, and 9.0 million cells, respectively. The medium mesh is shown in
Figure 3. The mesh topology and local refinement regions near the hull, free surface, overset interface, and narrow hull–wall gap were kept consistent among the three meshes, while the physical models, boundary conditions, and solver settings remained unchanged.
Figure 4 compares the longitudinal force
X, lateral force
Y, and yaw moment
N obtained using the three meshes with the experimental measurements. All three meshes reproduce the overall magnitude and variation trends of the measured hydrodynamic loads, while the medium- and fine-mesh results are particularly close. The comparison provides a qualitative assessment of mesh sensitivity rather than a formal grid-convergence or numerical-uncertainty analysis. Because the predictions obtained using the medium and fine meshes are close over most of the investigated trajectory, the medium mesh was adopted as a compromise between computational cost and numerical resolution.
3.2. Design of Docking Conditions for Database Construction
After the CFD method is validated, a series of ship docking conditions are designed to construct the correction-force database. The database includes 23 CFD conditions in total: 20 model-development conditions and 3 independent holdout conditions. The full-scale dock dimensions are 280 m × 40 m × 13.6 m. Two representative hull forms are considered: a KCS container ship with
= 230 m and a rescaled KVLCC2-type tanker with
= 160 m. The original KVLCC2 hull form (
= 320 m) is uniformly rescaled in its principal dimensions by a factor of 0.5 to ensure compatibility with the selected dock geometry, while the loading-dependent variations in draft and displacement are specified separately in
Table 2. Subsequently, a geometric scale ratio of 1:80 is applied in the CFD simulations, corresponding to model-scale ship lengths of 2.875 m for the KCS and 2.000 m for the rescaled KVLCC2.
The input feature vector used for SVR training consists of two groups of variables: ship-geometry-related parameters and docking-state-related parameters. The ship-geometry-related parameters include the dimensionless displacement volume, breadth, draft, and block coefficient. The docking-state-related parameters include the docking speed, heading angle, and lateral offset from the dock centerline.
The CFD correction database was constructed using prescribed constant-speed docking conditions. Within each condition, the reference speed was set equal to the initial longitudinal speed , and u′ = 1 for all CFD samples. This design assumes that, during the investigated low-speed docking stage, the longitudinal speed varies gradually and the residual hydrodynamic corrections can be approximated using a quasi-steady formulation. Abrupt acceleration, rapid braking, and longitudinal-speed reversal are therefore outside the scope of the present database. Different reference-speed levels were included through to represent the effect of docking speed while avoiding the substantially higher computational cost of continuously accelerated CFD simulations.
The ship-geometry-related parameter combinations are listed in
Table 2. Six combinations are defined and denoted by A to F. These combinations cover different ship types and loading conditions, thereby providing variation in the main geometric parameters of the training samples.
The docking-state-related parameter combinations are listed in
Table 3. Twelve combinations are considered, including different docking speeds, heading angles, and lateral offsets for KCS and KVLCC2 ship hulls. These combinations are designed to represent typical low-speed docking states and small deviations from the dock centerline.
The training database is constructed by combining selected ship-geometry-related parameter sets with the docking-state-related parameter sets. For KCS, parameter sets A and B were combined with docking-state sets 1 and 2, whereas parameter set C was combined with sets 1–6. For KVLCC2, parameter sets D and E were combined with docking-state sets 7 and 8, whereas parameter set F was combined with sets 7–12. These combinations yielded 20 model-development conditions.
Three additional CFD conditions were excluded from all stages of model development and used only for condition-level holdout evaluation. The KVLCC2 tanker was used in all three holdout tests. Relative to the training conditions, Test 1 represents an unseen loading/draft combination, Test 2 an unseen heading angle, and Test 3 an unseen lateral offset. According to the feature order , the input feature vectors for Tests 1–3 are [0.0019, 0.18125, 0.013, 0.8098, , 0, 0, 0.00202], [0.00095, 0.18125, 0.0065, 0.8098, , 0, 0.5, 0.00202] and [0.00095, 0.18125, 0.0065, 0.8098, , 0.00125, 0, 0.00202], respectively, where denotes the instantaneous dimensionless longitudinal position and varies along each docking trajectory.
3.3. Extraction of Correction-Force Samples
For each docking condition, CFD simulations are conducted to obtain the longitudinal force, lateral force, and yaw moment at different ship positions during the docking process. The corresponding baseline physical-model predictions are then calculated using the method described in
Section 2.3. The correction terms are obtained as the residuals between the CFD results and the baseline physical-model predictions:
For each sample, the input is the feature vector
, and the outputs are the three correction terms
,
, and
. The correction-force database is therefore constructed in the following form:
For the 20 training conditions, 2889 data samples are extracted from each condition, resulting in a total of 57,780 training samples. These samples are used to train the three SVR models for longitudinal force correction, lateral force correction, and yaw moment correction, respectively. Although 2889 data samples were extracted from each CFD simulation, the samples within the same docking condition belong to a continuous physical trajectory and are strongly correlated. Therefore, the effective number of independent observations is determined primarily by the number of physical docking conditions rather than by the total number of extracted data points.
The correction-force database comprises 23 independent CFD docking conditions, and each condition contains a large number of data samples extracted at successive ship positions during the docking process. Presenting the correction-force histories for all conditions would be repetitive and would require excessive space. Therefore, one representative condition is selected to illustrate the structure and variation characteristics of the extracted residual data. For this condition, the ship-geometry-related parameters correspond to set B in
Table 2, and the docking-state-related parameters correspond to set 2 in
Table 3. The resulting longitudinal-force, lateral-force, and yaw-moment correction terms are shown in
Figure 5.
5. Ship Docking Collision-Risk Early-Warning Model Based on Physics–SVR Motion Prediction
Based on the physics–SVR motion prediction model established in the previous sections, a collision-risk early-warning model was further developed for ship docking. The basic idea is to predict the future trajectory of the ship within a specified time window and then evaluate the collision risk according to the minimum clearance between the predicted hull envelope and the dock chamber boundaries.
5.1. Overall Workflow of the Collision-Risk Early-Warning Model
The proposed method is primarily intended for integration into a shore-based docking-assistance system that provides real-time warning information and decision support for dock operators. In practical use, the current ship position, heading, velocity, and yaw rate may be obtained from available ship–shore monitoring and positioning systems, while the ship particulars and dock geometry are stored in advance. The physics–SVR model predicts the future ship trajectory and evaluates the lateral and longitudinal clearances to the dock boundaries. The resulting warning information is presented to the operator, who remains responsible for determining the appropriate operational response in combination with tug capability, positioning-system status, environmental conditions, and established docking procedures.
During ship docking, the instantaneous ship position, heading, and velocity components are updated at each time step. The SVR input vector χ(t) is constructed using the ship particulars, the instantaneous position and heading [x′(t), y′(t), ψ(t)], and the reference-speed parameter . The instantaneous velocity components u(t), v(t), and r(t) are used in the 3-DOF physical model but are not included as independent SVR predictors. The trained physics–SVR model then predicts the hydrodynamic force and moment, and the future ship trajectory is obtained by solving the 3-DOF equations of motion.
After the future trajectory is predicted, the hull envelope is reconstructed at each predicted time instant. The minimum clearances between the hull envelope and the left dock wall, right dock wall, and dock end are then calculated. Based on these distances, the lateral collision risk and longitudinal collision risk are evaluated separately. Finally, the warning status is determined according to the predefined warning criteria.
In the present numerical verification, the prediction horizon is set to = 120 s. This two-minute horizon was selected as a scenario-specific compromise: it provides sufficient look-ahead for operators to identify a developing risk, communicate instructions, and initiate tug or positioning-system intervention, while limiting the accumulation of uncertainty in longer-horizon motion prediction. It is used for proof-of-concept validation rather than as a universal operational setting.
In practical applications, should be calibrated according to ship length, docking speed, remaining clearance, operator reaction time, tug or positioning-system response, and available stopping distance. Larger or faster ships and slower response systems generally require a longer horizon. Because full-scale response-time and stopping-distance data were unavailable, further calibration using shipyard operational data is required before practical deployment.
5.2. Calculation of the Minimum Clearance Between the Hull Envelope and the Dock Chamber Boundary
During ship docking, collision risk is evaluated according to the clearance between the hull and the dock chamber boundaries. In this study, the hull contour in the horizontal plane is approximated by a rectangular envelope. The four characteristic points of the hull envelope are expressed as
where (
x0,
y0) is the predicted or measured position of the ship center, ψ is the heading angle, and L and B are the ship length and breadth. The corner-marker coefficient pairs are defined, without repetition, as (ε
1, ν
1) = (1, 1), (ε
2, ν
2) = (1, −1), (ε
3, ν
3) = (−1, −1), and (ε
4, ν
4) = (−1, 1), corresponding respectively to the four corners of the rectangular hull envelope.
At each predicted time instant, the lateral clearance to the left and right dock walls and the longitudinal clearance to the dock end are calculated from the four hull-envelope points. The instantaneous minimum lateral clearance and longitudinal clearance are denoted as and , respectively.
Within the prediction time window
Tp, the minimum predicted lateral and longitudinal clearances are defined as
Here, and are the minimum predicted lateral and longitudinal clearances over the future horizon . The use of the same prediction-offset variable in Equations (31a)–(31e) ensures consistent notation.
In addition to the minimum predicted clearances, the first future instant at which either predicted clearance reaches its corresponding safety threshold is calculated to characterize the temporal urgency of the risk. The lateral and longitudinal times to threshold are defined as follows:
If a predicted clearance does not reach its safety threshold within the prediction horizon, the corresponding time to threshold is assigned as +∞. The overall time to threshold is the earlier of the lateral and longitudinal values and therefore represents the earliest predicted entry into either unsafe-clearance region. Thus, the minimum predicted clearance characterizes spatial severity, whereas the time to threshold characterizes temporal urgency.
The rectangular representation is adopted as a computationally efficient approximation for repeated clearance evaluation over the prediction horizon. In the present implementation, the rectangle is treated as an outer envelope defined by the selected ship length and breadth. It therefore generally gives a minimum clearance that is no greater than that obtained from the actual plan-view hull contour, providing a conservative basis for warning. The approximation becomes more conservative when a heading deviation exists because the rectangular bow and stern corners project toward the dock boundaries, whereas the actual bow and stern contours are tapered. Consequently, the rectangular envelope may underestimate the actual clearance and trigger the warning earlier, particularly as the heading deviation increases. It is therefore intended for conservative risk screening rather than exact geometric clearance estimation. For applications requiring higher geometric fidelity, the same framework can replace the rectangle with a polygonal waterline contour or a CAD-derived hull boundary without changing the motion-prediction and warning logic.
5.3. Warning Criteria
During ship docking, collision risk is evaluated separately in the lateral and longitudinal directions. Lateral risk refers to the possibility that the hull approaches or contacts either dock wall, whereas longitudinal risk refers to the possibility that the bow approaches or contacts the dock end. The instantaneous lateral and longitudinal clearances are denoted by , and , respectively. The minimum clearances predicted over the future horizon are denoted by and . The corresponding safety thresholds are and .
The thresholds used in the present study are scenario-specific engineering margins rather than universal regulatory limits. For the KCS-based warning-validation cases, the full-scale ship length and breadth are
and
, while the dock chamber length and width are
and
, respectively. When the ship is centered and aligned with the dock, the nominal one-side lateral clearance and longitudinal geometric allowance are
Accordingly, the lateral threshold of corresponds to approximately of the nominal one-side lateral clearance, while the longitudinal threshold of corresponds to of the available longitudinal allowance. These ratios provide a transparent geometric basis for the selected values, but they should not be interpreted as generally applicable safety factors.
The difference between the two absolute thresholds reflects the different operational characteristics of lateral and longitudinal risk. Lateral motion develops within a relatively small side clearance and is directly associated with hull–wall proximity. Longitudinal risk, by contrast, involves the forward inertia of the ship and requires sufficient distance for command communication, tug-force development, positioning-device actuation, and operator intervention. A larger absolute longitudinal margin is therefore adopted. Nevertheless, because tug and positioning-system dynamics and measured response times are not included in the present model, the threshold represents a qualitative operational allowance rather than a value derived from a calibrated stopping-distance model.
For application to other ship–dock combinations, the thresholds may be expressed in a normalized form as
where
and
are operational safety factors. For the present numerical verification,
and
are adopted. Before practical implementation, these factors should be recalibrated using the actual ship dimensions, dock geometry, approach speed, stopping characteristics, tug or positioning-system capability, communication and actuation delays, measurement uncertainty, prediction uncertainty, environmental disturbances, and shipyard operating procedures. The adopted warning thresholds and their physical interpretations are summarized in
Table 7.
Table 7.
Warning-threshold settings.
Table 7.
Warning-threshold settings.
| Risk Category | Safety Threshold | Physical Meaning |
|---|
| Lateral risk | | Scenario-specific margin: 1 m is approximately 26% of the nominal one-side lateral clearance of 3.9 m for the KCS in the 40 m-wide dock. |
| Longitudinal risk | | Scenario-specific margin: 10 m is 20% of the 50 m longitudinal geometric allowance; the larger absolute value provides stopping and operational-response margin. |
Based on these thresholds, the docking state is classified as normal, warning alert, or emergency alarm. A warning alert is issued only when the current clearance remains outside the unsafe region but the predicted minimum clearance crosses the corresponding threshold within the prediction horizon. This definition separates a predictive warning from an emergency condition that has already occurred.
When either condition in Equation (32a) or Equation (32b) is satisfied, the first predicted time at which a safety threshold is reached must lie within the selected prediction horizon:
The emergency alarm is determined from the instantaneous clearances and is activated when the hull has already entered either unsafe-clearance region:
When the emergency alarm is activated,
is taken as zero. If no threshold crossing is predicted within
, the corresponding time to threshold is assigned as
. The warning output therefore includes the dominant risk direction, the minimum predicted clearance, and the time to threshold. The minimum clearance characterizes spatial severity, whereas the time to threshold characterizes temporal urgency. Inspired by the spatiotemporal risk-inference concept in [
38], this combination provides dock operators with both the magnitude of the boundary-approach risk and the time available for operational response.
Under this classification, the normal state applies when neither the predictive-warning conditions nor the emergency condition is satisfied. The adopted logic therefore avoids simultaneous classification as warning and emergency and provides a clear progression from normal operation to predicted risk and, finally, to immediate danger.
5.4. Validation of the Collision-Risk Early-Warning Model
To validate the proposed collision-risk early-warning model, three warning-validation conditions are selected for numerical verification. In each validation case, the CFD simulation results are used as the reference trajectory and contact-time data. During the verification process, the current ship state is updated according to the CFD simulation results. At each prediction update, the SVR input vector χ(t) is constructed using the current position and heading, while FrU remains fixed at the value corresponding to the initial/reference docking speed. The instantaneous velocity components u(t), v(t), and r(t) are updated through the 3-DOF equations but are not supplied as independent SVR predictors. The coupled physics–SVR equations are then solved to predict the ship trajectory over the subsequent 120 s.
Based on the predicted trajectory, the hull envelope is reconstructed, and the minimum lateral and longitudinal clearances and times to threshold are calculated according to Equations (30a)–(31e). The warning status is then determined using the criteria in
Section 5.3. The warning results are compared with the CFD-based reference contact time to evaluate whether the proposed model identifies the risk before physical contact.
The present proof-of-concept evaluation focuses on whether the warning states are activated before the CFD-reference contact and on the associated warning lead times. The minimum predicted clearances and times to threshold are calculated internally as part of the warning-state determination but are not reported separately in the present evaluation. Accordingly, the results are summarized in terms of the warning-alert time, emergency-alarm time, contact time, and the corresponding lead times.
Three warning-validation conditions are considered, including two hazardous cases and one non-hazardous control case. For condition 1, the principal-dimension vector is []; the initial motion-state vector is []. For condition 2, the principal-dimension vector is []; the initial motion-state vector is []. For condition 3, the principal-dimension vector is []; the initial motion-state vector is [].
The verification results show that for warning-validation condition 1, the warning alert is issued at
t = 1240.2 s, the emergency alarm is triggered at
t = 1350.1 s, and contact occurs at
t = 1395.1 s. Therefore, the warning-alert lead time is 154.9 s, and the emergency-alarm lead time is 45.0 s. In warning-validation condition 2, the warning alert is issued at
t = 632.6 s, the emergency alarm is triggered at
t = 688.2 s, and contact occurs at
t = 804.69 s. Therefore, the warning-alert lead time is 172.09 s, and the emergency-alarm lead time is 116.49 s. The warning-alert and emergency-alarm lead times are calculated relative to the CFD-reference contact time. It should be noted that the warning-alert lead time may exceed the 120 s prediction horizon. This is because the warning alert is activated when the model predicts that a safety threshold will be crossed within the subsequent 120 s, whereas physical contact with the dock boundary may occur later than the safety-threshold crossing. The validation results are summarized in
Table 8.
The results indicate that the proposed early-warning model can identify the two investigated boundary-approach risks before the corresponding CFD-reference contact events. The warning alert is triggered earlier than the emergency alarm because it is based on the predicted future trajectory rather than only the current hull position. The emergency alarm provides a final risk indication when the current clearance has already fallen below the safety threshold. Therefore, the proposed graded warning strategy can provide both early risk identification and immediate danger indication during ship docking.
Compared with a warning strategy based only on the current hull position, the proposed method evaluates the future motion trend of the ship and can provide a larger time margin for operational adjustment. This demonstrates the potential of the physics–SVR-based motion prediction model for supporting collision-risk decision-making in restricted dock chambers.
The computational efficiency of the proposed method was also evaluated for the complete online prediction and warning procedure, including physics–SVR inference, 3-DOF trajectory prediction over the 120 s horizon, hull-envelope reconstruction, clearance calculation, and warning-state determination. The calculation was performed on a computer equipped with an Intel Core i7-14700K processor (2.50 GHz) and 32 GB RAM, using MATLAB R2024b. After 10 warm-up runs, the complete procedure was repeated 100 times. The mean and maximum computation times per update were 0.32 s and 0.51 s, respectively. These computation times are sufficiently short for repeated online prediction and warning updates, demonstrating the practical computational efficiency of the proposed shore-based docking-assistance framework.
6. Conclusions
This study proposes a physics–SVR-based framework for ship docking motion prediction and collision-risk early warning in restricted dock chambers. First, a three-degree-of-freedom maneuvering model is established based on the MMG framework to provide baseline estimates of the longitudinal force, lateral force, and yaw moment acting on the ship. The baseline model incorporates empirical hull-force components, restricted-water correction terms, and added-mass coefficients. Because empirical formulations cannot fully represent the complex hydrodynamic effects induced by the dock walls, dock bottom, and high blockage, a CFD-based correction-force database is constructed using the residual forces and moments between the high-fidelity CFD results and the baseline physical-model predictions.
Based on this database, three SVR models are developed to predict the correction terms for the longitudinal force, lateral force, and yaw moment, respectively. These correction terms are superimposed on the baseline physical-model results to obtain the final hydrodynamic forces and moment of the physics–SVR model. The validation results show that the proposed model can effectively learn the systematic residuals of the baseline physical model. A paired evaluation under the three independent holdout conditions directly compares the baseline physical model with the physics–SVR model using the same CFD reference data and error definitions. The overall relative errors are reduced from 23.98%, 22.00%, and 30.20% for the baseline model to 19.61%, 14.91%, and 19.93% for the physics–SVR model, corresponding to reductions of 18.22%, 32.23%, and 34.01%, respectively. These results demonstrate that the performance gain is produced by the SVR residual correction while the physical interpretability and computational efficiency of the maneuvering model are retained.
A docking-specific collision-warning framework is further established by combining the physics–SVR motion predictor with future hull-envelope reconstruction. The framework evaluates the minimum lateral and longitudinal clearances between the predicted hull envelope and the dock boundaries and calculates the corresponding times to safety-threshold crossing. The minimum predicted clearance characterizes the spatial severity of the boundary-approach risk, whereas the time to threshold represents its temporal urgency. Accordingly, the docking process is classified into three operational states—normal, warning alert, and emergency alarm—with two alarm levels. Validation under two hazardous docking conditions shows that the model can identify potential collision risks before physical contact occurs. The warning-alert lead times are 154.9 s and 172.09 s, respectively, while the emergency-alarm lead times are 45.0 s and 116.49 s, respectively. The proposed method therefore transforms predicted ship motion into spatial and temporal risk information and can serve as a shore-based docking-assistance and decision-support tool for dock operators. The present framework provides warnings and response-time information but does not directly generate corrective routes or actuator commands.
The generalizability of the present results is constrained by six principal limitations. First, all numerical cases were conducted under calm-water conditions. The reported prediction error and warning lead times therefore represent low-disturbance conditions and may change when wind, waves, or currents modify the hydrodynamic loads and ship trajectory. Second, the three-degree-of-freedom model resolves only surge, sway, and yaw motions. It is therefore primarily applicable to horizontal-plane, low-speed docking and does not quantify heave, roll, pitch, or variations in vertical under-keel clearance, which may become important in waves or extremely shallow water. Third, the physics–SVR model was trained and evaluated mainly using CFD-generated data, while the CFD method was assessed against a restricted-water lock-entry benchmark rather than a dedicated dry-dock docking experiment. Although lock entry and dry-dock entry share hydrodynamic mechanisms associated with shallow water, blockage, and hull–side-wall interaction, the benchmark does not fully reproduce the progressive approach to the dock end or the final stopping and positioning stage. The reported accuracy should therefore not be interpreted as direct experimental validation of all dry-dock-specific hydrodynamic effects or as full-scale accuracy. Numerical uncertainty, scale effects, and extrapolation beyond the investigated ship types, dock geometries, and operating ranges may reduce model transferability. Fourth, towing and positioning forces were set to zero, and the coupled dynamics of the ship, tugs or positioning devices, and cables were not modeled. The present results therefore validate the hydrodynamic prediction and warning framework rather than a complete closed-loop docking operation. In addition, the rectangular hull envelope provides a computationally efficient but conservative representation of the actual waterline geometry, particularly at nonzero heading angles. Fifth, the warning framework was evaluated using a limited number of parametrically constructed hazardous docking conditions rather than scenarios reconstructed from actual dry-dock collision cases. Although the selected conditions represent typical hull-to-boundary approach risks, they may not fully reproduce the coupled operational, environmental, equipment-related, and human-response characteristics of real accidents. Consequently, the present validation demonstrates the basic effectiveness of the warning logic under the investigated conditions but does not establish its reliability across the full range of accident-like docking scenarios. Sixth, the CFD correction database was generated under prescribed constant-speed conditions. Consequently, the SVR models do not explicitly learn acceleration-dependent, deceleration-dependent, or hydrodynamic-memory effects. The present formulation assumes that the longitudinal speed varies gradually during the investigated low-speed docking stage and may be less accurate during abrupt acceleration, rapid braking, speed reversal, or strongly transient tug-assisted maneuvers.
Future work will incorporate environmental disturbances and the relevant vertical and rotational degrees of freedom, quantify CFD and trajectory-prediction uncertainty, and validate the framework using additional ship types, dedicated dry-dock model tests, and full-scale operational data. Following the collision-case-based scenario-development concept proposed by Lee et al. [
40], a structured hazardous-docking scenario library will be developed using available accident investigation reports, operational records, trajectory data, and expert knowledge. Accident-relevant features will be mapped to docking-state variables, dock geometry, environmental disturbances, equipment capability, and operational response delays. The resulting scenarios will be used to evaluate false alarms, missed alarms, clearance-prediction errors, warning lead times, and system robustness under conditions that more closely reflect real docking accidents. Polygonal waterline contours or CAD-based hull geometries will also replace the rectangular envelope to improve minimum-clearance estimation and quantify its influence on warning timing.
Building on hierarchical collision-risk inference concepts developed for COLREGs-compliant ship–ship collision avoidance [
38], a continuous and adaptive docking-risk index will be investigated by integrating minimum clearance, time to threshold, boundary-approach rate, heading deviation, prediction uncertainty, and operation-specific response capability. Adaptive thresholds and operator-oriented risk outputs will also be developed for different ship–dock–control-system combinations. Inspired by autonomous-ship local route-planning architectures [
39], the present motion-prediction and warning framework will subsequently be connected to a docking-specific local decision module. Candidate corrective trajectories and speed profiles will be generated subject to dock-boundary safety constraints, ship maneuvering dynamics, tug or positioning-system capabilities, cable dynamics, and operational response limits. The corresponding optimization objectives will consider minimum clearance, centerline deviation, heading error, control effort, and available response time. Consistent with the broader trend toward reliable, explainable, and integrated intelligent-navigation architectures summarized in [
41], these extensions will preserve physically traceable prediction results and operator oversight while progressively linking warning outputs with higher-level planning and decision-support modules.