---
title: 'DefVINS: Robust Visual-Inertial Odometry'
url: https://www.emergentmind.com/topics/visual-inertial-odometry-defvins
type: topic
---

# DefVINS: Robust Visual-Inertial Odometry

Visual-Inertial Odometry (DefVINS) is a framework for robust metric ego-motion estimation in environments that violate the rigidity assumption underlying classical VIO pipelines. DefVINS introduces principled modeling of non-rigid scene deformation, anchored to a conventional IMU-coupled rigid backbone, designed to mitigate catastrophic drift and overfitting that arise when visual motion is contaminated by non-rigid environmental changes. The system leverages an embedded deformation graph for explicit non-rigid modeling and employs an observability-driven DoF activation strategy to guarantee well-posed estimation. Empirical validation demonstrates pronounced robustness improvements in dynamic and deformable scenarios relative to rigid VIO baselines such as ORB-SLAM3 and VINS-Mono [2601.00702].

## 1. Motivation and Problem Formulation

Traditional VIO pipelines such as OKVIS, VINS-Mono, and ORB-SLAM3 assume that all image features correspond to static, rigid 3D points. Under this constraint, parallax is interpreted as pure platform motion, allowing complementary IMU measurements to render translational scale and gravity observable. When the scene is locally or globally deformable (e.g., cloth, human body, flexible cables), the rigid parallax assumption is violated: observed visual motion is an entangled sum of observer motion and non-rigid deformation. Standard VIOs either misattribute non-rigid flow to the platform, leading to global trajectory drift or localize correctly only in intervals where rigid parallax dominates [2601.00702].

DefVINS explicitly decouples IMU-anchored rigid motion from non-rigid deformation, representing the latter as a deformation graph. This approach prevents overfitting the global pose to non-rigid visual signals and preserves metric consistency by anchoring the estimation to the inertial reference frame.

## 2. System Pipeline and Architecture

The DefVINS pipeline is structured in two major phases:

- **Initialization**: Standard rigid VIO batch initialization estimates the relative poses, velocities, IMU biases, and gravity direction over a small window using closed-form VIO methods. The rigid trajectory produced serves as the reference for subsequent non-rigid estimation.
- **Sliding-Window Optimization**: At each optimization cycle, the state vector is partitioned into (i) rigid substate—poses $\{R,p,v\}$, biases $\{b_g, b_a\}$, gravity direction $\hat g$; (ii) non-rigid substate—positions of the active deformation-graph nodes $\{\mathbf{x}_i^t\}$.

Deformation graph node activation is progressive, regulated by the conditioning of the rigid subsystem Jacobian. Non-rigid DoFs are introduced only when the rigid observability (quantified by the smallest non-trivial singular value $\sigma_\mathrm{min}$ of the linearized rigid block) exceeds a threshold, guaranteeing that non-rigid estimation is not attempted under poor excitation or insufficient motion [2601.00702].

The processing modules include:
- Feature detection and feature-to-node association
- IMU preintegration to compute relative rigid motion increments
- Ceres-based back-end nonlinear least-squares, encompassing visual, inertial, and deformation residuals, with marginalization for sliding-window size control

## 3. Mathematical Formulation

Let $\mathcal{V}$ be the set of active deformation nodes, and consider two consecutive keyframes $(t-1,t)$. The state vector is
\[
\boldsymbol{\xi}
=
\bigl[
\,R_{t-1},\,v_{t-1},\,p_{t-1},\;R_t,\,v_t,\,p_t,\;b^g,b^a,\;\hat g,\;
\{\mathbf{x}_i^{t-1},\mathbf{x}_i^{t}\}_{i\in\mathcal V}
\bigr]
\]

- **Deformation graph**: Nodes $\mathbf{x}_i^0$ are anchored in the initial frame, and features are rigidly associated to their nearest node. For feature $l$ anchored to node $i$, its deformed position at time $t$ is
\[
\mathbf{X}_l^t = \mathbf{x}_i^t + (\mathbf{X}_l^0-\mathbf{x}_i^0)
\]
- **Residual definitions**:
  - Visual reprojection residual for feature $l$ in frame $k$:
    \[
    r_{kl}^{\mathrm{vis}} = \pi\bigl(R_k[\mathbf{X}_l^0+\Delta_{\mathrm{def},l}^k] + p_k\bigr) - u_{kl}
    \]
    where $u_{kl}$ is the observed image measurement and $\pi(\cdot)$ the projection function.
  - Inertial (IMU preintegration) residuals [cf. IMU integration in VINS-Mono]:
    \begin{align*}
      r_{\Delta R} &= \mathrm{Log}\bigl(\Delta\tilde R_{t-1,t}^{\top}R_{t-1}^{\top}R_t\bigr) \\
      r_{\Delta v} &= R_{t-1}^{\top}\bigl(v_t - v_{t-1} - g\Delta t\bigr) - \Delta\tilde v_{t-1,t} \\
      r_{\Delta p} &= R_{t-1}^{\top}\bigl(p_t - p_{t-1} - v_{t-1}\Delta t - \frac{1}{2}g\Delta t^2\bigr) - \Delta\tilde p_{t-1,t}
    \end{align*}
  - Gravity residual: $r_g = (v_t-v_{t-1})/\Delta t - R_{t-1}\Delta\tilde v_{t-1,t}/\Delta t - \|g\|\hat g$.
  - Deformation regularization:
    - Elastic: $r_{ij}^{\mathrm{elas}} = \sqrt{k}\, [\,\|\mathbf{x}_i^t - \mathbf{x}_j^t\| - d_{ij}^0\,]/\sqrt{d_{ij}^0}$
    - Viscous: $r_{ij}^{\mathrm{visc}} = \sqrt{b_{ij}}\|s_i^t - s_j^t\|$ with $s_i^t = \mathbf{x}_i^t - \mathbf{x}_i^{t-1}$
    - Photometric: $r_i^{\mathrm{photo}} = I^t(u_i^t) - \alpha_i I^{t-1}(u_i^{t-1}) - \beta_i$
