TactivergeLite

Lite / Intelligent Robotic Systems / Term 3 worksheet

Worksheet: Intelligent Robotic Systems, term 3

Sensing and Perception · Questions only. Check your answers in each Lite lesson, where they are graded on our server.

Name:   Date:

Week 19: Range, resolution and the bits behind them

1. A distance sensor's range is 2–80 cm. A wall is 120 cm away. What will it most likely report?

2. An 8-bit converter spans 0 to 10 V. Taking one step as range ÷ 2^n, how big is one step, in millivolts?

Answer: mV

3. How many distinct codes does a 12-bit converter have?

Answer:

4. A sensor has a ±2% gain error. Upgrading its converter from 10 to 16 bits will…

5. A sensor outputs 0–0.5 V into a 10-bit converter spanning 0–5 V. How many of the 1024 codes can it actually use?

Answer: codes

Check these in the lesson

Week 19: Accurate, precise, both or neither

1. Readings: 49.1, 50.8, 48.7, 51.5, 49.9 for a true value of 50. Which describes them?

2. A 20.0 cm gauge block measures 20.6, 20.4, 20.5, 20.5 cm. What is the bias, in cm?

Answer: cm

3. Which can you measure without knowing the true value?

4. A lidar's readings scatter randomly by ±4 cm around the right answer. Which fix targets that?

Check these in the lesson

Week 19: Linearity, calibration and latency

1. A pressure sensor reads 200 counts at 0 kPa and 3200 counts at 100 kPa. What is its gain in counts per kPa?

Answer: counts/kPa

2. Using that calibration (200 counts at 0 kPa, 30 counts per kPa), what pressure does a reading of 1700 counts mean, in kPa?

Answer: kPa

3. A drone flying at 6 m/s uses an altimeter with 50 ms latency. How far does it move during that latency, in metres?

Answer: m

4. Why check a third reference point in the middle after a two-point calibration?

5. A temperature probe takes 20 s to settle after being dipped in hot water. This mostly limits its…

Check these in the lesson

Week 20: Random and systematic error

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

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

Answer: cm

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

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

Check these in the lesson

Week 20: Mean, spread and the histogram

1. Readings 4.1, 3.9, 4.3, 3.7 V. What is the mean, in volts?

Answer: V

2. A distance sensor gives these repeated readings (cm): 98, 98, 102, 102.5. What is their mean, in cm?

Answer: cm

3. A distance sensor gives these repeated readings (cm): 48.5, 48.5, 47.5, 46, 45. What is their sample standard deviation (divide by n − 1), in cm?

Answer: cm

4. Noise is bell-shaped with mean 50 and s = 2. About what share of readings lie between 46 and 54?

5. A histogram of a robot's distance readings has two separate humps. What should you suspect first?

Check these in the lesson

Week 20: The standard error: how sure is the average?

1. σ = 6 mm and you average 9 readings. What is the standard error, in mm?

Answer: mm

2. One reading has standard deviation 1.2 °C. What is the smallest number of independent readings n whose mean has a standard error of at most 0.1 °C?

Answer: readings

3. One reading of a temperature sensor has standard deviation 2 °C. You average n = 36 independent readings. What is the standard error of the mean, in °C?

Answer: °C

4. Your mean has SE = 0.4 from 10 readings. How many readings for SE = 0.2?

5. You want to know how far a single future reading might be from the truth. Which spread do you quote?

6. 1000 readings give a mean of 20.03 ± 0.01 °C (1 SE), but a reference thermometer reads 21.0 °C. What is the likely explanation?

Check these in the lesson

Week 21: Where noise comes from

1. A light sensor's readings jump every time a nearby motor starts. The most likely source is…

2. Noise is 2.0 at 0.5 m/s. If noise scales with √speed, what is it at 2.0 m/s?

Answer:

3. Which is usually the cheapest way to deal with interference?

4. Why does the sorting machine check your settings on two batches you haven't seen?

Check these in the lesson

Week 21: Signals: amplitude, frequency, period and SNR

1. A vibration has frequency 125 Hz. What is its period, in milliseconds?

Answer: ms

2. A motor spins at 1800 rpm. At what frequency does an unbalance make it vibrate, in Hz?

