Abstract
Although an autonomous underwater vehicle (AUV) is noted for its good autonomy, concealment and anti-interference ability, errors in its inertial navigation system (INS) inevitably increase over time, leading to positional failure during long-term voyages. Terrain-assisted navigation can help the INS to correct its position. The traditional iterative closest contour point (ICCP) achieves high matching accuracy when the initial position error of the INS is small, but is prone to mismatching when the initial error is large. This study combines ICCP with particle swarm optimization (PSO) to overcome this problem. First, the global optimization ability of PSO is improved by changing the acceleration factor and introducing an artificial bee colony (ABC) onlooker bee greedy search (ABC-ωAPSO). Second, the Euclidean distance of ICCP is replaced by the Mahalanobis distance to abate the influence of system error on the matching accuracy. Finally, the initial position error is reduced by rough matching using the ABC-ωAPSO, which has global optimization capability. Next, fine matching is performed by ICCP. This two-step process resolves the sensitivity problem of ICCP to the initial position error. The experimental results revealed a good matching effect after the double-matching procedure. When the initial INS errors were 0.55′ to the east and 0.55′ to the north, the matching error was reduced to 89.3 m, suggesting that the approach can realize autonomous passive navigation of AUVs.
Keywords
Introduction
Autonomous underwater vehicles (AUVs) are being used increasingly in military and commercial applications because of their capability for autonomous navigation. However, location errors are common in long-distance, deep-dive, and all-weather missions; the cumulative errors in the inertial navigation system (INS) can be corrected by terrain-aided navigation (TAN) algorithms, which match the measured topographic distribution characteristics to the background of the terrain data. As the original terrain-database information is contained in the sounding-point location information, the measured terrain-elevation distribution can be obtained from the real-time location information in the background field and employed for aiding the error correction of the inertial navigation.1–4 The matching algorithm plays a very important role in the TAN system. Iterative closest contour point (ICCP) is one of the most commonly used terrain-matching algorithms, which is advantaged by high precision and easy implementation. Further, ICCP has high matching accuracy when the initial error is small, but it often has poor matching accuracy when the initial error is large.5–7
ICCP has been improved by many scholars. Liu et al. 8 proposed a real-time ICCP with an optimized matching sequence length (OMSL-ICCP), which can obtain the current optimal matching sequence length through searching the current measurements to reduce matching error. Wang et al. 9 replaced the Euclidean distance with the Mahalanobis distance in ICCP to improve the anti-interference ability of the algorithm. Wang et al. 10 proposed a parallel ICCP algorithm, which improves the matching accuracy of ICCP for large initial errors but is computationally time-intensive. Alternatively, Ji et al. 11 and Gao et al. 12 applied particle swarm optimization (PSO) and artificial bee colony (ABC) algorithms for INS matching. These algorithms reduce the matching time and improve the matching effect, but their matching accuracy for large initial position errors requires further investigation. Some scholars have combined ICCP with other algorithms in complementary schemes that exploit the different performances of different algorithms. Xu et al. 13 proposed a new PSO-ICCP that effectively improved the matching accuracy. Yuan et al. 14 combined the matching results of terrain contour matching (TERCOM) and ICCP. The difference between the two matching results was input to a Kalman filter to reduce the matching error. Unfortunately, the speed of matching using this approach is slow. Ding et al. 15 and Zhang et al. 16 both implemented a two-stage, coarse-fine matching algorithm to enhance the matching accuracy. To function effectively, these algorithms necessitate the integration of data from the multi-beam echosounder (MBES), an apparatus that demands both high computational capability and stringent prerequisites.
The traditional ICCP has higher accuracy under small initial position errors, indicating that local searching well converges under this circumstance. However, matching failures often occur under large initial position errors. To enhance the performance of the traditional ICCP for large initial position errors, the INS indicator tracking can be preprocessed by ABC optimization adaptive PSO (ABC-ωAPSO), and then refined by ICCP. The two algorithms achieve effective complementarity; that is, the fast global optimization capability of ABC-ωAPSO complements the local refinement capability of ICCP. The main contents of this research are summarized below.
(1) The Euclidean distance in ICCP is replaced by the Mahalanobis distance as the objective function. The Mahalanobis distance reduces the influence of noise and improves the stability of the algorithm.
(2) To remove the sensitivity of ICCP to the initial position error, the initial position error is first reduced by ABC-ωAPSO. ICCP is then applied for precise matching and the matching accuracy is improved by the quadratic matching strategy.
(3) The acceleration factor of PSO is first improved and a peak greedy search is then introduced to improve the global optimization ability of PSO, and hence the rough-matching effect. The improved PSO for fine matching by ICCP.
(4) The conclusion is obtained through the simulation experiment.
ICCP and improvement
ICCP algorithm
ICCP uses the minimum square of the Euclidean distance as the objective function to obtain the optimal rigid transformation between the measured trajectory and true trajectory, so as to obtain the corrected trajectory. ICCP searches for the point set closest to the indicated location of the INS on the isobath, as shown in Figure 1. In Figure 1, Ai (i = 1, 2 …N) represents the bathymetric measurement point on the real track, where N is the length of the matching sequence; Ci (i = 1, 2 …N) represents the isobath; pi (i = 1, 2 …N) is the indicated location of INS; yi (i = 1, 2 …N) is the matching location. ICCP iterates continuously to find T, and T represents the rotation transformation (R) and translation transformation (t) of each iteration; then, the distance-squared function D between the current iterative point set pi after transformation and the closest point set yi of pi on the isobath Ci is minimized, as shown in equation (1). The transformed point set Tpi of the current iteration point set pi is taken as the next iteration point set. After several iterations, the set of iterative points satisfying the convergence conditions is taken as the final set of matching points. 17

