The Sensor Fusion Atlas

Twenty-one lessons answer one question: given several flawed sensors, what is the best estimate, and how sure is it? Pick a situation and the atlas routes it to the method the series recommends. In a 30 s tunnel the IMU alone ends 155 m off. The error-state filter of Lesson 14 ends 6.6 m off.

Pick a situation. Watch its route light up through the map, and read the evidence from the lesson that derived it. Then we walk the four families one chapter each, and finish with a router you set yourself.

You need the earlier lessons, or what a variance is and some curiosity. Every number links back to its lesson.

Lesson 22 of 22 in Sensor Fusion: Classical to Modern. It follows Debugging and Consistency and closes the series.

Route a fusion problem

Every number comes from the lesson named in the read-out. Most are that lesson's illustrative toy; the street numbers are TransFusion's Table 5 (nuScenes validation). Bars use a log scale and lower is better. The route lists the lessons to read, in order.

Chapter 0

Sensors Fail in Different Places

Build a sensor suite and find the conditions where every sensor goes dark at once

An engineer gets a robot car with five sensors and about twenty methods to choose from. Each lesson in this series solved one piece. This page puts the pieces on one map, so you can route a new problem to a method in a minute.

The map rests on one fact from Lesson 1: different sensors fail in different conditions. A camera goes blind at night, where a LiDAR still works. GNSS dies in a tunnel, where the IMU keeps counting. Fusion pays because these failures do not overlap.

Find the dark columns

Each row is a sensor, each column a condition. Turn sensors on to build a suite. The bottom row says whether the suite still sees: green covered, grey weak (degraded, or bridged for seconds by the IMU), red dark.

Illustrative ratings for keeping track of a car and its surroundings. Real performance depends on the model, the weather and the scene. The IMU works everywhere for seconds and drifts after that (Lesson 13), so it only bridges.

Overlap is the whole story. GNSS and IMU leave the tunnel bridged for seconds only, because the IMU drifts. Add a LiDAR and it covers the tunnel. Two cameras leave night dark: two copies of one weakness add nothing there.

Voting turns this into a number. Say each sensor works 95% of the time and fails on its own. Call that chance R. Three sensors that vote give the right answer when at least two of them work. Call that chance R-two-out-of-three.

Say it aloud

R-two-out-of-three equals three R squared, minus two R cubed.

R2oo3
R-two-out-of-three the chance that at least two of the three sensors work, so the vote is right.
3R2
three R squared three ways to pick a working pair. It counts the case where all three work three times.
2R3
two R cubed takes back the two extra counts of the all-three-work case. R is the chance one sensor works, 0.95 here.
In plain words

Square R and triple it. Cube R, double it, and subtract. The result is the chance the vote is right.

With numbers

R = 0.95: 3 × 0.9025 − 2 × 0.857 = 0.99275. One sensor is right 95% of the time; the vote is right 99.3% of the time. Two cameras that must both work for stereo give 0.95 × 0.95 = 0.9025 (Lesson 1).

The formula assumes the failures are independent. Fog that blinds the camera also hurts the LiDAR, so the real gain is smaller.

The idea of the atlas. Every method in the series answers one question: given several noisy, partial, possibly conflicting readings, what is the best estimate, and how sure should we be? The methods differ in what they assume and in how they store the doubt.
Failure: sensors with a shared weakness. Symptom: the fused system goes dark exactly when one sensor does. Measure: a red column in the grid; in Lesson 1, a 1% shared cause caps three spare sensors near 0.99. Fix: add a sensor with different physics, such as radar for fog.

The road

  1. Four families and a spine: the map, its lineage and its timeline.
  2. Trust by precision: the seed inside every method.
  3. One recursion, four beliefs: Kalman, EKF, UKF or particles.
  4. Fuse estimates: add precisions, or intersect covariances.
  5. From a filter to a system: drift, fixes, targets and clocks.
  6. Graphs over windows: solve the whole trajectory at once.
  7. Learned fusion: let attention choose the weights.
  8. The audit: grade any filter by its surprises.
  9. Showcase: route any problem with six questions.
  10. Field guide: the numbers, the symptoms, the library.
Three sensors each work 95% of the time, independently, and vote two out of three. How often is the vote right?

Chapter 1

Four Families and a Spine

Walk the map of all twenty-one lessons, and see which ideas grew from which

The twenty-one lessons fall into four families. They are stages, not buckets. Each family answers a harder form of the question than the one before.

  1. Combine measurements (Lessons 1 to 3): two readings of one thing at one moment. Weight each by its precision.
  2. Recursive filters (Lessons 4 to 11): the world moves and readings arrive over time. Carry a belief; predict, then update.
  3. Multi-sensor systems (Lessons 12 to 15): which reading came from which target, how an IMU drifts, how GNSS bounds it, and how clocks and mounts line up.
  4. Perception and learning (Lessons 16 to 20): cameras and LiDARs with IMUs, graphs over windows of poses, and networks that learn where to fuse.

One more lesson runs along all four as a spine. Lesson 21 audits every filter: is it as sure as it claims?

Walk the lineage

Solid lines mean "learn this first". Dashed lines mean "grew out of". Tap a node, or step through with the buttons. The timeline view puts the same story on a calendar.

The edges are this series' teaching order, not a citation graph. Dates name the first well-known paper or system for each idea.

Look at how much hangs off Lesson 4, the Bayes filter. The Kalman filter is the Bayes filter with straight models and bell curves. The EKF and UKF are the Kalman filter on curved models. The information filter stores the same belief as precision. The particle filter drops the bell curve. So 5 of the 7 filters after Lesson 4 (Lessons 5, 7, 8, 9 and 10) are one recursion with a different way to store the belief.

The timeline adds the dates. The classical era, from 1960 into the 1990s, built the core of straight models and bell curves. The robotics era added particles, SLAM and factor graphs. From 2016, the deep era made the fusion rule itself learnable. Each era wrapped the last: KalmanNet still runs a Kalman recursion and lets a network compute the gain.

Failure: learning a method out of order. Symptom: tuning an EKF feels like guesswork. Measure: can you say why Lesson 5's gain is 13/22 = 0.59? Fix: walk the solid edges back to Lesson 3 and learn the precision rule first.
On the map, a dashed edge runs from the Kalman filter to the EKF. What does it mean?

Chapter 2

Trust by Precision: the Seed in Every Method

Weight each reading by one over its variance, then find the same rule inside the Kalman gain

Two thermometers read one room. Thermometer A reads 22.0 °C with a noise of 0.5 °C. Thermometer B reads 20.0 °C with a noise of 2 °C. The plain average, 21.0 °C, is about twice as noisy as A alone. A good fuser leans on A.

By how much? Lesson 3 answers with precision: one over the variance, where the variance is the noise squared. A's precision is 1/0.25 = 4, and B's is 1/4 = 0.25. Call the readings x-A and x-B, and their precisions P-A and P-B. Call the fused estimate x-f.

Say it aloud

x-f equals P-A x-A plus P-B x-B, all over P-A plus P-B.

xf
x-f the fused estimate, in °C.
PA
P-A the precision of A: one over its variance, in 1/°C².
xA
x-A the reading of A.
PB
P-B the precision of B.
xB
x-B the reading of B.
/ (PA + PB)
over P-A plus P-B divide by the total precision, so the two weights add to 1.
In plain words

Multiply each reading by its precision. Add the two products. Divide by the total precision. The fused precision is that total, P-A plus P-B.

With numbers

P-A = 4, P-B = 0.25: x-f = (4 × 22 + 0.25 × 20) / 4.25 = 21.88 °C. A's weight is 4/4.25 = 0.941. The fused precision is 4.25, so the fused noise is 0.485 °C, better than A's 0.5 (Lesson 3).

Find the bottom of the bowl

The curve is the fused noise for every weight on A. Drag the weight to find the bottom, then change either thermometer's noise and watch the bottom move.

0.50
0.5 °C
2.0 °C

Exact for independent noise: the fused variance is w²σA² + (1 − w)²σB², with its bottom at w = PA/(PA + PB).

This rule hides in the rest of the series. In Lesson 5, call the prediction's variance P-bar and the reading's variance R. The Kalman gain K is the weight on the reading, the same precision weight with new names:

K = P̄ / (P̄ + R) = 13 / (13 + 9) = 0.591. The drone predicts 110 m and reads 115 m, so it lands at 110 + 0.591 × 5 = 112.95 m, with variance 0.409 × 13 = 5.32 m².

The information filter (Lesson 9) stores precisions and adds them. Particle weights (Lesson 10) multiply by how well each particle explains the reading. A factor graph (Lesson 17) divides each squared error by its variance. Attention (Lesson 19) learns a weight per source. One rule, many costumes.

Failure: a variance that lies. Symptom: the fuser follows the bad thermometer. Measure: tell the fuser B's noise is 0.5 °C when it is really 2 °C, and B gets half the weight; the fused noise rises from 0.485 to 1.03 °C. Fix: measure each variance against a known truth on a bench (Lesson 3, Chapter 8).
Sensor A has variance 1 and sensor B has variance 9. What weight does the fuser give B?

Chapter 3

One Recursion, Four Ways to Store the Belief

Predict and update a belief, then choose its shape: a bell curve, a tangent, sigma points or particles

Now the robot moves, and readings arrive over time. The Bayes filter of Lesson 4 carries a belief: a probability for every place the robot might be. Two steps repeat. Predict: move the belief with the motion model, which blurs it. Update: multiply by how well each place explains the reading, which sharpens it.

Call the belief over place x bel(x). Call the chance of reading z from place x p(z | x), the likelihood. Call the chance of moving from place x-prime to place x p(x | x′), the motion model. A constant η rescales the result so it adds to 1.

Say it aloud

bel of x equals eta, times p of z given x, times the sum over x-prime of p of x given x-prime, times bel of x-prime.

bel(x)
bel of x the new belief that the robot is at place x.
η
eta one over the total, so the new belief adds to 1.
p(z | x)
p of z given x the likelihood: how well place x explains the reading z.
Σx′
the sum over x-prime add one term for every place the robot could have come from.
p(x | x′)
p of x given x-prime the motion model: the chance to move from x-prime to x.
bel(x′)
bel of x-prime the old belief at place x-prime.
In plain words

For each place x, add the old belief from every place x-prime, each times the chance of moving from there. That is the prediction. Multiply it by the likelihood p of z given x, then rescale with eta so the belief adds to 1.

With numbers

Lesson 4's hallway: 8 cells with a flat belief of 0.125, 3 of them doors. The sensor says "door"; p(door | door) = 0.8 and p(door | wall) = 0.3. The total is (3 × 0.8 + 5 × 0.3) / 8 = 0.4875, so eta = 1/0.4875. Each door cell rises to 0.8 × 0.125 / 0.4875 = 0.205. Each wall cell falls to 0.077.

The sum runs over every place, which is too slow when the state is continuous. Each later filter stores the belief in a cheaper shape:

Fit a shape to the belief

Grey dashes are the honest belief. Teal is what the chosen filter stores. Pick a problem, then a filter, and read where its answer lands.

Illustrative, exact maths. Straight: y = 2x + 1. Squared: y = x². Both start from a belief with mean 2 and variance 4, as in Lesson 8. Three landmarks: Lesson 10's hallway, peaks at 10, 30 and 50 m, each 1.5 m wide; "gaps" are more than 4 m from every landmark, inside the 72 m hallway. Particles: 400 seeded samples.

On the straight sensor all four agree, and the Kalman filter is exact. Square the reading and the tangent fails: the true mean is 8, the EKF says 4, and three sigma points say 8. Give the robot three identical landmarks and every bell curve fails. The best one centres on 30 m with a width of 16.4 m and puts 58% of its belief in empty hallway.

Failure: a bell curve on a lost robot. Symptom: the filter locks onto the middle landmark while the robot stands at another. Measure: 58% of the fitted bell lies in empty hallway, where the honest belief has under 1%. Fix: particles or a grid, until the belief has one peak.
A belief has mean 2 and variance 4. You push it through y = x squared. Which estimate of the mean of y is right?

Chapter 4

Fuse Estimates, Not Only Readings

Add precisions when estimates are independent, and intersect them when they might share data

Two robots each send an estimate of a wall: 10 m, variance 4 m². If their errors are independent, the information filter of Lesson 9 adds the precisions: 0.25 + 0.25 = 0.5, so the fused variance is 2 m². Six cameras, six additions.

Now say robot B copied its number from A. The two estimates share all their error, and adding precisions counts one reading twice. Lesson 2 calls this double counting. The fuser claims 2 m², but the real variance stays 4 m².

Call the correlation of the two errors rho: 0 when independent, 1 for a copy. The real variance of the average is 4(1 + rho)/2. At rho 0.5 it is 3 m², and the naive fuser still claims 2.

Covariance intersection (CI, Lesson 11) fuses without knowing rho. Call the two estimates' variances P-1 and P-2, and a weight ω between 0 and 1.

Say it aloud

P-C-I inverse equals omega P-one inverse, plus one minus omega, P-two inverse.

PCI−1
P-C-I inverse the fused precision that CI claims.
ω
omega a weight between 0 and 1, chosen to make the fused doubt smallest.
P1−1
P-one inverse the precision of the first estimate: one over its variance.
(1 − ω)
one minus omega the rest of the weight, so the two weights add to 1.
P2−1
P-two inverse the precision of the second estimate.
In plain words

Take omega of the first precision and the rest from the second. The blend is the fused precision. Because the weights add to 1, in one dimension the result is never sharper than the better source.

With numbers

P-1 = P-2 = 4 m², so both precisions are 0.25. For any omega the blend is 0.25, so CI claims 4 m²: the honest answer for a copy. With independent estimates it is cautious, since plain addition would honestly give 2 m².

Catch the double count

Each dot is one fused error from 240 simulated pairs. Purple is the 95% band the chosen fuser claims. Raise the correlation and count the red dots outside.

1.00

Illustrative, seeded: both estimates have variance 4 m² and errors with correlation rho. Both fusers give the same fused number here (the average); only the claimed band differs. The expected share outside is exact; the dot count varies with the seed.

At rho = 1, about 16% of the naive fuser's errors fall outside a band that should miss 5% (Lesson 11). CI's band misses about 5% at every rho, because it never assumes the errors are independent.

Failure: data incest. Symptom: confidence grows each time two nodes gossip, with no new readings. Measure: a NEES above its band on a bench test; each echo halves the naive claim (Lesson 11). Fix: CI, or track what each node already knows.
Robot B copied robot A's estimate; each has variance 4 m². A fuser that adds precisions claims 2 m². What is the honest variance?

Chapter 5

From a Filter to a System

Bound the IMU's drift with fixes, sort readings to targets, and line up the clocks

A real vehicle runs its filter on messy hardware. Family 3 is the engineering that makes the filter work. An IMU drifts (Lesson 13), and GNSS bounds the drift (Lesson 14). Each reading must find its target (Lesson 12), and the clocks and mounts must agree (Lesson 15).

Start with the drift. Call the accelerometer bias b. From a perfect start, the IMU's position error grows as one half b t squared. Call the GNSS noise σ. The IMU beats GNSS until its drift reaches sigma. Call that time t-star.

Say it aloud

t-star equals the square root of two sigma over b.

t*
t-star the time after a fix when the IMU's drift equals the GNSS noise, in seconds.
√
the square root of undoes the t squared in the drift law.
2σ
two sigma twice the GNSS noise, in metres. The two comes from the one half in the drift law.
b
b the accelerometer bias, in m/s².
In plain words

Set the drift, one half b t squared, equal to sigma and solve for t. Before t-star, the IMU's motion is better than a fix. After it, the next fix is better.

With numbers

Lesson 14: b = 0.05 m/s² and sigma = 1.5 m. t-star = √(2 × 1.5 / 0.05) = √60 = 7.7 s. GNSS fixes come every second, well inside 7.7 s, so the IMU only has to bridge short gaps.

Coast through the tunnel

The shaded span is the tunnel, with no fixes. Warm is the IMU alone, teal the fused filter, and the dashed blue line the GNSS noise. Move the bias and the tunnel length.

0.050 m/s²
30 s

Illustrative, a constant bias and nothing else: the IMU alone is one half b t squared from the start. The fused filter is reset to 1 m by each 1 Hz fix and has learned the bias to within 0.007 m/s² (made up, near Lesson 14's learned case). GNSS noise 1.5 m.

In the tunnel the fixes stop. Alone for 30 s, the IMU in the device drifts 0.5 × 0.05 × 900 = 22.5 m. The fused filter learned the bias before the tunnel, so only the leftover drifts. A leftover of 0.007 m/s² adds 3.2 m to the 1 m it entered with. The first fix after the tunnel snaps it back.

The other two lessons guard the inputs. Data association gates each reading by its statistical distance before it reaches a track. With 10 false alarms a frame, nearest neighbour lost a track in 16 of 100 runs, and JPDA in 3. Calibration lines up the clocks: a 10 ms offset at 30 m/s puts LiDAR points 30 cm behind the car the camera sees.

Failure: a time offset between sensors. Symptom: the fused estimate is fine at rest and wrong at speed. Measure: the error grows with speed, 30 m/s × 10 ms = 30 cm. Fix: hardware timestamps or PTP, or estimate the offset as a state (Lesson 15).
An accelerometer bias is 0.05 m/s² and the GNSS noise is 1.5 m. After about how long does the IMU drift past one GNSS fix?

Chapter 6

Graphs Over Windows: Revisit the Past

Write every reading as a weighted squared error and solve for the whole trajectory at once

A filter summarises the past and throws it away. That is fast, but a late reading cannot fix an old pose. The visual-inertial and LiDAR-inertial systems of Lesson 16 and Lesson 17 keep a window of past poses and solve for all of them together.

Each reading becomes a factor. Call its residual r-i: the gap between what reading i says and what the candidate poses x predict. Call that reading's variance sigma-i squared. The best trajectory, x-hat, makes the weighted sum smallest. This is the maximum a posteriori (MAP) estimate.

Say it aloud

x-hat equals the arg-min over x of the sum over i of r-i of x squared, over sigma-i squared.

x̂
x-hat the best trajectory: every pose in the window at once.
argminx
the arg-min over x the poses x that make what follows smallest.
Σi
the sum over i one term per factor: odometry, IMU, GNSS, loop closure.
ri(x)2
r-i of x squared factor i's residual for the candidate poses, squared, in m².
σi2
sigma-i squared factor i's variance. Dividing by it is the precision weight of Chapter 2.
In plain words

Write each reading as a residual r-i. Divide its square by the reading's variance sigma-i squared. Add them all, then move every pose until the sum is smallest.

With numbers

Lesson 17's two poses: a prior says x-0 = 0 (variance 1), odometry says x-1 − x-0 = 10 (variance 1), and GNSS says x-1 = 11 (variance 4). Setting the derivatives to zero gives x-0 = 0.167 m and x-1 = 10.333 m. A Kalman filter gives the same x-1 but leaves x-0 at 0.

Let a late fix reach back

The robot drives ten 1 m steps, and its odometry reads 5% long. Bars show each pose's error. Choose filter or graph, then sharpen the fix at pose 10.

0.10 m

Illustrative, exact least squares: a 0.01 m prior on pose 0, ten odometry factors of 1.05 m with a 0.05 m sigma, and one absolute fix of 10.00 m on pose 10.

That is the deep link. A Kalman filter is this graph shaped as a chain and solved forward once. The graph keeps the chain, so a late factor reaches back. In the device the fix pulls the whole chain toward the truth: worst error 0.14 m. The filter fixes only pose 10 and leaves pose 9 0.45 m off.

Lesson 16 adds the camera's twist: one camera sees shape but not size, and the IMU's acceleration sets the scale, 1.8 on its walk. Lesson 17 adds loop closures, preintegrated IMU factors and the blind corridor.

Failure: an overconfident factor. Symptom: the loop closes and the map stays folded. Measure: in Lesson 17 the 30 m corridor came out 2.0 m long, while each blind factor claimed 2 cm. Fix: give blind directions honest doubt, from the scan's eigenvalues.
A fix arrives at the last pose of a chain. Which poses does a forward Kalman filter correct?

Chapter 7

Learned Fusion: Let the Network Choose the Weights

Draw camera and LiDAR into one grid, and let attention weigh each source

A camera sees what a thing is. A LiDAR measures how far away it is. A radar measures how fast it moves, even in fog (Lesson 18). Classical fusion uses the calibration to tell the network which pixel belongs to each LiDAR point. If the calibration is off, the pairing is wrong.

The networks of Lesson 19 learn the pairing. Both sensors draw features into one bird's-eye-view (BEV) grid, a top-down map of the road. Then attention lets a query score each candidate source and turns the scores into weights. Call the score of source i s-i and its weight w-i.

Say it aloud

w-i equals e to the s-i, over the sum over j of e to the s-j.

wi
w-i the weight on source i, between 0 and 1.
esi
e to the s-i the exponential of source i's score: always positive, and it grows fast.
Σj
the sum over j add one term for every candidate source.
esj
e to the s-j the exponential of each source's score, s-j being the score the network learned to give source j.
In plain words

Raise e to each score s-i. Divide each by the total. The weights w-i are positive and add to 1, like the precision weights of Chapter 2, but learned from data.

With numbers

Scores 2.0 and 1.6 (Lesson 19): e to the 2.0 is 7.39 and e to the 1.6 is 4.95. The weights are 7.39 / 12.34 = 0.60 and 4.95 / 12.34 = 0.40.

Switch the cameras off

Grey bars fuse by hard matching; teal fuses by attention. Choose how many of the six cameras die and compare what each fuser keeps.

Numbers from TransFusion (Bai et al., CVPR 2022), Table 5: nuScenes validation mAP with the dropped images' features set to zero. CC is point-wise concatenation and PA is PointAugmenting, both hard associations. The axis starts at 30 mAP; dashed outlines mark each fuser with all cameras on.

Soft weights survive a dead sensor. With all six cameras off, the concatenating fuser drops from 63.3 to 39.5 mAP. TransFusion drops from 65.6 to 61.7. Here mAP, mean average precision, is a detection score out of 100.

Lesson 20 goes the other way: keep the filter and learn one piece of it. KalmanNet keeps the Kalman recursion and trains a small recurrent network to output the gain, for systems whose noise model is unknown but whose data exists.

Failure: a network that never saw a dead sensor. Symptom: one camera fails and detections vanish or ghosts appear. Measure: drop each sensor in validation and log the score. Fix: modality dropout, which zeroes a whole sensor on some training samples (Lesson 19).
Two sources get attention scores 2.0 and 1.6. What weight goes to the first?

Chapter 8

The Audit: Is It as Sure as It Claims?

Grade any filter by its own surprises, with no ground truth

Every method above reports a doubt: a variance, a covariance, a particle spread. A filter can be sure and wrong at once. Tell a Kalman filter that its target moves 100 times more smoothly than it does. The filter of Lesson 21 claims ±0.75 m while its real error is 3.6 m.

The filter cannot hide its surprises. Each update, it predicts the reading. The gap between the real reading and the prediction is the innovation, ν. The filter also predicts how big that gap should be: its variance S. Their ratio is the normalised innovation squared (NIS), ε.

Say it aloud

epsilon equals nu squared over S.

ε
epsilon the NIS: the surprise measured in units of its own predicted size.
ν2
nu squared the innovation squared: the reading minus the predicted reading, squared, in m².
S
S the variance the filter expects for nu: its predicted variance plus the sensor's variance, in m².
In plain words

Square the surprise nu. Divide by S, the size the filter expected. For a one-number reading, an honest filter's epsilon averages 1. Far above 1, the filter is overconfident.

With numbers

Lesson 5's drone: nu = 115 − 110 = 5 m and S = 13 + 9 = 22 m², so epsilon = 25 / 22 = 1.14. For the mean of 50 such values, the 95% band is 0.65 to 1.43 (a chi-square band, Lesson 21).

Make the filter lie

Purple is the error the filter claims; grey dashes are its real error. The gauge is its mean NIS against the green band. Slide the motion noise the filter believes.

×1

Exact steady state, Lesson 21's toy: a target on a line with random acceleration (true noise intensity 0.05 m²/s³), a 2 m sensor, one reading a second. The real error comes from the error covariance of the mistuned filter, not from one run.

Slide the believed noise. At the true value the mean NIS is 1.00. At 100 times too small, the filter claims ±0.75 m, its real error is 3.6 m, and the mean NIS climbs to 4.7, far outside the band. At 100 times too large it falls to 0.63, just below the band: the filter is timid.

Lesson 21 adds three more checks. NEES uses the ground truth on a bench. Whiteness tests whether one surprise predicts the next. Robust costs such as Huber cap the pull of one wild reading.

Failure: a filter tuned by eye. Symptom: the track looks smooth and is wrong. Measure: a mean NIS of 4.7 against a band of 0.65 to 1.43. Fix: raise the process noise Q until the NIS sits in the band, then check whiteness.
A filter's mean NIS over 50 readings is 4.7, and the band is 0.65 to 1.43. What is wrong?

Chapter 9

Showcase: Route Any Problem

Answer six questions and read the stack of lessons the series would build

The hero routed ten fixed situations. Here you set the questions. The router follows the series' rules in order. Line up the sensors, sort readings to targets, and choose how to store the belief. Then guard any shared estimates, and always audit.

Build the stack

Answer each question. The map lights the lessons in the stack, and the read-out lists them from input to audit.

1 · Which sensors?
2 · How does the sensor model bend?
3 · How many places could it be?
4 · How many targets?
5 · Do estimates from other nodes share data?
6 · Must it revisit the past?

The router encodes this series' defaults, in this order: calibration, association, belief shape, sensor architecture, shared estimates, audit. Real systems mix layers. Evidence numbers are the same lesson numbers as the hero's.

Try a robot car in a crowded city: camera, LiDAR and radar, many targets. The stack is calibration (Lesson 15), BEV fusion to detect (Lesson 19), association (Lesson 12), a filter per track (Lesson 5) and the audit (Lesson 21). Switch to IMU and GNSS with one target and the stack shrinks to the error-state filter of Lesson 14.

Now choose several places. The particle filter replaces the bell-curve filters, whatever the sensors. Choose "Yes, loops or a map" and the camera and LiDAR stacks switch from filters to graphs.

Failure: one method for every problem. Symptom: an EKF on a lost robot, or plain addition between gossiping nodes. Measure: the router's stack for your problem differs from what runs. Fix: answer the six questions before you write the filter.
You track many cars in clutter with a camera, LiDAR and radar rig. Which layer comes before the filter on each track?

Chapter 10

Field Guide

Keep the routes, the numbers, the symptoms, the code and the library in one place

Fusion pays because sensors fail in different places. Weight every source by its precision. Carry a belief over time, and store it in the cheapest shape that fits: a bell curve, a tangent, sigma points or particles. Guard against shared data, line up the clocks, keep a window of poses when the past matters, and let networks learn weights when the pairing is hard. Then audit every claim with its own surprises.

LessonUse it whenNumber from that lesson
1 Why fusedeciding how to wire sensors2 of 3 vote: 0.99275; two in series: 0.9025
2 Architectureschoosing where to fuseraw data needs about 31,000 times the bandwidth of tracks
3 Two measurementstwo readings, one momentnoise 0.5 and 2 fuse to 0.485
4 Bayes filtera small discrete statebelief in the true cell from 1 in 16 to 0.94
5 Kalman filterstraight models, one peak110 m (var 13) and 115 m (var 9) give 112.95 m (var 5.32)
6 Complementarytilt from a gyro and an accelerometersteady error 0.245° where the gyro alone drifts 30° a minute
7 EKFgently curved modelsfrozen tangent 10 m off; redrawn within 0.1 m
8 UKFsharply curved modelsmean of x²: true 8, EKF 4, UKF 8
9 Information filtermany independent sensors per stepsix cameras shrink the ellipse from 8 m to under 1 m
10 Particle filterseveral possible placesa bell curve puts 58% in empty hallway
11 Covariance intersectionestimates may share datanaive band misses 16% instead of 5%
12 Data associationmany targets in cluttertracks lost in 100 runs: NN 16, JPDA 3
13 IMUdead reckoning between fixesstill for a minute: phone grade 64 m, navigation grade 0.45 m
14 INS/GNSSIMU plus satellite fixes30 s tunnel: 155 m alone, 6.6 m fused
15 Calibrationevery multi-sensor rig, first10 ms late at 30 m/s: 30 cm
16 VIOone camera and an IMUIMU alone 32.7 m in 30 s; fused near 4 cm
17 LiDAR-inertialLiDAR and IMU, loops, mapsloop gap 29.8 m LiDAR alone; 0.013 m fused with a loop closure
18 Driving fusioncamera, LiDAR and radar detectiona BEV grid of ±50 m at 0.5 m has 40,000 cells
19 Transformer BEVpairing is hard or sensors die6 cameras dead: 61.7 mAP against 39.5 (TransFusion)
20 Learned filtersthe noise model is unknown, data existsKalmanNet learns only the gain
21 Consistencyalwaysclaims ±0.75 m, real 3.6 m, mean NIS 4.7

The six questions

  1. Are the clocks and mounts calibrated? If not, nothing downstream works (Lesson 15).
  2. Do you know which reading came from which target? If not, associate first (Lesson 12).
  3. Could it be in several places? Then particles or a grid (Lessons 4 and 10).
  4. How does the model bend? Straight: Kalman. Gently: EKF. Sharply: UKF. Unknown with data: a learned gain (Lessons 5, 7, 8 and 20).
  5. Do estimates share data you cannot track? Then covariance intersection, not addition (Lesson 11).
  6. Must it revisit the past? Then a factor graph over a window (Lessons 16 and 17).

Then audit it, whatever you built: mean NIS inside its band, surprises white (Lesson 21).

Read the symptom

SymptomLikely causeGo to
Fine at rest, wrong at speeda time offset or a wrong mountLesson 15
Confidence grows with no new datadouble counting between nodesLessons 2 and 11
Locks onto the wrong landmarka bell curve on a belief with several peaksLesson 10
Diverges after a sharp turnthe tangent line lies on a curved modelLessons 7 and 8
Tracks swap where targets crosshard nearest-neighbour associationLesson 12
Drifts in a tunnel or indoorsthe IMU coasting on an unlearned biasLessons 13 and 14
Map folds in a plain corridora blind direction claiming certaintyLesson 17
Detections vanish when a camera diesa fuser never trained on a dead sensorLesson 19
Smooth track, mean NIS far above 1process noise set too smallLesson 21

The seed, as code

pythondef fuse(xa, Pa, xb, Pb):                        # Lesson 3: precision weighting
    """xa, xb: readings; Pa, Pb: precisions (1 / variance)."""
    return (Pa * xa + Pb * xb) / (Pa + Pb), Pa + Pb

def kalman_step(x, P, z, R, v=10.0, dt=1.0, Q=4.0):    # Lesson 5, one dimension
    x_bar, P_bar = x + v * dt, P + Q            # predict: slide the guess, grow the doubt
    nu, S = z - x_bar, P_bar + R                # innovation and its expected size
    K = P_bar / S                               # gain: the precision weight again
    nis = nu ** 2 / S                           # Lesson 21: honest near 1 on average
    return x_bar + K * nu, (1 - K) * P_bar, nis

print(fuse(22.0, 4.0, 20.0, 0.25))              # (21.88..., 4.25)
print(kalman_step(100.0, 9.0, 115.0, 9.0))      # (112.95..., 5.318..., 1.136...)

Where it runs

Phones and headsets run visual-inertial odometry. Drones and wearables run complementary attitude filters. Cars and aircraft run INS/GNSS. Survey robots map warehouses and mines with LiDAR and IMU. Robot cars fuse camera, LiDAR and radar in a bird's-eye view, then track what they see.

Keep going

References

The library behind the series: the textbooks to keep on the shelf, then the paper behind each lesson.

Textbooks

  1. Thrun, Burgard & Fox. Probabilistic Robotics. MIT Press, 2005. The canonical text for Bayes/Kalman/particle filters, SLAM, and data association: the spine of Lessons 4 to 12.
  2. Barfoot. State Estimation for Robotics (2nd ed.). Cambridge University Press, 2024. Matrix-Lie-group estimation, batch vs recursive, factor graphs. The modern companion to Thrun. publisher
  3. Bar-Shalom, Li & Kirubarajan. Estimation with Applications to Tracking and Navigation. Wiley, 2001. The tracking reference for data association (PDA/JPDA), NEES/NIS consistency, IMM. Backs Lessons 12 and 21.
  4. Groves. Principles of GNSS, Inertial, and Multisensor Integrated Navigation Systems (2nd ed.). Artech House, 2013. The INS/GNSS reference: loose/tight/deep coupling and the error-state KF. Backs Lessons 13 to 14.
  5. Simon. Optimal State Estimation: Kalman, H-Infinity, and Nonlinear Approaches. Wiley, 2006. Clear derivations of KF/EKF/UKF and the information filter. Backs Lessons 5 to 9.
  6. Maybeck. Stochastic Models, Estimation, and Control (Vol. 1). Academic Press, 1979. The classic first-principles treatment of the Kalman filter and stochastic estimation.
  7. Särkkä. Bayesian Filtering and Smoothing. Cambridge University Press, 2013. Unifies KF/EKF/UKF/particle filters as Bayesian inference; covers smoothing. free PDF
  8. Dellaert & Kaess. Factor Graphs for Robot Perception. Foundations and Trends in Robotics, 2017. The factor-graph / smoothing-and-mapping (GTSAM) viewpoint behind Lesson 17. PDF
  9. Titterton & Weston. Strapdown Inertial Navigation Technology (2nd ed.). IET / AIAA, 2004. The strapdown-INS mechanization reference: how raw IMU becomes attitude and position. Backs Lesson 13.

Papers behind each lesson

  1. Kalman, R. E. "A New Approach to Linear Filtering and Prediction Problems." Journal of Basic Engineering, 1960. The paper that started it all (Lesson 5). DOI
  2. Julier & Uhlmann. "A New Extension of the Kalman Filter to Nonlinear Systems." SPIE AeroSense, 1997. The unscented transform / UKF (Lesson 8). DOI
  3. Julier & Uhlmann. "A Non-divergent Estimation Algorithm in the Presence of Unknown Correlations." American Control Conf. (ACC), 1997. Covariance Intersection (Lesson 11). DOI
  4. Gordon, Salmond & Smith. "Novel Approach to Nonlinear/Non-Gaussian Bayesian State Estimation." IEE Proc. F, 1993. The SIR particle filter (Lesson 10). DOI
  5. Bar-Shalom & Tse. "Tracking in a Cluttered Environment with Probabilistic Data Association." Automatica, 1975. The PDA filter (Lesson 12). DOI
  6. Reid, D. B. "An Algorithm for Tracking Multiple Targets." IEEE Trans. Automatic Control, 1979. Multiple Hypothesis Tracking, MHT (Lesson 12). DOI
  7. Madgwick, Harrison & Vaidyanathan. "Estimation of IMU and MARG Orientation Using a Gradient Descent Algorithm." IEEE ICORR, 2011. The Madgwick AHRS filter (Lesson 6). DOI
  8. Mahony, Hamel & Pflimlin. "Nonlinear Complementary Filters on the Special Orthogonal Group." IEEE Trans. Automatic Control, 2008. The Mahony attitude filter (Lesson 6). DOI
  9. Mourikis & Roumeliotis. "A Multi-State Constraint Kalman Filter for Vision-Aided Inertial Navigation." IEEE ICRA, 2007. The MSCKF (Lesson 16). DOI
  10. Qin, Li & Shen. "VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator." IEEE Trans. Robotics, 2018. VINS-Mono (Lesson 16). arXiv:1708.03852
  11. Forster, Carlone, Dellaert & Scaramuzza. "On-Manifold Preintegration for Real-Time Visual-Inertial Odometry." IEEE Trans. Robotics, 2017. IMU preintegration (Lesson 16). arXiv:1512.02363
  12. Zhang & Singh. "LOAM: Lidar Odometry and Mapping in Real-time." Robotics: Science and Systems (RSS), 2014. LOAM (Lesson 17). DOI
  13. Shan, Englot, Meyers, Wang, Ratti & Rus. "LIO-SAM: Tightly-coupled Lidar Inertial Odometry via Smoothing and Mapping." IEEE/RSJ IROS, 2020. LIO-SAM (Lesson 17). arXiv:2007.00258
  14. Xu, Cai, He, Lin & Zhang. "FAST-LIO2: Fast Direct LiDAR-Inertial Odometry." IEEE Trans. Robotics, 2022. FAST-LIO2 (Lesson 17). arXiv:2107.06829
  15. Kaess, Johannsson, Roberts, Ila, Leonard & Dellaert. "iSAM2: Incremental Smoothing and Mapping Using the Bayes Tree." Int. J. Robotics Research, 2012. iSAM2 (Lesson 17). DOI
  16. Furgale, Rehder & Siegwart. "Unified Temporal and Spatial Calibration for Multi-Sensor Systems." IEEE/RSJ IROS, 2013. Kalibr: joint extrinsics + time offset (Lesson 15). DOI
  17. Vora, Lang, Helou & Beijbom. "PointPainting: Sequential Fusion for 3D Object Detection." CVPR, 2020. Point-level camera-to-LiDAR fusion (Lesson 18). arXiv:1911.10150
  18. Philion & Fidler. "Lift, Splat, Shoot: Encoding Images from Arbitrary Camera Rigs by Implicitly Unprojecting to 3D." ECCV, 2020. LSS: the camera-to-BEV lift (Lesson 19). arXiv:2008.05711
  19. Liu, Tang, Amini, Yang, Mao, Rus & Han. "BEVFusion: Multi-Task Multi-Sensor Fusion with Unified Bird's-Eye View Representation." ICRA, 2023. BEVFusion (MIT) (Lesson 19). arXiv:2205.13542
  20. Liang, Xie, Yu, Xia, Lin et al. "BEVFusion: A Simple and Robust LiDAR-Camera Fusion Framework." NeurIPS, 2022. BEVFusion (PKU) (Lesson 19). arXiv:2205.13790
  21. Bai, Hu, Zhu, Huang, Chen, Fu & Tai. "TransFusion: Robust LiDAR-Camera Fusion for 3D Object Detection with Transformers." CVPR, 2022. TransFusion (Lesson 19). arXiv:2203.11496
  22. Li, Wang, Li, Xie, Sima, Lu, Qiao & Dai. "BEVFormer: Learning Bird's-Eye-View Representation from Multi-Camera Images via Spatiotemporal Transformers." ECCV, 2022. BEVFormer (Lesson 19). arXiv:2203.17270
  23. Revach, Shlezinger, Ni, Escoriza, van Sloun & Eldar. "KalmanNet: Neural Network Aided Kalman Filtering for Partially Known Dynamics." IEEE Trans. Signal Processing, 2022. KalmanNet (Lesson 20). arXiv:2107.10043
  24. Haarnoja, Ajay, Levine & Abbeel. "Backprop KF: Learning Discriminative Deterministic State Estimators." NeurIPS, 2016. BackpropKF (Lesson 20). arXiv:1605.07148
  25. Sünderhauf & Protzel. "Switchable Constraints for Robust Pose Graph SLAM." IEEE/RSJ IROS, 2012. Robust back-end against outlier loop closures (Lesson 21). DOI
  26. Agarwal, Tipaldi, Spinello, Stachniss & Burgard. "Robust Map Optimization Using Dynamic Covariance Scaling (DCS)." IEEE ICRA, 2013. Dynamic Covariance Scaling (Lesson 21). DOI
  27. Solà, J. "Quaternion Kinematics for the Error-State Kalman Filter." Technical report, 2017. The error-state KF reference (Lesson 14). arXiv:1711.02508
The takeaway. The methods multiplied; the question stayed the same. Combine your sources by how much each deserves to be trusted, and never trust the result more than it deserves.
What single idea runs from Lesson 3's thermometers to Lesson 19's attention?

Now press Present or Teach and route problems from memory. Cover the voting formula, the precision weight, the Bayes recursion, covariance intersection, the crossover time, MAP as least squares, the softmax weights and the NIS. Then go back to the map, pick the tunnel, and say why the IMU alone ends 155 m off.

Credit

Lesson 22 of 22 in Sensor Fusion: Classical to Modern on Engineermaxxing. Every toy number on this page names the lesson that derived it; the TransFusion numbers name their table.

Sensor Fusion: Classical to Modern · Lesson 22: The Sensor Fusion Atlas
Previous: Debugging and Consistency · Back to the start: Why Fuse · Back to Gleams