Calibration procedure of a three-axis sensor with selection of a calibration method depending on the spatial distribution of the measurements.

DE602019060697T2Active Publication Date: 2024-10-23COMMISSARIAT A LENERGIE ATOMIQUE ET AUX ENERGIES ALTERNATIVES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE602019060697
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-02-14
Filing Date
2019-02-08
Publication Date
2024-10-23
Estimated Expiration
2039-02-08

AI Technical Summary

Technical Problem

Existing calibration methods for three-axis sensors, such as magnetometers, accelerometers, and gyrometers, face challenges in achieving precise calibration due to poorly distributed measurements, which lead to errors from intrinsic and external sources like scale factor, misalignment, and soft iron interference, requiring significant computing resources for effective correction.

Method used

A computer-implemented method that calculates a spatial distribution indicator to select an appropriate adjustment method among ellipsoid, sphere, or two-stage adjustments, applying a test transformation to measurements and updating the calibration transformation if the adjusted measurements show improved alignment with a unit sphere, thereby optimizing calibration precision.

Benefits of technology

This approach enhances calibration precision by adaptively selecting the most suitable adjustment method based on measurement distribution, reducing computational resources and improving the accuracy of error correction in three-axis sensors.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The field of the invention is that of the calibration of a tri-axis sensor. The invention relates more particularly to an automatic calibration performed continuously while the sensor is in use. PREVIOUS STATE OF THE ART

[0002] A magnetometer can be integrated into an inertial navigation system to measure the Earth's magnetic field, which allows the heading of a device carrying said system to be determined.

[0003] In the absence of local errors and disturbances, the magnetometer measures only the Earth's magnetic field vector. However, when the inertial measurement unit (IMU) is contaminated by certain errors, the measured Earth's magnetic field vector differs from the actual value of the Earth's magnetic field vector, known as the reference value. Errors in magnetometer measurements are not limited to intrinsic sensor errors, such as scale factor, misalignment, and bias, but can also be caused by the external environment, particularly hard iron errors resulting from the presence of magnetized materials, such as those found in electronic components, the power supply circuit, and so on., and soft iron errors which are generated by the distortion of magnetic field lines in the environment outside the sensor, for example due to the presence of cables, metal screws and nuts, etc.

[0004] The magnetometer must therefore be calibrated to correct the raw measurements for the errors mentioned above. This issue also arises for the other sensors in the inertial measurement unit, namely the accelerometer and the gyroscope.

[0005] Most calibration algorithms rely on a method of fitting raw measurements to a parametric surface, typically an ellipsoid. The difference between this ellipsoid and a sphere with a radius equal to the magnitude of the Earth's magnetic field (in the case of a magnetometer) is representative of the errors affecting the magnetometer. The transformation from ellipsoid to sphere is then applied to the raw measurements to correct for these errors.

[0006] For these calibration algorithms to be effective and capable of providing sufficiently precise calibration parameters, it is necessary to acquire well-distributed measurements, namely points covering the entire ellipsoid. However, in practice, during magnetometer operation, the measurements that can be collected are generally poorly distributed and do not cover certain parts of the ellipsoid.

[0007] This observation is notably made in the article by A. Olivares et al., "Automatic Determination of Validity of Input Data Used in Ellipsoid Fitting MARG Calibration Algorithms," Sensors, vol. 13, no. 9, pp. 11797-11817, Sep. 2013. The authors of this article demonstrate that the error of ellipsoid fitting algorithms can be determined by analyzing the spatial distribution of the raw magnetometer measurements. They then propose implementing these calibration algorithms only when the expected error is below a certain threshold. This article indicates that the best indicator of the validity of the raw measurement distribution is the convex hull. However, this indicator has the drawback of requiring significant computing resources.

[0008] WO 03 / 074969 A2 describes the calibration of a tri-axis magnetometer by means of a fit on a parametric surface. This fit is performed iteratively to obtain the best fit in the sense of an indicator of the quality of the fit, for example in the least squares sense.

[0009] WO 2007 / 026238 A1 D2 presents the general principles of calibration by adjusting measurements on a parametric surface and determining the transformation allowing passage from the parametric surface to the unit sphere. STATEMENT OF THE INVENTION The invention relates to a method according to claim 1, a computer program according to claim 9 and a device according to claim 10.