Principle of the ICCP.
According to the ICCP principle, the traditional ICCP has great limitations in application:
(1) If the location indicated by INS greatly differs from the true location, it will lead to mismatch divergence or even mismatching.
(2) ICCP is based on the data reference map, but there are errors in data acquisition and contour drawing.
To overcome these limitations, we improved the traditional ICCP as follows.
Improved ICCP algorithm
ICCP does not consider the influence of depth measurement errors and isobath drawing errors in the algorithm. Hence, the Euclidean distance was replaced by the Mahalanobis distance to abate the influence of errors on the system. Thus, the matching accuracy of ICCP was improved to make the algorithm more practical. The Mahalanobis distance can eliminate the interference of variable correlation.
The Euclidean distance equation (1) is replaced with the Mahalanobis distance equation (2).
where Vij represents the covariance matrix of the (i,j)th term;
ABC-ωAPSO terrain-matching algorithm
In order to reduce the initial position error, it needs to be preprocessed. Because PSO performs fast optimization, it is employed for initial matching. However, the classical PSO is prone to local optimality. To avoid this problem, we apply the improved PSO for rough matching, and then the improved ICCP is used for fine matching.
Improved PSO algorithm
The classical PSO is a random optimization algorithm based on population. The equations of PSO with inertial weight as introduced by Shi and Eherhart are shown in equations (3) and (4).18,19
where i represents the total number of particles (i = 1, 2, …., s); j represents the dimensions (j = 1, 2, …., n);
According to equation (3), PSO uses individual information to communicate with the group, which makes the group move to the global optimal location quickly. It has the advantages of fast convergence speed and strong group cooperation, but its diversity deteriorates in later iterations. Therefore, in this study, a time-varying function c2(τ) was added to the individual optimal solution to reduce the role of the individual optimal solution in later iterations. And the performance of the global optimal solution increases relatively, so as to improve the global optimization of the classical PSO. After improvement, the speed updating formula is shown in equation (5), which is called adaptive PSO (APSO).
where
The linear decreasing inertial weight was introduced as shown in equation (6) to enhance the convergence of the algorithm.
where N is the maximum number of iterations, and

