Next Article in Journal
An Adaptive Sampling Method for In-Line Inspection of Pipelines Based on Multi-Sensor Fusion and SSI-MPC
Previous Article in Journal
Physics-Guided Feature Engineering and Machine Learning for Small-Sample Prediction of Offshore Monopile Self-Weight Penetration
Previous Article in Special Issue
Self-Organized Fencing Control of Multi-AUV Systems Under Limited Sensing and Nonuniform Acoustic Communication Delays
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Data-Driven Matching Error Compensation Framework for Underwater Gravity Aided Inertial Navigation

1
School of Marine Technology and Geomatics, Jiangsu Ocean University, Lianyungang 222005, China
2
Key Laboratory of Ocean Geomatics, Ministry of Natural Resources, Chinese Academy of Surveying and Mapping, Beijing 100830, China
3
North China Sea Survey Center, Ministry of Natural Resources, Qingdao 266061, China
*
Author to whom correspondence should be addressed.
J. Mar. Sci. Eng. 2026, 14(17), 1608; https://doi.org/10.3390/jmse14171608
Submission received: 29 July 2026 / Revised: 25 August 2026 / Accepted: 26 August 2026 / Published: 1 September 2026

Abstract

Continuity and reliability are critical for underwater gravity aided inertial navigation, while variations in gravity field suitability, sensor noise, and environmental disturbances can degrade gravity matching and navigation performance. To address this issue, a data-driven matching error compensation framework is proposed for gravity aided inertial navigation. Within this framework, a Hampel filter identifies unreliable gravity matching outputs based on local temporal consistency, and a CNN–BiLSTM–Attention model predicts compensated position increments for the flagged updates. The model maps INS position increments and measured gravity anomaly sequences to reliable gravity matching increments through local feature extraction, temporal modeling, and attention-based weighting, with offline training and online deployment. Reliable training samples were selected offline using reference trajectories, with synchronized GNSS positions serving only as the reference for sample screening in the marine experiments. Experiments were conducted across five simulated gravity field regions with five gravity matching algorithms and along three measured trajectories acquired using two types of marine gravimeters. In the marine experiments, the proposed method achieved mean APE-O values of 1.60, 1.06, and 1.06 n miles on L6, L7, and L8, respectively. The improvement was most evident on L6 with relatively extended error intervals, while the conventional RBIM method achieved comparable performance on the more regular and localized L8 error interval. Across the evaluated datasets, the proposed framework provided effective compensation for degraded gravity matching updates and improved the continuity of position corrections.

1. Introduction

Reliable long-duration positioning remains an important requirement for submerged vehicles, particularly when external navigation updates are intermittent or unavailable [1,2]. Inertial navigation systems (INS) provide continuous self-contained navigation, although positioning errors may accumulate over extended operation [3,4,5]. Gravity aided inertial navigation (GAIN) can mitigate this drift by correlating onboard gravity measurements and INS-indicated positions with a reference gravity map, providing a passive navigation aid without external signal exchange [6,7,8].
Gravity matching methods generally include correlation-based methods, such as Terrain Contour Matching (TERCOM) and Iterative Closest Contour Point (ICCP) [9,10]; probabilistic filtering approaches, such as the Sandia Inertial Terrain-Aided Navigation Algorithm (SITAN) and particle filters [11,12,13]; and learning-based or heuristic methods that exploit gravity field features and nonlinear mappings [14]. Recent developments for improved matching accuracy and robustness [15,16] include multiscale Hadamard transform differential matching [17], comprehensive feature matching [18], alternating line small-domain matching [19], robust and outlier-resistant filtering [20,21,22], and adaptive filtering based on satellite-derived gravity anomaly characteristics [23]. These studies improve matching performance and reduce the influence of abnormal measurements. However, the joint problem of detecting outliers in gravity matching position outputs and compensating the affected updates has received limited attention.
In parallel with these developments, quantitative and data-driven methods have been applied to broader maritime problems, including ship-braking modeling in ice channels [24], spatiotemporal analysis of ship carbon emissions and evaluation of low-carbon shipping pathways [25], and knowledge-graph-assisted ship-speed forecasting in ports [26]. Within underwater navigation, machine learning has been applied to geophysical field-based navigation [27], underwater simultaneous localization and mapping (SLAM), and autonomous underwater vehicle navigation [28,29,30]. These studies demonstrate the ability of data-driven models to characterize nonlinear spatial and temporal relationships, but they do not directly address outlier detection in gravity matching outputs or error compensation for unreliable position updates.
In operational GAIN, sensor noise, weak or ambiguous gravity field features, trajectory-dependent observability, reference map errors, and environmental disturbances may cause gravity matching position updates to contain gross errors or become intermittent. Feeding unreliable matching results back to the INS may introduce erroneous position corrections, whereas simply rejecting them increases the interval between valid updates and reduces navigation continuity. Reliable use of gravity matching information therefore requires both the detection of outliers in matching position outputs and the compensation of the affected updates.
Abnormal-error handling has been investigated in different navigation systems. Residual-based fault detection and exclusion, initially developed for Safety-of-Life satellite navigation, identifies inconsistent observations through residual testing and consistency checks [31,32,33]. Multi-source positioning, navigation, and timing systems further exploit redundancy among INS, GNSS, long baseline (LBL), and ultra-short baseline (USBL) measurements to cross-check unreliable observations [34]. Learning-enhanced INS/DVL fusion methods estimate uncertain measurements from sensor histories [35], while Bidirectional long short-term memory (BiLSTM) and transformer-based models capture nonlinear and time-correlated inertial navigation errors [36]. Data-driven outlier detection [37], adaptive random-error modeling [38], and sequential state-domain consistency checking [39] provide alternative means of identifying or suppressing abnormal navigation observations. Learning-based position error correction has also been investigated for underwater dead-reckoning navigation [40].
Existing studies improve navigation robustness through abnormal-observation rejection, robust weighting, measurement prediction, or data-driven error correction. In GAIN, robust filters mainly reduce the influence of abnormal measurements during state estimation, whereas learning-based methods have largely been applied to measurement prediction or navigation error correction in INS-based multisensor systems. By comparison, less attention has been paid to outliers in the position increments produced by gravity matching itself, particularly methods that first identify unreliable matching increments and then compensate for the affected position updates using INS motion information and measured gravity anomaly sequences.
To address this problem, this paper proposes a data-driven matching error compensation framework for underwater GAIN. A Hampel-filter-based confidence analysis first monitors gravity matching position increments and identifies outputs containing gross errors. A convolutional neural network–bidirectional long short-term memory-attention (CNN–BiLSTM–Attention) predictor then maps INS position increments and gravity anomaly sequences to reliable gravity matching position increments through local feature extraction, bidirectional temporal modeling, and adaptive weighting. The model is trained offline and executed online after the prescribed input sequence becomes available. When a matching output is identified as unreliable, the predicted increment is used to compensate for the affected position update, thereby maintaining the continuity of gravity matching corrections.
The main contributions of this work are summarized as follows:
A gravity matching outlier detection and error compensation framework is developed by combining Hampel-filter-based confidence analysis with learned position-increment prediction. Unlike methods that only reject or down-weight abnormal observations, the proposed framework provides a compensated increment for an unreliable matching update.
A CNN–BiLSTM–Attention predictor is constructed to learn the relationship between INS position increments, gravity anomaly sequences, and reliable gravity matching position increments. The network integrates local feature extraction, bidirectional temporal modeling, and adaptive weighting and supports offline training and window-based online inference.
The framework is evaluated in five simulated gravity field regions using five gravity matching algorithms and on three measured trajectories acquired using two types of marine gravimeters. The average position error in outlier segments (APE-O), matching success rate in outlier segments (MSR-O), outlier recall rate (Recall-O), and average position error over the entire trajectory (APE-T) are used to evaluate outlier error detection and compensation performance.
The remainder of this paper is organized as follows. Section 2 introduces the principles of gravity aided inertial navigation and presents the proposed CNN–BiLSTM–Attention-based matching error compensation framework. Section 3 describes the experimental setup and evaluates the proposed framework using simulated and measured marine gravity data. Section 4 discusses the experimental findings, practical implications, and limitations of the current study. Finally, Section 5 summarizes the main conclusions and outlines directions for future work.

2. Gravity Matching Outlier Detection and Error Compensation Method

2.1. GAIN System

