Module 2 - Change Detection#

Instructor: Dr. Aditya Singh (aditya01@ufl.edu)
Co-authors: Silas Achidago (s.achidago@ufl.edu) and Julie Peeling (juliepeeling@ufl.edu)

What will you learn from this module?

  • Introduction to change detection using remote sensing,

  • Different ways change can be detected, choosing the best sensor combinations,

  • Conducting change detection in GEE using a few common examples.

1. Introduction to Change Detection#

Change Detection is the generic term for utilizing remote sensing sensor(s) to detect, delineate, and measure the conversion of a landscape from one dominant type to another. Changes could be observed in the shape, size, or texture of patches of land depending on the magnitude of the change, and the characteristics of the sensor utilized. Examples include;

  • Land degradation as a result of deforestation or overuse,

  • Urban expansion,

  • Flooding,

  • Landscape scarring due to forest fires etc.

Forms of Change Landscape change can occur in many different ways, therefore, a detailed understanding of the mechanism of change is required to determine the correct combination of techniques and sensors.

Continental-scale vegetation phenology tracked by MODIS. (Source)
  • Directional change: e.g, Conversion of agriculture to urban: Needs high spatial resolution imagery, generally involving at least one band that can track vegetation (e.g. NIR)
  • Cyclic change: e.g., Crop or grassland phenology: Needs high temporal resolution imagery so changes around critical growth stages can be captured, typically also using a vegetation tracking band (NIR),
  • Multidirectional change: e.g., Deforestation followed by forest regeneration: Needs moderate spatial and temporal resolution depending upon the magnitude of change. Having calendar-date imagery is useful when change needs to be tracked across multiple years.
  • Between class changes: e.g., Forest to agriculture conversion: Typically needs high spatial and temporal resolution to be able to tell different growth stages apart,
  • Within-class changes: e.g., Seasonal change in dominant grass species: Typically needs high spectral resolution to be able to tell different vegetation types apart
Change Detection answers the following question:s
  • How much and what kind of change has occurred?
  • Where and when has change taken place?
  • What are the trends in the change?

2. Change Detection Using Remote Sensing #

At the most basic, remote sensing techniques track landscape change by tracking changes in spectral reflectance profiles of individual pixels. Differences in spectral characteristics inherent to different surfaces are exploited to differentiate between cover types. As an example, healthy vegetation has high reflectance in the near-infrared spectrum but low reflectance in the red spectrum. The widely used normalized difference vegetation index (NDVI = [NIR-Red]/[NIR+Red]) exploits these differences to track vegetation vigor. Moisture in vegetation also strongly absorbs shortwave radiation making these bands very useful for tracking water status in plants. Much like NDVI, differences in spectral characteristics can be exploited by combining different spectral bands into standardized indicies, with the bands determining which phenomenon can be best tracked. Note that change detection almost always requires imagery to be available at, at least two different time periods.

Healthy vegetation has a large peak in the near infrared region, while soil or burned areas are much lower. Healthy vegetation also has low reflectance in the red and shortwave infrared regions in contrast with burned areas. (Source)

3. Change Detection Methods#

a. Visual Analysis - The first step in any change detection process - change can be detected through simple visual comparison using different combinations of bands followed by on-screen visualization. While this technique is considered the most accurate because of direct human involvement, it is unsuitable for large areas as multiple digitizers can inject human bias into the process. Also, visual analysis cannot be relied upon when changes are subtle.

b. Image Differencing - When abrupt changes are expected, a simple differncing of bands, or selected image indices can often reveal areas of change. Image differencing is generally computed on a pixel-by-pixel basis and is executed across the full extent of two images. The pixel-based nature of image differencing allows for more precise identification of change. The difference image can then be scaled to ground observations using standard statistical techniques such as linear or logistic regression. This method is particularly useful for assessing change over continuous indices (such as those used to measure vegetation and soil).

c. Image Sequences - When subtle changes are expected, a large number of chronologically ordered inages are stacked, and trajectories of individual pixels are extracted. Once pixel-scale trajectories are available, users can fit a variety of statistical models to understand the process of change. For example for environmental data, fitting a linear trend to precipitation data stacked over long time periods can provide evidence of secular warming or cooling trends. Periodic data such as vegetation phenology can be studied using harmonic models to understand vegetation seasonality.

d. Change vectors - When complex changes are expected, sets of spectral bands or vegetation indices can be studied for change simultaneously by considering each combination of index or bands as a N-dimensional vector. Changes in the direction of this vector computed via standard vector algebraic models can provide indicators of change in more than a single variable.

4. Change Detection in GEE#

For the purposes of this exercise, we will focus on 1) image differencing to detect change, and 2) assuming classified maps are available, tracking changes in proportions of pre-classified landcover - an important activity in many land use planning organizations. To do this, we will use three case studies:

  1. Detecting deforestation.

  2. Detecting flooding, and conducting damage assessments.

  3. Detecting land cover change across administrative boundaries using classified imagery.

