TL;DR
LEVIO is a lightweight, fully featured 6-DoF Visual-Inertial Odometry (VIO) pipeline optimized for ultra-low-power microcontrollers and edge SoCs. By combining hardware-software co-design with parallelized algorithms, it achieves real-time tracking at 20 FPS while consuming less than 100 mW on a commercial RISC-V processor.
What Problem Does This Paper Address?
Visual-Inertial Odometry (VIO) is a foundational technology for autonomous navigation, allowing robots and augmented reality (AR) devices to track their 3D movement without relying on external infrastructure like GPS or motion-capture cameras. However, state-of-the-art VIO algorithms are notoriously power-hungry, typically requiring desktop-class CPUs or power-intensive GPUs that draw tens of watts.
This high power consumption translates to heavy battery packs and computing hardware, creating a strict payload barrier for micro-drones (nano-UAVs) and smart glasses. While previous works have attempted to fit VIO onto low-power microcontrollers, they usually do so by severely oversimplifying the problem—such as restricting tracking to 2D planar motion. The authors of this paper set out to bridge this gap, delivering a full 6-Degrees-of-Freedom (DoF) VIO pipeline that operates within a strict sub-100 mW power envelope and a sub-1 MB memory budget.
Methods
The authors introduce LEVIO (Lightweight Embedded Visual Inertial Odometry), an indirect, feature-based VIO pipeline. It extracts Oriented FAST and Rotated BRIEF (ORB) features from camera frames and fuses them with Inertial Measurement Unit (IMU) data using a tightly coupled pose-graph optimization.
To make this complex pipeline run on a highly constrained edge platform—specifically the GreenWaves GAP9 SoC, which features a single-core fabric controller and an 8-core RISC-V compute cluster—the authors introduced several hardware-software co-optimizations:
- Asynchronous Optimization: Instead of running the heavy Levenberg-Marquardt bundle adjustment sequentially within the main tracking loop, the pose-graph optimization runs continuously and asynchronously on the Fabric Controller core. This decouples the heavy optimization math from the real-time Visual Odometry (VO) loop.
- Parallelized Frontend: Feature extraction, brute-force descriptor matching, and RANSAC loops (both 8-point and EPnP) are parallelized across the 8 RISC-V worker cores.
- Memory & Resolution Downscaling: Images are downsampled to QQVGA resolution (160x120 pixels) to fit into the tight 128 kB L1 scratchpad memory. A hierarchical memory handler orchestrates data movement between the L1 scratchpad and the larger 1.6 MB L2 memory.
- Mathematical Trimming: Because standard linear algebra libraries (like LAPACK) are too large for embedded SoCs, the authors built a custom, lightweight C library to handle Singular Value Decomposition (SVD) and Jacobi Eigenvalue algorithms. Furthermore, they applied the Schur complement to marginalize 3D landmark states, drastically reducing the size of the matrix equations solved during optimization.
Datasets
The pipeline was validated and benchmarked using the EuRoC MAV dataset (specifically sequences MH01–MH05, recorded in a machine hall). This dataset provides global-shutter camera frames at 20 FPS and IMU readings at 200 Hz from a drone flying under highly dynamic conditions and variable illumination, making it an industry-standard stress test for VIO systems.
Key Insights and Ideas
- Decoupling Frontend and Backend: The "aha moment" for achieving a steady frame rate on a microcontroller is separating the tracking frontend from the optimization backend. By letting the optimization run asynchronously on a separate core, the visual odometry loop never stalls waiting for matrix math to finish.
- The RANSAC Parallelization Bottleneck: While feature extraction and matching scale excellently across multiple cores (~7.5x speedup on 8 cores), parallelizing RANSAC loops yields lower efficiency (~5x speedup). Because SVD and Jacobi Eigenvalue calculations are iterative, different cores finish at different times depending on the numerical conditioning of their random samples, forcing faster cores to idle while waiting for the slowest core to finish.
- Mutually Exclusive Tracking: LEVIO intelligently switches between EPnP (when enough 3D world points are visible) and the 8-point algorithm (for bootstrapping or when tracking is lost). Because these algorithms run mutually exclusively, the frontend latency remains low and predictable.
Key Results
- Power and Frame Rate: When deployed on the GAP9 SoC, LEVIO processes camera streams at 20 FPS while consuming less than 100 mW of power.
- Tracking Accuracy: Across the EuRoC sequences, LEVIO achieved an average absolute Root Mean Square Error (RMSE) of 3.46 meters. While it does not achieve the sub-meter accuracy of desktop-class SLAM algorithms (which utilize memory-heavy loop closure), it provides highly robust tracking sufficient for local micro-drone stabilization.
- Memory Footprint: The entire pipeline successfully operates with a peak memory utilization of less than 110 kB of L1 memory and roughly 850 kB of L2 memory.
Limitations and Future Work
Despite its impressive efficiency, LEVIO operates under a few constraints forced by its target hardware:
- Low Resolution: Relying on QQVGA (160x120) images limits the system's ability to track fine or distant features accurately.
- Accumulated Drift: To save memory and compute, loop closure (the ability to recognize previously visited places and correct past trajectory estimates) was omitted. Consequently, the system will inevitably drift over long-duration flights.
Future Work: The authors plan to investigate lightweight loop-closure methods that can fit within tight embedded memory budgets, explore resolution-accuracy scaling beyond QQVGA, and design dedicated hardware accelerators for core VIO bottlenecks like SVD and sparse matrix solvers.
Summary updated