A gravity aided inertial navigation system (GAIN) typically comprises an inertial navigation system (INS), a gravity reference map, a marine gravimeter, and a high-precision, robust, and operational gravity matching–aided navigation (GMAN) algorithm. The fundamental working principle of GAIN is illustrated in Figure 1.
Gravity matching can be conceptualized as a one-dimensional correlation analysis problem, as gravimeters typically perform point-by-point measurements along the survey line. In practice, however, the matching process operates on a two-dimensional gravity reference map defined by horizontal position and anomaly values. As a result, the gravity measurements and the INS-derived position increments are combined to form a gravity measurement pattern. This pattern embeds both the spatial evolution of the trajectory and the numerical variations in the anomaly field, thereby retaining the spatially meaningful information along the navigation trajectory that is critical for reliable correlation [17,18].
P k = [ P k I N S , g k ]
Here, P k I N S is the INS position, g k is gravity measurement data, P k is a gravity measurement pattern. Generally, this correlation-based matching process can be expressed as [18]:
R e f ( P k , B ) = C O R ( P k , B ) max
Here, B = { B j } j = 1 N c denotes the set of candidate gravity reference sequences extracted from the search region, and N c is the number of candidate sequences. The function C O R ( P k , B j ) evaluates the similarity between the measured gravity pattern P k and each candidate sequence B j , and the candidate yielding the highest scalar correlation score is selected as the matching result. The map location associated with the selected sequence is determined as the gravity matching position.
Although the gravity reference map is defined in a two-dimensional geographical space, gravity observations are acquired sequentially along the vehicle trajectory. During gravity matching, gravity values at the candidate positions surrounding the INS-derived trajectory are extracted from the reference map and arranged in sampling order to form candidate reference sequences. These sequences are compared with the measured gravity sequence, and the candidate sequence yielding the optimal matching score determines the gravity matching position. In this representation, the candidate coordinates retain the spatial location and direction of the trajectory, while the ordered gravity values describe the along-track variation of the gravity field.
In the context of AUV navigation, once sufficient sailing distance had been covered, gravity matching was conducted by comparing gravity features with reference maps to obtain precise positional estimates. However, due to gravity measurement noise, trajectory-dependent observability, and spatial variability of gravity suitability, gravity matching position outputs are often irregular, sparse, and occasionally contaminated by isolated outliers. Removing these unreliable solutions further leads to nonuniform and discontinuous position updates.
To prevent unreliable gravity matching outputs from propagating into the INS fusion stage, an outlier detection and matching error compensation module is placed between gravity matching and integrated navigation. The Hampel filter first flags position increments that violate the local temporal consistency criterion, after which the CNN–BiLSTM–Attention model predicts compensated increments for the flagged updates before INS correction. Accordingly, the proposed method performs sample-level outlier detection and matching error compensation to reduce the influence of unreliable gravity matching updates on subsequent INS correction.

2.2. Robust Outlier Detection Using the Hampel Filter

Influenced by gravity measurement noise, variable trajectories, and dynamic changes in gravity suitability, the output positions of gravity matching contain numerous outliers. Given that underwater vehicles typically operate at a relatively constant depth and maintain near-uniform speed, the gravity matching position increments remain approximately stable under normal conditions. This property allows the Hampel filter to identify and remove outliers by monitoring deviations in these matching position increments Δ P k G M A N , rather than relying on absolute matching errors.
To enhance reliability, a Hampel filter is introduced to assess the local temporal consistency of gravity matching position increments [41]. For the k th sample, a trailing one-sided window spanning k 2 t to k is used to compute the local median m e d ( · ) and the median absolute deviation δ k . In this study, t = 5 , corresponding to a total window length of w = 2 t + 1 = 11 samples. Since the current increment is located at the end of the window, the consistency test uses only the current gravity matching increment and preceding available increments, including previously accepted or compensated increments. No future samples are required, thereby ensuring online causality. An increment exceeding the confidence threshold λ δ k is flagged as potentially unreliable.
C k = 1 , i f ( Δ P k G M A N m e d Δ P k 2 t : k G M A N λ δ k ) 0 , i f ( Δ P k G M A N m e d Δ P k 2 t : k G M A N > λ δ k )
Here, Δ P k G M A N represents the gravity matching position increment at the k th sampling point, and C k is the confidence indicator, with C k = 1 denoting a locally consistent increment and C k = 0 denoting a potentially unreliable increment. The local median is calculated as m k = m e d ( Δ P k 2 t : k G M A N ) , and δ k = m e d ( | Δ P j G M A N m k | ) , j [ k 2 t , k ] , where λ is the confidence threshold.
During offline data preparation and performance evaluation, the ground-truth matching error was defined as:
e k G T = P k G M A N P k G T 2
Here, P k G M A N denotes the gravity matching position and P k G T denotes the corresponding ground-truth position at the k th sampling point. In the simulation experiments, P k G T was obtained from the prescribed true trajectory, whereas in the marine experiments it was provided by the synchronized GNSS trajectory. Both positions were represented in the same local grid coordinate system, and e k G T was expressed in nautical miles. Continuous samples satisfying e k G T < 2 nautical miles were retained to construct the nominal training sequences, whereas samples satisfying e k G T 2 nautical miles were regarded as matching outliers during offline performance evaluation. This criterion was used only to construct reference labels for offline training-sample selection and performance evaluation.
During online operation, neither P k G T nor e k G T is available. The Hampel identifier therefore uses only the gravity matching position increments to evaluate their local temporal consistency and flag potentially unreliable increments. The resulting confidence indicator is then used to trigger the subsequent matching error compensation.

2.3. Gravity Matching Error Compensation Model Based CNN–BiLSTM–Attention

2.3.1. CNN–BiLSTM–Attention Algorithm Structure

Following Hampel-based outlier detection, the CNN–BiLSTM–Attention model predicts a compensated gravity matching position increment for each flagged update. Gravity matching estimates position by correlating a measured gravity sequence with candidate sequences extracted from the reference map. Consistent with this sequence-based mechanism, the predictor takes a temporal window of INS position increments and measured gravity anomalies as input. The window is sufficiently long to represent local gravity anomaly variation and the associated INS motion evolution, while remaining short enough to preserve local vehicle dynamics [42].
The input to the CNN–BiLSTM–Attention model consists of two components: the position increments Δ P I N S from the INS position P I N S , and the gravity anomaly measurements g corresponding to the current INS sampling points:
X i n , k = [ x k L + 1 x k L + 2 x k 3 x k 2 x k ] T ,   k Ω o u t l i e r ,   k L
x k = Δ φ k I N S Δ λ k I N S g k ,   Δ P k I N S = Δ L k I N S Δ λ k I N S
Here, k denotes the sampling index, Δ L k I N S , Δ λ k I N S are the increments in the INS latitude and longitude at the k th sampling point, respectively. Ω o u t l i e r denotes the set of indices identified as outliers by the Hampel filter. L denotes the time-window length.
The output of the error compensation model is the predicted gravity matching position increment at the k th sampling point.
Y o u t , k = Δ P k G M A N = Δ L k G M A N Δ λ k G M A N ,   k Ω o u t l i e r
Here, Δ P k G M A N is the gravity matching position increment at the k th sampling point. Its spatial components, Δ L k G M A N , Δ λ k G M A N , denote the increments in the gravity matching latitude and longitude, respectively. By training the CNN–BiLSTM–Attention model on the inputs Δ P I N S and g , and the output Δ P G M A N , the mapping relationship between inputs and outputs, thereby compensating for outliers, was learned in gravity aided navigation.

2.3.2. Fundamentals of the CNN–BiLSTM–Attention Model

The CNN–BiLSTM–Attention model combines local feature extraction, temporal-dependency modeling, and attention-based feature weighting. According to (5) and (6), the input window X k contains L consecutive observations, each comprising the INS latitude increment, INS longitude increment, and corresponding gravity anomaly value. These observations are arranged in sampling order to form a three-channel sequence. A one-dimensional convolution is first performed along the temporal sampling dimension to extract local joint patterns from adjacent observations [30,43]:
X k = X i n ,   H k C N N = R e l u ( W C X k + b c )
Here, W C , b C denote the convolution-kernel weights and bias, respectively, and ∗ represents one-dimensional convolution along the temporal sampling dimension. Each convolution kernel jointly processes adjacent INS position increments and gravity anomaly observations to characterize their local coupled variation along the trajectory. The resulting feature representation is subsequently provided to the BiLSTM layers for temporal-dependency modeling. The rectified linear unit is defined as R e l u ( z ) = m a x ( 0 , z ) .
Based on the extracted spatial features H k C N N , a BiLSTM is then employed to capture bidirectional temporal dependencies [37]:
h k 1 = L S T M f w d ( H k C N N ) ,   h k 2 = L S T M b w d ( H k C N N )
Here, L S T M f w d and L S T M b w d represent the forward and backward temporal dependencies, respectively. These dependencies are concatenated to form the bidirectional representation:
H k B i L S T M = h k 1 , h k 2
Next, an attention mechanism is applied to adaptively assign weights and emphasize critical temporal features [36]:
H k A t t e n t i o n = t = 1 L α k , t H k , t B i L S T M
Here, α k , t denotes the attention weight at the t th time step of the k th input window, computed by scoring H k B i L S T M and applying normalization, where t = 1 L .
Finally, a fully connected linear output layer is introduced after the attention module to generate the predicted compensation increment:
Δ P ^ k G M A N = W o H k A t t e n t i o n + b o
P k c o r r e c t = P k 1 G M A N + Δ P ^ k G M A N ,   k Ω o u t l i e r
Here, W o and b o are the trainable weight matrix and bias vector of the output layer, respectively. The predicted increment Δ P ^ k G M A N maps the preceding gravity matching position P k 1 G M A N to the corrected position P k c o r r e c t . For the corresponding ground-truth position P k G T , the ideal increment is expressed as:
Δ P k * = P k G T P k 1 G M A N
Based on Equations (13) and (14), the corrected position error satisfies:
P k c o r r e c t P k G T 2 = Δ P ^ k G M A N Δ P k * 2
Thus, the deviation of the predicted compensation increment from its ideal value is directly reflected in the corrected position error.
In this work, the hyperparameters are selected through a range-based tuning strategy considering regional gravity field variability and the training stability of the CNN–BiLSTM–Attention architecture. The resulting model combines spatial feature extraction, bidirectional temporal-dependency modeling, and attention-based feature weighting for position-increment prediction. The architecture is illustrated in Figure 2.

