Open Lab investigation · OL-02
How Honest Is the Uncertainty?
Use the fusion lab to test whether a filter's reported uncertainty matches its real error as the camera drops out more often.
About 2 h · intermediate · 6 steps · Uses Lab 03 · Free
This is a learning investigation, not peer-reviewed research. Unexpected results are welcome: what matters is a clear hypothesis, honest data and careful interpretation.
The question
Research question
In the sensor fusion explorer, how does the fused estimate's error during camera dropouts change as the long-run dropout probability increases, and does the Kalman filter's reported uncertainty band honestly reflect that error?
Why it matters
A robot that knows its position and how uncertain it is can make safe decisions: slow down, ask for help, or refuse a precise task. But an uncertainty figure is only useful if it is honest. A filter that says "I'm within 1 cm" when it is really 5 cm off is more dangerous than one that admits it doesn't know.
The question of how a robot should behave when vision is intermittent is also part of Project TV-01's research question, which is a proposed study that has not been carried out and has no results. Your investigation uses a simple simulation to practise the same kind of thinking. It cannot tell you anything about TV-01's answer.
This is a learning exercise, not peer-reviewed research. Unexpected results are welcome: a prediction that turns out wrong, honestly reported, is a good outcome.
You will learn to
- Design a controlled experiment in a simulation with repeated, seeded trials.
- Compare a reported uncertainty with the actual error it is meant to describe.
- Quantify variation between repeats and use it when drawing conclusions.
- Explain why honest uncertainty matters for safe robot behaviour.
Limits
- C1Use the sensor fusion explorer only; record all settings you keep fixed.
- C2Test at least five dropout probabilities from 0% to 70%.
- C3Use at least three seeds per setting, the same seeds for every setting.
- C4Report all runs, including any that look odd.
Background
The simulation
The fusion explorer simulates a point moving along a line for 20 seconds, sampled every 0.05 s (401 samples). A camera reports its position with random noise but drops out in bursts. Odometry reports motion at every step but has a constant bias, so dead reckoning drifts. The fused estimate combines them, either with a complementary filter or with a Kalman filter.
The Kalman filter also reports a 1σ uncertainty, which the explorer can draw as a ±2σ band. During a dropout, the band widens, because the filter knows it is relying on drifting odometry. When the camera returns, it narrows.
What "honest" means here
If the reported σ were perfectly honest and errors were roughly normally distributed, the true position would lie inside the ±2σ band about 95% of the time. A band that the truth often leaves is overconfident. A band that is always far wider than the real error is underconfident: safe, but it makes the robot more cautious than it needs to be.
You can judge this by eye from the plot, by counting how many dropouts the truth leaves the band in, or by comparing the Fused, in dropouts error figure with the typical half-width of the band during dropouts.
Seeds and repeats
The explorer's random noise and dropouts are generated from a seed. The same seed with the same settings always gives the same run, so results are repeatable. A different seed gives a different but equally valid run. A single run can be lucky or unlucky, so you need several seeds per setting to see the typical behaviour and how much it varies.
Controlled variables
Your independent variable is the dropout probability. Everything else should stay fixed: camera noise, odometry noise, odometry bias and the filter choice. Write down the values you use.
A note on the readouts
The explorer reports root-mean-square (RMS) errors for each source. RMS error is the square root of the average squared error, so large errors count more. Record the figures exactly as shown, with units (cm).
Lab 03 · Sensor fusion
Explorer 03 — Sensor fusion
Two imperfect sensors, one better estimate
- True position
- Camera reading
- Odometry dead-reckoning
- Fused (Kalman)
- ±2σ uncertainty
- Camera dropout
Camera · absolute, drops out
Long-run share of time with no view, in bursts of about 1.2 s (occlusions).
Odometry · relative, drifts
A constant error in measured speed: its position estimate drifts by bias × time.
More controls
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.
How to approach it
- 01
Explore before you predict
Open the sensor fusion explorer with default settings and the Kalman filter. Turn on the ±2σ band. Spend a few minutes watching one run: where the band widens, where the fused line wanders, and how the error readouts change when you move the dropout slider. Do not record data yet.
- 02
Write your hypothesis
Write two predictions in the submission before collecting data: how the Fused, in dropouts error will change as dropout probability rises, and whether you expect the ±2σ band to be honest, overconfident or underconfident. Give reasons.
- 03
Plan the method
Choose your dropout probabilities and your seeds. Decide how you will judge honesty, for example counting dropouts where the truth leaves the band. Decide in advance what you will call a clear trend versus no clear trend, given the variation between seeds.
- 04
Collect data
For each dropout probability and each seed, record the coverage, the Fused, in dropouts error and your honesty judgement. Keep everything else fixed. Write your results as a list or a code-style block, one line per run.
- 05
Interpret
Summarise each setting with an average and a range across seeds. Does the trend match your hypothesis? Is the band's honesty the same at low and high dropout rates? Separate what the numbers show from what you suspect.
- 06
Limitations and next steps
Name what in the simulation is simpler than a real robot. Then repeat one setting with the complementary filter and say what you can and cannot compare, given that it reports no uncertainty band.
Your work
Everything above is free to read and use. To save drafts, submit versions and get feedback, sign in.
You can also work on paper: the prompts below are what a submission asks for.
- Hypothesis (written before you collect any data)
- Method
- Data and observations
- Interpretation
- Limitations
How it's judged
There is more than one good answer. This rubric describes what strong work looks like.
Question and hypothesis
- Beginning
- No clear hypothesis, or it was clearly written after seeing the data.
- Developing
- A hypothesis is stated before data but is vague, so almost any result would fit it.
- Proficient
- A specific, falsifiable hypothesis with a reason behind it, written before data collection.
- Exemplary
- As Proficient, plus a stated prediction of how big the effect should be and what result would count against it.
Method and control of variables
- Beginning
- The method is missing or too vague to repeat.
- Developing
- The changed variable is clear, but other variables drift between runs or repeats are missing.
- Proficient
- One variable is changed at a time, others are held fixed and listed, with repeats and a decision rule set in advance.
- Exemplary
- As Proficient, plus a pilot run that led to a documented change of method, and a check that the measurement itself is reliable.
Data quality and honesty
- Beginning
- Data are missing, unitless or only summarised, with no raw values.
- Developing
- Raw data are present but inconvenient runs are silently dropped or units are inconsistent.
- Proficient
- All runs are reported with units, including failed or surprising ones, with a note on each exclusion.
- Exemplary
- As Proficient, plus variability between repeats is quantified (for example a range or standard deviation) and used in the interpretation.
Interpretation and limitations
- Beginning
- Claims go beyond the data or ignore the hypothesis.
- Developing
- The result is described but not connected to the hypothesis, or limitations are generic.
- Proficient
- The conclusion follows from specific numbers, and the most important limitation is named with its likely effect.
- Exemplary
- As Proficient, plus alternative explanations are considered and the student says exactly what further test would distinguish them.
Reflect
- Did the uncertainty band behave as you expected? What surprised you?
- Why might an overconfident estimate be more dangerous than a less accurate but honest one?
- How did using several seeds change your confidence in your conclusion?
Go further
Change the odometry bias to a large value and repeat one dropout setting. The Kalman filter in the explorer estimates the bias: investigate how long after the start of a run it takes for the uncertainty band to become honest, and explain why.