[0010] The invention aims to improve existing calibration techniques and, to this end, proposes a computer-implemented method for calibrating a tri-axis sensor. This method comprises steps for calculating a spatial distribution indicator for a set of measurements delivered by the tri-axis sensor and for determining, using a fitting method, the parameters of a parametric surface that allows the surface to be fitted to the set of measurements. The fitting method is selected from several predetermined fitting methods based on the spatial distribution indicator.

[0011] Some preferred, but not exhaustive, aspects of this process are as follows: The predetermined fitting methods include or consist of an ellipsoid fitting method, a sphere fitting method, and a two-step fitting method consisting of a first fit to a sphere followed by a second fit to an ellipsoid whose center coincides with the center of the sphere of the first fit; when the spatial distribution indicator is less than a first threshold, the selected fitting method is the ellipsoid fitting method; when the spatial distribution indicator is greater than the first threshold and less than a second threshold, the selected fitting method is the two-step fitting method; and when the spatial distribution indicator is greater than the second threshold, the selected fitting method is the sphere fitting method;It includes a preliminary step of selecting the measurements of said set from among the measurements delivered by the tri-axis sensor, said preliminary step including an estimation of a change in orientation of the tri-axis sensor between the measurements delivered and the selection of measurements associated with orientations of the sensor judged, by means of a comparison to a threshold, to be sufficiently different; the tri-axis sensor is a magnetometer and the estimation of a change in orientation of the sensor between the measurements includes the determination of the difference between the amplitude of a component of a measurement and the amplitudes of components of measurements previously selected; the tri-axis sensor is a magnetometer and the estimation of a change in orientation of the magnetometer between the measurements uses measurements delivered by a gyroscope, or measurements delivered by the magnetometer and measurements delivered by an accelerometer;It includes determining a test transformation to transform the fitted parametric surface of said set of measurements into a unit sphere, applying the test transformation to the measurements of said set to provide transformed measurements, and determining a degree of fit of the transformed measurements to the unit sphere; it further includes applying a current calibration transformation to the measurements of said set to provide calibrated measurements, determining a degree of fit of the calibrated measurements to the unit sphere, and selecting the test transformation as the new current calibration transformation if the degree of fit of the transformed measurements to the unit sphere is greater than the degree of fit of the calibrated measurements to the unit sphere. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Other aspects, objectives, advantages, and features of the invention will become clearer upon reading the following detailed description of preferred embodiments thereof, given by way of non-limiting example, and made with reference to the accompanying drawings in which: THE Figures 1a and 1b represent examples of the spatial distribution of measurements delivered by a magnetometer; the figure 2 is a flowchart representing the different stages of the process according to the invention; the figures 3a and 3b represent respectively a parametric surface fitted to a set of magnetometer measurements using a one-step ellipsoid fitting method and the measurements calibrated by applying the transformation that allows this surface to be converted to the unit sphere; figures 4a and 4brepresent respectively a parametric surface fitted to a set of magnetometer measurements using a two-step fitting method and the measurements calibrated by applying the transformation allowing passage from this surface to the unit sphere, the set of measurements being identical to that of the figures 3a and 3b . DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS

[0013] The invention relates to a computer-implemented method for calibrating a tri-axis sensor, and more particularly to an automatic calibration performed while the tri-axis sensor is in use. The sensor is typically integrated into an inertial navigation system. The following will use the non-limiting example of a magnetometer, the invention extending to other types of sensors, notably an accelerometer and / or a gyroscope.

[0014] The measurement X of the three components of the Earth's magnetic field Br, performed by a magnetometer, is affected by errors that can be modeled in the following matrix form: X = Wr + b, where b represents a bias primarily introduced by hard iron interference, and W is a 3x3 matrix that can be decomposed as W = Wgain·Wmis·Wsoft, with Wgain a diagonal matrix modeling scaling factor errors, Wmis a matrix modeling errors due to misalignment (non-orthogonality) of the measurement axes, and Wsoft a matrix modeling errors introduced by soft iron interference. Thus, we have W gain = g x 0 0 0 g y 0 0 0 g z And W mis = 1 − ϵ z ϵ y ϵ z 1 − ϵ x − ϵ z ϵ x 1 . The calibration of the magnetometer aims to identify W and b in order to then calculate calibrated measurements free of errors: X c =W -1< (Xb).

