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

Worksheet 1 Preparing a drone image dataset for training

Analysis activity 90 minAssesses CLO1

Objective

Define the data scope and labelling policy, split by group, write a datasheet, tile, balance colour and augment data while keeping boxes correct

Equipment and materials

  • Sample drone images provided by the department with usage rights
  • CVAT for labelling
  • Computer with Python, numpy, opencv, scikit-learn, scipy and the example code at /downloads/uat-456/
  • Datasheet template

Safety

  • Desk work at a computer; no flying
  • Blur or crop identifiable people before sharing, and keep data only on department storage
  • Use only images you have the right to use, and record their source

Steps

  1. Write a one-page data scope and labelling policy
  2. Label 30 images in CVAT, two people separately, and compare agreement
  3. Split the data by date or paddock and write a datasheet following the headings of Gebru et al.
  4. Compute object size in pixels and the tile count with Example 1, then cut the tiles
  5. Try gray-world balance on morning and midday images with Example 2 and explain when it fails
  6. Write flip and rotate functions that transform boxes, and test them with the method in Example 3

Record of results

Table 1 Agreement between two annotators
Image or objectBox by A (x1, y1, x2, y2)Box by BIoUClass by A / B
Table 2 Object size and tile count
Camera or image setGSD (cm/px)Object size (px)Tile / overlap (px)Tiles (nx × ny)Pixels processed ratio
Table 3 Box-transform tests
TransformBox from the formulaBox from the really transformed imageMatch?

Questions

  1. From Table 1, how far is your kappa from the raw percentage agreement, why, and which rule should the labelling policy gain before more images are labelled?

  2. If your camera flies lower so the GSD is 1.5 cm, is a 128-pixel overlap still enough for a 2.0 m cow, and what is the smallest overlap you must set?

  3. In your gray-world trial, which images got the wrong colour after balancing, why, and how should the team handle colour at capture time instead?

  4. Why must your group split the data by date or paddock, and from which set must the mean and standard deviation for standardisation be computed?

Check before you hand in

What to hand in

  • Data scope and labelling policy
  • Annotator agreement result
  • Datasheet
  • Tile calculations and box-transform test results

CLO1 Explain and design an intelligent image-analysis pipeline from image-data preparation and image processing to feature extraction. (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