πΏ Mapping Wetlands with Terrain Derivatives and U-Net
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:
- fn_read_hucs: Load list of HUC12 watershed IDs
- fn_fetch_stacks: Generate and upload multiband terrain stack
- predict_huc: Run patch-wise inference using U-Net model from Hugging Face
- mosaicpredictions: Combine all per-HUC masks into one seamless raster
π§ 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:
π 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
- π§ GitHub: https://github.com/SWEEP-Inc/sweep-wetlands/
- π€ Model: Hugging Face U-Net Weights
π Acknowledgments
Built by DotMote Labs
Special thanks to contributors working on hydrology, terrain, and climate-resilient mapping.