The flow chart of ωAPSO.
ABC algorithm principles
ABC is based on the foraging behavior of honeybees. In the ABC algorithm, three specific roles are allocated to artificial bees, namely, the scout bee, the employed forager, and the onlooker bee. Importantly, each artificial bee is restricted to a single role at any given time; however, role transitions are permissible based on the bee’s status during the solution process. Scout bees assume the duty of conducting a global random search within the solution space of ABC. Furthermore, employed foragers serve a dual purpose: they not only direct the swarm towards the global optimal solution but also search for superior nectar sources proximate to their existing discoveries. Moreover, these employed foragers provide pivotal information to onlooker bees. Relying on this information, onlooker bees engage in localized searches around the identified nectar sources, with higher nectar concentrations increasing their likelihood of being targeted. In the vicinity of a honey source, when onlooker bees discover an alternative source that surpasses the existing one in quality, a role reversal occurs between the onlooker bee and the employed forager.
The ABC algorithm commences with an initial search phase executed by scout bees. During this phase, these bees strive to explore the entire problem solution space as comprehensively as possible to ensure a rich diversity of solutions. Subsequently, the nectar concentrations of various sources are assessed and recorded. Consequently, the algorithm transitions to the employed forager search phase. Given that the initial nectar sources represent the best finds of each scout bee, this information becomes invaluable in guiding the swarm’s search direction. Thus, all scout bees morph into employed foragers. During this phase, each employed forager conducts a targeted search in the vicinity of its previously discovered nectar source. Following this, a comparison is made between the newly identified and the existing nectar sources, and the one with a higher concentration is selected.
Lastly, the algorithm enters the onlooker bee search stage. Onlooker bees choose their search locations based on the nectar concentration data supplied by employed foragers. Evidently, sources with higher concentrations have a greater probability of selection. During this stage, each onlooker bee performs a localized random search around its selected nectar source. Subsequently, the algorithm compares the newly discovered source with the existing one. The source demonstrating superior concentration becomes the new nectar source, while less optimal sources are eliminated. If an onlooker bee identifies a local optimum, it assumes the role of an employed forager, thereby initiating a role-switch with the former employed forager – now re-designated as an onlooker bee. 21
In summary, the distinguishing feature of the ABC algorithm lies in its balanced approach to guided random searches. This strategy harmonizes the utility of historical data with the element of randomness. Additionally, it carefully considers both the convergence rate and the population diversity within the algorithm’s framework. ABC retains high-quality feasible solutions and eliminates poor feasible solutions in continuous iterative. The flow chart of ABC is shown in Figure 3.

The flow chart of ABC.
ABC-ωAPSO algorithm and stability analysis
The improved PSO greatly depends on the global optimal solution in the late iteration; this dependence weakens the randomness of the algorithm. Therefore, the onlooker bee search factor in the bee colony was introduced to strengthen the ωAPSO.
The onlooker bee search is based on using a roulette to randomly select individuals and then conduct greedy search around them. In the ABC algorithm, the onlooker bee also undergoes a meticulous decision-making process. After searching the space surrounding a discovered nectar source, the onlooker bee compares its findings with the existing source. If the newly identified nectar source boasts a higher concentration, the bee transitions to this new source, abandoning the old one. Conversely, if the old source proves to be more abundant, the bee remains. Through ongoing comparisons, the onlooker bee consistently retains the better options. This search pattern is both random and pioneering. 22 In the hybrid algorithm, the pbest is considered as the employed forager in ABC, and onlooker bees conduct greedy search around it. The ωAPSO introduced with onlooker bees in ABC is denoted as ABC-ωAPSO. The introduction of onlooker bees does not reduce the stability of the algorithm because they constantly select better individuals for the next generation of population during the search; hence, the whole population develops in the optimal direction. The flow chart of ABC-ωAPSO is shown in Figure 4.

