Manuscript Offprint
arXiv:2610.08227How Many Independent Samples Does a Satellite Image Contain? Generalization Bounds for Spatially Dependent Data
Robin Young
Department of Computer Science and Technology
University of Cambridge, 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 image whose spatial correlation persists over a range of pixels, the effective sample size is , not . 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 . 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 satellite image nominally provides 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 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.
We bridge this gap. Our contributions are a finite-sample generalization bound for classifiers on a two-dimensional -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.
Definition 1 (Spatial -mixing with latent alignment). Let be a random variable on a finite set (possibly a single point, in which case all conditioning below is vacuous ) such that, conditional on , the single-site law of is the same for all and . For finite with
Readers unfamiliar with statistical learning theory may find the primer in the appendix helpful. It glosses the VC-dimension and uniform-convergence machinery used below.
This will be needed to ensure stationarity in the lower-bound construction. For the upper bound the reader may take to be degenerate and ignore the conditioning.
where , and set
The mixing coefficient measures how close to independent two regions of the image become as you move them apart. For degenerate this is the standard spatial -mixing coefficient. The alignment models a global nuisance given which the field mixes (for instance, the unknown phase of the object grid like field boundaries or forest stands relative to the pixel lattice). No analyst knows where scene objects fall relative to the sensor grid, so this is a natural feature of remote sensing data rather than a technical artifact. The single-site condition ensures the risk defined below is independent of s and .
Let be a hypothesis class of classifiers with VC dimension . Define the 0-1 loss and the true risk .
For a stationary Gaussian random field with covariance (exponential model with range ) and spectral density bounded away from zero, we have for constants [12, 13], with degenerate . For the Matérn model with smoothness , polynomial mixing rates hold with depending on and the spatial dimension.
III. UPPER BOUND
The challenge is that standard generalization bounds assume independent samples, yet nearby pixels in a satellite image are correlated. Our proof strategy converts the dependent-data problem into an independent-data problem at a controlled cost. We partition the image into small blocks separated by gaps of width (Fig. 1). If is large enough relative to the correlation range , the blocks are nearly independent, and we can apply standard concentration inequalities as if the blocks were i.i.d. samples. The cost is that the gaps consume pixels and an image with pixels yields only usable blocks. The proof optimizes this tradeoff where wider gaps give better independence but fewer blocks and shows that the optimal gap is , yielding effectively independent blocks up to logarithmic factors.
Formally, the argument has three components: a coupling lemma that bounds the total variation distance between the dependent blocks and an i.i.d. surrogate (Lemma 1), a complexity bound on the block-averaged loss class (Lemma 2), and an optimization over the block geometry.
Fix integers (block side length) and (gap width). Set . Define non-overlapping blocks
for , where . This yields blocks, each containing pixels, with any two distinct

