Satellite Image Classification

Can you tell a pasture from a neighborhood in a satellite image?

High SchoolSpace SystemsOne session to start · 2–4 weeks for the full project
Last reviewed: November 19, 2026

AeroEd ran both color baselines on the included 60-image test set.

Which tile shows pasture?

Our classifier called both of these Sentinel-2 images pasture. It saw only the average red, green and blue in each image. Look for roads, boundaries and repeating shapes before you check its answer.

Small pale and dark marks sit along looping lines, crossed by a diagonal strip.
Tile A
A few broad tan and green shapes meet along dark, irregular edges.
Tile B
Reveal the dataset labels and model results

EuroSAT labels A as residential and B as pasture. The pattern of streets in A and the larger fields in B are clues that averaging all the pixels discards.

The mean-color model got 29 of 60 test tiles right. Adding the variation in each color channel raised that to 39 of 60 and corrected tile A. Eight water tiles still looked like forest to the second model. Pick one from the results and look for a clue it missed.

The ZIP includes all 240 tiles, a feature spreadsheet and a Python script that runs offline with the standard library. Contains modified Copernicus Sentinel data 2015–2017. Sample drawn from EuroSAT RGB by Helber and colleagues. Dataset · Methods and credits

Overview

Given a small image of Earth, can a model distinguish forest, pasture, neighborhoods and open water? Start with an intentionally simple model that knows each tile’s average color. Open a picture it mislabels and decide what evidence is missing.

The starter uses 240 unaltered RGB tiles from EuroSAT. The authors labeled 27,000 Sentinel-2 images across ten classes. AeroEd selected four classes, kept a fixed test set and included every original picture used in the exercise. The first comparison works in a browser. The code runs locally with Python 3.

What You'll Learn

  • ✓Separate training images from test images before fitting a classifier
  • ✓Use color and within-image variation as measurable features
  • ✓Read a confusion matrix and examine the tiles behind a mistake
  • ✓Explain what one evaluation can tell you about a new place

Step-by-Step Guide

1

Start with the pictures

Compare the two tiles. Write down what helped you recognize a field or street. Then download and unzip the EuroSAT starter. Open its images folder to find all 240 original tiles.

Each picture has 64 × 64 pixels. EuroSAT assigns a single class to the tile, even if it contains more than one kind of land cover.

2

Keep the test images separate

Open features.csv in a spreadsheet. Each row has an image path, its dataset label, a train or test flag, and six measurements. The first three measurements are average red, green and blue. The next three measure how much the values vary within each channel.

Each class contributes 45 training images and 15 test images. Keep that split when comparing methods. Exclude the filename and label from the input features because the filename itself contains the answer.

3

Run a model you can explain

In the extracted folder, run python3 classify.py --out predictions.csv. On Windows, use py if that is your Python launcher. This script uses only Python’s standard library.

The program averages the training features for each class. It guesses the class whose center is closest to the new tile, after scaling distances by the variation in the training set. To follow the exercise without Python, open the recorded predictions.

4

Find and explain a mistake

The printed table shows dataset labels in rows and predictions in columns. The diagonal counts correct answers. In the mean-color run, only 3 of 15 water tiles were classified as water.

Find a water tile labeled as forest by the model and open its JPEG. Describe one detail the model could not see from average color alone. Record an image ID, the dataset label, the prediction and the evidence for your explanation.

5

Change one thing and compare

Run python3 classify.py --variation --out variation-predictions.csv. This adds the three within-image standard deviations. On the same 60 test tiles our result changed from 29 to 39 correct. Compare the two rows for pasture, then check whether water improved.

For an optional scikit-learn model, install it in your Python environment with python3 -m pip install scikit-learn and run python3 forest.py. The included script fits a random forest on the same six features and split. AeroEd’s run with scikit-learn 1.9.1 got 56 of 60 correct.

6

Choose a fair test for a larger map

The split holds out individual pictures. Nearby places can still look alike. To estimate performance in a new region, use georeferenced imagery and reserve an entire area for the final test. The full multispectral release includes geographic information and spectral bands beyond visible color.

For your project report, show an image, a prediction and one improvement you could test. Once you start changing the model in response to the test results, set aside new data for your final evaluation.

Go Further

Try all ten EuroSAT classes or add near-infrared measurements from the multispectral release. Specify the question and split before comparing results. The dataset authors describe the original benchmark and license.

Bring one difficult tile to a conversation with an Earth observation student team. Ask how they would distinguish a real surface feature from cloud, haze or a shadow.