2.3.3. Outlier Detection and Matching Error Compensation Process in GAIN

The CNN–BiLSTM–Attention model functions as an error compensation predictor for underwater gravity aided navigation. The application framework comprises two stages: a training process and a correction process, as illustrated in Figure 3.
Training process: For each trajectory and gravity matching method, an independent dataset is constructed using the corresponding INS position increments and gravity anomaly observations as inputs. The regression targets are reliable gravity matching position increments generated by the same matching method; outputs from MSD, MAD, NCC, HTD, and CFM are therefore not mixed in a common dataset. Training samples are first screened using the Hampel criterion to remove isolated anomalous increments and are further restricted to samples with ground-truth residuals below 2 nautical miles, as defined in (4). The same network architecture and training configuration are used across the evaluated matching methods, whereas the model parameters are learned independently for each trajectory-matching-method dataset. Temporal windows of INS increments and gravity anomalies are then used to learn the mapping to reliable gravity matching position increments. Training continues until the prescribed convergence criterion is satisfied.
Correction process: During deployment, the Hampel filter evaluates the local temporal consistency of each gravity matching position increment. Increments satisfying the criterion C k = 1 are retained, whereas those flagged as outliers C k = 0 are replaced by the position increments predicted by the CNN–BiLSTM–Attention model. The Hampel criterion in (3) provides a deterministic local-consistency test rather than a probabilistic confidence interval. Locally consistent increments are retained, whereas flagged increments are routed to the matching error compensation stage. For each flagged update, the CNN–BiLSTM–Attention model associated with the active gravity matching method processes a temporal window of INS position increments and measured gravity anomalies to predict a compensated gravity matching position increment. The compensated position is obtained by adding the predicted increment to the preceding available position, which may be an accepted gravity matching position or a previously compensated position, thereby maintaining the continuity of the available position updates.

2.3.4. Procedures

The complete procedures of the proposed method are summarized in Algorithm 1, with Steps 1–5 corresponding to the training stage and Step 6 to the correction stage.
Algorithm 1. Procedures of CNN–BiLSTM–Attention
Step 1. Collect GNSS, INS, and gravimeter data during AUV navigation.
Step 2. Apply gravity matching algorithm to obtain gravity matching positions.
Step 3. Construct the training dataset according to predefined criteria.
Step 4. Robust confidence analysis using the Hampel Filter.
Step 5. Train the CNN–BiLSTM–Attention matching error compensation model using the screened training dataset.
Step 6. Apply the trained model in real-time to correct outliers during AUV operation.

3. Experiments and Discussion

3.1. Experimental Settings

To comprehensively evaluate the proposed gravity matching error compensation framework, a two-stage assessment strategy was implemented.
In the first stage, simulation experiments were conducted to evaluate the feasibility and applicability of the proposed method with different gravity matching algorithms, gravity field regions, and gravity measurement conditions. Five representative gravity matching algorithms, including Mean Square Deviation (MSD), Mean Absolute Deviation (MAD), Normalized Cross-Correlation (NCC), Hadamard Transform Difference (HTD), and CFM [17,18], were applied to generate position estimates. These gravity matching outputs were subsequently evaluated using the proposed CNN–BiLSTM–Attention matching error compensation framework. All simulations were performed using a gridded marine gravity database with a spatial resolution of 1′ × 1′ (1′ = 1 nautical mile = 1852 m) and an estimated accuracy of approximately 2–3 mGal [44]. Consistent with the grid-based accuracy characterization used in gravity matching navigation [17], a matching position error within two grid cells (2 n miles) was regarded as a nominal matching result. In addition, five representative trajectories (L1–L5), each 300 nautical miles long, were generated for comparison (Figure 4 and Figure 5). The simulated gravity measurements along each trajectory were corrupted by Gaussian noise n g ~ N ( μ g , σ g 2 ) , where μ g and σ g 2 denote the noise mean in mGal and variance in mGal2, respectively. The baseline simulation used μ g = 2 mGal, σ g 2 = 5 mGal2, and an INS gyroscope bias of 0.003°/h, as shown in Figure 6 and Table 1. Accordingly, L1 and L2 represent relatively low-variability gravity fields, L3 represents an intermediate condition, and L4 and L5 represent comparatively high-variability gravity fields.
In the second stage, marine experiments were conducted to assess the robustness and practical applicability of the proposed error compensation framework under realistic measurement conditions. Three measured trajectory datasets (L6–L8) were collected in the South China Sea using two types of marine gravimeters: a KSS-31 (Bodenseewerk Geosystem GmbH, Überlingen, Germany) marine gravimeter and a self-developed JMG (Innovation Academy for Precision Measurement Science and Technology, Chinese Academy of Sciences, Wuhan, China) marine gravimeter. These instruments exhibit different noise characteristics [45]. The measured trajectories are shown in Figure 4, Figure 7 and Figure 5, with the corresponding information summarized in Table 1. To enable a comparative assessment of error compensation performance, nine representative approaches were considered, including residual-based integrity monitoring (RBIM), which reconstructs the affected matching positions by propagating the last available gravity matching position with subsequent INS-derived position increments, and least squares (LS) methods as traditional baselines [31,33]; Extended Kalman Filter (EKF), Convolutional Neural Network (CNN), long short-term memory (LSTM), and BiLSTM; CNN–BiLSTM, and more advanced attention-driven architectures, including Transformer and BiLSTM–Transformer models [36]. During the marine experiments, the INS gyro precision was 0.005°/h, and GNSS positions served as ground truth. To comprehensively assess accuracy, reliability, and computational efficiency, multiple performance metrics were evaluated for each approach.
It should be noted that the framework was applied online to the outputs of five gravity matching methods rather than used for algorithm selection, with a separate dataset and model constructed for each trajectory–method combination. Within each dataset, the preceding nominal samples were chronologically divided into 80% training and 20% validation data, while subsequent matching error intervals were reserved for testing before constructing length-12 windows; adjacent windows overlapped only within the same subset and did not cross partition boundaries. The test intervals were temporally unseen but originated from the same trajectory and gravity field region; therefore, the experiments evaluate temporal generalization under the same mission conditions.
For both stages, the Hampel filter was configured with a half-window size of t = 5 , corresponding to a total window length of w = 2 t + 1 = 11 consecutive gravity matching outputs, and the confidence threshold was set to λ = 3 . The input-window length of the CNN–BiLSTM–Attention model was set to 12, with three input features at each time step. Both the input features and regression targets were normalized to the range [ 0 , 1 ] . The three convolutional layers contained 32, 64, and 128 filters with kernel sizes of 1, 3, and 5, respectively. The two stacked BiLSTM layers contained 256 and 512 hidden units, with corresponding dropout rates of 0.2 and 0.3. The dimension of the additive attention layer was set to 256, and the subsequent fully connected layer contained 128 units. The model was trained using the Adam optimizer for 200 epochs with a mini batch size of 32 and an initial learning rate of 5 × 10 4 . The learning rate was reduced by a factor of 0.8 every 100 epochs. The gradient threshold was set to 1, the samples were shuffled before each epoch, and the mean squared error was adopted as the regression loss.
Both stages adhered to identical processing principles, with the principal distinction being the source of the gravity anomaly data. Basic information on the survey is provided in Table 1. All experiments were conducted using MATLAB® R2015b on a Dell Precision 3630 workstation equipped with a 64-bit Windows 10 operating system, an Intel® Core™ i7-9700 CPU, and 32 GB RAM. This hardware configuration was used for both gravity matching baselines and the online inference evaluation of the proposed error compensation model.
Positioning performance was characterized using the average position error in outlier segments (APE-O), matching success rate in outlier segments (MSR-O), outlier recall rate (Recall-O), average position error over the entire trajectory (APE-T), and inference time (IT). Let Ω O denote the outlier sample set determined from the ground-truth trajectory using the 2-nautical-mile criterion, N O = | Ω O | denote the number of outlier samples, and N denote the total number of evaluated samples. The corrected position error at the k th sampling point is expressed as e k e r r o r = P k G M A N P k G T 2 . The corresponding metrics are:
A P E O = 1 N O k Ω O e k e r r o r
M S R O = | { k Ω O : e k e r r o r 2 } | N O × 100 %
R e c a l l O = T P T P + F N × 100 %
A P E T = 1 N k = 1 N e k e r r o r
In Equations (16)–(19), APE-O describes the average corrected position error within the reference-defined outlier set Ω O . MSR-O gives the percentage of samples in Ω O whose corrected position errors do not exceed 2 nautical miles, where | { k Ω O : e k e r r o r 2 } | denotes the number of samples satisfying this criterion. MSR-O denotes the proportion of samples within the evaluated outlier interval whose compensated position errors satisfy the prescribed accuracy threshold. Recall-O denotes the proportion of true outlier samples, defined by original matching errors greater than 2 n miles, that are successfully recovered to within the prescribed accuracy threshold after compensation. For Recall-O, T P and F N denote the numbers of successfully recovered and unrecovered true outlier samples in original outliers, respectively. APE-T describes the average corrected position error over the complete trajectory, and MSR-T denotes the matching success rate over the complete trajectory, calculated as the percentage of all trajectory samples whose position errors do not exceed 2 n miles. IT is the wall-clock time consumed by the trained model during prediction on the test inputs after the Hampel screening decision becomes available; because the current gravity matching output is located at the end of the trailing window, no subsequent matching outputs are required, and the short computational time of the Hampel screening is not included in IT. Model training, gravity matching, Hampel filtering, normalization, and data preparation are not included in IT.

