A three-component magnetic sensor error correction method based on Seagull algorithm

Through the three-component magnetic sensor error correction method based on the Seagull algorithm, an error model is established and the Seagull algorithm is used to solve the compensation coefficient, which solves the problem of insufficient magnetic sensor correction accuracy and speed in the existing technology, and achieves high accuracy and fast operation. correction effect.

CN112363094BInactive Publication Date: 2024-10-29NORTHWESTERN POLYTECHNICAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011289668.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-17
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing three-component magnetic sensor correction algorithm has shortcomings in accuracy and running speed, making it difficult to achieve high accuracy and fast operation at the same time.

Method used

A three-component magnetic sensor error correction method based on the Seagull algorithm is adopted. By establishing a magnetic sensor error model, including solving the three-axis non-orthogonal error, sensitivity inconsistency error and zero bias error, combined with the Seagull algorithm to solve the compensation coefficient, the total compensation is carried out. Improve correction accuracy and speed.

Benefits of technology

It achieves high-precision and fast-running magnetic sensor error correction, improves the correction performance of the magnetic sensor, has simple code, and has strong global and local convergence capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112363094B_ABST
    Figure CN112363094B_ABST
Patent Text Reader

Abstract

The invention discloses a three-component magnetic sensor error correction method based on the Seagull algorithm, comprising: establishing a magnetic sensor error model; a compensation method; and solving the compensation coefficient calculation based on the Seagull algorithm. The method of the invention adopts the Seagull algorithm, which has simple code, fast running speed, and strong global and local convergence capabilities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to magnetic sensor error correction, and in particular to a three-component magnetic sensor error correction method based on a Seagull algorithm. Background Art

[0002] At present, domestic and foreign scholars have proposed many methods for the calibration of three-component magnetic sensors, including linear neural networks, ellipse fitting methods, etc. However, the algorithms currently used for calibration have insufficient accuracy and running speed, and cannot even achieve both at the same time. Summary of the invention

[0003] The main purpose of the present invention is to provide a three-component magnetic sensor error correction method based on the Seagull algorithm.

[0004] The technical solution adopted by the present invention is: a three-component magnetic sensor error correction method based on the Seagull algorithm, comprising:

[0005] Establish a magnetic sensor error model;

[0006] Total compensation method;

[0007] The compensation coefficient calculation is solved based on the Seagull algorithm.

[0008] Furthermore, establishing the magnetic sensor error model includes:

[0009] Solution of three-axis non-orthogonal errors;

[0010] Sensitivity inconsistency error solution;

[0011] Zero bias error solution;

[0012] Error model establishment.

[0013] Furthermore, the three-axis non-orthogonal error solution includes:

[0014] Assumptions and is a standard orthogonal coordinate system. The projections of the actual magnetic field signal on the orthogonal coordinate system are and Assumptions and They are the three axes of the three-component magnetic sensor, and their output magnetic field signals are and ; Standard orthogonal coordinate system Axis and three-component magnetic sensor Axis coincidence; standard orthogonal coordinate system coordinate plane With three-component magnetic sensor coplanar; and assuming a three-component magnetic sensor Axes and standard orthogonal coordinate systems The angle between the axes is ; Three-component magnetic sensor Axes and standard orthogonal coordinate systems The angle between the axes is , and the angle between it and the axis of the standard orthogonal coordinate system is , and the standard orthogonal coordinate system The angle between the axes is ;

[0015]

[0016] According to Taylor expansion, ignoring high-order small quantities, we believe ; Then the relationship between the three-axis magnetic sensor output and the actual magnetic field signal can be approximately simplified as:

[0017] .

[0018] Furthermore, the sensitivity inconsistency error solution includes:

[0019] Assume that the sensitivities of the three axes of the three-component magnetic sensor are and , then

[0020] .

[0021] Furthermore, the zero bias error solution includes:

[0022] Assume that the zero bias of the three axes of the three-component magnetic sensor is , and The output of the three-axis magnetic sensor can be expressed as:

[0023] .

[0024] Furthermore, the error model establishment includes:

[0025] After adding the three error factors of three-axis non-orthogonality, sensitivity inconsistency and zero bias of the three-component fluxgate sensor:

[0026]

[0027] , , , ,

[0028] Therefore, it can be finally expressed as:

[0029] .

[0030] Furthermore, the calculation of the compensation coefficient based on the Seagull algorithm includes:

[0031] Establish a compensation model based on the error model:

[0032]

[0033]

[0034]

[0035] Establish the objective function based on total compensation:

[0036]

[0037] Where T is the total geomagnetic volume N: number of samples; are the three components of the corrected magnetic field, are the three components of the ideal magnetic field.

[0038] The Seagull algorithm is used to solve the parameters of the target equation derived from the total compensation.

[0039] Advantages of the present invention:

[0040] The method of the present invention adopts the Seagull algorithm, which has simple code, fast running speed, and strong global convergence and local convergence capabilities.

[0041] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0043] Figure 1 It is a theoretical value diagram of the modeling after superposition of the three error factors of the present invention;

[0044] Figure 2 It is an observation value diagram modeled after superposition of the three error factors of the present invention;

[0045] Figure 3 This is an observation value graph of the present invention after adding noise with a signal-to-noise ratio of 40 decibels;

[0046] Figure 4 is a compensated geomagnetic field observation value diagram of the present invention;

[0047] Figure 5is a magnetic induction intensity diagram corresponding to the observation posture of the present invention;

[0048] Figure 6 It is the geomagnetic field observation value map after adding noise correction of the present invention;

[0049] Figure 7 is a magnetic induction intensity diagram corresponding to the observed posture after adding noise correction of the present invention;

[0050] Figure 8 is a coordinate system diagram of a three-axis magnetic sensor of the present invention;

[0051] Fig. 9 It is a compensation model diagram established by the error model of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0053] refer to Figures 1 to 9 , a three-component magnetic sensor error correction method based on the Seagull algorithm, comprising:

[0054] Establish a magnetic sensor error model;

[0055] Total compensation method;

[0056] The compensation coefficient calculation is solved based on the Seagull algorithm.

[0057] The method of the present invention adopts the Seagull algorithm, which has simple code, fast running speed, and strong global convergence and local convergence capabilities.

[0058] 1. Magnetic sensor error model

[0059] The three-component magnetic sensor needs to be calibrated and analyzed for its own performance errors before use. The key to calibrating the three-component fluxgate sensor is to establish the calibration model and solve the model coefficients, and analyze the three error factors of three-axis non-orthogonality, sensitivity inconsistency and zero bias.

[0060] (1) Three-axis non-orthogonality error

[0061] In order to establish an error correction model for the performance of a single three-component fluxgate sensor, a three-axis magnetic sensor coordinate system is first established as shown in the figure. Assuming that and are standard orthogonal coordinate systems, the projections of the actual magnetic field signal on the orthogonal coordinate system are and respectively; assuming that and are the three axes of the three-component magnetic sensor, their output magnetic field signals are and respectively. The standard orthogonal coordinate system established as shown in the figure and the three axes of the three-component magnetic sensor satisfy the following relationship: (1) The axes of the standard orthogonal coordinate system coincide with the axes of the three-component magnetic sensor; (2) The coordinate plane of the standard orthogonal coordinate system is coplanar with the three-component magnetic sensor.

[0062] Assumptions and is a standard orthogonal coordinate system. The projections of the actual magnetic field signal on the orthogonal coordinate system are and Assumptions and They are the three axes of the three-component magnetic sensor, and their output magnetic field signals are and ; Standard orthogonal coordinate system Axis and three-component magnetic sensor Axis coincidence; standard orthogonal coordinate system coordinate plane With three-component magnetic sensor coplanar; and assuming a three-component magnetic sensor Axes and standard orthogonal coordinate systems The angle between the axes is ; Three-component magnetic sensor Axes and standard orthogonal coordinate systems The angle between the axes is , and the standard orthogonal coordinate system The angle between the axes is , and the standard orthogonal coordinate system The angle between the axes is ;

[0063]

[0064] In practice, it is difficult to ensure that the three axes of a three-component magnetic sensor are completely orthogonal, but in terms of processing technology, the angle error can be controlled within 1°. are very small, approximately 0. According to Taylor expansion, ignoring high-order small quantities, we believe The relationship between the three-axis magnetic sensor output and the actual magnetic field signal can be approximately simplified as follows:

[0065]

[0066] (2) Sensitivity inconsistency error

[0067] Considering that the gain (also called sensitivity) between the three axes of the three-component magnetic sensor may be inconsistent in practical applications, the measured magnetic field value may also deviate from the magnetic field value in the standard coordinate system. Assume that the sensitivity of the three axes of the three-component magnetic sensor is and , then

[0068]

[0069] (3) Bias error

[0070] Considering the residual magnetism of the magnetic core of the three-axis fluxgate sensor and the zero-point offset of the internal circuit amplification and conditioning part, the two work together to cause different fixed magnetic fields to be superimposed in the three-axis directions when the magnetic sensor measures a certain magnetic field, which is the zero-bias error.

[132] Assume that the zero bias of the three axes of the three-component magnetic sensor is , and The output of the three-axis magnetic sensor can be expressed as

[0071]

[0072] (4) Error model establishment

[0073] After adding the three error factors of three-axis non-orthogonality, sensitivity inconsistency and zero bias of the three-component fluxgate sensor:

[0074]

[0075] , , , ,

[0076] Therefore, it can be finally expressed as:

[0077]

[0078] The total field strength is assumed to be T=50000nT, the magnetic declination angle is D=5°, and the magnetic inclination angle is I=5° for modeling. The left figure is the theoretical value, and the right figure is the observed value.

[0079] When a noise with a signal-to-noise ratio of 40 dB is added:

[0080] 2. Compensation method

[0081] In the compensation method, since it is difficult to obtain the accurate three components of the geomagnetic field and the conditions are harsh, the total amount compensation method is adopted. This method only requires the local geomagnetic total amount Te to obtain the compensation parameters.

[0082] Establish a compensation model based on the error model:

[0083]

[0084]

[0085] Establish the objective function based on total compensation:

[0086]

[0087] Where T is the total geomagnetic volume N: number of samples; are the three components of the corrected magnetic field, are the three components of the ideal magnetic field.

[0088] From the above equation, we can know that we need to solve There are 9 parameters. The main steps of using the Seagull algorithm to solve the model parameters are:

[0089] Initialization of training samples: 30 sets of data from the simulation measurement values ​​are randomly extracted as training samples, and they are divided by the total magnetic field for normalization;

[0090] Initialization population Ps: Randomly generate 9 parameters within the range of ±2 and solve for an initialization population of size 30;

[0091] Set the maximum number of iterations to 10,000, calculate the new position Ps of the seagull, update the best seagull position and fitness value, and the end condition is to reach the maximum number of times or obtain the target fitness value.

[0092] Output the best seagull position and get 9 parameters.

[0093] 3. Solve the compensation coefficient based on the Seagull Algorithm (SOA)

[0094] Seagulls are seabirds found all over the world. There are many species of seagulls and they vary in size and length. Seagulls are omnivores and eat insects, fish, reptiles, amphibians and earthworms. Most seagulls have white feathers covering their bodies and often use bread crumbs to attract schools of fish. They use their feet to make the sound of rain falling to attract earthworms hiding underground. Seagulls can drink fresh water and salt water, and excrete the salt from their bodies through a pair of special glands above their eyes. Seagulls live in groups and use their intelligence to find and attack prey. The most important characteristics of seagulls are migration and aggressive behavior. Migration is the movement of animals from one place to another according to the change of seasons, looking for the most abundant food source to obtain enough energy. During migration, animals travel in groups. Each seagull is in a different position during migration to avoid collisions with each other. In a group, seagulls can move in the direction of the best position and change their position. Seagulls often attack migratory birds. When attacking, the group of seagulls makes a spiral movement.

[0095] step:

[0096] Migration (global search):

[0097] During the migration process, the algorithm simulates how a flock of seagulls moves from one location to another. In this phase, the seagulls should meet three conditions: Avoid collisions: In order to avoid collisions with neighbors (other seagulls), the algorithm uses an additional variable A to calculate the new position of the seagull.

[0098]

