In-Context Learning for Zero-Shot Speed Estimation of BLDC motors
Alessandro Colombo, Riccardo Busetto, Valentina Breschi, Marco Forgione, Dario Piga, Simone Formentin
TL;DR
The paper tackles sensorless speed estimation for BLDC motors, where model-based estimators struggle with nonlinearities and parameter uncertainty. It introduces an in-context learning framework using a transformer-based contextual filter trained offline on simulated BLDC trajectories to perform zero-shot speed estimation from electrical measurements. To bridge the sim-to-real gap and mitigate aliasing, the method conditions on measurement history and includes the previous speed estimate as input. Experimental validation on a real motor shows the transformer estimator outperforming a set of EKFs, particularly during startup and at low speeds, demonstrating practical viability and rapid deployment without per-motor retraining.
Abstract
Accurate speed estimation in sensorless brushless DC motors is essential for high-performance control and monitoring, yet conventional model-based approaches struggle with system nonlinearities and parameter uncertainties. In this work, we propose an in-context learning framework leveraging transformer-based models to perform zero-shot speed estimation using only electrical measurements. By training the filter offline on simulated motor trajectories, we enable real-time inference on unseen real motors without retraining, eliminating the need for explicit system identification while retaining adaptability to varying operating conditions. Experimental results demonstrate that our method outperforms traditional Kalman filter-based estimators, especially in low-speed regimes that are crucial during motor startup.
