Next Article in Journal
Gait Variability as a Potential Motor Marker of Cerebellar Disease—Relationship between Variability of Stride, Arm Swing and Trunk Movements, and Walking Speed
Previous Article in Journal
A Flexible Double-Sided Curvature Sensor Array for Use in Soft Robotics
Previous Article in Special Issue
Fine-Grained 3D Modeling and Semantic Mapping of Coral Reefs Using Photogrammetric Computer Vision and Machine Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Compensation Method for the Geomagnetic Measurement Error of an Underwater Ship-Borne Magnetometer Based on Constrained Total Least Squares

1
College of Electrical Engineering, Naval University of Engineering, Wuhan 430033, China
2
Department of Operational Research and Programing, Naval University of Engineering, Wuhan 430033, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(11), 3478; https://doi.org/10.3390/s24113478
Submission received: 9 April 2024 / Revised: 15 May 2024 / Accepted: 24 May 2024 / Published: 28 May 2024
(This article belongs to the Special Issue Marine Environmental Perception and Underwater Detection)

Abstract

:
When magnetic matching aided navigation is applied to an underwater vehicle, the magnetometer must be installed inside the vehicle, considering the navigation safety and concealment of the underwater vehicle. Then, the interference magnetic field will seriously affect the accuracy of geomagnetic field measurement, which directly affects the accuracy of geomagnetic matching aided navigation. Therefore, improving the accuracy of geomagnetic measurements inside the vehicle through error compensation has become one of the most difficult problems that requires an urgent solution in geomagnetic matching aided navigation. In order to solve this problem, this paper establishes the calculation model of the internal magnetic field of the underwater vehicle and the geomagnetic measurement error model of the ship-borne magnetometer. Then, a compensation method for the geomagnetic measurement error of the ship-borne magnetometer, based on the constrained total least square method, is proposed. To verify the effectiveness of the method proposed in this paper, a simulation experiment of geomagnetic measurement and compensation of a ship-borne three-axis magnetometer was constructed. Among them, to be closer to the real situation, a combination of the geomagnetism model, the elliptic shell model and the magnetic dipole model was used to simulate the internal magnetic field of the underwater vehicle. The experimental results indicated that the root mean square error of geomagnetic measurement in an underwater vehicle was less than 5 nT after compensation, and the accuracy of geomagnetic measurement met the requirements of geomagnetic matching aided navigation.

1. Introduction

