Why spatial validation matters in remote sensing
A practical guide to geographic leakage, spatial blocks, and the difference between interpolation and transfer.
1. Research question
Why do standard random train-test splits overestimate remote sensing model accuracy, and how should geospatial practitioners design spatial validation protocols that match their intended geographic deployment question?
2. Study area and datasets
To illustrate realistic spatial holdout design, this tutorial references the regional geographic split from the French PASTIS-R crop-mapping pilot, where 400 patches are divided into two training clusters, a northeastern validation cluster, and a geographically disjoint southern test region with a 12 km centroid exclusion buffer.
3. Methodology
Start by defining the deployment objective explicitly:
- In-region interpolation (new fields inside a familiar landscape): Partition data into spatial blocks with buffer distances separating development and test footprints.
- Geographic transfer (new unseen regions): Hold out an entire contiguous region, verify actual distances between patch footprints or centroids, and document the distance definition used.
- Strict pipeline isolation: Fit feature scaling, feature selection, and model weights on training data alone, select checkpoints using validation data, and inspect the test set only after all configurations are frozen.
4. Scientific figures and maps
5. Results
Following a spatial protocol changes both which metrics matter and how uncertainty is reported. Overall accuracy often hides rare-class failure; segmentation tasks should report class-balanced macro-F1 or IoU alongside class support and reference-normalized confusion matrices, while regression tasks should report RMSE, MAE, bias, and a domain baseline. Spatial-block resampling estimates paired uncertainty while preserving local geographic dependence.
6. Limitations
Spatial-block bootstrap intervals and holdout scores remain conditional on the chosen block size, held-out region, and model configurations. A clean spatial split does not guarantee zero domain shift across continents or seasons; rather, it ensures the validation score answers the actual geographic question being asked.
7. Reproducible code and references
- Applied example: See Can TerraMind generalize across geographic regions? for a worked implementation of this 12 km regional holdout and 10 km paired spatial-block bootstrap protocol.