Joint Magnetometer-IMU Calibration via Maximum A Posteriori Estimation
Pith reviewed 2026-05-22 13:37 UTC · model grok-4.3
The pith
A maximum a posteriori method jointly calibrates magnetometer and IMU pairs with 20-30% lower root mean square error than prior approaches while remaining computationally competitive.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Treating calibration parameters and orientation trajectory as unknowns in a single maximum a posteriori estimation problem, with analytically derived derivatives for efficient optimization, produces calibration parameters whose root mean square error is 20-30% lower than that of two state-of-the-art methods while preserving competitive run times; the same calibration also enables inertial navigation whose positioning accuracy is comparable to that obtained with the most accurate reference method.
What carries the argument
Maximum a posteriori estimation framework that jointly optimizes calibration parameters and the full orientation trajectory using analytically derived derivatives.
If this is right
- Calibrated magnetometer-IMU pairs can be produced rapidly enough for routine field recalibration on consumer laptops.
- Magnetic-field-aided inertial navigation systems achieve positioning performance comparable to that obtained with slower reference calibrations.
- The analytic derivatives reduce the computational burden of the joint optimization relative to purely numerical approaches.
- Thirty sensor pairs can be processed in under two minutes, enabling batch calibration workflows that were previously impractical.
Where Pith is reading between the lines
- The same joint MAP structure could be extended to other sensor triads that share a common rigid frame and require orientation estimation.
- Because the derivatives are analytic, the method may integrate directly into real-time estimators that must occasionally re-calibrate without restarting from scratch.
- Faster calibration cycles could allow periodic in-situ recalibration during long-duration robot missions, mitigating drift from temperature or aging effects.
Load-bearing premise
The reported accuracy and speed advantages hold only if the two comparison methods were implemented and tuned to the same standard and if the chosen simulation and real-world conditions represent typical magnetometer-IMU operating environments.
What would settle it
An independent replication that applies all three algorithms to the same new set of magnetometer-IMU recordings with different motion patterns and reports whether the proposed method still exhibits the lowest root mean square calibration error.
Figures
read the original abstract
This paper presents a new method for jointly calibrating a magnetometer and inertial measurement unit (IMU), focusing on balancing calibration accuracy and computational efficiency. The proposed method is based on a maximum a posteriori estimation framework, treating both the calibration parameters and orientation trajectory of the sensors as unknowns. This method enables efficient optimization of the calibration parameters using analytically derived derivatives. The performance of the proposed method is compared against that of two state-of-the-art methods. Simulation results demonstrate that the proposed method achieves the lowest root mean square error in calibration parameters, increasing the calibration accuracy by 20-30%, while maintaining competitive computational efficiency. Further validation through real-world experiments confirms the practical benefits of the proposed method. The proposed method calibrated 30 magnetometer-IMU pairs in under two minutes on a consumer-grade laptop, which is one order of magnitude faster than the most accurate state-of-the-art algorithm as implemented in this work. Moreover, when calibrated using the proposed method, a magnetic-field-aided inertial navigation system achieved positioning performance comparable to when it is calibrated with the state-of-the-art method. These results demonstrate that the proposed method is a reliable and effective choice for jointly calibrating magnetometer-IMU pairs.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes a maximum a posteriori (MAP) estimation framework for joint magnetometer-IMU calibration in which both the calibration parameters and the sensor orientation trajectory are treated as unknowns. Analytically derived derivatives are used to enable efficient optimization of the calibration parameters. The method is compared to two state-of-the-art algorithms; simulation results claim the lowest RMSE in calibration parameters with a 20-30% accuracy gain while remaining computationally competitive. Real-world experiments report that 30 magnetometer-IMU pairs can be calibrated in under two minutes on a consumer laptop (one order of magnitude faster than the most accurate baseline as implemented) and that the resulting calibration yields comparable positioning performance in a magnetic-field-aided inertial navigation system.
Significance. If the reported accuracy and speed advantages prove robust under fair and reproducible experimental conditions, the work would offer a practical advance for batch calibration tasks common in robotics and navigation. The combination of joint MAP estimation with closed-form derivatives addresses a useful efficiency-accuracy trade-off that existing methods appear to handle less favorably.
major comments (2)
- [Simulation results] Simulation results section: the central claim of a 20-30% RMSE reduction is load-bearing for the paper's contribution, yet the manuscript provides no quantitative information on hyper-parameter tuning effort, initial conditions, or convergence criteria applied to the two baseline algorithms. Without this, it is impossible to determine whether the observed margin arises from the MAP formulation or from unequal implementation quality.
- [Real-world experiments] Real-world experiments: the statement that the proposed method is 'one order of magnitude faster' than the most accurate SOTA algorithm as implemented requires explicit reporting of the optimization library, stopping tolerances, and hardware used for all three methods. The current description leaves open the possibility that the speed advantage is an artifact of differing implementation choices rather than an intrinsic property of the estimator.
minor comments (2)
- [Abstract] The abstract and results text interchangeably use 'increasing the calibration accuracy by 20-30%' and 'lowest root mean square error'; a single consistent metric (e.g., percentage reduction in RMSE) would improve clarity.
- [Figures] Figure captions for the real-world navigation trajectories should include the number of trials and the precise definition of the positioning error metric to allow direct comparison with the simulation results.
Simulated Author's Rebuttal
Thank you for the constructive feedback on our manuscript. We address each major comment point by point below and will revise the paper to enhance reproducibility and transparency while preserving the core contributions.
read point-by-point responses
-
Referee: [Simulation results] Simulation results section: the central claim of a 20-30% RMSE reduction is load-bearing for the paper's contribution, yet the manuscript provides no quantitative information on hyper-parameter tuning effort, initial conditions, or convergence criteria applied to the two baseline algorithms. Without this, it is impossible to determine whether the observed margin arises from the MAP formulation or from unequal implementation quality.
Authors: We agree that additional quantitative details on the baseline implementations are necessary to substantiate the accuracy claims and rule out implementation artifacts. In our experiments, the baselines were re-implemented according to their original publications, with initial conditions generated from the same attitude initialization procedure used for the proposed method and convergence enforced when the gradient norm fell below 1e-8. Hyperparameters were tuned via a modest grid search over regularization coefficients to minimize RMSE on the simulated data. In the revised manuscript we will insert a new subsection under Simulation Results that tabulates the exact hyper-parameter values, initial guesses, and stopping criteria applied to each baseline, thereby confirming that the reported 20-30% RMSE improvement is attributable to the MAP formulation. revision: yes
-
Referee: [Real-world experiments] Real-world experiments: the statement that the proposed method is 'one order of magnitude faster' than the most accurate SOTA algorithm as implemented requires explicit reporting of the optimization library, stopping tolerances, and hardware used for all three methods. The current description leaves open the possibility that the speed advantage is an artifact of differing implementation choices rather than an intrinsic property of the estimator.
Authors: We acknowledge that explicit reporting of the computational setup is required to support the efficiency claims. All three methods were coded in Python 3.9 and optimized with SciPy's minimize routine (L-BFGS-B solver) on an identical consumer laptop (Intel Core i7-10700K, 32 GB RAM). A uniform stopping tolerance of 1e-10 in function-value change or a maximum of 1000 iterations was applied across methods. The revised real-world experiments section will contain a table listing the optimization library, solver settings, hardware specifications, and measured wall-clock times for each algorithm, demonstrating that the observed speed-up arises from the closed-form derivatives rather than disparate implementation choices. revision: yes
Circularity Check
No circularity: derivation is self-contained MAP optimization benchmarked externally
full rationale
The paper introduces a MAP-based joint calibration estimator with analytically derived derivatives for optimization. It directly compares performance against two independent state-of-the-art algorithms on both simulated trajectories and separate real-world experiments, reporting RMSE improvements and runtime metrics without any load-bearing self-citations, fitted-input renamings, or self-definitional steps. The central claims rest on external benchmarks and independent validation data rather than reducing to the method's own inputs by construction.
Axiom & Free-Parameter Ledger
free parameters (1)
- calibration parameters
axioms (1)
- domain assumption Sensor measurement errors follow the probabilistic distributions assumed in the MAP formulation.
Lean theorems connected to this paper
-
IndisputableMonolith/Cost/FunctionalEquation.leanwashburn_uniqueness_aczel unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
The MAP estimator ... reduces to a nonlinear least squares problem ... computational complexity per iteration is O(3T + dim(θ))
-
IndisputableMonolith/Foundation/AlexanderDuality.leanalexander_duality_circle_linking unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
orientation trajectory ... Gauss-Newton on manifolds ... J_r(v) right Jacobian
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
Forward citations
Cited by 1 Pith paper
-
SL(C)AMma: Simultaneous Localisation, (Calibration) and Mapping With a Magnetometer Array
Magnetometer-array SLAM with optional joint calibration delivers accurate indoor trajectories and over 80% drift reduction versus single-sensor or pure integration baselines on datasets where prior magnetic SLAM fails.
Reference graph
Works this paper leans on
-
[1]
Magnetic navigation using attitude-invariant magnetic field information for loop closure detection,
N. Pavlasek, C. C. Cossette, D. Roy-Guay, and J. R. Forbes, “Magnetic navigation using attitude-invariant magnetic field information for loop closure detection,” in Proc. IEEE/RSJ Int. Conf. Intell. Robots Syst. (IROS), Detroit, USA, Oct. 2023, pp. 5251–5257
work page 2023
-
[2]
H. Liu, H. Xue, L. Zhao, D. Chen, Z. Peng, and G. Zhang, “Magloc-ar: Magnetic-based localization for visual-free aug- mented reality in large-scale indoor environments,” IEEE Trans. Vis. Comput. Graphics, vol. 29, no. 11, pp. 4383–4393, 2023
work page 2023
-
[3]
MAINS: A magnetic-field-aided inertial navigation system for indoor positioning,
C. Huang, G. Hendeby, H. Fourati, C. Prieur, and I. Skog, “MAINS: A magnetic-field-aided inertial navigation system for indoor positioning,” IEEE Sens. J., vol. 24, no. 9, pp. 15 156– 15 166, 2024
work page 2024
-
[4]
M. Zmitri, H. Fourati, and C. Prieur, “Improving inertial veloc- ity estimation through magnetic field gradient-based extended Kalman filter,” in Proc. Int. Conf. Indoor Positioning Indoor Navig. (IPIN), Pisa, Italy, Sep. 2019, pp. 1–7
work page 2019
-
[5]
Enhancing visual inertial SLAM with magnetic measurements,
B. Joshi and I. Rekleitis, “Enhancing visual inertial SLAM with magnetic measurements,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), Yokohama, Japan, May 2024, pp. 10 012– 10 019
work page 2024
-
[6]
Inertial Magnetic SLAM Systems Using Low-Cost Sensors
C. Huang, G. Hendeby, and I. Skog, “Inertial magnetic Slam sys- tems using low-cost sensors,” arXiv preprint arXiv:2512.10128, 2025
work page internal anchor Pith review Pith/arXiv arXiv 2025
-
[7]
SC-EKF-MIO: Magnetic-inertial odometry based on stochastic clone Extended Kalman filter,
J. Li, J. Kuang, Y. Wang, and X. Niu, “SC-EKF-MIO: Magnetic-inertial odometry based on stochastic clone Extended Kalman filter,” IEEE Trans. Instrum. Meas., vol. 74, pp. 1–13, 2025
work page 2025
-
[8]
An algorithm for the in-field calibration of a MEMS IMU,
U. Qureshi and F. Golnaraghi, “An algorithm for the in-field calibration of a MEMS IMU,” IEEE Sensors Journal, vol. 17, no. 22, pp. 7479–7486, 2017
work page 2017
-
[9]
Calibrating an ecompass in the presence of hard and soft-iron interference,
T. Ozyagcilar, “Calibrating an ecompass in the presence of hard and soft-iron interference,” Freescale Semiconductor Ltd, pp. 1– 17, 2012
work page 2012
-
[10]
Magnetometer calibration using inertial sensors,
M. Kok and T. B. Schön, “Magnetometer calibration using inertial sensors,” IEEE Sens. J., vol. 16, no. 14, pp. 5679–5689, 2016
work page 2016
-
[11]
An efficient method for gyroscope- aided full magnetometer calibration,
M. Zhu, Y. Wu, and W. Yu, “An efficient method for gyroscope- aided full magnetometer calibration,” IEEE Sens. J., vol. 19, no. 15, pp. 6355–6361, 2019. JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2021 13
work page 2019
-
[12]
Dynamic magnetometer calibration and alignment to inertial sensors by Kalman filter- ing,
Y. Wu, D. Zou, P. Liu, and W. Yu, “Dynamic magnetometer calibration and alignment to inertial sensors by Kalman filter- ing,” IEEE Trans. Control Syst. Technol., vol. 26, no. 2, pp. 716–723, 2018
work page 2018
-
[13]
Mag.i.c.al.–a unified method- ology for magnetic and inertial sensors calibration and align- ment,
K. Papafotis and P. P. Sotiriadis, “Mag.i.c.al.–a unified method- ology for magnetic and inertial sensors calibration and align- ment,” IEEE Sens. J., vol. 19, no. 18, pp. 8241–8251, 2019
work page 2019
-
[14]
Calibration of a magnetometer in combination with inertial sensors,
M. Kok, J. D. Hol, T. B. Schön, F. Gustafsson, and H. Luinge, “Calibration of a magnetometer in combination with inertial sensors,” in Proc. Int. Conf. Inf. Fusion, Singapore, Jul. 2012, pp. 787–793
work page 2012
-
[15]
Iterative calibration method for inertial and magnetic sensors,
E. Dorveaux, D. Vissière, A.-P. Martin, and N. Petit, “Iterative calibration method for inertial and magnetic sensors,” in Proc. IEEE Conf. Decis. Control (CDC), Shanghai, China, Dec. 2009, pp. 8296–8303
work page 2009
-
[16]
Särkkä, Bayesian Filtering and Smoothing, ser
S. Särkkä, Bayesian Filtering and Smoothing, ser. Institute of Mathematical Statistics Textbooks. Cambridge University Press, 2013
work page 2013
-
[17]
On- manifold preintegration for real-time visual–inertial odometry,
C. Forster, L. Carlone, F. Dellaert, and D. Scaramuzza, “On- manifold preintegration for real-time visual–inertial odometry,” IEEE Trans. Robot., vol. 33, no. 1, pp. 1–21, 2016
work page 2016
-
[18]
iSAM: Incremen- tal smoothing and mapping,
M. Kaess, A. Ranganathan, and F. Dellaert, “iSAM: Incremen- tal smoothing and mapping,” IEEE Trans. Robot., vol. 24, no. 6, pp. 1365–1378, 2008
work page 2008
-
[19]
Nonlinear filters: beyond the Kalman filter,
F. Daum, “Nonlinear filters: beyond the Kalman filter,” IEEE Aerosp. Electron. Syst. Mag., vol. 20, no. 8, pp. 57–69, 2005
work page 2005
-
[20]
G. S. Chirikjian, Stochastic models, information theory, and Lie groups, volume 2: Analytic methods and modern applications. Springer Science & Business Media, 2011, vol. 2
work page 2011
-
[21]
A. Martin and H. Anders, Optimization for Learning and Control. John Wiley & Sons, Ltd, 2023
work page 2023
-
[22]
J. A. Farrell, F. O. Silva, F. Rahman, and J. Wendel, “Inertial measurement unit error modeling tutorial: Inertial navigation system state estimation with real-time sensor calibration,” IEEE Control Syst. Mag., vol. 42, no. 6, pp. 40–66, 2022
work page 2022
-
[23]
Zero- velocity detection–an algorithm evaluation,
I. Skog, P. Handel, J.-O. Nilsson, and J. Rantakokko, “Zero- velocity detection–an algorithm evaluation,” IEEE Trans. Biomed. Eng., vol. 57, no. 11, pp. 2657–2666, 2010
work page 2010
-
[24]
NOAA National Centers for Environmental Information, “Geomagnetic calculator,” 2025, accessed: 31-Mar-2025. [Online]. A vailable: https://www.ngdc.noaa.gov/geomag/ calculators/magcalc.shtml#igrfwmm
work page 2025
-
[25]
On misalignment between magnetometer and inertial sensors,
Y. Wu and S. Luo, “On misalignment between magnetometer and inertial sensors,” IEEE Sens. J., vol. 16, no. 16, pp. 6288– 6297, 2016
work page 2016
-
[26]
Ljung, System identification (2nd ed.): theory for the user
L. Ljung, System identification (2nd ed.): theory for the user. USA: Prentice Hall PTR, 1999
work page 1999
-
[27]
Time synchronization errors in loosely coupled gps-aided inertial navigation systems,
I. Skog and P. Handel, “Time synchronization errors in loosely coupled gps-aided inertial navigation systems,” IEEE Trans. Intell. Transp. Syst., vol. 12, no. 4, pp. 1014–1023, 2011
work page 2011
-
[28]
C. M. Bishop and N. M. Nasrabadi, Pattern recognition and machine learning. Springer, 2006, vol. 4, no. 4
work page 2006
-
[29]
Fitting models to data: Residual analysis, a primer,
J. Martin, D. D. R. De Adana, and A. G. Asuero, “Fitting models to data: Residual analysis, a primer,” Uncertainty quantification and model calibration, vol. 133, 2017
work page 2017
-
[30]
Manopt, a Matlab toolbox for optimization on manifolds,
N. Boumal, B. Mishra, P.-A. Absil, and R. Sepulchre, “Manopt, a Matlab toolbox for optimization on manifolds,” J. Mach. Learn. Res., vol. 15, no. 42, pp. 1455–1459, 2014. [Online]. A vailable:https://www.manopt.org
work page 2014
-
[31]
A micro lie theory for state estimation in robotics,
J. Sola, J. Deray, and D. Atchuthan, “A micro lie theory for state estimation in robotics,” arXiv preprint arXiv:1812.01537, 2018. Chuan Huang (Student member, IEEE) re- ceived the B.Sc. from Beihang University in 2018 and the M.Sc. degree from China Electronics Technology Group Corporation Academy of Electronics and Information Tech- nology in 2021. From...
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.