Magnetic sensor interference compensation method based on recursive singular value decomposition
By constructing a moving magnetic interference suppression model based on the method of recursive singular value decomposition, performing singular value decomposition and iterative update, the problem of deviation and divergence of the traditional algorithm in the case of insufficient data is solved, and effective detection of weak magnetic anomaly signals is achieved. Improvements in detection and magnetic anomaly detection capabilities.
Patent Information
- Application Number
- CN202410841872.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-27
AI Technical Summary
The traditional recursive interference compensation algorithm will produce large deviations or even divergence when the compensation data is insufficient, and cannot effectively improve the magnetic anomaly detection capability.
A magnetic sensor interference compensation method based on recursive singular value decomposition is adopted. By constructing a motion magnetic interference suppression model, singular value decomposition and iterative updating are performed to estimate the magnetic interference compensation matrix to ensure the stability and accuracy of parameter estimation.
It achieves effective detection of weak magnetic anomaly signals in the case of insufficient compensation data, improves magnetic anomaly detection capabilities, and avoids the problem of divergence in parameter estimation.
Smart Images

Figure CN118393589B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of magnetic measurement, and in particular to a magnetic sensor interference compensation method based on recursive singular value decomposition. Background Art
[0002] The earth is a huge magnet. Ferromagnetic objects will be magnetized in the geomagnetic field, and then produce magnetic anomalies in the uniform geomagnetic background. The magnetic anomalies can be used for ship detection, car tracking, oil pipeline positioning, unexploded ordnance detection, etc. Three-axis magnetic sensors such as fluxgate sensors have become commonly used magnetic field measurement equipment due to their low cost and small size. However, during the measurement process, three-axis magnetic sensors will be affected by the sensor's own errors and carrier magnetic interference, and the magnetic field interference can reach hundreds of petabytes or even tens of nanoteslas. These influences are much higher than the sensitivity of the sensor, which seriously reduces the signal-to-noise ratio of the magnetic anomaly signal and brings great difficulties to magnetic anomaly detection.
[0003] In order to improve the target detection capability of magnetic anomalies, magnetic sensors must be compensated before use. The principle of compensation is to compare the output of the magnetic sensor with a known reference magnetic field (commonly used geomagnetic field) to estimate the compensation error coefficient. The parameter estimation of magnetic interference compensation can be divided into two methods: online and offline. In the offline method, the interference compensation coefficient is obtained through pre-compensation learning. This coefficient can be applied to magnetic field measurement for a period of time as a fixed compensation parameter. The relationship between the output and the compensation coefficient in the magnetic interference compensation model is nonlinear. Direct parameter estimation methods include nonlinear least squares method, particle swarm algorithm, etc. However, nonlinear methods have problems such as initial value selection and large amount of calculation. The online interference compensation method mainly assumes that the sensor can achieve free rotation in three-dimensional space, and its compensation data is sufficient and not considered. However, in many scenarios, due to the limitations of its own weight and working conditions, the carrier has a small range of motion and cannot traverse the posture in space. The data used to estimate the interference compensation coefficient may be insufficient. At this time, the use of traditional recursive interference compensation algorithms will produce large deviations or even divergence, and the ability to detect magnetic anomalies cannot be improved. Summary of the invention
[0004] The present invention mainly solves the problem that the traditional recursive interference compensation algorithm will produce large deviations or even diverge, and cannot improve the magnetic anomaly detection capability. The present invention provides a magnetic sensor interference compensation method based on recursive singular value decomposition. On the basis of maintaining the advantages of the traditional singular value decomposition algorithm, this method ensures the stability of parameter estimation in the recursive process and solves the defect that the traditional recursive interference compensation algorithm will produce deviations or even diverge when the compensation data is insufficient. It is not affected by whether the compensation data is sufficient or not, and can still detect weak magnetic anomaly signals.
[0005] The object of the present invention is to provide a magnetic sensor interference compensation method based on recursive singular value decomposition, which is used for the detection of weak magnetic fields by magnetic sensors, comprising:
[0006] Acquire multiple sets of measurement data according to the geomagnetic field received by the magnetic sensor;
[0007] A measurement matrix is formed based on multiple sets of measurement data;
[0008] A magnetic interference compensation matrix is constructed according to the magnetic field error received by the magnetic sensor when receiving the earth's magnetic field;
[0009] Construct a motion magnetic interference suppression model based on the measurement matrix and the magnetic interference compensation matrix;
[0010] Based on the motion magnetic interference suppression model, the magnetic interference compensation matrix is estimated by performing singular value decomposition of the measurement matrix. During the estimation process, the magnetic interference compensation matrix is estimated in real time by adding iterative updates of the measurement data. When the conditions for stopping the iteration are met, the final magnetic interference compensation matrix is obtained.
[0011] When using a magnetic sensor to detect a target weak magnetic field, the final magnetic interference compensation matrix is combined to obtain the magnetic sensor output after interference compensation.
[0012] Preferably, the motion magnetic interference suppression model is:
[0013] (14)
[0014] In the formula, represents the measurement matrix; represents the magnetic interference compensation matrix; Represents the output matrix after the measurement matrix is compensated for magnetic interference.
[0015] Preferably, based on the motion magnetic interference suppression model, the magnetic interference compensation matrix is estimated by performing singular value decomposition on the measurement matrix, including:
[0016] Multiply both sides of the motion magnetic interference suppression model by , rewritten as:
[0017] (19)
[0018] By adding measurement data and recursively calculating the matrix in equation (19): Perform singular value decomposition, determine the number of valid singular values, and then reconstruct the matrix according to the number of valid singular values, and estimate the magnetic interference compensation matrix by using the pseudo-inverse method.
[0019] Preferably, the magnetic interference compensation matrix is estimated in real time by adding iterative updates of the measurement data, including:
[0020] The measurement matrix formed by the first k measurement data , perform singular value decomposition:
[0021] (20)
[0022] When adding a new set of measurement data When , there is a new singular value decomposition updated as:
[0023] (twenty two)
[0024] in, The singular value decomposition of is expressed as:
[0025] (twenty four)
[0026] In the formula, , , Through , , as well as Obtained by calculation;
[0027] For the first k measurement data (k≥2), when a new set of measurement data is added , can be updated to:
[0028] (30)
[0029] After adding a new set of measurement data, the magnetic interference compensation matrix is updated as follows:
[0030] (32)
[0031] in, Represents the magnetic interference compensation matrix after adding a new set of measurement data.
[0032] Preferably, the determining of the number of valid singular values is obtained according to the following steps:
[0033] Normalize the vector formed by each set of measurement data;
[0034] According to the normalized vector, a diagonal matrix is obtained by using a vector transformation method;
[0035] Get the proportional coefficients between adjacent elements in a diagonal matrix;
[0036] Set the ratio threshold;
[0037] The number of valid singular values is determined based on the difference between the scale factor and the scale threshold.
[0038] Preferably, the matrix is reconstructed according to the number of valid singular values, including: truncating the iterative matrix representing the magnetic interference compensation matrix according to the determined number of valid singular values, and then reconstructing to obtain a reconstructed magnetic interference compensation matrix.
[0039] Preferably, the conditions for stopping the iterative update include:
[0040] According to the iteratively updated magnetic interference compensation matrix, a corrected magnetic sensor output is obtained;
[0041] Set the iteration stop threshold;
[0042] Whether the iterative update is stopped is determined according to the difference between the corrected magnetic sensor output and the iteration stop threshold.
[0043] The present invention has at least the following beneficial effects:
[0044] The present invention provides a magnetic sensor interference compensation method based on recursive singular value decomposition. The present invention first performs singular value decomposition on a matrix in a recursive manner to determine the number of valid singular values in a parameter iteration process. Then, the iterative matrix is truncated and reconstructed according to the number of valid singular values, and finally, the interference suppression parameter is estimated by a pseudo-inverse method. The present invention is an online magnetic interference compensation parameter estimation method, which mainly estimates a magnetic interference compensation matrix, wherein the magnetic interference compensation matrix mainly represents the magnetic field error received by a vector magnetic sensor. By flexibly adjusting parameters and adapting to the constantly changing magnetic field interference, the magnetic interference can be compensated faster. The present invention does not require any assumptions for the initialization of the online error parameter estimation method. The present invention does not take up too much space by using a recursive singular value decomposition matrix, and only needs to store current data and parameters. The present invention can effectively update the number of singular values, then reconstruct the matrix, and estimate the magnetic interference compensation matrix by a pseudo-inverse method. The problem of error parameter estimation divergence caused by severe complex collinearity of measurement data due to limited sensor motion posture in real scenarios is solved. The present invention can realize parameter estimation during interference compensation and detection of weak magnetic anomaly signals without sufficient compensation data. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is a schematic diagram of the present invention using a three-axis magnetometer to detect magnetic anomalies on a mobile platform.
[0046] Figure 2 Magnetic field vector diagram for comprehensive interference compensation.
[0047] Figure 3A flow chart of a magnetic sensor interference compensation method based on recursive singular value decomposition provided by the present invention.
[0048] Figure 4 A flowchart of the robust iteration provided by the present invention.
[0049] Figure 5 Flowchart for determining the number of valid singular values for the present invention.
[0050] Figure 6 This is a flow chart of the conditions for stopping iteration of the present invention.
[0051] Figure 7 is the sensor output before and after interference compensation. DETAILED DESCRIPTION
[0052] In order to illustrate the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the following is a detailed description in conjunction with embodiments.
[0053] The main problems addressed by the present invention are as follows:
[0054] See also Figure 1 As shown in the figure, when a magnetic target moves through a mobile carrier equipped with a three-axis vector magnetic sensor, it will cause a change in the output of the magnetic sensor. In order to facilitate the estimation of the interference compensation coefficient, the global coordinate system where the target is located is converted to the sensor coordinate system through a rotation matrix. The magnetic detection scenario is that the three-axis vector magnetic sensor is placed on a moving carrier platform and receives the magnetic field from the surrounding environment. When a magnetic target passes through the magnetic sensor, it causes the output of the magnetic sensor to change, so that the magnetic target can be detected.
[0055] See also Figure 2 As shown, the magnetic field generated by the target , Earth's magnetic field , and the magnetic field collected by the sensor contains the magnetic field error , this magnetic field error includes soft magnetic interference error , hard magnetic interference error and zero bias error .
[0056] Generates magnetic field according to target , Earth's magnetic field , the output of the vector magnetic sensor It can be expressed as:
[0057] (1)
[0058] in, , is the magnetic field error received by the vector magnetic sensor, Including soft magnetic interference error, non-orthogonality error, sensitivity error, Includes hard magnetic interference error and zero bias error. represents the global coordinate system, that is, the Earth's magnetic field coordinate system, Indicates the coordinate system of the sensor, specifically the three-axis coordinate system of the fluxgate sensor. Represents the rotation matrix that transforms the global coordinate system to the sensor coordinate system.
[0059] When the distance between the target and the magnetic sensor is greater than twice its own length, the magnetic field of the target can be equivalent to a magnetic dipole. The position vector from the target to the sensor is expressed as The target magnetic moment is expressed as The target magnetic field is for:
[0060] (2)
[0061] in:
[0062] (3)
[0063] Indicates the magnetic permeability of the medium. Represents the matrix Transpose. represents the 3*3 unit matrix. It can be obtained through the attitude sensor, but due to the influence of the geomagnetic background, a small error of the attitude sensor can cause a large magnetic field output, which is much greater than the target strength. Therefore, the modulus of the vector magnetic sensor is usually used to detect the target to eliminate the influence of attitude shaking. If there is no hard magnetic and soft magnetic interference, it can be simplified to:
[0064] (4)
[0065] The sensor's receiving magnetic field is approximately equal to the sum of the local geomagnetic field and the projection of the target magnetic field in the geomagnetic direction:
[0066] (5)
[0067] is the angle between the target magnetic field direction and the earth's magnetic field direction. It is short-term constant and can be considered as a constant in a short time. Therefore, the total magnetic field change received by the magnetic sensor is:
[0068] (6)
[0069] pass The change can be detected by the target. Due to the existence of magnetic interference error, the actual sensor output is:
[0070] (6-1)
[0071] Considering that the second term in equation (6-1) is much smaller than the first term, the change in the magnetic sensor reception is approximately:
[0072] (7)
[0073] Due to the Earth's magnetic field Much larger than the target magnetic field, with the attitude The magnetic field fluctuation caused by this change is much larger than the target magnetic field, so the target magnetic field will be submerged in the noise and become difficult to detect.
[0074] The purpose of the present invention is to provide an interference compensation method based on recursive singular value decomposition to achieve real-time estimation of interference compensation coefficients, thereby improving the ability to detect magnetic anomalies, even when the carrier cannot traverse the entire space and the compensation data is insufficient. First, the target magnetic detection scene is described, and then the motion magnetic interference model is modeled. The interference compensation method when there is sufficient compensation data is analyzed. On this basis, a new interference compensation method based on recursive singular value decomposition is proposed, which solves the problem of divergence of parameter estimation results during interference compensation when the compensation data is insufficient, and improves the detection capability of weak magnetic anomaly signals.
[0075] The magnetic sensor interference compensation method based on recursive singular value decomposition proposed by the present invention first performs singular value decomposition on the measurement data matrix received by the three-axis vector magnetic sensor; when a new set of measurement values is added, a new singular value decomposition update is performed, that is, the singular value decomposition is performed in a recursive manner; the singular value decomposition after vector unitization is selected to determine the number of valid singular values; the iterative matrix is truncated and reconstructed according to the number of valid singular values; the magnetic interference compensation matrix is estimated in a pseudo-inverse manner; and the 3σ principle is used to stop the iteration when the corrected measurement value falls into an area outside 3σ.
[0076] To achieve the above purpose, see Figure 3 As shown, the present invention provides a magnetic sensor interference compensation method based on recursive singular value decomposition, which is used for the magnetic sensor to detect weak magnetic fields, including:
[0077] S1. Acquire multiple sets of measurement data according to the geomagnetic field received by the magnetic sensor;
[0078] A measurement matrix is formed based on multiple sets of measurement data;
[0079] It should be noted that since the magnetic field generated by the target is inversely proportional to the cube of the distance, when the target is far away from the sensor, the magnetic field it generates is much smaller than the earth's magnetic field. , It can be ignored and regarded as zero. At this time, the magnetic field received by the sensor is the geomagnetic field, and its output can be approximated as:
[0080] (8)
[0081] Subtract both sides of the equation , and multiply both sides by , the above formula can be rewritten as:
[0082] (9)
[0083] The left side of the equation can be simplified by removing the brackets:
[0084] (10)
[0085] Generally, there are: , this term can be ignored and will not have any effect on the calculation. Formula (10) can be rewritten as:
[0086] (11)
[0087] in:
[0088] (11-1)
[0089] Represents the matrix The columns of are arranged in order into a column vector.
[0090] When there are multiple sets of measurement data, the measurement matrix composed of the measurement data It is expressed as:
[0091] , (12)
[0092] In the formula, is the magnetic interference compensation matrix to be determined; Represents the transpose of the kth set of outputs measured by the vector magnetic sensor.
[0093] S2, constructing a magnetic interference compensation matrix according to the magnetic field error received by the magnetic sensor when receiving the geomagnetic field;
[0094] Construct a motion magnetic interference suppression model based on the measurement matrix and the magnetic interference compensation matrix;
[0095] In this embodiment, Recorded as .Right now:
[0096] (13)
[0097] because is a symmetric matrix, , There are three elements that are equal, including 12 unknown parameters It can be simplified into 9 parameters, that is, the motion magnetic interference suppression model is:
[0098] (14)
[0099] In the formula, represents the measurement matrix; represents the magnetic interference compensation matrix; It represents the output matrix after the measurement matrix is compensated for magnetic interference. That is, it is the matrix after the interference compensation and suppression of the interference data collected by the vector magnetic sensor.
[0100] in: (15)
[0101] , They are represented as:
[0102] (16)
[0103] It should be noted that when the experimental data is sufficient, it can be guaranteed is full rank, then it is reversible. At this time, the unknown parameter can be estimated as:
[0104] (17)
[0105] In many practical application scenarios, the carrier needs to have a sufficiently large maneuvering angle during movement, but this is often not possible in actual movement. Due to the limited sensor posture, the measurement data has serious complex collinearity. It is ill-conditioned and non-full rank. Using the above formula, the parameters often appear to be solved Divergent situation.
[0106] The method provided by the present invention is mainly aimed at online parameter estimation without sufficient data, and is specifically as follows:
[0107] S3, obtaining the final magnetic interference compensation matrix;
[0108] Based on the motion magnetic interference suppression model, the magnetic interference compensation matrix is estimated by performing singular value decomposition of the measurement matrix. During the estimation process, the magnetic interference compensation matrix is estimated in real time by adding iterative updates of the measurement data. When the conditions for stopping the iteration are met, the final magnetic interference compensation matrix is obtained.
[0109] It should be noted that in the case of insufficient data, in order to ensure that the parameter estimates do not diverge, the singular value truncation method can be used to estimate the parameters. The singular value decomposition of can be expressed as:
[0110] (18)
[0111] According to the properties of singular value decomposition, , are all orthogonal matrices, and their columns are , The eigenvectors of are called left and right singular vectors. is a diagonal matrix, and the elements on the diagonal are called singular values, which are The square roots of the eigenvalues are usually arranged in descending order. The N×N matrix needs to be stored during the iteration process , when the measurement time is long, Will take up a lot of storage space.
[0112] According to the present invention, it is necessary to Perform singular value iterative decomposition, The matrix is always 9×9, and no large storage space is required when recursively performing singular value decomposition on it. On this basis, the present invention proposes an interference suppression method based on a recursive singular value decomposition algorithm. The method recursively performs Perform singular value decomposition, determine the number of valid singular values through certain methods and strategies, then reconstruct the matrix, and estimate the magnetic interference compensation matrix through the pseudo-inverse method.
[0113] Based on the motion magnetic interference suppression model, the magnetic interference compensation matrix is estimated by performing singular value decomposition on the measurement matrix, including:
[0114] Multiply both sides of the motion magnetic interference suppression model by , rewritten as:
[0115] (19)
[0116] By adding measurement data and recursively calculating the matrix in equation (19): Perform singular value decomposition, determine the number of valid singular values, and then reconstruct the matrix according to the number of valid singular values, and estimate the magnetic interference compensation matrix by using the pseudo-inverse method.
[0117] By increasing the iterative update of the measurement data, the magnetic interference compensation matrix is estimated in real time, including:
[0118] The measurement matrix formed by the first k measurement data , perform singular value decomposition:
[0119] (20)
[0120] When adding a new set of measurement data When , there is a new singular value decomposition updated as:
[0121] (twenty two)
[0122] in, The singular value decomposition of is expressed as:
[0123] (twenty four)
[0124] In the formula, , , Through , , as well as Obtained by calculation;
[0125] For the first k measurement data (k≥2), when a new set of measurement data is added , can be updated to:
[0126] (30)
[0127] After adding a new set of measurement data, the magnetic interference compensation matrix is updated as follows:
[0128] (32)
[0129] in, Represents the magnetic interference compensation matrix after adding a new set of measurement data.
[0130] Specifically, the number of valid singular values is determined by following the steps below:
[0131] Normalize the vector formed by each set of measurement data;
[0132] According to the normalized vector, a diagonal matrix is obtained by using a vector transformation method;
[0133] Get the proportional coefficients between adjacent elements in a diagonal matrix;
[0134] Set the ratio threshold;
[0135] The number of valid singular values is determined based on the difference between the scale factor and the scale threshold.
[0136] According to the present invention, the matrix is reconstructed according to the number of valid singular values, including: truncating the iterative matrix representing the magnetic interference compensation matrix according to the number of valid singular values determined, and then reconstructing to obtain a reconstructed magnetic interference compensation matrix.
[0137] The conditions for stopping the iterative update include:
[0138] According to the iteratively updated magnetic interference compensation matrix, a corrected magnetic sensor output is obtained;
[0139] Set the iteration stop threshold;
[0140] Whether the iterative update is stopped is determined according to the difference between the corrected magnetic sensor output and the iteration stop threshold.
[0141] In this embodiment, the matrix is recursively Perform singular value decomposition, determine the number of valid singular values through certain methods and strategies, then reconstruct the matrix, and estimate the magnetic interference compensation matrix by the pseudo-inverse method. Figure 4 As shown, the specific steps are as follows:
[0142] S3.1. Initialization of magnetic interference compensation matrix estimation:
[0143] For the measurement matrix composed of the first k measurement data , perform singular value decomposition:
[0144] (20)
[0145] By the definition of a symmetric matrix, is a symmetric matrix, so we have:
[0146] (twenty one)
[0147] When adding a new set of measurements When , there is a new singular value decomposition update:
[0148] (twenty two)
[0149] at this time It can be expressed as:
[0150] (twenty three)
[0151] The singular value decomposition of is expressed as:
[0152] (twenty four)
[0153] at this time , , They are:
[0154] (25)
[0155] , , The matrix is composed of The singular value decomposition of For a matrix with smaller dimensions, perform singular value decomposition on it and calculate :
[0156] (26)
[0157] , Through the matrix The QR decomposition of is:
[0158] (27)
[0159] at this time, , , It is not a strictly orthogonal matrix and needs to be orthogonalized after several iterations.
[0160] S3.2, renew:
[0161] For the first measurement, we have:
[0162] (28)
[0163] For the first k measurements (k ≥ 2) can be updated as:
[0164] (29)
[0165] After multiplying the two matrices on the left side of the equation:
[0166] (30)
[0167] (31)
[0168] According to the properties of singular value decomposition, in the real number domain , It is an orthogonal matrix, and the transpose of an orthogonal matrix is equal to its inverse. So the magnetic interference compensation matrix The update is:
[0169] (32)
[0170] S3.3, determine the number of valid singular values for truncation and reconstruction:
[0171] Based on online recursive parameter estimation, the diagonal elements are obtained as The diagonal matrix :
[0172] (33)
[0173] In general, the number of valid singular values can be determined based on to determine the distribution of .
[0174] There is a mutation between the first invalid singular value and the last valid singular value, which is used to determine the number of valid singular values. However, since the data contained in the data matrix has non-uniform dimensions, with 6 columns related to the square terms of the data and 3 columns related to the linear terms of the data, a mutation will occur near the 6th singular value regardless of whether the data is sufficient, resulting in an error in selecting the number of valid singular values. In response to this situation, the vector is normalized to determine the number of valid singular values to avoid the estimation error caused by the square terms. See Figure 5 As shown, the specific steps are as follows:
[0175] 1) Data normalization processing, each set of measurement data constitutes a vector can be normalized to :
[0176] (34)
[0177] Among them, the symbol It means that the Hadamard product is also called the element product. Represents a matrix whose elements are all 1.
[0178] 2) Based on the normalization method and the online support vector transformation method, the diagonal matrix is obtained :
[0179] (35)
[0180] 3) Set thresholds , calculate the proportionality coefficient between the i-th singular value and the i+1-th singular value:
[0181] (36)
[0182] 4) When it first appears ,and , then the number of valid singular values is considered to be ;when and hour, will be changed to 9.
[0183] For the initialization of the online magnetic interference compensation matrix estimation method, no assumptions need to be made. For the first set of measurements, the measurement matrix can be formed according to the equation:
[0184] (37)
[0185] At this point, the first singular value decomposition is:
[0186] (38)
[0187] in The number of valid singular values in .
[0188] After determining the number of valid singular values of iterative singular value decomposition of the magnetic interference compensation matrix, the iterative matrix is truncated according to the number of valid singular values, and then reconstructed to obtain the magnetic interference compensation matrix represented by formula (38-1): , thus ensuring the convergence of the compensation error.
[0189] (38-1)
[0190] S3.4, see Figure 6 As shown in the figure, the condition setting process for stopping iteration is as follows:
[0191] The condition for stopping the iteration mainly depends on the 3σ principle. When the corrected measurement value falls into the area outside 3σ, it is considered that the condition for stopping the iteration is met.
[0192] Through the above iterations, the magnetic interference compensation matrix can be obtained , the corrected total sensor field output is obtained:
[0193] (39)
[0194] When the absolute value of the corrected sensor total field output minus the mean is greater than When , the iteration stop condition is considered to be met:
[0195] (40)
[0196] The mean and standard deviation are calculated as follows:
[0197] (41)
[0198] Where N is the data length used to calculate the mean and variance.
[0199] S4. When using the magnetic sensor to detect the weak magnetic field of the target, the final magnetic interference compensation matrix is combined to obtain the magnetic sensor output after interference compensation.
[0200] In this embodiment, the final magnetic interference compensation matrix is used to obtain and ;in Including soft magnetic interference error, non-orthogonality error, sensitivity error, Including hard magnetic interference error and zero bias error. and The output of the magnetic sensor is obtained by formula (1): , which is the output of the magnetic sensor after interference compensation, thereby realizing the detection of the target magnetic field.
[0201] To further illustrate the application of the method provided by the present invention in magnetic anomaly detection, the steps of the magnetic anomaly detection process after interference compensation are as follows:
[0202] To estimate the magnetic interference compensation matrix in formula (19): First, in order to reduce the storage space of singular value decomposition, the measurement matrix Multiply it by its transpose on the left, and then Perform singular value iterative decomposition to obtain formula (20);
[0203] When a new set of measurements is added, it is the singular value decomposition of formula (24). , , It is deduced from formula (27) , , and then derive it using formulas (26) and (25).
[0204] For k times of measurement data (k≥2) Add a new set of measurement data and update
[0205] Determine the number of valid singular values, reconstruct the iterative matrix and obtain the magnetic interference compensation matrix in formula (38-1) .
[0206] Continuously iterate to obtain the magnetic interference compensation matrix Finally, the corrected total sensor field output is solved by formula (39), and the iteration is stopped when formula (40) is satisfied, that is, the estimated magnetic interference compensation matrix Realizes online interference compensation requirements even when data is insufficient. Figure 7 As shown in the figure, after compensation, the interference is significantly suppressed, and the signal-to-noise ratio of the target magnetic anomaly signal at around 20s is greatly improved.
[0207] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A magnetic sensor interference compensation method based on recursive singular value decomposition, characterized in that: Used for magnetic sensors to detect weak magnetic fields, including: Acquire multiple sets of measurement data according to the geomagnetic field received by the magnetic sensor; A measurement matrix is formed based on multiple sets of measurement data; A magnetic interference compensation matrix is constructed according to the magnetic field error received by the magnetic sensor when receiving the earth's magnetic field; Construct a motion magnetic interference suppression model based on the measurement matrix and the magnetic interference compensation matrix; Based on the motion magnetic interference suppression model, the magnetic interference compensation matrix is estimated by performing singular value decomposition of the measurement matrix. During the estimation process, the magnetic interference compensation matrix is estimated in real time by adding iterative updates of the measurement data. When the conditions for stopping the iteration are met, the final magnetic interference compensation matrix is obtained. When using a magnetic sensor to detect a target weak magnetic field, the final magnetic interference compensation matrix is combined to obtain the magnetic sensor output after interference compensation.
2. The magnetic sensor interference compensation method based on recursive singular value decomposition according to claim 1, characterized in that: The motion magnetic interference suppression model is: (14) In the formula, represents the measurement matrix; represents the magnetic interference compensation matrix; Represents the output matrix after the measurement matrix is compensated for magnetic interference.
3. The magnetic sensor interference compensation method based on recursive singular value decomposition according to claim 2 is characterized in that: Based on the motion magnetic interference suppression model, the magnetic interference compensation matrix is estimated by performing singular value decomposition on the measurement matrix, including: Multiply both sides of the motion magnetic interference suppression model by , rewritten as: (19) By adding measurement data and recursively calculating the matrix in equation (19): Perform singular value decomposition, determine the number of valid singular values, and then reconstruct the matrix according to the number of valid singular values, and estimate the magnetic interference compensation matrix by using the pseudo-inverse method.
4. The magnetic sensor interference compensation method based on recursive singular value decomposition according to claim 3 is characterized in that: By increasing the iterative update of the measurement data, the magnetic interference compensation matrix is estimated in real time, including: The measurement matrix formed by the first k measurement data , perform singular value decomposition: (20) When adding a new set of measurement data When , there is a new singular value decomposition updated as: (22) in, The singular value decomposition of is expressed as: (24) In the formula, , , Through , , as well as Obtained by calculation; For the first k measurement data (k≥2), when a new set of measurement data is added , can be updated to: (30) After adding a new set of measurement data, the magnetic interference compensation matrix is updated as follows: (32) in, Represents the magnetic interference compensation matrix after adding a new set of measurement data.
5. The magnetic sensor interference compensation method based on recursive singular value decomposition according to claim 4 is characterized in that: The number of valid singular values is determined by following the steps below: Normalize the vector formed by each set of measurement data; According to the normalized vector, a diagonal matrix is obtained by using a vector transformation method; Get the proportional coefficients between adjacent elements in a diagonal matrix; Set ratio threshold; The number of valid singular values is determined based on the difference between the scale factor and the scale threshold.
6. The magnetic sensor interference compensation method based on recursive singular value decomposition according to claim 5, characterized in that: The matrix is reconstructed according to the number of valid singular values, including: truncating the iterative matrix representing the magnetic interference compensation matrix according to the number of valid singular values, and then reconstructing to obtain a reconstructed magnetic interference compensation matrix.
7. The magnetic sensor interference compensation method based on recursive singular value decomposition according to claim 6, characterized in that: The conditions for stopping the iterative update include: According to the iteratively updated magnetic interference compensation matrix, a corrected magnetic sensor output is obtained; Set the iteration stop threshold; Whether the iterative update is stopped is determined according to the difference between the corrected magnetic sensor output and the iteration stop threshold.
Citation Information
Patent Citations
Magnetometer random noise error compensation method based on improved least square method
CN105676302A
Transient electromagnetic detection data noise filtering method based on singular spectrum analysis
CN113640891A