[0015] In the absence of disturbances, the magnetometer measures a constant 3D field. By changing the magnetometer's orientation within this constant field, the measurements should be carried by a sphere. However, biases, scaling factors, and misalignment transform this sphere into a quadratic surface, typically an ellipsoid. A calibration technique then consists of determining the parameters of a parametric surface that allow this surface to be fitted to the measurements, and then determining the inverse transformation that will transform this surface back into the unit sphere. This inverse transformation is then applied to the measurements, so as to provide calibrated measurements free of the aforementioned errors.

[0016] As previously mentioned, for this calibration technique to provide sufficiently accurate calibration parameters (D=W - 1< and b), the measurements must be spatially well distributed, meaning they cover the entire ellipsoid. The invention proposes calculating an indicator of the good or poor spatial distribution of the measurements and using this indicator as a criterion for selecting a method of fitting a parametric surface to the measurements from among several predetermined fitting methods.

[0017] As recalled in the aforementioned article by A. Olivares et al., an equation of the form X=WB r +b also applies to the other sensors of the inertial navigation system, replacing Br with the Earth's gravitational field in the case of the accelerometer (its norm is generally 1 if the unit of measurement of the acceleration is g) and replacing Br with a constant angular velocity in the case of the gyroscope.

[0018] We have represented on the Figures 1a and 1b Examples of the spatial distribution of measurements delivered by the magnetometer. On the figure 1a The measurements are almost coplanar and therefore particularly poorly distributed. Conversely, on the Figure 1b The measurements correctly cover the surface of an ellipsoid and therefore appear well distributed. According to the invention, the fitting method used to determine the parameters of the parametric surface to be fitted to the measurements will be different for the measurements of the Figures 1a and 1b .

[0019] With reference to the figure 2 The method according to the invention particularly comprises a DIS calculation step of a spatial distribution indicator for a set of measurements delivered by the magnetometer. The method further comprises an AJS determination step, using a fitting method, of parameters for a parametric surface that allows the parametric surface to be fitted to the set of measurements delivered by the magnetometer. The fitting method is selected from several predetermined fitting methods based on the spatial distribution indicator calculated during the DIS calculation step.

[0020] The predetermined fitting methods may include, in particular, a fitting method to an ellipsoid, a fitting method to a sphere, and a two-step fitting method consisting of a first fitting to a sphere followed by a second fitting to an ellipsoid whose center coincides with the center of the sphere from the first fitting. In one embodiment, the predetermined fitting methods may consist of all three of the aforementioned methods. The fitting methods to an ellipsoid and a sphere are described as one-step in that they directly aim for a fitting to the relevant parametric surface, as opposed to a two-step fitting method, which comprises a first fitting followed by a second fitting that exploits the results of the first fitting.

[0021] The method of fitting to an ellipsoid may include fitting to a rotated ellipsoid requiring the determination of 9 parameters or fitting to a non-rotated ellipsoid requiring the determination of 6 parameters.

[0022] An example of a two-step fitting method is described in particular in the article by M. Gietzelt et al., "Performance comparison of accelerometer calibration algorithms based on 3D-ellipsoid fitting methods" Comput. Methods Programs Biomed., vol. 111, no. 1, pp. 62-71, Jul. 2013.

[0023] The sphere fitting method requires the determination of four parameters. It is used to calculate biases related to hard iron interference and to approximate scaling factors. It provides a calibration considered to be a degraded mode.

[0024] For example, the spatial distribution indicator is lower the more well-distributed the measurements are. Therefore, in one possible implementation, when the spatial distribution indicator is below a first threshold, the selected fitting method is the one-step ellipsoid fitting method; when the spatial distribution indicator is above the first threshold and below a second threshold, the selected fitting method is the two-step fitting method; and when the spatial distribution indicator is above the second threshold, the selected fitting method is the one-step sphere fitting method. Of course, other thresholds can be used, such as a threshold to differentiate between a rotated ellipsoid fitting and a non-rotated ellipsoid fitting.

