Analytics & ML · Study deck

Sensor Fusion Best Practices

Picture a greenhouse where two heat sensors disagree.

Data Dora is your guide for this deck.

datafusionbest
Data Dora, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: It should also expose that the camera is in privacy-masked mode, the CO2 sensor is 11 minutes old, the door sensor was accepted, and the motion channel was rejected for a stuck-high heartbeat.
  • Explain: Every fused output should preserve enough metadata for a reviewer to answer which sensors contributed, which inputs were rejected, how fresh the evidence was, what uncertainty was reported, and what degraded mode was active.
  • Explain: Degraded mode allows one fresh sensor for at most 5 s if the diverter remains below 0.5 m/s and an operator alert is active.
iotclass.org

Major section

Start With the Story

One says the room is safe.

  • The other says it is too hot.
  • Taking the average may hide the bad sensor and start the wrong fan.
  • More sensors do not guarantee more truth.
  • A smooth combined value can still be late, biased, or built from two copies of the same error.
iotclass.org

Major section

Start With the Story (continued)

The fallback is part of the design.

  • The Practitioner section uses gates before a combined result may act.
  • For example: both room sensors must be fresh, at least one must pass its self-test, and their gap must stay below the agreed limit.
  • A reviewer should be able to repeat every choice without guessing.
iotclass.org

Major section

Reviewable Fusion Evidence

Sensor fusion fails most often when the surrounding evidence contract is weak.

  • A mathematically sound filter can still publish bad output if sensors are miscalibrated, timestamps describe different moments, uncertainty is misreported, or fallback rules keep stale sensors in the estimate.
  • The practical goal is not to make the fused estimate look smooth.

Key terms

Best practice
Best practice is to design the validation, calibration, timing, health, and retest rules at the same time as the fusion algorithm.

Why it matters

If you only need the intuition, this layer is enough: do not trust a fused value just because it is fused.

Four fusion advantages and the evidence gate each one must pass before it may be claimed.
Four fusion advantages and the evidence gate each one must pass before it may be claimed.
iotclass.org

Major section

Reviewable Fusion Evidence (continued)

Trust it only when the calibration, time alignment, validation gates, uncertainty, sensor-health checks, and fallback behavior are all recorded and tested.

  • Best practice is to design the validation, calibration, timing, health, and retest rules at the same time as the fusion algorithm.
  • The goal is to publish a state estimate with visible confidence and visible limits.
  • When the record is missing, the system can still look stable while silently mixing incompatible evidence.
iotclass.org

Major section

Reviewable Fusion Evidence (continued)

Every fused output should preserve enough metadata for a reviewer to answer which sensors contributed, which inputs were rejected, how fresh the evidence was, what uncertainty was reported, and what degraded mode was active.

  • For example, a room occupancy service might fuse motion, door, camera, and CO2 evidence.
  • The dashboard should not show only "occupied: yes".
  • Auditing a fused output requires the transformations that preceded it, not just the final number.
iotclass.org

Major section

Reviewable Fusion Evidence (continued)

It should also expose that the camera is in privacy-masked mode, the CO2 sensor is 11 minutes old, the door sensor was accepted, and the motion channel was rejected for a stuck-high heartbeat.

  • That evidence boundary tells operators whether to trust the fused state, wait for recovery, or route the decision to manual review.
  • That kind of combination question has more than one accepted mathematical answer, and naming which one a system uses is itself part of the evidence contract.
  • Align Time Fuse measurements by event time, not arrival time, and define how stale or missing readings are handled.
iotclass.org

Major section

Reviewable Fusion Evidence (continued)

Gate Inputs Reject measurements that violate range, physics, innovation, freshness, or sensor-health checks.

  • The choice between these families is a design decision like any other: it should be written down, tested against labeled conflict cases, and revisited if the sensor mix or failure pattern changes.
  • Survive a failed sensor is real only after the errors independent + exclusion rule rehearsed gate runs, and Shrink the error band depends on current calibration with no shared reference offset.
  • Retest Rerun validation after firmware, enclosure, sensor supplier, clock, threshold, or deployment-environment changes.
iotclass.org

Major section

Practitioner: Use Gates Before Actuation

Validation should happen before a fused estimate drives alerts, control, or actuation.

  • In Kalman-style filters, this is often done with the innovation and its covariance.
  • The gate output should be stored as operational evidence, not treated as a private filter detail.
  • An accepted measurement records the innovation, threshold, timestamp, and calibration version that justified the update.

Key terms

18.0
18.0 is above that gate, so reject or quarantine this measurement.
Whether the new measurement
Whether the new measurement is plausible given the predicted state and uncertainty.
iotclass.org

Major section

Practitioner: Use Gates Before Actuation (continued)

decision: For a one-dimensional 95 percent chi-square gate, the threshold is about 3.84.

  • A rejected measurement records the same evidence plus the fallback state that was published instead.
  • 18.0 is above that gate, so reject or quarantine this measurement.
  • Raw value, unit, sensor id, firmware version, range limits, and rejection reason.
