Skip to Content
  • Article
  • Open Access

17 March 2026

30 Pages

Digital Twin System for Multi-Scale Motion Prediction of Unmanned Underwater Vehicles

,
,
,
,
,
,
,
and
1
School of Mechanics and Engineering Science, Peking University, Beijing 100871, China
2
Laoshan Laboratory, Qingdao 266237, China
3
Nanchang Innovation Institute, Peking University, Nanchang 330096, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Ocean Engineering

Abstract

Unmanned underwater vehicles (UUVs) play a pivotal role in marine applications such as resource exploration, maritime search and rescue. However, communication signal loss remains a critical bottleneck, constraining UUV autonomous operation and mission reliability across four dimensions: navigation, coordination, monitoring, and planning. To address these challenges in communication-denied environments, this paper proposes a UUV digital twin system utilizing motion prediction technology, such as virtual mapping, prediction, and autonomous decision support. Based on a four-layer architecture—comprising the Physical Entity Layer, Virtual Entity Layer, Twin Data & Connectivity Layer, and Services Layer, the system achieves full-state mapping and real-time visualization. Specifically, a hybrid prediction model integrating Transformer and Convolutional Neural Networks (CNN) architectures is developed to extract multi-scale features for resistance prediction, which serves as the critical basis for UUV motion state forecasting. Experimental validation confirms the system’s capability for real-time resistance tracking and high-precision prediction, providing a robust foundation for autonomous navigation control and energy management. These results advance the development of specialized UUV digital twin systems and establish a robust foundation for their engineering applications.

1. Introduction

With the advancement of marine resource exploration, the expansion of maritime search and rescue missions, and the growth of offshore engineering operations [1], unmanned marine intelligent devices have become a vital pillar of modern ocean activities and are prioritized for development globally [2]. Among these, UUVs are indispensable for high-risk missions, including deep-sea exploration, seabed mapping [3], and target detection [4]. However, the instability of underwater communication [5] significantly restricts UUV autonomy [6,7]. This bottleneck impairs four key capabilities: autonomous navigation [6], formation coordination [7], remote monitoring [8], and dynamic mission planning [9]. Crucially, when communication is compromised, UUVs cannot rely on remote instructions for resistance correction [10]. Therefore, accurate and autonomous resistance prediction is a prerequisite for maintaining stable speed control [11], sufficient endurance [12], and reliable mission execution [13]. This directly elevates resistance prediction to a core technical requirement in communication-limited scenarios, as it is closely intertwined with breaking through the aforementioned operational bottlenecks [14].
Resistance prediction is a fundamental prerequisite for UUV performance optimization and motion control [14], directly dictating the vehicle’s cruising speed, endurance, and operational reliability [1]. Current research encompasses a broad spectrum of methodologies, primarily ranging from Computational Fluid Dynamics (CFD) to deep learning approaches. Notably, the emergence of digital twin technology has brought new breakthroughs to this field. Table 1 systematically compares these methodologies, highlighting their specific applicability and inherent limitations to contextualize the proposed approach.
Table 1. Comparative Study of UUV Resistance prediction Methods.
In summary, while existing UUV resistance prediction methods possess distinct strengths, they share inherent limitations that prevent them from meeting the dual core demands of UUV operations: communication constraints and multi-scale motion [13]. First, CFD-based methods, despite offering high accuracy, are hindered by high computational costs and poor dynamic adaptability. Consequently, they cannot generate real-time prediction results required for autonomous decision-making in communication-denied scenarios, nor can they dynamically adjust to rapid changes in multi-scale motion states [20]. Second, deep learning-based methods improve computational efficiency but suffer from a disconnect between physical entities and virtual models, limiting their generalization capability [21]. By failing to incorporate environmental disturbances or motion state variations in real time, these methods struggle to satisfy the continuous prediction needs of multi-scale motion under communication constraints [16].
In contrast, the digital twin approach, anchored by the real-time interaction between physical and virtual entities, effectively resolves these operational bottlenecks through three key advantages. First, it continuously updates the virtual model using in situ sensor data in real time, overcoming the static nature of traditional methods and enabling autonomous prediction without relying on remote communication [1]. Second, it bridges micro-scale flow field variations with macro-scale motion states, achieving continuous and precise resistance prediction to support multi-scale motion control [14]. Third, it integrates prediction with motion control and energy management, forming a closed-loop “prediction-optimization-execution-feedback” system that directly enhances operational efficiency. Although the digital twin approach entails significant initial modeling costs, its unique capabilities in multi-scale, dynamic, and high-precision prediction establish it as a pivotal technological pathway for ensuring efficient and reliable UUV operations.
The primary contributions and innovations of this study are threefold. First, a UUV digital twin framework based on a four-layer architecture is proposed. By establishing an efficient data transmission and synchronization mechanism between physical and virtual entities, this framework addresses the real-time interaction and dynamic update bottlenecks of traditional methods, thereby effectively adapting to communication-denied environments [22]. Second, a hybrid resistance prediction model is developed to capture multi-scale features of UUV motion states. This model specifically optimizes the extraction of features related to resistance variations, resolving the issue of low prediction accuracy for cross-scale motion resistance in existing methods, thereby providing accurate inputs for motion state forecasting [23]. Third, a closed-loop optimization system is established by embedding the resistance prediction model into the service layer. This deep integration addresses the lack of collaborative optimization capabilities in traditional approaches, ensuring that prediction results can be immediately applied to motion control and energy management to enhance operational reliability. Extensive simulation and field testing demonstrate the system’s superior performance in real-time resistance tracking [24], highlighting the critical role of digital twin technology in resolving core operational bottlenecks for UUVs under communication constraints.
The remainder of this paper is structured as follows. Section 2 presents the four-layer framework of the UUV digital twin system. Section 3 elaborates on the design of the multi-scale resistance prediction model. Section 4 details the system implementation and validation. Finally, Section 5 summarizes the research findings, identifies existing limitations, and outlines future research directions.

2. Digital Twin System Framework for UUV

To address the common bottlenecks of unmanned underwater vehicles (UUVs) such as inaccurate navigation and poor communication and collaboration, a digital twin system framework for portable UUVs is proposed in this section. As demonstrated in Figure 1, based on entity modeling theory and standardized communication protocols, the framework consists of four core layers: the Physical Entity Layer, Virtual Entity Layer, Twin Data & Connectivity Layer, and Services Layer. The core design logic of the system is as follows: Firstly, establish a data-driven mapping mechanism between physical and virtual entities to realize accurate mapping and synchronization of inherent attributes of physical entities and sensor monitoring data to virtual entities. Secondly, build a low-latency and high-reliability communication link within the Twin Data & Connectivity Layer to ensure real-time transmission, storage, and efficient processing of twin data. On this basis, develop customized system service functions, integrate a hydrodynamic simulation result visualization module, and fuse simulation data with real-time twin data to achieve accurate resistance prediction of the portable UUV. Meanwhile, complete the full-process data visualization presentation of the system by constructing a 3D scene model, a high-precision virtual entity model, and a dynamic motion model. This digital twin system can realize real-time prediction of the motion state of the portable UUV and accurate issuance of control commands, providing effective support for the motion decision-making of the physical entity.
Figure 1. Digital twin system framework of UUV.

2.1. Physical Entity Layer

