Magnetic encoder error compensation based on a neural network-Kalman filtering hybrid framework.
Song Jin, Yuliang Wang
Department of Electronic and Communication Engineering, North China Electric Power University, Baoding 071003, Hebei, China.
Key points
From the paper's conclusion- To address this, this paper proposes a hybrid error compensation framework that integrates a neural network with an extended Kalman filter (NN-EKF).
Abstract
In industrial settings, magnetic encoders suffer from structural errors and random noise, making conventional angle demodulation methods that assume ideal sine-cosine signals hard to be both accurate and robust under complex conditions. Moreover, standard filters often fail in these scenarios because their static observation models and fixed noise parameters cannot adapt to structural distortions. To address this, this paper proposes a hybrid error compensation framework that integrates a neural network with an extended Kalman filter (NN-EKF). The neural network reconstructs signals that satisfy the quadrature relationship from noisy sine-cosine sequences sampled by the ADC and predicts the uncertainty parameters required by Kalman filtering. This provides the EKF with observation inputs and noise priors that are more consistent with its physical assumptions. Meanwhile, within an uncertainty-weighted multi-task learning framework, signal reconstruction and phase estimation are optimized jointly. Simulation results under mixed error conditions show that NN-EKF reduces the mean absolute error (MAE) by about 98% compared with arctangent demodulation and achieves lower MAE, RMSE, and maximum error than EKF, phase-locked loop, Kalman-Gradient Descent, and KalmanNet. On a hardware test platform, the proposed method achieves a maximum angle error of 0.0349°. Without target-sensor fine-tuning, NN-EKF reduces the RMSE by 84.2% and 83.1% on unseen tunneling magnetoresistance and Hall sensors. Furthermore, a lightweight lookup-table scheme constructed based on the NN-EKF output satisfies the real-time deployment requirements of embedded systems with only an additional error of ∼0.0022°, validating the engineering feasibility and practical potential of the proposed hybrid framework.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Hybrid Physics-Guided Neural Network for Vibration Sensor Nonlinearity Correction.Sensors (Basel, Switzerland) · 2026
- Error State Kalman Filter for Integrated Attitude Estimation Based on Data Fusion of MIMU Inertial Array and Magnetometer.Micromachines · 2026
- Error Compensation Techniques for Automotive Magnetometers: A Technical analysisITM Web of Conferences · 2026
- AI-driven modeling of modulated magnetoelectric magnetic field sensorsAPL Machine Learning · 2026
- Instantaneous angular speed signal estimation using adaptive local frequency demodulationJournal of Physics: Conference Series · 2026
- Parameter Identification for Magneto‐Mechanical Resonators by a Convolutional Neural NetworkProceedings in Applied Mathematics and Mechanics · 2026