The flow chart of ABC-ωAPSO.
The initial terrain matching in ABC-ωAPSO proceeds as follows:
1. Set the global initialization domain U.
where [
2. Random initialization of ABC and PSO swarm. Set the maximum number of iterations, number of swarms, and particles as
3. Calculate the fitness-function value of each particle.
4. Update the pbest and gbest.
5. ABC search. Onlooker bees implement a greedy search around pbest. Onlooker bees judge whether the current position is the optimal position corresponding to the minimum fitness-function value.
6. Update the pbest and gbest.
7. Judge whether the termination conditions are met. If termination conditions are met, record the optimal matching sequence. Otherwise, loop to step 3 until termination conditions are met. The termination condition is that the maximum number of iterations or the matching result satisfies the limit difference.
ABC-ωAPSO is applied to terrain initial matching. The initial matching results are refined using the improved ICCP. The algorithm after two matchings is denoted as ICCP-a.
Simulation and analysis
Parameter setting
To verify the performance of traditional ICCP-a, three tests were conducted in this paper. For comparative analysis, the ICCP-a algorithm was benchmarked against traditional ICCP and TERCOM-ICCP algorithms. TERCOM-ICCP combines the capabilities of TERCOM for initial rough matching and ICCP for the subsequent fine matching phase.
Three tests were conducted to evaluate the performance of these algorithms, each with distinct initial conditions. For Test 1 and Test 2, the initial geographical coordinates were 122.086°E, 37.577°N, the initial course was 150° north by east, and the initial errors of the INS were 0.35′ and 0.55′ to the east, 0.35′ and 0.55′ to the north, respectively. Test 3, however, focused on assessing the algorithms under varying terrains. The AUV traveled at a uniform speed through two distinct regions. The initial errors in the INS were 0.2′ to the east, 0.2′ to the north, and the initial course was 10° north by east. The region with more pronounced terrain changes was labeled as “area-a,” where the standard deviation in water depth was 1.41. Conversely, “area-b,” exhibiting less dramatic terrain changes, had a water depth standard deviation of 0.62. The initial positions for these regions were 122.07°E, 37.575°N and 122.07°E, 37.585°N, respectively. The INS parameters are tabulated in Table 1. The parameter settings of ABC-ωAPSO are provided in Table 2.
INS parameters.
Parameters of ABC-ωAPSO.
Test trajectory and analysis
Test 1: The underwater vehicle turned at a uniform speed. Figures 5 and 6 provide graphical representations of the trajectories produced by these three matching algorithms, offering visual insights into their comparative performance.

Matching results with an initial position error of (0.35′, 0.35′): (a) Initial INS error of (0.35′, 0.35′) and (b) locally enlarged image with an initial error of (0.35′, 0.35′).

Matching results with an initial position error of (0.55′, 0.55′): (a) Initial INS error of (0.55′, 0.55′) and (b) locally enlarged image with an initial error of (0.55′, 0.55′).
Figures 5 and 6 delineate a comparison among ICCP-a, TERCOM-ICCP, and traditional ICCP algorithms. In both instances of varying initial errors, ICCP-a and TERCOM-ICCP markedly outperform the traditional ICCP. Further scrutiny, particularly through local magnification, reveals that ICCP-a offers greater stability in matching than TERCOM-ICCP. The matching times, matching errors, and matching error variances of the three algorithms are compared in Table 3. The matching error is expressed as the mean value of the root mean square of the error in the longitude and latitude directions of the entire track sequence.
Test 2: The underwater vehicle traveled straight at a uniform speed. Figure 7 shows the trajectory of three matching algorithms.
Terrain matching results of Test 1.

Matching results of three matching algorithms of Test 2: (a) Initial INS error of (0.35′, 0.35′) and (b) initial INS error of (0.55′, 0.55′).
As depicted in Figure 7, when considering two distinct scenarios of initial error, the performance of ICCP-a in terms of matching is markedly superior to both ICCP and TERCOM-ICCP. Furthermore, as the initial error escalates, it becomes evident that the conventional models of ICCP and TERCOM-ICCP exhibit diminished stability. In contrast, ICCP-a maintains a commendable level of stability under the same conditions. Table 4 compares the matching times, matching errors, and matching error variances of the three algorithms.
Test 3: The underwater vehicle traveled straight at a uniform speed. Figures 8 and 9 present the trajectory analysis for three distinct matching algorithms within terrain areas labeled as area-a and area-b.
Terrain matching results of Test 2.

Matching results with an initial position error of (0.2′, 0.2′) in area-a: (a) Initial INS error of (0.2′, 0.2′) in area-a and (b) locally enlarged image with an initial error of (0.2′, 0.2′) in area-a.

Matching results with an initial position error of (0.2′, 0.2′) in area-b: (a) Initial INS error of (0.2′, 0.2′) in area-b and (b) locally enlarged image with an initial error of (0.2′, 0.2′) in area-b.
As shown in Figure 8, all three algorithms – ICCP-a, traditional ICCP, and TERCOM-ICCP – exhibit commendable performance in areas with substantial terrain variations. Nonetheless, a more granular inspection via local magnification clearly reveals that ICCP-a stands out for its stability and unmatched accuracy. In stark contrast, the traditional ICCP lags significantly in areas with less pronounced terrain changes. The instability of TERCOM-ICCP is even more conspicuous in these areas. However, ICCP-a excels in its consistency and superior matching capability across different terrain types. Table 5 compares the matching times, matching errors, and matching error variances of the three algorithms.
Terrain matching results of Test 3.
To further evaluate the performance of the algorithm, the matching effect of ICCP-a under different measurement noises were tested. All algorithms were subjected to the addition of different white noises to the initial position error of Test 2, which was (0.35′, 0.35′). The added white noises approximately followed a normal distribution, namely, N(0,1), N(0,4), and N(0,9), respectively. The matching errors are presented in Table 6.
Matching errors under different noises.
From Table 6, it can be observed that as the noise level increases, the matching errors of all three algorithms also increase. However, ICCP-a exhibits the slowest rate of change, clearly indicating that increasing the Mahalanobis distance effectively reduces the impact of noise on ICCP. Moreover, compared with the other two algorithms, ICCP-a demonstrates the highest matching accuracy under the three different noise conditions.
We also conducted a study on the iterative process of the algorithm with an initial position error of (0.35′, 0.35′) in Test 2. ICCP-a had 50 iterations for coarse matching and 10 iterations for fine matching. For a fair comparison, ICCP was set to have 60 iterations, and in the TERCOM-ICCP, ICCP had 10 iterations. All three algorithms ceased searching once the maximum number of iterations was reached. Figure 10 illustrates the matching errors at each iteration of the three algorithms.

Matching errors of three algorithms in the iterative process.
In the ICCP-a, when using ABC-ωAPSO for initial matching, there are two noticeable decreases in matching errors, representing improvements in both PSO and ABC searches. This strongly demonstrates that PSO based on ABC search can effectively enhance global optimization capabilities. When the number of ICCP iterations reaches 30 times, there is no significant change in matching errors. In the TERCOM-ICCP, the initial matching error with the TERCOM is 324.6 m, and ICCP iterations are performed based on the matching result of TERCOM. Figure 10 illustrates that using both algorithms results in lower matching errors compared to using just one algorithm. The matching accuracy is higher when ABC-ωAPSO is used for initial matching than when TERCOM is employed.
In conclusion, our multi-faceted experiments establish the superior performance of ICCP-a and TERCOM-ICCP over the traditional ICCP. This assertion gains quantitative backing from Tables 3 and 4, which indicate that with initial INS errors of (0.35′, 0.35′), the matching error with ICCP-a was reduced by up to 3.4 times compared to the traditional ICCP, and by 1.7 times compared to TERCOM-ICCP. As these initial errors escalated to (0.55′, 0.55′), ICCP-a further reinforced its superior standing by reducing matching errors by as much as 3.7 and 2 times, respectively. The predominance of ICCP-a can be attributed largely to its resilience to course errors – a shortcoming that severely affects TERCOM-ICCP. In scenarios where the course error is excessively large, TERCOM exhibits a phenomenon of mismatching. Consequently, the rough matching effect of ABC-ωAPSO outshines that of TERCOM.
Test 3 reveals that all three algorithms exhibit enhanced performance in regions characterized by pronounced terrain variations. However, in areas where the terrain changes are subtle, the matching error for the traditional ICCP noticeably escalates, and instability becomes evident in TERCOM-ICCP. This occurs primarily because these less variegated terrains have an abundance of similar topographical areas, making mismatches more likely.
In contrast, ICCP-a demonstrates robust matching capabilities across both types of terrains, thus underscoring the benefits of its double-matching feature. Additionally, by utilizing ABC-ωAPSO for the initial matching phase, the algorithm effectively minimizes initial position errors, setting the stage for more precise fine matching via the ICCP algorithm. When considering the time required for matching, ICCP-a does not show a significant increase, thereby affirming the rapid global optimization capabilities of ABC-ωAPSO. Furthermore, even when the noise level is increased, ICCP-a also exhibits remarkable stability. Importantly, ICCP-a achieves superior positional accuracy, meeting the stringent navigational requirements of AUVs for extended voyages. This makes it highly valuable for realizing the goal of autonomous passive navigation in AUVs.
Conclusions
To resolve the sensitivity of the traditional ICCP to the initial position error, this study proposes an improved terrain-aided matching algorithm that combines coarse and fine matching. The two-step matching reduces the initial position error before fine matching. First, the Mahalanobis distance replaces the Euclidean distance in ICCP to relax the assumption of noiseless depth data in ICCP, thereby improving the practical value of the algorithm. Second, because ICCP has good refinement ability but poor global-search ability, the ABC-ωAPSO is introduced for rough matching, and the improved ICCP is then applied for fine matching. In the improved algorithm, termed ICCP-a, the second matching effect improves the positioning accuracy of the single matching algorithm. Finally, ωAPSO and ABC are combined effectively to improve the global optimization ability of the traditional PSO. ABC-ωAPSO can better help the traditional ICCP to reduce the initial INS position error, thus realizing the perfect combination of ABC-ωAPSO with ICCP.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The work is supported by The National Natural Science Foundation of China [grant number 51979047], The Natural Science Foundation of Heilongjiang Province of China [grant number YQ2021E011].