[0025] In one embodiment of the invention, the invention adopts a principal component analysis approach to evaluate the dispersion of the measurements. More specifically, the DIS calculation of the spatial distribution indicator includes determining the correlation matrix of the measurements in the measurement set and determining the number of conditions for the correlation matrix.

[0026] We consider a set of N measurements of the three components of the magnetic field and Xm the 3*N matrix of centered measurements. The center c of the measurements is calculated using the "min-max-average" method. For example, for the x-axis, cx = ( m x,min + m x,max ) / 2, where m x,min and mx,max represent respectively the minimum and maximum of the set of measurements on the x-axis. Alternatively, the center of the measurements can be calculated using the mean or median of the measurements, but in practice, the set of measurements is often poorly distributed, and the center may be too far from the mean (or median).

[0027] The correlation matrix S is expressed as follows S = 1 N − 1 X m X m T The eigenvalues ​​λi (i∈{1,2,3}) of the matrix S represent the variances of the measures along each eigenvector. The eigenvalues ​​λi therefore contain useful information about the dispersion of the measures. More specifically, the conditioning number of the matrix S, that is, the ratio of the largest eigenvalue to the smallest eigenvalue, is closer to 1 the more well-distributed the measures are and larger the more poorly distributed the measures are. This conditioning number is written r = max i λ i min i λ i and is used to select the fitting method to use. For example, when r is less than a first threshold r 1. The selected fitting method is the one-step ellipsoid fitting method, when r is greater than the first threshold. r 1 and below a second threshold r 2, the selected fitting method is the two-step fitting method, and when r is greater than the second threshold r 2, the selected fitting method is the one-sphere (one-step) fitting method.

[0028] The method according to the invention may include a preliminary step, SLT, of selecting measurements from among those delivered by the magnetometer. This preliminary step includes estimating the change in magnetometer orientation between measurements and selecting measurements associated with magnetometer orientations deemed, for example, by means of a threshold comparison, to be sufficiently different. By ensuring that the selected measurements are taken for different magnetometer orientations, the possibility of these measurements covering an ellipsoid is increased.

[0029] Estimating a change in magnetometer orientation can utilize the measurements delivered by the magnetometer. This estimation can include evaluating a measurement by determining, for each component of the evaluated measurement, the deviation | ξ - ξ n | between the amplitude ξof the component of the measurement being evaluated and the amplitude ξ n of a component of a previously selected measure within said set. If, for all previously selected measures within said set, this deviation exceeds a predetermined threshold τ If the mag value is, for example, equal to 10 µT, the evaluated measurement is selected. In practice, it suffices to compare ξ with the amplitude of the component of the last selected measure (here designated by the index n ).

[0030] Estimating a change in magnetometer orientation can utilize measurements from a gyroscope, for example, when the magnetometer is integrated into an inertial measurement unit (IMU). A magnetometric measurement combined with a measurement of the angular velocity vector from the gyroscope, one component of which... ω ∈ {ω x , ω y , ω z} is greater than a threshold τgyr, for example of 30° / s, is then selected.

[0031] Alternatively, the measurements delivered by the gyroscope are used to estimate the difference in the gyroscope's orientation between the current time and a previous time corresponding to the last measurement selection. According to this variant, the relative attitude of the gyroscope is estimated by means of a time integration of the measurements delivered by the gyroscope, assuming that the gyroscope's biases are compensated or simply neglected. The quaternion derivation formula, q ˙ t = 1 2 q t ⊗ ω ‾ t , , can be discretized using Euler's method to calculate the current orientation q ( t ) from ω ( η ) For η ∈ [ tn , t ], with tn The instant corresponding to the last selection of a measure. An error qe is calculated, representing a difference in orientation between the current quaternion q ( t ) and the quaternion associated with the last selected measure q ( tn ), according to q e = q t ⊗ q 0 * . The angle of q e in the axis-angle representation of the quaternion q e is given by α = cos -1< q e,0 , where q e,0 is the real part of the error q e. The current magnetometric measurement is selected if α > τ gyrInt, with τ gyrInt a threshold for example of 30°.

