NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

imucal - A Python library to calibrate 6 DOF IMUs

Arne Küderle, Nils Roth, Robert Richer, Bjoern M. EskofierJ. Open Source Softw 2022 · DBLP

Introduction

Inertial Measurement Units (IMUs) are essential components in modern technology, from smartphones to wearable fitness trackers. However, Micro-Electromechanical Systems (MEMS) IMUs are inherently prone to errors, including bias (offset), scaling issues, and non-orthogonality. While factory calibrations exist, they are often insufficient for high-precision research because sensor performance is sensitive to temperature, humidity, aging, and physical stress. Researchers frequently rely on ad-hoc scripts that are difficult to scale or adapt. imucal addresses this "calibration chaos" by providing a robust, reusable framework for calibrating 6-degree-of-freedom (6 DOF) IMUs.

Methods and Implementation

The library is built on a sensor-agnostic, object-oriented architecture designed to streamline the calibration workflow. Its core features include:

  • Algorithm Implementation: imucal provides a reference implementation of the Ferraris et al. calibration method. This process involves placing the sensor in specific static orientations to calibrate the accelerometer against gravity and performing controlled rotations for gyroscope calibration.
  • Annotation GUI: A critical component of the library is its graphical user interface (GUI). Calibration requires identifying "static" versus "moving" regions within a data file. The GUI allows users to manually annotate these regions using mouse and keyboard shortcuts, significantly speeding up a process that is traditionally handled by hard-coding timestamps.
  • Metadata Management: The library utilizes structured helpers to save calibration parameters and metadata (e.g., sensor ID, date, custom notes) into JSON files. This ensures that the correct calibration can be programmatically retrieved for specific recording sessions.
The imucal Calibration GUI used for annotating static regions and single-axis rotations.

Key Insights

The development of imucal highlights that while the mathematical foundations of IMU calibration are well-established, the practical workflow remains a significant hurdle for researchers. The library's value lies in its integrated approach to data management—ensuring that calibrations are not only accurate but also easily stored and retrieved.

Furthermore, the library accounts for temporal sensitivity. Because MEMS sensors drift over time, imucal is designed to handle "temporally close" calibrations, ensuring that the parameters applied are relevant to the specific time of measurement. The architecture is also highly extensible, allowing researchers to plug in new calibration methods by building upon the provided base classes.

Results and Impact

imucal has been "battle-tested" at the Machine Learning and Data Analytics Lab (MaD Lab), where it manages over 100 custom and commercial IMU sensors. Key benefits include:

  • Standardization: It offers a single source of truth, replacing fragmented scripts with a documented, pip-installable package.
  • Efficiency: The GUI and JSON-based storage significantly reduce the manual labor required for large-scale studies.
  • Reliability: A standardized reference implementation reduces the risk of "silent errors" common in custom-written scripts.

Limitations and Future Work

Currently, the library primarily supports the Ferraris et al. algorithm and is limited to 6 DOF sensors (accelerometer and gyroscope). Future development could include:

  • Expanded Algorithms: Supporting methods that do not require external equipment.
  • Automation: Incorporating automated region detection to further streamline the process.
  • 9 DOF Support: Adding magnetometer calibration for applications requiring absolute heading and orientation.

Summary updated

BibTeX
@article{kuderle2022imucal,
  author = {Arne Küderle and Nils Roth and Robert Richer and Bjoern M. Eskofier and Arne Küderle and Nils Roth and Bjoern Eskofier and Robert Richer},
  title = {{imucal - A Python library to calibrate 6 DOF IMUs}},
  journal = {J. Open Source Softw.},
  year = {2022},
  doi = {10.21105/joss.04338},
}
Figure