With the ongoing development of the world’s economy and military capabilities, underwater tasks are becoming more and more diversified, and the demand for navigation, positioning accuracy and reliability of underwater vehicles (including submarines, unmanned underwater vehicles, self-propelled mines, mines, etc.) is growing day by day. At present, underwater navigation and positioning mainly adopts the inertial navigation system (INS). However, using only pure INS, the positioning error accumulates and diverges with time, making it difficult to ensure that underwater navigation and positioning maintains high precision for a long time. Considering this limitation, INS is usually corrected in real time or periodically by matching aided navigation based on a certain geophysical field. The common methods include terrain matching aided navigation [1], gravity matching aided navigation [2,3] and geomagnetic matching aided navigation [4,5]. The traditional matching algorithms include TERCOM, ICCP, SITAN, matching algorithms based on the Kalman filter and other intelligent matching algorithms. Geomagnetic matching aided navigation has the characteristics of passivity, no radiation, strong concealment and no accumulation of errors over time, and can be used for all-weather and all-regional navigation, which makes it an important research direction for underwater aided navigation in geophysical fields. Using a magnetometer to quickly and accurately measure geomagnetic data is the key element to realizing geomagnetic matching aided navigation. When applying local magnetic matching aided navigation to underwater vehicles, the magnetometer must be installed inside the vehicle, taking into account the navigation safety and concealment of the underwater vehicle [6]. At this time, the total magnetic field obtained by a ship-borne magnetometer is the superposition of the geomagnetic field, carrier magnetic field and random magnetic field. Therefore, the interference magnetic field in underwater carrier geomagnetic measurement mainly comes from the carrier magnetic field (solid magnetic field, induced magnetic field), the random magnetic field and the instrument error of the magnetometer itself, with the carrier magnetic field accounting for a relatively large proportion [7,8,9]. Interference magnetic fields will seriously affect the accuracy of geomagnetic field measurements, thereby affecting the accuracy of geomagnetic matching navigation [10,11,12,13]. Therefore, improving the accuracy of geomagnetic surveys through error compensation has become one of the most urgent and difficult problems to solve in geomagnetic matching navigation.
A lot of research has been conducted on the error compensation method of magnetometers inside vehicles. When the attitude of the vehicle is not considered, the magnetometer error mainly comes from the non-orthogonal error, the scale factor error and the zero offset error of the three-axis sensor. Roberto Alonso and others used the TWO-STEP algorithm to estimate the scale factor and non-orthogonal correction, which has demonstrated good performance [14]. Demoz Gebre Egziabher used the TWO-STEP algorithm and least square estimation to correct the experimental data of a three-axis magnetometer, and the results showed that the residual after correction was very small [15]. Zhang Dewen and others put forward a two-step correction method for the component error of a three-axis magnetic sensor to correct the total magnetic field and the components of the three-axis magnetic sensor [16]. Wang Lihui and others combined the total least square method with the regularization method to propose a truncated total least square method to deal with the ill-conditioned problem of random errors on both sides of the observation equation [17]. The simulation results showed that the method effectively suppressed the ill-conditioned influence in magnetometer measurements. Zhang Qi and others put forward a calibration method for a three-axis magnetic field sensor based on the linearization parameter model and deduced the linearization parameter model between the three-axis measured value of the sensor and the scalar value of the magnetic field [18]. Experimental research shows that this method is a convenient and accurate sensor calibration method. S. Bonnet and others put forward a unified algorithm framework for calculating calibration parameters, such as sensor non-orthogonal error and magnetometer installation error, which was proven to be very effective [19].
When the magnetometer is installed inside the vehicle, the observation error caused by the carrier attitude (hard magnetic error) and the interference field error around the magnetometer (soft magnetic error) should also be considered. Pang Hongfeng systematically studied the error mechanism of a ship-borne geomagnetic vector system, three-axis magnetic sensor correction, misalignment error correction between inertial navigation and a magnetic sensor coordinate system and inertial navigation interference component compensation. The vector system after compensation was tested and applied to regional magnetic anomaly measurement, which verified the advantages of the geomagnetic vector system in magnetic anomaly measurement [20]. Wu Zhitian put forward an integrated method of magnetometer calibration and geomagnetic field compensation. Then, the measurement error of a ship-borne three-axis magnetometer was analyzed, and a parameterized model, including magnetometer calibration error and geomagnetic field measurement error, was established [21]. Finally, the total least squares (TLS) algorithm was used to estimate the parameters of the model, and the experimental results showed that a better compensation effect could be achieved. Zhang Ying and others used truncated total least squares (TTLS) technology to solve the ill-conditioned magnetometer calibration problem, and studied the effectiveness of this method through vehicle experiments. Their results showed that this method can effectively alleviate the ill-conditioned influence in magnetometer calibration and obtain a more stable numerical solution [22]. Because the linearization of the magnetometer observation equation introduces noise to both the system matrix A and data vector B simultaneously, the standard least square solution is not optimal.
Apart from the least squares method, there are other methods that can be used to solve the compensation problem of geomagnetic measurement in underwater vehicles, such as the Kalman filter algorithm, the neural network method, the genetic algorithm and the particle swarm optimization algorithm. In view of the current situation of frequent attitude change during flight, compared with the previous single modeling method, Huan S. and others introduced the eddy current magnetic field for integrated modeling and used the EKF algorithm for compensation [23]. The simulation results showed that this method not only reduces the error amplitude significantly, but also effectively filters out the fluctuation caused by the eddy current magnetic field in the attitude compensation of the aircraft. Yang B. and others adopted a joint estimation iterative algorithm to calibrate the three-axis magnetometer, comparing its performance with that of the EKF algorithm and the nonlinear least squares algorithm [24]. The experimental results showed that the joint estimation iterative algorithm reduced the mean average of the three-axis magnetometer’s measured error from 69.5211 nT to 9.241 nT. Cheng Z studied the calibration method of the magnetometer based on BP neural network, which reduced the influence of model error on calibration accuracy [25]. The numerical simulation results showed that this method can reduce the measurement error of the magnetometer to less than 10 nT. Yu P. and others proposed a neural network compensation method based on regression equations and generalized regression neural networks, which can improve the generalization of the compensation model and weaken the effect of over-fitting [26]. ZHU Xingle and others adopted the Adaptive Multi-Population Genetic Algorithm (AMGA) to calculate a ship’s induced and permanent magnetic parameters [27]. The simulation results indicated that this method has fast computing speed and good stability, with the maximum error of three-component geomagnetic field measurement after compensation being less than 10 nT. Li Ting and others proposed a new magnetic field measurement error compensation method based on the damped particle swarm optimization (DPSO) algorithm. The experimental results showed that this algorithm has good suppression capability to compensate for magnetic field measurement error [28].
Based on previous research experience, this paper proposes a new method to compensate for geomagnetic measurement errors in underwater vehicles based on constrained total least squares. In order to eliminate the magnetic interference of underwater vehicles and improve the geomagnetic measurement accuracy inside underwater vehicles, we established a calculation model of the internal magnetic field of underwater vehicles and the geomagnetic measurement error model of a ship-borne magnetometer. Then, we propose a compensation method for the geomagnetic measurement error of a ship-borne magnetometer based on the constrained total least square method. To verify the effectiveness of the method proposed in this paper, a simulation experiment of geomagnetic measurement and compensation of a ship-borne three-axis magnetometer was constructed. Among them, in order to be closer to the real situation, a combination model of the geomagnetism model based on the IGRF (International Geomagnetic Reference Field) model, the induced magnetic field model simulated by the rotating elliptic shell model and the fixed magnetic field model simulated by the magnetic dipole model was used to simulate the internal magnetic field of the underwater vehicle. In the simulation experiment, firstly, a track in the maneuvering area was designed to obtain the data needed to identify the compensation model parameters P and O. Then, another track in the matching area was designed to verify the geomagnetic measurement compensation accuracy of the compensation model with P and O. The experimental results show that the root mean square error of geomagnetic measurement in the underwater vehicle after compensation is less than 5 nT, and the accuracy of geomagnetic measurement meets the needs of geomagnetic matching aided navigation.

2. Modeling of the Underwater Vehicle’s Internal Magnetic Field

Previous studies on the magnetic field of underwater vehicles have mostly focused on estimating the magnetic field outside the underwater vehicle’s hull by establishing ellipsoid, magnetic dipole or mixed models [29,30,31]. Qu Xiaohui and others analyzed the application scope of various magnetic field models [32]. For example, with few sensors, the uniform rotating ellipsoid model is generally used to achieve rapid positioning of the magnetic target. If there are enough sensors near the field source, a mixed model of ellipsoid and magnetic dipole models can be used to improve positioning accuracy. If the sensor is far away from the magnetic target, a single magnetic dipole model can be used. In order to simulate the underwater vehicle’s internal magnetic field more accurately, a combination model was adopted in this paper. This model included the geomagnetism model based on the IGRF (International Geomagnetic Reference Field) model, the induced magnetic field model simulated by the rotating elliptic shell model and the fixed magnetic field model simulated by the magnetic dipole model.

2.1. Global Geomagnetic Field Calculation

