arXiv:2610.08227stat.MLOct 2026

Manuscript Offprint

arXiv:2610.08227

How Many Independent Samples Does a Satellite Image Contain? Generalization Bounds for Spatially Dependent Data

Robin Young

Robin Young

Department of Computer Science and Technology

University of Cambridge, UK

ray25@cam.ac.uk

Abstract—Machine learning classifiers for remote sensing imagery are typically evaluated as though every pixel were an independent sample. Spatial autocorrelation violates this assumption, since neighboring pixels carry redundant information which inflates sample sizes. How many independent samples does a satellite image actually contain? For an n×nn \times n image whose spatial correlation persists over a range of rr pixels, the effective sample size is Θ(n2/r2)\Theta(n^2/r^2), not n2n^2. We prove this as a finite-sample upper bound for classifiers on spatially correlated data, and show via a matching lower bound that the rate is tight, and no algorithm can do better. We extend the results to images with directional correlation and spatially varying correlation structure. Our result justifies spatial cross-validation since block holdout with separation proportional to the correlation range achieves optimal generalization guarantees, while random holdout can underestimate confidence interval widths by a factor proportional to rr. We validate the theory on synthetic data and satellite image tiles from three sensors (Landsat 8, Sentinel-2, and Sentinel-1).

Keywords: Generalization bounds, spatial dependence, sample complexity, spatial autocorrelation

I. INTRODUCTION

A persistent methodological issue in remote sensing is spatial autocorrelation, namely the mismatch between the number of labeled pixels available and the amount of statistically independent information they contain. An n×nn \times n satellite image nominally provides n2n^2 labeled samples, but neighboring pixels are spatially correlated. Adjacent forest pixels look alike, adjacent urban pixels look alike, because a scene is composed of internally homogeneous objects (fields, forest stands) whose size and spacing set the distance over which correlation persists [1]. Standard learning-theoretic guarantees, that is, high-probability bounds on how far a classifier's test error can depart from its training error, assume independent and identically distributed samples and therefore do not apply.

In practice, this manifests as a well-documented bias. Models evaluated by random holdout on spatially autocorrelated imagery report higher accuracy than models evaluated by spatially structured holdout [2, 3, 4, 5]. The recognition that covariance structure differs across strata, and that treating a scene as globally homogeneous is inadequate, has a long history in geostatistics [6]. Studies of sampling design under spatial dependence have shown empirically that prediction accuracy degrades sharply once the sampling interval approaches the autocorrelation range [7]. Concurrently, Liao et al. [8] have established an empirical scaling law relating sample size to classifier performance in remote sensing. Our results complement theirs by providing a theoretical explanation for why the effective sample size entering such scaling relationships is Θ(n2/r2)\Theta(n^{2}/r^{2}) rather than the nominal pixel count. The remote sensing community has converged on the recommendation to use spatial cross-validation, but a characterization of the cost of ignoring spatial structure, how much independent information an image truly contains, and a proof that the standard spatial CV prescription is optimal has remained open. Meanwhile, the statistical learning theory literature has developed generalization bounds for dependent data under mixing conditions [9, 10, 11], but almost exclusively for temporally indexed (one-dimensional) sequences. 1^{1}

We bridge this gap. Our contributions are a finite-sample generalization bound for classifiers on a two-dimensional β\beta-mixing random field, with an explicit dependence on the spatial correlation range r, a matching minimax lower bound showing the rate is tight up to logarithmic factors, and a corollary providing theoretical justification for spatial cross-validation in remote sensing and quantifying the overoptimism of random holdout. For a typical Sentinel-2 scene with correlation range 30 pixels, the effective sample size may be much smaller than the pixel count, meaning reported confidence intervals could be too narrow.

References (25)