Sensors & Measurement · Study deck

Production Sensor Fusion and Validation

Picture a delivery robot entering a bright loading bay.

Physics Phoebe is your guide for this deck.

sensortypesproduction
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: Mathematical foundations: The Kalman filter is the optimal linear estimator for systems with: Start by linear state transition: xk=Fxk−1+Buk+wkx_k = F x_{k-1} + B u_k + w_kxk​=Fxk−1​+Buk​+wk​ where wk∼N(0,Q)w_k \sim \mathcal{N}(0, Q)wk​∼N(0,Q).
  • Explain: For non-linear systems, the Extended Kalman Filter (EKF) linearizes around the current estimate, while the Unscented Kalman Filter (UKF) uses sigma points to capture non-linear transformations more accurately.
  • Explain: The root cause: As explained in Part 1, the sensor's 1/f corner frequency (0.5 Hz) means averaging below that frequency captures more drift, not less.
iotclass.org

Major section

Start With the Measurement Story

Its camera says the way is clear, while its distance sensor reports an object ahead.

  • A system that always prefers one reading may turn a useful warning into a confident mistake.
  • The system should mark uncertainty, reject an impossible jump, or choose a safe action.
  • It should not hide disagreement behind one smooth number.

Key terms

Production fusion
Production fusion is less about clever math and more about accountable evidence.
iotclass.org

Major section

Start With the Measurement Story (continued)

Production fusion is less about clever math and more about accountable evidence.

  • More sensors do not always mean a better answer.
  • Shared placement, weather, or code can make several parts fail together.
  • The mathematical gist: For fixed electrode geometry, capacitance changes in the same ratio as soil permittivity.
iotclass.org

Major section

Start With the Measurement Story (continued)

The deeper sections explain how production checks and fusion methods handle bias, timing, quality, and common-cause failure without claiming certainty that the evidence cannot support.

  • The chapter's cubic model gives εr=5.34\varepsilon_r=5.34εr​=5.34 at 10% VWC and 6.12 at 12%, a 14.5% rise.
  • At 30% and 32% VWC it gives 16.9 and 18.4, a 9.2% rise.
  • The same two-point moisture change therefore creates a nonlinear electrical change, and fouling can imitate that change without any real shift in water content.
iotclass.org

Major section

Production-Quality Sensor Systems

This section uses field-failure mechanisms to plan validation and maintenance.

  • Bench calibration does not establish field performance.
  • Building on the earlier sensor-fusion, noise-characterization, and Kalman-filtering chapters, this page shifts from algorithm theory to field reliability: sensor health, disagreement rules, fallback behavior, validation evidence, and maintenance.
  • Key lesson: The installed measurement chain needs a documented verification interval based on the sensor, site, and consequences of error.

Key terms

Unit consistency
Unit consistency is non-negotiable - All sensor data entering a fusion system MUST use consistent units 2.

Why it matters

A device can use motion history and other available signals to reduce false counts, but the specific algorithm and accuracy must be verified for the named product.

iotclass.org

Major section

Production-Quality Sensor Systems (continued)

A sealed package does not guarantee unchanged accuracy.

  • A built-in self-test can reveal some faults but does not replace calibration against a reference.
  • Navigation used those data in trajectory estimation; the mismatch was a factor of about 4.45.
  • The incident is a unit-interface failure, not evidence that a particular sensor fusion algorithm failed.
iotclass.org

Major section

Production-Quality Sensor Systems (continued)

Unit consistency is non-negotiable: All sensor data entering a fusion system MUST use consistent units.

  • Root cause reported by NASA: the specified metric unit was not used in a ground software file; verification and communication failures contributed.
  • Its user manual lists the components below; sampling rates and a universal step-counting accuracy are not specified there.
  • The fusion challenge: Arm movement can resemble steps to a simple threshold on acceleration.
iotclass.org

Major section

Checkpoint: Fusion Strategy

