UAT 456 Artificial Intelligence, Machine Learning and Computer Vision for UAS
Worksheet 5 Mini-project: evaluating a whole image-analysis pipeline
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
- Compute the chosen backbone's receptive field and stride with Example 1 and compare with object size
- Fine-tune the detector head-only and whole-model, and compare on the validation set
- Measure ECE and apply temperature scaling as in Example 2
- Evaluate the end output against your own counts or measurements, split into at least two subgroups, as in Example 3
- Time the pipeline on the real device without warm-up runs and build a budget as in Example 4
- Write a one- to two-page model card and present it with recommended operating conditions
Record of results
| Item | Value | Compared with object size | Validation result |
|---|---|---|---|
| Confidence bin | Number of boxes | Mean confidence | Fraction correct (before) | Fraction correct (after) |
|---|---|---|---|---|
| Subgroup or device | MAE | Bias (%) | MAPE (%) | Worst case or time | Pass? |
|---|---|---|---|---|---|
Questions
Is the last-layer receptive field of your backbone longer than the object? If not, what happens and how is it fixed?
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'?
How do the all-flights result and the subgroup results lead to different conclusions, and how should the model card state the operating conditions?
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