Classifying Commodities in GEE

Learning objectives of this tutorial

  • Collect (training/validation) sample points in GEE
  • Generate texture information from sentinel-2 spectral bands
  • Apply the Random Forest classifier to identify commodities
  • Determine the accuracy of your product

Prerequisites

  • The tutorial of this lesson will be done in Google Earth Engine (GEE). If you are not familiar with GEE, link to the FAQ, and tutorials are provided.
  • Image Classification could be useful for a recap of how to select for samples and the Random Forest classification method

Time estimate of this tutorial is 30 – 45 minutes. Note that running time will depend on the observation period and area of interest (aoi)

Introduction

This practical provides a basic workflow to map commodities using the spectral bands and texture information from Sentinel-2 data.
You will learn a series of GEE tools to:

  1. Collect training and validating dataset for a Random Forest model.
  2. Generate a cloud-free composite from Sentinel-2 imagery.
  3. Extract texture features from sentinel-2 cloud-free composite.
  4. Explore feature importance.
  5. Train and validate a Random Forest model.
  6. Generating a commodity map for your area of interest.

We will provide advanced reading material to discuss ways to improve the accuracy of the classification.
The skills and techniques you will lean are also applicable for other regions and other commodity types.


Study Area

The study area is around the district of Bogoso in Ghana, above you see a time lapse of the area in which a mine is being developed. In our analysis we will not be focusing on mining but rather on identifying palm, rubber, cocoa, and native forests.


Set up steps

You will need an active Google Earth Engine (GEE) account for this tutorial, if you haven’t signed up for an account yet, you can see the FAQ here and sign up here.

You will need to create a new script, throughout the tutorial you will be copying the code blocks from this page into your script and running them. If you need an introduction to the GEE environment, please take some time and review the documentation.

Discussion

Potential ways to improve classification accuracies:

  1. Compare the overall accuracy and confusion matrix between using texture information (Scenario 2) and not using it (Scenario 1)
    • Will the accuracy further improve if we introduce other dataset?
  2. Explore texture information:
    • kernel size
    • Different RGB to greyscale transformation
  3. Improve the quality of the training dataset:
    • import ground truth data from field work
    • Using very high resolution satellite data with a matching date for sentinel-2 mosaics
  4. Will the accuracy further improve if we introduce other dataset?
  5. Question: Using the knowledge you have gathered in this tutorial:
    1. What do you think can be used to improve the classification results?
    2. What is important when trying to achieve the most accurate classification?
    3. The classification accuracy for shaded cocoa remains the lowest among all classes.
    4. What data or method could improve the classification accuracy for shaded cocoa?