4.1 Detecting deforestation

Copy the script here and paste into GEE. This exercise involves 6 distinct steps:

  1. Selecting an area of interest:

    • Draw a rectangle on the map GUI where you suspect change to have occurred. For the purpose of this exercise we utilized the region spanning SW Kumasi to Ntobroso in the West and Akuntam in the South. This area seems to have undergone some amount of mining operations in the past few decades. See variable REG_GH.

  2. Selecting the appropriate sensor:

    • For the purposes of this exercise, we will utilize Landsat 7 and Landsat 8 to detect changes between 2000 and 2020. We reuse snippets of code from previous training sessions to select, download, and pre-process Landsat imagery. See dates specified for variables PRE_ST_DATE and so forth for formatting to specify dates, and variables IMG_L7 and IMG_L8 to select image collections.

  3. Selecting the appropriate image indices to monitor:

    • We test two indices: NDVI - to test changes in vegetation vigor, and the Normalized Burn Ratio (NBR), a comparison of NIR and SWIR bands that has been found to be uuseful in tracking surface moisture:

  4. Processing the imagery to calculate image differences:

    • See functions getNBR and getNDV to extract image indices from Landsat imagery. See variable DNBR and DNDV for a very simple way for calculating image differences.

  5. Assessing the difference image, and determining the threshold of change:

    • See code for generating histograms to allow the inspection of the number of pixels across various values of differences in indices. Use this histogram to assess which level to threshold the difference image to generate a mask of change. Note variable connections to obtain an ancillary dataset for estimating 8-connected pixels for cleaning the threshold image.

  6. Assessing the magnitude of change observed via an alternative data source:

    • The last part masks MODIS landcover across the thresholded difference map, and generates a histogram to inspect which land cover changed the most.

4.2 Assessing flood damage#

This exercise utilizes Sentinel-1 SAR data to detect inundated areas using image differences pre- and post a flooding event. The main part of the exercise is a simple study in image differencing, but also has a number of helper functions that let the user extend the flood mask to generate detailed reports using ancillary data. The GEE script has been adapted from the UN-SPIDER portal here. Copy the script here and paste into GEE. This exercise involves 4 distinct steps:

  1. Selecting an area of interest:

    • Draw a rectangle on the map GUI where a flooding event occurred in the past. For the purpose of this exercise we looked up floods in Ghana in the news and selected an area around Tamale, extending to Nabengu Source. The flood occurred in July-August 2021. See variable REG_GH.

  2. Radar data:

    • This exercise utilizes Sentinel-1 SAR data to detect changes in radar reflectivity in the VV polarized beam in the ascending pass. Different polarizations (VV, HH, or VH) can be tested, and different passes (Ascending or Descending) can be selected to generate flooding extents.

  3. Finding flooded areas:

    • Flooded areas can be detected by thresholding difference images at an appropriate scale. The scale (see variable difference_threshold) should be determined by combining the difference histogram, inspecting the difference image, and selecting an appropriate threshold based on ground observations.

  4. Assessing damage:

    • The rest of the script utilizes a number of ancillary datasets to overlay the flood mask with population counts and land cover maps to generate reports of expected damage and population affected. While this section is not covered in detail in this training,

4.3 Land cover change across regions and time#

In the situation where land cover maps are available for multiple years, an important activity for management agencies involves assessing proportional changes in land cover across multiple years and across potentially disparate adminstrative boundaries. This task is time and labor intensive and is generally handled via ‘zonal statistics’ functions in GIS platforms. This exercise leverages the functionality of GEE to automate the task using landcover data that is increasingly being made available on the GEE data catalog. The GEE script has been adapted from Spatial Thoughts Platform link by Ujaval Gandhi.
Copy the script here and paste into GEE.

  1. This exercise utilizes MOD12Q1 MODIS landcover data as an example. Data are extracted for all years of interest and tabulated across the administrative areas of interest.

  2. The administrative areas of interest are extracted from the FAO/GAUL dataset. For the purposes of this exercise, we use boundaries from the Ashanti region of Ghana.

  3. The approach is straightforward: each landcover class is isolated and extracted as a mask from an annual MODIS landcover image. The pixelArea() function assigns areas to each pixel and this intermediate map is passed on to each ‘feature’ (polygon) of the administrative dataset for aggregating the area of the land cover class within the boundary using the reduceRegion() function. The process is repeated for each year, for each land cover type, and each polygon.

  4. While the approach is conceptually straightforward, the nature of data storage structures in GEE entails a number of data curation and formatting steps. The first 100 lines in the code demonstrate the mechanics of this approach. The next section of the code runs this loop, and exports the assessed areas as a Comma Separated Value (CSV) file to a user-selected folder in GoogleDrive.

5. Post-training Survey#

6. Other Useful Resources#

  1. Cloud-Based Remote Sensing with Google Earth Engine

  2. NASA ARSET: Time Series Analysis