3.2. Simulation Experiments

The simulation experiments evaluate the robustness of the proposed framework under different gravity matching and navigation conditions by varying the gravity matching algorithm, gravity field characteristics, and measurement/navigation error conditions. Comparative evaluations with representative compensation methods are further conducted using the measured marine data.

3.2.1. Performance Across Gravity Matching Algorithms in Region L1

Trajectory L1 was used to evaluate the matching error compensation performance of the proposed CNN–BiLSTM–Attention model for position outputs generated by five gravity matching algorithms: MSD, MAD, NCC, HTD, and CFM. For each matching algorithm, an independent dataset was constructed from its corresponding matching outputs, and a separate CNN–BiLSTM–Attention model was trained. Data generated by different matching algorithms were not mixed, while the network architecture and hyperparameter settings remained unchanged. The original matching errors and corresponding prediction results are presented in Figure 8. Five performance indicators average position error in outlier segments (APE-O), matching success rate in outlier segments (MSR-O), outlier recall rate (Recall-O), average position error over the entire trajectory (APE-T), and inference time (IT) are summarized in Table 2 as the mean and standard deviation of five independent runs. MSR-O was calculated using the 2 nautical mile criterion defined above.
As shown in Figure 8, the original error sequences generated by the five gravity matching algorithms exhibit different amplitudes and local fluctuation patterns within the principal outlier interval. The CNN–BiLSTM–Attention model reduces the corresponding error magnitude in all five cases, although its performance varies with the characteristics of the matching output. As summarized in Table 2, HTD and CFM obtain the lowest APE-O of 1.10 ± 0.03 n miles. CFM further achieves the highest MSR-O of 95.07± 2.09%, whereas the MSR-O of HTD is 75.26 ± 2.19%, indicating that the same average error does not necessarily correspond to the same proportion of samples satisfying the 2-nautical-mile criterion. MSD and NCC achieve APE-O values of 1.34 ± 0.04 and 1.45 ± 0.04 n miles, respectively, together with Recall-O values above 97%. In comparison, the MAD output presents a more challenging error pattern, resulting in an APE-O of 1.72 ± 0.04 n miles and an MSR-O of 65.00 ± 1.77%. Across the five matching algorithms, APE-T remains between 1.37 and 1.62 n miles, while IT ranges from 15.40 to 17.86 ms. The relatively small standard deviations over five independent runs indicate stable repeatability under the different matching outputs.

3.2.2. Performance Across Gravity Field Regions Using MSD

Trajectories L1–L5 were used to examine the prediction performance in gravity field regions with different anomaly characteristics. The five trajectories were distributed across separate 500 × 500-grid matching areas with increasing gravity anomaly variability from Area 01 to Area 05, corresponding to AGD values [17] of 0.93, 1.15, 1.50, 2.59, and 3.49 mGal per nautical mile, respectively. For each trajectory, an independent dataset was constructed from its corresponding MSD matching output, and a separate CNN–BiLSTM–Attention model was trained. Data from different trajectories were not mixed during training, while the network architecture and hyperparameter settings remained unchanged. The original MSD matching errors and corresponding prediction results for L1–L5 are presented in Figure 9. Quantitative results based on the five performance indicators defined above are summarized in Table 3 as the mean and standard deviation of five independent runs.
Figure 9 shows that the MSD matching errors differ considerably among the five gravity field regions in terms of amplitude, duration, and temporal distribution. The CNN–BiLSTM–Attention model reduces the principal error peaks in the identified outlier error intervals, although the quantitative performance remains region-dependent. As summarized in Table 3, L4 achieves the lowest APE-O of 1.19 ± 0.04 nautical miles, followed by L5 and L1 with 1.31 ± 0.04 and 1.34 ± 0.04 nautical miles, respectively. Their MSR-O values are also relatively high, reaching 89.07 ± 2.19%, 91.14 ± 2.18%, and 87.95 ± 2.60%. For L2, Recall-O remains high at 96.94 ± 2.04%, whereas MSR-O decreases to 59.03± 2.21%, indicating that most gross-error samples are identified but a smaller proportion of the predicted results satisfy the 2-nautical-mile criterion. L3 presents the most challenging case, with an APE-O of 2.37 ± 0.08 nautical miles, an MSR-O of 53.37 ± 2.20%, and a Recall-O of 62.91 ± 2.1%. This variation indicates that the prediction performance is influenced not only by the overall gravity anomaly variability represented by AGD, but also by the local structure and temporal distribution of the matching errors. Across L1–L5, APE-T remains between 1.566 and 1.918 nautical miles, while the inference time shows only limited variation. The relatively small standard deviations obtained from five independent runs indicate stable repeatability for each independently trained regional dataset.

3.2.3. Robustness Evaluation Under Variable Measurement Conditions

The L1 trajectory was processed using the MSD gravity matching method under nine measurement conditions. These conditions combined three Gaussian gravity noise distributions, N ( 2 , 3 ) , N ( 3 , 5 ) , and N ( 4 , 5 ) , with three INS gyroscope-bias levels of 0.001, 0.002, and 0.003°/h. The gravity matching and network parameters were set according to Section 3.1.
As shown in Figure 10, the CNN–BiLSTM–Attention model reduces the principal MSD error segments under all combinations of the three gravity noise distributions and three gyroscope-bias levels. The prediction is particularly stable at 0.001 and 0.002°/h, while larger residual fluctuations remain at 0.003°/h; nevertheless, clear error reduction is still observed. As summarized in Table 4, APE-O remains between 0.75 and 1.56 n miles and below 2 n miles in all nine conditions, with MSR-O ranging from 74.60% to 98.91%. APE-T ranges from 0.89 to 1.69 nautical miles, and the prediction time is 12.59–18.85 ms per sample. These results indicate that the model maintains effective short-duration error prediction under the evaluated gravity noise and gyroscope-bias variations.

3.3. Dynamically Measured Gravity Experiment

