Visual-inertial odometry

Also known as: VIO

On this page 7

Visual-inertial odometry (VIO) is a method that estimates the position, orientation and velocity of a moving platform by fusing images from one or more cameras with measurements from an inertial measurement unit (IMU). Within Navigation & sensors for drones, VIO lets an aircraft know how it is moving relative to its surroundings when GNSS is weak, jammed or unavailable, for example indoors, under bridges or close to structures.

Neither sensor is sufficient alone. The IMU reacts quickly but drifts within seconds, while the camera gives stable geometric references but fails in fast motion, darkness or featureless scenes. VIO combines the two so that each covers the weaknesses of the other.

How visual-inertial odometry estimates motion

VIO works by tracking visual features across consecutive camera frames while integrating IMU accelerations and angular rates between those frames. The camera constrains how the scene has moved, and the IMU predicts how the body should have moved; an estimator reconciles both into one state estimate.

A typical pipeline runs in four stages. First, the front end detects corners or keypoints and tracks them with optical flow or descriptor matching. Second, the IMU readings between frames are combined through IMU preintegration. Third, an estimator such as an extended Kalman filter or a sliding-window optimizer solves for pose, velocity and sensor biases. Fourth, old states are marginalized so that computation stays bounded.

The following table summarizes what each sensor contributes to the fused estimate.

SensorMeasuresStrengthWeakness
CameraFeature positions in the imageNo long-term drift in rotationFails in blur, low light, low texture
GyroscopeAngular rateHigh rate, robust to fast rotationBias drift over time
AccelerometerSpecific forceProvides gravity direction and metric scaleDouble integration amplifies noise
Fused VIO estimateFull 6-DoF pose and velocityAccurate over minutes of flightSlow drift without loop closure
Contribution of each sensor in VIO

Why the IMU solves the scale problem

A single camera cannot tell how large the scene is: monocular vision recovers motion only up to an unknown scale factor. The accelerometer measures motion in meters per second squared, so combining it with vision gives metric scale without a second camera.

The IMU also makes roll and pitch observable through the gravity vector, which keeps the estimate aligned with the vertical. However, yaw and absolute position remain unobservable, which is why VIO accumulates slow drift in heading and position unless another reference, such as GNSS, a map or a loop closure, corrects it.

Accurate results require careful camera-IMU calibration: the relative rotation and translation between the sensors, their time offset and the camera intrinsics. A timing error of only a few milliseconds can visibly degrade the estimate during fast maneuvers.

Common VIO architectures and variants

VIO systems differ in how tightly the two sensors are combined and how the estimator is built. Tightly coupled systems use raw feature measurements and IMU data in one estimator, which is more accurate than loosely coupled systems that fuse two separate pose estimates.

Design choiceOptionPractical effect
CouplingLoose or tightTight coupling is more accurate and robust
EstimatorFilter or sliding-window optimizationFilters are lighter, optimizers more precise
Camera setupMonocular or stereoStereo adds depth and faster initialization
Feature handlingFeature-based or directDirect methods use pixel intensities in low-texture scenes
Map supportOdometry only or full SLAMSLAM adds loop closure and limits drift
Main VIO design choices

Well-known research systems include MSCKF, a filter-based design, and optimization-based approaches such as VINS-Mono and OKVIS. Commercial drones typically implement proprietary variants on dedicated vision processors.

VIO compared with other drone positioning methods

VIO is one layer in a drone’s navigation stack and is usually fused with GNSS, barometer and downward sensors. Its role is to provide smooth, locally accurate motion where other sources are noisy or absent.

MethodReferenceTypical accuracyMain limitation
Visual-inertial odometryScene features plus IMUAbout 0.5 to 2 percent of distance flownDrift and dependence on texture
Optical flow sensorGround texture below the droneGood for hover at low heightNeeds a rangefinder and visible ground
GNSSSatellite signalsAbout 1 to 3 mBlocked indoors and near structures
RTK GNSSSatellites plus correction dataCentimeter levelRequires a base station or NTRIP
Inertial navigation systemIMU onlyDegrades within seconds on low-cost unitsUnbounded drift
VIO and related positioning sources

Compared with a simple optical flow sensor, VIO tracks full three-dimensional motion and works with forward-facing cameras, which makes it suitable for GNSS-denied navigation through buildings and tunnels.

Limitations and failure modes in flight

VIO fails mainly when the camera cannot track enough stable features. Pilots and integrators should recognize the conditions that degrade it and plan missions accordingly.

  • Low light or darkness reduces feature detection unless the drone carries illumination or infrared-capable cameras.
  • Uniform surfaces such as calm water, snow, white walls or glass offer too few features.
  • Motion blur from aggressive flight breaks feature tracks between frames.
  • Moving scenes such as waves, crowds or foliage in wind introduce false motion.
  • Vibration and poor timestamps corrupt IMU data and the camera-IMU alignment.

When VIO degrades, a well-designed flight controller lowers the weight of the visual estimate, warns the pilot and may switch to a mode similar to ATTI mode, in which the drone holds attitude but drifts with the wind.

A non-technical view

Visual-inertial odometry helps a drone know where it is going without satellites. It uses a camera and a motion sensor together.

Think of walking through a room with your eyes open. Your eyes notice how the furniture moves past you. Your inner ear feels each turn and step. Together, they tell you how far you moved and in which direction. A drone does the same thing with its camera and its motion sensor.

The method works well over short distances. Over a long time, small errors add up. In darkness or above plain white surfaces, the camera sees too little. The main takeaway is that VIO keeps a drone steady where GPS cannot help.

A concrete example

An inspection team must check the inside of a large steel storage tank where satellite signals do not reach. They use a small caged drone with a stereo camera, an IMU and onboard LED lights that keep the walls visible to the VIO system.

The pilot takes off from the tank floor and flies a slow vertical pattern along the welded seams at about 1 m per second. VIO keeps the drone holding position within roughly 10 to 20 cm while the pilot inspects corrosion, even though the GNSS receiver reports no fix at all.

After a 12-minute flight covering about 400 m, the estimated landing point differs from the takeoff point by roughly half a meter. The result is a stable, repeatable inspection flight without scaffolding, and the drift stays small enough that the team can map each defect to its approximate location on the tank wall.