A BLE-Based IMU System with Three-Stage Calibration and Madgwick Sensor Fusion for Real-Time Orientation Tracking

Authors

DOI:

https://doi.org/10.3991/ijoe.v22i11.62219

Keywords:

Bluetooth Low Energy, inertial measurement unit, Madgwick filter, ellipsoid fitting, sensor fusion, orientation, rehabilitation.

Abstract


This paper presents a prototype wireless IMU-based motion tracking system for real-time orientation estimation. Each wearable node integrates an MPU9250 IMU with a Nordic nRF52832 microcontroller, enabling concurrent multi-node communication via Bluetooth Low Energy (BLE). To improve measurement accuracy, a three-stage calibration framework consisting of accelerometer and gyroscope zero-offset calibration and magnetometer ellipsoid fitting is applied to compensate for sensor bias, drift, and magnetic interference. The Madgwick algorithm estimates yaw, pitch, and roll from the calibrated data, which are transmitted via the Nordic UART Service (NUS) and visualized in real time using a Python application based on Bleak and OpenGL. Experimental validation with 30 healthy volunteers demonstrated reliable multi-node communication with an end-to-end latency below 50 ms and accurate orientation measurement. Comparison with a clinical goniometer yielded a Pearson correlation coefficient of r = 0.9999 (p < 0.001) and Bland–Altman 95% limits of agreement (LoA) of ±3.99°. Although evaluated only under static uniaxial conditions in healthy participants, the proposed system demonstrated strong agreement with the reference measurements, highlighting its potential as a wearable, low-cost solution for rehabilitation angle monitoring.

References

[1] J. Smith, D. Parikh, V. Tate, S. F. Siddicky, and H.-Y. Hsiao, “Validity of Valor inertial measurement unit for upper and lower extremity joint angles,” Sensors (Basel), vol. 24, no. 17, p. 5833, 2024.

[2] J. Lourenço, L. Martins, R. Almeida, C. Quaresma, and P. Vieira, “Low cost inertial measurement unit for motion capture in biomedical applications,” in IFIP Advances in Information and Communication Technology, Cham: Springer International Publishing, 2016, pp. 151–158.

[3] C. Gu, W. Lin, X. He, L. Zhang, and M. Zhang, “IMU-based motion capture system for rehabilitation applications: A systematic review,” Biomimetic Intelligence and Robotics, vol. 3, no. 2, p. 100097, 2023.

[4] M. H. Ramlee, G. K. Beng, N. Bajuri, and M. R. Abdul Kadir, “Finite element analysis of the wrist in stroke patients: the effects of hand grip,” Med. Biol. Eng. Comput., vol. 56, no. 7, pp. 1161–1171, 2018.

[5] J. Kim, L. Xie, and S. Cho, “Comparison of 3D ankle kinematics between minimal inertial measurement units configuration and optical motion capture system under diverse walking conditions,” Sci. Rep., vol. 16, no. 1, 2026.

[6] R. Gunawan, R. Nugraha, Kusmadi, and Sukadwilinda, “Vehicle path tracking using inertial measurement unit (IMU) sensors,” in 2024 18th International Conference on Telecommunication Systems, Services, and Applications (TSSA), 2024, pp. 1–5.

[7] C. Z. Y. Choo, J. Y. Chow, and J. Komar, “Validation of the Perception Neuron system for full-body motion capture,” PLoS One, vol. 17, no. 1, p. e0262730, 2022.

[8] J. Lingenberg, L. Schneider, and M. Schmidt, “Accuracy of the playermaker 2.0 IMU in tracking running distance at varying speeds in elite youth soccer,” in 2025 DGON Inertial Sensors and Applications (ISA), 2025, pp. 1–15.

[9] J. R. A. Castillo et al., “Mitigating drift in extraction of joint angle measurements from inertial measurement unit (IMU) data,” in TENCON 2024 - 2024 IEEE Region 10 Conference (TENCON), 2024, pp. 666–669.

[10] M. A. Brodie, A. Walmsley, and W. Page, “The static accuracy and calibration of inertial measurement units for 3D orientation,” Comput. Methods Biomech. Biomed. Engin., vol. 11, no. 6, pp. 641–648, 2008.

[11] S. Wang and N. S. Ahmad, “A comprehensive review on sensor fusion techniques for localization of a dynamic target in GPS-denied environments,” IEEE Access, vol. 13, pp. 2252–2285, 2025.