As an internationally accepted global geomagnetic standard model, the IGRF model describes the Earth’s main magnetic field and its long-term variation. In December 2019, the International Association of Geomagnetism and Aviation (IAGA) released the 13th generation International Geomagnetism Reference Field (IGRF13), which uses the Gaussian spherical harmonic analysis model, based on the reference sphere and the spherical center coordinate system, to represent any point of the global geomagnetic field on the ground or above. According to [33], the scalar potential function V ( r , θ , ϕ , t ) of the main magnetic field can be expressed as a spherical harmonic series in the IGRF model, as follows:
V ( r , θ , ϕ , t ) = a n = 1 N m = 0 n a r n + 1 g n m t cos m ϕ + h n m t sin m ϕ P n m cos θ
where r , θ and ϕ represent the coordinates in the geocentric spherical coordinate system. r represents the radial distance from any point in space to the center of the geomagnetic reference sphere, measured in km and θ , ϕ represent the geocentric latitude and longitude, respectively. a is the radius of the reference sphere, which is close to the average radius of the earth. Usually, we use a = 6371.2 km . P n m cos θ is an associative Legendre function with N-order and M-order Schmidt quasi-normalization. g n m t and h n m t are Gaussian spherical harmonic coefficients with time variation, which can be calculated using IGRF13.
In the passive region of near-Earth space, the main magnetic field caused by the field source inside Earth can be expressed as the negative gradient of the scalar potential function B = V . In the spherical coordinate system, the relationship between components X e , Y e and Z e (horizontal component X e in the North, horizontal component Y e in the East, vertical component Z e ) and the magnetic potential V is as follows:
X e = 1 r V θ ,   Y e = 1 r sin θ V ϕ ,   Z e = V r
The geomagnetic components X e , Y e and Z e can be calculated using the following Equation:
X e = n = 1 N m = 0 n R r n + 2 g n m t cos m ϕ + h n m t sin m ϕ d d θ P n m cos θ Y e = n = 1 N m = 0 n R r n + 2 m sin θ g n m t sin m ϕ h n m t cos m ϕ P n m cos θ Z e = n = 1 N m = 0 n R r n + 2 n + 1 g n m t cos m ϕ + h n m t sin m ϕ P n m cos θ
When the cutoff order N and the Gaussian spherical harmonic coefficient are determined, the three components of the main magnetic field can be calculated using Equation (3).

2.2. Calculation of the Internal Magnetic Field of the Rotating Ellipsoidal Shell Model

To analyze the magnetization of the iron rotating ellipsoid shell in a uniform external magnetic field, we should consider the additional magnetic field and the demagnetization coefficient generated by the uniformly magnetized rotating ellipsoid before calculating its internal magnetic field and the magnetic induction intensity.
As shown in Figure 1, the long and short semi-axes of the rotating ellipsoid shell’s outer surface and inner surface are a e , b e and a i , b i , respectively, and their half focal length is g .
According to [34], when the external magnetization field source is uniform, the magnetic field in the cavity of the ellipsoidal shell after magnetization is a uniform field, which is consistent with the direction of the magnetization field source. The shielding coefficients (the ratio of the magnetic field in the cavity after magnetization to the external magnetic field) for magnetization along the longitudinal axis and transverse axis directions are as follows:
L l = 1 1 + χ m μ r μ r N e l R N i l K N e l 1 + χ m N e l
L s = 1 1 + χ m μ r μ r N e s R N i s K N e s 1 + χ m N e s
where, L 1 and L s are the shielding coefficients when magnetized along the longitudinal axis and the transverse axis, respectively. μ r is the relative permeability of the ferromagnetic shell. χ m = μ r 1 is the permeability of the ferromagnetic shell. N e l and N e s are the demagnetization coefficients in the direction of the long and short axes of the solid ellipsoid, respectively, with long and short semi-axes a e , b e . N i l and N i s are the demagnetization coefficients in the direction of the long and short axes of the solid ellipsoid, respectively, with long and short semi-axes a i , b i .
The parameters K and R can be calculated as follows: K = a i b i 2 a e b e 2 , R = 1 K .
In the ellipsoidal coordinate system, the external magnetic field components in the long axis direction, short axis direction and vertical direction are denoted as B e l , B e s and B e z , respectively. According to the shielding coefficient, the magnetic induction intensity components in the rotating ellipsoid shell can be calculated using Equation (6), as follows:
B x = L l × B e l , B y = L s × B e s , B z = L s × B e z

2.3. Magnetic Dipole Field Calculation

The main components of an underwater ships’ magnetic field are generated not only from the iron pressure-resistant shell magnetized by the geomagnetic field, but also from the internal electrical equipment (such as the propulsion motor, the inertial navigation system, etc.). This part of the magnetic field has a certain relationship with the vehicle’s working state. When the working state of the carrier is stable, the magnetic field caused by the vehicle’s electrical equipment can be regarded as a fixed value [35]. When the interference source is at a certain distance from the magnetic sensor, it can be approximated as a single magnetic dipole. To simplify the problem, a magnetic dipole was used to simulate the total magnetic field generated by all of the internal electrical equipment, based on the superposition principle of magnetic fields. As shown in Figure 2, a right-hand space rectangular coordinate system was established with the center of the magnetic dipole as the origin, where the circular current intensity is I and the radius is R .
The magnetic moment is defined as follows:
P m = I S n
where S is the area of the plane surrounded by the circular current; that is, S = π R 2 . n is the normal vector of the plane of the circular current, whose direction conforms to the right-hand rule with respect to I . The Z -axis is in the direction of the magnetic moment vector positively. M is a point in space with spherical coordinates M r , φ 0 , θ 0 , where r is the distance from the coordinate system origin to M , φ 0 is the zenith angle and θ 0 is the rotation angle of the meridian plane, where M is located relative to the meridian plane of the X -axis. The conversion relationship between the rectangular coordinates and the spherical coordinates is as follows:
x = r sin φ 0 cos θ 0 y = r sin φ 0 sin θ 0 z = r cos φ 0
where 0 r < + , 0 φ 0 < π , 0 θ 0 < 2 π .
Let the magnetic dipole in the space have magnetic permeability μ , intercepting a current element I d l at any point P R , π / 2 , θ on the circumference. According to Biot–Savart law, the magnetic induction intensity vector generated by this current element at M is as follows:
d B = μ 4 π I d l × a a 3 a 0
where d l is the circumferential tangent vector at P and a is the vector P M . Then,
d l × a = i j k R sin θ d θ R cos θ d θ 0 r sin φ 0 cos θ 0 R cos θ r sin φ 0 sin θ 0 R sin θ r cos φ 0
Let the magnetic induction intensity be B = B x i + B y j + B z k . By substituting Equation (10) into Equation (9), we obtain the following:
B x = μ I R · r cos φ 0 4 π 0 2 π cos θ a 3 d θ B y = μ I R r cos φ 0 4 π 0 2 π sin θ a 3 d θ B z = μ I R 4 π 0 2 π R r sin φ 0 cos θ θ 0 a 3 d θ
Integrating and substituting Equation (11) yields the following:
B x = 3 μ 8 π P m R 2 + r 2 3 r 2 sin 2 φ 0 cos θ 0 R 2 + r 2 B y = 3 μ 8 π P m R 2 + r 2 3 r 2 sin 2 φ 0 sin θ 0 R 2 + r 2 B z = μ 2 π P m R 2 + r 2 3 1 3 r 2 sin 2 φ 0 2 R 2 + r 2
When the magnetic moment of the dipole is known, the magnetic induction intensity vector at any point in space can be obtained using Equation (12).