The Physical Entity Layer serves as the physical carrier of the digital twin system, which is the object of digital mapping and the executor of control commands. As shown in Figure 2, it mainly consists of the portable UUV, integrated perception equipment, sensor system, communication unit, and executive mechanism, all of which are designed based on the technical specifications and operational requirements of the UUV. The detailed composition and functions are as follows:
Figure 2. Exterior view of the UUV. (a) Overall configuration (perspective view); (b) Key dimensions.
The UUV main body adopts a modular segmented structure, which is divided into five sections from bow to stern: bow section, navigation section, battery section, electronic section, and stern section. A tow cable section is additionally installed between the battery section and the electronic section to carry the user’s tow cable system, which is the dry end of the tow line, is 463 mm in length and 11.5 kg in weight, installed independently in sections, and can meet the requirements of a 55 m-long tow cable with Φ22 mm. The main body is made of 6061 aluminum alloy with a wall thickness of 5.5 mm, and the antenna compartments are made of ABS (Acrylonitrile Butadiene Styrene) material to ensure electromagnetic wave penetration, while the strobe light housing is made of transparent PC (Polycarbonate) material, all of which meet the structural strength requirements under a compressive depth of ≥200 m.
The integrated perception equipment includes obstacle avoidance sonar, side-scan sonar, Doppler Velocity Log (DVL, Teledyne RD Instruments), magnetic compass, and Global Navigation Satellite System (GNSS, Iridium 9602, General Product) module. These devices are distributed in different sections of the UUV to realize environmental perception, navigation, positioning, and target detection. For example, the obstacle avoidance sonar is installed at the bow section to support the autonomous navigation function of the UUV, and the side-scan sonar is used for underwater detection and data collection during scientific research activities.
The sensor system is composed of multiple types of sensors, including depth sensors, attitude sensors, speed sensors, temperature sensors, and battery status sensors. These sensors continuously collect real-time operational data of the UUV, such as navigation depth (depth control error < 0.5 m), attitude parameters, navigation speed (towing speed 3~7 kn), battery voltage, and remaining capacity, providing raw data for the operation of the digital twin system.
The communication unit adopts a multi-communication mode integration scheme, including Ultra High Frequency (UHF) communication, Beidou communication, WIFI communication, and underwater acoustic communication. The wireless communication distance is not less than 500 m, the underwater acoustic communication distance ≥ 500 m, the communication success rate ≥ 80%, the data transmission rate ≥ 1000 bps, and the Beidou communication realizes long-range data transmission and positioning. This multi-communication mode ensures reliable data interaction between the UUV and the mother ship/shore-based control center in different underwater and surface environments.
The executive mechanism mainly includes a ducted propeller and a cross-shaped full-motion rudder. Under the control of the command issued by the digital twin system, the executive mechanism adjusts the navigation state of the UUV, such as changing speed, depth, and heading, to complete the preset navigation task.

2.2. Virtual Entity Layer

The Virtual Entity Layer is a high-fidelity digital mirror of the Physical Entity Layer, which realizes the accurate mapping of the geometric form, physical properties, and operational state of the physical entity. It is constructed based on entity modeling theory and integrated with hydrodynamic simulation and structural dynamics analysis results, consisting of three core sub-models: 3D scene model, high-precision virtual entity model, and dynamic motion model, as shown in Figure 3.
Figure 3. (a) The construction process of the virtual entity model. (b) The geometric model of the UUV.
The 3D scene model simulates the underwater operational environment of the UUV, including the topographic features of the operational sea area, water flow field distribution, and water depth changes. The model is constructed by integrating marine survey data and real-time environmental monitoring data, which can reflect the dynamic changes in the underwater environment, such as current velocity and direction, and provide a realistic environmental background for the simulation and prediction of the UUV’s operational state.
The high-precision virtual entity model is built with reference to the geometric dimensions, material parameters, and structural characteristics of the physical UUV. Using SolidWorks 2023 software, the segmented structure of the UUV, such as the bow section, navigation section, battery section, integrated equipment such as sonar, sensor, communication antenna, and tow cable system are accurately modeled. The material properties of each component are set according to the actual situation, and the structural strength simulation results, deformation amount < 0.2 mm for aluminum alloy sections and <0.45 mm for ABS antenna compartments under 3.6 MPa, are integrated to ensure that the virtual model can accurately reflect the structural performance and stress state of the physical entity.
The dynamic motion model is established based on the hydrodynamic simulation results of the UUV. It integrates the hydrodynamic parameters such as resistance and thrust obtained from the simulation, and combines the kinematic equations of the UUV to realize the accurate simulation of the UUV’s motion state, such as navigation speed, depth, attitude change under different operational conditions. The model can dynamically respond to the changes in the physical entity’s motion state, realizing the real-time synchronization between the virtual and physical entities.

2.3. Twin Data & Connectivity Layer

The Twin Data & Connectivity Layer is the core hub of the digital twin system, responsible for the transmission, storage, integration, and preprocessing of twin data, as well as building a reliable connection bridge between the Physical Entity Layer and the Virtual Entity Layer. It is composed of a twin data set, a communication link, and a data processing module.
The twin data set includes three types of data: inherent attribute data of the physical entity, real-time monitoring data, and simulation data. The inherent attribute data includes the geometric dimensions which is length 2000 mm, diameter Φ210 mm, material parameters, and structural parameters of the UUV; the real-time monitoring data is the multi-source sensor data collected by the Physical Entity Layer, such as navigation depth, attitude, speed, battery status, communication signal strength, and sonar detection data; the simulation data includes the structural strength simulation, hydrodynamic simulation, and motion state simulation results of the Virtual Entity Layer. These data are uniformly formatted and labeled to form a standardized twin data set, laying the foundation for data-driven mapping and service function development.
The communication link is designed based on standardized communication protocols such as TCP/IP, MODBUS, to realize low-latency and high-reliability data transmission. For the surface state of the UUV, WIFI and UHF communication are used to realize short-range high-bandwidth data transmission, and Beidou communication is used to realize long-range data transmission and positioning; for the underwater state, underwater acoustic communication is used to transmit data between the UUV and the mother ship, with a communication distance of ≥500 m and a data transmission rate that meets the requirements of real-time monitoring. In addition, the communication link adopts data encryption and error correction mechanisms to ensure the security and integrity of data transmission in complex marine environments.
The data processing module is responsible for the preprocessing, integration, and storage of twin data. The preprocessing includes filtering, normalization, and outlier detection; the data integration fuses the real-time monitoring data and simulation data to realize the complementarity and redundancy of data; the data storage adopts a distributed storage architecture, which can store a large amount of twin data in real time and support fast query and retrieval of data, providing data support for the Services Layer.

2.4. Services Layer

The Services Layer is the application-oriented core of the digital twin system, which develops customized service functions based on the twin data processed by the Twin Data & Connectivity Layer to realize the prediction, monitoring, and visualization of the UUV’s operational state, providing decision support for the safe and efficient operation of the UUV. The layer mainly includes three sub-service modules: Prediction, Monitoring, and Visualization.

2.4.1. Prediction

The prediction module is designed to realize accurate prediction of key operational parameters of the portable UUV, including navigation speed prediction and navigation resistance prediction. The module fuses real-time twin data, such as sensor-collected speed, attitude, and depth data, and hydrodynamic simulation data, and adopts a hybrid prediction model combining mechanism-driven and data-driven methods to improve the prediction accuracy.
For navigation speed prediction, the model takes the propeller speed, current velocity, and tow cable state whether the tow cable is deployed, and length as input variables, and combines the hydrodynamic simulation results of the UUV’s speed-resistance relationship to predict the real-time navigation speed of the UUV. The prediction error is controlled within a reasonable range to provide a basis for speed control and energy consumption optimization.
For navigation resistance prediction, based on the fluid dynamics theory and the hydrodynamic simulation results of the UUV such as the resistance of 20.6 N at 3 kn speed with the tow cable section, the model integrates real-time data such as navigation speed, depth, and attitude to predict the navigation resistance of the UUV under current operational conditions. This helps to evaluate the thrust requirement of the propeller and optimize the energy allocation of the UUV.

2.4.2. Monitoring

The monitoring module is responsible for the real-time monitoring of the operational state of the UUV and the health status of key components, realizing fault early warning and diagnosis. The module continuously collects the real-time monitoring data from the Twin Data & Connectivity Layer, including the UUV’s motion state parameters, including depth, speed, attitude, component status parameters, including battery voltage, remaining capacity, motor speed, sensor accuracy, and communication link status.
For the motion state monitoring, the module sets threshold values for key parameters such as maximum depth ≥ 200 m, navigation speed 3~7 kn, based on the technical specifications of the UUV. When the monitored parameters exceed the threshold values, such as ultra-deep and ultra-speed, the module issues an alarm in real time and triggers the corresponding safety control strategy such as automatic parking and emergency floating.
For the component health monitoring, the module monitors the status of key components such as the battery, motor, sensor, and communication unit in real time. For example, it monitors the battery’s remaining capacity and charging/discharging current, and predicts the battery’s remaining life; it monitors the motor’s speed and temperature to detect abnormal wear and tear of the motor; it monitors the sensor’s data output to detect sensor faults. The module adopts an AI-based fault diagnosis algorithm to realize the early diagnosis of component faults, providing a basis for maintenance decision-making.

2.4.3. Visualization

