Advancing Earth Observation Through Machine Learning: A TorchGeo Tutorial
Caleb Robinson, Nils Lehmann, Adam J. Stewart, Burak Ekim, Heng Fang, Isaac A. Corley, Mauricio Cordeiro

TL;DR
This paper introduces TorchGeo, a PyTorch library tailored for geospatial data, and demonstrates its application through a tutorial on multispectral water segmentation from Sentinel-2 imagery, highlighting its utility in Earth observation tasks.
Contribution
The paper presents a comprehensive tutorial showcasing TorchGeo's core abstractions and an end-to-end case study for multispectral water segmentation, facilitating geospatial machine learning workflows.
Findings
Effective segmentation of water bodies using Sentinel-2 data
Demonstration of training and applying models with TorchGeo
Generation of GeoTIFF outputs for geospatial analysis
Abstract
Earth observation machine learning pipelines differ fundamentally from standard computer vision workflows. Imagery is typically delivered as large, georeferenced scenes, labels may be raster masks or vector geometries in distinct coordinate reference systems, and both training and evaluation often require spatially aware sampling and splitting strategies. TorchGeo is a PyTorch-based domain library that provides datasets, samplers, transforms and pre-trained models with the goal of making it easy to use geospatial data in machine learning pipelines. In this paper, we introduce a tutorial that demonstrates 1.) the core TorchGeo abstractions through code examples, and 2.) an end-to-end case study on multispectral water segmentation from Sentinel-2 imagery using the Earth Surface Water dataset. This demonstrates how to train a semantic segmentation model using TorchGeo datasets, apply the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsRemote-Sensing Image Classification · Geographic Information Systems Studies · Flood Risk Assessment and Management