Answer: Hz

3. For x(t) = 2·sin(2π·5t), which is correct?

4. A signal's RMS is 100 times its noise RMS. What is the SNR in decibels?

Answer: dB

5. Two sensors give the same signal; sensor B's SNR is 6 dB higher. What does that mean?

Check these in the lesson

Week 21: Combining measurements: averaging, fusion and the module check

1. Two independent sensors have σ₁ = 3 cm and σ₂ = 4 cm. What is the uncertainty of their best combination, in cm?

Answer: cm

2. Combine 10.0 ± 1 and 13.0 ± 2 with inverse-variance weights. What is the estimate?

Answer:

3. One reading of a temperature sensor has standard deviation 2 °C. You average n = 36 independent readings. What is the standard error of the mean, in °C?

Answer: °C

4. A sensor's output spans 0 to 10 V and you need steps no bigger than 10 mV. Taking one step as range ÷ 2^n, what is the smallest whole number of bits n that works?

Answer: bits

5. Fusing a biased sensor with an unbiased one gives an estimate that is…

6. Review: a sensor reads 0.2 V high every time and also jitters by ±0.05 V. Which statement is right?

Check these in the lesson

Week 22: Sampling and the Nyquist rate

1. You must capture a wheel encoder whose pulses repeat up to 120 Hz. What is the Nyquist rate (twice the highest frequency) you must sample above, in Hz?

Answer: Hz

2. A data logger samples at 250 Hz. What is the highest frequency it can represent unambiguously (the Nyquist frequency), in Hz?

Answer: Hz

3. A 40 Hz vibration is sampled at 1 kHz. How many samples fall in each cycle?

Answer:

4. A temperature is sampled once a minute. A heater spike lasting 10 seconds happens between samples. What does the log show?

5. Why sample well above the Nyquist rate in practice?

Check these in the lesson

Week 22: Aliasing: when samples tell lies

1. A 70 Hz signal is sampled at 50 Hz. What is the alias frequency, in Hz?

Answer: Hz

2. A 46 Hz vibration is sampled at 20 Hz with no anti-aliasing filter. At what frequency does it appear in the samples, in Hz?

Answer: Hz

3. A 55 Hz vibration is sampled at 50 Hz with no anti-aliasing filter. At what frequency does it appear in the samples, in Hz?

Answer: Hz

4. An 8-spoke wheel is filmed at 24 fps. What is the slowest non-zero speed at which it appears perfectly still, in rev/s?

Answer: rev/s

5. Your logged vibration shows a 30 Hz peak you suspect is an alias. What is the most convincing test?

Check these in the lesson

Week 22: Choosing a sample rate for a real robot

1. A heart-rate sensor's useful content is below 8 Hz, and an anti-alias filter removes everything above 15 Hz. Which sample rate is the sensible minimum?

2. A 46 Hz vibration is sampled at 20 Hz with no anti-aliasing filter. At what frequency does it appear in the samples, in Hz?

Answer: Hz

3. Four 12-bit sensors (stored as 2 bytes each) sampled at 400 Hz. How many bytes per second?

Answer: B/s

4. Mains hum at 50 Hz is sampled at 45 Hz. At what frequency does it appear, in Hz?

Answer: Hz

5. You sample at 1 kHz and want to keep only every 10th sample. When must you low-pass filter?

Check these in the lesson

Week 23: The moving average and the noise–lag trade-off

1. Readings 4, 8, 6, 10. What does a k = 2 moving average output now?

Answer:

2. A filter keeps the mean of the last k = 5 readings. The readings so far, oldest first, are: 35, 16, 15, 35, 38, 10. What does the filter output now?

Answer:

3. A filter keeps the mean of the last k = 5 readings. The readings so far, oldest first, are: 26, 28, 27, 23, 15, 12, 32. What does the filter output now?

Answer:

4. Raw noise is σ = 6 mm. Roughly what noise remains after a 9-sample moving average (independent noise)?

Answer: mm

5. A 21-sample moving average runs at 50 samples per second. Using a delay of (k − 1)/2 samples, how late is its output, in seconds?

Answer: s

6. An obstacle sensor must react within 0.05 s at 100 samples/s. Which window is the largest you could use?

