Structured Learning for Electromagnetic Field Modeling and Real-Time Inversion
Antonio Bernardes, Jasan Zughaibi, Michael Muehlebach, Bradley J. Nelson
TL;DR
The paper tackles real-time, accurate magnetic field modeling for electromagnetic navigation systems (eMNS) by preserving an affine, current-linear forward map while enabling fast minimum-norm inversion. It introduces two neural architectures, ActuationNet and PotentialNet, that predict the field actuation matrix and curl-free potentials respectively, and compares them against the physics-based MPEM and unstructured baselines. Key findings show data-driven, structure-preserving models achieve predictive fidelity on par with MPEM, maintain strong data efficiency down to roughly 20% of training data, and deliver sub-millisecond evaluation times, with Maxwell-consistency and gradient information preserved. A geometric error floor (~0.5 mT) dominates residuals, rather than model capacity, and appropriate near-field sampling mitigates workspace ill-conditioning with higher-order expansions helping further; the authors also release code and dense datasets to support further research and deployment in both medical and broader electromagnetic contexts.
Abstract
Precise magnetic field modeling is fundamental to the closed-loop control of electromagnetic navigation systems (eMNS) and the analytical Multipole Expansion Model (MPEM) is the current standard. However, the MPEM relies on strict physical assumptions regarding source symmetry and isolation, and requires optimization-based calibration that is highly sensitive to initialization. These constraints limit its applicability to systems with complex or irregular coil geometries. This work introduces an alternative modeling paradigm based on multi-layer perceptrons that learns nonlinear magnetic mappings while strictly preserving the linear dependence on currents. As a result, the field models enable fast, closed-form minimum-norm inversion with evaluation times of approximately 1 ms, which is critical for high-bandwidth magnetic control. For model training and evaluation we use large-scale, high-density datasets collected from the research-grade OctoMag and clinical-grade Navion systems. Our results demonstrate that data-driven models achieve predictive fidelity equivalent to the MPEM while maintaining comparable data efficiency. Furthermore, we demonstrate that straightforward design choices effectively eliminate spurious workspace ill-conditioning frequently reported in MPEM-based calibration. To facilitate future research, we release the complete codebase and datasets open source.