3. Error Model and Compensation Algorithm of the Ship-Borne Magnetometer

3.1. Error Model

The measurement error of the ship-borne magnetometer mainly includes the magnetometer’s instrument error and the underwater vehicle’s interference field error. Instrument error mainly includes three-component non-orthogonal error, scale factor error and zero offset error. Interference field error mainly includes hard magnetic error, soft magnetic error and random error. The error model is as follows:
B S I b = C S I B e b + B H I b
where B e b is the geomagnetic field vector in the volume coordinate system. B H I b is the hard magnetic error vector. B S I b is the soft magnetic error vector. C S I is the soft magnetic coefficient matrix.
In the body coordinate system, the measurement output of the ship-borne magnetometer can be modeled as follows:
B s = C N O C S F B e b + B H I b + B S I b + b o b C N O = 1 0 0 sin ρ cos ρ 0 sin φ cos λ sin λ cos φ cos λ , C S F = a 0 0 0 b 0 0 0 c
where B s represents the measurement output vector of the ship-borne magnetometer. ρ , φ and λ are the total non-orthogonal error angles and C N O represents the non-orthogonal error matrix. a , b and c are the total scale factor errors and C S F represents the scale factor error matrix. b o b represents the sensor zero bias error vector.
Substituting Equation (13) into Equation (14) yields the following:
B s = C N O C S F B e b + B H I b + C S I B e b + B H I b + b o b         = C N O C S F ( I 3 × 3 + C S I ) ( B e b + B H I b ) + b o b
Simplifying Equation (15) yields the following:
B s = K B e b + O
where K = C N O C S F I 3 × 3 + C S I and O = K B H I b + b o b .The parameter matrices K and O can be calculated as follows [36]:
K = 1 B e a 0 0 b sin ρ b cos ρ 0 c sin φ cos λ c sin λ c cos φ cos λ , O = o 1 o 2 o 3
where o 1 o 3 are the total zero bias errors. B e is the true value of the geomagnetic field.
The total non-orthogonal error angle comes from the manufacturing process error of the magnetometer, the installation error of the magnetometer and the soft magnetic error. The total scale factor error comes from the sensor scale factor error and the soft magnetic error. The total bias error consists of sensor bias error and hard magnetic error. The parameter matrix K is a lower triangular matrix. This is to reduce the model parameters. It is assumed that the X -axis of the sensor coordinate system is completely coincident with the X -axis of the body coordinate system to ensure the uniqueness of K . The nine parameters in Equation (17) describe the input and output process of the three-axis magnetometer completely [37]. It should be noted that the position accuracy of the magnetic field sensor inside the underwater vehicle does indeed have an impact on geomagnetic measurements. Specifically, different installation positions of the sensor can lead to bias errors in geomagnetic measurements. However, this bias error is already included in the O matrix of error model and will eventually be eliminated by the error compensation calculation, so there is no need to consider the accuracy of the sensor’s position. However, in the actual measurement process, to avoid introducing significant interference errors, we still tried to keep the sensors away from the magnetic interference sources as much as possible.
The error compensation model of the three-axis magnetometer can be obtained by the inverse calculation of Equation (16), as follows:
B ^ e b = K 1 B s O = P B s O
where B ^ e b is the projection of the compensated geomagnetic field measured value in the body coordinate system, and the matrix P = K 1 is also a lower triangular matrix. The compensation process of the magnetometer is equivalent to identifying the nine parameters in Equation (17).

3.2. Compensation Algorithm Based on Constrained Total Least Squares