[0032] Estimating a change in magnetometer orientation can also leverage measurements from both the magnetometer and an accelerometer, for example, when the magnetometer is integrated into an inertial measurement unit (IMU). The TRIAD method can thus be used to search for magnetometric measurements taken at sufficiently different angles. As with the previous approach, an angle is calculated. α as a difference between the current orientation q ( t ) and the corresponding orientation associated with the last selected measurement, α = cos -1< q e,0, and the current magnetometric measurement is selected if α > τ acc, with τacc a threshold, for example, of 30°. This approach does not require storing gyrometric measurements to perform time integration, since absolute orientations are calculated from the measurements provided by the magnetometer and accelerometer. However, this approach relies on the assumption of no linear acceleration.

[0033] One or more constraints can be used during this preliminary step of selecting magnetometric measurements to constitute the reference set for fitting a parametric surface. One constraint might be a minimum time interval between two successively selected measurements, for example, 0.1 seconds. Another constraint might be a maximum time interval between two successively selected measurements, for example, 1 second. If this time is exceeded, the preliminary step is reset. Yet another constraint concerns the number of measurements to be selected, with, for example, a minimum and a maximum number of measurements, for example, between 100 and 200 measurements to be selected during the preliminary step.

[0034] Following the AJS determination step, according to the selected fitting method, of the parametric surface parameters, the process according to the invention may include a CHK step for verifying the quality of the fit.

[0035] This CHK verification step may include studying the analytical properties of the matrices involved in the fit. This study can thus verify whether the matrix representing the measures is a full-rank matrix in the least-squares sense. Indeed, strictly coplanar measures do not form a full-rank matrix. This study can also examine the matrix representing the surface parameterized using the parameters determined in the AJS step. The methods for fitting to an ellipsoid effectively aim to identify a positive-definite symmetric matrix. A appearing in the equation ( X - b ) T< A ( X - b ) =c If the identified matrix is ​​not positive definite, the goodness of fit is considered insufficient.

[0036] The CHK verification step for verifying the quality of fit may also include determining a test transformation to transform the parameterized surface fitted to said set of measurements (i.e., the surface parameterized using the parameters determined in the AJS step) into a sphere, applying the test transformation to the measurements of said set to provide transformed measurements, and determining a degree of fit of the transformed measurements to the sphere.