retained block discarded gap pixels
Fig. 1. Graphical illustration of the blocking construction in Thm. 1.
blocks separated by . Define the block empirical risk
By stationarity, . The standard telescoping argument [14] extends directly to the 2D setting:
Lemma 1 (Coupling). Conditionally on , for every , there exist i.i.d. random variables with such that
Proof. Enumerate the blocks as ; all laws below are conditional on . By the triangle inequality, . Each is -measurable, is finite at -distance from , so each term is .
Lemma 2 (Complexity of Block-Averaged Class). The pseudo-dimension of satisfies .
Proof. Shattering block-samples with thresholds requires all sign patterns of ; each induces a binary labeling of pixels, so by Sauer's lemma. Then , and for gives the claim.
Remark 1 (On generality). We emphasize that the correlation range r and the number of pixels enter the effective sample size independently of the classifier. The hypothesis class affects the bound only through its VC dimension , which multiplies the deviation as but does not change the scaling in r. The rate is therefore a property of the spatial dependence structure, not of any particular learning algorithm.
Theorem 1 (Upper bound). Let be a strictly stationary random field on satisfying Definition 1 with for constants and correlation range . Let have VC dimension . For any , choosing block side length and gap optimally, with probability at least :
where depends only on and . Equivalently, the effective sample size is .
Proof. Fix and argue conditionally on . Combining Lemmas 1 and 2 with the standard pseudo-dimension bound for i.i.d. bounded variables:
(6)
where and .
Optimization. The coupling constraint requires ; the concentration term scales as . We set : single-pixel blocks may seem counterintuitive, since averaging over larger blocks reduces each block's variance, but larger blocks also inflate the pseudo-dimension (Lemma 2) and reduce the block count for a given gap, and the variance reduction cannot compensate for these two costs. With , and is maximized.
With , each is a single-site loss, whose conditional law is independent of with mean by the single-site condition of Definition 1. Hence the coupled surrogates are conditionally i.i.d. with mean , the right side of (6) is uniform in , and averaging over preserves the bound. Setting (6) equal to yields the result.
IV. LOWER BOUND
To show that no algorithm can beat the effective sample size, we construct a worst-case random field that is stationary, satisfies the mixing condition, and yet contains independent pieces of information. The construction tiles the image with “super-pixels,” each carrying an independent draw from a hard classification instance. All pixels within a super-pixel share the same feature and label, so observing the full pixels is no more informative than observing the super-pixel summaries. A random spatial offset ensures strict stationarity, and conditionally on the field is block-independent, so the construction satisfies Definition 1 with as the latent alignment, the offset is the unknown grid phase that the definition models. Applying Assouad’s lemma to the resulting i.i.d. super-pixel problem gives a minimax lower bound of , matching the upper bound up to logarithmic factors.
Theorem 2 (Minimax lower bound). Let H have VC dimension . For any and , there exists a strictly stationary random field on satisfying Definition 1 with for all hence lying in the model class of Theorem 1 such that
where the infimum is over all learning algorithms and the supremum is over all distributions within the model class.
Proof. Since , there exist points shattered by .
Step 1: Construction. Let be uniform on , independent of all other randomness. Define super-pixel assignments . For each super-pixel , draw independently and , and set , , where is the unknown concept.
Step 2: Stationarity. Shifting by is equivalent to shifting by ; since is uniform on a period- grid, the field is strictly stationary.
Step 3: Mixing. Condition on , so is deterministic. The conditional single-site law is that of with , , independent of and . If , the index sets and are disjoint, and since the marks are i.i.d. across super-pixels, for , uniformly in . (Unconditionally the field is not mixing since observing one region reveals the grid phase, which is informative about joint laws in distant regions. Conditioning on removes this nuisance.)
Step 4: Sufficient statistic. Reveal to the learner; this only strengthens it, so any lower bound survives. Conditionally on , the data reduce to i.i.d. pairs , one per super-pixel, and the reduction does not depend on .
Step 5: Assouad's lemma. Work conditionally on ; the excess risk is -free by Step 3, so the bound below is uniform in and averaging gives the theorem. The concepts form a hypercube. Flipping bit changes the excess risk by . The number of super-pixels informative about bit is , and by Pinsker, . Set with (as ), so . Since given and is concave, Jensen gives . The expectation form of Assouad's lemma [15] then gives
and completes the proof.
Comparing Theorems 1 and 2, the upper bound is and the lower bound is : the rates match and the gap is polylogarithmic.
V. EXTENSIONS TO NON-IDEAL SETTINGS
The results of Sections III–IV assume an isotropic, globally stationary random field. We now relax both. Section V-A extends the bounds to anisotropic fields with directional correlation, and Section V-B extends them to piecewise stationary fields with spatially varying correlation structure.
A. Anisotropic Fields
Many remote sensing modalities exhibit directional correlation structure. SAR images have different correlation lengths in range and azimuth, and landscapes shaped by rivers, coastlines, or mountain ridges are naturally anisotropic. We replace the isotropic exponential covariance with
where are the directional correlation ranges. The corresponding mixing coefficient satisfies
where denotes the separation between two regions in direction k.
The blocking construction generalizes by using rectangular blocks and gaps. Fix unit block size and directional gaps . Define blocks
for and , where . This yields single-pixel blocks, any two of which are separated by at least in the respective directions.
Theorem 3 (Anisotropic upper bound). Let be a stationary random field on satisfying Definition 1 with directional rate (10) and directional correlation ranges . Let have VC dimension . For any , with probability at least :
where depends only on . The effective sample size is up to logarithmic factors.
Proof. The coupling lemma (Lemma 1) applies with the same telescoping argument where each pair of blocks is separated by , so each coupling step incurs error at most . The constraint is satisfied by setting for each . Since , the pseudo-dimension bound (Lemma 2) gives . The number of blocks is
Substituting into (6) yields the stated bound. For nondegenerate , condition as in Theorem 1. Since , the argument is identical.
Theorem 4 (Anisotropic lower bound). Under the conditions of Theorem 2 with directional ranges and :
Proof. Modify the construction of Theorem 2 by using rectangular super-pixels. Let be uniform on and define super-pixel assignments . Each super-pixel has size . Stationarity follows from the uniformity of (shifting by is equivalent to shifting by , which preserves the distribution since is uniform on a period- grid). Conditionally on , super-pixel indices of and are disjoint whenever , giving for uniformly in ; the learner is augmented with as in Step 4 of Theorem 2. The number of super-pixels is . The Assouad argument proceeds identically, yielding .
Theorems 3 and 4 together establish that for anisotropic fields, matching up to polylogarithmic factors. The isotropic result is recovered when .
The practical implication for spatial cross-validation is that block separation should be direction-dependent where folds should be separated by in direction , leading to elongated validation blocks aligned with the anisotropy. For SAR imagery, where the range direction may have pixels and the azimuth , this yields rather than the isotropic estimate obtained by using in both directions.
B. Piecewise Stationary Fields
Real remote sensing scenes are rarely globally stationary, and correlation structure varies across land cover types, and the range fitted over cropland may differ substantially from that over forest or urban areas. We extend the theory to fields that are stationary within each of K homogeneous regions.
Definition 2 (Piecewise stationary field). A random field on is -piecewise stationary if there exists a partition such that, within each region (containing pixels), the field is stationary and satisfies Definition 1 (alignment ) with , and, conditionally on the tuple , the restrictions of the field to distinct regions are mutually independent.
Without global stationarity, the expected loss depends on s. The natural target becomes the domain-average risk:
where and is the within-region risk.
Within each region , we construct blocks with gap , yielding blocks. The per-region block empirical risk is , and the overall estimator is
By per-region stationarity, .
Theorem 5 (Piecewise stationary upper bound). Let be a -piecewise stationary field on , with each region containing pixels and having correlation range . Let have VC dimension . For any , with probability at least :
where depends only on . The effective sample size is
up to logarithmic factors.
Proof. Within each region , apply the coupling lemma (Lemma 1) with gap to replace the dependent block variables with independent copies. The total coupling error across all regions is at most by setting the gaps appropriately.
After coupling, is a weighted sum of independent bounded random variables. Specifically, for fixed :
Each term is bounded in . By Hoeffding's inequality for independent (not necessarily identically distributed) bounded random variables:
For uniform convergence over , we use the standard symmetrization and covering number argument, which only requires independence and boundedness. Since (unit blocks), the loss class has pseudo-dimension by Lemma 2. The total number of blocks is , and the covering number of the VC class at scale satisfies . Combining via a union bound over an -cover:
(21)
Substituting and :
Setting (21) equal to and solving for gives the stated bound.
The effective sample size (18) has a natural interpretation. It is the reciprocal of the weighted variance . Regions with large correlation range contribute fewer effective samples per unit area and thereby reduce the overall effective sample size, even if they occupy a small fraction of the image.
Theorem 6 (Piecewise stationary lower bound). Under the conditions of Theorem 5, for any region with :
In particular, taking the maximum over regions:
Proof. For a chosen region , construct a distribution in which the classification task within follows the super-pixel construction of Theorem 2 with range , and the task is trivial in all other regions (i.e. for under every hypothesis). Then , and the minimax rate for estimating over alone is by Theorem 2. Multiplying by gives the per-region lower bound. Taking the maximum over yields (24).
Comparing the upper bound (17) and the lower bound (24), the upper bound depends on and the lower bound on . Since , the gap between the bounds is at most , which is a small constant for typical land cover classifications ( ).
Remark 2 (Practical interpretation). Given a scene with estimated per-stratum correlation ranges , the effective sample size should be computed as , not from a global variogram. A scene that is half cropland ( ) and half forest ( ) has , whereas a global variogram might estimate , giving , overestimating of the effective sample size by nearly a factor of two.
VI. IMPLICATIONS FOR SPATIAL CROSS-VALIDATION
The main practical consequence of the preceding results concerns validation methodology. We state implications for each setting.
Corollary 1 (Spatial cross-validation in the stationary case). Under the conditions of Theorem 1:
-
Spatial block holdout with block separation achieves the optimal generalization bound with effective sample size up to log factors.
-
Random holdout treats all pixels as independent. Any uniform deviation bound based on the nominal sample size underestimates the true generalization error by a factor of up to .
Proof. Statement (i) is immediate from Theorem 1. with separation achieves the bound. For (ii), a random subset of test pixels drawn without spatial structure includes effectively independent observations (by the lower bound, this cannot yield better than
accuracy in estimating , but the practitioner computes a standard error as if all pixels were independent, underestimating the confidence interval width by .
Corollary 2 (Spatial cross-validation in the piecewise stationary case). Under the conditions of Theorem 5, spatial block holdout with per-stratum block separation within each region achieves the generalization bound (17) with effective sample size . In particular:
- Let denote the area-weighted mean range, with . Then
with equality if and only if all are identical. Thus, whenever the per-stratum ranges are heterogeneous, substituting any single averaged range into the stationary formula strictly overestimates the effective sample size.
- Random holdout underestimates the width of confidence intervals for the generalization error by a factor of up to .
Proof. Statement (i): since and is strictly convex, Jensen's inequality gives , with equality if and only if the are all equal. Hence . Statement (ii) follows from the same argument as Corollary 1(ii).
Remark 3 (Anisotropic block separation). For anisotropic fields (Theorem 3), the block separation should be direction-dependent: in direction . This yields elongated validation blocks aligned with the correlation structure. For SAR imagery with range correlation pixels and azimuth correlation pixels, using isotropic separation in both directions discards of the available effective samples compared to the anisotropic prescription.
a) Practical workflow: The theoretical results suggest the following procedure for spatial cross-validation on a new scene:
-
Stratify. Partition the image into approximately homogeneous regions (e.g. by land cover class or ecological zone). If directional correlation is suspected, note the principal axes.
-
Estimate correlation ranges. Within each region , compute the empirical variogram and fit a parametric model to obtain (or directional ranges if anisotropic). A robust choice is the practical range, defined as the lag at which the fitted variogram reaches 95% of its sill.
-
Compute effective sample size. Use (or for anisotropic strata.
-
Set block separation. Within each region, separate spatial CV folds by at least pixels, where depends on the covariance model.
-
Report corrected confidence intervals. Replace the nominal sample size with when computing standard errors and confidence intervals for accuracy metrics. The bound is continuous in , and replacing with changes by a factor of at most , so moderate variogram estimation error produces proportional, not catastrophic, error in the bound.
b) Worked examples: For a Sentinel-2 scene ( pixels per side at 10m resolution) with landscape correlation ranges of 200–500m ( pixels), the effective sample size under global stationarity is , roughly two to three orders of magnitude smaller than the pixel count of . For a heterogeneous scene with three strata, suppose we have cropland (40% of pixels, ), forest (40%, ), and urban (20%, ). Writing the stratum pixel counts as , the stratified effective sample size from (18) is
A global variogram on this scene might estimate the area-weighted mean range , giving , which overestimates by a factor of . Whenever the per-stratum ranges are heterogeneous, any single averaged range yields confidence intervals that are too narrow. Per-stratum estimation avoids this bias.
VII. SYNTHETIC EXPERIMENTS
We first validate the theoretical results with a controlled simulation. The goals are to (1) confirm that random holdout overestimates classification accuracy on spatially correlated imagery, with the bias growing in the correlation range ; (2) verify the effective-sample-size scaling ; and (3) demonstrate that validation optimism decays with distance from the training region, reaching zero once the distance exceeds .
We generate synthetic images ( ) from a stationary Gaussian random field with exponential covariance and spectral bands, each drawn independently from the same covariance structure via circulant embedding (FFT). The true label at each pixel is , where is a fixed unit-norm weight vector and with is i.i.d. label noise. The linear boundary ensures that the Bayes-optimal classifier is well-defined, while the label noise makes the classification task nontrivial (Bayes error ). The correlation range is the parameter we vary across experiments, taking values in .
We use a decision tree (depth 15, minimum leaf size 3) as the classifier. The high capacity of the tree is crucial here as a linear classifier trained on data generated from a linear boundary converges to the Bayes-optimal decision surface regardless of spatial structure and therefore exhibits negligible optimism. The decision tree can actually memorize spatially correlated noise patterns in the training set, and this overfitting to local spatial structure is the mechanism that inflates random-holdout accuracy.
True generalization error is estimated by evaluating each trained classifier on five independently generated images
(A) Random holdout vs true error