The visualization module realizes the full-process data visualization presentation of the digital twin system, integrating the hydrodynamic simulation result visualization and real-time twin data visualization. The module is driven by the virtual entity model and displays the UUV’s operational state, environmental information, and simulation results in an intuitive way through 3D rendering technology.
The module constructs a 3D visualization interface, which includes the 3D scene of the operational sea area, the high-precision virtual model of the UUV, and the data visualization panel. The 3D scene displays the topographic features and water flow field of the operational sea area in real time; the virtual UUV model displays the motion state including attitude, speed, depth and component status of the UUV in real time, realizing the visual synchronization between the virtual and physical entities; the data visualization panel displays the key operational parameters and simulation results of the UUV in the form of curves, histograms, and digital indicators.
In addition, the module supports the dynamic simulation function of hydrodynamic performance, which can simulate the motion state and hydrodynamic characteristics of the UUV under different operational conditions, such as different speeds, depths, and current states by adjusting the simulation parameters. This helps researchers and operators to intuitively understand the operational characteristics of the UUV and optimize the navigation strategy.

3. Resistance Prediction Method for UUV

Accurately predicting the navigation resistance of UUVs is a core prerequisite for ensuring safe autonomous navigation, stable mission execution, and rational path planning in complex marine environments. Traditional prediction methods, such as models based on recurrent neural networks, suffer from limitations including slow parallel training speeds and difficulty capturing long-term temporal dependencies within UUV motion sequences. To address these issues, this section proposes a UUV navigation resistance prediction model that integrates a Transformer encoder with a multi-scale temporal feature extraction module. Based on historical 50-step sequence data, including speed and attitude parameters, this model achieves high-precision, efficient resistance prediction.

3.1. Overall Architecture of the Prediction Model

The underwater vehicle navigation resistance prediction model takes multidimensional sensor sequence data from unmanned underwater vehicles as input. Its overall architecture, as shown in Figure 4, consists of four core modules: the input embedding and position encoding module, the Transformer encoder module, the multiscale temporal feature extraction module, and the output projection module. The model first maps raw sensor data to a high-dimensional feature space via an embedding layer, supplementing temporal sequence information through position encoding. Subsequently, the Transformer encoder captures the global temporal correlations within the UUV’s motion sequence. The multi-scale temporal convolution module then extracts local motion features at different temporal granularities and fuses them with the global features. Finally, the output projection layer maps the fused features to the target dimension, thereby completing the prediction of the UUV’s future navigation resistance.
Figure 4. Overall architecture of the UUV motion state prediction model. The model integrates Transformer-based global temporal feature extraction and multi-scale convolution-based local pattern mining to achieve accurate prediction of UUV motion states.
For UUV underwater motion, its state changes are affected by both long-term trend factors and short-term fluctuation factors. The Transformer encoder has a natural advantage in capturing global long-range dependencies through multi-head self-attention, while the multi-scale convolution module can effectively mine local features of different time scales. The fusion of the two types of features ensures the model’s adaptability to the complex and variable underwater motion characteristics of UUVs.

3.2. Dataset