[0037] The test transformation aims, for example, to transform the parameterized surface into a unit sphere, and determining the degree of fit of the transformed data to the sphere involves calculating a root mean square error of the distances between the unit sphere and the transformed measurements. The norm of the i-th transformed measurement X i,c (its algebraic distance to the unit sphere) is expressed as ∥ X i,c ∥ 2 = ∥ D ( X i - b )∥ 2 . The sum of the quadratic errors for the N measures of the set considered is written χ 2< = Σ i (∥ D ( X i - b )∥ 2 - 1) 2< , and the mean squared error is expressed according ρ = χ 2 / N . This error is subject to a threshold (for example, 5%, which corresponds to an error of approximately 2 µ T for the Earth's magnetic field with an amplitude of 47 µ T), to decide whether the quality of the fit is sufficient or not.

[0038] In one possible embodiment, a potential improvement in calibration is evaluated. To do this, the method includes applying a current calibration transformation (i.e., the transformation currently applied to the raw measurements) to the measurements of the set to provide calibrated measurements, determining a degree of fit of the calibrated measurements to the unit sphere, and selecting the test transformation to the unit sphere as the new current calibration transformation if the degree of fit of the transformed measurements to the unit sphere is greater than the degree of fit of the calibrated measurements to the unit sphere. The current transformation is applied to all measurements delivered by the magnetometer until it is replaced by a new transformation associated with a parametric surface deemed to better fit the measurements.

[0039] The test transformation can alternatively transform the parameterized surface into a sphere of radius B0, with B0 being the magnitude of the geomagnetic field, and determining a degree of fit of the transformed measurements to the sphere may involve calculating a difference in magnitude between the transformed measurements. X c and the sphere of radius B 0 : | ∥ X c ∥ 2 - B 0 | A characteristic of this difference in standard is evaluated, for example its maximum or one of its percentiles (for example, at 95%), and compared to a chosen threshold above the noise level, for example, 5 µT, to determine whether the quality of the adjustment is sufficient. Furthermore, this characteristic can be used to authorize the implementation of the automatic calibration according to the invention if a difference in standard is observed that is too large, for example, greater than 2 µT.

[0040] We have represented on the figures 3a And 4aa parametric surface fitted to a set of magnetometer measurements respectively according to a one-step fitting method to an ellipsoid and according to a two-step fitting method, the spatial distribution indicator r of the measurements being here equal to 9.98. We have represented on the figure 3b , respectively on the Figure 4b , the measurements calibrated by applying the transformation allowing passage from the surface of the figure 3a , respectively of the figure 4a , to the unit sphere. We observe that the two-step fitting method is more appropriate here than the one-step fitting method to an ellipsoid.

[0041] The invention is not limited to the method as previously described, but also extends to a computer program product comprising instructions for executing this method when said program is run on a computer. The invention further extends to a device, for example an inertial navigation system, comprising a data processing unit configured to implement this method.

Claims

1. A computer-implemented method for calibrating a triaxial sensor, comprising the steps of: - calculating (DIS) a spatial distribution indicator of a set of measurements output by the triaxial sensor, and - determining (AJS), using a fitting method, parameters of a parametric surface that can be used to fit said surface to said set of output measurements, characterized in that it includes a step of selecting the fitting method from among several predetermined fitting methods as a function of said spatial distribution indicator, characterized in that calculating the spatial distribution indicator comprises sub-steps of: - determining a correlation matrix of measurements of said set, - determining the condition number of the correlation matrix, corresponding to the ratio of the eigenvalue of the largest correlation matrix to the eigenvalue of the smallest correlation matrix, said condition number forming the spatial distribution indicator.

2. Method according to claim 1, wherein the predetermined fitting methods include an ellipsoid fitting method, a sphere fitting method and two-step fitting method consisting of a first fitting to a sphere followed by a second fitting to an ellipsoid the centre of which is coincident with the centre of the sphere of the first fitting.

3. Method according to claim 2, wherein when the spatial distribution indicator is less than a first threshold, the selected fitting method is the ellipsoid fitting method, when the spatial ellipsoid distribution indicator is more than the first threshold and less than a second threshold, the selected fitting method is the two-step fitting method, and when the spatial distribution indicator is more than the second threshold, the selected fitting method is the sphere fitting method.

4. Method according to any of the claims 1 to 3, further including a preliminary step (SLT) of selecting the measurements of said set among the measurements output by the triaxial sensor, said preliminary step comprising estimating a change in the orientation of the triaxial sensor between the output measurements and selecting measurements associated with sensor orientations deemed to be sufficiently different by comparison with a threshold.

5. Method according to claim 4, wherein the triaxial sensor is a magnetometer and estimating a change in the sensor orientation between the output measurements includes determining a difference between the amplitude of an output measurement component and the amplitude of a component of at least one of previously selected measurements.

6. Method according to claim 4, wherein the triaxial sensor is a magnetometer and estimating a change in the orientation of the magnetometer between the output measurements makes use of measurements output by a gyrometer, or uses both measurements output by the magnetometer and measurements output by an accelerometer.

7. Method according to any of the claims 1 to 6, further including determining of a test transformation that transforms the parametric surface fitted to said set of output measurements into a unit sphere, applying the test transformation to the measurements of said set to obtain transformed measurements and determining a degree of fit of the transformed measurements to the unit sphere.

8. Method according to claim 7, further including applying a current calibration transformation to the measurements of said set to obtain calibrated measurements, determining a degree of fit of the calibrated measurements to the unit sphere and selecting the test transformation as a new current calibration transformation if the degree of fit of the transformed measurements to the unit sphere is more than the degree of fit of the calibrated measurements to the unit sphere.

9. A computer program including instructions for execution of the method according to any of the claims 1 to 8 when said program is executed on a computer.

10. A device comprising a data processing unit configured to use the method according to any of the claims 1 to 8.