It is assumed that the output of the compensated magnetometer B s is equal to the local geomagnetic reference field B e b . Then, the following equation holds:
R = B ^ b 2 = P ( B s O ) 2
According to the principle of modal testing, the compensation value is obtained by minimizing the square of difference between the magnetometer’s output and the mode value of the geomagnetic field to realize the error compensation of the geomagnetic field value, as follows:
arg min f ( P , O ) = R P ( B s O ) 2 2
For convenience, we squared both sides of Equation (34) to obtain the following equation:
R 2 = B ^ b 2 2 = P ( B s O ) 2 2
The objective function becomes:
arg min f ( P , O ) = R 2 P ( B s O ) 2 2 2                                                                                                                           = R P ( B s O ) 2 2 R + P ( B s O ) 2 2
Substituting B s = [ B x s , B y s , B z s ] T and Equation (17) into Equation (22) and expanding, then simplifying it, yields the following model:
a 1 ( B x s ) 2 + a 2 B x s B y s + a 3 B x s B z s + a 4 B y s 2 + a 5 B y s B z s + a 6 B z s 2 + a 7 B x s + a 8 B y s + a 9 B z s + a 10 = 0
where a i , i = 1 , 2 , 10 are intermediate variables defined by error compensation parameters P and O . The transformation formula from a i , i = 1 , 2 , 10 to the parameters of a , b , c and ρ , φ , λ in P , O is as follows:
X = 1 a 6 a 1 , a 2 , a 3 , a 4 , a 5 , a 7 , a 8 , a 9 , a 10 T = A , B , C , D , E , G , H , I , J T α 1 = B 2 + D C 2 + 4 D A + A E 2 B E C α 2 = 4 A E 2 J E 2 G 2 4 B E C J + 2 E C H G + 2 B E I G 4 E H A I 4 D I C G C 2 H 2         + 4 D A I 2 + 2 C B H I 4 D G 2 + 4 D C 2 J + 4 B H G 4 A H 2 B 2 I 2 4 B 2 J + 16 D A J α 3 = E 4 A C B E 3 + E 2 C 2 D 2 B 2 E 2 + 8 D A E 2 4 D B 2 + 16 D 2 A β 1 = 2 B H + B E I 2 C D I 4 D G + E C H E 2 G β 2 = 2 A E I + 4 A H B C I 2 B G + C 2 H C E G β 3 = 4 D I A 2 D G C + E G B I B 2 E H A + C B H a = 1 2 α 1 α 2 ( 4 D + E 2 ) b = 1 2 α 1 α 2 ( 4 A + C 2 ) c = 1 2 α 1 α 2 ( 4 D A B 2 )                                             tan ρ = 1 2 α 1 ( 2 B + E C ) tan φ = 1 α 1 ( B E 2 C D ) tan λ = E α 1 / α 3
Assuming that the number of geomagnetic field measurements is q , the observation equation composed of these measurements can be combined into a linear equation in matrix form as follows:
A X = b
where
    A = B x 1 s 2 B x 1 s B y 1 s B x 1 s B z 1 s B y 1 s 2 B y 1 s B z 1 s B x 1 s B y 1 s B z 1 s 1 B x 2 s 2 B x 2 s B y 2 s B x 2 s B z 2 s B y 2 s 2 B y 2 s B z 2 s B x 2 s B y 2 s B z 2 s 1             B x q s 2 B x q s B y q s B x q s B z q s B y q s 2 B y q s B z q s B x q s B y q s B z q s 1 X = 1 a 6 a 1 a 2 a 3 a 4 a 5 a 7 a 8 a 9 a 10               T b = B z 1 s 2 B z 2 s 2 B z q s 2 T                                                                                                        
Because q is much larger than the unknown parameters in the observation equation, Equation (25) is an over-determined linear equation set. By solving the unknown parameter vector X ^ , the estimated P ^ and O ^ of the compensation parameters can be calculated by substituting Equation (24) into Equation (17).
If the system matrix A is accurate and the data vector b is disturbed by noise, the solution of Equation (25) can be estimated using the standard least square method [38]:
X L S = A T A 1 A T b
However, for the error compensation problem of the magnetometer, the linearization of the observation equation causes both A and b to be disturbed by noise at the same time, resulting in the standard least square solution not being optimal.
We expand the matrices A and b by Taylor series, and their first-order approximate perturbation is:
A ¯ = A + Δ A b ¯ = b + Δ b
where A ¯ and b ¯ represent the error-free system matrix and the data vector, respectively. Δ A and Δ b are the corresponding perturbation terms, which are related. Then, it is appropriate to solve this problem using the constrained total least squares (CTLS) method [39]. Since Golub and others put forward the concept of TLS [40], this method has been widely used in signal processing, statistics, computers and so on. Based on the mathematical model, we discuss the TLS of Singular Value De-composition (SVD)[41]. CTLS is an extension algorithm of TLS, which reduces the problem to an unconstrained minimization problem on a small variable set. In this paper, the constrained total least squares method, based on the SVD solution, was adopted.
Firstly, the random noise vector is defined as follows:
v = B ˜ x 1 s B ˜ y 1 s B ˜ z 1 s B ˜ x 2 s B ˜ y 2 s B ˜ z 2 s B ˜ x q s B ˜ y q s B ˜ z q s T
According to Equation (28), v 3 q × 1 and v 0 , σ 2 I 3 q , we can transform Δ A and Δ b into the following form using random noise vectors, as follows:
Δ A = F 1 v F 2 v F 9 v ,   Δ b = F 10 v
The expressions of F i q × 3 q , i = 1 , 2 , , 10 and F i can be found in [42].
Substituting A ¯ and b ¯ into the over-determined Equation (25) to ensure compatibility, we obtained the following:
A + Δ A X = b + Δ b
Substituting Equation (29) into Equation (30) and arranging it yielded the following Equation:
A X b = Δ A X + Δ b                                                                                               = F 1 v F 2 v F 9 v X + F 10 v                                                           = i = 1 9 x i F i F 10 v     = H x v
where x i is the i-th element of the vector X , H x = i = 1 9 x i F i F 10 . Thus, the problem of magnetometer error compensation can be transformed into a mathematical problem solved by CTLS, as follows:
min X , v v F 2     s . t .     A x b + H X v = 0
where F 2 is a Frobenius norm. According to Equation (32), the random noise vector v is estimated as follows:
v ^ = H x A X b
where H x = H x T H x 1 H x T is the generalized inverse of H x . The following equation can be obtained by substituting v ^ into Equation (32):
arg min F X = v T v = A X b T H x H x T 1 A X b w i t h r e s p e c t t o X
The solution of CTLS can be obtained by minimizing Equation (34) with the Newton iteration method, whose iteration equation is as follows:
X r + 1 = X r H r 1 T r
where r is the number of iterations. T r and H r represent the gradient vector and Hessian matrix of the r th iteration, respectively. The specific expressions of T r and H r are shown in [31]. The convergence criterion of the algorithm is to calculate whether the F norm of T r is less than the threshold ε s t o p ; that is, T r F < ε s t o p .
The error compensation steps of the three-axis magnetometer based on the CTLS method are as follows:
Step 1: use the SVD solution as the initial value of the Newton iteration method;
Step 2: calculate X r + 1 according to Equation (35);
Step 3: repeat Step 2 until the following convergence condition is met: T r F < ε s t o p ;
Step 4: calculate the nine correction parameters ρ , φ , λ , a , b , c , o 1 , o 2 , o 3 according to the solution X ^ r + 1 of CTLS, and then obtain the estimated compensation matrices P ^ = K 1 and O ^ ;
Step 5: calculate the compensated geomagnetic measurement value according to Equation (18) with P ^ = K 1 and O ^ .

