Skip to content
Tactiverge

School/○ Innovator/Week 20

Random and systematic error

A wheel that measures 1% too big makes a robot think it has driven 101 m after 100 m. After a kilometre, where is it?

About 35 min · 3 goals · Checked by automated tests

1.Why should I care?

Robots that dead-reckon (count wheel turns or integrate speed) carry tiny systematic errors that add up every step. Cameras carry random noise that does not accumulate. Fusion systems exist to let one sensor's strengths cover the other's weakness, and they only work if you know which error is which.

  • ◇ Classify an error source as random or systematic and predict its effect over time.
  • ◇ Explain why a small systematic error in a rate sensor grows without limit when integrated.
  • ◇ Choose a strategy that suits each kind of error.

2.Discover

Hide the fused estimate and compare camera readings with odometry. Set odometry bias to +2 cm/s and noise to 0: watch the drift. Then set bias to 0 and raise camera noise. Which error grows with time, and which just jitters?

Explorer 03 — Sensor fusion

Two imperfect sensors, one better estimate

A camera gives absolute position but loses sight of the target; odometry never drops out but drifts. Combining them gives an estimate better than either alone.

POSITION (cm)NO VIEWNO VIEWNO VIEW-40-200204002468101214161820TIME (s)
  • True position
  • Camera reading
  • Odometry dead-reckoning
  • Fused (Kalman)
  • ±2σ uncertainty
  • Camera dropout

Camera · absolute, drops out

3.0 cm
25 %

Long-run share of time with no view, in bursts of about 1.2 s (occlusions).

Odometry · relative, drifts

4.0 cm/s
1.5 cm/s

A constant error in measured speed: its position estimate drifts by bias × time.

Fusion method

The Kalman filter weights each sensor by its stated noise, tracks its own uncertainty, and estimates the odometry bias while the camera can see.

Show

Root-mean-square error vs truth · lower is better

  • Camera aloneholds last reading in dropouts7.9 cm
  • Odometry alonedead reckoning from start15.1 cm
  • Kalman filterfused estimate0.9 cm
  • Fused, in dropoutsonly samples with no camera1.1 cm

Camera coverage 60 %. Camera error only over frames it saw: 2.9 cm (≈ its σ).

State

Seed 7. The camera saw the target 60 % of the time in 4 dropouts. Error (RMSE): camera alone 7.9 cm holding its last reading, odometry alone 15.1 cm, kalman filter 0.9 cm (1.1 cm during dropouts). Fusion is 88 % better than the better single sensor. Estimated odometry bias 1.53 cm/s (true 1.50).

Seed 7. The camera saw the target 60 % of the time in 4 dropouts. Error (RMSE): camera alone 7.9 cm holding its last reading, odometry alone 15.1 cm, kalman filter 0.9 cm (1.1 cm during dropouts). Fusion is 88 % better than the better single sensor. Estimated odometry bias 1.53 cm/s (true 1.50).

How to read this

Time runs left to right over 20 seconds. The thin solid line is where the object really is. Crosses are camera readings; hatched columns are dropouts where the camera sees nothing. The dashed line is odometry integrated from the start: smooth, but it wanders away as its bias accumulates. The thick line is the fused estimate, with a shaded ±2σ band showing how uncertain the Kalman filter believes it is. The band widens during each dropout and snaps back when the camera returns.

This mirrors Tactiverge's research question: when vision drops out, can local sensing such as force and joint feedback carry the estimate until it returns?

Assumptions & limitations
  • One dimension, a smooth known trajectory and a single object: real tracking is 3-D, with orientation, multiple objects and data association.
  • Noise is white Gaussian with the σ you set, and the Kalman filter is told the true σ values. Real filters must be tuned against noise they can only estimate.
  • Odometry error is a constant bias plus white noise; real drift also comes from slip, scale-factor error and temperature.
  • Dropouts are random bursts, independent of where the object is. Real occlusions often happen exactly when the task gets hard, for example when a gripper covers the object.
  • The camera has no latency and runs at the same 20 Hz as odometry; real cameras are slower and delayed, which the filter would have to compensate for.
  • Figures are from one seeded run of 401 samples; change the seed to see how much the numbers vary by chance.
Can't use the interactive? Read a description instead

The fusion lab plots true position, camera readings, odometry and a fused estimate over 20 seconds. With odometry bias +2 cm/s and no noise, the odometry line drifts steadily away from the truth, 40 cm after 20 s. With camera noise 8 cm and no bias, camera crosses scatter around the true line but do not drift.

3.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1

A digital thermometer is mounted 2 cm from a voltage regulator that runs warm. Its error is mainly…

4.Predict

Odometry has a small constant speed bias; the camera has big random noise but no bias. After 20 seconds, which is likely further from the truth?

Guess first. Being wrong here is how the surprise works.

5.Understand

Systematic error repeats

A systematic error is the same, or follows the same pattern, every time: a wheel diameter set 1% too large, a thermometer mounted next to a warm motor, a camera that is slightly tilted. Repeating the measurement repeats the error, so averaging cannot reveal or remove it.

Random error varies

A random error differs unpredictably each time, scattering readings around their average: electrical noise, vibration, the exact pixel where an edge falls. Independent random errors partly cancel when you average, which is why taking more readings helps.

Integration grows systematic error

Odometry adds up small steps. A constant speed bias b adds b × Δt of position error each step, so after time t the error is b × t: it grows forever. Random step errors also accumulate, but more slowly (like √t). That is why dead-reckoning robots drift and need an absolute reference such as a camera, GPS or a landmark.

Different errors, different cures

Fight systematic error with calibration against a reference and with good design (move the thermometer away from the motor). Fight random error with averaging, filtering and better sensors. Fusion combines a sensor that drifts with one that is noisy but unbiased.

Explain it another way

Walking with your eyes shut and one slightly shorter leg, you curve the same way every step: that's systematic. A gusty wind pushes you randomly left and right: that's random. After a long walk, the leg matters more.

Worked example 1

A robot's odometry overestimates speed by 0.5 cm/s. How far off is its position estimate after 2 minutes?

0.5 cm/s × 120 s = 60 cm, all in one direction. A camera with ±5 cm random noise would be far better for position at that point, even though each of its readings looks jumpier.

Common mix-ups

  • If readings look steady, the measurement is good.
    ✓ Steady readings can share a large systematic error. Only a reference check reveals it.
  • Random errors add up just like systematic ones when integrated.
    ✓ Independent random errors partly cancel, so they grow like √t; a constant bias grows like t.

6.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2

A speed bias of 1.5 cm/s is integrated for 40 s. What is the position error, in cm?

cm

Practice 3

Vibration from a motor makes an accelerometer's readings jump around their correct average. That is…

Practice 4

A camera is mounted 2° tilted, so every measured height is 3% low. What is the best fix?

7.Apply it

In the fusion lab, find an odometry bias that makes dead-reckoning more than 20 cm wrong after 20 s. Then turn on the Kalman filter with camera dropouts at 30%. Describe, with numbers, how the fused estimate behaves during a dropout and after the camera returns.

8.Reflect

Concepts: Measurement error and uncertainty · Sensor fusion