[12] W. Lee, P. Geneva, C. Chen, and G. Huang, “MINS: Efficient and robust multisensor‐aided Inertial Navigation System,” J. Field Robot., vol. 42, no. 7, pp. 3252–3284, 2025.

[13] I. U. Haq, F. Felicetti, D. L. Carnı’, and F. Lamonaca, “Advancements in robotic positioning: A comprehensive review of measurement methods and systems,” Measur. Sens., vol. 45, no. 102000, p. 102000, 2026.

[14] G. Chatterjee, L. Latorre, F. Mailly, P. Nouet, N. Hachelef, and C. Oudea, “Smart-MEMS based inertial measurement units: gyro-free approach to improve the grade,” Microsyst. Technol., vol. 23, no. 9, pp. 3969–3978, 2017.

[15] M. H. Ramlee and K. B. Gan, “Function and biomechanics of upper limb in post-stroke patients - a systematic review,” J. Mech. Med. Biol., vol. 17, no. 06, p. 1750099, 2017.

[16] M. Nazarahari and H. Rouhani, “40 years of sensor fusion for orientation tracking via magnetic and inertial measurement units: Methods, lessons learned, and future challenges,” Inf. Fusion, vol. 68, pp. 67–84, 2021.

[17] C.-L. Thouant et al., “Compensation strategies in post-stroke individuals: Insights from upper body kinematics analysis based on inertial sensors,” Sensors (Basel), vol. 25, no. 24, p. 7609, 2025.

[18] A. Shenoy et al., “Evaluating the usability of inertial measurement units for measuring and monitoring activity post-stroke: A scoping review,” Sensors (Basel), vol. 25, no. 12, p. 3694, 2025.

[19] H. Pan et al., “Automated, IMU-based spine angle estimation and IMU location identification for telerehabilitation,” J. Neuroeng. Rehabil., vol. 21, no. 1, p. 96, 2024.

[20] X. Y. Lim, K. B. Gan, and N. A. Abd Aziz, “Deep ConvLSTM network with dataset resampling for upper body activity recognition using minimal number of IMU sensors,” Appl. Sci. (Basel), vol. 11, no. 8, p. 3543, 2021.

[21] M. M. Rahman, K. B. Gan, N. A. A. Aziz, A. Huong, and H. W. You, “Upper limb joint angle estimation using wearable IMUs and personalized calibration algorithm,” Mathematics, vol. 11, no. 4, p. 970, 2023.

[22] M. M. Rahman, K. B. Gan, Y. H. Woon, N. A. A. Aziz, A. Huong, and K. S. Sim, “Assessment of upper body kinematic using multiple inertial measurement units,” IEEE Sens. J., vol. 25, no. 6, pp. 9467–9477, 2025.

[23] D. Li, K. B. Gan, and K. S. Sim, “Numerical simulation-based design of a pneumatic finger rehabilitation robot for Tele-rehabilitation,” Int. J. Online Biomed. Eng., vol. 22, no. 04, 2026.

[24] J.-H. Lin, “A wearable strain sensor based on 3D silicone printing with composite structure design,” Int. J. Online Biomed. Eng., vol. 22, no. 03, 2026.

[25] T. N. Muslim and H. A. Lafta, “Modification of an IMU based system for analyzing hand kinematics during activities of daily living,” Int. J. Online Biomed. Eng., vol. 19, no. 15, pp. 34–49, 2023.

[26] Y. Liu and X. Yi, “A multi-sensor fusion approach for music rhythm-based rehabilitation system with mobile interaction,” Int. J. Interact. Mob. Technol., vol. 20, no. 02, 2026.

[27] S. S. Sabry, M. Sahib, and T. Nayl, “Toward hand functions rehabilitation using the virtual world for pre-school children with cerebral palsy,” Int. J. Emerg. Technol. Learn., vol. 15, no. 09, p. 110, 2020.

Downloads

Published

2026-11-26

How to Cite

Zhang, S., Rahman, M. M., Cao, X., Gan, K. B., & Sim, K. S. (2026). A BLE-Based IMU System with Three-Stage Calibration and Madgwick Sensor Fusion for Real-Time Orientation Tracking. International Journal of Online and Biomedical Engineering (iJOE), 22(11), pp. 157–171. https://doi.org/10.3991/ijoe.v22i11.62219

Issue

Section

Papers