iotclass.org

Major section

Fusion Needs a Retreat Plan

A production fusion system needs fault detection and exclusion, not just a best-effort estimate.

  • Fault detection identifies suspect inputs through health, timing, residual, and consistency checks.
  • Exclusion removes or downweights the suspect evidence.
  • The retreat plan should be numeric enough to test.
  • Normal mode requires at least two fresh sensors with residuals inside the gate.

Why it matters

A sensor that failed one innovation gate should not rejoin the fused state just because its next sample looks reasonable; it may need several stable windows, a heartbeat check, or a reference comparison.

Per-axis evidence audit for 3-D orientation: roll and pitch keep two independent witnesses, yaw hangs from one fragile anchor.
Per-axis evidence audit for 3-D orientation: roll and pitch keep two independent witnesses, yaw hangs from one fragile anchor.
iotclass.org

Major section

Fusion Needs a Retreat Plan (continued)

Degraded mode allows one fresh sensor for at most 5 s if the diverter remains below 0.5 m/s and an operator alert is active.

  • Those thresholds make the fallback behavior reproducible instead of dependent on whoever reads the alarm.
  • Isolation should also record which state dimension was protected.
  • The published state should then say "two-of-three range evidence, C excluded, position-only confidence widened" rather than simply "healthy".
iotclass.org

Major section

Fusion Needs a Retreat Plan (continued)

If it returns once at 0.09 m and then jumps to 0.41 m, it stays quarantined and the maintenance record remains open.

  • This prevents a single lucky sample from hiding a loose mount, bad reference, or intermittent cable.
  • Detect Use residuals, innovation spikes, heartbeat loss, saturation flags, and cross-sensor disagreement to identify suspect inputs.
  • Degrade Publish a lower-confidence mode when fewer sensors remain observable.
iotclass.org

Major section

Fusion Needs a Retreat Plan (continued)

Shared bias makes several sensors agree on a wrong value.

  • Gates reject good evidence during legitimate motion or accept bad evidence during faults.
  • The system keeps actuating after observability or confidence has fallen below the safe boundary.
  • Good exclusion is also reversible only through a defined recovery path.
iotclass.org

Deck summary

Key takeaways

One says the room is safe.

  • The fallback is part of the design.
  • Sensor fusion fails most often when the surrounding evidence contract is weak.
  • Trust it only when the calibration, time alignment, validation gates, uncertainty, sensor-health checks, and fallback behavior are all recorded and tested.
  • Every fused output should preserve enough metadata for a reviewer to answer which sensors contributed, which inputs were rejected, how fresh the evidence was, what uncertainty was reported, and what degraded mode was active.
iotclass.org

Retrieval practice

Recall check 1 of 3

Data Dora says: answer from memory, then check your reasoning.

Q1Which evidence should travel with a fused sensor output in a reviewable IoT system?

AOnly the final fused value, dashboard label, and model version, while calibration state and rejected inputs are stored separately.
BSensor health, timestamps, accepted and rejected inputs, uncertainty, calibration state, and degraded-mode status.
CSensor health and timestamps only after an incident, while routine outputs keep uncertainty and degraded mode hidden.
DAccepted inputs and a smooth confidence score, but not rejected readings, freshness limits, or calibration state.
Show answer

Answer: B Sensor fusion best practices keep the fused output and its supporting evidence together.

iotclass.org

Retrieval practice

Recall check 2 of 3

Data Dora says: answer from memory, then check your reasoning.

Q2In the worked scalar gate, why is the 25.0 deg C measurement rejected?

AIts normalized innovation squared is 18.0, above the 3.84 gate.
BAny measurement above 22.0 deg C must always be rejected.
CThe measurement variance R is smaller than the predicted variance P.
DKalman-style gates cannot be used with scalar measurements.
Show answer

Answer: A Innovation gates reject measurements that are not plausible under the current prediction and uncertainty.

iotclass.org

Retrieval practice

Recall check 3 of 3

Data Dora says: answer from memory, then check your reasoning.

Q3Why should a fusion system publish a degraded mode instead of only a fused value?

ABecause degraded mode proves calibration, fallback rules, and uncertainty can be skipped once the estimate still has a number.
BBecause reduced confidence should suspend the complete fused output until the failed sensor has recovered, even if some state dimensions remain well supported.
CBecause the application needs to know when fewer valid sensors remain and the estimate has a narrower evidence boundary.
DBecause downstream applications only need a single status label, not uncertainty, observability, or evidence boundaries.
Show answer

Answer: C Fault detection, exclusion, and degraded-mode reporting make fusion behavior reviewable under failure.

iotclass.org

Print reference

Answers

Answer key.

  1. B · Sensor fusion best practices keep the fused output and its supporting evidence together.
  2. A · Innovation gates reject measurements that are not plausible under the current prediction and uncertainty.
  3. C · Fault detection, exclusion, and degraded-mode reporting make fusion behavior reviewable under failure.
iotclass.org