Experiments using three gravity datasets collected in the South China Sea were conducted to evaluate the matching error compensation performance of the proposed CNN–BiLSTM–Attention framework. For comparative assessment, several representative baseline approaches were considered, including RBIM, LS, EKF, CNN, LSTM, BiLSTM, Transformer, CNN–BiLSTM, and BiLSTM–Transformer. Five key performance indicators include the APE-O, MSR-O, Recall-O, APE-T, and IT, which are reported in Table 5. For the original CFM results, the complete-trajectory APE-T values of L6, L7, and L8 were 3.16, 1.85, and 1.67 n miles, respectively, while the corresponding overall matching success rates under the 2-n-mile criterion were 38.81%, 64.54%, and 71.16%. In addition, the compensation performance in regions containing outliers is illustrated in Figure 11, Figure 12 and Figure 13, while the statistical characteristics of positioning errors derived from the marine experiments are presented in Figure 14 and Figure 15 through multiple subplots. The hyperparameters, parameter counts, and tuning ranges used for all compared models are summarized in Appendix A (Table A1).
The error curves for L6–L8 show that the measured trajectories contain gross matching errors with different durations and amplitudes. L6 contains two relatively long error intervals, whereas L7 is characterized by a short and abrupt error segment, and L8 exhibits a moderate error increase over a continuous interval. The compensation results indicate that the CNN–BiLSTM–Attention model reduces the principal error peaks in all three trajectories. The improvement is particularly evident on L6, where several conventional and learning-based methods retain relatively large residual errors within the two gross-error intervals. Based on five independent runs, the proposed method yielded 95% confidence intervals of [1.53, 1.67], [1.01, 1.10], and [1.01, 1.11] nautical miles for APE-O on L6–L8, respectively, while two-sided Welch’s tests against BiLSTM–Transformer indicated statistically significant reductions on all three trajectories (p < 0.001). The unaided INS position errors are also included in Figure 11, Figure 12 and Figure 13 as a reference baseline. The INS errors gradually increase along the measured trajectories because of continuous inertial integration, whereas the gravity matching solutions generally remain more accurate outside the identified error intervals owing to map-referenced updates. For RBIM, the last available gravity matching position is propagated using subsequent INS-derived position increments over the identified error interval, providing an INS-increment-based propagation baseline. As the interval becomes longer, the reconstructed solution may progressively inherit accumulated inertial drift.
As summarized in Table 5, the proposed method achieves an APE-O of 1.60 ± 0.05 nautical miles on L6, compared with 2.20 ± 0.06 nautical miles for BiLSTM–Transformer. Compared with the INS-increment-based RBIM baseline, the APE-O is reduced from 2.71 to 1.60 nautical miles on L6, from 1.58 to 1.06 nautical miles on L7, and from 1.10 to 1.06 nautical miles on L8. On L6, its MSR-O and Recall-O reach 70.89 ± 3.35% and 95.04 ± 2.92%, respectively, indicating improved compensation for the more complex error intervals. The larger performance difference from RBIM on L6 is consistent with its two relatively long error intervals, over which an INS-increment-based propagation solution is more susceptible to accumulated inertial drift. On L7, the proposed method obtains the lowest APE-O of 1.06 ± 0.03 nautical miles and the highest MSR-O among the learning-based methods, reaching 94.50 ± 3.01%. Its APE-T remains comparable to those of the other methods because the gross-error interval occupies only a small portion of the complete trajectory. On L8, the proposed method achieves an APE-O of 1.06 ± 0.04 nautical miles, which is lower than those of the other learning-based models. RBIM and EKF both achieve MSR-O and Recall-O values of 100% on this trajectory, demonstrating the effectiveness of conventional methods for relatively regular and localized error patterns, whereas the proposed model shows a clearer advantage for complex or extended matching error intervals, such as those observed on L6. This behavior is consistent with the motivation for jointly using INS motion information and gravity anomaly measurements rather than relying solely on INS-increment propagation during degraded matching intervals. Across L6–L8, the proposed CNN–BiLSTM–Attention model consistently reduced the complete-trajectory APE-T by 13.2–36.7% relative to the original CFM results, indicating that the compensation improved the overall quality of the gravity matching position updates.
The probability density distributions further show that the proposed method shifts the corrected-error distribution toward lower values, particularly on L6. The distributions on L7 and L8 exhibit greater overlap because the differences among the corrected results are comparatively smaller. The inference time of the proposed model ranges from 20.54 to 21.32 ms, which is comparable to that of the Transformer-based methods, although it is not the lowest among the evaluated models. In addition, the relatively small standard deviations obtained over five independent runs indicate stable repeatability of the learning-based results on the three measured trajectories.

4. Discussion

Across the simulation and marine experiments, the proposed CNN–BiLSTM–Attention framework reduced the principal errors within the identified matching error intervals under different gravity field characteristics, matching algorithms, and measurement conditions. In the simulation experiments, the five gravity field regions covered AGD values from 0.93 to 3.49 mGal per nautical mile, and error reduction was observed for all five gravity matching algorithms. The results varied across regions and matching outputs, indicating that compensation performance depends not only on overall gravity field variability but also on the local structure and temporal distribution of matching errors. In the marine experiments, the proposed method showed strong error compensation performance on L6 and L7, where the error intervals were relatively complex or extended. On L8, conventional methods also remained effective for the more regular and localized error pattern, indicating that the relative advantage of different approaches depends on the characteristics of the matching degradation. The comparison between CNN–BiLSTM and CNN–BiLSTM–Attention further indicates that the attention-based architecture can improve prediction performance in the evaluated cases, although the independent contributions of all network components have not been fully separated. The inference time of approximately 21 ms supports the possibility of online use under the present experimental configuration, while onboard performance on embedded marine equipment still requires further verification.
The present results should be interpreted within the evaluated datasets and experimental settings. Reliable training samples were selected offline using reference positions and the 2-nautical-mile criterion, whereas online screening relies on the temporal consistency of gravity matching position increments. The revised trailing Hampel window uses only the current and preceding available increments and therefore does not require future samples. The fixed threshold provides effective screening for the evaluated data, although sustained or clustered noise may reduce detection sensitivity. In addition, the models were trained and tested separately for each trajectory; therefore, the reported results reflect temporal prediction on unseen segments of the same trajectory rather than cross-trajectory or cross-region generalization.
For consecutive flagged samples, the CNN–BiLSTM–Attention model is non-autoregressive because preceding prediction outputs are not used as network inputs. Nevertheless, residual increment errors may accumulate in the reconstructed position during extended compensation, particularly over long consecutive matching error intervals. This issue is more relevant to the relatively long error intervals of L6. Once reliable gravity matching updates resume, such accumulation is interrupted. Therefore, prolonged continuous matching failures remain a limitation of the current framework and may require additional aiding, dedicated outage estimation, or gravity matching reinitialization.
Future work will investigate adaptive Hampel-window and threshold selection under varying measurement conditions, together with uncertainty-aware prediction and strategies for sustained matching outages. More complete component-wise ablation experiments, long-duration tests with consecutive matching error intervals, and implementation on embedded navigation hardware will be conducted to clarify the contribution of individual modules, investigate error propagation during sustained matching degradation, and assess practical onboard performance. In addition, unified training using data from multiple gravity field regions will be evaluated through leave-one-trajectory-out or leave-one-region-out validation to further examine cross-region applicability.

5. Conclusions

This study developed a CNN–BiLSTM–Attention-based matching error compensation framework for gravity aided inertial navigation. The framework operates between gravity matching and INS fusion, using the temporal sequences of INS position increments and gravity anomaly measurements to predict compensation increments for potentially unreliable gravity matching outputs. For the marine experiments, synchronized GNSS positions were used only as offline reference data for training-sample selection and performance evaluation; they were not used as inputs during online compensation. Its performance was evaluated using five simulated trajectories covering AGD values from 0.93 to 3.49 mGal per nautical mile and three marine trajectories collected under different measurement conditions. Across the evaluated trajectories and gravity matching methods, the compensated results showed reductions in the average position error in outlier segments (APE-O), together with increases in the matching success rate (MSR-O) and outlier recall rate (Recall-O). In the marine experiments, the mean APE-O values were 1.60, 1.06, and 1.06 nautical miles for L6, L7, and L8, respectively, while the corresponding mean MSR-O values were 70.89%, 94.50%, and 94.20%. Recall-O remained above 95% for all three trajectories. The error distributions also exhibited reduced large-error dispersion after compensation. The inference time was short relative to the gravity matching update interval under the present experimental configuration. These results characterize the compensation performance of the proposed framework within the evaluated gravity field regions, trajectories, and matching configurations. Further work will investigate cross-region transfer, adaptive confidence analysis, and onboard deployment on embedded navigation hardware.

Author Contributions

Conceptualization, H.L. and S.X.; methodology, H.L. and S.X.; software, H.L.; validation, H.L. and Y.L.; formal analysis, H.C.; investigation, H.L., Y.L. and H.C.; resources, W.Z.; data curation, H.L. and Y.L.; writing—original draft preparation, H.L.; writing—review and editing, S.X.; visualization, H.L.; project administration, H.L.; funding acquisition, H.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 42404100; the Jiangsu Provincial Natural Science Foundation for Young Scientists, grant number BK20241059; State Key Laboratory of Geo-Information Engineering and Key Laboratory of Surveying and Mapping Science and Geospatial Information Technology of MNR, CASM, grant number 2024-01-08; Key Laboratory of Ocean Geomatics, Ministry of Natural Resources, China, grant number 2024B14; Natural Science Foundation of Jiangsu Higher Education Institutions of China, grant number 25KJB580007; Jiangsu Provincial Young Scientific and Technological Talent Support Project, grant number JSTJ-2025-585; and Postgraduate Research & Practice Innovation Program of Jiangsu Ocean University, grant number SY202558X.

Data Availability Statement

The datasets presented in this article are not readily available because the data are part of ongoing studies. Requests to access the datasets should be directed to Hui Liu.

Acknowledgments

We acknowledge David Sandwell, University of California at San Diego, for providing the radar altimeter-derived gravity data used in this study.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AGDAverage Gravity Difference
ALSMAlternating Line Small-Domain Matching
APEAverage Position Error
APE-OAverage Position Error in Outlier Segments
APE-TAverage Position Error over the Entire Trajectory
AUVAutonomous Underwater Vehicle
BiLSTMBidirectional Long Short-Term Memory
CFMComprehensive Feature Matching
CNNConvolutional Neural Network
DVLDoppler Velocity Log
GAINGravity Aided Inertial Navigation
GMANGravity Matching–Aided Navigation
GNSSGlobal Navigation Satellite System
HTDHadamard Transform Difference
ICCPIterative Closest Contour Point
INSInertial Navigation System
ITInference Time
LBLLong Baseline
LSLeast Squares
LSTMLong Short-Term Memory
MADMean Absolute Deviation
MS-HTDMultiscale Hadamard Transform Difference
MSDMean Square Deviation
MSRMatching Success Rate
NCCNormalized Cross-Correlation
PDFProbability Density Function
PNTPositioning, Navigation, and Timing
PSO-BPParticle Swarm Optimization–Backpropagation Neural Network
RAIMReceiver Autonomous Integrity Monitoring
RBIMResidual-Based Integrity Monitoring
ReLURectified Linear Unit
SITANSandia Inertial Terrain-Aided Navigation
SLAMSimultaneous Localization and Mapping
SoLSafety-of-Life
TERCOMTerrain Contour Matching
USBLUltra-Short Baseline

