arXiv:2610.17870cs.ROOct 2026

Manuscript Offprint

arXiv:2610.17870

LAG-IO: Multi-IMU State Estimation for Legged Robots Using Factor Graphs

Yicheng Zhou, Longwen Chen, Qinghua Yu, Junhao Xiao, Huimin Lu, Xieyuanli Chen

Yicheng Zhou Longwen Chen Qinghua Yu Junhao Xiao Huimin Lu Xieyuanli Chen

Abstract—Robust proprioceptive state estimation is crucial for legged robots, particularly in challenging environments where exteroceptive sensors are unreliable. While traditional leg odometry typically relies on a single body-mounted inertial measurement unit (IMU) fused with leg kinematics via an extended Kalman filter (EKF), such methods are vulnerable to linearization errors and hard-contact assumptions, leading to severe drift during slippage or dynamic locomotion. In this paper, we propose LAG-IO, a factor graph-based multi-IMU state estimation framework that tightly couples measurements from a main body IMU, multiple leg-mounted IMUs, and joint encoders within a sliding-window optimization. To handle non-stationary foot-ground interactions, we introduce a continuous probabilistic contact detection module based on kernel density estimation (KDE), which adaptively scales the covariance of zero-velocity update (ZUPT) factors. Furthermore, kinematic relative position factors are formulated to structurally anchor the independent leg inertial states to the robot's main body. Experimental results on a quadruped robot across various unstructured terrains demonstrate that, compared to existing baselines, LAG-IO achieves higher planar trajectory accuracy, reduces unobservable vertical divergence, and provides smoother trajectory transitions during unstable contacts, while maintaining competitive attitude observability. The code is released at: https://github.com/nubot-nudt/LAG-IO.

I. INTRODUCTION

Accurate proprioceptive state estimation is crucial for legged robots to execute dynamic locomotion and navigation tasks. While exteroceptive sensors such as LiDAR and cameras provide rich environmental information for localization, their performance can degrade significantly in adverse weather conditions or visually impoverished environments [1], [2]. Thus, a robust proprioceptive estimator is required to provide reliable, high-frequency state feedback when external perception becomes unreliable or fails.

Existing proprioceptive state estimation methods mainly rely on fusing measurements from a single body-mounted IMU and joint kinematics [3]–[5]. Traditional filtering frameworks, such as the extended Kalman filter, typically employ zero-velocity updates (ZUPT) under the assumption that the stance foot maintains a rigid, stationary contact with the ground [6]. However, when foot slips occur on unstructured terrains, this no-slip assumption is violated, injecting erroneous biases that inevitably lead to trajectory drift [7]. To mitigate these slip-induced errors, recent literature has explored end-to-end learning-based odometry networks [8], [9] and neural-augmented filters [10], [11] to compensate for complex, unmodeled contact dynamics. While these data-driven approaches can capture intricate motion patterns, they often struggle with generalizability across unseen environments and remain strictly bounded by their training datasets.

Expanding the proprioceptive sensing suite from a single IMU to a multi-IMU configuration has recently emerged as an effective way to address the limitations of traditional setups. Placing additional IMUs on the lower limbs allows the system to capture local impact dynamics directly, avoiding dependence on fragile force sensors [12]. Building on this idea, the recent DogLegs framework [13] showed that combining a body IMU, multiple leg IMUs, and kinematic constraints within an EKF can markedly improve leg odometry performance. However, despite these hardware gains, the EKF remains limited by its recursive structure. Once a measurement is incorporated, the associated linearization point cannot be revisited. This constraint prevents the filter from correcting past linearization errors, making it vulnerable to transient nonlinear disturbances caused by unstable contacts and high-frequency impacts.

To address these limitations, we propose LAG-IO, which reformulates multi-IMU kinematic fusion within a tightly-coupled, sliding-window factor graph optimization. Unlike filtering methods [3], [4], [11], the graph-based backend maintains a recent history of states, naturally enabling iterative relinearization to smooth out slip-induced outliers. Within this unified graph, continuous inertial preintegration and kinematic relative position (RelPos) factors are incorporated to structurally anchor the independent leg states to the robot's main body. Furthermore, a continuous contact probability evaluated from leg-IMU signals is proposed to dynamically scale the variance of the ZUPT factors, gracefully relaxing the zero-velocity constraints during unstable contacts. The main contributions of this work are threefold:

• We propose LAG-IO, a novel sliding-window factor graph optimization framework for multi-IMU legged proprioception, integrating body and leg inertial states with kinematics-based relative position constraints to ensure consistent cross-limb anchoring and improved robustness over recursive filtering.

• We propose a continuous probabilistic contact weighting mechanism that computes a stationarity likelihood from leg-IMU motion statistics and adaptively scales ZUPT covariances, enabling graceful handling of micro-slips, soft contacts, and impact disturbances.

• We provide a real-time, impact-resilient implementation with noise-shaped leg-IMU preintegration and robust optimization, achieving higher planar accuracy, reduced vertical drift, and smoother trajectory transitions compared to the EKF baselines. The code will be open source to benefit future research.

References (20)