Back to Remote Sensing & Earth Observation
Supervised Land Cover Classification of Landsat Imagery

Overview

This project performs a supervised Maximum Likelihood Classification (MLC) of a Landsat 9 image to map seven land cover classes across a coastal study area in British Columbia. Training and validation polygons were manually delineated, spectral signatures were explored per class, and the classification was evaluated using a confusion matrix with overall, producer, and user accuracy metrics.

Overall Accuracy achieved: 90.3%

Objectives

Data Sources & Tools

FileDescription
LC09_L2SP_047026_20240716_..._SR_BSTACK.tifLandsat 9 surface reflectance image — 6 bands (blue, green, red, NIR, SWIR1, SWIR2), 30 m resolution
classification_polygons_AC.shpManually delineated training and validation polygons for 7 land cover classes
bands_wavelength.csvLookup table of wavelength values for each Landsat band
PackagePurpose
terraReading and plotting raster imagery
sfReading and handling vector polygon data
RStoolboxMaximum Likelihood Classification via superClass()
tidyverseData wrangling, reshaping, and ggplot2 visualization
caretModel training support used by RStoolbox

Methods

A Landsat 9 image was loaded and 271 polygons were manually delineated across seven land cover classes: Broadleaf Forest, Coniferous Forest, Exposed Soil and Rocks, High Density Developed, Low Density Developed, Non-forest Vegetation, and Water. Polygons were split 70/30 into training and validation sets using stratified random sampling. Pixel values were extracted and spectral signatures (mean reflectance with 5th–95th percentile ribbons) were visualized per class across all six bands. The Maximum Likelihood Classifier was trained using RStoolbox::superClass() with 500 pixels sampled per class. Classification accuracy was assessed using a confusion matrix, with overall, producer, and user accuracies calculated from the matrix diagonal, row sums, and column sums.

For the full report including all plots and written answers, click here

Outputs

Spectral Signatures by Land Cover Class

Spectral signatures showing mean reflectance and 5th–95th percentile uncertainty ribbons for all 7 land cover classes across Landsat 9 bands

Classified Land Cover Map

Classified land cover map showing 7 classes across the coastal BC study area

Confusion Matrix

Confusion matrix showing prediction vs reference classification results

Key Findings

Skills Learned