1. Introduction
In recent years, the rapid advancement of technology and the growing demand for marine applications have brought unmanned surface vehicles (USVs) into increasing prominence. As a new class of vessels, USVs are capable of operating autonomously or under remote control on the water’s surface without direct human intervention. They have become essential tools and platforms in various fields such as marine scientific research, resource exploration, environmental monitoring, maritime patrol, reconnaissance, mine sweeping, and maritime defense [
1]. By extending the capabilities of traditional vessels, USVs offer improved operational flexibility, reduced human risk, and enhanced efficiency, making them vital assets in both civilian and military domains [
2].
However, despite their growing importance, USVs face significant operational challenges, particularly when navigating in dynamic and unpredictable marine environments. Variations in wind speed and direction can impact their stability and path control, while waves and ocean currents often cause trajectory deviations, introducing complexity and uncertainty into their motion. Furthermore, high-precision navigation and positioning systems, critical for USV operations, can be severely affected by GPS (Global Positioning System) signal interference at sea, leading to increased positioning errors [
3]. In such conditions, accurate navigation attitude prediction becomes crucial. By precisely forecasting the navigation attitude of USVs, it is possible to achieve high-precision motion control, optimize dynamic responses, and enhance hazard avoidance, thereby ensuring the safe and effective operation of USVs.
To ensure the safe operation of unmanned boats and the successful execution of specific tasks, many researchers worldwide have focused on the field of unmanned boat attitude prediction. However, the methods used are often cumbersome, with poor model generalization, making them difficult to apply to real vessels. Current methods for predicting unmanned boat motion are mainly divided into three categories: mathematical models, statistical models, and machine learning models [
4].
Unmanned boats exhibit six degrees of freedom in motion when navigating in waves: pitch, roll, yaw, surge, sway, and heave. Carrillo S. et al. performed ship motion modeling based on the Nomoto model and determined the KT parameters using the least squares method [
5]. L. W. Yu and others used a potential flow-based five-degree-of-freedom nonlinear time-domain model to quantitatively predict the roll of the KCS (KRISO Container Ship) container ship [
6]. Z. Z. applied Support Vector Machine (SVM) to identify the hydrodynamic derivatives and moments in the Abkowitz model, thereby improving the accuracy of ship maneuvering prediction [
7].
Common statistical prediction methods include regression analysis, gray theory, fuzzy theory, and time-series methods [
8]. These statistical methods typically rely on large amounts of accurate input–output data, using techniques like curve fitting and parameter estimation to solve the mapping relationship between input and output data. Z. G. Zhang and others used a gray model optimization algorithm to optimize the parameters of a fuzzy inference system model, where the optimized model showed good prediction performance for the roll of unmanned boats [
9]. Diez et al. and Serani et al. used the full-order dynamic mode decomposition algorithm to construct the dynamic system for all modes, analyzing and predicting the ship’s motion trajectory in waves [
10]. J. Jiménez and others successfully conducted long-term predictions of energy demand using multivariate statistical analysis methods [
11]. P. C. de Lima Silva and others proposed a forecasting method based on fuzzy time series, which utilizes the fuzzy and stochastic patterns of data to predict points, intervals, and distributions [
12]. Q. Q. Chen and others used an autoregressive model to predict the roll of unmanned boats and proposed an empirical formula for prediction errors in the roll motion of unmanned boats [
13]. H. H. Song and others used the Kalman filtering algorithm to monitor the attitude of unmanned boats, achieving high prediction accuracy [
14].
Machine learning algorithms, such as ANNs (Artificial Neural Networks), are widely used in prediction fields due to their strong nonlinear fitting capabilities [
15]. Moreira and Hao validated the ship longitudinal motion prediction method based on the RNN (Recurrent Neural Network) model using simulation data and model test data, respectively [
16]. Rong Zhen and others proposed a ship trajectory prediction model based on deep learning Long Short-Term Memory (LSTM) networks, achieving promising results. However, the model tends to suffer from overfitting and long-term dependency issues in long-term predictions [
17]. Khan et al. proposed a method that combines backpropagation (BP) neural networks with genetic algorithms and compared it with the ARMA prediction model [
18].
Mathematical model-based prediction does not require large historical data but needs a deep understanding of the system. However, random disturbances and empirically chosen parameters can cause significant errors and poor robustness [
19]. Statistical model-based prediction avoids precise modeling but relies on extensive historical data, resulting in high computational costs. Machine learning excels at identifying patterns and adapting to dynamic, nonlinear environments but requires large amounts of high-quality data and often lacks interpretability [
20].
The emergence of digital twin technology provides a promising solution for real-time attitude prediction and has become a powerful tool for enhancing predictive capabilities across various industries. A digital twin is a virtual representation of a physical system that continuously updates real-time data to enable accurate simulation and prediction. This capability has proven invaluable in many fields, playing a key role in predictive maintenance, control systems, diagnostics, and personalized healthcare. For example, GP. Liu et al. used digital twins to predict the behavior of nonlinear systems, compensating for time delays and unknown dynamics, which improved system performance and provided real-time solutions for complex dynamics under uncertainty [
21]. Haykal et al. applied digital twin technology to predict potential skin issues using patient-specific data, optimizing skin care treatments and creating more effective, personalized strategies [
22]. Cui et al. employed digital twins to predict tail fin control behaviors, improving control accuracy in systems with time-varying parameters and uncertainty [
23]. Smeets et al. used digital twins to predict motorcycle riding profiles, combining data from the motorcycle, environment, and rider behavior to improve riding safety [
24]. Hasan et al. applied digital twins to predict potential system failures in USVs, enhancing maintenance strategies and decision-making [
25]. In the context of USV, attitude prediction must account for complex environmental factors such as wind, waves, and water flow, which introduce nonlinear disturbances—a challenge for traditional models. Digital twins, however, enable high-fidelity modeling by integrating both mechanistic and data-driven approaches, dynamically updating model parameters to improve prediction accuracy, and adapting to changes in complex environments with real-time feedback.
Therefore, this paper proposed an unmanned boat navigation attitude prediction framework that integrates the improved UKF algorithm and digital twin technology. As shown in
Figure 1, the method achieves high-precision dynamic mapping between virtual and real environments through a closed-loop feedback mechanism of the digital twin and filtering algorithms. The core innovations of this paper can be summarized as the following three key contributions:
Development of a digital twin model (DT-Model) for the USV: A high-fidelity modeling approach for complex marine environments is proposed using digital twin technology. This method integrates the kinematics, dynamics, and control models of the USV, as well as environmental disturbance factors, to establish a fully parameterized digital twin model.
Proposal of a Virtual–Real Synchronization Adjustment Mechanism based on the improved UKF algorithm: Multi-source sensor fusion data including GPS and IMU (Inertial Measurement Unit) data are combined with the improved UKF algorithm to perform real-time attitude estimation and model updates. A filter optimization strategy based on dynamic adjustment of the noise covariance matrix is proposed to enable dynamic updates of the digital twin model.
By combining twin data with actual measurement data, a time-domain rolling prediction based on the calibrated model is realized: Using the calibrated digital twin model, a navigation attitude prediction model is developed, and the sliding time window technique is used to perform rolling predictions of future navigation attitudes.
The structure of this paper is organized as follows:
Section 2 constructs a high-fidelity digital twin model of the unmanned boat from multiple perspectives;
Section 3 details the prediction twin model and the improved UKF algorithm for dynamically updating the twin model parameters;
Section 4 verifies the effectiveness of the prediction method through comparative experiments and provides analysis;
Section 5 discusses the technical limitations and future research directions, culminating in the research conclusions.
2. Problem Description
To accurately predict the navigation attitude of unmanned surface vessels (USVs), digital twin technology offers an effective solution. The development of a digital twin model for the USV is a key component of this approach. Based on the mechanistic model of the USV, a corresponding digital twin model is constructed and dynamically updated using real-time sensor data. This section presents the digital twin method, the mathematical modeling of the USV, and the process of constructing the digital twin model.
2.1. Digital Twin Method
Digital twin technology, originally developed in the field of industrial manufacturing, has been increasingly applied to the modeling and operational management of complex engineering systems. Its core concept involves constructing a virtual model that closely mirrors the physical system, continuously updated using real-time sensor data. In this work, a hybrid modeling approach is adopted for the digital twin, combining physics-based models with data-driven methods. This integration allows the digital twin to leverage the interpretability and generalization of physical models along with the adaptability and predictive capabilities of data-driven techniques. Through this hybrid model, the digital twin enables continuous monitoring, accurate reconstruction, and forward-looking prediction of the system’s operational state.
Beyond serving as a modeling tool for unmanned surface vessel (USV) navigation systems, digital twins also function as key components for real-time state estimation and short-term attitude prediction. In this study, the digital twin method is defined as an integrated technical framework that combines high-fidelity modeling, real-time sensing, data fusion, and predictive analytics. Specifically, real-time sensor data collected from the physical USV is transmitted to the digital twin model, which is iteratively optimized through system identification algorithms to achieve dynamic synchronization between the physical entity and its virtual representation. This process significantly enhances the model’s responsiveness and predictive capability, thereby providing robust technical support for USV navigation and control.
Figure 2 illustrates the architecture of the digital twin USV. This architecture supports bidirectional communication between the physical USV and its virtual model deployed on the digital twin platform, enabling real-time data exchange and model updates. The digital twin platform serves as a comprehensive software environment for the creation, deployment, and management of digital twins. It provides a centralized repository for storing and organizing multi-source sensor data. Upon receiving sensor data, the virtual USV within the platform utilizes an improved Unscented Kalman Filter (UKF) algorithm (as detailed in
Section 3) to reconstruct the vessel’s navigation attitude and estimate related dynamic parameters. Based on this, a prediction model using first-order differences is established to forecast the future navigation attitude of the physical USV, thereby enabling intelligent, data-driven control strategies.
2.2. Construction of USV Mathematical Model
The mechanistic model can accurately capture the motion process of the unmanned surface vehicle (USV) and its interactions with the environment, ensuring that the prediction results align with physical laws and real-world operational conditions. Compared to statistical or machine learning models, mechanistic models offer higher accuracy and interpretability in modeling dynamic systems. Therefore, this study chooses to construct a mathematical model based on the mechanistic model of the USV, which includes the development of the kinematic model, dynamic model, control model, environmental disturbance model, and three-dimensional geometric model of the USV.
2.2.1. Kinematic Model
The kinematic model of the unmanned boat is described using the six-degree-of freedom (6-DOF) motion equations, as shown in
Figure 3. In this paper, the right-handed coordinate system is used. The fixed coordinate system is used to describe the position of the unmanned boat on the water surface, while the body-fixed coordinate system is used to describe its navigation attitude.
In the fixed coordinate system, represents the position vector of the unmanned boat, and represents the attitude vector of the unmanned boat. In the body-fixed coordinate system, represents the velocity vector of the unmanned boat, and represents the angular velocity vector.
The transformation between the two coordinate systems is achieved through a rotation matrix, where the coordinate transformation is defined using Euler angles. The transformation matrix is given by
, where
,
, and
are the rotation matrices about the x, y, and z axes, respectively.
Specifically, Equation (1) defines the transformation from body-fixed velocity components
to position derivatives
in the earth-fixed frame, expressed as
Equation (2) describes the transformation from body-fixed angular velocity components
to the time derivatives of Euler angles
, given by
2.2.2. Dynamic Model
The motion of the USV on the sea can be regarded as the motion of a solid body in a fluid, with the external force and external torque acting on it denoted as
F and
T, respectively.
where
X,
Y, and
Z represent the longitudinal force, lateral force, and vertical force acting on the unmanned vessel, while
K,
M, and
N represent the roll moment, pitch moment, and yaw moment, respectively. As shown in the formula, the external force and torque acting on the unmanned vessel are divided into fluid inertial force
, fluid viscous force
, propeller thrust
, wind force
, and wave force
. Each of these forces and moments can be decomposed into the forces and moments along each axis.
Based on the MMG (Maneuvering Model Group) [
26] modular mathematical model for ship maneuvering, the matrix equation describing the six-degree-of-freedom nonlinear motion of the USV is formulated as
where
represents the mass of the USV, and
,
, and
are the moments of inertia about the x, y, and z axes, respectively.
,
, and
represent the inertia coupling terms of the USV with respect to different axes.
,
, and
denote the offsets of the center of mass relative to the reference point.
In this paper, it is assumed that point O coincides with the position of the center of gravity (G), and that the position of the center of gravity does not shift during navigation. It is also assumed that the unmanned surface vessel (USV) is symmetric about the xz plane, and that its heave, pitch, and roll motions can be neglected [
27]. The research object in this study is a 7.5 m long unmanned surface vessel, and only a three-degree-of-freedom maneuvering mathematical model is sufficient to meet the experimental requirements. Based on these assumptions, the dynamics equation of the USV in three degrees of freedom is simplified from Equation (6) and expressed as Equation (7):
When the unmanned surface vessel (USV) accelerates or decelerates in a fluid, the inertial reaction force from the fluid affects the USV’s navigation attitude. This force is known as the fluid inertia force. According to the literature [
28], its expression is as follows:
where
,
, and
are the added mass and added moment of inertia coefficients of the USV.
The presence of viscous forces causes relative resistance between fluid layers moving at different velocities, thereby affecting the motion of the unmanned surface vehicle (USV). The fluid viscous force acting on the USV is referenced in [
29] as follows, with
, …,
being the viscous force coefficients:
The subject of this study is a twin-propeller unmanned surface vehicle (USV). The thrust it experiences is described by Equation (10):
where
represents the total thrust in the X-direction on the unmanned surface vehicle, synthesized from the thrust components of the two propellers.
denotes the total thrust in the Y-direction, which primarily affects the lateral motion of the vessel.
describes the yawing moment caused by the unbalanced thrust produced by the two propellers; if the two propellers generate different thrusts (i.e.,
), a moment about the Z-axis is produced, leading to yawing of the vessel.
is the distance between the left and right propellers, and
is the longitudinal coordinate of the propellers.
2.2.3. Control Model
The rudder angle of the unmanned boat is controlled through a deflection indicator control model, where the rate of change of the rudder angle
is adjusted based on the deviation between the desired rudder angle
and the actual rudder angle.
where
represents the desired rudder angle (in degrees), i.e., the target rudder angle to be achieved by the control system;
is the inertia slope in the rudder angle response process, describing the rate at which the rudder angle changes over time.
is the sign function, indicating the direction of rudder angle adjustment (positive or negative); when
, the rudder angle is adjusted according to the sign function; when
, the rudder angle no longer changes, indicating that the rudder angle has reached the desired value.
2.2.4. Environmental Disturbance Model
During actual navigation, an unmanned surface vehicle (USV) may encounter environmental disturbances such as wind and waves, which can cause deviations from its intended path. Therefore, the influence of these disturbances on the USV during its movement is considered. This paper models the forces exerted by wind and waves on the USV. The calculation of wind forces is primarily based on aerodynamic principles [
30]. The average wind force and the moments generated by the wind are given in Equation (12):
The wind force and wind moment coefficients are estimated using the Blendermann empirical formula [
31], as shown in Formula (13):
Marine environments are characterized by complex wave patterns, typically irregular waves. This paper assumes that the waves are long-crested, and according to wave theory [
32], the wave height at a given point on the sea surface is represented as follows:
where
,
,
, and
are the amplitude, wave number, angular frequency, and initial phase of the i-th harmonic wave, respectively.
In this paper, the PM (Pierson–Moskowitz) wave spectrum [
33] is fitted using wind and wave data as shown in Equation (15):
where
,
,
, and
is the wind speed at 19.5 m above the water surface. It is typically assumed that
, where U is the wind speed at sea level.
The free-surface variance is given by the following:
The integration is taken over the frequency spectrum from zero to infinity, as the total wave energy is distributed over all frequencies.
The significant wave height
can be estimated as
. Substituting this expression into Equation (15), the wave spectrum can be written in terms of the significant wave height:
this equation describes the energy distribution of the waves, where the energy is a function of both the frequency and the significant wave height
.
The equations for the wave forces and moments acting on the USV are formulated based on reference [
34] as follows:
Here,
,
and
represent the wave force and moment coefficients, which are estimated based on Equation (18) from reference [
35]:
2.2.5. 3D Geometric Model
The three-dimensional (3D) geometric model of the USV digital twin serves as an accurate digital representation of its physical structure, encompassing the hull shape, internal framework, and key components such as thrusters, rudders, and sensors. This model must precisely reflect the USV’s dimensions, mass distribution, and inertial properties while being compatible with computational fluid dynamics (CFD) and structural simulation tools to facilitate environmental interaction modeling, motion behavior analysis, and dynamic response simulations. As shown in
Figure 4, this study utilizes 3Ds Max (
https://www.autodesk.com/products/3ds-max/overview, accessed on 28 April 2025) to construct and assemble 3D models of various USV components, forming a complete and detailed USV model. The created model is then exported in .fbx format and imported into the UE4-based digital twin platform. This ensures that the virtual USV model is fully consistent with its physical counterpart, allowing for accurate simulation of hydrodynamic forces and motion behavior in a virtual environment.
2.3. Construction of USV Digital Twin Model
There are several approaches to constructing a twin model, including mechanistic twin models built based on various physical and mathematical analysis methods, nonlinear mapping twin models constructed using neural networks, and twin models based on AR (Autoregressive) model structures [
36]. Mechanistic modeling, grounded in physical laws, offers high interpretability and low data dependency. It can accurately describe the dynamics of unmanned surface vehicles (USVs) and is well suited for scenarios with known mechanisms and stable environments. Moreover, mechanistic models exhibit good generalization ability, making them applicable across various scenarios with stability. In contrast, data-driven modeling, while adaptable to complex environments, relies heavily on large volumes of high-quality data and lacks interpretability. It is often less effective at predicting in unknown scenarios. AR models are restricted to linear systems, making them less capable of handling complex nonlinear systems, and their long-term prediction errors are prone to accumulation. Overall, mechanistic modeling holds an advantage in terms of accuracy and reliability, making it particularly beneficial for environments where the underlying system behavior is well understood.
Building upon the mathematical model of the USV established in
Section 2.2, the corresponding digital twin model is developed. Based on the previously constructed framework, the USV digital twin model is formulated as shown in Equation (20):
Here, the dimensioned viscous force coefficient and propeller thrust coefficient are selected as the identification targets, forming the parameter vector
to be optimized, as shown in Equation (21):
Define
as the input matrix, as shown in Equation (22):
Thus, the digital twin model can be expressed in the following form, where
represents the output matrix:
4. Prediction Experiments and Comparative Analysis
As previously mentioned, accurate prediction of the navigation posture of the USV is crucial for enhancing both navigation efficiency and safety. By forecasting the USV’s future attitudes, intelligent decision-making can be facilitated in complex environments, enabling speed optimization and collision avoidance, among other benefits. However, achieving high-accuracy predictions in real-world operations is challenging. In practical applications, collected data are often contaminated by noise and influenced by varying navigation conditions. To evaluate the effectiveness of the proposed navigation attitude prediction method, which integrates an improved UKF with a digital twin framework, this section utilizes the DSW-UKF algorithm developed in
Section 3. By iteratively optimizing the USV motion twin model with measurement data from full-scale experiments, the process of parameter iteration and optimization is detailed. The optimized twin model is then employed to predict the USV’s navigation attitudes.
For comparative analysis, the twin model optimized with the standard UKF identification algorithm and the commonly used LSTM-based black-box model are selected as comparison models for predicting the navigation attitude of the USV. The experiments were conducted under complex sea conditions to simulate the challenges that USVs face in real-world environments.
4.1. Experimental Environment
To ensure a reliable comparison, simulation experiments were conducted using the USV model developed by the digital twin laboratory at Xi’an Technological University. The detailed specifications of the USV are provided in
Table 1.
To obtain the observational data sequences required for parameter identification of the twin USV, full-scale sea trials were conducted in a designated maritime area in Zhuhai. The experimental environment is shown in
Figure 8a, while
Figure 8b illustrates the USV during its navigation process. The USV is equipped with a GPS sensor and an Inertial Measurement Unit (IMU), enabling real-time acquisition of position, velocity, and attitude data. The unmanned surface vehicle (USV) is equipped with a high-precision GPS sensor and an Inertial Measurement Unit (IMU). The GPS sensor has an accuracy range of 2–5 m, which can improve to 1 m under optimal signal conditions. It supports an update frequency of up to 20 Hz to meet high-precision requirements, enhancing the stability and reliability of positioning. The IMU includes an accelerometer, gyroscope, and magnetometer, capable of measuring three-axis acceleration and angular velocity, providing accurate attitude and motion data. The accelerometer has an accuracy of 0.01 g, and the gyroscope accuracy can reach 0.01°/s. The drift issue is effectively reduced through sensor fusion algorithms, which combine GPS data to improve attitude estimation accuracy and ensure stable attitude and motion information, even when GPS signals are weak or lost.
The USV is remotely controlled from a shore-based ground control station, with control signals transmitted via a high-power data transmission radio to the onboard motor driver, which adjusts the rotational speed of the two propellers. The data transmission radio features high reception sensitivity, a maximum transmission range of 30 km, a wireless transmission rate of up to 1.2 Gbps, and strong anti-interference capabilities. This radio effectively minimizes the impact of signal delays in complex environments, ensuring precise control signal transmission and trajectory stability.
The experiment was conducted in two stages: First, multiple sets of turning maneuver tests were performed, followed by multiple zigzag maneuver tests. The multi-sensor observational data were filtered and fused before being fed into the twin USV model in real time for online parameter identification and optimization. The message transmission frequency of the actual unmanned vessel was set to 20 Hz via ground station control commands, which ensures system stability and real-time response. The digital twin platform then acquires real-time sensor data from the actual vessel, performs data fusion, and uses the fused data for twin model parameter identification and state prediction.
4.2. Scenario 1: Real-Time Attitude Prediction of a 20° Right Turn Maneuver in a Wind and Wave Environment
The 20° right turn maneuver test for the unmanned surface vehicle (USV) was conducted under sea attitude 2, with wave heights of approximately 0.5 m. The wind speed was around 4.5 m/s, blowing from the southeast direction. Throughout the experiment, environmental conditions varied over time. During the test, the USV maintained a 20° right rudder angle while operating at its rated rotational speed to evaluate its maneuverability and dynamic response. To ensure the reliability of the results, the test was repeated four times. Throughout the experiment, the sensor sampling frequency was set to 20 Hz, allowing the collection of sufficient dynamic data to assess the USV’s turning performance and stability.
The parameter identification process for the twin USV model in this experiment is illustrated in
Figure 9,
Figure 10 and
Figure 11. Specifically,
Figure 9 presents the identification process for longitudinal dynamics parameters,
Figure 10 depicts the identification of lateral dynamics parameters, and
Figure 11 showcases the identification of yaw dynamics parameters.
During the parameter identification process, the dynamic sliding window-Unscented Kalman Filter (DSW-UKF) algorithm demonstrated both rapid convergence and stable performance. In the identification of longitudinal dynamics parameters, all parameters reached a stable convergence attitude after approximately 90 iterations. Parameters , , and exhibited minor fluctuations in the early stages but quickly stabilized, while demonstrated a particularly strong convergence effect. Meanwhile, propulsion-related parameters ( and ) remained constant, indicating high resistance to wind and wave disturbances. Lateral dynamics parameters play a crucial role in the USV’s lateral motion, which is significantly affected by environmental disturbances such as wind and waves. As a result, and showed large initial variations but gradually converged after multiple iterations, reflecting the adaptability of the algorithm. For yaw dynamics parameters, the overall identification process remained stable. The nonlinear parameter achieved high accuracy, while the linear parameter exhibited minor initial fluctuations before eventually stabilizing.
Based on the above analysis, the twin model progressively enhanced its adaptive capabilities throughout the identification process. Despite initial fluctuations, the parameters ultimately converged, indicating the model’s strong adaptability to dynamic environmental changes.
After 210 iterations, all parameters had essentially converged, indicating that the twin model had reached a stable attitude. At this point, the parameter identification results from the 210th iteration (as shown in
Table 2) were substituted into the twin prediction models (Equations (22) and (23)). These models, in combination with real-time fusion of actual and twin data, were then used to predict the USV’s navigation posture.
In a dynamic marine environment, factors such as wind and waves fluctuate over time, making long-term prediction accuracy difficult to guarantee. To mitigate the impact of environmental uncertainties, a 10 s prediction window was selected as a reasonable timeframe. The 10 s prediction results for the 20° right turn maneuver under wind and wave conditions are shown in
Figure 12. The performance of different prediction methods varies across the results. Among them, the DT-Model (DSW-UKF)—the twin model iteratively optimized using the DSW-UKF algorithm—demonstrates the best performance across all prediction parameters. It accurately reflects the USV’s motion attitude and exhibits superior real-time adaptability and precision, particularly in handling time-varying dynamics and uncertainties.
In the attitude prediction of the 20° right turn maneuver, the proposed method demonstrates superior performance in most scenarios, accurately capturing the motion characteristics of the USV, including longitudinal and lateral velocities, yaw rate, heading angle, and positional changes. Compared with DT-Model (UKF) and the LSTM black-box model, the proposed approach achieves predictions that are consistently closer to the actual values, particularly in the eastward position and yaw rate estimation, where it exhibits higher accuracy. In contrast, the DT-Model (UKF) and LSTM black-box model show noticeable prediction deviations in certain cases. Specifically, the LSTM model exhibits larger errors in lateral velocity, heading angle, and position predictions. Overall, the DT-Model (DSW-UKF) demonstrates strong adaptability and high prediction accuracy in handling complex motion dynamics, making it a more reliable approach for USV attitude forecasting.
4.3. Scenario 2: Real-Time Attitude Prediction of a 20°/−20° Z-Type Maneuver Under Wind and Wave Conditions
The USV 20°/−20° Z-type maneuvering test was conducted under the same sea conditions. At the rated speed, the vessel first operated with a rudder angle of 20° for a certain period, followed by a period with a rudder angle of −20°, maintaining the same duration. To minimize random effects, the test was repeated four times. Data from 0 to 80 s of the test were selected for the parameter identification of the USV digital twin model.
The parameter identification process for the twin USV model in this experiment is illustrated in
Figure 13,
Figure 14 and
Figure 15. Specifically,
Figure 13 presents the identification process for longitudinal dynamics parameters,
Figure 14 depicts the identification of lateral dynamics parameters, and
Figure 15 showcases the identification of yaw dynamics parameters.
In the 20°/−20° Z-type maneuver test under wind and wave conditions, the longitudinal dynamics parameters (e.g., and ) exhibited significant fluctuations due to frequent acceleration and deceleration as well as wave disturbances. However, they eventually converged rapidly, indicating that the model effectively captured the dynamic balance between thrust and resistance.
The lateral dynamics parameters were strongly influenced by sideslip effects and lateral wave forces, leading to continuous variations and a slower convergence rate. Similarly, yaw parameters experienced delayed convergence due to rapid turning maneuvers and nonlinear rudder effects.
Overall, the twin model dynamically adjusted in response to environmental variations throughout the identification process. This adaptability highlights the model’s strong capability to handle complex motion dynamics under challenging marine conditions.
Compared to the right turn maneuver test, the Z-type maneuver imposes higher demands on lateral and yaw responses. However, the algorithm continues to demonstrate strong robustness and high accuracy in handling these challenges. The results from both experiments indicate that the proposed algorithm is well suited for various maneuvering scenarios.
As in the previous test, the parameter identification results from the 210th iteration (detailed in
Table 3) were substituted into the twin prediction model to forecast the USV’s navigation posture.
The 10 s prediction results for the 20°/−20° Z-type maneuver under wind and wave conditions are shown in
Figure 16. During this maneuver, the DT-Model (DSW-UKF) demonstrated high prediction accuracy, effectively tracking the trends of longitudinal velocity, lateral velocity, heading angle, yaw angle, and position changes. The DT-Model (UKF) also performed relatively well, closely following the actual data in most cases, though its accuracy was slightly lower than that of the improved DSW-UKF model. Meanwhile, the LSTM model, despite capturing some general trends, exhibited noticeable deviations in accuracy and detail, particularly in later-stage predictions, where its performance declined significantly.
Overall, the DT-Model (DSW-UKF) outperforms the other two methods in terms of accuracy and response speed, providing higher-precision predictions under complex wind and wave conditions.
4.4. Performance Analysis
To evaluate the performance differences between the proposed prediction method and the other two prediction methods, this paper introduces the Mean Absolute Error (MAE) and Mean Squared Error (MSE) as evaluation metrics [
43] to assess the accuracy of the predicted navigation attitudes of the unmanned boat. The smaller the values of MAE and MSE, the higher the prediction accuracy. The formulas for MAE and MSE are as follows:
where
represents the total number of test samples,
denotes the predicted value for the i-th test sample, and
represents the actual value for the i-th test sample.
Based on Equations (53) and (54), the MAE and Root Mean Squared Error (RMSE) for the future navigation attitudes of the unmanned boat predicted by the three methods are calculated, as shown in
Table 4.
According to the analysis results in
Table 4, in the “Wind and Wave Environment 20° Right Turn” prediction, the DT-Model (DSW-UKF) showed the best performance, with the lowest MAE (0.1592) and MSE (0.2292). In the “Wind and Wave Environment 20°/−20° Z-type Maneuver Test”, the MSE of DT-Model (DSW-UKF) decreased to 0.1837. Although the MAE slightly increased to 0.1733, it still outperformed both DT-Model (UKF) and LSTM, indicating that the model can effectively restore the navigation states of the two types of motion in the wind and wave environment through dynamic parameter calibration and noise optimization.
It is worth noting that the wind and wave environment inherently involves sensor data loss and noise, and these factors behave differently in the various experiments, further increasing the complexity of the prediction task. In a real maritime environment, the sensor data loss and noise conditions for the two motions are not identical. In this context, DT-Model (DSW-UKF) provides the most accurate predictions for both motions, demonstrating the model’s strong adaptability and robustness in complex dynamic environments. On the other hand, LSTM exhibited the largest error in all scenarios with an MAE of 0.2792, showing poor prediction performance for both motions in the wind and wave environment.
The LSTM black-box model primarily relies on training data and simulation results for motion prediction and can handle prediction tasks in various scenarios. However, in dynamic and complex environments, such as the one in
Figure 16, where the USV quickly changes direction at 84 s, the predicted result for r shows large errors. In contrast, the digital twin model balances accuracy and robustness by integrating real-time sensor data and a physical model. The DSW-UKF method, through recursive updates and dynamic sliding window mechanisms, can track uncertain parameters in real-time and efficiently respond to sudden disturbances through adaptive noise estimation and feedback mechanisms. However, due to the lack of dynamic sliding window support, its ability to handle rapid changes and large amounts of data are limited, and its prediction accuracy requires improvement. The DT-Model (DSW-UKF) dynamically adjusts parameters based on recent data, adapts to time-varying characteristics, and effectively captures the motion states of the USV, providing the best prediction performance, particularly in complex dynamic environments where it shows higher stability and accuracy.
5. Conclusions
This study proposed a digital twin-driven hybrid modeling approach to address the navigation attitude prediction problem for unmanned surface vehicles (USVs). By integrating mechanistic modeling and data-driven techniques, the proposed method achieves high-precision predictions of USV navigation attitudes in complex environments. The core framework, DT-Model (DSW-UKF), is a synergistic system combining a digital twin model with an improved UKF algorithm enhanced by a dynamic sliding window mechanism.
Experimental results demonstrate that the proposed method significantly outperforms traditional approaches in terms of prediction accuracy and dynamic adaptability. The key conclusions are as follows:
A multi-level digital twin model for USVs was developed, integrating kinematics, dynamics, control, environmental disturbance, and 3D geometric models to form a high-fidelity virtual mapping system. By aligning multi-source sensor data (e.g., GPS, IMU) with historical navigation records in both spatial and temporal dimensions, a hybrid-driven framework was established for offline training and online updates, significantly enhancing the model’s capability to represent complex dynamic behaviors.
A dynamic sliding window-based Unscented Kalman Filter (DSW-UKF) algorithm was proposed. By adaptively adjusting the data weight window, it enables real-time estimation of hydrodynamic parameters. The algorithm dynamically corrects the digital twin model by incorporating feedback on discrepancies between the mechanistic model predictions and the actual USV motion, improving long-term prediction accuracy.
Experimental validation under wind and wave disturbances confirms that the DT-Model (DSW-UKF) achieves more precise 10 s predictions than traditional methods, demonstrating superior adaptability to complex dynamic environments.
This study investigated the motion modeling and prediction of USV in the horizontal plane based on a 3-DOF framework. Future work will extend to a 6-DOF model to more accurately represent USV dynamics under complex sea conditions, particularly in the presence of disturbances such as wind, waves, and currents. The 6-DOF model will enhance the system’s capabilities in dynamic state estimation and control. To improve the model’s adaptability, advanced machine learning techniques, such as reinforcement learning, graph neural networks, and Transformer architectures, will be incorporated to replace or complement traditional LSTM-based approaches. These methods can capture complex motion patterns from historical data and adapt to environmental changes, improving decision-making and control efficiency. Additionally, the use of high-precision RTK technology will enhance positioning accuracy, further improving motion prediction and control. By combining 6-DOF modeling with intelligent algorithms and RTK-based precise positioning, the system is expected to improve autonomous perception and obstacle avoidance in complex environments, enhancing USV performance in applications such as coastal patrol, marine monitoring, and search and rescue.