Appendix A

To clarify the network configurations, Table A1 summarizes the main hyperparameter settings and numbers of trainable parameters for the proposed framework and the comparison models, including the network architecture, hidden or feature dimensions, attention configuration, dropout rate, initial learning rate, number of training epochs, and mini batch size.
Table A1. Configurations of representative error compensation methods.
Table A1. Configurations of representative error compensation methods.
ModelMain Network ConfigurationHidden/Feature DimensionAttention HeadsDropoutInitial Learning RateEpochsMini BatchParameters (m)
CNN4Conv blocks + 3 FC layersConv: 32, 64, 128, 256;
FC: 128, 64, 2
N/A0.3, 0.28 × 10−3100322.2
LSTM3LSTM layers + 2 FC layersLSTM: 128, 256, 128;
FC: 64, 2
N/A0.2, 0.2, 0.3, 0.28 × 10−3200320.7
BiLSTM3BiLSTM layers + 3FC layersBiLSTM: 128, 256, 128;
FC: 64, 32, 2
N/A0.2, 0.2, 0.3, 0.23 × 10−3200322
Transformer3Transformer encoder blocks + FC headModel dimension = 128; FFN = 512; FC: 256, 128, 280.2;
FC dropout 0.3
5 × 10−3200320.8
CNN–BiLSTM3Conv layers + 2 BiLSTM layers + FC regressionConv: 32, 64, 128; BiLSTM: 256, 512;
FC: 128, 2
N/A0.2, 0.38 × 10−3200321.5
BiLSTM–Transformer3 BiLSTM layers + self-attention + FFN + FCBiLSTM: 128, 128, 64; FFN: 512→128;
FC: 64→2
40.2, 0.2, 0.1, 0.1, 0.3, 0.22 × 10−3200324
CNN–BiLSTM–Attention3Conv layers + 2 BiLSTM layers + Attention module + FC regressionConv: 32, 64, 128; BiLSTM: 256, 512;
FC: 256, 128, 2
10.2, 0.3, 0.38 × 10−3200324.2

References

  1. Rice, H.; Mendelsohn, L.; Aarons, R.; Mazzola, D. Next generation marine precision navigation system. In Proceedings of the IEEE 2000 Position Location and Navigation Symposium (PLANS), San Diego, CA, USA, 13–16 March 2000; pp. 200–206. [Google Scholar] [CrossRef] [Scilit]
  2. Yang, Y.; Xu, T.; Xue, S. Progresses and prospects in developing marine geodetic datum and marine navigation of China. J. Geod. Geoinf. Sci. 2017, 46, 1–8. [Google Scholar] [CrossRef]
  3. Jekeli, C. Precision free-inertial navigation with gravity compensation by an onboard gradiometer. J. Guid. Control Dyn. 2006, 29, 704–713. [Google Scholar] [CrossRef] [Scilit]
  4. Xue, S.; Yang, Y.; Yang, W. Single-differenced models for GNSS-acoustic seafloor point positioning. J. Geod. 2022, 96, 38. [Google Scholar] [CrossRef] [Scilit]
  5. Wu, L.; Wang, H.; Chai, H.; Zhang, L.; Hsu, H.; Wang, Y. Performance evaluation and analysis for gravity matching aided navigation. Sensors 2017, 17, 769. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Chen, H.; Taha, T.M.; Chodavarapu, V.P. Towards improved inertial navigation by reducing errors using deep learning methodology. Appl. Sci. 2022, 12, 3645. [Google Scholar] [CrossRef] [Scilit]
  7. Chang, L.; Qin, F.; Wu, M. Gravity disturbance compensation for inertial navigation system. IEEE Trans. Instrum. Meas. 2019, 68, 3751–3765. [Google Scholar] [CrossRef] [Scilit]
  8. Han, Y.; Wang, B.; Deng, Z.; Fu, M. A matching algorithm based on the nonlinear filter and similarity transformation for gravity-aided underwater navigation. IEEE/ASME Trans. Mechatron. 2018, 23, 646–654. [Google Scholar] [CrossRef]
  9. Golden, J.P. Terrain contour matching (TERCOM): A cruise missile guidance aid. In Proceedings of the SPIE 238, Image Processing for Missile Guidance, San Diego, CA, USA, 23 December 1980; pp. 10–18. [Google Scholar] [CrossRef] [Scilit]
  10. Wang, K.; Lei, Y.; Deng, W.; Zhang, J. Research on iterative closest contour point for underwater terrain-aided navigation. In Proceedings of the Joint IAPR International Workshops, SSPR 2006 and SPR 2006, Hong Kong, China, 17–19 August 2006; pp. 252–260. [Google Scholar] [CrossRef] [Scilit]
  11. Wang, Z.; Bian, S. A local geopotential model for implementation of underwater passive navigation. Prog. Nat. Sci. 2008, 18, 1139–1145. [Google Scholar] [CrossRef] [Scilit]
  12. Wu, X.; Li, S. Progress of underwater gravity-aided inertial navigation. In China National Report on Geodesy; Technical Report; Chinese National Committee for The International Union of Geodesy and Geophysics: Beijing, China, 2011. [Google Scholar]
  13. Han, Y.; Wang, B.; Deng, Z.; Fu, M. Point mass filter based matching algorithm in gravity aided underwater navigation. J. Syst. Eng. Electron. 2018, 29, 152–159. [Google Scholar] [CrossRef] [Scilit]
  14. Zong, J.; Bian, S.; Tong, Y.; Ji, B.; Li, H.; Xi, M. Classification of gravity matching areas using PSO-BP neural networks based on PCA and satellite altimetry data over the western Pacific. Sensors 2022, 22, 9892. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Wang, Y.; Deng, Z.; Zhang, P.; Wang, B.; Zhao, S. A gravity-aided navigation matching algorithm based on triangulation. IEEE Sens. J. 2024, 24, 34851–34861. [Google Scholar] [CrossRef] [Scilit]
  16. Liu, S.; Wu, L.; Li, Q.; Bao, L.; Wang, Y. Gravity matching navigation algorithm based on spatial-frequency multidimensional feature fusion. IEEE Trans. Instrum. Meas. 2025, 74, 8511212. [Google Scholar] [CrossRef] [Scilit]
  17. Liu, H.; Wu, L.; Bao, L.; Li, Q.; Zhang, P.; Wang, Y. Gravity matching navigation algorithm based on multiscale search and Hadamard transformed difference. ISA Trans. 2022, 128, 409–422. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Liu, H.; Wu, L.; Bao, L.; Li, Q.; Zhang, P.; Xi, M.; Wang, Y. Comprehensive features matching algorithm for gravity aided navigation. IEEE Geosci. Remote Sens. Lett. 2022, 19, 1505305. [Google Scholar] [CrossRef] [Scilit]
  19. Zhao, S.; Dou, Z.; Zhu, H.; Zheng, W.; Shen, Y. Gravity-aided navigation of underwater vehicles via alternating line small-domain matching method. IEEE Trans. Instrum. Meas. 2025, 74, 3002609. [Google Scholar] [CrossRef] [Scilit]
  20. Luo, K.; Cai, S.; Yu, R.; Cao, J.; Guo, Y. Robust two-stage filtering for INS/gravity matching passive integrated navigation systems. IEEE Sens. J. 2022, 22, 3370–3381. [Google Scholar] [CrossRef] [Scilit]
  21. Wang, Z.; Huang, Y.; Wang, M.; Wu, J.; Zhang, Y. A computationally efficient outlier-robust cubature Kalman filter for underwater gravity matching navigation. IEEE Trans. Instrum. Meas. 2022, 71, 8500418. [Google Scholar] [CrossRef] [Scilit]
  22. Wang, B.; Zhu, J.; Ma, Z.; Deng, Z.; Fu, M. Improved particle filter-based matching method with gravity sample vector for underwater gravity-aided navigation. IEEE Trans. Ind. Electron. 2021, 68, 5206–5216. [Google Scholar] [CrossRef] [Scilit]
  23. Mao, N.; Li, A.; Xu, J.; Li, F.; Qin, F.; He, H.; Li, J.; Zhu, B. Adaptive gravity-aided inertial navigation based on characteristic analysis of marine gravity anomaly from satellite altimetry. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5920813. [Google Scholar] [CrossRef] [Scilit]
  24. Goncharov, V.K.; Klementieva, N.Y. Parameterization of the propeller thrust for modelling ship braking in ice channel behind icebreaker. Transp. Saf. Environ. 2023, 5, tdac042. [Google Scholar] [CrossRef] [Scilit]
  25. Chen, X.; Zhang, Y.; Feng, Z.; Zhang, H.; Biancardo, S.A.; Shang, W.-L. Spatiotemporal ship carbon emission exploitation and low-carbon shipping pathway evaluation. Appl. Energy 2026, 422, 128334. [Google Scholar] [CrossRef] [Scilit]
  26. Chen, X.; Wu, P.; Wang, Z.; Feng, Z.; Luo, L.; Zhang, H.; Biancardo, S.A. MKG-GNN: Maritime knowledge graph and GNN framework for ship speed forecasting in port. Ocean Eng. 2026, 355, 125179. [Google Scholar] [CrossRef] [Scilit]
  27. Gidugu, A.R.; Vandavasi, B.N.J.; Narayanaswamy, V. Bio-inspired machine-learning aided geo-magnetic field based AUV navigation system. Sci. Rep. 2024, 14, 17912. [Google Scholar] [CrossRef] [Scilit]
  28. Heshmat, M.; Saad Saoud, L.; Abujabal, M.; Sultan, A.; Elmezain, M.; Seneviratne, L.; Hussain, I. Underwater SLAM meets deep learning: Challenges, multi-sensor integration, and future directions. Sensors 2025, 25, 3258. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  29. Palomeras, N.; Ridao, P. Autonomous underwater vehicle docking under realistic assumptions using deep reinforcement learning. Drones 2024, 8, 673. [Google Scholar] [CrossRef] [Scilit]
  30. Topini, E.; Fanelli, F.; Topini, A.; Pebody, M.; Ridolfi, A.; Phillips, A.B.; Allotta, B. An experimental comparison of deep learning strategies for AUV navigation in DVL-denied environments. Ocean Eng. 2023, 274, 114034. [Google Scholar] [CrossRef] [Scilit]
  31. Hewitson, S.; Wang, J. GNSS receiver autonomous integrity monitoring (RAIM) performance analysis. GPS Solut. 2006, 10, 155–170. [Google Scholar] [CrossRef] [Scilit]
  32. Joshi, B.; Damron, H.; Rahman, S.; Rekleitis, I. SM/VIO: Robust underwater state estimation switching between model-based and visual inertial odometry. In Proceedings of the 2023 IEEE International Conference on Robotics and Automation (ICRA), London, UK, 29 May–2 June 2023; pp. 5192–5199. [Google Scholar] [CrossRef] [Scilit]
  33. Hassan, S.; Byun, H.; Kim, J. Iterative smoothing and outlier detection for underwater navigation. In Proceedings of the Australasian Conference on Robotics and Automation (ACRA), Sydney, Australia, 1–3 December 2021. [Google Scholar] [CrossRef] [Scilit]
  34. Chen, R.; Zhao, L. Multi-level autonomous integrity monitoring method for multi-source PNT resilient fusion navigation. Satell. Navig. 2023, 4, 21. [Google Scholar] [CrossRef] [Scilit]
  35. Tal, A.; Klein, I.; Katz, R. Inertial navigation system/Doppler velocity log (INS/DVL) fusion with partial DVL measurements. Sensors 2017, 17, 415. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  36. Du, N.; Yu, H.; Sheng, H.; He, Q.; Tu, J.; Han, Z. An approach based on BiLSTM-Transformer for marine inertial navigation. In Proceedings of the 4th International Symposium on Computer Applications and Information Technology (ISCAIT), Xi’an, China, 21–23 March 2025; pp. 1039–1042. [Google Scholar] [CrossRef] [Scilit]
  37. Jiang, Y.; Zhou, Z.; Zhang, Y.; Yang, H.; Gao, Y. Deep-learning-enhanced outlier detection for precise GNSS positioning with smartphones. IEEE Trans. Instrum. Meas. 2025, 74, 2526013. [Google Scholar] [CrossRef] [Scilit]
  38. Yan, J.; Li, X.; Yang, M.; Gao, M.; Fang, Z.; Sun, R.; Xu, Y. A novel adaptive random error model integrity monitoring algorithm for low Earth orbit enhanced navigation. IEEE Trans. Instrum. Meas. 2025, 74, 8514316. [Google Scholar] [CrossRef] [Scilit]
  39. Shao, J.; Chen, W.; Wang, J.; Yu, F.; Weng, D.; Zhang, Y. Sequential integrity monitoring with state-domain consistency detection for integrated navigation in adverse urban areas. IEEE Trans. Instrum. Meas. 2025, 74, 8509611. [Google Scholar] [CrossRef] [Scilit]
  40. Liu, P.; Wang, B.; Li, Z.; Zhu, Z.; Liang, J. A positioning error correction method for dead-reckoning navigation of underwater vehicles. IEEE Trans. Instrum. Meas. 2025, 74, 8512513. [Google Scholar] [CrossRef] [Scilit]
  41. Ali, T.H.; Taha, H.H.; Sedeeq, B.S.; Hayawi, H.A.A. Novel Hampel filtering and robust regression in control chart applications for regression process monitoring. J. Stat. Theory Appl. 2025, 24, 842–860. [Google Scholar] [CrossRef] [Scilit]
  42. Wang, J.; Jiang, W.; Li, Z.; Lu, Y. A new multi-scale sliding window LSTM framework (MSSW-LSTM): A case study for GNSS time-series prediction. Remote Sens. 2021, 13, 3328. [Google Scholar] [CrossRef] [Scilit]
  43. Bhatt, D.; Patel, C.; Talsania, H.; Patel, J.; Vaghela, R.; Pandya, S.; Modi, K.; Ghayvat, H. CNN variants for computer vision: History, architecture, application, challenges and future scope. Electronics 2021, 10, 2470. [Google Scholar] [CrossRef] [Scilit]
  44. Sandwell, D.T.; Müller, R.D.; Smith, W.H.F.; Garcia, E.; Francis, R. New global marine gravity model from CryoSat-2 and Jason-1 reveals buried tectonic structure. Science 2014, 346, 65–67. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  45. Wu, P.; Wu, L.; Bao, L.; Wang, L.; Wang, B.; Tang, D. A marine gravimeter based on electromagnetic damping and its tests in the South China Sea. J. Oceanol. Limnol. 2023, 41, 792–803. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Gravity matching–aided navigation system.
