Back to projects

Project 02 · Agentic AI for water-quality monitoring

GeoAI Water Quality Agent

From a sentence to a water-quality report

A planner-led swarm of AI agents that turns a natural-language request into a scored, six-parameter water-quality assessment of any water body from Sentinel-2 imagery.

PythonMulti-agent swarmSentinel-2 L2ASTAC APIUNet++ (EfficientNet-B4)OpenStreetMapLeaflet

Why I built it

Monitoring the water quality of lakes and reservoirs from space is possible, but in practice it means stitching together a long chain of isolated scripts: finding a cloud-free scene, downloading and stacking bands, masking out land, computing indices and finally building maps that someone else can read.

I set out to replace that chain with a conversational GeoAI agent. Rather than a static pipeline, it is a team of AI agents that plans and runs the whole analysis from a single natural-language request: retrieving satellite imagery, detecting and mapping surface water, computing water-quality parameters and reporting the results.

It is a shift from conventional GIS and remote sensing workflows towards agentic geospatial intelligence, where AI orchestrates the entire analytical pipeline in an automated, scalable and user-driven way.

The problem

Water-quality analysis is a long chain of manual steps

Assessing a lake from satellite imagery means finding a cloud-free scene, downloading and stacking bands, separating water from land, running a separate optical algorithm for every parameter and then building maps that someone can act on. Each step is a script of its own, so a single assessment takes specialist time and is hard to repeat.

  • Scene search

    Querying STAC catalogues by area, date and cloud cover.

  • Water masking

    Deep-learning segmentation of open water.

  • Parameter algorithms

    Six per-pixel optical models, one per parameter.

Built with

Technologies, services and libraries

  • Python
  • OpenStreetMap
  • Leaflet
  • Sentinel-2 L2A
  • STAC API
  • UNet++
  • Multi-agent swarm

The solution

One request in. A full water-quality assessment out.

User prompt

“Beira Lake water quality March 2025”

Agent output

  • Parameter dashboard

    All six water-quality rasters, each with its own legend, with synchronised pan and zoom.

  • Analytics dashboard

    Composite scores, a sub-score heatmap, radar comparison, raw values and a correlation matrix.

  • Quality classification map

    A Good / Moderate / Poor label for each water body.

  • True-colour preview

    The cached Sentinel-2 scene, to check cloud cover and coverage.

  • Water-mask preview

    The segmented water extent that every statistic is computed over.

  • Georeferenced rasters

    Parameter layers exported as GeoTIFFs for further GIS analysis.

Six parameters, one stack

TSS, chlorophyll-a, turbidity, Secchi disk depth, water surface temperature (proxy) and CDOM, all from a single Sentinel-2 six-band stack.

Fast, cached data access

Bands are cached in memory or on disk instead of re-downloaded, so repeated and overlapping queries stay responsive.

Geospatial context

An OpenStreetMap lookup identifies each water body's type and whether it overlaps a protected area, piloted on selected regions.

Methodology

From request to report

Methodology of the GeoAI Water Quality Agent: four stages, each handled by specialist agents in a planner-led swarm.
Methodology of the GeoAI Water Quality Agent: four stages, each handled by specialist agents in a planner-led swarm. Click to open full size.

Try it

How the composite score works

Each parameter becomes a 0–100 sub-score (higher is better), and the sub-scores are weighted into one composite. Water clarity (Secchi disk depth) carries the most weight. Drag the sliders to see how each parameter moves the result.

  • weight 25%
    5
  • weight 20%
    55
  • weight 20%
    40
  • weight 15%
    70
  • weight 15%
    90
  • weight 5%
    5

Composite score

44.5 / 100

Contribution by parameter

  • SDD1.3
  • Turbidity11.0
  • Chl-a8.0
  • TSS10.5
  • CDOM13.5
  • WST0.3

Start values are approximate readings of the South Bolgoda Lake sub-scores for June 2026, a lake the agent classified as Moderate. In the agent, sub-scores are percentile-normalised across the water bodies in each analysis.

Final output

Six water-quality parameters, mapped

Parameter dashboard produced by the agent: (a) total suspended solids, (b) chlorophyll-a, (c) turbidity, (d) Secchi disk depth, (e) water surface temperature (proxy) and (f) CDOM, each with its own legend.
Parameter dashboard produced by the agent: (a) total suspended solids, (b) chlorophyll-a, (c) turbidity, (d) Secchi disk depth, (e) water surface temperature (proxy) and (f) CDOM, each with its own legend. Click to open full size.