[0099] Cs(t) represents the new position that does not conflict with other seagulls, Ps(t) is the current position of the seagull, t represents the current iteration, and A represents the movement behavior of the seagull in the given search space.

[0100]

[0101] fc can control the frequency of variable A, and its value decreases linearly from 2 to 0.

[0102] Best position direction: After avoiding overlapping with other seagulls, the seagull will move in the direction of the best position.

[0103]

[0104] Ms(t) represents the direction of the optimal position, and B is a random number responsible for balancing global and local searches.

[0105]

[0106] rd is a random number in the range [0, 1].

[0107] Close to the best position: Once the seagull moves to a position where it does not collide with other seagulls,

[0108] Move in the direction of the optimal position to reach the new position.

[0109]

[0110] Ds is the new position of the seagull.

[0111] Attack (local search):

[0112] Seagulls can constantly change their attack angle and speed during migration. They use their wings and weight to maintain altitude. When attacking prey, they perform spiral movements in the air. The movement behavior in the x, y, and z planes is described as follows:

[0113]

[0114] Where r is the radius of each spiral, θ is a random angle value in the range [0, 2π]. u and v are constants related to the shape of the spiral, and e is the base of the natural logarithm. The previous equation for the attack position of the seagull can be obtained:

[0115]

[0116] Set the corresponding parameters: fc=2, u=1, v=1

[0117] The Seagull algorithm is used to solve the parameters of the target equation derived from the total compensation. The 9 compensation parameters are solved to obtain the final three components after compensation.

[0118] 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 spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A three-component magnetic sensor error correction method based on the Seagull algorithm, characterized in that: include: Establish a magnetic sensor error model; Total compensation method; Compensation coefficient calculation based on Seagull algorithm; The establishing of the magnetic sensor error model comprises: Solution of three-axis non-orthogonal errors; Sensitivity inconsistency error solution; Zero bias error solution; Error model establishment; The three-axis non-orthogonal error solution includes: Assuming that X, Y and Z are standard orthogonal coordinate systems, the projections of the actual magnetic field signal on the orthogonal coordinate system are B X ,B Y and B Z ; Assume that X0, Y0 and Z0 are the three axes of the three-component magnetic sensor, and its output magnetic field signals are B X0 ,B Y0 and B Z0 ; The Z axis of the standard orthogonal coordinate system coincides with the Z0 axis of the three-component magnetic sensor; The coordinate plane YOZ of the standard orthogonal coordinate system is coplanar with the Y0OZ0 axis of the three-component magnetic sensor; and it is assumed that the angle between the OY0 axis of the three-component magnetic sensor and the OY axis of the standard orthogonal coordinate system is β; The X axis of the three-component magnetic sensor O The angle between the axis and the X-axis of the standard orthogonal coordinate system is λ, the angle between the axis and the Z-axis of the standard orthogonal coordinate system is π / 2+α, and the angle between the axis and the Y-axis of the standard orthogonal coordinate system is π / 2+γ; According to Taylor expansion, ignoring high-order small quantities, it is assumed that cosγ≈1, cosβ≈1, sinγ≈γ, sinα≈α, sinβ≈β; then the relationship between the output of the three-axis magnetic sensor and the actual magnetic field signal can be approximately simplified as follows: The sensitivity inconsistency error solution includes: Assume that the sensitivity of the three-axis of the three-component magnetic sensor is K X , K Y and K Z , then The zero bias error solution includes: Assume that the zero bias of the three axes of the three-component magnetic sensor is represented by b x , b y and b z The output of the three-axis magnetic sensor can be expressed as: The error model establishment includes: After adding the three error factors of three-axis non-orthogonality, sensitivity inconsistency and zero bias of the three-component fluxgate sensor: So it can be finally expressed as: B0 = ΔKB + b; The calculation of the compensation coefficient based on the Seagull algorithm includes: Establish a compensation model based on the error model: B o =R -1 (B i -Bp) Establish the objective function based on total compensation: Where T is the total geomagnetic volume, N is the number of samples; B0 is the three components of the corrected magnetic field, and B is the three components of the ideal magnetic field; The Seagull algorithm is used to solve the parameters of the target equation derived from the total compensation.