TactivergeLite

Lite / Intelligent Robotic Systems / Week 27

Designing a perception pipeline

Sense, filter, segment, measure, decide. Which stage of the pipeline fails first when the lights flicker?

About 50 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Real perception systems are chains of the steps you have learned, and their failures are usually at the joins: a filter that adds too much lag for the threshold after it, a threshold tuned in one light level. Designing the chain on paper, then testing it like a scientist, is the term's final skill.

Predict

You want to know whether belt speed affects sorting accuracy. Which test design is fairest?

  1. Run once at each speed with different batches
  2. Run each speed several times on the same test batch, changing nothing else
  3. Run the fastest speed many times
Guess first, then reveal

Change one variable, hold the rest fixed, repeat to see the run-to-run spread. Different batches would mix the effect of speed with the effect of the parts themselves.

Discover

Open the sorting machine at Level 5. Choose one question (belt speed versus accuracy, or how much majority voting helps as glare increases). Change one setting across at least four recorded runs on the same test batch, holding everything else fixed.

What the interactive shows (text version)

Sorting machine Level 5, described: you choose one setting, such as belt speed, and record at least four runs on the same test batch with everything else fixed. The server recomputes each run's accuracy and throughput; you write a short report with a hypothesis, method, results and limitations, which a person reviews.

You can also open the interactive on the full site when you have a faster connection.

Understand

Stages and interfaces

Write the pipeline as boxes: sense (camera or sensor, sample rate) → condition (filter, calibrate) → segment (threshold, colour rule) → measure (label, area, position) → decide (rule, threshold from costs). For each stage state its input, output, units and parameters. That list is your design, and also your debugging map.

One question at a time

A good investigation asks a focused question, changes one variable, holds the others fixed, repeats runs to see the spread, and chooses its metric (recall, precision, throughput) before looking at results. Record everything, including runs that look wrong.

Planning the term project

The project, 'Count the parts, honestly', needs: a set of images with hand-counted ground truth; separate tuning and test images; at least three conditions (normal, changed lighting, added noise or occlusion); a metric per condition; and one mitigation tried and measured. Plan the data before writing code.

Explain it another way

Intuitive

A pipeline is a relay race: each runner hands the baton to the next. If one drops it, the team loses, however fast the others are.

Technical

Perception pipelines are evaluated end to end (final decision versus ground truth) and per stage (for example segmentation accuracy per pixel), so failures can be located. Parameters are tuned on one data split and evaluated on another.

Applied

Industrial vision suppliers validate a new inspection line on a fixed 'golden' set of known good and bad parts under controlled lighting before going live, and repeat it after any change.

Worked example 1

Write a one-line research question and method for the sorting machine.

'How does belt speed (0.3–1.0 m/s) affect sorting accuracy at fixed thresholds?' Method: same test batch, same thresholds, four speeds, three runs each, metric = % correctly sorted, recorded with parts per minute.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. Which change would make a belt-speed comparison unfair?
Practice 2. Why choose the metric before running the tests?

°C

Practice 4. Your parts counter is wrong only in dim images. The threshold mask looks fine in bright images but patchy in dim ones. Which stage should you fix first?

Apply it

Submit your Level 5 investigation with hypothesis, method, a results table and limitations. Then write your term-project plan: pipeline diagram with parameters, the image set and how you will hand-count ground truth, the three conditions and the metric for each.

Reflect

Which stage of your planned pipeline do you expect to fail first, and what evidence would show it?

Write your answer on paper or in your own notes. Lite never stores what you write.

Go further

Research mode: limits and open questions

The proposed TV-01 study would follow the same pattern: a pre-registered question, controlled conditions and a fixed metric, with results reported whatever they turn out to be (no results exist yet).

← Expected value: deciding when you can't be sureEvaluating honestly: held-out tests and failure modes →