Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Turning imagery and annotations into model-ready datasets for GeoAI workflows

1. Context

In the previous lessons, you searched for spatial data, inspected candidate sources and created maps for visual checking. This lesson moves one step closer to modelling: you will prepare Training Data.

Training data are the examples a model learns from. In GeoAI, these examples often consist of image chips paired with labels, masks, bounding boxes or continuous target values. A segmentation model might learn from aerial image chips and building masks. An object detector might learn from image chips and bounding boxes. A classifier might learn from image chips and one label per chip.

This lesson focuses on the shared preparation logic behind those workflows. Later method lessons will reuse these ideas for image recognition, object detection, semantic segmentation, instance segmentation, change detection and regression.


2. Motivation

A model can only learn from the examples it receives. If labels are misaligned, incomplete, outdated or strongly imbalanced, the model will learn those problems too.

Training-data preparation is therefore one of the most important project decisions in GeoAI. You need to check whether imagery and annotations match, convert labels into the right format, split large scenes into manageable chips, inspect the generated pairs and organise the dataset so that training, validation and testing remain meaningful.

This lesson helps you build that inspection habit before the modelling lessons begin.


3. Learning objectives

By the end of this lesson, you should be able to:


4. Lesson roadmap

Work through the pages in this order:

  1. Training-data pipeline — understand the complete workflow from raw imagery to model-ready datasets.

  2. Imagery and annotations — inspect source imagery and labels before creating training data.

  3. Vector to raster masks — convert polygon annotations into pixel-level masks that match a reference raster.

  4. Tiling and image chips — split large rasters into manageable chips and preview image-mask pairs.

  5. Batch workflows and pairing — scale the workflow to multiple images and annotation files.

  6. Quality control and splits — check label quality, class balance, edge effects and train/validation/test splits.

  7. Project transfer — design a training-data plan for your own SDS320 project.


5. Project framing

As you work through this lesson, keep your own project in mind.

Use these guiding questions:


6. Before class

Before class, prepare the following:


7. After this lesson

After completing this lesson, you should have:

This does not mean your training data must be final. It means you should know what needs to be created, inspected and documented before training a model.