Check these in the lesson

Week 23: The exponential filter: one number of memory

1. y = 50, new reading 40, α = 0.1. What is the new output?

Answer:

2. An exponential filter uses y_new = y_old + α·(x − y_old) with α = 0.2. Its last output was 26.5 and the new reading is 21.8. What is the new output?

Answer:

3. An exponential filter uses y_new = y_old + α·(x − y_old) with α = 0.25. Its last output was 20.4 and the new reading is 21.8. What is the new output?

Answer:

4. With α = 0.25, what weight does the reading from 2 steps ago carry in the current output?

Answer:

5. Which α roughly matches the smoothing of a 9-sample moving average?

6. A temperature EMA starts with y = 0 °C, but the room is 21 °C. What happens?

Check these in the lesson

Week 23: Spikes, median filters and filtering inside a controller

1. What is the median of 12, 97, 11, 13, 12?

Answer:

2. For the same readings 12, 97, 11, 13, 12, what is the mean?

Answer:

3. A 5-sample median filter faces a glitch that lasts 4 samples. What happens?

4. Adding a heavy filter to a heater's temperature reading most likely causes…

5. An exponential filter uses y_new = y_old + α·(x − y_old) with α = 0.5. Its last output was 19 and the new reading is 11.7. What is the new output?

Answer:

Check these in the lesson

Week 24: Images are arrays of numbers

1. How many bytes is a 100 × 80 greyscale image at 8 bits per pixel?

Answer: bytes

2. How many bytes is a 320 × 240 RGB image at 8 bits per channel?

Answer: bytes

3. In img[row][col] with row 0 at the top, which pixel is img[2][5]?

4. A bright window shows as a block of pixels all exactly 255. What does that tell you?

5. A 16-bit converter spans 0 to 5 V. Taking one step as range ÷ 2^n, how big is one step, in millivolts?

Answer: mV

Check these in the lesson

Week 24: Thresholding: from picture to mask

1. With T = 128, what does a pixel of value 128 become?

2. A 4-pixel row has values 30, 140, 200, 90. With T = 100, how many pixels are object?

Answer:

3. Parts on the left of a conveyor are lit twice as brightly as on the right. A single threshold…

4. A pixel histogram has humps centred at 50 and 180, with very few pixels between 100 and 130. Where should T go?

Check these in the lesson

Week 24: Colour spaces, HSV and the module check

1. On a 0–255 scale, what is the value V (as a number 0–255) of RGB (60, 180, 90)?

Answer:

2. What is the saturation S of RGB (60, 180, 90), as a decimal?

Answer:

3. Which rule correctly selects reds using hue in degrees?

4. A 62.5 Hz vibration is sampled at 50 Hz with no anti-aliasing filter. At what frequency does it appear in the samples, in Hz?

Answer: Hz

5. A filter keeps the mean of the last k = 3 readings. The readings so far, oldest first, are: 23, 11, 29, 27, 24, 24, 15, 13. What does the filter output now?

Answer:

6. Why require a minimum saturation in a hue-based colour detector?

Check these in the lesson

Week 25: Kernels: the moving average goes 2D

1. Box blur (all weights 1/9) on a patch whose nine values add to 1080. What is the output?

Answer:

2. Apply the box blur (all nine weights 1/9) kernel to the centre pixel of this 3×3 patch by multiplying matching positions and adding. Patch rows: [210, 50, 40] [210, 230, 0] [250, 10, 70]. What is the output value?

Answer:

3. Apply the sharpen [[0,−1,0],[−1,5,−1],[0,−1,0]] kernel to the centre pixel of this 3×3 patch by multiplying matching positions and adding. Patch rows: [130, 150, 140] [110, 40, 10] [180, 250, 170]. What is the output value?

Answer:

4. A kernel's weights add up to 2. Applied to a flat grey region of 100, what does it output?

5. Why write filter results into a new image rather than overwriting the input as you go?

Check these in the lesson

Week 25: Edge detection with Sobel

1. Gx = 30 and Gy = 40 at a pixel. What is the gradient magnitude?

Answer:

2. Apply the box blur (all nine weights 1/9) kernel to the centre pixel of this 3×3 patch by multiplying matching positions and adding. Patch rows: [210, 50, 40] [210, 230, 0] [250, 10, 70]. What is the output value?