(B) Effective sample size

(C) Optimism decay (r = 50)
Fig. 2. Simulation validation of the results. (A) Random holdout error (red) diverges from generalization error (green) as the correlation range increases. Shaded area is the optimism gap. (B) Empirical effective sample size (blue) scales log-log slope = -1.78 vs. theory -2. (C) Validation optimism decays with distance from the training boundary, reaching zero at (vertical line). The gray curve shows . All experiments use , spectral bands, exponential covariance.
drawn from the same distribution (same w, fresh random-field realizations). All reported results are averaged over 500 replications per configuration with error bars denoting standard error. Figure 2 visualizes the experiments.
a) Panel (A): Random holdout vs. true error: For each value of r, we train the decision tree on a random 50% of the pixels in a single image and evaluate on the remaining 50%. The red curve shows the random-holdout error estimate and the green curve shows the true generalization error measured on fresh images. At r=1 (nearly i.i.d. pixels) the two coincide. As r increases, they diverge: the random-holdout estimate decreases while the true error increases. The shaded region between them is the optimism gap, namely the amount by which random holdout underestimates the true classification error. At r=70 the gap reaches approximately 2.8 percentage points. As anticipated, the holdout estimate falls (the interleaved test set rewards the memorization) while true error rises (more correlation, more structured noise to memorize).
b) Panel (B): Effective sample size: To measure empirically we train a logistic regression classifier on one image and evaluate it on a second, independently generated image, repeating this 800 times per value of . The variance of the test error across repetitions gives , where is the mean error. We use logistic regression rather than a decision tree here to minimize the contribution of training-set variability to the total variance, isolating the evaluation-side effect. The empirical (blue) tracks the theoretical line (dashed) in slope, with a log-log slope of -1.78, the shortfall from the predicted -2 reflecting finite-r curvature from the term, which flattens the local slope when is not small relative to . The constant-factor offset (roughly one order of magnitude) is consistent with the polylogarithmic factors.
c) Panel (C): Optimism decay with distance: We train the decision tree on the left half of the image (columns 1 to n/2) and measure the test error in narrow 15-pixel-wide bands at increasing distances from the training boundary. At each distance d, we compute the optimism as the difference between the true generalization error and the band-specific test error. Positive optimism indicates that the band benefits from spatial leakage. The optimism is largest immediately adjacent to the training region (+1.2% at distance 7) and decays to zero by distance , closely following the exponential decay predicted by the covariance model (gray curve). The vertical dashed line marks . Beyond , the optimism fluctuates around zero, confirming that pixels separated from the training data by more than the correlation range provide an unbiased estimate of generalization performance. The slight negative drift at distances reflects a secondary effect. At large separations the test pixels inhabit a sufficiently different realization of the random field that the classifier, which has partially memorized the training-half realization, performs slightly worse than on a generic fresh image. This is the distribution shift phenomenon we discuss in connection with Wadoux et al. [3].
VIII. EMPIRICAL EXPERIMENTS
We then validate the theoretical predictions on satellite imagery spanning seven ecoregions, three sensors, and diverse land cover types. All tiles are approximately pixels, extracted via Google Earth Engine [16] from cloud-free summer (May–September 2021) median composites, with land cover labels from the 2021 National Land Cover Database (NLCD) [17].
We use three sensors: Landsat 8 surface reflectance [18] (30m, six spectral bands), Sentinel-2 surface reflectance [19] (10m, ten bands), and Sentinel-1 GRD SAR [20] (10m, VV/VH polarizations). Tiles are drawn from seven regions selected for ecological diversity. We use Iowa (flat cropland), Colorado Front Range (mountainous forest/shrub), Chesapeake Bay (coastal wetland/forest/cropland), Arizona (arid desert/shrub), New England (mixed deciduous/urban), Georgia (pine plantation/wetland), and California Central Valley (irrigated agriculture). In total, 43 tiles were analyzed with 25 Landsat, 10 Sentinel-2 (co-located with Landsat tiles for cross-sensor comparison), and 8 Sentinel-1 (one per region, for anisotropy analysis). Table I summarizes the results.
TABLE I SUMMARY OF CORRELATION RANGES AND EFFECTIVE SAMPLE SIZES ACROSS ALL STUDY TILES. : FITTED EXPONENTIAL RANGE FROM THE NDVI (OR VV) VARIOGRAM. : BLOCK-BOOTSTRAP EFFECTIVE SAMPLE SIZE AT BLOCK SIZE .
| Region | Tile | Sensor | Scale | ||||
|---|---|---|---|---|---|---|---|
| Iowa | IA-L1 | Landsat 8 | 30m | 15.0 | 449 | 145684 | 1930 |
| IA-L2 | Landsat 8 | 30m | 25.0 | 751 | 139876 | 610 | |
| IA-L3 | Landsat 8 | 30m | 13.0 | 390 | 147744 | 2687 | |
| IA-L4 | Landsat 8 | 30m | 23.2 | 696 | 141620 | 1861 | |
| IA-L5 | Landsat 8 | 30m | 5.6 | 168 | 149865 | 11915 | |
| IA-L6 | Landsat 8 | 30m | 20.8 | 625 | 142002 | 2463 | |
| IA-L7 | Landsat 8 | 30m | 18.2 | 545 | 144530 | 2448 | |
| IA-S2a | Sentinel-2 | 10m | 35.8 | 358 | 135520 | 955 | |
| IA-S2b | Sentinel-2 | 10m | 19.4 | 194 | 142485 | 1215 | |
| IA-S1a | Sentinel-1 | 10m | 18.0 | 180 | 144232 | 1384 | |
| IA-S1b | Sentinel-1 | 10m | 11.9 | 119 | 146349 | 2467 | |
| Colorado | CO-L1 | Landsat 8 | 30m | 26.1 | 782 | 143674 | 1758 |
| CO-L2 | Landsat 8 | 30m | 14.3 | 430 | 149108 | 3168 | |
| CO-L3 | Landsat 8 | 30m | 15.4 | 461 | 148632 | 2691 | |
| CO-S2 | Sentinel-2 | 10m | 36.9 | 369 | 139095 | 1285 | |
| CO-S1 | Sentinel-1 | 10m | 15.7 | 157 | 149238 | 2677 | |
| Chesapeake | CB-L1 | Landsat 8 | 30m | 48.2 | 1445 | 138308 | 1608 |
| CB-L2 | Landsat 8 | 30m | 11.5 | 345 | 156006 | 6235 | |
| CB-L3 | Landsat 8 | 30m | 101.1 | 3034 | 112497 | 171 | |
| CB-S2 | Sentinel-2 | 10m | 17.8 | 178 | 153405 | 2810 | |
| CB-S1 | Sentinel-1 | 10m | 14.9 | 149 | 154866 | 4167 | |
| Arizona | AZ-L1 | Landsat 8 | 30m | 10.7 | 321 | 157464 | 2355 |
| AZ-L2 | Landsat 8 | 30m | 18.9 | 566 | 153260 | 1740 | |
| AZ-L3 | Landsat 8 | 30m | 43.3 | 1299 | 141135 | 4269 | |
| AZ-S2 | Sentinel-2 | 10m | 28.6 | 286 | 148716 | 373 | |
| AZ-S1 | Sentinel-1 | 10m | 11.4 | 114 | 156978 | 1898 | |
| New England | NE-L1 | Landsat 8 | 30m | 28.6 | 859 | 144248 | 659 |
| NE-L2 | Landsat 8 | 30m | 12.0 | 360 | 154256 | 4330 | |
| NE-L3 | Landsat 8 | 30m | 21.2 | 635 | 148500 | 2027 | |
| NE-S2 | Sentinel-2 | 10m | 32.1 | 321 | 142560 | 529 | |
| NE-S1 | Sentinel-1 | 10m | 23.0 | 230 | 147015 | 472 | |
| Georgia | GA-L1 | Landsat 8 | 30m | 35.2 | 1057 | 139173 | 842 |
| GA-L2 | Landsat 8 | 30m | 8.4 | 253 | 156806 | 5065 | |
| GA-L3 | Landsat 8 | 30m | 21.5 | 646 | 148004 | 6550 | |
| GA-S2a | Sentinel-2 | 10m | 101.7 | 1017 | 112440 | 91 | |
| GA-S2b | Sentinel-2 | 10m | 18.9 | 189 | 152312 | 958 | |
| GA-S1 | Sentinel-1 | 10m | 70.9 | 709 | 127342 | 134 | |
| California | CA-L1 | Landsat 8 | 30m | 37.6 | 1127 | 146421 | 955 |
| CA-L2 | Landsat 8 | 30m | 23.3 | 698 | 153634 | 1842 | |
| CA-L3 | Landsat 8 | 30m | 14.6 | 439 | 157760 | 2621 | |
| CA-S2a | Sentinel-2 | 10m | 25.3 | 253 | 152337 | 858 | |
| CA-S2b | Sentinel-2 | 10m | 23.7 | 237 | 153634 | 694 | |
| CA-S1 | Sentinel-1 | 10m | 25.6 | 256 | 152337 | 638 |
A. Variogram Estimation and Scaling
For each tile we compute the NDVI (or VV backscatter for SAR) and estimate an isotropic empirical variogram from random pixel pairs, binned at 2-pixel lag intervals. We fit an exponential model with nugget, , by nonlinear least squares.
The fitted correlation ranges vary substantially both within and across regions. For Landsat tiles, the median per region ranges from pixels (450m) in Iowa to pixels (1300m) in parts of Arizona, with within-region variability often spanning a factor of 2–3. Iowa Landsat tiles yield
Effective sample size

Fig. 3. Block-bootstrap effective sample size as a function of block size for four tiles spanning different regions.
pixels across seven tiles, reflecting local differences in field size and land cover heterogeneity. Cross-sensor comparisons on co-located tiles show that physical correlation lengths are broadly consistent between Landsat and Sentinel-2 (e.g. Iowa: vs. ), while SAR consistently shows shorter correlation lengths (), consistent with radar sensitivity to fine-scale surface structure.
To test the prediction, we employ a spatial block bootstrap on all tiles. For each tile, a logistic regression classifier is trained on the left third of the image (with a gap of pixels to prevent leakage) and evaluated on the remaining test region. For each block size , we tile the test region into non-overlapping blocks, resample blocks with replacement 500 times, and compute .
Fig. 3 shows the result for four representative tiles spanning Iowa, Chesapeake, California, and New England. In all cases, decreases as a power law in the block size, running parallel to the reference line. The log-log slopes range from -1.6 to -1.9 across tiles, consistent with the theoretical prediction of -2 up to the polylogarithmic correction in Theorem 1. The scaling holds across all three sensors, all seven regions, and for both binary and multi-class classification tasks. Across all tiles, ranges from 91 (GA-S2a, pixels) to 11915 (IA-L5, pixels), compared to test set sizes of 112000–158000 pixels, confirming that effective sample sizes are typically 1–3 orders of magnitude smaller than pixel counts.
B. Anisotropy Validation
Sentinel-1 SAR imagery provides a natural test case for the anisotropic extension (Theorem 3), since SAR backscatter can exhibit directional correlation structure from both the sensor geometry and landscape features. For each of the eight SAR tiles, we compute directional variograms along the N–S and E–W axes (with a angular tolerance) and fit exponential models independently to obtain directional ranges (N–S) and (E–W).
Table II summarizes the results. The anisotropy ratio ranges from 1.0 (isotropic) to 8.2, and the fraction of effective samples wasted by isotropic blocking ranges from to . Chesapeake exhibits the strongest anisotropy (ratio 8.2x, waste), with the E–W correlation extending along the coastal shoreline ( pixels) while the N–S direction decorrelates rapidly across the land–water boundary ( pixels). Colorado shows a similar pattern along mountain ridges (ratio 5.9x, waste). California and Iowa are near-isotropic (ratios 1.1x and 1.4x), consistent with the regular geometry of agricultural fields. These results confirm that the anisotropic prescription from Theorem 3 can recover substantially more effective samples than isotropic blocking with in landscapes with directional structure.
TABLE II DIRECTIONAL CORRELATION RANGES FROM SENTINEL-1 SAR. , : N–S AND E–W EXPONENTIAL RANGES. RATIO: max / min OF THE TWO RANGES. WASTE: FRACTION OF EFFECTIVE SAMPLES LOST BY USING ISOTROPIC BLOCKING WITH INSTEAD OF THE ANISOTROPIC .
| Tile | (px) | (px) | Ratio | Waste | |
|---|---|---|---|---|---|
| IA-S1a | 17 | 12 | 1.4x | 208 | 27% |
| IA-S1b | 75 | 75 | 1.0x | 5563 | 0% |
| CO-S1 | 60 | 10 | 5.9x | 604 | 83% |
| CB-S1 | 9 | 73 | 8.2x | 643 | 88% |
| AZ-S1 | 9 | 21 | 2.3x | 185 | 57% |
| NE-S1 | 47 | 36 | 1.3x | 1696 | 22% |
| GA-S1 | 159 | 60 | 2.7x | 9515 | 63% |
| CA-S1 | 24 | 27 | 1.1x | 647 | 10% |
C. Piecewise Stationarity Validation
To validate the piecewise stationary extension (Theorem 5), we partition selected tiles by NLCD land cover class and fit per-stratum variograms. For strata with at least 500 valid pixels, we estimate and compute the stratified effective sample size , where is the pixel count in stratum . Strata with non-convergent variogram fits are excluded.
Table III shows the per-stratum breakdown for six tiles from Iowa, Colorado, and Chesapeake. The correlation ranges vary dramatically within individual scenes. In Iowa, cropland has pixels while developed land has , and in Colorado, herbaceous cover reaches pixels while shrub is only 4.6. The dominant stratum's correlation range does not determine the global estimate.
The ratio of stratified to global ranges from (CO-L3) to (CO-L2), demonstrating that the global variogram can err in either direction. When most strata have shorter ranges than the global estimate (IA-L1, CO-L1), the stratified is higher, so the global variogram is overly conservative. When a minority stratum with long-range correlation is averaged away (CO-L3), the global estimate is anticonservative and the true effective sample size is lower than reported. The Chesapeake tile (CB-L1) illustrates a third scenario where water (, of pixels) and wetland (, ) dominate the denominator despite cropland () covering nearly a quarter of the scene.
These results confirm that per-stratum estimation is necessary for heterogeneous scenes and that the formula from Theorem 5 captures effects invisible to a global variogram.
TABLE III STRATIFIED VS. GLOBAL EFFECTIVE SAMPLE SIZE FOR SIX HETEROGENEOUS TILES. : GLOBAL VARIOGRAM RANGE. RANGE: MIN-MAX OF PER-STRATUM RANGES (NLCD CLASSES WITH 500 PIXELS).
| Tile | K | (px) | range | ||
|---|---|---|---|---|---|
| IA-L1 | 6 | 14.0 | 3.2–17.6 | 1161 | 2.4x |
| CO-L1 | 5 | 17.9 | 4.6–32.1 | 730 | 4.3x |
| CO-L2 | 5 | 28.2 | 3.4–28.8 | 295 | 5.2x |
| CO-L3 | 6 | 17.1 | 11.3–60.3 | 802 | 0.4x |
| CO-S2 | 4 | 21.2 | 2.2–17.7 | 522 | 2.2x |
| CB-L1 | 5 | 50.3 | 6.6–32.4 | 96 | 3.5x |
IX. DISCUSSION
We established that the effective sample size of a spatially correlated remote sensing image is , where is the correlation range, and that this rate is minimax optimal. The result provides a rigorous statistical justification for spatial cross-validation in the remote sensing context and gives quantitative guidance on the required block separation.
The bound takes the correlation range as known. In practice, can be estimated from an empirical variogram. We can compute the semivariance at each lag , fit a parametric model (exponential, Matérn, etc.), and read off the practical range at which correlation drops to of the sill. Since the bound is continuous in , moderate estimation error in produces proportional error in the bound by replacing with changes by a factor of .
A subtlety concerns which spatial field the correlation range refers to. The bounds are driven by the mixing rate of the loss field , whereas the variograms in Section VIII are computed on the raw features, which may not coincide. The feature range bounds the loss range from above when the label depends on the features through a fixed decision boundary. However, when intra-class variability is small, the loss field decorrelates faster than the feature field, and the feature-variogram range overestimates the effective correlation range of the loss, yielding a conservative . Estimating the loss-field range directly, e.g. from the variogram of held-out residuals, would tighten the bound, at the cost of requiring a fitted classifier. We use the feature range throughout as it is model-free, computable prior to training, and its conservatism errs in the safe direction for confidence intervals.
Wadoux et al. [3] argued that spatial cross-validation can be pessimistic for map accuracy assessment. This is consistent with our analysis once the prediction task is distinguished. Theorem 1 characterizes generalization to new draws from the same stationary field. When the goal is instead extrapolation to geographically disjoint regions (new biomes, different continents), the relevant difficulty is distributional shift, not spatial correlation, and domain adaptation bounds are more appropriate. Spatial CV with large block separations can conflate the two effects, penalizing a classifier for distribution shift that the user does not intend to generalize across. Our result clarifies that the block separation should be scaled to the correlation range r, not to the size of the study area.
We conjecture the blocking argument generalizes to space-time lattices with anisotropic mixing spatial range and temporal range . Applying 3D blocking gives an effective sample size , quantifying the marginal value of each additional revisit. For a Sentinel-2 time series with revisits per year and temporal correlation of revisits, a temporal stack multiplies the effective sample size by relative to a single image.
Our results have several limitations. The bounds are worst-case and conservative, with unoptimized constants and polylogarithmic factors. The key value is the scaling and the spatial-CV guidance, not a sharp constant. The correlation range must be estimated from an empirical variogram; while the bound is continuous in and moderate estimation error propagates proportionally (Remark 2), a poorly specified variogram will bias . We assume label noise is conditionally independent given features, but tasks with spatial label structure (e.g. segmentation) may exhibit different mixing behavior. Investigating such settings is left to future work.
X. CONCLUSION
We derived finite-sample generalization bounds for classifiers trained on spatially dependent remote sensing data. The main result is that the effective sample size of an image with spatial correlation range is , and that this rate is minimax optimal. For anisotropic fields, the effective sample size is , and for piecewise stationary scenes per-stratum correlation ranges must be combined through a variance-weighted formula. As a corollary, spatial block holdout with separation proportional to achieves optimal generalization guarantees, while random holdout can underestimate confidence intervals by . These results provide theoretical footing and quantitative guidance for spatial cross-validation in remote sensing accuracy assessments.
REFERENCES
[1] D. Jupp, A. Strahler, and C. Woodcock, “Autocorrelation and regularization in digital images. i. basic theory,” IEEE Transactions on Geoscience and Remote Sensing, vol. 26, no. 4, pp. 463–473, 1988.
[2] D. R. Roberts, V. Bahn, S. Ciuti, M. S. Boyce, J. Elith, G. Guillera-Arroita, S. Hauenstein, J. J. Lahoz-Monfort, B. Schröder, W. Thuiller, D. I. Warton, B. A. Wintle, F. Hartig, and C. F. Dormann, “Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure,” Ecography, vol. 40, no. 8, pp. 913–929, 2017. [Online]. Available: https://doi.org/10.1111/ecog.02881
[3] A. M. J.-C. Wadoux, G. B. M. Heuvelink, S. de Bruin, and D. J. Brus, “Spatial cross-validation is not the right way to evaluate map accuracy,” Ecological Modelling,
vol. 457, p. 109692, 2021. [Online]. Available: https://doi.org/10.1016/j.ecolmodel.2021.109692
[4] P. Ploton, F. Mortier, M. Réjou-Méchain, N. Barbier, N. Picard, V. Rossi, C. F. Dormann, G. Cornu, G. Viennois, N. Bayol, A. Lyapustin, S. Gourlet-Fleury, and R. Pélissier, “Spatial validation reveals poor predictive performance of large-scale ecological mapping models,” Nature Communications, vol. 11, p. 4540, 2020. [Online]. Available: https://doi.org/10.1038/s41467-020-18321-y
[5] H. Meyer and E. Pebesma, “Predicting into unknown space? estimating the area of applicability of spatial prediction models,” Methods in Ecology and Evolution, vol. 12, no. 9, pp. 1620–1633, 2021. [Online]. Available: https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.13650
[6] J.-F. Wang, G. Christakos, and M.-G. Hu, “Modeling spatial means of surfaces with stratified nonhomogeneity,” IEEE Transactions on Geoscience and Remote Sensing, vol. 47, no. 12, pp. 4167–4174, 2009.
[7] A. D. Rocha, T. A. Groen, A. K. Skidmore, and L. Willemen, “Role of sampling design when predicting spatially dependent ecological data with remote sensing,” IEEE Transactions on Geoscience and Remote Sensing, vol. 59, no. 1, pp. 663–674, 2021.
[8] Y. Liao, Y. Bai, S. Chen, J. Wang, Y. You, Z. Chen, H. Wu, H. Huang, W. Li, M. Zang, Z. Wang, X. Zhang, B. Xu, and P. Gong, “The scaling law in remote sensing mapping for model performance forecasting and reference sample optimization,” Remote Sensing of Environment, vol. 344, p. 115529, 2026.
[9] M. Mohri and A. Rostamizadeh, “Stability bounds for stationary -mixing and -mixing processes,” J. Mach. Learn. Res., vol. 11, p. 789–814, Mar. 2010. [Online]. Available: https://jmlr.org/papers/volume11/mohri10a/mohri10a.pdf
[10] V. Kuznetsov and M. Mohri, “Generalization bounds for non-stationary mixing processes,” Machine Learning, vol. 106, no. 1, pp. 93–117, 2017. [Online]. Available: https://doi.org/10.1007/s10994-016-5588-2
[11] D. S. Modha and E. Masry, “Minimum complexity regression estimation with weakly dependent observations,” IEEE Transactions on Information Theory, vol. 42, no. 6, pp. 2133–2145, November 1996. [Online]. Available: https://doi.org/10.1109/18.556602
[12] P. Doukhan, Mixing: Properties and Examples, ser. Lecture Notes in Statistics. New York, NY: Springer, 1994, vol. 85. [Online]. Available: https://doi.org/10.1007/978-1-4612-2642-0
[13] R. C. Bradley, Introduction to Strong Mixing Conditions, Volume 1. Kendrick Press, 2007.
[14] B. Yu, “Rates of convergence for empirical processes of stationary mixing sequences,” The Annals of Probability, vol. 22, no. 1, pp. 94–116, 1994. [Online]. Available: https://www.jstor.org/stable/2244496
[15] A. B. Tsybakov, Introduction to Nonparametric Estimation, ser. Springer Series in Statistics. New York, NY: Springer, 2009. [Online]. Available:
https://doi.org/10.1007/b13794
Available: https://doi.org/10.1016/j.isprsjprs.2015.03.014
[16] N. Gorelick, M. Hancher, M. Dixon, S. Ilyushchenko, D. Thau, and R. Moore, “Google earth engine: Planetary-scale geospatial analysis for everyone,” Remote Sensing of Environment, 2017. [Online]. Available: https://doi.org/10.1016/j.rse.2017.06.031
[17] U.S. Geological Survey (USGS), “Annual NLCD collection 1 science products,” 2024. [Online]. Available: https://doi.org/10.5066/P94UXNTS
[18] D. P. Roy, M. A. Wulder, T. R. Loveland, C. E. Woodcock, R. G. Allen, M. C. Anderson, D. Helder, J. R. Irons, D. M. Johnson, R. Kennedy, T. A. Scambos, C. B. Schaaf, J. R. Schott, Y. Sheng, E. F. Vermote, A. S. Belward, R. Bindschadler, W. B. Cohen, F. Gao, J. D. Hipple, P. Hostert, J. Huntington, C. O. Justice, A. Kilic, V. Kovalskyy, Z. P. Lee, L. Lymburner, J. G. Masek, J. McCorkel, Y. Shuai, R. Trezza, J. Vogelmann, R. H. Wynne, and Z. Zhu, “Landsat-8: Science and product vision for terrestrial global change research,” Remote Sensing of Environment, vol. 145, pp. 154–172, 2014.
[19] M. Drusch, U. D. Bello, S. Carlier, O. Colin, V. Fernandez, F. Gascon, B. Hoersch, C. Isola, P. Laberinti, P. Martimort, A. Meygret, F. Spoto, O. Sy, F. Marchese, and P. Bargellini, “Sentinel-2: ESA’s Optical High-Resolution Mission for GMES Operational Services,” Remote Sensing of Environment, vol. 120, pp. 25–36, 2012.
[20] R. Torres, P. Snoeij, D. Geudtner, D. Bibby, M. Davidson, E. Attema, P. Potin, B. Rommen, N. Floury, M. Brown, I. N. Traver, P. Deghaye, B. Duesmann, B. Rosich, N. Miranda, C. Bruno, M. L'Abbate, R. Croci, A. Pietropaolo, M. Huchler, and F. Rostan, "GMES Sentinel-1 mission," Remote Sensing of Environment, vol. 120, pp. 9–24, 2012.
[21] S. Shalev-Shwartz and S. Ben-David, Understanding Machine Learning: From Theory to Algorithms. Cambridge, UK: Cambridge University Press, 2014. [Online]. Available: https://doi.org/10.1017/CBO9781107298019
[22] M. Mohri, A. Rostamizadeh, and A. Talwalkar, Foundations of Machine Learning, 2nd ed. Cambridge, MA: The MIT Press, 2018.
[23] V. N. Vapnik and A. Y. Chervonenkis, “On the uniform convergence of relative frequencies of events to their probabilities,” Theory of Probability & Its Applications, vol. 16, no. 2, pp. 264–280, 1971. [Online]. Available: https://doi.org/10.1137/1116025
[24] G. Douzas, F. Bacao, J. Fonseca, and M. Khudinyan, "Imbalanced learning in land cover classification: Improving minority classes' prediction accuracy using the geometric smote algorithm," Remote Sensing, vol. 11, no. 24, p. 3040, 2019. [Online]. Available: https://doi.org/10.3390/rs11243040
[25] A. Mellor, S. Boukir, A. Haywood, and S. Jones, "Exploring issues of training data imbalance and mislabelling on random forest performance for large area land cover classification using the ensemble margin," ISPRS Journal of Photogrammetry and Remote Sensing, vol. 105, pp. 155–168, Jul. 2015. [Online].
APPENDIX
This section briefly glosses the learning-theoretic machinery used in the main text, for readers who work with machine learning in practice but have not seen the underlying theory. Readers seeking a fuller treatment may consult the accessible introduction of Shalev-Shwartz and Ben-David [21], whose early chapters develop PAC learning, VC dimension, and uniform convergence from first principles (a free copy is hosted by the authors here), or the more advanced account of Mohri et al. [22], which also covers the learning theoretic treatment of dependent data underlying the mixing bounds we build on.
Anyone who has held out a test set has estimated a generalization gap. A classifier has a true risk , or its error rate on the whole population, which we never observe, and an empirical risk , which is the error rate on the finite sample in hand. Reporting held-out accuracy is the act of using as a stand-in for , and the hope that the two are close is the hope that the gap is small. A generalization bound makes that hope quantitative as a guarantee, holding with high probability, on how large the gap can be and, crucially, one that holds simultaneously for every the training procedure might have selected. If we only controlled the gap for a single fixed in advance, the training procedure's freedom to select the that happens to look best on this particular sample would be exactly the loophole overfitting exploits. The guarantee must therefore survive a worst-case choice of , which is what the supremum in (S1) encodes.
Everyone knows that a model flexible enough to memorize the training set will report an optimistically low training error, and VC dimension is the formal handle on “flexible enough.” Say that H shatters a set of points if, for every possible assignment of binary labels to them, some classifies all of them correctly, then the class is flexible enough to realize any labeling, including the adversarial ones. The VC dimension of H [23] is the size of the largest set it can shatter. A linear classifier in the plane has , which means any labeling of three points is separable by a line, but no line separates four points labeled in the XOR pattern. A deep decision tree can shatter large sets and so has large . A class that shatters sets of every size has and can fit pure noise. It is a measure of capacity that, unlike a raw parameter count, directly predicts overfitting. The classical guarantee is that, for n i.i.d. samples, with probability at least ,
Holding fixed, a more flexible class (larger ) admits a larger gap, which is the formal version of “flexible models overfit more.” Holding fixed, the gap shrinks as , e.g. quadrupling the sample halves the error bar. The rate , and specifically the appearance of in the denominator, is the object our main results correct.
The in (S1) arrives through a concentration inequality. The average of independent bounded quantities concentrates around its mean at rate . This is the one step that assumes independence, and it is the step spatial correlation breaks. When neighboring pixels are correlated, the pixels of an image do not supply independent quantities to average, adjacent pixels largely repeat information already present in their neighbors. The image behaves as though it held some smaller number of independent observations. The technical contribution of Section III is to make “some smaller number” formally defined.
A blocking construction extracts nearly-independent units, and the bound (S1) then holds with m in place of n. m here is not a subset of privileged pixels one could point to on the image, but the number of actually independent observations whose averaged error would carry the same variance as the full correlated scene. This variance-based reading is what the piecewise-stationary formula of Section V makes explicit, where appears as the reciprocal of a weighted variance.
The blocking argument shows the rate is achievable. Section IV shows it cannot be beaten, and the reason is that an adversary may build a scene in which every patch is internally identical and drawn independently of the others, then all pixels encode only free pieces of information, and no algorithm, however clever, can recover structure that was never present. The effective sample size is thus a property of the spatial dependence, not of the learner.
The generalization bounds of Section III are stated for a hypothesis class of K-way classifiers and hold for any number of classes . The number of classes enters the bound only through the VC dimension , which sits inside the constant. The dependence of the effective sample size on the correlation range, , is independent of K. This section confirms that invariance empirically, and additionally checks that class imbalance does not alter the scaling.
A. Setup
We reuse the field-generation and estimation procedure of the binary effective-sample-size experiment (Section VII, Panel B) unchanged, varying only the labeling rule. For each value of the correlation range , we draw an image ( ) with spectral bands from a stationary Gaussian random field with exponential covariance , each band generated independently by circulant embedding. The latent score is formed from a fixed weight vector and i.i.d. label noise , exactly as in the binary experiment.
The three labeling rules differ only in how is discretized:
- Binary : a single threshold at the median of , reproducing the rule of Section VII.
• Four-class balanced : three thresholds at the 25th, 50th, and 75th percentiles of , giving four classes of equal prior probability.
• Four-class imbalanced : three thresholds at the 70th, 80th, and 90th percentiles, giving a 70/10/10/10 split in which one class dominates. This is the regime in which practitioners most often worry about imbalance.
Thresholds are estimated once from a pilot draw so that the target class proportions are met on average. Each condition is fit with multinomial logistic regression and evaluated on a second, independently drawn image. We use 600 replications per value of and estimate from the across-replication variance of the test error, where is the mean error rate. This estimator is valid for any since the per-pixel error indicator is Bernoulli regardless of how many classes produced a given misclassification.
B. Results
Figure S1 shows the three curves. In every condition, decreases as a power law in , running parallel to the reference and far below the naive pixel count . The fitted log-log slopes (over , where finite-r curvature is mild) are -1.85 for the binary task, -1.87 for the four-class balanced task, and -1.88 for the four-class imbalanced task, and all consistent with the theoretical exponent of -2 up to the polylogarithmic correction of Theorem 1.
The level of does depend on the task, as expected. The mean error rate rises from in the binary case to for four balanced classes (four classes are intrinsically harder to separate), and returns to for the imbalanced split, whose dominant class is easily classified. These shifts move the curves vertically but leave their slope unchanged. Neither the number of classes nor the degree of class imbalance affects the scaling. The cost of spatial correlation is governed by the correlation range alone, with and the class distribution absorbed into the constant, exactly as the theory predicts.
Class imbalance is a well-recognized difficulty in remote-sensing land-cover classification, where minority classes are systematically under-learned and are commonly addressed by resampling or margin-based methods [24, 25]. Our experiment shows that this concern, while important for per-class accuracy, is orthogonal to the spatial-correlation correction studied here. Tmbalance shifts the level of through the base error rate but leaves the scaling unchanged, so the block-separation prescription applies regardless of class balance.
Effective sample size is class-count invariant in slope

Fig. S1. Effective sample size versus correlation range for binary and four-class classification at n = 500.