Sensor Fusion
Sensor fusion combines readings from cameras, LiDAR, radar, and inertial sensors into one estimate that is more accurate and robust than any single sensor.
Sensor fusion combines measurements from several sensors into a single estimate of the world that is more accurate, more complete, and more robust than any one sensor provides. Each sensor has blind spots: a camera captures color, texture, and semantic detail but measures distance only indirectly through depth estimation, LiDAR returns precise 3D points that thin out with range and scatter in fog, radar measures range and radial velocity through rain and darkness at low angular resolution, and an inertial measurement unit (IMU) reports motion hundreds of times per second, though a position integrated from it drifts within seconds. Fusion exploits sensors that are complementary, covering different properties, and redundant, measuring the same property, so a system keeps working when one of them degrades. It is the backbone of perception in autonomous vehicles, robotics, drones, and phones.
How Sensor Fusion Works#
Before any data is combined, every sensor needs calibration: intrinsic parameters such as a camera's focal length, and extrinsic parameters, the rotation and translation between sensors, so that a LiDAR point lands on the right camera pixel. Readings also need common timestamps, from hardware triggers or clock-synchronization protocols, because at highway speed a 50-millisecond offset shifts a car by more than a meter. The fusion step then weights each measurement by how much it can be trusted.
The Kalman filter is the classic estimator for this: it predicts the state from a motion model, then corrects the prediction with each new measurement in proportion to its certainty, and the extended Kalman filter handles nonlinear sensors and motion. For a single moment and two independent sensors, its correction reduces to inverse-variance weighting:
import numpy as np
rng = np.random.default_rng(0)
true_distance = 25.0 # meters to the car ahead
# 10,000 readings from two independent sensors with different noise levels
camera = true_distance + rng.normal(0, 1.0, 10_000) # monocular depth, sigma 1.0 m
radar = true_distance + rng.normal(0, 0.4, 10_000) # radar range, sigma 0.4 m
# Inverse-variance weighting: the minimum-variance fusion of independent estimates
w_camera, w_radar = 1 / 1.0**2, 1 / 0.4**2
fused = (w_camera * camera + w_radar * radar) / (w_camera + w_radar)
for name, estimate in [("camera", camera), ("radar", radar), ("fused", fused)]:
rmse = np.sqrt(np.mean((estimate - true_distance) ** 2))
print(f"{name:>6} RMSE: {rmse:.3f} m")It prints a root-mean-square error of 0.998 m for the camera, 0.398 m for the radar, and 0.368 m for the fused estimate. Fusion beats even the better sensor, matching the theoretical 0.371 m for these noise levels, because the noisy camera still carries independent information.
Early, Mid-Level, and Late Fusion#
Learned perception systems differ mainly in where the sensor streams meet. Early fusion combines raw or lightly processed data, such as LiDAR depth projected onto the image as an extra channel, which keeps all the detail but depends on precise calibration. Mid-level fusion combines learned features after feature extraction: BEVFusion transforms camera and LiDAR features into a shared bird's-eye-view grid that serves both 3D object detection and map segmentation. Late fusion runs a separate model per sensor and matches their outputs, such as camera bounding boxes with radar tracks, which is modular and tolerates a failed sensor but loses cross-sensor cues the individual models never see.
Ultralytics YOLO supports early fusion through the channels key of a dataset YAML, which sets the number of input channels, so a YOLO26 detector can train on aligned RGB and thermal frames stored as 4-channel TIFF images, the same mechanism the 10-channel COCO8-Multispectral dataset uses.
Sensor fusion overlaps with multimodal learning, the broader practice of combining data types such as images, text, and audio in one model, and it often involves no learning at all, as in a Kalman filter. Visual SLAM uses camera and IMU fusion as one ingredient for mapping an environment while localizing within it.
Real-World Applications#
- Self-driving cars: Robotaxis fuse cameras, LiDAR, and radar so that each detected pedestrian or vehicle carries a class from the camera, a precise position from LiDAR, and a velocity from radar, and tracking keeps each identity over time.
- Mobile robots: Warehouse robots and drones fuse wheel odometry, IMUs, cameras, and GNSS, and the widely used ROS package robot_localization fuses any number of such sources with an extended or unscented Kalman filter.
- Phones and spatial computing headsets: Smartphone orientation fuses the gyroscope, accelerometer, and magnetometer, and augmented reality frameworks such as Apple's ARKit use visual-inertial odometry, combining camera features with IMU motion, to track the device's position as it moves.
- Industrial inspection: Aligned RGB and thermal cameras locate overheating components on electrical panels, with the color image supplying the component's identity and the thermal image its temperature.