- **Total energy (objective) over window $\mathcal{W}$**:
\[
E(\boldsymbol{\xi}) =
\sum_{k\in\mathcal{W}\backslash\{t_0\}}\Bigl(
  \|r_{\Delta R}^k\|_{\Sigma_R}^2
  + \|r_{\Delta v}^k\|_{\Sigma_v}^2
  + \|r_{\Delta p}^k\|_{\Sigma_p}^2
  + \|r_g^k\|_{\Sigma_g}^2
  + \sum_{l\in\mathcal F_k}\|r_{kl}^{\mathrm{vis}}\|_{\Sigma_{\mathrm{vis}}}^2
  + \lambda_{\mathrm{NR}}\mathcal{L}_{\mathrm{NR}}^k
\Bigr)
+ \|r_{\mathrm{prior}}\|_{\Sigma_{\mathrm{prior}}}^2
\]
where deformation regularization is
\[
\mathcal{L}_{\mathrm{NR}}^k = \sum_{(i,j)\in\mathcal E}\left( \|r_{ij}^{\mathrm{elas}}\|^2 + \|r_{ij}^{\mathrm{visc}}\|^2 \right) + \sum_{i\in\mathcal V}\|r_i^{\mathrm{photo}}\|^2
\]

## 4. Observability and Conditioning-Based Deformation Activation

In rigid scenes, VIO is observable up to a global SE(3) transformation; IMU integration coupled with sufficient platform excitation renders scale, roll, pitch, and gravity observable, with global pose and yaw as gauge freedoms. The introduction of non-rigid DoFs induces new unobservable modes: purely visual methods cannot distinguish global platform drift from coherent, low-energy deformations [2601.00702].

DefVINS relies on "IMU anchoring": inertial residuals restrict the space of plausible global motions, lifting many otherwise ambiguous deformation modes (cf. augmented observability matrix $\mathcal{O}$ whose singular spectrum encodes system conditioning). Non-rigid node activation is dynamically gated: nodes are switched on only when the minimum singular value $\sigma_{\min}$ of the rigid sub-Jacobian exceeds threshold $\epsilon$ (typically $10^{-3}$), ensuring estimation is only attempted under adequate motion excitation.

## 5. Optimization Strategy and Implementation

DefVINS employs a Gauss–Newton optimizer (Ceres-based), with Schur-complement marginalization of old keyframes to preserve sliding-window tractability. Initial rigid VIO serves as a good linearization point for non-rigid DoFs. To maintain numerical stability:
- Only well-initialized non-rigid DoFs are introduced at each window.
- Robust cost kernels are used on high-leverage visual and photometric residuals.
- Non-convexity is addressed via conditioning-aware progressive DoF activation.

A fixed window size (typ. $N=8$ keyframes) and continuous marginalization bound computational complexity. On standard desktop CPUs, DefVINS achieves $\sim$20–30 Hz real-time processing [2601.00702].

## 6. Experimental Validation and Results

DefVINS was validated on both synthetic and real benchmarks:

| Scene Type                      | Baseline           | ATE-RMSE (mm) | RPE improvement | Coverage   |
|----------------------------------|--------------------|---------------|-----------------|------------|
| Low def. (L0) Synthetic         | ORB-SLAM3 / NR-SLAM| ≤ 10          | VI-R: ~20% vs VN| ~All track |
| High def. (L1–L3) Synthetic     | ORB-SLAM3          | Full: -30–45% | Full: -20–40%   | ↑ tracking |
| Real RGB-D (Industrial sequences)| ORB-SLAM3          | -75–80% (HD)  | Full: +35–75ppt | 85–95% vs |
|                                 |                    |               |                 | 20–50% (rigid) |

Ablation studies confirm that:
- Visual-only non-rigid baselines (V-NR) exhibit drift under turns.
- VI-rigid only baselines maintain short-term accuracy but diverge under heavy deformation.
- Full DefVINS maintains both global consistency and local robustness.

## 7. Extensions and Open Challenges

DefVINS' modular framework is compatible with several proposed extensions:
- Adaptive deformation graph refinement (dynamic node addition/removal, graph topology changes)
- Integration of learned deformation priors or neural-warp fields for stronger non-rigid regularization
- Multi-object or articulated deformation handling (necessary for scenes with multiple independently deforming entities)
- Tighter coupling with dense 3D and semantic representations

Principal open challenges are posed by environments with rapidly varying or topologically nontrivial deformation, and by the computational scalability of large or highly connected deformation graphs under real-time constraints. Future work may focus on mechanisms for efficient graph scaling and incorporation of richer deformation models.

---

DefVINS thus generalizes classical VIO by embedding an observability-aware, IMU-anchored deformable modeling backend, yielding robust pose estimation even when traditional rigidity assumptions do not hold [2601.00702].

Source: https://www.emergentmind.com/topics/visual-inertial-odometry-defvins