4. Experiment

4.1. Output Simulation of the Magnetometer

The simulation area was set to be in the range of 120°~120.1° East longitude and 25.5°~25.6° North latitude, as shown in Figure 3. The regional geomagnetic field was calculated using the IGRF model. In the maneuvering area and the matching area, two tracks of the vehicle were designed to be in the shape of “ ” and a “double circle”, respectively, as shown in Figure 4. The combination of the geomagnetism model, the elliptic shell model and the magnetic dipole model with Gaussian white noise were adopted to simulate the internal magnetic field of the vehicle.
The model parameters of the rotation ellipsoid shell included the major axis ( a = 51.5   m ), the minor axis ( b = 5.25   m ), the thickness of the shell ( 0.035   m ) and the relative permeability ( μ r = 50 ).
The parameter of the magnetic dipole model was the magnetic moment P m = 314.6   A / m 2 , and its direction was consistent with the long axis direction of the ellipsoid shell.
Gaussian white noise: μ 0 = 0 . 0 .
The simulation results are shown in Figure 3 and Figure 5. The variation of the geomagnetic field within the vehicle’s track was about 40   nT , whereas the variation of the additional magnetic field generated by the magnetization of the vehicle’s iron ellipsoid shell was more than 10000   nT without the influence of the magnetic dipole interference field and random noise. Therefore, it is impossible to obtain the real geomagnetic field value without error compensation.

4.2. Compensation Simulation of the Magnetometer’s Measurement

In order to test the robustness of the algorithm in this paper, we added Gaussian white noise to the simulation data in the maneuvering area and set the signal-to-noise ratio (SNR) to 80, 90 and 95. When the vehicle was in the maneuvering area, we obtained the simulation data B e and B s . On this basis, the mediate variables a i , i = 1 , 2 , 10 were identified using the CTLS solution from Equation (25). Then, according to Equation (24), the parameters of a , b , c and ρ , φ , λ were calculated using the mediate variables. Finally, we obtained the compensation parameter matrices P and O, according to Equation (17). The calculation results and the RMSEs are shown in Figure 6 and Table 1. It can be seen that the RMSE decreases as SNR increases, with a maximum value of less than 3.1 nT. The calculated compensation parameter matrices P and O were used to correct the magnetic field in the matching area.
With the compensation parameter matrices P and O , we calculated the compensated geomagnetic field valve in the matching area (the SNR was also set to 80, 90 and 95). The compensation results are shown in Figure 7.
From the above compensation results, with an increase in SNR from 80 to 90, the compensation error decreased and the RMSE decreased from 2.82 to 0.95. Moreover, we can see that the compensation residual reflects the signal noise level and the uneven field in the region. Therefore, to reduce the compensation error, we should make the vehicle’s moving area as small as possible in the compensation area and try to keep the course unchanged and stable. This will prevent estimation errors caused by the uneven magnetic field in the region.

5. Conclusions

The measurement error of a three-axis magnetometer can be described by nine parameters. After establishing the error compensation model, the model can be linearized with the help of intermediate parameters, and then compensation parameters can be quickly obtained using the linear optimization method.
The simulation experiment results show that when the magnetometer is installed inside the underwater vehicle, the observation equation is seriously ill-conditioned due to the influence of iron shell’s demagnetization field and noise. Both the data matrices and parameter matrices contain significant errors, necessitating the use of an improved constrained total least squares method to solve them.
Although the linear solution speed is fast, when the observation data is noisy and the error compensation model is severely ill-conditioned, the CTLS method based on SVD decomposition is biased. Then, the gradient T r in the Gaussian–Newton method increases sharply, and the decrease during iteration is not significant, and may lead to non-converge. It is necessary to improve relevant algorithms to achieve higher compensation accuracy in linear solving.

Author Contributions

Y.T. was the project leader and was responsible for defining the scientific requirements that met the research goals. The authors’ individual contributions are summarized as follows: conceptualization, X.H. and Y.C.; data curation, W.L.; formal analysis, Y.T. and X.H.; funding acquisition, X.H. and F.Z.; methodology, Y.C.; writing—original draft, Y.T. and X.H.; writing—review and editing, X.H. 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 numbers: 42176195, 42074010 and 42174051).

Data Availability Statement

The original contributions presented in this study are included in this article. Further inquiries can be directed to the corresponding author.

Acknowledgments

The partial data in this paper were obtained from the National Oceanic and Atmospheric Administration (NOAA), which are public data. MATLAB and Mathematica were used for image presentation and data analysis. We express our sincere gratitude to these organizations and software providers.

Conflicts of Interest

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

