Compare inverse-variance weighting, outlier gating, and Kalman-style prior updates for IoT sensor estimates
animation
sensor-fusion
estimation
uncertainty
kalman
iot-analytics
interactive
Interactive sensor fusion calculator with scenario presets, weighted estimates, uncertainty bands, Kalman-style prior updates, outlier gating, formula checks, and mobile-safe reference material.
AnimationSensor FusionUncertainty
Sensor Fusion Calculator
Fuse three noisy IoT sensor readings, gate an obvious outlier, and update a prior estimate.
The visual keeps the raw readings, uncertainty bands, weights, formulas, and plain-language diagnosis in sync.
22.7 CFused measurement
+/-0.6 CFused uncertainty
AcceptedOutlier gate
TryLoad Temperature, set Sensor A sigma to 0.4 and Sensor B sigma to 1.2, then enable the 3-sigma gate.
ObserveThe fused estimate moves closer to Sensor A because inverse variance is larger; Bad sensor is excluded beyond the gate. Step confirms this readout.
ExplainInverse-variance fusion gives precise measurements more weight, while residual gating rejects statistically inconsistent observations. Step exposes this mechanism.
Technical boundariesThe calculator assumes independent Gaussian scalar errors and omits correlated bias, time alignment, nonlinear dynamics, drift, and adaptive noise.
Colour keyanalytics ml identitycurrent / primaryreference / datasuccesscautionerror / failure
Readings are not equal
Each sensor reports a value and a standard deviation. Smaller sigma means a narrower uncertainty band.
Weights follow variance
Independent Gaussian readings are combined with weights proportional to 1 / sigma^2.
Bad readings can dominate
A confident but wrong sensor can pull the estimate away unless a residual gate rejects it first.
The prior still matters
A Kalman-style update blends the fused measurement with what the system believed before this sample.
1
Raw readings
Plot every sensor on one scale.
2
Convert variance
Square sigma to get variance.
3
Weight sensors
Precise sensors receive more trust.
4
Gate outliers
Reject readings too far from the cluster.
5
Fuse estimate
Compute the weighted estimate and sigma.
6
Update prior
Blend the measurement with the prior state.
Raw readingsPlot each sensor reading and its uncertainty interval before doing any math.
Raw readings
Plot each sensor reading and its uncertainty interval before doing any math.
Stage 1 of 6
What changedThree readings are visible.
Start by checking whether the uncertainty bars overlap.
DiagnosisReady to fuse
The default readings agree closely enough to combine.
Result--
Use Step or Play to walk through the calculation.
Controls
Choose a preset, then adjust readings and uncertainty to see how the estimate changes.
Scenario
Sensor readings
Prior and gate
Formula Trace
The calculator uses a simple independent-Gaussian teaching model. It is accurate for the assumptions shown here, but real deployments must validate calibration, correlation, and outlier logic.
variance_i = sigma_i^2raw_weight_i = 1 / variance_iSmaller standard deviation produces a much larger raw weight because variance is squared.normalized_weight_i = raw_weight_i / sum(raw_weight)fused_value = sum(normalized_weight_i * reading_i)Only accepted readings are included after the outlier gate is applied.Kalman gain: K = P / (P + R)posterior = prior + K * (fused_value - prior)The prior variance is P. The fused measurement variance is R.
Reference Material
Use these cards to check terms, design decisions, and model limits while experimenting with the animation.
Quick Reference
ReadingThe reported measurement from a sensor after calibration and unit conversion.SigmaThe standard deviation of measurement error. Smaller sigma means a tighter confidence band.VarianceThe squared standard deviation. In this model, fusion trust is based on inverse variance.WeightThe normalized share of trust assigned to an accepted reading.Fused estimateThe weighted mean of accepted readings, expressed in the scenario unit.PosteriorThe updated estimate after blending the prior and the fused measurement.
Fusion Design Checklist
Use the same unitDo not fuse meters, RSSI, and probability directly unless they have been converted into a common state model.Align time stampsA fast-moving system needs readings from the same time window, not stale measurements mixed with current ones.Calibrate sensorsWeighting reduces random noise. It does not automatically remove bias from a poorly calibrated device.Check independenceThe simple formula assumes independent errors. Shared power, temperature, or placement can make errors correlated.Gate outliers firstReject or downweight readings that fail a residual test before allowing a confident sensor to dominate.Handle missing dataA real fusion pipeline needs a policy for dropped packets, stale sensors, and degraded operation.
Technical Accuracy Notes
Gaussian assumptionInverse-variance weighting is optimal for unbiased, independent Gaussian measurement errors.Fused sigmaThe calculator uses sqrt(1 / sum(1 / sigma_i^2)) for accepted independent sensors.Kalman-style updateThis page shows a one-dimensional measurement update, not a full multi-state Kalman filter.Outlier gateThe gate is a teaching residual check around the median cluster, not a universal fault-detection rule.Correlated errorsIf sensors share the same error source, the fused uncertainty will be too optimistic unless covariance is modeled.Uncertainty is not truthA small sigma means the model trusts the sensor. It does not prove the sensor is correct.
Related Animations
These pages extend the same estimation idea from a weighted measurement into dynamic filters and visual sensor fusion.