Scenario: An IoT inclinometer for construction equipment measures tilt angle using an accelerometer and gyroscope.

  • The accelerometer provides absolute tilt but is noisy (vibration).
  • The gyroscope provides smooth rotation rate but drifts over time.
  • Step 2: Implement complementary filter: The filter trusts the gyroscope for short-term changes (smooth) and the accelerometer for long-term reference (no drift).
iotclass.org

Major section

Longer Averaging Can Mislead

The root cause: As explained in Part 1, the sensor's 1/f corner frequency (0.5 Hz) means averaging below that frequency captures more drift, not less.

  • The optimal window is ~1 second (staying above the corner), not 10 seconds.
  • Real-world example: The Vegetronix VH400 soil moisture sensor has a 1/f corner at ~0.2 Hz.
  • Customers who averaged for 30 seconds (0.033 Hz) saw WORSE stability than those using 2-second averages---because they were averaging in the 1/f-dominated region.
iotclass.org

Major section

Perspectives: Who Uses This and How?

1/f noise is what happens when that uncertainty isn't random---it wanders systematically over time.

  • In Math class, the Kalman filter uses matrices (for multi-dimensional systems) and statistics (covariance, variance).
  • The core equation K=PP+RK = \frac{P}{P+R}K=P+RP​ is just weighted averaging where weights depend on uncertainties.
  • Reading immediately gives garbage.

Why it matters

This reduces costly downtime and emergency maintenance.

iotclass.org

Major section

Perspectives: Who Uses This and How? (continued)

This reduces costly downtime and emergency maintenance.

  • College prep tip: Understanding sensor fusion will give you a head start in robotics, aerospace, or mechatronics programs.
  • The optimality is in the minimum mean squared error (MMSE) sense.
  • Ignoring sensor warm-up: Many sensors (gas, optical, thermal) need 30+ seconds to stabilize.
iotclass.org

Major section

Perspectives: Who Uses This and How? (continued)

Trusting datasheet specs: Lab specifications do not prove field accuracy; test the installed sensor across the expected temperature, contamination, and ageing range.

  • Mathematical foundations: The Kalman filter is the optimal linear estimator for systems with: Start by linear state transition: xk=Fxk−1+Buk+wkx_k = F x_{k-1} + B u_k + w_kxk​=Fxk−1​+Buk​+wk​ where wk∼N(0,Q)w_k \sim \mathcal{N}(0, Q)wk​∼N(0,Q).
  • For non-linear systems, the Extended Kalman Filter (EKF) linearizes around the current estimate, while the Unscented Kalman Filter (UKF) uses sigma points to capture non-linear transformations more accurately.
  • Forgetting cable effects: Long cables add capacitance (affects analog signals) and resistance (affects current loops).
iotclass.org

Major section

Perspectives: Who Uses This and How? (continued)

Graceful degradation: Fused systems continue operating (with reduced accuracy) when individual sensors fail.

  • The Allan variance is the standard tool for characterizing noise types: white noise slopes at -1/2, 1/f noise is flat, random walk slopes at +1/2.
  • The accelerometer's built-in self-test is a model---stimulate the sensor electrically and verify response.
  • It's a competitive moat that's hard to copy and provides measurable accuracy and reliability improvements.
iotclass.org

Major section

Common Pitfalls

MEMS sensors contain delicate micromachined structures that can be permanently damaged by mechanical shock exceeding their rated g-limit.

  • Dropping a PCB with a MEMS gyroscope can instantly destroy the sensor.
  • A CO sensor may also respond to hydrogen and ethanol.
  • Dynamic impacts or user misuse exceeding this permanently deforms the elastic element and changes sensitivity.
iotclass.org

Deck summary

Key takeaways