This study utilizes a simulation dataset generated through professional underwater vehicle simulation software (Simcenter STAR-CCM+ 2302 (18.02.008-R8)). The raw simulation data covers discrete combinations of UUV attitude angles (ranging from −9° to 9° at 3° intervals, yielding 7 discrete values) and sailing speeds (ranging from 3.0 to 7.0 knots at 1.0 knot intervals. For each operating condition, thrust response records are collected over 500 simulation iterations to capture the dynamic response characteristics of the UUV propulsion system, as shown in Figure 5. From these time-series records, steady-state operating points are extracted to form the training dataset, where each sample represents a unique combination of sailing speed, navigation posture angle, and the corresponding steady-state total resistance.
Figure 5. UUV Steady-State Force vs. Attitude Angle.
At the steady-state thrust characteristic level, the UUV’s steady-state force exhibits a macro-level pattern strongly coupled with speed and attitude angle: steady-state force increases significantly with rising speed, and the rate of increase progressively expands as speed rises. The influence of attitude angle on steady-state force exhibits an approximately symmetrical V-shaped distribution pattern. Specifically, the absolute value of the attitude angle correlates positively with the magnitude of the steady-state force. At the same speed, the steady-state force corresponding to a negative attitude angle is slightly higher than that for a positive attitude angle with the same absolute value. This slight polarity asymmetry stems from differences in the hydrodynamic force-bearing surfaces during bow and stern tilt states, reflecting inherent characteristics of UUV attitude dynamics. Overall, the distribution pattern of steady-state forces exhibits high consistency and interpretability, providing a clear feature pattern for the model to learn the mapping relationship between speed, attitude angle, and thrust.
Regarding dynamic response characteristics, the thrust response of the UUV exhibits a typical rapid rise—stable hold trend under all operating conditions: thrust climbs rapidly during the initial iteration phase, then enters a stable phase with minimal fluctuation, demonstrating the reliability of the simulation data. From the macro-level patterns of the dynamic process, thrust response speeds become significantly faster at high-speed conditions than at low-speed conditions. At the same speed, thrust rise times are longer for large-angle attitudes than for small-angle attitudes. This characteristic reflects the correlation between the establishment of fluid dynamic equilibrium and speed/attitude angle, providing rich sample information for the model to capture the spatiotemporal features of thrust dynamics.

3.3. Key Module Design

3.3.1. Input Embedding and Positional Encoding

The UUV’s original input data is a multi-dimensional time sequence with a feature dimension of d in = 2 , including 2 types of sensor data, such as attitude and navigation velocity parameters, and a sequence length of 50. To map the low-dimensional input features to the model’s hidden feature space, an input embedding layer is designed, which is implemented by a fully connected layer with the following calculation formula:
E = X · W emb + b emb
where X ∈ R B × L in × d in is the batch input sequence and B is the batch size, W emb ∈ R d in × d model and b emb ∈ R d model are the learnable weight matrix and bias of the embedding layer, respectively, and d model = 256 is the dimension of the model’s hidden layer, which is consistent with the dimension of the Transformer encoder’s input features. The output of the embedding layer E ∈ R B × L in × d model completes the dimension lifting of the input features.
Positional Encoding
Since the Transformer encoder does not have an inherent sequential modeling mechanism, a sinusoidal positional encoding module is introduced to inject temporal sequence information into the embedded features, ensuring that the model can distinguish the order of UUV motion states at different time steps. The positional encoding is calculated as follows:
P E ( pos , 2 i ) = sin pos 1000 0 2 i / d model P E ( pos , 2 i + 1 ) = cos pos 1000 0 2 i / d model
Rationale for Sinusoidal Encoding: The sinusoidal positional encoding offers two key advantages: (1) it produces unique representations for each position through the combination of sine and cosine functions at different frequencies; (2) it enables the model to generalize to sequence lengths not seen during training, as the encoding can be computed for any position. Alternative approaches include learnable positional embeddings, which are optimized during training but lack extrapolation capability, and relative positional encoding, which encodes distances between positions rather than absolute positions. The sinusoidal encoding was selected for this study due to its extrapolation capability and computational efficiency, which is particularly beneficial for UUV motion sequences that may vary in length during real-time prediction.
Where pos is the time step position of the sequence, and i is the dimension index of the hidden feature. The positional encoding PE ∈ R L in × d model is added to the embedded features to obtain the final input of the Transformer encoder:
E pos = E + PE
After dropout regularization, E pos is input to the subsequent Transformer encoder module.

3.3.2. Transformer Encoder Module

The Transformer architecture, originally proposed by Vaswani et al. [25], revolutionized sequence modeling by introducing a purely attention-based mechanism that eliminates the need for recurrent connections. The Transformer encoder module is composed of N = 6 stacked encoder layers, each of which includes two sub-modules: multi-head self-attention and position-wise feed-forward network, with residual connection and layer normalization applied after each sub-module to ensure stable training of the model.
Multi-head Self-attention
Multi-head Self-attention subsection—Added explanation and citation: The self-attention mechanism computes attention weights by measuring the similarity between all pairs of positions in a sequence, enabling the model to capture long-range dependencies without the limitations of recurrent architectures [25]. The query matrix Q represents the current time step’s feature vector seeking relevant information, while K and V matrices encode features from all time steps in the sequence. The correlation between Q and K determines attention weights, computed as QKᵀ/ V d , which measures the relevance between the current position and all other temporal coordinates. This mechanism enables the model to establish global temporal correlations across the entire 50-step sequence, where each position can attend to all other positions regardless of their distance in the sequence. To capture the global temporal correlation of UUV motion sequences from different feature subspaces, a multi-head self-attention mechanism is adopted, with the number of attention heads set to h = 8. First, the input feature E pos is linearly projected into query Q i , key K i , and value V i matrices, and then scaled dot-product attention is performed for each head, followed by feature concatenation and linear mapping to obtain the final attention output. The calculation process is as follows:
Q i = E pos ⋅ W i Q ,   K i = E pos ⋅ W i K ,   V i = E pos ⋅ W i V h ea d i = Attention ( Q i , K i , V i ) = softmax Q i K i T d k V i MultiHead ( Q , K , V ) = Concat ( h ea d 1 , … , h ea d h ) W O
where W i Q , W i K , W i V ∈ R d model × d k are the projection matrices of the i attention head, d k = d model / h = 32 is the dimension of each head’s query and key, W Q ∈ R h d v × d model is the concatenation projection matrix, and d v = d k = 32. Attention ( · ) is the attention function. The multi-head self-attention mechanism enables the model to simultaneously focus on the correlation between different time steps of UUV motion and different feature dimensions.
Position-wise Feed-forward Network
After the multi-head self-attention operation, the features are input to the position-wise feed-forward network, which is applied independently to each time step feature to realize the nonlinear transformation of the features. The GELU (Gaussian Error Linear Unit) activation function [26] is selected because of its better gradient flow performance compared with ReLU [27], which is more suitable for the training of deep Transformer models. Unlike ReLU’s hard zero threshold, GELU provides a smoother transition that has been shown to improve training stability in transformer-based architectures. The network consists of two fully connected layers with GELU activation function in between, and its calculation formula is:
FFN ( x ) = max ( 0 ,   x W 1 + b 1 ) W 2 + b 2
where d ff   =   512 is the hidden dimension of the feed-forward network, and b 1 , b 2 are the corresponding bias terms. The GELU activation function is selected because of its better gradient flow performance compared with ReLU, which is more suitable for the training of deep Transformer models.
Residual Connection and Layer Normalization
To alleviate the gradient disappearance problem in deep network training and ensure the stability of feature distribution, a residual connection and layer normalization mechanism is added after each sub-module of the encoder layer, with the calculation formula:
y = LayerNorm ( x + Sublayer ( x ) )
where x is the input of the sub-module, Sublayer ( · ) represents the calculation of the multi-head self-attention or feed-forward network sub-module, and y is the output of the sub-module after residual connection and layer normalization.
The final output of the Transformer encoder module contains the global temporal correlation features of the UUV motion sequence.

3.3.3. Multi-Scale Temporal Feature Extraction Module

UUV underwater motion is affected by different time-scale disturbances. To capture these multi-scale local features, a multi-scale temporal feature extraction module is designed, which consists of three parallel 1D convolution branches with different kernel sizes (3, 5, 7) and corresponding pooling operations, as shown in Figure 1.
Multi-scale Convolution
Each convolution branch uses a 1D convolution layer with the same input and output channel number ( d k = 256), and padding is added to ensure that the sequence length remains unchanged after convolution. The convolution calculation for each branch is:
C k = Conv 1 D k ( H T )
where k ∈ { 3 , 5 , 7 } is the convolution kernel size, H T ∈ R B × d model × L in is the feature after transposing the encoder output to adapt to the input format of 1D convolution, with the channel dimension as the second dimension, and C k ∈ R B × d model × L in is the convolution output of the k branch. The three convolution branches with different kernel sizes can capture local features of different time scales: the kernel size of 3 focuses on short-term fine-grained motion fluctuations, the kernel size of 5 captures medium-term state transition features, and the kernel size of 7 mines long-term local trend features.
Pooling and Feature Concatenation
After convolution, each branch performs average pooling and maximum pooling along the sequence length dimension to compress the temporal dimension and extract key local features, with the calculation formula:
C k , avg = AvgPool 1 D ( C k , L in ) C k , max = MaxPool 1 D ( C k , L in )
where C k , avg ∈ R B × d model and C k , max ∈ R B × d model are the average pooling and maximum pooling outputs of the k branch, respectively. The two pooling results of each branch are concatenated, and then the features of the three branches are further concatenated to obtain the final multi-scale local feature F ms ∈ R B × 6 d model , each branch outputs 2 d model features, and three branches output 6 d model = 1536 features in total.

3.3.4. Output Projection Module

The output projection module maps the fused global and multi-scale local features to the UUV motion state prediction space, which is composed of three fully connected layers with GELU activation and dropout regularization, and the final output is the navigation resistance value for the next time step.
First, the multi-scale feature F ms is input to the fully connected layer for dimension reduction and feature fusion, and then mapped to the final prediction output:
F 1 = GELU ( F ms ⋅ W p 1 + b p 1 ) F 2 = GELU ( F 1 ⋅ W p 2 + b p 2 ) Y pred = F 2 ⋅ W p 3 + b p 3
Dropout regularization is applied after each fully connected layer to prevent overfitting. The final output of the model is the navigation resistance value for the next time step.

3.4. Loss Function Design

Since the UUV motion state prediction is a multi-dimensional continuous value regression task, a combined loss function of mean squared error (MSE) and mean absolute error (MAE) is adopted to balance the model’s sensitivity to large errors and training stability. The loss function is defined as:
L = α · MSE ( Y pred , Y true ) + ( 1 − α ) · MAE ( Y pred , Y true )
where Y true ∈ R B × L pred × d out is the true value of the UUV motion state, α   =   0.7 is determined via grid search which is α range: 0.1–0.9, step size: 0.1 on the validation set, achieving the minimum combined loss of 0.012, MSE ensures the smoothness of the loss surface during training, and MAE enhances the model’s robustness to outliers.

4. System Implementation and Experiment Verification

This section focuses on validating the implementation and testing process of the resistance prediction model and digital twin system for UUV. The content is divided into three main parts: First, the resistance prediction model is proposed in the chapters on training and analysis of prediction results. Second, the development of the UUV digital twin system and the integration of relevant models are implemented. Finally, research and validation of navigation resistance prediction are conducted, with an analysis of the associated results.

4.1. Description of the Experimental Dataset

4.1.1. Data Sources and Composition

This experiment utilizes a UUV resistance dataset generated using professional underwater vehicle simulation software. The dataset was obtained by simulating hydrodynamic characteristics under various navigation states, ensuring both physical authenticity and engineering reference value. The dataset comprises 243 valid samples, each containing three key parameters, as shown in Table 2. The dataset comprises 243 valid samples, where each sample represents a steady-state operating point defined by a unique combination of sailing speed and navigation posture angle, along with the corresponding total resistance value. Specifically, the 243 samples are derived from the raw simulation data described in Section 3.2 through a data processing pipeline: (1) time-series thrust responses are collected for each operating condition; (2) steady-state values are extracted after the dynamic response reaches equilibrium; (3) samples with converged resistance values are retained as valid training data. Each sample contains three key parameters, as shown in Table 2.
Table 2. Data Set Description Form.
Regarding the sequence length of 50 mentioned in Section 3.1, this refers to the model input format during training and inference, not the number of training samples. The prediction model takes historical sensor sequences (50 times steps of speed and attitude data) as input to predict the current resistance value. This design enables the model to capture temporal dependencies in UUV motion patterns. The 243 samples in the training dataset are independent steady-state operating points, each providing a unique mapping from input conditions to resistance output.

4.1.2. Model Parameter Configuration

This experiment proposes a Transformer + CNN hybrid model that combines the strengths of both architectures: CNNs extract local features such as local correlations between velocity and angle, while Transformers capture global dependencies such as resistance variation patterns under different navigation states. To prevent overfitting on the limited dataset (243 samples), a lightweight adaptation strategy is applied to the theoretical architecture described in Section 3.3. Specifically, the input feature dimension is 2, which is mapped to the hidden layer dimension ( d m o d e l = 256) of 256 via the embedding layer. The number of attention heads is set to 2 (reduced from the theoretical h = 8), and the feedforward network dimension is set to 32. This configuration balances the need for feature extraction capability with the constraints of the dataset size. Specific model parameters are detailed in Table 3.
Table 3. Parameters of Each Module in the Model.

4.1.3. Experimental Environment and Hyperparameters

All experiments in this study were conducted under standardized hardware and software environments to ensure the reproducibility and reliability of results. At the hardware level, the core configuration of the experimental platform comprised a 12th-generation Intel Core processor (Intel® Core™ i7-12700KF) paired with 32 GB of RAM. Software-wise, algorithm implementation was conducted using the Python 3.13 programming language. The core deep learning framework employed was TensorFlow 2.10, with Scikit-learn 1.2 utilized for data preprocessing and model performance evaluation. Matplotlib 3.7 was used for visualizing experimental results. Code development and debugging were performed within the PyCharm 2025.2.1 integrated development environment.
Core hyperparameter settings during model training were optimized for regression tasks: the Adaptive Moment Estimation (Adam) optimizer [28], which combines the advantages of momentum and adaptive learning rates for efficient gradient descent, was selected with an initial learning rate fixed at 0.001. The Mean Squared Error (MSE) loss function was employed to quantify prediction-actual value discrepancies in regression. Batch size was set to 16 to balance training efficiency and memory consumption. The maximum number of training epochs is set to 100. An early stopping mechanism is incorporated to mitigate overfitting, using validation set loss as the monitoring metric. The patience threshold is set to 15 epochs; training terminates if validation loss fails to decrease for 15 consecutive epochs, automatically restoring the model’s optimal weights from the training process.

4.1.4. Analysis of Model Training Results

This study systematically analyzes the model’s training process and generalization performance by plotting the relationship curve between training epochs and Mean Squared Error (MSE), as demonstrated in Figure 6. The horizontal axis represents the number of training iterations, while the vertical axis shows the MSE loss value. The blue curve denotes training loss, and the purple curve represents validation loss.
Figure 6. UUV’s Training and Validation Loss Curves.
From Figure 6, we derive the core conclusions of model training: First, the convergence efficiency is outstanding. During the initial training phase, which is the first 10 iterations, the loss value rapidly decreases from 0.8 to below 0.05. This characteristic indicates that the model can efficiently uncover the intrinsic correlation patterns between input features such as speed and attitude angle and resistance, validating the suitability of feature selection and model architecture design. Second, it exhibits no overfitting risk. The training and validation loss curves closely align throughout the iteration cycle, converging nearly identically and stabilizing around 0.01 after 20 iterations. Combined with the early stopping mechanism set to a patience value of 15, this fully demonstrates the model’s strong generalization capability, avoiding the typical overfitting phenomenon where training loss continues to decrease while validation loss increases. Third, the training process exhibits high stability, with no significant fluctuations in the loss curve during the later stages of iteration. This reflects a smooth parameter update process and further validates the appropriateness of the Adam optimizer’s learning rate setting of 0.001, effectively ensuring the convergence stability of model training.

4.1.5. Noise Robustness and Sensitivity Analysis

To validate the generalization capability of the proposed Transformer + CNN model beyond the simulation environment, comprehensive noise robustness tests and sensitivity analyses were conducted. These experiments aim to simulate real-world conditions where sensor measurements are subject to various perturbations and uncertainties.
For noise robustness evaluation, Gaussian noise at three different levels (σ = 0.01, 0.05, 0.10) was added to the input features to simulate sensor measurement errors commonly encountered in underwater environments. The experimental results, as presented in Table 1 and Figure 1 and Figure 2, demonstrate that the proposed model maintains robust prediction performance across all noise levels. At σ = 0.10 (10% noise perturbation), the model achieves R2 = 0.9823, MAE = 1.85 N, and RMSE = 2.41 N, representing only a marginal degradation from the noise-free condition. This robustness can be attributed to the multi-scale feature extraction mechanism, which captures both local and global temporal patterns that are inherently more resilient to localized noise perturbations.
For sensitivity analysis, the impact of each input feature on prediction accuracy was systematically evaluated. As shown in Table 2 and Figure 3, the analysis reveals that the model exhibits appropriate sensitivity to both navigation speed and attitude angle, with prediction errors increasing proportionally with feature perturbation magnitude. This behavior confirms that the model has learned physically meaningful relationships consistent with hydrodynamic principles, rather than memorizing simulation-specific patterns.
Noise Robustness Test
Gaussian noise at different levels (σ = 0.01, 0.05, 0.10) to the input features to simulate sensor measurement errors in real underwater environments. The results demonstrate that our Transformer + CNN model maintains stable performance (R2 > 0.98) even under 10% noise perturbation, significantly outperforming baseline models. Table 1 presents the detailed quantitative results of the noise robustness evaluation.
Sensitivity Analysis
We analyzed the model’s sensitivity to each input feature (speed and attitude angle) by systematically perturbing individual features while holding others constant. The analysis confirms that the model learns physically meaningful relationships consistent with hydrodynamic principles. Table 2 presents the sensitivity analysis results showing prediction errors under different perturbation magnitudes.
These experiments provide strong evidence that the model has learned robust feature representations rather than overfitting to the simulation data. The noise robustness tests demonstrate that our Transformer + CNN model maintains high prediction accuracy (R2 > 0.98) even under significant noise perturbation (σ = 0.10), significantly outperforming baseline LSTM and CNN models. The sensitivity analysis confirms that the model exhibits appropriate sensitivity to both navigation speed and attitude angle, with prediction errors increasing proportionally with feature perturbation magnitude, consistent with hydrodynamic principles.

4.1.6. Comparative Analysis with Baseline Models

To comprehensively evaluate the effectiveness of the proposed Transformer + CNN hybrid architecture, comparative experiments were conducted with multiple baseline models spanning classical machine learning and deep learning approaches. Table 4 presents the performance comparison across all models. Table 5 shows the results of the sensitivity analysis. Table 6, we conducted a performance comparison of different models.
Table 4. Noise Robustness Test Results.
Table 5. Sensitivity Analysis Results.
Table 6. Performance Comparison of Different Models.
The comprehensive comparative analysis reveals the advantages of the hybrid Transformer + CNN architecture:
(1) Comparison with Pure LSTM: The proposed model achieves significantly lower MAE (0.575 N vs. 2.347 N) and higher R2 (0.9936 vs. 0.9782) compared to Pure LSTM. While LSTM is effective for sequential data, it struggles with long-range dependencies due to its sequential processing nature. The Transformer’s self-attention mechanism enables direct modeling of global temporal correlations, resulting in superior performance.
(2) Comparison with Pure CNN: The proposed model outperforms Pure CNN with lower MAE (0.575 N vs. 1.893 N) and MAPE (2.07% vs. 7.52%). Pure CNN excels at local feature extraction but lacks the ability to capture global temporal dependencies. The hybrid architecture combines CNN’s local feature extraction with Transformer’s global dependency modeling, achieving complementary advantages.
(3) Comparison with Classical Regression Models: Classical regression models (Linear Regression, Ridge Regression, Polynomial Regression) show significantly degraded performance with R2 ranging from 0.7642 to 0.8563. These models assume linear or simple polynomial relationships between input features and output, which cannot adequately capture the complex nonlinear dynamics of UUV resistance. The proposed deep learning approach demonstrates the necessity of neural network architectures for this prediction task.
(4) Comparison with Other Deep Learning Approaches: Compared to recurrent approaches (CNN-BiLSTM-Attention, BiGRU-Attention), the proposed model achieves comparable or better R2 while using fewer parameters and exhibiting lower MAPE, indicating better generalization. The hybrid architecture’s superiority can be attributed to two factors: (a) The Transformer encoder effectively captures long-range temporal dependencies in UUV motion sequences, which is crucial for understanding the relationship between navigation states and resistance. (b) The multi-scale CNN module extracts local features at different temporal granularities, complementing the global features from the Transformer. This combination enables the model to capture both macro-level motion patterns and micro-level variations, resulting in more accurate and robust predictions.
The superior performance of the Transformer + CNN model over classical machine learning approaches (MLP, SVR, XGBoost) can be attributed to its ability to capture both global temporal dependencies through the Transformer encoder and local multi-scale features through the CNN module. Classical models like MLP treat input features independently without considering temporal correlations, while SVR and XGBoost, despite their effectiveness in many regression tasks, struggle with the sequential nature of UUV motion data. The results validate that the hybrid deep learning architecture is necessary for achieving high-precision resistance prediction in this application domain.

4.2. Model Embedding of Digital Twin System for UUV

4.2.1. Physical Model of UUV Embedded in Digital Twin System

The dynamic model of the UUV serves as the fundamental basis for theoretical algorithm design, as shown in Figure 7. To ensure the accuracy of navigation resistance prediction, it is assumed that the UUV moves only along the i-axis, meaning motion in the k-axis and j-axis directions is neglected. This simplified one-dimensional motion model serves as a demonstration case for validating the resistance prediction algorithm. The assumption is justified by the fact that for steady-state cruising conditions, the primary resistance component acts along the longitudinal axis (i-axis), while lateral and vertical motions are secondary effects. For the purpose of thrust estimation and energy consumption prediction, this simplification provides a reasonable balance between model complexity and prediction accuracy. Future work will extend the model to full 6-DOF dynamics for more complex maneuvering scenarios.
Figure 7. Noise robustness performance comparison across different noise levels. (a) R2 score, (b) MAE, and (c) RMSE for Transformer + CNN, LSTM, and CNN models.
Furthermore, the coordinate system (i, j, k) is based on the geocentric coordinate system centered on the Earth. By combining Newton’s second law of motion with the principle of torque conservation, the dynamic model of the UUV’s surface motion behavior can be expressed as follows:
m v ˙ i = P h cos θ − F cos α − θ , m v ˙ j = F sin α − θ + P h sin θ − G , P k θ ˙ = M
where m and G, respectively, represent the mass of the UUV and the magnitude of the gravitational force it experiences, v i , v j denote the velocity component of i, j axis, and P h denote the thrust provided by the horizontal water jet propeller. F represents the total force of water resistance and buoyancy. θ, α are represented as the pitch angle of the vehicle, the angle between F and the orientation of the vehicle. M denotes the buoyancy moment.

4.2.2. Algorithm Embedding for Unmanned Underwater Vehicles in Digital Twin Systems

Figure 8 displays the corresponding interface within the UUV digital twin system incorporating the resistance prediction model designed by the third research institute. As shown, the system presents real-time navigation data during operation—including actual navigation resistance, speed, and attitude—which perfectly aligns with the UUV’s virtual motion trajectory. This consistency fully demonstrates the digital twin system’s effective capability to accurately map real-world events.
Figure 8. Model robustness comparison under Gaussian noise perturbation. The proposed Transformer + CNN model maintains R2 > 0.98 even at σ = 0.10, demonstrating superior noise resistance.

4.3. Experimental Test of the Digital Twin System for UUV

Figure 9 presents the quantitative comparison between actual and predicted resistance. The horizontal axis represents actual resistance, while the vertical axis shows predicted resistance. The orange scatter points characterize the distribution of test set samples, and the red dashed line indicates the ideal prediction line y = x. The distribution pattern reveals the model’s core predictive characteristics: First, the model demonstrates excellent overall prediction accuracy. All data points cluster closely around the ideal prediction line, covering the entire resistance range from 10 to 60 N, corresponding to the full range of navigation conditions: speeds from 1 to 6 knots and attitude angles from −9° to 9°. No significant error deviation bands are observed, validating the model’s strong adaptability to diverse navigation states. Second, no systematic bias exists, with no upward or downward shift in the scatter points. This indicates the model exhibits no tendency errors toward specific conditions like high speeds or extreme attitude angles, consistent with the test set’s coefficient of determination R2 = 0.9967. This demonstrates the model’s exceptional explanatory power for resistance variations. Third, the model delivers high prediction reliability under extreme conditions. Even within the high-resistance range of 50–60 N, corresponding to 6 kn high-speed conditions, the scatter points closely align with the ideal prediction line. This demonstrates the model’s ability to maintain high-precision prediction performance during critical limit navigation conditions—a key focus in engineering applications.
Figure 9. Sensitivity analysis results. (a) Speed sensitivity showing MAE and RMSE vs. perturbation magnitude. (b) Attitude angle sensitivity showing similar proportional error increase.
To validate the predictive accuracy and stability of the established UUV resistance prediction model, this study conducted an error analysis based on 40 sets of UUV resistance experimental data, as shown in Figure 10. The experimental data comprised two core metrics: the actual steady-state resistance values of the UUV and the predicted resistance values output by the model. As shown in Figure 11, the prediction algorithm is embedded into the digital twin system for prediction. The error analysis employed relative error percentage as the key evaluation parameter to quantify the deviation between the model’s predicted results and the experimentally measured values, ensuring the objectivity and traceability of the analysis results (The positive and negative values on the horizontal axis indicate whether the forecast is greater than or less than the actual value). Overall, a slight negative deviation is observed, indicating that the model slightly underestimates actual resistance in a few operating conditions. However, the deviation magnitude is minimal, with no significant systematic error. The standard deviation of error is 2.3657%, reflecting low dispersion in the model’s prediction errors and good stability of the prediction results. Histogram analysis reveals that the model prediction errors exhibit an approximately normal distribution pattern. The largest number of samples falls within the 0.473% to 0.93% range, indicating the model’s most stable predictive capability within this resistance operating range. with 92.50% of samples exhibiting errors within ±5% and an average absolute error of only 1.4643%. This not only meets the engineering requirements for UUV design and performance analysis but also provides reliable resistance parameter support for subsequent UUV dynamics modeling and motion control research. Figure 12 illustrates the comparison between the UUV’s true and predicted resistance values. Furthermore, Figure 13 presents a histogram of the percentage distribution of the prediction errors.
Figure 10. Force Analysis Diagram for UUV Kinematic Model.
Figure 11. Algorithm Model Embedded in Digital Twin System.
Figure 12. UUV’s True vs. Predicted Resistance Values.
Figure 13. Histogram of Percentage Distribution of Errors.

4.4. Field Experimental Validation

To comprehensively validate the effectiveness and reliability of the proposed UUV digital twin system in real-world operational environments, a series of field experiments were conducted. These experiments aimed to verify the system’s capability for real-time motion state prediction, data communication reliability, and overall operational performance under actual water conditions. The field validation serves as a critical complement to the simulation-based experiments described in previous sections, providing empirical evidence of the system’s practical applicability.

4.4.1. Experimental Environment

The field experiments were conducted at an open water area in Qingxian County, Cangzhou City, Hebei Province, China (geographic coordinates: approximately 38.58° N, 116.96° E), as shown in Figure 14. This experimental site was selected based on several critical considerations that ensure both scientific rigor and operational safety. The water body provides sufficient depth for underwater navigation tests, with the experimental area featuring water depths ranging from 3 to 6 m, which is adequate for testing the UUV’s depth control capabilities across multiple operating conditions. The open water environment minimizes potential interference from surrounding structures and allows for unobstructed communication signal propagation, which is essential for testing the 915 MHz wireless communication link between the UUV and the shore-based control station.
Figure 14. (a) Real lake surface scene (b) Overview of the field experimental site at Qingxian County, Cangzhou City, Hebei Province.
The experimental site offers favorable environmental conditions including relatively calm water surfaces with minimal wave disturbance during the test period, which is crucial for accurate sensor data collection and motion state analysis. The location is situated away from major shipping lanes and fishing activities, reducing potential interference and safety risks during the experiments. Additionally, the site provides convenient access for equipment transportation and personnel deployment, with adequate shore-based infrastructure for setting up the ground control station and communication equipment. The water quality and temperature conditions at the site are representative of typical inland water environments where such UUV systems are expected to operate, thereby providing realistic operational conditions for the validation experiments.

4.4.2. Experimental Equipment

The field experimental setup comprised a comprehensive suite of equipment designed to support UUV deployment, control, monitoring, and data collection. The primary equipment configuration is detailed in Table 7, which summarizes the key components and their technical specifications. The experimental equipment can be categorized into four main groups: the UUV platform, communication systems, ground control station, and support equipment.
Table 7. Field Experimental Equipment Configuration.
The UUV platform employed in the experiments is a portable, modular-design underwater vehicle specifically developed for scientific research and engineering applications. The vehicle features a streamlined torpedo-shaped hull with a total length of 1.44 m and a diameter of 150 mm, achieving an optimal balance between hydrodynamic efficiency and internal payload capacity. The modular architecture allows for flexible configuration of mission-specific sensors and equipment, with the main body divided into five functional sections: bow section (housing forward-looking sensors), navigation section (containing guidance and control electronics), battery section (power supply), electronic section (processing units), and stern section (propulsion system). The vehicle’s total mass of 21.1 kg enables manual deployment and recovery by a two-person team without requiring specialized lifting equipment.
The communication system consists of a 915 MHz wireless radio link paired with a surface-mounted antenna, enabling data transmission between the UUV and the ground control station when the vehicle is at the surface. This communication architecture is specifically designed for the operational scenario where the UUV lacks underwater communication capability, necessitating surface communication windows for mission upload and data download. The radio system provides a reliable communication range exceeding 500 m under typical field conditions, with a data transmission rate of at least 1000 bits per second, sufficient for transmitting navigation commands and receiving status updates during surface operations.
The ground control station comprises a portable computer running the UUV control and the digital twin prediction system. The host computer serves as the primary interface for mission planning, real-time monitoring, and data analysis. The digital twin operates on this platform, executing the resistance prediction model and providing real-time visualization of the UUV’s predicted motion states. The control station also interfaces with the radio communication equipment for data exchange with the UUV during surface operations. The navigation sensor suite integrated into the UUV includes an Inertial Measurement Unit (IMU) for attitude sensing, a depth sensor for vertical positioning, and a GPS module for surface positioning. These sensors provide the raw data inputs for the digital twin system’s prediction algorithms.

4.4.3. Experimental Data Analysis and Results

The collected experimental data provides comprehensive insights into the UUV’s motion behavior and the digital twin system’s prediction performance. The analysis focuses on three key motion parameters: navigation depth, pitch angle, and navigation speed, which are critical for evaluating the UUV’s motion control performance and the digital twin system’s prediction accuracy.
Table 8 presents the statistical analysis of the steady-state phase data, excluding the initial transition period (first 10 data points). The steady-state depth standard deviation values demonstrate the UUV’s depth-holding stability, with Test-04 achieving the most stable depth control (standard deviation of 0.02 m). The pitch angle means cluster around the horizontal plane (−1.55° to 0.50°), indicating effective attitude stabilization during steady-state navigation. These results validate the UUV’s control system performance and provide reliable data for evaluating the digital twin system’s prediction capabilities.
Table 8. Steady-State Phase Statistical Analysis.
Figure 15 illustrates the depth variation profiles for each test run. The depth control performance demonstrates the UUV’s capability to achieve and maintain target depths with reasonable accuracy.
Figure 15. Comparative analysis of depth, pitch angle, speed, and throttle across all test runs. (a) Test depth comparison chart; (b) Test angle comparison chart; (c) Test speed comparison chart; (d) Test throttle comparison chart.
The pitch angle dynamics presented in Figure 15 reveal the UUV’s attitude behavior during different phases of operation. During the initial descent phase, significant pitch angle variations were observed, with values ranging from −22.1° to 11.5° across all tests. These variations are characteristic of the vehicle’s dynamic response as it transitions from surface to underwater navigation. Once the target depth was achieved, the pitch angle stabilized around the horizontal plane, demonstrating effective attitude control. The pitch angle data provides valuable input for the digital twin system’s resistance prediction model, as pitch angle directly influences the hydrodynamic resistance experienced by the vehicle.
The navigation speed profiles shown in Figure 15 demonstrate the UUV’s propulsion performance under varying throttle conditions. The speed response exhibits characteristic acceleration phases following throttle application, with the vehicle achieving speeds up to 3.77 knots under 60% throttle conditions. The speed variation patterns correlate with the throttle settings applied during each test, validating the propulsion system’s responsiveness. The observed speed range (0–3.77 knots) aligns well with the training data range used for the resistance prediction model (3.0–7.0 knots), with some overlap in the lower speed regime. This provides partial validation of the model’s applicability to real-world operating conditions.

4.4.4. Discussion and Validation Insights

The field experimental validation provides several important insights into the UUV digital twin system’s performance and practical applicability. First, the successful completion of multiple test runs with consistent data collection demonstrates the system’s operational reliability in real-world water environments. The communication link between the UUV and ground control station functioned as expected during surface operations, enabling effective mission planning and data retrieval. Second, the motion parameter data collected during the experiments aligns with the expected behavior patterns based on the simulation training data, validating the fundamental assumptions underlying the digital twin model. The depth control accuracy, attitude stability, and speed response characteristics observed in the field tests are consistent with the model’s predictions within the tested operating envelope. Third, the field experiments identified several areas for future improvement. The tested speed range (0–3.77 knots) partially overlaps with the model’s training range (3.0–7.0 knots), suggesting that additional training data for lower-speed conditions would enhance the model’s applicability across the full operational envelope. The depth range tested (0.43–5.42 m) provides validation for shallow to moderate depth operations, with deeper water validation remaining for future experiments. Fourth, the experimental data provides valuable real-world samples that can be used to further train and refine the resistance prediction model, potentially improving its accuracy and generalization capability for field deployment scenarios.
In conclusion, the field experimental validation successfully demonstrated the UUV digital twin system’s capability to operate in real water environments, collect reliable motion data, and maintain stable communication for mission execution. The experimental results provide empirical support for the system’s practical applicability and identify specific areas for continued development and optimization. These findings bridge the gap between simulation-based validation and real-world deployment, establishing a foundation for the engineering application of the proposed digital twin system in actual UUV operations.

5. Conclusions

This study successfully constructed a comprehensive digital twin framework tailored for UUVs, specifically addressing the critical challenges of remote monitoring and autonomous decision-making in communication-constrained environments. By implementing a four-layer architecture, the system establishes a robust data synchronization mechanism that bridges physical entities with their virtual counterparts, effectively overcoming the operational bottlenecks caused by signal loss.
A key innovation of this work lies in the integration of a hybrid Transformer-CNN resistance prediction model. This algorithm synergizes the capability of Transformers to capture global temporal dependencies with the efficiency of CNNs in extracting multi-scale local features. Experimental validation demonstrates the system’s superior performance in real-time resistance tracking, achieving a coefficient of determination (R2) exceeding 0.99 and maintaining prediction errors largely within ±5%. These results confirm that embedding high-fidelity physical models into the digital twin service layer significantly enhances the precision of motion state forecasting across varying scales. Furthermore, the proposed digital twin system possesses significant potential for extension into predictive maintenance and Fault Detection and Diagnosis (FDD). By continuously comparing real-time sensor data against the virtual model’s predictions, the system can identify anomalies indicative of propulsion or sensor failures. This utility mirrors advancements in the AFDD domain, where the availability of comprehensive operational datasets, such as labeled data for air handling units in office and hospital buildings [29] and semi-labelled datasets for large-scale office environments [30] has been instrumental in achieving robust diagnostic performance. Similarly, the data acquisition and prediction framework established in this study lays a solid foundation for future FDD applications in UUVs, offering a pathway to enhance operational safety and reduce maintenance costs in communication-denied marine environments. Despite these promising results, the current study relies primarily on simulation-based data. The stability and prediction accuracy of the proposed UUV digital twin system are influenced by various marine hydrodynamic factors. Seasonal variations affect water density and viscosity, which directly impact hydrodynamic resistance calculations. Water temperature variations (typically ranging from 2 to 30 °C in operational areas) alter fluid viscosity by up to 50%, thereby affecting resistance prediction accuracy. Wind speed influences surface wave generation, creating additional disturbances that propagate to underwater depths, particularly affecting UUVs operating in shallow waters. Surface and underwater currents introduce external velocity components that must be compensated in the prediction model; strong currents (>2 m/s) can cause significant deviations in navigation trajectories. Physical obstacles such as underwater structures and marine vegetation (seaweed, kelp forests) create localized flow perturbations and potential entanglement risks, necessitating real-time obstacle detection and path replanning capabilities. The current system addresses these factors through multi-source sensor fusion and adaptive prediction algorithms, though extreme environmental conditions may still challenge system stability. Future work will incorporate explicit environmental factor modeling to enhance robustness across diverse operational scenarios. Future research will focus on conducting underwater field experiments to validate system robustness under real-world wave disturbances. These advancements will provide a solid foundation for the engineering deployment of UUV digital twin systems.

Author Contributions

Y.C.: Methodology, Software Development, Formal Analysis, Research, Drafting, Validation. Y.L.: Research, Drafting, and Validation. J.L.: Supervision, Review and Editing. J.Z.: Formal Analysis, Review and Editing. Y.Z.: Conceptualization, Data Organization. K.L.: Conceptualization, Data Organization. J.C.: Data Organization, Software Development. B.X.: Funding acquisition, supervision. H.L.: Funding acquisition, supervision, writing—review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the National Natural Science foundation of China (NSFC) under Grant Nos. 52441101, T2566033, 12293001, 52461045, NSFC the Excellence Research Group Program for multiscale problems in nonlinear mechanics (Grant No. 12588201), the National Key R&D Program of China (2022YFC2806604), and the Beijing Nova Program (20240484719).

Data Availability Statement

The data presented in this study are available on request from the corresponding author (the data are not publicly available due to privacy restrictions).

Conflicts of Interest

Authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Hyun, C.; Kim, D.; Kim, H.; Jeong, D. Proposal of a Lightweight Digital Twin Framework for AUV Operational Optimization. J. Korea Inst. Digit. Econ. Technol. 2025, 7, 13–22. [Google Scholar] [CrossRef] [Scilit]
  2. Patel, S. A comprehensive review of unmanned underwater vehicles: Technologies, applications, and challenges. J. Sci. Innov. Adv. Res. 2025, 1, 236–243. [Google Scholar]
  3. She, M.; Song, Y.; Nakath, D.; Köser, K. Efficient Large-scale AUV-based Visual Seafloor Mapping. arXiv 2023, arXiv:2308.0614. [Google Scholar]
  4. Kunz, C.; Murphy, C.; Camilli, R.; Singh, H.; Bailey, J.; Eustice, R.; Jakuba, M.; Nakamura, K.-I.; Roman, C.; Sato, T.; et al. Deep sea underwater robotic exploration in the ice-covered Arctic ocean with AUVs. In 2008 IEEE/RSJ International Conference on Intelligent Robots and Systems; IEEE: Piscataway, NJ, USA, 2008; pp. 3654–3660. [Google Scholar] [CrossRef] [Scilit]
  5. Wang, R.; Wang, J.; Li, Y.; Ma, T.; Zhang, X. Research Advances and Prospects of Underwater Terrain-Aided Navigation. Remote Sens. 2024, 16, 2560. [Google Scholar] [CrossRef] [Scilit]
  6. Akyildiz, I.F.; Pompili, D.; Melodia, T. Challenges for Efficient Communication in Underwater Acoustic Sensor Networks. ACM Trans. Sens. Netw. 2023, 19, 1–28. [Google Scholar] [CrossRef] [Scilit]
  7. Li, J.; Tian, Z.; Zhang, G.; Li, W. Multi-AUV Formation Predictive Control Based on CNN-LSTM under Communication Constraints. Sustainability 2023, 11, 873. [Google Scholar] [CrossRef] [Scilit]
  8. Li, J.; Luo, R.; Zhang, H.; Tian, Z. Formation Control of Multiple UUVs Based on GRU-KF with Communication Packet Loss. J. Mar. Sci. Eng. 2025, 13, 1696. [Google Scholar] [CrossRef] [Scilit]
  9. Ma, T.; Ding, S.; Li, Y.; Fan, J. A review of terrain aided navigation for underwater vehicles. Ocean. Eng. 2023, 281, 117254. [Google Scholar] [CrossRef] [Scilit]
  10. Zhang, H.; Wang, Z. Impact of Communication Interruption on Multi-UUV Formation Coordination. IEEE Trans. Mar. Electron. Navig. 2025, 12, 89–102. [Google Scholar] [CrossRef] [Scilit]
  11. Jung, D.; Zhang, R.; Cho, H.; Ji, D.; Kim, S.; Choi, H. Control and real-time monitoring of autonomous underwater vehicle through underwater wireless optical communication. Appl. Sci. 2025, 15, 5910. [Google Scholar] [CrossRef] [Scilit]
  12. Chirala, V.S.; Venkatachalam, S.; Smereka, J.M. UV Mission Planning Under Uncertainty in Vehicles’ Availability. J. Intell. Robot. Syst. 2023, 108, 26. [Google Scholar] [CrossRef] [Scilit]
  13. Adetunji, F.O.; Ellis, N.; Koskinopoulou, M.; Carlucho, I.; Petillot, Y.R. Digital Twins Below the Surface: Enhancing Underwater Teleoperation. In OCEANS 2024-Singapore; IEEE: Piscataway, NJ, USA, 2024; pp. 1–8. [Google Scholar]
  14. Orjales, F.; Rodríguez-Cortegoso, J.; Fernández-Pérez, E.; Romero, A.; Diaz-Casas, V. Towards a digital twin for open-frame underwater vehicles using evolutionary algorithms. Appl. Sci. 2025, 15, 7085. [Google Scholar] [CrossRef] [Scilit]
  15. Ma, J.; Lan, F.; You, H. Research on biomimetic shape design and drag numerical prediction of high-speed UUV. Appl. Sci. Technol. 2024, 41, 158–165. [Google Scholar] [CrossRef]
  16. Lu, C.; Li, J.; Dong, H.; Wang, P. A data-augmented multi-fidelity deep learning method and its application on AUV drag prediction. Ships Offshore Struct. 2025, 20, 1–15. [Google Scholar] [CrossRef] [Scilit]
  17. Zhao, C.-C.; Guo, J.; Xu, K.-W.; Zhang, W. Modeling and simulation verification of AUV propulsion system based on AMESim. J. Unmanned Undersea Syst. 2021, 29, 97–103. [Google Scholar] [CrossRef]
  18. Li, X.; Zhang, D.; Zhao, M.; Wang, X.; Shen, Y. Hydrodynamic Analysis and Resistance -Reduction Design of an Unmanned Underwater Vehicle Based on Computational Fluid Dynamics. J. Mar. Sci. Eng. 2024, 12, 1388. [Google Scholar] [CrossRef] [Scilit]
  19. Vardhan, H.; Hyde, D.; Timalsina, U.; Volgyesi, P; Sztipanovits, J. Sample-Efficient and Surrogate-Based Design Optimization of Underwater Vehicle Hulls. Ocean. Eng. 2023, 311, 118777. [Google Scholar] [CrossRef] [Scilit]
  20. Si, X.; Ge, Y.; Zhu, J.; Liu, W.; Liu, H.; Yu, L. Autonomous underwater vehicles hull shape resistance prediction and multi-objective optimization using CFD. IET Conf. Proc. 2024, 2024, 666–673. [Google Scholar] [CrossRef] [Scilit]
  21. Vardhan, H.; Sztipanovits, J. Search for universal minimum drag resistance underwater vehicle hull using CFD. arXiv 2023, arXiv:2302.09441. [Google Scholar] [CrossRef] [Scilit]
  22. Xu, F.; Zhang, L.; Zhong, J. Three-dimensional path tracking of over-actuated AUVs based on MPC and variable universe S-plane algorithms. J. Mar. Sci. Eng. 2024, 12, 418. [Google Scholar] [CrossRef] [Scilit]
  23. Xu, J.; Gu, N.; Wang, D.; Li, T.; Han, B.; Peng, Z. Safety-Critical Parallel Trajectory Tracking Control of Maritime Autonomous Surface Ships Based on Integral Control Barrier Functions. IEEE Trans. Intell. Veh. 2024, 19, 3890–3901. [Google Scholar] [CrossRef] [Scilit]
  24. Zhang, T.; Wang, R.; Cao, Q.; Cui, S.; Zheng, G.; Wang, S. FlowSight: Vision-Based Artificial Lateral Line Sensor for Water Flow Perception. IEEE Trans. Robot. 2025, 41, 3260–3277. [Google Scholar] [CrossRef] [Scilit]
  25. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is All you Need. arXiv 2017, arXiv:1706.03762. [Google Scholar]
  26. Hendrycks, D.; Gimpel, K. Gaussian Error Linear Units (GELUs). arXiv 2016, arXiv:1606.08415. [Google Scholar]
  27. Nair, V.; Hinton, G.E. Rectified Linear Units Improve Restricted Boltzmann Machines. In Proceedings of the 27th International Conference on Machine Learning, Haifa, Israel, 21–24 June 2010; pp. 807–814. [Google Scholar]
  28. Kingma, D.P.; Ba, J. Adam: A Method for Stochastic Optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
  29. Wang, S. Real operational labeled data of air handling units from office, auditorium, and hospital buildings. Sci. Data 2025, 12, 1481. [Google Scholar] [CrossRef] [Scilit]
  30. Wang, S.; Eum, I.; Park, S.; Kim, J. A semi-labelled dataset for fault detection in air handling units from a large-scale office. Data Brief 2024, 57, 110956. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.