References

  1. Zhang, J.; Xu, Z.; Wang, X. Research on error of underwater terrain aided navigation based on TERCOM algorithm. J. Nav. Univ. Eng. 2020, 32, 44–49. [Google Scholar]
  2. Zou, J.; Cai, T. Improved Particle Swarm Optimization screening iterative algorithm in gravity matching navigation. IEEE Sens. J. 2022, 22, 20866–20876. [Google Scholar] [CrossRef]
  3. Gao, S.; Cai, T.; Fang, K. Gravity-matching algorithm based on K-Nearest neighbor. Sensors 2022, 22, 4454. [Google Scholar] [CrossRef]
  4. Zhai, H.; Wang, L. The robust residual-based adaptive estimation Kalman filter method for strap-down inertial and geomagnetic tightly integrated navigation system. Rev. Sci. Instruments 2020, 91, 104501. [Google Scholar] [CrossRef] [PubMed]
  5. Ji, C.; Chen, Q.; Song, C. Improved particle swarm optimization geomagnetic matching algorithm based on simulated annealing. IEEE Access 2020, 8, 226064–226073. [Google Scholar] [CrossRef]
  6. Li, J. Study on the Characteristics and Compensation Method of Vehicle Interferential Magnetic Field in Geomagnetic Measurement. Ph.D. Thesis, National University of Defense Technology, Changsha, China, 2013. [Google Scholar]
  7. Henkel, P. Calibration of Magnetometers with GNSS Receivers and Magnetometer-Aided GNSS Ambiguity Fixing. J. Sens. 2017, 17, 1324. [Google Scholar] [CrossRef]
  8. Henkel, P.; Berthold, P.; Kiam, J.J. Calibration of Magnetic Field Sensors with Two Mass-Market GNSS Receivers. In Proceedings of the IEEE Workshop on Positioning, Navigation and Communication (WPNC), Dresden, Germany, 12–13 March 2014; p. 5. [Google Scholar]
  9. Crassidis, J.; Lai, K.-L.; Harman, R. Real-time attitude-independent three-axis magnetometer calibration. J. Guid. Control Dyn. 2005, 28, 115–120. [Google Scholar] [CrossRef]
  10. Alimi, R.; Fisher, E.; Nahir, K. In Situ Underwater Localization of Magnetic Sensors Using Natural Computing Algorithms. J. Sens. 2023, 23, 1797. [Google Scholar] [CrossRef]
  11. Su, X.; Ullah, I.; Liu, X.; Choi, D. A Review of Underwater Localization Techniques, Algorithms, and Challenges. J. Sens. 2020, 2020, 6403161. [Google Scholar] [CrossRef]
  12. Wang, H.; Wang, S.; Bu, R.; Zhang, E. A Novel Cross-Layer Routing Protocol Based on Network Coding for Underwater Sensor Networks. Sensors 2017, 17, 1821. [Google Scholar] [CrossRef]
  13. Callmer, J.; Skoglund, M.; Gustafsson, F. Silent Localization of Underwater Sensors Using Magnetometers. EURASIP J. Adv. Signal Process. 2010, 2010, 709318. [Google Scholar] [CrossRef]
  14. Alonso, R.; Shuster, M.D. Complete Linear Attitude-Independent Magnetometer Calibration. J. Astronaut. Sci. 2003, 50, 477–490. [Google Scholar] [CrossRef]
  15. Gebre-Egziabher, D.; Elkaim, G.H.; Powell, J.D.; Parkinson, B.W. Calibration of Strapdown Magnetometers in Magnetic Field Domain. J. Aerosp. Eng. 2006, 19, 87–102. [Google Scholar] [CrossRef]
  16. Zhang, D.; Zhang, Q.; Tian, W. Component Calibration of Three-Axis Magnetometer with Two Step method. Chin. J. Sens. Actuators 2018, 31, 1707–1713. [Google Scholar]
  17. Wang, L.; Yu, L.; Liang, B.; Qiao, N. Truncated total least squares algorithm in restraining random error of geomagnetic navigation magnetometer. J. Chin. Inert. Technol. 2015, 23, 763–768. [Google Scholar]
  18. Zhang, Q.; Pan, M.; Chen, D.; Pang, H. Scalar Calibration of Tri-Axial Magnetometer with Linearized Parameter Model. Chin. J. Sens. Actuators 2012, 25, 215–219. [Google Scholar]
  19. Bonnet, S.; Bassompierre, C.; Godin, C.; Lesecq, S.; Barraud, A. Calibration methods for inertial and magnetic sensors. Sens. Actuators A Phys. 2009, 156, 302–311. [Google Scholar] [CrossRef]
  20. Pang, H.F.; Luo, S.T.; Chen, D.X.; Pan, M.C.; Zhang, Q. Error Calibration of Fluxgate Magnetometers in Arbitrary Attitude Situation. J. Test Meas. Technol. 2011, 25, 371–375. [Google Scholar]
  21. Wu, Z.; Wu, Y.; Hu, X.; Wu, M. Calibration of Strapdown Three-axis Magnetometer and Measurement Error Compensation of Geomagnetic Field Based on Total Least Squares. Acta Armamentarii 2012, 33, 1202–1209. [Google Scholar]
  22. Zhang, Y.; Yang, R.; Li, M.; Zuo, J.; Chen, X. Calibration of Vehicular Three-axis Magnetometer via Truncated Total Least Squares Algorithm. Acta Armamentarii 2015, 36, 427–432. [Google Scholar]
  23. Sun, H.; Yang, B.; Wu, H.; Li, C.; Wang, R. Integrated Compensation Method of Three-axis Magnetometer Based on EKF Algorithm. J. Proj. Rocket. Missiles Guid. 2019, 39, 149–154. [Google Scholar]
  24. Yang, B.; Wang, R.; Sun, H. Integrated Error Compensation Method for Three-Axis Magnetometer in Geomagnetic Navigation. In Lecture Notes in Electrical Engineering. In Proceedings of the China Satellite Navigation Conference (CSNC) 2020 Proceedings: Volume I. CSNC 2020; Chengdu, China, 22–25 November 2020, Springer: Singapore, 2020; Volume 650, p. 650. [Google Scholar] [CrossRef]
  25. Cheng, Z. Calibration Method of Magnetometer Based on BP Neural Network. J. Comput. Commun. 2020, 6, 31–41. [Google Scholar]
  26. Yu, P.; Zhao, X.; Jia, J.; Zhou, S. An improved neural network method for aeromagnetic compensation. Meas. Sci. Technol. 2021, 32, 045106. [Google Scholar] [CrossRef]
  27. Zhu, X.L.; Chen, S.H. Method on eliminating magnetic interference in shipboard geomagnetic field measurement. Ship Sci. Technol. 2019, 41, 126–129. [Google Scholar]
  28. Li, T.; Zhang, J.S.; Wang, S.C.; Li, D.Y. Compensation of geomagnetic field measurement error based on damped particle swarm optimization. Chin. J. Sci. Instrum. 2017, 38, 2246–2452. [Google Scholar]
  29. Zhang, W.; Zhang, G. New Measuring and Calculate Method of Submarine Space Magnetic Field. Ship Electron. Eng. 2010, 4, 170–173. [Google Scholar]
  30. Zhang, Y.; Mao, S. Modeling Analysis and Application of Submarine Space Magnetic. Ship Electron. Eng. 2018, 38, 136–139. [Google Scholar]
  31. Lin, C. Single-row Ellipsoid and Magnetic Dipole Mixed Model in Ship Magnetic Field Depth Conversion. Mine Warf. Ship Prot. 1996, 3, 54–58. [Google Scholar]
  32. Qu, X.; Yang, R.; Shan, Z. Analysis and comparison on magnetic field modeling method of submarine. Ship Sci. Technol. 2011, 33, 7–11. [Google Scholar]
  33. Alken, P.; Thebault, E.; Beggan, C.D.; Amit, H.; Aubert, J.; Baerenzung, J.; Bondar, T.N.; Brown, W.J.; Califf, S.; Chambodut, A.; et al. International Geomagnetic Reference Field: The thirteenth generation. Earth Planets Space 2021, 73, 49. [Google Scholar] [CrossRef]
  34. Zhou, Y.; Zhang, G. Ship Magnetic Field Analysis and Calculation; National Defence Industry Press: Beijing, China, 2004. [Google Scholar]
  35. Yang, L.; Liu, T. Warship Magnetic Field Simulation Technology Based on Magnetic Dipoles. Ship Electron. Eng. 2017, 37, 60–64. [Google Scholar]
  36. Foster, C.C.; Elkaim, G.H. Extension of a Two-Step Calibration Methodology to Include Nonorthogonal Sensor Axes. IEEE Trans. Aerosp. Electron. Syst. 2008, 44, 1070–1078. [Google Scholar] [CrossRef]
  37. Vasconcelos, J.F.; Elkaim, G.; Silvestre, C.; Oliveira, P.; Cardeira, B. Geometric Approach to Strapdown Magnetometer Calibration in Sensor Frame. IEEE Trans. Aerosp. Electron. Syst. 2011, 47, 1293–1306. [Google Scholar] [CrossRef]
  38. Bjorck, A. Least squares methods. Handb. Numer. Anal. 1990, 1, 465–652. [Google Scholar]
  39. Abatzoglou, T.; Mendel, J.; Harada, G. The constrained total least squares technique and its applications to harmonic superresolution. IEEE Trans. Signal Process. 1991, 39, 1070–1087. [Google Scholar] [CrossRef]
  40. Golub, G.H.; Loan, C.V. An Analysis of the Total Least Squares Problem; Cornell University: Ithaca, NY, USA, 1980. [Google Scholar]
  41. Huffel, S.V.; Vandewalle, J. The Total Least Squares Problem: Computational Aspects and Analysis; Society for Industrial and Applied Mathematics: University City, PA, USA, 1991. [Google Scholar]
  42. Wu, Z. Research on Geomagnetic Measurement Error Compensation for Underwater Geomagnetic Navigation. Ph.D. Thesis, National University of Defense Technology, Changsha, China, 2013. [Google Scholar]