Its camera says the way is clear, while its distance sensor reports an object ahead.

  • Production fusion is less about clever math and more about accountable evidence.
  • The deeper sections explain how production checks and fusion methods handle bias, timing, quality, and common-cause failure without claiming certainty that the evidence cannot support.
  • This section uses field-failure mechanisms to plan validation and maintenance.
  • A sealed package does not guarantee unchanged accuracy.
iotclass.org

Retrieval practice

Recall check 1 of 5

Physics Phoebe says: answer from memory, then check your reasoning.

Q1A fused position estimate works on a bench but disagrees with a reference near metal and during network loss. Assume onboard sensor inputs are local and the external reference feed may be unavailable. What field validation is needed?

ARetain only smooth fusion, discarding raw inputs and independent reference-error logs.
BTune on a quiet bench because the calibrated response carries over to the field installation.
CLog raw sensors, reference error, disagreement and fallback in field trials.
DDiscard independent reference and treat sensor agreement as ground truth.
Show answer

Answer: C Correct: field evidence must show when fusion helps, when it fails, and how the system reacts.

iotclass.org

Retrieval practice

Recall check 2 of 5

Physics Phoebe says: answer from memory, then check your reasoning.

Q2An orientation filter jitters during vibration. Increasing gyro trust calms it, but long-run drift grows. What tuning method fits?

AMaximize gyro weight because its short-term stability also prevents long-run heading error.
BMaximize accelerometer weight because its gravity reference also filters vibration jitter.
CKeep the current weight without validating a revised field setting.
DSweep the gyro weight and measure both vibration error and long-run drift.
Show answer

Answer: D Correct: a useful weight balances noisy acceleration against gyro drift on real traces.

iotclass.org

Retrieval practice

Recall check 3 of 5

Physics Phoebe says: answer from memory, then check your reasoning.

Q3A non-safety-critical room monitor expects about 25°C, but suddenly reports 150°C. Its response policy permits a time-limited last-good fallback with an alert while fresh evidence is sought. What is the best production response?

AAccept the reading - the sensor knows best
BFlag as out-of-range, use last good value temporarily.
CIgnore all readings until manual intervention
DReplace the reading with the last good value forever
Show answer

Answer: B Production-quality sensor systems need graceful degradation.

iotclass.org

Retrieval practice

Recall check 4 of 5

Physics Phoebe says: answer from memory, then check your reasoning.

Q4In a Kalman filter, what happens when the measurement noise parameter R is set very high?

AThe filter trusts measurements more and responds quickly
BThe filter ignores all measurements entirely
CThe filter becomes unstable and oscillates
DIt trusts predictions more and responds more slowly
Show answer

Answer: D A high R value means the Kalman filter considers the sensor measurements to be very noisy (untrustworthy).

Q5What biological recognition element turns a target interaction into a measurable signal?

ABiosensors
BMEMS Sensors
CFibre Optic Sensors
DChemical Sensors
Show answer

Answer: A A biological recognition element turns a target interaction into a measurable signal.

iotclass.org

Retrieval practice

Recall check 5 of 5

Physics Phoebe says: answer from memory, then check your reasoning.

Q6Complete the multi-sensor fusion reading:

Adevices = i2c.scan()
Bdevices = i2c.detect_all()
Cdevices = i2c.list()
Ddevices = i2c.enumerate()
Show answer

Answer: A I2C scan() discovers all devices on the bus by their addresses.

iotclass.org

Print reference

Answers 1 of 2

Answer key.

  1. C · Correct: field evidence must show when fusion helps, when it fails, and how the system reacts.
  2. D · Correct: a useful weight balances noisy acceleration against gyro drift on real traces.
  3. B · Production-quality sensor systems need graceful degradation.
  4. D · A high R value means the Kalman filter considers the sensor measurements to be very noisy (untrustworthy).
  5. A · A biological recognition element turns a target interaction into a measurable signal.
iotclass.org

Print reference

Answers 2 of 2

Answer key.

  1. A · I2C scan() discovers all devices on the bus by their addresses.
iotclass.org