Figure 1. Gravity matching–aided navigation system.
Jmse 14 01608 g001
Figure 2. CNN–BiLSTM–Attention model structure with gravity pattern construction for error compensation.
Figure 2. CNN–BiLSTM–Attention model structure with gravity pattern construction for error compensation.
Jmse 14 01608 g002
Figure 3. Process of CNN–BiLSTM–Attention for error compensation. (a) Training process; (b) correction process.
Figure 3. Process of CNN–BiLSTM–Attention for error compensation. (a) Training process; (b) correction process.
Jmse 14 01608 g003
Figure 4. Gravity reference map with simulation and measured trajectories.
Figure 4. Gravity reference map with simulation and measured trajectories.
Jmse 14 01608 g004
Figure 5. Gravity anomaly contour maps of trajectories in simulation and marine experiments.
Figure 5. Gravity anomaly contour maps of trajectories in simulation and marine experiments.
Jmse 14 01608 g005
Figure 6. Gravity measurement data and reference map data used in simulation.
Figure 6. Gravity measurement data and reference map data used in simulation.
Jmse 14 01608 g006
Figure 7. Marine gravity measurement data and reference map data.
Figure 7. Marine gravity measurement data and reference map data.
Jmse 14 01608 g007
Figure 8. Error compensation performance for position estimates produced by the various matching algorithms in L1 simulation experiments.
Figure 8. Error compensation performance for position estimates produced by the various matching algorithms in L1 simulation experiments.
Jmse 14 01608 g008
Figure 9. MSD matching errors and prediction results in different gravity field regions.
Figure 9. MSD matching errors and prediction results in different gravity field regions.
Jmse 14 01608 g009
Figure 10. Gravity matching errors and prediction results in different measurement conditions.
Figure 10. Gravity matching errors and prediction results in different measurement conditions.
Jmse 14 01608 g010
Figure 11. Matching error compensation performance of different models on the L6. (The pink boxes indicate the gross-error intervals).
Figure 11. Matching error compensation performance of different models on the L6. (The pink boxes indicate the gross-error intervals).
Jmse 14 01608 g011
Figure 12. Matching error compensation performance of different models on the L7. (The pink boxes indicate the gross-error intervals).
Figure 12. Matching error compensation performance of different models on the L7. (The pink boxes indicate the gross-error intervals).
Jmse 14 01608 g012
Figure 13. Matching error compensation performance of different models on the L8. (The pink boxes indicate the gross-error intervals).
Figure 13. Matching error compensation performance of different models on the L8. (The pink boxes indicate the gross-error intervals).
Jmse 14 01608 g013
Figure 14. Probability density distributions of position error across different algorithms for marine experiments.
Figure 14. Probability density distributions of position error across different algorithms for marine experiments.
Jmse 14 01608 g014
Figure 15. Compensation error bar chart across different algorithms for marine experiments.
Figure 15. Compensation error bar chart across different algorithms for marine experiments.
Jmse 14 01608 g015
Table 1. Survey basic information of survey lines.
Table 1. Survey basic information of survey lines.
TrackGrav.Offshore AccuracyDis. (km)Vel. (Kn)Sample Freq.Filter Length.Process Num.
L1Area 012 mGal555.6101 Hz360 s300
L2Area 022 mGal555.6101 Hz360 s300
L3Area 032 mGal555.6101 Hz360 s300
L4Area 042 mGal555.6101 Hz360 s300
L5Area 052 mGal555.6101 Hz360 s300
L6KSS-311 mGal63091 Hz300 s994
L7JMG2 mGal463.84111 Hz100 s800
L8KSS-311 mGal597.0891 Hz150 s865
Table 2. Compensation performance of CNN–BiLSTM–Attention under different gravity matching algorithms.
Table 2. Compensation performance of CNN–BiLSTM–Attention under different gravity matching algorithms.
MethodAPE-O (n Miles)MSR-O (%)APE-T (n Miles)Recall-O (%)IT (ms)
MAD1.72 ± 0.0465.00 ± 1.771.41 ± 0.0386.31 ± 1.7215.51 ± 1.31
MSD1.34 ± 0.0487.95 ± 2.601.56 ± 0.0598.48 ± 1.3617.25 ± 1.82
NCC1.45 ± 0.0484.81 ± 2.091.62 ± 0.0597.35 ± 1.6515.40 ± 1.53
HTD1.10 ± 0.0375.26 ± 2.191.37 ± 0.0594.96 ± 2.1916.30 ± 1.57
CFM1.10 ± 0.0395.07 ± 2.091.40 ± 0.0495.41 ± 2.0717.86 ± 1.93
Table 3. Compensation performance of CNN–BiLSTM–Attention with MSD matching in different sea areas.
Table 3. Compensation performance of CNN–BiLSTM–Attention with MSD matching in different sea areas.
TrackAPE-O (n Miles)MSR-O (%)APE-T (n Miles)Recall-O (%)IT (ms)
L11.34 ± 0.0487.95 ± 2.601.56 ± 0.0598.48 ± 1.3617.25 ± 1.82
L21.78 ± 0.0559.03 ± 2.211.76 ± 0.0596.94 ± 2.0415.49 ± 1.58
L32.37 ± 0.0853.37 ± 2.201.91 ± 0.0662.91 ± 2.1517.17 ± 1.90
L41.19 ± 0.0489.07 ± 2.191.75 ± 0.0692.64 ± 2.1614.18 ± 1.63
L51.31 ± 0.0491.14 ± 2.181.66 ± 0.0598.68 ± 1.3216.37 ± 1.90
Table 4. Compensation performance of the proposed model for the L1 MSD matching results under different gravity measurement noise and INS gyroscope-bias conditions.
Table 4. Compensation performance of the proposed model for the L1 MSD matching results under different gravity measurement noise and INS gyroscope-bias conditions.
Gravity NoiseGyroscope Bias (°/h)APE-O (n Miles)MSR-O (%)APE-T (n Miles)Recall-O (%)IT (ms)
N 2 , 3 0.0011.08 ± 0.05297.95 ± 1.920.89 ± 0.03698.08 ± 1.8218.85 ± 2.00
N 3 , 5 0.0011.55 ± 0.07392.42 ± 3.601.07 ± 0.04497.47 ± 1.4015.05 ± 1.50
N 4 , 5 0.0011.41 ± 0.06395.79 ± 2.921.04 ± 0.04597.66 ± 1.4116.05 ± 1.64
N 2 , 3 0.0021.50 ± 0.07497.79 ± 1.481.17 ± 0.05397.92 ± 1.4712.59 ± 1.36
N 3 , 5 0.0020.75 ± 0.03698.91 ± 0.730.99 ± 0.03698.98 ± 0.7313.81 ± 1.36
N 4 , 5 0.0020.97 ± 0.04598.87 ± 0.721.04 ± 0.04598.95 ± 0.7313.82 ± 1.37
N 2 , 3 0.0031.55 ± 0.07174.60 ± 4.881.58 ± 0.07189.60 ± 3.9113.91 ± 1.27
N 3 , 5 0.0031.56 ± 0.07186.20 ± 4.661.50 ± 0.06299.20 ± 1.7913.77 ± 1.32
N 4 , 5 0.0031.42 ± 0.05592.40 ± 3.211.69 ± 0.06098.60 ± 1.9513.76 ± 1.09
Table 5. Error compensation statistics for various algorithms applied to outliers in marine experiments.
Table 5. Error compensation statistics for various algorithms applied to outliers in marine experiments.
TrackMethodAPE-O (n Miles)MSR-O (%)APE-T (n Miles)Recall-O (%)IT (ms)
L6RBIM2.7130.582.1948.82-
LS5.147.642.619.41-
EKF2.4734.712.1558.82-
CNN2.93 ± 0.1020.68 ± 2.962.23 ± 0.0736.25 ± 4.7814.76 ± 1.80
LSTM2.84 ± 0.109.12 ± 3.272.20 ± 0.0832.75 ± 4.3110.95 ± 1.16
BiLSTM2.97 ± 0.1128.34 ± 3.422.25 ± 0.0840.38 ± 3.9013.47 ± 1.50
Transformer2.83 ± 0.1027.94 ± 4.052.22 ± 0.0743.64 ± 4.1721.48 ± 2.32
CNN–BiLSTM2.32 ± 0.0731.91 ± 3.952.13 ± 0.0671.59 ± 4.0116.22 ± 1.74
BiLSTM–Transformer2.20 ± 0.0654.16 ± 3.712.10 ± 0.0573.77 ± 4.1116.88 ± 1.91
CNN–BiLSTM–Attention1.60 ± 0.0570.89 ± 3.352.00 ± 0.0695.04 ± 2.9221.32 ± 2.30
L7RBIM1.5885.711.62100.00-
LS1.3290.471.62100.00-
EKF2.454.761.6557.14-
CNN1.92 ± 0.0647.56 ± 7.031.64 ± 0.0576.04 ± 7.4216.04 ± 1.90
LSTM1.53 ± 0.0589.89 ± 7.321.62 ± 0.0595.28 ± 3.7012.50 ± 1.43
BiLSTM1.94 ± 0.0657.15 ± 7.231.65 ± 0.0391.75 ± 4.2215.52 ± 1.71
Transformer1.76 ± 0.0666.81 ± 6.911.63 ± 0.0590.73 ± 6.0522.77 ± 2.17
CNN–BiLSTM1.26 ± 0.0452.90 ± 6.911.60 ± 0.0586.37 ± 6.9018.85 ± 0.31
BiLSTM- Transformer1.29 ± 0.0476.65 ± 6.781.60 ± 0.0591.70 ± 6.5518.02 ± 1.63
CNN–BiLSTM–Attention1.06 ± 0.0394.50 ± 3.011.60 ± 0.0597.78 ± 2.1220.58 ± 1.92
L8RBIM1.10100.001.46100.00-
LS2.710.001.5643.14-
EKF1.66100.001.49100.00-
CNN1.91 ± 0.0745.73 ± 6.331.47 ± 0.0573.84 ± 6.5615.72 ± 1.58
LSTM1.52 ± 0.0587.89 ± 6.511.48 ± 0.0594.14 ± 3.7712.37 ± 1.32
BiLSTM1.93 ± 0.0655.35 ± 6.601.47 ± 0.0592.08 ± 5.4516.34 ± 1.54
Transformer1.75 ± 0.0665.31 ± 6.651.47± 0.0588.94 ± 6.1122.21 ± 2.29
CNN–BiLSTM1.27 ± 0.0551.17 ± 7.071.46 ± 0.0584.87 ± 6.7516.48 ± 1.67
BiLSTM- Transformer1.29 ± 0.0574.21 ± 6.701.47 ± 0.0589.77 ± 7.1817.22 ± 1.70
CNN–BiLSTM–Attention1.06 ± 0.0494.20 ± 3.351.45 ± 0.0598.31 ± 2.3320.54 ± 2.02
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.

