🌿 Mapping Wetlands with Terrain Derivatives and U-Net

Aji Profile Picture
Aji John October 2025

Share:

A scalable, deep-learning workflow for wetland detection β€” built with SWEEP and open terrain data.

πŸ” Why Wetlands, Why Now?

Wetlands are powerful carbon sinks, water filters, and biodiversity hotspots β€” yet mapping them remains a challenge. Optical imagery can be obscured by cloud cover or forest canopies, and field surveys are costly and time-consuming.

What if we could detect wetlands just from terrain?

This project builds a fully automated deep-learning workflow that uses topographic derivatives (slope, curvature, TPI, etc.) as inputs to a U-Net model, enabling wetland prediction across large regions β€” no satellite imagery required.

βš™οΈ Workflow Overview

This workflow is built using the SWEEP engine β€” a multi-cloud orchestrator for Earth data workflows.

πŸ› οΈ Steps:

  1. fn_read_hucs: Load list of HUC12 watershed IDs
  2. fn_fetch_stacks: Generate and upload multiband terrain stack
  3. predict_huc: Run patch-wise inference using U-Net model from Hugging Face
  4. mosaicpredictions: Combine all per-HUC masks into one seamless raster
πŸ“‚ GitHub repo: wetlands-demo

🧠 Model Architecture

We use a U-Net with ASPP (Atrous Spatial Pyramid Pooling), trained on stacked rasters representing:

  • Slope
  • TPI
  • Curvature
  • Elevation

Training is patch-based (128Γ—128), with BCE + Dice loss, and inference is streamed over each HUC tile.

Weights are published on Hugging Face: dotmotelabs/Unet-ASPP

πŸ“Š Performance

Trained on manually aligned wetland masks (NWI-aligned), evaluated on hold-out watersheds:

Metric Value (Β± SD)
mIoU 0.73 Β± 0.06
F1 Score 0.84 Β± 0.05
Precision 0.88 Β± 0.04
Recall 0.81 Β± 0.07

Even without spectral imagery, terrain features alone provide strong predictive power.

πŸ–ΌοΈ Example Output

Here's the predicted wetland mask for a HUC12 in the Pacific Northwest:

PNW prediction

🌐 What's Next

We're integrating:

  • πŸ›°οΈ Multi-sensor fusion (NDVI, Sentinel-1 SAR)
  • 🌍 Cross-regional generalization
  • πŸ€– Agent Earth AI workflows

Want to try it on your watershed? Want to contribute your own wetland labels or features?

πŸ“¬ Contact us β€” or open an issue on GitHub.

πŸ”— Links

πŸ™Œ Acknowledgments

Built by DotMote Labs

Special thanks to contributors working on hydrology, terrain, and climate-resilient mapping.

Share:

Aji Profile Picture
Written by

Aji John

CEO @ Dotmote Labs