Web-Based Change Detection Dashboard

A cloud-powered geospatial application detecting land use dynamics using Sentinel-2 imagery, Google Earth Engine, and K-Means clustering.

The Research Challenge

Traditional land use monitoring relies on static desktop GIS software (like ArcGIS or QGIS) that is expensive, resource-intensive, and requires specialized training. This creates a barrier, keeping critical environmental intelligence out of the hands of local policymakers, educators, and the general public.

The Solution

For my B.Sc. Computer Science final year project, I built a serverless, cloud-based web application. By integrating the Google Earth Engine (GEE) API for heavy spatial computation with a Streamlit front-end, I created an interactive tool that democratizes land use monitoring. Users can draw a polygon, select a date range, and instantly visualize land cover changes.

Python Google Earth Engine Streamlit

The interactive Streamlit interface displaying side-by-side unsupervised K-Means land cover clusters for the selected temporal periods.
(Use arrow keys or buttons to navigate • Click any image to view full size)

Architecture & Data Flow

Data Layer (Google Earth Engine for Sentinel-2 retrieval & cloud masking) → Processing Layer (Python & Scikit-learn for K-Means Clustering) → Interface Layer (Streamlit & Folium for interactive web mapping).

GEE Data → Python Processing → Streamlit Interface

Behind the Scenes

Here's a glimpse into the technical work that powers this project:

Level 1 Dataflow Diagram

Level 1 Dataflow Diagram

Interactive Map AOI Selection Tool

Interactive Map AOI Selection Tool

Code Logic

Here's a sample of the Python code used to retrieve and process Sentinel-2 imagery via the Google Earth Engine API:

Python

# Utilizing Google Earth Engine (GEE) via Python to retrieve and mask Sentinel-2 imagery
def get_sentinel2_composite(aoi, start_date, end_date):
    collection = ee.ImageCollection('COPERNICUS/S2_SR_HARMONIZED') \
        .filterBounds(aoi) \
        .filterDate(start_date, end_date) \
        .map(mask_s2_clouds) # Custom cloud masking function
    
    # Return median composite clipped to the user's Area of Interest
    return collection.median().clip(aoi)
                    

Meet the Team

This project was completed under the guidance of:

Mr. Jongbo O.A.

Project Supervisor

Case Study: EKSU Environs

Here's what we achieved and learned:

-71.07%

Cluster 0 Decline

+676.44%

Cluster 2 Expansion

10m

Sentinel-2 Spatial Resolution

4

K-Means Clusters

Key Insights

  • The Supervised vs. Unsupervised Pivot: Initially, I planned to train a supervised classification model. Due to time constraints and a lack of ground-truth labeled data, I pivoted to an unsupervised K-Means clustering model. This proved highly effective at detecting spatial anomalies and shifts, demonstrating that functional prototypes can be built even with imperfect data environments.
  • Massive Expansion: Between the 2016-2019 baseline and the 2020-2023 recent imagery, "Cluster 2" experienced aggressive growth, rising sharply from 72.29 hectares to 561.29 hectares within the 2km buffer.
  • Significant Contraction: "Cluster 0" saw a dramatic decline, dropping from 618.02 hectares to just 178.79 hectares, indicating substantial land transformation, likely vegetation loss to built-up academic and residential areas.