Answer:

3. Sobel x on a ramp that rises by 10 per column (each row the same). What is the output?

Answer:

4. Sobel y responds strongly but Sobel x is near zero. The edge is…

5. Edge detection on a noisy image finds edges everywhere. What should you try first?

Check these in the lesson

Week 25: Finding and measuring objects

1. A blob covers 340 pixels and each pixel is 0.5 mm × 0.5 mm. What is its area, in mm²?

Answer: mm²

2. A blob has pixels in columns 4, 5, 5, 6, 10. What is its centroid column?

Answer:

3. A tray of 12 parts is counted as 19. Seven of the extra 'objects' are 1–3 pixels big. Best fix?

4. Two touching coins are counted as one object. Which statement is true?

5. A defect detector is tested on labelled parts: TP = 77, FP = 18, FN = 1, TN = 272. What is its recall, as a percentage?

Answer: %

Check these in the lesson

Week 26: Confusion matrices, precision and recall

1. A detector flags 25 parts, of which 20 are really faulty. What is its precision, as a percentage?

Answer: %

2. A defect detector is tested on labelled parts: TP = 23, FP = 33, FN = 8, TN = 108. What is its recall, as a percentage?

Answer: %

3. A defect detector is tested on labelled parts: TP = 37, FP = 21, FN = 24, TN = 251. What is its precision, as a percentage?

Answer: %

4. You lower the detection threshold. What usually happens?

5. For an airport bag scanner, which matters most?

Check these in the lesson

Week 26: Conditional probability, Bayes and base rates

1. Out of 1000 parts, 20 are faulty and flagged and 60 are good but flagged. What is P(faulty | flagged), as a percentage?

Answer: %

2. 1% of parts on a line are faulty. A camera check flags 99% of faulty parts and wrongly flags 1% of good parts. A part is flagged. What is the probability, as a percentage, that it is really faulty?

Answer: %

3. 2% of parts on a line are faulty. A camera check flags 95% of faulty parts and wrongly flags 5% of good parts. A part is flagged. What is the probability, as a percentage, that it is really faulty?

Answer: %

4. P(flagged | faulty) = 0.95. Which statement follows?

5. Base rate 0.5%, sensitivity 95%, false positives 4%. Which change most raises P(faulty | flagged)?

Check these in the lesson

Week 26: Expected value: deciding when you can't be sure

1. Shipping a part with a 4% chance of being faulty, where a faulty shipment costs £300. What is the expected cost of shipping, in pounds?

Answer: £

2. A part has a 5% chance of being faulty. Shipping a faulty part costs £400; shipping a good part costs £0. Scrapping any part costs £5. What is the expected cost of shipping it, in pounds?

Answer: £

3. Shipping a faulty part costs £200; scrapping any part costs £15. Above what probability of a fault (as a percentage) does scrapping have the lower expected cost?

Answer: %

4. p = 20%, scrap cost £25, re-inspection £6 (assumed perfect; scrap only if faulty). What is the expected cost of re-inspecting, in pounds?

Answer: £

5. A robot's choice has a 0.1% chance of injuring someone. Why isn't expected cost alone the right tool?

Check these in the lesson

Week 27: Designing a perception pipeline

1. Which change would make a belt-speed comparison unfair?

2. Why choose the metric before running the tests?

3. One reading of a temperature sensor has standard deviation 2 °C. You average n = 36 independent readings. What is the standard error of the mean, in °C?

Answer: °C

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?

Check these in the lesson

Week 27: Evaluating honestly: held-out tests and failure modes

1. A defect detector is tested on labelled parts: TP = 60, FP = 0, FN = 21, TN = 394. What is its recall, as a percentage?

Answer: %

2. A defect detector is tested on labelled parts: TP = 23, FP = 33, FN = 8, TN = 108. What is its recall, as a percentage?

Answer: %

3. Recall is 0.8 measured on 100 faulty test parts. Using √(R(1 − R)/n), what is its standard error (as a decimal)?

Answer:

4. You compare two thresholds on the test set and report the better one's score. What is wrong?

5. Which failure-mode statement is most useful?

Check these in the lesson