Figure 1. Rotating ellipsoid shell.
Figure 1. Rotating ellipsoid shell.
Sensors 24 03478 g001
Figure 2. Magnetic dipole in a space rectangular coordinate system.
Figure 2. Magnetic dipole in a space rectangular coordinate system.
Sensors 24 03478 g002
Figure 3. Geomagnetic field data on track points.
Figure 3. Geomagnetic field data on track points.
Sensors 24 03478 g003
Figure 4. Regional geomagnetic field and the vehicle’s track.
Figure 4. Regional geomagnetic field and the vehicle’s track.
Sensors 24 03478 g004
Figure 5. Magnetic field data at track points using the magnetometer’s measurements.
Figure 5. Magnetic field data at track points using the magnetometer’s measurements.
Sensors 24 03478 g005aSensors 24 03478 g005b
Figure 6. Compensation results in the maneuvering area.
Figure 6. Compensation results in the maneuvering area.
Sensors 24 03478 g006
Figure 7. Compensation results in the matching area.
Figure 7. Compensation results in the matching area.
Sensors 24 03478 g007
Table 1. Magnetometer compensation parameters and the RMSE of compensation error in the maneuvering area.
Table 1. Magnetometer compensation parameters and the RMSE of compensation error in the maneuvering area.
SNRPORMSE
80 1 . 0594 0 0 0 . 000946 1 . 688 0 0 . 000414 0 . 000157   1 . 6875 102 . 17 21 . 97 2 . 84 3.02
90 1 . 0598 0 0 0 . 001194 1 . 6884 0 0 . 000580 0 . 000306 1 . 6876 117 . 58 28 . 19 4 . 31 1.86
95 1 . 0599 0 0 0 . 001281 1 . 6885 0 0 . 000660 0 . 000380 1 . 6877 123 . 65 30 . 61 5 . 06 1.73
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

Tong, Y.; Huang, X.; Chen, Y.; Li, W.; Zha, F. A Compensation Method for the Geomagnetic Measurement Error of an Underwater Ship-Borne Magnetometer Based on Constrained Total Least Squares. Sensors 2024, 24, 3478. https://doi.org/10.3390/s24113478

AMA Style

Tong Y, Huang X, Chen Y, Li W, Zha F. A Compensation Method for the Geomagnetic Measurement Error of an Underwater Ship-Borne Magnetometer Based on Constrained Total Least Squares. Sensors. 2024; 24(11):3478. https://doi.org/10.3390/s24113478

Chicago/Turabian Style

Tong, Yude, Xiaoying Huang, Yongbing Chen, Wenkui Li, and Feng Zha. 2024. "A Compensation Method for the Geomagnetic Measurement Error of an Underwater Ship-Borne Magnetometer Based on Constrained Total Least Squares" Sensors 24, no. 11: 3478. https://doi.org/10.3390/s24113478

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