Share and Cite

MDPI and ACS Style

Liu, H.; Liu, Y.; Xue, S.; Cheng, H.; Zhang, W. A Data-Driven Matching Error Compensation Framework for Underwater Gravity Aided Inertial Navigation. J. Mar. Sci. Eng. 2026, 14, 1608. https://doi.org/10.3390/jmse14171608

AMA Style

Liu H, Liu Y, Xue S, Cheng H, Zhang W. A Data-Driven Matching Error Compensation Framework for Underwater Gravity Aided Inertial Navigation. Journal of Marine Science and Engineering. 2026; 14(17):1608. https://doi.org/10.3390/jmse14171608

Chicago/Turabian Style

Liu, Hui, Yuhang Liu, Shuqiang Xue, Han Cheng, and Wang Zhang. 2026. "A Data-Driven Matching Error Compensation Framework for Underwater Gravity Aided Inertial Navigation" Journal of Marine Science and Engineering 14, no. 17: 1608. https://doi.org/10.3390/jmse14171608

APA Style

Liu, H., Liu, Y., Xue, S., Cheng, H., & Zhang, W. (2026). A Data-Driven Matching Error Compensation Framework for Underwater Gravity Aided Inertial Navigation. Journal of Marine Science and Engineering, 14(17), 1608. https://doi.org/10.3390/jmse14171608

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop