Five sensors watch one car. Where you combine their readings decides how much data crosses the wires and whether one dead box blinds the system. It also decides whether the fused confidence is honest. Raw data needs about 31,000 times the bandwidth of tracks.
Pick an architecture. Then fail a box with the buttons under the picture and read the verdict. Then we build, piece by piece, the JDL levels, Dasarathy's modes, each architecture and the double-counting trap.
You need Lesson 1 and one idea from it: a precise sensor deserves more weight. We build the rest from zero.
Lesson 2 of the series Sensor Fusion: Classical to Modern. The vocabulary comes from four sources. Steinberg, Bowman and White (1999) revised the JDL model. Dasarathy (1997) named the data, feature and decision modes. Durrant-Whyte, Rao and Hu (1990) built decentralized fusion, and Castanedo (2013) surveys it all. The devices and toy numbers are our own.
An illustrative toy. The sensor variances are 4, 9, 16, 6 and 5 m². A raw link carries 100 Mbit/s and a track link 20 kbit/s. In decentralized mode the peers add each other's estimates with no guard, so their confidence grows with each round of gossip.
Chapter 0
Count what crosses the wire, and see why the place you fuse is a design choice with a price
A car carries three cameras and five radars. Many times a second, it must turn all eight streams into one sentence: a pedestrian, 18 m ahead, moving left, brake.
Lesson 1 asked how two sensors relate. This lesson asks where the combining runs, and who decides. That choice is the fusion architecture: the place where readings meet, and what each sensor sends to get there. Three forces decide it.
| Force | The question | How it fails |
|---|---|---|
| Bandwidth | Can the wires carry what the sensors send? | The bus overflows and frames drop. |
| Fault tolerance | What happens when one box dies? | The whole system goes dark. |
| Honesty | Does the fused confidence match the real error? | The estimate is sure and wrong. |
Bandwidth fails first, so count it. Call the size of one message b bytes, and the number of messages each second f.
R equals b times f times eight.
Multiply the message size b by the messages per second f. Multiply by 8 to turn bytes into bits. The result is R.
A raw 1080p frame is 1920 × 1080 × 3 = 6,220,800 bytes. At f = 30, R = 6,220,800 × 30 × 8 ≈ 1.49 Gbit/s. A 50-byte track at 50 Hz is 50 × 50 × 8 = 20 kbit/s.
The bar is the total load of all eight sensors, on a scale where each step is ten times the last. The dashed lines are two networks. Choose what the sensors send.
Illustrative rates. A raw camera is 1.49 Gbit/s and a raw radar 100 Mbit/s. A feature message is 2 KB at 30 Hz for a camera and 1 KB at 20 Hz for a radar. A track is 50 bytes at 50 Hz. The dashed lines put CAN FD at about 5 Mbit/s and automotive Ethernet at 1 Gbit/s.
Raw data from all eight sensors is about 5 Gbit/s. Eight tracks are 160 kbit/s, about 31,000 times less. The raw load is five times a 1 Gbit/s automotive Ethernet link. The tracks fit on a CAN FD bus with room to spare.
Symptom: frames drop at the fuser while every sensor reports healthy.
Measure: add up R for every stream on the link and compare it with the link's rate.
Fix: send smaller things, features or tracks (Chapter 2).
Chapter 1
Climb from raw signals to threats, and find the level that points the sensors
Two engineers both say they work on sensor fusion. One averages two voltage readings. The other decides whether an approaching car is a threat. They do different jobs, and a meeting between them goes nowhere.
The JDL model is a shared list of levels from the Data Fusion Group of the US Joint Directors of Laboratories. Each level names what a fusion output is a statement about. Steinberg, Bowman and White revised it in 1999 and named Level 0.
| Level | The output is about | One pedestrian |
|---|---|---|
| L0 Signal | cleaned, aligned raw signals | pixels and a radar return at bearing 12° |
| L1 Object | one thing: where, how fast, what | track 7 at (16 m, −3 m), 1.2 m/s |
| L2 Situation | relations between objects | track 7 and our car converge |
| L3 Impact | what happens next, and how bad | collision in 1.4 s if nobody yields |
| L4 Process refinement | how to sense better | point the radar beam at track 7 |
Pick a level and a system. The box under the ladder shows what that level produces.
The pedestrian and the airliner outputs are illustrative examples of each level, not logs from a real system.
Level 1 is where most of this series lives: tracking and the Kalman filter. When people say sensor fusion with no qualifier, they mean Level 1.
Level 4 sits to the side. It describes the sensing, not the world, and it acts. It points a steerable radar at the track with the largest uncertainty. That arrow back to the sensors turns the ladder into a loop.
The level also hints at the architecture. Level 0 moves pixels, so it needs a fat link or fusion next to the sensor. Level 1 tracks are small, so they suit a distributed design. Level 3 is a short list of threats for one decision maker.
Symptom: two teams argue about the best fusion method and talk past each other.
Measure: ask what each output is a statement about: signals, objects, scenes, threats or the sensing.
Fix: name the level first. Then compare methods inside one level.
Chapter 2
Label every fusion block by its input and output, and pay for each step down in lost detail
JDL says how abstract an output is. Dasarathy (1997) asks a narrower question about each fusion block: what kind of thing goes in, and what kind comes out?
There are three kinds. Data is a raw measurement, such as pixels or radar returns. A feature is a descriptor taken from data, such as an edge, a box or a cluster of points. A decision is a verdict, such as "pedestrian, 0.90".
| Mode | In, out | Example |
|---|---|---|
| DAI–DAO | data in, data out | merge two LiDAR point clouds into one |
| DAI–FEO | data in, feature out | two raw images become one depth map |
| FEI–FEO | feature in, feature out | join camera edges and LiDAR clusters |
| FEI–DEO | feature in, decision out | a classifier reads the joined features |
| DEI–DEO | decision in, decision out | vote on each sensor's label |
There is no decision-in, data-out mode. You cannot rebuild the pixels from the word "pedestrian". Information flows only downhill.
Pick a mode. The arrow shows what the block takes and gives. The ruler shows what reaches the block for one frame.
Illustrative sizes for one camera and radar frame: raw data about 6 MB, a feature vector about 2 KB, a verdict about 16 bytes.
From raw data to a verdict, the message shrinks by a factor of about 375,000. That is why decision fusion makes distributed designs cheap: each node decides, then sends a few bytes.
Each step down also throws detail away. A camera says "pedestrian, 0.55". A radar says "pedestrian, 0.55". If the two are independent and the prior is even, multiply their odds: (0.55/0.45)² ≈ 1.49, a probability of 0.60. That is still a shrug.
A feature fuser would see more. Both sensors point at the same bearing, 12°, with the same motion. That match is strong evidence, and it is gone once each sensor squeezes its view into one number.
Symptom: two weak sensors that agree in detail still give a weak fused verdict.
Measure: run feature-level fusion on the same clips and compare the scores.
Fix: move the fusion one step up the staircase, if the bus allows it.
Chapter 3
Add every sensor's precision in one place, and see why one box is both the best estimate and the weakest point
Three radars measure the range to the same car, with variances 4, 9 and 16 m². In centralized fusion, every sensor sends its raw reading to one fuser, the box that combines them. The sensors decide nothing.
Lesson 1 gave each reading a vote strength. Call it the precision: one divided by the variance. Call the variance of sensor i σi² and the fused precision P.
P equals the sum over i of one over sigma-i squared.
Turn each variance σi² into a precision by dividing 1 by it. Add the precisions. The sum is P.
P = 1/4 + 1/9 + 1/16 = 0.25 + 0.111 + 0.0625 = 0.424. The fused variance is 1/0.424 = 2.36 m², below the best sensor's 4 m².
The fused range weights each reading by its precision. Call reading i zi and its precision Pi.
x-hat equals the sum over i of P-i times z-i, divided by P.
Multiply each reading zi by its precision Pi. Add the products. Divide by P.
Readings 100.2, 99.5 and 101.0 m: (25.05 + 11.06 + 6.31)/0.424 = 100.13 m. The sloppy third radar barely moves the answer.
Dots are raw readings, larger when more precise. The teal band is the fused estimate ±1σ. Add sensors, then crash the fuser.
Illustrative sensors: variances 4, 9, 16, 6 and 5 m², readings 100.2, 99.5, 101.0, 100.8 and 99.9 m.
No architecture beats this, because no sensor throws data away before the fuser. So centralized fusion is the yardstick. It pays three costs: raw data on the wire, all the compute in one box, and one box whose death silences every sensor.
Symptom: the fuser reboots, and every healthy sensor goes unheard.
Measure: kill each box in a test and check whether the function survives.
Fix: a second fuser in parallel (Chapter 7), or no fuser at all (Chapter 4).
Chapter 4
Let each sensor track on its own, then add information in any order to reach the central answer
Make each sensor smart. The radar runs its own tracker and sends a track: its estimate and its variance, a few dozen bytes. In distributed fusion, nodes track locally and one fuser combines the tracks.
Remove the fuser too. In decentralized fusion, every node is a peer. It swaps estimates with its neighbours and keeps its own fused belief. No node is special, so no single death blinds the network.
| Architecture | Who fuses | On the wire | Single point of failure |
|---|---|---|---|
| Centralized | one fuser | raw data | yes, the fuser |
| Distributed | nodes, then one fuser | tracks | yes, the fuser |
| Decentralized | every peer | estimates, peer to peer | none |
How can peers with no boss reach the central answer? Use the information form. Call a node's precision its information Y, and its estimate times its precision y.
Big Y equals Y-A plus Y-B, and little y equals y-A plus y-B.
Add the two informations to get Y. Add the two weighted estimates to get y. Divide y by Y for the fused estimate.
Radar A: 18.2 m, variance 4. Radar B: 17.6 m, variance 9. Y = 0.25 + 0.111 = 0.361 and y = 4.55 + 1.96 = 6.51. The estimate is 6.51/0.361 = 18.02 m, variance 2.77 m².
Addition does not care about order or about who adds. So peers can gossip in any order and still reach the central total, as long as every piece is independent.
Each peer shows the information it claims and the letters of the readings it holds. Press the swaps in any order, then close the loop.
Illustrative peers with information 0.25 (A), 0.111 (B) and 0.0625 (C). A swap adds the partner's claimed total, with no record of where it came from.
Press A ↔ B, then B ↔ C. B and C reach 0.424, the central answer. Now press C ↔ A. C's total already contains A's reading, so A counts its own reading a second time.
Symptom: a peer's confidence keeps rising while no new readings arrive.
Measure: tag each contribution with its source and look for one source counted twice.
Fix: keep the source list, or use a rule that is safe without it (Chapter 5).
Chapter 5
Count shared information once, and see how an echo makes a fuser sure of nothing
Two radar nodes start from the same broadcast estimate: range 100 m, variance 10 m². Call the precision of this shared common prior Pc = 0.10. Each node then adds its own independent reading, also precision 0.10.
Each node now holds precision 0.20, variance 5 m². The fuser gets PA = 0.20 and PB = 0.20 and adds them: 0.40, variance 2.5 m². That number is a lie. The distinct pieces are the prior, reading A and reading B, worth 0.30.
P-honest equals P-A plus P-B, minus P-c.
Add PA and PB. Both contain the prior, so subtract one copy of Pc.
0.20 + 0.20 − 0.10 = 0.30, variance 3.33 m². The naive 2.5 m² claims a third more certainty than the evidence holds.
Each bell is a fused belief; narrower means surer. Drag the shared prior up, then feed the result back.
Values are precisions, one over the variance. The covariance intersection curve uses weight 0.5. The feedback button lets the naive fuser count its own last output once more.
Press the feedback button. Each round, the fuser counts its own output again, and its precision doubles: 0.40, 0.80, 1.60. No new reading arrived. The variance falls toward zero anyway.
The fix needs Pc, and a peer mesh often cannot know it. Covariance intersection is a rule that stays safe for any correlation. Pick a weight ω between 0 and 1.
Y-C-I equals omega times Y-A, plus one minus omega, times Y-B.
Blend YA and YB with weights that sum to one, instead of adding them. YCI can never pass the larger of the two.
With ω = 0.5: 0.5 × 0.20 + 0.5 × 0.20 = 0.20, variance 5 m². That is humble beside the honest 3.33 m², and never overconfident.
Symptom: errors land outside the claimed bounds far more often than they should.
Measure: a consistency test over many runs (Chapter 8).
Fix: subtract the shared part if you know it, use covariance intersection if you do not, and never let a fuser eat its own output.
Chapter 6
Break one network three ways and read the cost of each choice in numbers
Here is the hero network with every knob. Fail any box, add an echo, turn on covariance intersection, and read the wire load, the survival and the honesty of the estimate.
Tap a sensor, the fuser, or a button to fail it. The bars give the wire load, the honest variance and the variance the system reports.
The hero's toy: variances 4, 9, 16, 6 and 5 m², raw links 100 Mbit/s, track links 20 kbit/s each way. An echo doubles the reported precision once per round. In the ring, peers that add with no guard echo each other.
No setting gives a thin bus, survival of any one failure and honest confidence for free. Decentralized fusion with covariance intersection comes closest, and it pays in sharpness.
Chapter 7
Ask four questions in order, then check the reliability on paper before you build
A design lands on your desk: these sensors, this bus, this safety rule. Ask four questions in order. The first one that bites picks the architecture.
Then one check for every design: if estimates flow and any path loops, guard against double-counting.
| System | What binds | Architecture | Guard |
|---|---|---|---|
| Small drone | nothing: few sensors, short bus | centralized | none needed |
| Building, 200 rooms | long links; a hub may fail | zone fusers that gossip | covariance intersection |
| 30 warehouse robots | Wi-Fi cannot carry 30 LiDARs | central in each robot, peers between | covariance intersection |
Question 2 has a number behind it. A centralized system works only if the fuser works and at least one sensor works. Call the fuser's reliability Rf, each sensor's Rs, and the number of sensors n.
R equals R-f times, one minus, one minus R-s to the n.
Raise one sensor's failure chance, 1 − Rs, to the power n. One minus that is the chance at least one works. Multiply by Rf, because the fuser must work too.
Rf = 0.99, Rs = 0.99, n = 5: R = 0.99 × (1 − 10−10) ≈ 0.99. Two fusers in parallel give 1 − 0.01² = 0.9999.
Each bar counts nines: 0.99 is two, 0.9999 is four. The dashed line is a four-nines spec. Add sensors, then add a second fuser.
Assumes the boxes fail independently. Real failures share power, heat and software, so treat these as upper bounds.
A tree also spreads the load. Four radars at 20 kbit/s feed two group fusers, so no link carries more than 40 kbit/s. A flat design pushes 80 kbit/s into one box.
Symptom: the spec asks for four nines, and adding sensors never gets there.
Measure: compute R with the formula. Find the box that caps it.
Fix: duplicate that box, or remove it.
Chapter 8
Catch late readings, skewed clocks, hidden single points of failure and false confidence
Architecture bugs rarely crash. The data takes a path you did not draw, or arrives at a time you did not expect. Each trap has a test.
| Trap | Symptom | Test | Fix |
|---|---|---|---|
| Double-counting | errors escape the claimed bounds | consistency test | subtract the shared part, or covariance intersection |
| Out-of-sequence reading | the track jumps back when a slow sensor reports | compare each timestamp with the state's time | buffer, or roll back and replay |
| Hidden single point of failure | a "distributed" system goes dark at once | kill each box in turn | a second fuser, or a peer fallback |
| Clock skew | a bias that grows with target speed | measure the offset between node clocks | hardware time sync; stamp at sensing |
An out-of-sequence measurement is a reading that arrives after a newer one. Both timing traps share one number. A reading that is Δt seconds old shows where the target was. Call the target's speed v.
e equals v times delta-t.
Multiply the target's speed v by the reading's age Δt. The product e is the distance the target moved since the reading.
A 30 ms clock offset puts a 1.5 m/s pedestrian 4.5 cm off and a 30 m/s car 0.9 m off. A camera frame 60 ms late on a 25 m/s car points 1.5 m behind it.
The teal mark is where the car is now. The yellow mark is where the late reading says it is. Change speed and delay, then roll back.
Illustrative. Rolling back means: move the state to the reading's timestamp, fuse it there, then predict forward to now.
Sensor noise does not grow with speed. A timing error does. If the error scales with speed, suspect a clock.
To catch double-counting, compare real errors with claimed ones over many runs. A calibrated fuser has about 68% of errors inside ±1σ and 95% inside ±2σ. The Chapter 5 fuser claims σ = 1.58 m when the truth is 1.83 m.
| Band | Calibrated | Naive fuser |
|---|---|---|
| ±1σ (±1.58 m) | 68% | 61% |
| ±2σ (±3.16 m) | 95% | 92% |
Over 1,000 frames that is about 83 escapes outside ±2σ where the claim allows 50. The formal version is the NEES test in Lesson 21.
Chapter 9
Keep the terms, the numbers, the checks and the code in one place
The relationship between sensors (Lesson 1) says whether combining helps. The architecture says whether you can afford it, whether one failure kills it, and whether its confidence is honest.
| Term | Meaning | Number to remember |
|---|---|---|
| JDL levels | what an output is about: signal, object, situation, impact, sensing | 5 levels, L0 to L4 |
| Dasarathy modes | input and output kind of a fusion block | 6 MB to 16 bytes per frame |
| Centralized | raw data to one fuser; optimal; one point of failure | variances 4, 9, 16 fuse to 2.36 m² |
| Distributed | nodes track, one fuser combines tracks | a track: 20 kbit/s |
| Decentralized | peers add information, no fuser | 0.25 + 0.111 + 0.0625 = 0.424 in any order |
| Hierarchical | a tree of fusers | fan-in halves with two groups |
| Double-counting | a shared piece counted in two estimates | naive 0.40 against honest 0.30 |
| Covariance intersection | a weighted blend that is never overconfident | 0.20, variance 5 m² |
| Timing error | speed times a reading's age | 25 m/s × 60 ms = 1.5 m |
pythondef fuse_central(readings, variances): # every raw reading in one place P = sum(1.0 / v for v in variances) # precisions add x = sum(z / v for z, v in zip(readings, variances)) / P return x, 1.0 / P def fuse_naive(P_A, P_B): # wrong when A and B share a past return P_A + P_B def fuse_known_common(P_A, P_B, P_c): # exact, if you know the shared part return P_A + P_B - P_c def fuse_ci(P_A, P_B, w=0.5): # safe for any correlation return w * P_A + (1 - w) * P_B fuse_central([100.2, 99.5, 101.0], [4, 9, 16]) # (100.13, 2.36) fuse_naive(0.20, 0.20) # 0.40 overconfident fuse_known_common(0.20, 0.20, 0.10) # 0.30 honest fuse_ci(0.20, 0.20) # 0.20 humble
Now press Present or Teach and explain from memory: the three forces, the five JDL levels, the three architectures and the double count. Then go back to the hero, fail the fuser in each mode, and say why each verdict comes out as it does.