Sensor Fusion Visualizer
Combine imperfect sensors, tune trust, and see when fusion beats the best single sensor.
Sensor Fusion Visualizer
Combine noisy, drifting, and sometimes disturbed sensors to estimate one hidden value. The goal is not to average everything blindly; it is to decide which readings deserve trust right now.
Fast sensors react quickly; absolute sensors stop long-term drift; context sensors catch impossible values.
A sensor that is normally useful can become unreliable during vibration, interference, or dropout.
Different update rates need buffering, interpolation, or prediction before readings can be compared.
Fusion is only better when its error is lower than the best available single sensor.
Hidden Truth
A real value changes over time but cannot be read directly.
Sensor Readings
Each sensor sees a biased, noisy, or delayed version.
Trust Model
The algorithm decides how much each reading should influence the estimate.
Fused Estimate
The readings are combined into one best current estimate.
Error Check
The result is compared with truth and the best single sensor.
Fusion timeline
truth, sensors, and estimateSimple Mean
All active sensors are trusted equally.
estimate = average(readings)Weighted Mean
Lower-variance sensors receive larger weights.
weight = 1 / varianceComplementary
Fast estimate handles motion while an absolute reference limits drift.
estimate = alpha fast + (1-alpha) absoluteScalar Kalman
A recursive estimate predicts, then corrects with each active measurement.
K = P / (P + R)Fusion Quick Reference
Sensor fusion combines measurements that fail in different ways. A good fused estimate is usually more accurate, more stable, or more fault tolerant than a single sensor.
- Noise is random short-term variation.
- Bias is a consistent offset.
- Drift is bias that grows or changes over time.
- Interference is context-specific corruption, such as vibration or magnetic disturbance.
Algorithm Selection
Use the simplest method that matches what you know about the sensors and the motion.
- Simple mean is useful only when active sensors have similar quality.
- Weighted mean is useful when sensor variances are known or estimated.
- Complementary filters are common for fast drifting plus slower absolute references.
- Kalman filters are useful when a state estimate, uncertainty, and measurement noise model are available.
Technical Accuracy Notes
This page uses a scalar teaching model. It estimates one value over time, such as angle, position, speed, or temperature. It is not a full 3D IMU attitude filter.
- The complementary filter shown here blends a fast dead-reckoned estimate with a slower absolute estimate.
- The Kalman filter is a scalar random-walk model with sequential measurement updates.
- Weights use inverse variance, with extra variance added during interference.
- MAE and RMSE are calculated over the full visible run.
- Real fusion also needs sensor calibration, clock synchronization, coordinate alignment, failure detection, and validation data.
Implementation Checklist
A deployable fusion pipeline needs more than an algorithm name.
- Calibrate each sensor before fusing it.
- Timestamp readings and handle different update rates.
- Estimate noise and bias under realistic operating conditions.
- Reject impossible readings and detect stuck or missing sensors.
- Compare fused output against independent ground truth before release.
Break Simple Averaging
Select Drone, increase drift and interference, then compare Simple against Weighted. Watch why equal trust becomes risky.
Tune Alpha
Select Complementary and move alpha. Too high follows the drifting fast sensor; too low follows noisy absolute readings.
Remove A Sensor
Disable the absolute sensor during Indoor navigation. Notice which algorithms degrade gracefully and which lose their anchor.