UAT 456 Artificial Intelligence, Machine Learning and Computer Vision for UAS

Worksheet 5 Mini-project: evaluating a whole image-analysis pipeline

Lab 90 minAssesses CLO3

Objective

Fine-tune a deep model, measure confidence calibration, evaluate the end output by subgroup, build a time budget and write a model card

Equipment and materials

  • The group's dataset from Worksheets 1 to 4
  • Computer or service with a GPU for fine-tuning
  • Edge device for timing, if available
  • Computer with Python, numpy, opencv, scikit-learn, scipy and the example code at /downloads/uat-456/

Safety

  • Desk work; if an edge device uses lithium batteries, charge it in a fire-safe bag or box
  • Blur or crop identifiable people before sharing, and keep data only on department storage
  • State limitations honestly in the model card and leave final decisions to people

Steps

  1. Compute the chosen backbone's receptive field and stride with Example 1 and compare with object size
  2. Fine-tune the detector head-only and whole-model, and compare on the validation set
  3. Measure ECE and apply temperature scaling as in Example 2
  4. Evaluate the end output against your own counts or measurements, split into at least two subgroups, as in Example 3
  5. Time the pipeline on the real device without warm-up runs and build a budget as in Example 4
  6. Write a one- to two-page model card and present it with recommended operating conditions

Record of results

Table 1 Receptive field and fine-tuning
ItemValueCompared with object sizeValidation result
Table 2 Confidence reliability
Confidence binNumber of boxesMean confidenceFraction correct (before)Fraction correct (after)
Table 3 Subgroup end output and time budget
Subgroup or deviceMAEBias (%)MAPE (%)Worst case or timePass?

Questions

  1. Is the last-layer receptive field of your backbone longer than the object? If not, what happens and how is it fixed?

  2. What were your ECE values before and after temperature scaling, why does accuracy not change, and what happens if unscaled confidence is used for the rule 'send boxes below 0.8 to a person'?

  3. How do the all-flights result and the subgroup results lead to different conclusions, and how should the model card state the operating conditions?

  4. Does your time budget pass, and why must the slow case, such as the 95th percentile on the real device, be used rather than the mean on the development machine?

Check before you hand in

What to hand in

  • Fine-tuning comparison table
  • Reliability diagram and ECE before and after scaling
  • Subgroup end-output evaluation and time budget
  • Model card and presentation slides

CLO3 Evaluate automated image-analysis systems for accuracy, confidence calibration, processing time and fairness under real operating conditions. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack